| Index: generated/googleapis/lib/identitytoolkit/v3.dart
|
| diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart
|
| index 69644ca427b18c23d19b254aab764cdcc9abef91..d59a64f57e82ccf1bb434a76a2dac227fbd34b62 100644
|
| --- a/generated/googleapis/lib/identitytoolkit/v3.dart
|
| +++ b/generated/googleapis/lib/identitytoolkit/v3.dart
|
| @@ -10,51 +10,52 @@ import 'dart:convert' as convert;
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| import 'package:http/http.dart' as http;
|
|
|
| -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| - ApiRequestError, DetailedApiRequestError;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show ApiRequestError, DetailedApiRequestError;
|
|
|
| const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3';
|
|
|
| -/** Help the third party sites to implement federated login. */
|
| +/// Help the third party sites to implement federated login.
|
| class IdentitytoolkitApi {
|
| - /** View and manage your data across Google Cloud Platform services */
|
| - static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
|
| + /// View and manage your data across Google Cloud Platform services
|
| + static const CloudPlatformScope =
|
| + "https://www.googleapis.com/auth/cloud-platform";
|
|
|
| - /** View and administer all your Firebase data and settings */
|
| + /// View and administer all your Firebase data and settings
|
| static const FirebaseScope = "https://www.googleapis.com/auth/firebase";
|
|
|
| -
|
| final commons.ApiRequester _requester;
|
|
|
| - RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_requester);
|
| + RelyingpartyResourceApi get relyingparty =>
|
| + new RelyingpartyResourceApi(_requester);
|
|
|
| - IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + IdentitytoolkitApi(http.Client client,
|
| + {core.String rootUrl: "https://www.googleapis.com/",
|
| + core.String servicePath: "identitytoolkit/v3/relyingparty/"})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class RelyingpartyResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - RelyingpartyResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Creates the URI used by the IdP to authenticate the user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [CreateAuthUriResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<CreateAuthUriResponse> createAuthUri(IdentitytoolkitRelyingpartyCreateAuthUriRequest request) {
|
| + RelyingpartyResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Creates the URI used by the IdP to authenticate the user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [CreateAuthUriResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<CreateAuthUriResponse> createAuthUri(
|
| + IdentitytoolkitRelyingpartyCreateAuthUriRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -68,32 +69,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'createAuthUri';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new CreateAuthUriResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Delete user account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [DeleteAccountResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<DeleteAccountResponse> deleteAccount(IdentitytoolkitRelyingpartyDeleteAccountRequest request) {
|
| + /// Delete user account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [DeleteAccountResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<DeleteAccountResponse> deleteAccount(
|
| + IdentitytoolkitRelyingpartyDeleteAccountRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -107,32 +106,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'deleteAccount';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new DeleteAccountResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Batch download user accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [DownloadAccountResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<DownloadAccountResponse> downloadAccount(IdentitytoolkitRelyingpartyDownloadAccountRequest request) {
|
| + /// Batch download user accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [DownloadAccountResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<DownloadAccountResponse> downloadAccount(
|
| + IdentitytoolkitRelyingpartyDownloadAccountRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -146,32 +143,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'downloadAccount';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new DownloadAccountResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Returns the account info.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [GetAccountInfoResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<GetAccountInfoResponse> getAccountInfo(IdentitytoolkitRelyingpartyGetAccountInfoRequest request) {
|
| + /// Returns the account info.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [GetAccountInfoResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<GetAccountInfoResponse> getAccountInfo(
|
| + IdentitytoolkitRelyingpartyGetAccountInfoRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -185,32 +180,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'getAccountInfo';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new GetAccountInfoResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Get a code for user action confirmation.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [GetOobConfirmationCodeResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(Relyingparty request) {
|
| + /// Get a code for user action confirmation.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [GetOobConfirmationCodeResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(
|
| + Relyingparty request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -224,34 +217,34 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'getOobConfirmationCode';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Get project configuration.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [delegatedProjectNumber] - Delegated GCP project number of the request.
|
| - *
|
| - * [projectNumber] - GCP project number of the request.
|
| - *
|
| - * Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse> getProjectConfig({core.String delegatedProjectNumber, core.String projectNumber}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new GetOobConfirmationCodeResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Get project configuration.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [delegatedProjectNumber] - Delegated GCP project number of the request.
|
| + ///
|
| + /// [projectNumber] - GCP project number of the request.
|
| + ///
|
| + /// Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse>
|
| + getProjectConfig(
|
| + {core.String delegatedProjectNumber, core.String projectNumber}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -268,30 +261,29 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'getProjectConfig';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Get token signing public key.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse> getPublicKeys() {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Get token signing public key.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse>
|
| + getPublicKeys() {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -299,32 +291,29 @@ class RelyingpartyResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| -
|
| _url = 'publicKeys';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Get recaptcha secure param.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [GetRecaptchaParamResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Get recaptcha secure param.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [GetRecaptchaParamResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<GetRecaptchaParamResponse> getRecaptchaParam() {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -333,35 +322,33 @@ class RelyingpartyResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| -
|
| _url = 'getRecaptchaParam';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new GetRecaptchaParamResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Reset password for a user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [ResetPasswordResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ResetPasswordResponse> resetPassword(IdentitytoolkitRelyingpartyResetPasswordRequest request) {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new GetRecaptchaParamResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Reset password for a user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [ResetPasswordResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ResetPasswordResponse> resetPassword(
|
| + IdentitytoolkitRelyingpartyResetPasswordRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -375,32 +362,71 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'resetPassword';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ResetPasswordResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Set account info for a user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [SetAccountInfoResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<SetAccountInfoResponse> setAccountInfo(IdentitytoolkitRelyingpartySetAccountInfoRequest request) {
|
| + /// Send SMS verification code.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a
|
| + /// [IdentitytoolkitRelyingpartySendVerificationCodeResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartySendVerificationCodeResponse>
|
| + sendVerificationCode(
|
| + IdentitytoolkitRelyingpartySendVerificationCodeRequest request) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| +
|
| + _url = 'sendVerificationCode';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartySendVerificationCodeResponse.fromJson(
|
| + data));
|
| + }
|
| +
|
| + /// Set account info for a user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [SetAccountInfoResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<SetAccountInfoResponse> setAccountInfo(
|
| + IdentitytoolkitRelyingpartySetAccountInfoRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -414,32 +440,31 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'setAccountInfo';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new SetAccountInfoResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Set project configuration.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [IdentitytoolkitRelyingpartySetProjectConfigResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<IdentitytoolkitRelyingpartySetProjectConfigResponse> setProjectConfig(IdentitytoolkitRelyingpartySetProjectConfigRequest request) {
|
| + /// Set project configuration.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [IdentitytoolkitRelyingpartySetProjectConfigResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartySetProjectConfigResponse>
|
| + setProjectConfig(
|
| + IdentitytoolkitRelyingpartySetProjectConfigRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -453,32 +478,31 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'setProjectConfig';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Sign out user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<IdentitytoolkitRelyingpartySignOutUserResponse> signOutUser(IdentitytoolkitRelyingpartySignOutUserRequest request) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Sign out user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartySignOutUserResponse> signOutUser(
|
| + IdentitytoolkitRelyingpartySignOutUserRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -492,32 +516,31 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'signOutUser';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Signup new user.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [SignupNewUserResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<SignupNewUserResponse> signupNewUser(IdentitytoolkitRelyingpartySignupNewUserRequest request) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Signup new user.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [SignupNewUserResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<SignupNewUserResponse> signupNewUser(
|
| + IdentitytoolkitRelyingpartySignupNewUserRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -531,32 +554,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'signupNewUser';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new SignupNewUserResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Batch upload existing user accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [UploadAccountResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<UploadAccountResponse> uploadAccount(IdentitytoolkitRelyingpartyUploadAccountRequest request) {
|
| + /// Batch upload existing user accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [UploadAccountResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<UploadAccountResponse> uploadAccount(
|
| + IdentitytoolkitRelyingpartyUploadAccountRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -570,32 +591,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'uploadAccount';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new UploadAccountResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Verifies the assertion returned by the IdP.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [VerifyAssertionResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<VerifyAssertionResponse> verifyAssertion(IdentitytoolkitRelyingpartyVerifyAssertionRequest request) {
|
| + /// Verifies the assertion returned by the IdP.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [VerifyAssertionResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<VerifyAssertionResponse> verifyAssertion(
|
| + IdentitytoolkitRelyingpartyVerifyAssertionRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -609,32 +628,30 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'verifyAssertion';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new VerifyAssertionResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Verifies the developer asserted ID token.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [VerifyCustomTokenResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<VerifyCustomTokenResponse> verifyCustomToken(IdentitytoolkitRelyingpartyVerifyCustomTokenRequest request) {
|
| + /// Verifies the developer asserted ID token.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [VerifyCustomTokenResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<VerifyCustomTokenResponse> verifyCustomToken(
|
| + IdentitytoolkitRelyingpartyVerifyCustomTokenRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -648,32 +665,31 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'verifyCustomToken';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new VerifyCustomTokenResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Verifies the user entered password.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [VerifyPasswordResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<VerifyPasswordResponse> verifyPassword(IdentitytoolkitRelyingpartyVerifyPasswordRequest request) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new VerifyCustomTokenResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Verifies the user entered password.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [VerifyPasswordResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<VerifyPasswordResponse> verifyPassword(
|
| + IdentitytoolkitRelyingpartyVerifyPasswordRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -687,39 +703,82 @@ class RelyingpartyResourceApi {
|
|
|
| _url = 'verifyPassword';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new VerifyPasswordResponse.fromJson(data));
|
| }
|
|
|
| -}
|
| + /// Verifies ownership of a phone number and creates/updates the user account
|
| + /// accordingly.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>
|
| + verifyPhoneNumber(
|
| + IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest request) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
|
|
| + _url = 'verifyPhoneNumber';
|
|
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.fromJson(
|
| + data));
|
| + }
|
| +}
|
|
|
| -/** Response of creating the IDP authentication URL. */
|
| +/// Response of creating the IDP authentication URL.
|
| class CreateAuthUriResponse {
|
| - /** all providers the user has once used to do federated login */
|
| + /// all providers the user has once used to do federated login
|
| core.List<core.String> allProviders;
|
| - /** The URI used by the IDP to authenticate the user. */
|
| +
|
| + /// The URI used by the IDP to authenticate the user.
|
| core.String authUri;
|
| - /** True if captcha is required. */
|
| +
|
| + /// True if captcha is required.
|
| core.bool captchaRequired;
|
| - /** True if the authUri is for user's existing provider. */
|
| +
|
| + /// True if the authUri is for user's existing provider.
|
| core.bool forExistingProvider;
|
| - /** The fixed string identitytoolkit#CreateAuthUriResponse". */
|
| +
|
| + /// The fixed string identitytoolkit#CreateAuthUriResponse".
|
| core.String kind;
|
| - /** The provider ID of the auth URI. */
|
| +
|
| + /// The provider ID of the auth URI.
|
| core.String providerId;
|
| - /** Whether the user is registered if the identifier is an email. */
|
| +
|
| + /// Whether the user is registered if the identifier is an email.
|
| core.bool registered;
|
| - /**
|
| - * Session ID which should be passed in the following verifyAssertion request.
|
| - */
|
| +
|
| + /// Session ID which should be passed in the following verifyAssertion
|
| + /// request.
|
| core.String sessionId;
|
|
|
| CreateAuthUriResponse();
|
| @@ -752,7 +811,8 @@ class CreateAuthUriResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (allProviders != null) {
|
| _json["allProviders"] = allProviders;
|
| }
|
| @@ -781,9 +841,9 @@ class CreateAuthUriResponse {
|
| }
|
| }
|
|
|
| -/** Respone of deleting account. */
|
| +/// Respone of deleting account.
|
| class DeleteAccountResponse {
|
| - /** The fixed string "identitytoolkit#DeleteAccountResponse". */
|
| + /// The fixed string "identitytoolkit#DeleteAccountResponse".
|
| core.String kind;
|
|
|
| DeleteAccountResponse();
|
| @@ -795,7 +855,8 @@ class DeleteAccountResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -803,16 +864,16 @@ class DeleteAccountResponse {
|
| }
|
| }
|
|
|
| -/** Response of downloading accounts in batch. */
|
| +/// Response of downloading accounts in batch.
|
| class DownloadAccountResponse {
|
| - /** The fixed string "identitytoolkit#DownloadAccountResponse". */
|
| + /// The fixed string "identitytoolkit#DownloadAccountResponse".
|
| core.String kind;
|
| - /**
|
| - * The next page token. To be used in a subsequent request to return the next
|
| - * page of results.
|
| - */
|
| +
|
| + /// The next page token. To be used in a subsequent request to return the
|
| + /// next page of results.
|
| core.String nextPageToken;
|
| - /** The user accounts data. */
|
| +
|
| + /// The user accounts data.
|
| core.List<UserInfo> users;
|
|
|
| DownloadAccountResponse();
|
| @@ -825,12 +886,14 @@ class DownloadAccountResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("users")) {
|
| - users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| + users =
|
| + _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -844,19 +907,24 @@ class DownloadAccountResponse {
|
| }
|
| }
|
|
|
| -/** Template for an email template. */
|
| +/// Template for an email template.
|
| class EmailTemplate {
|
| - /** Email body. */
|
| + /// Email body.
|
| core.String body;
|
| - /** Email body format. */
|
| +
|
| + /// Email body format.
|
| core.String format;
|
| - /** From address of the email. */
|
| +
|
| + /// From address of the email.
|
| core.String from;
|
| - /** From display name. */
|
| +
|
| + /// From display name.
|
| core.String fromDisplayName;
|
| - /** Reply-to address. */
|
| +
|
| + /// Reply-to address.
|
| core.String replyTo;
|
| - /** Subject of the email. */
|
| +
|
| + /// Subject of the email.
|
| core.String subject;
|
|
|
| EmailTemplate();
|
| @@ -883,7 +951,8 @@ class EmailTemplate {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (body != null) {
|
| _json["body"] = body;
|
| }
|
| @@ -906,11 +975,12 @@ class EmailTemplate {
|
| }
|
| }
|
|
|
| -/** Response of getting account information. */
|
| +/// Response of getting account information.
|
| class GetAccountInfoResponse {
|
| - /** The fixed string "identitytoolkit#GetAccountInfoResponse". */
|
| + /// The fixed string "identitytoolkit#GetAccountInfoResponse".
|
| core.String kind;
|
| - /** The info of the users. */
|
| +
|
| + /// The info of the users.
|
| core.List<UserInfo> users;
|
|
|
| GetAccountInfoResponse();
|
| @@ -920,12 +990,14 @@ class GetAccountInfoResponse {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("users")) {
|
| - users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| + users =
|
| + _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -936,16 +1008,16 @@ class GetAccountInfoResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * Response of getting a code for user confirmation (reset password, change
|
| - * email etc.).
|
| - */
|
| +/// Response of getting a code for user confirmation (reset password, change
|
| +/// email etc.).
|
| class GetOobConfirmationCodeResponse {
|
| - /** The email address that the email is sent to. */
|
| + /// The email address that the email is sent to.
|
| core.String email;
|
| - /** The fixed string "identitytoolkit#GetOobConfirmationCodeResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
|
| core.String kind;
|
| - /** The code to be send to the user. */
|
| +
|
| + /// The code to be send to the user.
|
| core.String oobCode;
|
|
|
| GetOobConfirmationCodeResponse();
|
| @@ -963,7 +1035,8 @@ class GetOobConfirmationCodeResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (email != null) {
|
| _json["email"] = email;
|
| }
|
| @@ -977,16 +1050,16 @@ class GetOobConfirmationCodeResponse {
|
| }
|
| }
|
|
|
| -/** Response of getting recaptcha param. */
|
| +/// Response of getting recaptcha param.
|
| class GetRecaptchaParamResponse {
|
| - /** The fixed string "identitytoolkit#GetRecaptchaParamResponse". */
|
| + /// The fixed string "identitytoolkit#GetRecaptchaParamResponse".
|
| core.String kind;
|
| - /** Site key registered at recaptcha. */
|
| +
|
| + /// Site key registered at recaptcha.
|
| core.String recaptchaSiteKey;
|
| - /**
|
| - * The stoken field for the recaptcha widget, used to request captcha
|
| - * challenge.
|
| - */
|
| +
|
| + /// The stoken field for the recaptcha widget, used to request captcha
|
| + /// challenge.
|
| core.String recaptchaStoken;
|
|
|
| GetRecaptchaParamResponse();
|
| @@ -1004,7 +1077,8 @@ class GetRecaptchaParamResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -1018,64 +1092,60 @@ class GetRecaptchaParamResponse {
|
| }
|
| }
|
|
|
| -/** Request to get the IDP authentication URL. */
|
| +/// Request to get the IDP authentication URL.
|
| class IdentitytoolkitRelyingpartyCreateAuthUriRequest {
|
| - /**
|
| - * The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
|
| - * BUNDLE_ID for iOS.
|
| - */
|
| + /// The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
|
| + /// BUNDLE_ID for iOS.
|
| core.String appId;
|
| - /**
|
| - * Explicitly specify the auth flow type. Currently only support "CODE_FLOW"
|
| - * type. The field is only used for Google provider.
|
| - */
|
| +
|
| + /// Explicitly specify the auth flow type. Currently only support "CODE_FLOW"
|
| + /// type. The field is only used for Google provider.
|
| core.String authFlowType;
|
| - /** The relying party OAuth client ID. */
|
| +
|
| + /// The relying party OAuth client ID.
|
| core.String clientId;
|
| - /**
|
| - * The opaque value used by the client to maintain context info between the
|
| - * authentication request and the IDP callback.
|
| - */
|
| +
|
| + /// The opaque value used by the client to maintain context info between the
|
| + /// authentication request and the IDP callback.
|
| core.String context;
|
| - /**
|
| - * The URI to which the IDP redirects the user after the federated login flow.
|
| - */
|
| +
|
| + /// The URI to which the IDP redirects the user after the federated login
|
| + /// flow.
|
| core.String continueUri;
|
| - /**
|
| - * The query parameter that client can customize by themselves in auth url.
|
| - * The following parameters are reserved for server so that they cannot be
|
| - * customized by clients: client_id, response_type, scope, redirect_uri,
|
| - * state, oauth_token.
|
| - */
|
| +
|
| + /// The query parameter that client can customize by themselves in auth url.
|
| + /// The following parameters are reserved for server so that they cannot be
|
| + /// customized by clients: client_id, response_type, scope, redirect_uri,
|
| + /// state, oauth_token.
|
| core.Map<core.String, core.String> customParameter;
|
| - /**
|
| - * The hosted domain to restrict sign-in to accounts at that domain for Google
|
| - * Apps hosted accounts.
|
| - */
|
| +
|
| + /// The hosted domain to restrict sign-in to accounts at that domain for
|
| + /// Google Apps hosted accounts.
|
| core.String hostedDomain;
|
| - /** The email or federated ID of the user. */
|
| +
|
| + /// The email or federated ID of the user.
|
| core.String identifier;
|
| - /** The developer's consumer key for OpenId OAuth Extension */
|
| +
|
| + /// The developer's consumer key for OpenId OAuth Extension
|
| core.String oauthConsumerKey;
|
| - /**
|
| - * Additional oauth scopes, beyond the basid user profile, that the user would
|
| - * be prompted to grant
|
| - */
|
| +
|
| + /// Additional oauth scopes, beyond the basid user profile, that the user
|
| + /// would be prompted to grant
|
| core.String oauthScope;
|
| - /**
|
| - * Optional realm for OpenID protocol. The sub string "scheme://domain:port"
|
| - * of the param "continueUri" is used if this is not set.
|
| - */
|
| +
|
| + /// Optional realm for OpenID protocol. The sub string "scheme://domain:port"
|
| + /// of the param "continueUri" is used if this is not set.
|
| core.String openidRealm;
|
| - /** The native app package for OTA installation. */
|
| +
|
| + /// The native app package for OTA installation.
|
| core.String otaApp;
|
| - /**
|
| - * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
|
| - * aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP
|
| - * identifier.
|
| - */
|
| +
|
| + /// The IdP ID. For white listed IdPs it's a short domain name e.g.
|
| + /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
|
| + /// the OP identifier.
|
| core.String providerId;
|
| - /** The session_id passed by client. */
|
| +
|
| + /// The session_id passed by client.
|
| core.String sessionId;
|
|
|
| IdentitytoolkitRelyingpartyCreateAuthUriRequest();
|
| @@ -1126,7 +1196,8 @@ class IdentitytoolkitRelyingpartyCreateAuthUriRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (appId != null) {
|
| _json["appId"] = appId;
|
| }
|
| @@ -1173,16 +1244,16 @@ class IdentitytoolkitRelyingpartyCreateAuthUriRequest {
|
| }
|
| }
|
|
|
| -/** Request to delete account. */
|
| +/// Request to delete account.
|
| class IdentitytoolkitRelyingpartyDeleteAccountRequest {
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The GITKit token or STS id token of the authenticated user. */
|
| +
|
| + /// The GITKit token or STS id token of the authenticated user.
|
| core.String idToken;
|
| - /** The local ID of the user. */
|
| +
|
| + /// The local ID of the user.
|
| core.String localId;
|
|
|
| IdentitytoolkitRelyingpartyDeleteAccountRequest();
|
| @@ -1200,7 +1271,8 @@ class IdentitytoolkitRelyingpartyDeleteAccountRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| @@ -1214,24 +1286,21 @@ class IdentitytoolkitRelyingpartyDeleteAccountRequest {
|
| }
|
| }
|
|
|
| -/** Request to download user account in batch. */
|
| +/// Request to download user account in batch.
|
| class IdentitytoolkitRelyingpartyDownloadAccountRequest {
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The max number of results to return in the response. */
|
| +
|
| + /// The max number of results to return in the response.
|
| core.int maxResults;
|
| - /**
|
| - * The token for the next page. This should be taken from the previous
|
| - * response.
|
| - */
|
| +
|
| + /// The token for the next page. This should be taken from the previous
|
| + /// response.
|
| core.String nextPageToken;
|
| - /**
|
| - * Specify which project (field value is actually project id) to operate. Only
|
| - * used when provided credential.
|
| - */
|
| +
|
| + /// Specify which project (field value is actually project id) to operate.
|
| + /// Only used when provided credential.
|
| core.String targetProjectId;
|
|
|
| IdentitytoolkitRelyingpartyDownloadAccountRequest();
|
| @@ -1252,7 +1321,8 @@ class IdentitytoolkitRelyingpartyDownloadAccountRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| @@ -1269,20 +1339,22 @@ class IdentitytoolkitRelyingpartyDownloadAccountRequest {
|
| }
|
| }
|
|
|
| -/** Request to get the account information. */
|
| +/// Request to get the account information.
|
| class IdentitytoolkitRelyingpartyGetAccountInfoRequest {
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The list of emails of the users to inquiry. */
|
| +
|
| + /// The list of emails of the users to inquiry.
|
| core.List<core.String> email;
|
| - /** The GITKit token of the authenticated user. */
|
| +
|
| + /// The GITKit token of the authenticated user.
|
| core.String idToken;
|
| - /** The list of local ID's of the users to inquiry. */
|
| +
|
| + /// The list of local ID's of the users to inquiry.
|
| core.List<core.String> localId;
|
| - /** Privileged caller can query users by specified phone number. */
|
| +
|
| + /// Privileged caller can query users by specified phone number.
|
| core.List<core.String> phoneNumber;
|
|
|
| IdentitytoolkitRelyingpartyGetAccountInfoRequest();
|
| @@ -1306,7 +1378,8 @@ class IdentitytoolkitRelyingpartyGetAccountInfoRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| @@ -1326,30 +1399,40 @@ class IdentitytoolkitRelyingpartyGetAccountInfoRequest {
|
| }
|
| }
|
|
|
| -/** Response of getting the project configuration. */
|
| +/// Response of getting the project configuration.
|
| class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
|
| - /** Whether to allow password user sign in or sign up. */
|
| + /// Whether to allow password user sign in or sign up.
|
| core.bool allowPasswordUser;
|
| - /** Browser API key, needed when making http request to Apiary. */
|
| +
|
| + /// Browser API key, needed when making http request to Apiary.
|
| core.String apiKey;
|
| - /** Authorized domains. */
|
| +
|
| + /// Authorized domains.
|
| core.List<core.String> authorizedDomains;
|
| - /** Change email template. */
|
| +
|
| + /// Change email template.
|
| EmailTemplate changeEmailTemplate;
|
| core.String dynamicLinksDomain;
|
| - /** Whether anonymous user is enabled. */
|
| +
|
| + /// Whether anonymous user is enabled.
|
| core.bool enableAnonymousUser;
|
| - /** OAuth2 provider configuration. */
|
| +
|
| + /// OAuth2 provider configuration.
|
| core.List<IdpConfig> idpConfig;
|
| - /** Legacy reset password email template. */
|
| +
|
| + /// Legacy reset password email template.
|
| EmailTemplate legacyResetPasswordTemplate;
|
| - /** Project ID of the relying party. */
|
| +
|
| + /// Project ID of the relying party.
|
| core.String projectId;
|
| - /** Reset password email template. */
|
| +
|
| + /// Reset password email template.
|
| EmailTemplate resetPasswordTemplate;
|
| - /** Whether to use email sending provided by Firebear. */
|
| +
|
| + /// Whether to use email sending provided by Firebear.
|
| core.bool useEmailSending;
|
| - /** Verify email template. */
|
| +
|
| + /// Verify email template.
|
| EmailTemplate verifyEmailTemplate;
|
|
|
| IdentitytoolkitRelyingpartyGetProjectConfigResponse();
|
| @@ -1365,7 +1448,8 @@ class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
|
| authorizedDomains = _json["authorizedDomains"];
|
| }
|
| if (_json.containsKey("changeEmailTemplate")) {
|
| - changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
|
| + changeEmailTemplate =
|
| + new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
|
| }
|
| if (_json.containsKey("dynamicLinksDomain")) {
|
| dynamicLinksDomain = _json["dynamicLinksDomain"];
|
| @@ -1374,27 +1458,33 @@ class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
|
| enableAnonymousUser = _json["enableAnonymousUser"];
|
| }
|
| if (_json.containsKey("idpConfig")) {
|
| - idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value)).toList();
|
| + idpConfig = _json["idpConfig"]
|
| + .map((value) => new IdpConfig.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("legacyResetPasswordTemplate")) {
|
| - legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
|
| + legacyResetPasswordTemplate =
|
| + new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
|
| }
|
| if (_json.containsKey("projectId")) {
|
| projectId = _json["projectId"];
|
| }
|
| if (_json.containsKey("resetPasswordTemplate")) {
|
| - resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
|
| + resetPasswordTemplate =
|
| + new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
|
| }
|
| if (_json.containsKey("useEmailSending")) {
|
| useEmailSending = _json["useEmailSending"];
|
| }
|
| if (_json.containsKey("verifyEmailTemplate")) {
|
| - verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
|
| + verifyEmailTemplate =
|
| + new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (allowPasswordUser != null) {
|
| _json["allowPasswordUser"] = allowPasswordUser;
|
| }
|
| @@ -1417,7 +1507,8 @@ class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
|
| _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList();
|
| }
|
| if (legacyResetPasswordTemplate != null) {
|
| - _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJson();
|
| + _json["legacyResetPasswordTemplate"] =
|
| + (legacyResetPasswordTemplate).toJson();
|
| }
|
| if (projectId != null) {
|
| _json["projectId"] = projectId;
|
| @@ -1435,7 +1526,7 @@ class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
|
| }
|
| }
|
|
|
| -/** Respone of getting public keys. */
|
| +/// Respone of getting public keys.
|
| class IdentitytoolkitRelyingpartyGetPublicKeysResponse
|
| extends collection.MapBase<core.String, core.String> {
|
| final core.Map _innerMap = {};
|
| @@ -1449,15 +1540,15 @@ class IdentitytoolkitRelyingpartyGetPublicKeysResponse
|
| }
|
|
|
| core.Map<core.String, core.String> toJson() {
|
| - final core.Map<core.String, core.String> _json = <core.String, core.String>{};
|
| + final core.Map<core.String, core.String> _json =
|
| + <core.String, core.String>{};
|
| this.forEach((core.String key, value) {
|
| _json[key] = value;
|
| });
|
| return _json;
|
| }
|
|
|
| - core.String operator [](core.Object key)
|
| - => _innerMap[key];
|
| + core.String operator [](core.Object key) => _innerMap[key];
|
|
|
| operator []=(core.String key, core.String value) {
|
| _innerMap[key] = value;
|
| @@ -1472,15 +1563,18 @@ class IdentitytoolkitRelyingpartyGetPublicKeysResponse
|
| core.String remove(core.Object key) => _innerMap.remove(key);
|
| }
|
|
|
| -/** Request to reset the password. */
|
| +/// Request to reset the password.
|
| class IdentitytoolkitRelyingpartyResetPasswordRequest {
|
| - /** The email address of the user. */
|
| + /// The email address of the user.
|
| core.String email;
|
| - /** The new password inputted by the user. */
|
| +
|
| + /// The new password inputted by the user.
|
| core.String newPassword;
|
| - /** The old password inputted by the user. */
|
| +
|
| + /// The old password inputted by the user.
|
| core.String oldPassword;
|
| - /** The confirmation code. */
|
| +
|
| + /// The confirmation code.
|
| core.String oobCode;
|
|
|
| IdentitytoolkitRelyingpartyResetPasswordRequest();
|
| @@ -1501,7 +1595,8 @@ class IdentitytoolkitRelyingpartyResetPasswordRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (email != null) {
|
| _json["email"] = email;
|
| }
|
| @@ -1518,54 +1613,151 @@ class IdentitytoolkitRelyingpartyResetPasswordRequest {
|
| }
|
| }
|
|
|
| -/** Request to set the account information. */
|
| +/// Request for Identitytoolkit-SendVerificationCode
|
| +class IdentitytoolkitRelyingpartySendVerificationCodeRequest {
|
| + /// Receipt of successful app token validation with APNS.
|
| + core.String iosReceipt;
|
| +
|
| + /// Secret delivered to iOS app via APNS.
|
| + core.String iosSecret;
|
| +
|
| + /// The phone number to send the verification code to in E.164 format.
|
| + core.String phoneNumber;
|
| +
|
| + /// Recaptcha solution.
|
| + core.String recaptchaToken;
|
| +
|
| + IdentitytoolkitRelyingpartySendVerificationCodeRequest();
|
| +
|
| + IdentitytoolkitRelyingpartySendVerificationCodeRequest.fromJson(
|
| + core.Map _json) {
|
| + if (_json.containsKey("iosReceipt")) {
|
| + iosReceipt = _json["iosReceipt"];
|
| + }
|
| + if (_json.containsKey("iosSecret")) {
|
| + iosSecret = _json["iosSecret"];
|
| + }
|
| + if (_json.containsKey("phoneNumber")) {
|
| + phoneNumber = _json["phoneNumber"];
|
| + }
|
| + if (_json.containsKey("recaptchaToken")) {
|
| + recaptchaToken = _json["recaptchaToken"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (iosReceipt != null) {
|
| + _json["iosReceipt"] = iosReceipt;
|
| + }
|
| + if (iosSecret != null) {
|
| + _json["iosSecret"] = iosSecret;
|
| + }
|
| + if (phoneNumber != null) {
|
| + _json["phoneNumber"] = phoneNumber;
|
| + }
|
| + if (recaptchaToken != null) {
|
| + _json["recaptchaToken"] = recaptchaToken;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// Response for Identitytoolkit-SendVerificationCode
|
| +class IdentitytoolkitRelyingpartySendVerificationCodeResponse {
|
| + /// Encrypted session information
|
| + core.String sessionInfo;
|
| +
|
| + IdentitytoolkitRelyingpartySendVerificationCodeResponse();
|
| +
|
| + IdentitytoolkitRelyingpartySendVerificationCodeResponse.fromJson(
|
| + core.Map _json) {
|
| + if (_json.containsKey("sessionInfo")) {
|
| + sessionInfo = _json["sessionInfo"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (sessionInfo != null) {
|
| + _json["sessionInfo"] = sessionInfo;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// Request to set the account information.
|
| class IdentitytoolkitRelyingpartySetAccountInfoRequest {
|
| - /** The captcha challenge. */
|
| + /// The captcha challenge.
|
| core.String captchaChallenge;
|
| - /** Response to the captcha. */
|
| +
|
| + /// Response to the captcha.
|
| core.String captchaResponse;
|
| - /** The timestamp when the account is created. */
|
| +
|
| + /// The timestamp when the account is created.
|
| core.String createdAt;
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| +
|
| + /// The custom attributes to be set in the user's id token.
|
| + core.String customAttributes;
|
| +
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The attributes users request to delete. */
|
| +
|
| + /// The attributes users request to delete.
|
| core.List<core.String> deleteAttribute;
|
| - /** The IDPs the user request to delete. */
|
| +
|
| + /// The IDPs the user request to delete.
|
| core.List<core.String> deleteProvider;
|
| - /** Whether to disable the user. */
|
| +
|
| + /// Whether to disable the user.
|
| core.bool disableUser;
|
| - /** The name of the user. */
|
| +
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /** Mark the email as verified or not. */
|
| +
|
| + /// Mark the email as verified or not.
|
| core.bool emailVerified;
|
| - /** The GITKit token of the authenticated user. */
|
| +
|
| + /// The GITKit token of the authenticated user.
|
| core.String idToken;
|
| - /** Instance id token of the app. */
|
| +
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /** Last login timestamp. */
|
| +
|
| + /// Last login timestamp.
|
| core.String lastLoginAt;
|
| - /** The local ID of the user. */
|
| +
|
| + /// The local ID of the user.
|
| core.String localId;
|
| - /** The out-of-band code of the change email request. */
|
| +
|
| + /// The out-of-band code of the change email request.
|
| core.String oobCode;
|
| - /** The new password of the user. */
|
| +
|
| + /// The new password of the user.
|
| core.String password;
|
| - /** Privileged caller can update user with specified phone number. */
|
| +
|
| + /// Privileged caller can update user with specified phone number.
|
| core.String phoneNumber;
|
| - /** The photo url of the user. */
|
| +
|
| + /// The photo url of the user.
|
| core.String photoUrl;
|
| - /** The associated IDPs of the user. */
|
| +
|
| + /// The associated IDPs of the user.
|
| core.List<core.String> provider;
|
| - /** Whether return sts id token and refresh token instead of gitkit token. */
|
| +
|
| + /// Whether return sts id token and refresh token instead of gitkit token.
|
| core.bool returnSecureToken;
|
| - /** Mark the user to upgrade to federated login. */
|
| +
|
| + /// Mark the user to upgrade to federated login.
|
| core.bool upgradeToFederatedLogin;
|
| - /** Timestamp in seconds for valid login token. */
|
| +
|
| + /// Timestamp in seconds for valid login token.
|
| core.String validSince;
|
|
|
| IdentitytoolkitRelyingpartySetAccountInfoRequest();
|
| @@ -1580,6 +1772,9 @@ class IdentitytoolkitRelyingpartySetAccountInfoRequest {
|
| if (_json.containsKey("createdAt")) {
|
| createdAt = _json["createdAt"];
|
| }
|
| + if (_json.containsKey("customAttributes")) {
|
| + customAttributes = _json["customAttributes"];
|
| + }
|
| if (_json.containsKey("delegatedProjectNumber")) {
|
| delegatedProjectNumber = _json["delegatedProjectNumber"];
|
| }
|
| @@ -1640,7 +1835,8 @@ class IdentitytoolkitRelyingpartySetAccountInfoRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (captchaChallenge != null) {
|
| _json["captchaChallenge"] = captchaChallenge;
|
| }
|
| @@ -1650,6 +1846,9 @@ class IdentitytoolkitRelyingpartySetAccountInfoRequest {
|
| if (createdAt != null) {
|
| _json["createdAt"] = createdAt;
|
| }
|
| + if (customAttributes != null) {
|
| + _json["customAttributes"] = customAttributes;
|
| + }
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| @@ -1711,32 +1910,40 @@ class IdentitytoolkitRelyingpartySetAccountInfoRequest {
|
| }
|
| }
|
|
|
| -/** Request to set the project configuration. */
|
| +/// Request to set the project configuration.
|
| class IdentitytoolkitRelyingpartySetProjectConfigRequest {
|
| - /** Whether to allow password user sign in or sign up. */
|
| + /// Whether to allow password user sign in or sign up.
|
| core.bool allowPasswordUser;
|
| - /** Browser API key, needed when making http request to Apiary. */
|
| +
|
| + /// Browser API key, needed when making http request to Apiary.
|
| core.String apiKey;
|
| - /** Authorized domains for widget redirect. */
|
| +
|
| + /// Authorized domains for widget redirect.
|
| core.List<core.String> authorizedDomains;
|
| - /** Change email template. */
|
| +
|
| + /// Change email template.
|
| EmailTemplate changeEmailTemplate;
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| +
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** Whether to enable anonymous user. */
|
| +
|
| + /// Whether to enable anonymous user.
|
| core.bool enableAnonymousUser;
|
| - /** Oauth2 provider configuration. */
|
| +
|
| + /// Oauth2 provider configuration.
|
| core.List<IdpConfig> idpConfig;
|
| - /** Legacy reset password email template. */
|
| +
|
| + /// Legacy reset password email template.
|
| EmailTemplate legacyResetPasswordTemplate;
|
| - /** Reset password email template. */
|
| +
|
| + /// Reset password email template.
|
| EmailTemplate resetPasswordTemplate;
|
| - /** Whether to use email sending provided by Firebear. */
|
| +
|
| + /// Whether to use email sending provided by Firebear.
|
| core.bool useEmailSending;
|
| - /** Verify email template. */
|
| +
|
| + /// Verify email template.
|
| EmailTemplate verifyEmailTemplate;
|
|
|
| IdentitytoolkitRelyingpartySetProjectConfigRequest();
|
| @@ -1752,7 +1959,8 @@ class IdentitytoolkitRelyingpartySetProjectConfigRequest {
|
| authorizedDomains = _json["authorizedDomains"];
|
| }
|
| if (_json.containsKey("changeEmailTemplate")) {
|
| - changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
|
| + changeEmailTemplate =
|
| + new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
|
| }
|
| if (_json.containsKey("delegatedProjectNumber")) {
|
| delegatedProjectNumber = _json["delegatedProjectNumber"];
|
| @@ -1761,24 +1969,30 @@ class IdentitytoolkitRelyingpartySetProjectConfigRequest {
|
| enableAnonymousUser = _json["enableAnonymousUser"];
|
| }
|
| if (_json.containsKey("idpConfig")) {
|
| - idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value)).toList();
|
| + idpConfig = _json["idpConfig"]
|
| + .map((value) => new IdpConfig.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("legacyResetPasswordTemplate")) {
|
| - legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
|
| + legacyResetPasswordTemplate =
|
| + new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
|
| }
|
| if (_json.containsKey("resetPasswordTemplate")) {
|
| - resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
|
| + resetPasswordTemplate =
|
| + new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
|
| }
|
| if (_json.containsKey("useEmailSending")) {
|
| useEmailSending = _json["useEmailSending"];
|
| }
|
| if (_json.containsKey("verifyEmailTemplate")) {
|
| - verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
|
| + verifyEmailTemplate =
|
| + new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (allowPasswordUser != null) {
|
| _json["allowPasswordUser"] = allowPasswordUser;
|
| }
|
| @@ -1801,7 +2015,8 @@ class IdentitytoolkitRelyingpartySetProjectConfigRequest {
|
| _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList();
|
| }
|
| if (legacyResetPasswordTemplate != null) {
|
| - _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJson();
|
| + _json["legacyResetPasswordTemplate"] =
|
| + (legacyResetPasswordTemplate).toJson();
|
| }
|
| if (resetPasswordTemplate != null) {
|
| _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson();
|
| @@ -1816,9 +2031,9 @@ class IdentitytoolkitRelyingpartySetProjectConfigRequest {
|
| }
|
| }
|
|
|
| -/** Response of setting the project configuration. */
|
| +/// Response of setting the project configuration.
|
| class IdentitytoolkitRelyingpartySetProjectConfigResponse {
|
| - /** Project ID of the relying party. */
|
| + /// Project ID of the relying party.
|
| core.String projectId;
|
|
|
| IdentitytoolkitRelyingpartySetProjectConfigResponse();
|
| @@ -1830,7 +2045,8 @@ class IdentitytoolkitRelyingpartySetProjectConfigResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (projectId != null) {
|
| _json["projectId"] = projectId;
|
| }
|
| @@ -1838,11 +2054,12 @@ class IdentitytoolkitRelyingpartySetProjectConfigResponse {
|
| }
|
| }
|
|
|
| -/** Request to sign out user. */
|
| +/// Request to sign out user.
|
| class IdentitytoolkitRelyingpartySignOutUserRequest {
|
| - /** Instance id token of the app. */
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /** The local ID of the user. */
|
| +
|
| + /// The local ID of the user.
|
| core.String localId;
|
|
|
| IdentitytoolkitRelyingpartySignOutUserRequest();
|
| @@ -1857,7 +2074,8 @@ class IdentitytoolkitRelyingpartySignOutUserRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (instanceId != null) {
|
| _json["instanceId"] = instanceId;
|
| }
|
| @@ -1868,9 +2086,9 @@ class IdentitytoolkitRelyingpartySignOutUserRequest {
|
| }
|
| }
|
|
|
| -/** Response of signing out user. */
|
| +/// Response of signing out user.
|
| class IdentitytoolkitRelyingpartySignOutUserResponse {
|
| - /** The local ID of the user. */
|
| + /// The local ID of the user.
|
| core.String localId;
|
|
|
| IdentitytoolkitRelyingpartySignOutUserResponse();
|
| @@ -1882,7 +2100,8 @@ class IdentitytoolkitRelyingpartySignOutUserResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (localId != null) {
|
| _json["localId"] = localId;
|
| }
|
| @@ -1890,35 +2109,42 @@ class IdentitytoolkitRelyingpartySignOutUserResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * Request to signup new user, create anonymous user or anonymous user reauth.
|
| - */
|
| +/// Request to signup new user, create anonymous user or anonymous user reauth.
|
| class IdentitytoolkitRelyingpartySignupNewUserRequest {
|
| - /** The captcha challenge. */
|
| + /// The captcha challenge.
|
| core.String captchaChallenge;
|
| - /** Response to the captcha. */
|
| +
|
| + /// Response to the captcha.
|
| core.String captchaResponse;
|
| - /** Whether to disable the user. Only can be used by service account. */
|
| +
|
| + /// Whether to disable the user. Only can be used by service account.
|
| core.bool disabled;
|
| - /** The name of the user. */
|
| +
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /**
|
| - * Mark the email as verified or not. Only can be used by service account.
|
| - */
|
| +
|
| + /// Mark the email as verified or not. Only can be used by service account.
|
| core.bool emailVerified;
|
| - /** The GITKit token of the authenticated user. */
|
| +
|
| + /// The GITKit token of the authenticated user.
|
| core.String idToken;
|
| - /** Instance id token of the app. */
|
| +
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /** Privileged caller can create user with specified user id. */
|
| +
|
| + /// Privileged caller can create user with specified user id.
|
| core.String localId;
|
| - /** The new password of the user. */
|
| +
|
| + /// The new password of the user.
|
| core.String password;
|
| - /** Privileged caller can create user with specified phone number. */
|
| +
|
| + /// Privileged caller can create user with specified phone number.
|
| core.String phoneNumber;
|
| - /** The photo url of the user. */
|
| +
|
| + /// The photo url of the user.
|
| core.String photoUrl;
|
|
|
| IdentitytoolkitRelyingpartySignupNewUserRequest();
|
| @@ -1963,7 +2189,8 @@ class IdentitytoolkitRelyingpartySignupNewUserRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (captchaChallenge != null) {
|
| _json["captchaChallenge"] = captchaChallenge;
|
| }
|
| @@ -2004,50 +2231,61 @@ class IdentitytoolkitRelyingpartySignupNewUserRequest {
|
| }
|
| }
|
|
|
| -/** Request to upload user account in batch. */
|
| +/// Request to upload user account in batch.
|
| class IdentitytoolkitRelyingpartyUploadAccountRequest {
|
| - /** Whether allow overwrite existing account when user local_id exists. */
|
| + /// Whether allow overwrite existing account when user local_id exists.
|
| core.bool allowOverwrite;
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| + core.int blockSize;
|
| +
|
| + /// The following 4 fields are for standard scrypt algorithm.
|
| + core.int cpuMemCost;
|
| +
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The password hash algorithm. */
|
| + core.int dkLen;
|
| +
|
| + /// The password hash algorithm.
|
| core.String hashAlgorithm;
|
| - /** Memory cost for hash calculation. Used by scrypt similar algorithms. */
|
| +
|
| + /// Memory cost for hash calculation. Used by scrypt similar algorithms.
|
| core.int memoryCost;
|
| - /** Rounds for hash calculation. Used by scrypt and similar algorithms. */
|
| + core.int parallelization;
|
| +
|
| + /// Rounds for hash calculation. Used by scrypt and similar algorithms.
|
| core.int rounds;
|
| - /** The salt separator. */
|
| +
|
| + /// The salt separator.
|
| core.String saltSeparator;
|
| core.List<core.int> get saltSeparatorAsBytes {
|
| return convert.BASE64.decode(saltSeparator);
|
| }
|
|
|
| void set saltSeparatorAsBytes(core.List<core.int> _bytes) {
|
| - saltSeparator = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + saltSeparator =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /**
|
| - * If true, backend will do sanity check(including duplicate email and
|
| - * federated id) when uploading account.
|
| - */
|
| +
|
| + /// If true, backend will do sanity check(including duplicate email and
|
| + /// federated id) when uploading account.
|
| core.bool sanityCheck;
|
| - /** The key for to hash the password. */
|
| +
|
| + /// The key for to hash the password.
|
| core.String signerKey;
|
| core.List<core.int> get signerKeyAsBytes {
|
| return convert.BASE64.decode(signerKey);
|
| }
|
|
|
| void set signerKeyAsBytes(core.List<core.int> _bytes) {
|
| - signerKey = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + signerKey =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /**
|
| - * Specify which project (field value is actually project id) to operate. Only
|
| - * used when provided credential.
|
| - */
|
| +
|
| + /// Specify which project (field value is actually project id) to operate.
|
| + /// Only used when provided credential.
|
| core.String targetProjectId;
|
| - /** The account info to be stored. */
|
| +
|
| + /// The account info to be stored.
|
| core.List<UserInfo> users;
|
|
|
| IdentitytoolkitRelyingpartyUploadAccountRequest();
|
| @@ -2056,15 +2294,27 @@ class IdentitytoolkitRelyingpartyUploadAccountRequest {
|
| if (_json.containsKey("allowOverwrite")) {
|
| allowOverwrite = _json["allowOverwrite"];
|
| }
|
| + if (_json.containsKey("blockSize")) {
|
| + blockSize = _json["blockSize"];
|
| + }
|
| + if (_json.containsKey("cpuMemCost")) {
|
| + cpuMemCost = _json["cpuMemCost"];
|
| + }
|
| if (_json.containsKey("delegatedProjectNumber")) {
|
| delegatedProjectNumber = _json["delegatedProjectNumber"];
|
| }
|
| + if (_json.containsKey("dkLen")) {
|
| + dkLen = _json["dkLen"];
|
| + }
|
| if (_json.containsKey("hashAlgorithm")) {
|
| hashAlgorithm = _json["hashAlgorithm"];
|
| }
|
| if (_json.containsKey("memoryCost")) {
|
| memoryCost = _json["memoryCost"];
|
| }
|
| + if (_json.containsKey("parallelization")) {
|
| + parallelization = _json["parallelization"];
|
| + }
|
| if (_json.containsKey("rounds")) {
|
| rounds = _json["rounds"];
|
| }
|
| @@ -2081,24 +2331,38 @@ class IdentitytoolkitRelyingpartyUploadAccountRequest {
|
| targetProjectId = _json["targetProjectId"];
|
| }
|
| if (_json.containsKey("users")) {
|
| - users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| + users =
|
| + _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (allowOverwrite != null) {
|
| _json["allowOverwrite"] = allowOverwrite;
|
| }
|
| + if (blockSize != null) {
|
| + _json["blockSize"] = blockSize;
|
| + }
|
| + if (cpuMemCost != null) {
|
| + _json["cpuMemCost"] = cpuMemCost;
|
| + }
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| + if (dkLen != null) {
|
| + _json["dkLen"] = dkLen;
|
| + }
|
| if (hashAlgorithm != null) {
|
| _json["hashAlgorithm"] = hashAlgorithm;
|
| }
|
| if (memoryCost != null) {
|
| _json["memoryCost"] = memoryCost;
|
| }
|
| + if (parallelization != null) {
|
| + _json["parallelization"] = parallelization;
|
| + }
|
| if (rounds != null) {
|
| _json["rounds"] = rounds;
|
| }
|
| @@ -2121,47 +2385,45 @@ class IdentitytoolkitRelyingpartyUploadAccountRequest {
|
| }
|
| }
|
|
|
| -/** Request to verify the IDP assertion. */
|
| +/// Request to verify the IDP assertion.
|
| class IdentitytoolkitRelyingpartyVerifyAssertionRequest {
|
| - /**
|
| - * When it's true, automatically creates a new account if the user doesn't
|
| - * exist. When it's false, allows existing user to sign in normally and throws
|
| - * exception if the user doesn't exist.
|
| - */
|
| + /// When it's true, automatically creates a new account if the user doesn't
|
| + /// exist. When it's false, allows existing user to sign in normally and
|
| + /// throws exception if the user doesn't exist.
|
| core.bool autoCreate;
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| +
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The GITKit token of the authenticated user. */
|
| +
|
| + /// The GITKit token of the authenticated user.
|
| core.String idToken;
|
| - /** Instance id token of the app. */
|
| +
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /**
|
| - * The GITKit token for the non-trusted IDP pending to be confirmed by the
|
| - * user.
|
| - */
|
| +
|
| + /// The GITKit token for the non-trusted IDP pending to be confirmed by the
|
| + /// user.
|
| core.String pendingIdToken;
|
| - /** The post body if the request is a HTTP POST. */
|
| +
|
| + /// The post body if the request is a HTTP POST.
|
| core.String postBody;
|
| - /**
|
| - * The URI to which the IDP redirects the user back. It may contain federated
|
| - * login result params added by the IDP.
|
| - */
|
| +
|
| + /// The URI to which the IDP redirects the user back. It may contain
|
| + /// federated login result params added by the IDP.
|
| core.String requestUri;
|
| - /**
|
| - * Whether return 200 and IDP credential rather than throw exception when
|
| - * federated id is already linked.
|
| - */
|
| +
|
| + /// Whether return 200 and IDP credential rather than throw exception when
|
| + /// federated id is already linked.
|
| core.bool returnIdpCredential;
|
| - /** Whether to return refresh tokens. */
|
| +
|
| + /// Whether to return refresh tokens.
|
| core.bool returnRefreshToken;
|
| - /** Whether return sts id token and refresh token instead of gitkit token. */
|
| +
|
| + /// Whether return sts id token and refresh token instead of gitkit token.
|
| core.bool returnSecureToken;
|
| - /**
|
| - * Session ID, which should match the one in previous createAuthUri request.
|
| - */
|
| +
|
| + /// Session ID, which should match the one in previous createAuthUri request.
|
| core.String sessionId;
|
|
|
| IdentitytoolkitRelyingpartyVerifyAssertionRequest();
|
| @@ -2203,7 +2465,8 @@ class IdentitytoolkitRelyingpartyVerifyAssertionRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (autoCreate != null) {
|
| _json["autoCreate"] = autoCreate;
|
| }
|
| @@ -2241,18 +2504,19 @@ class IdentitytoolkitRelyingpartyVerifyAssertionRequest {
|
| }
|
| }
|
|
|
| -/** Request to verify a custom token */
|
| +/// Request to verify a custom token
|
| class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest {
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** Instance id token of the app. */
|
| +
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /** Whether return sts id token and refresh token instead of gitkit token. */
|
| +
|
| + /// Whether return sts id token and refresh token instead of gitkit token.
|
| core.bool returnSecureToken;
|
| - /** The custom token to verify */
|
| +
|
| + /// The custom token to verify
|
| core.String token;
|
|
|
| IdentitytoolkitRelyingpartyVerifyCustomTokenRequest();
|
| @@ -2273,7 +2537,8 @@ class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (delegatedProjectNumber != null) {
|
| _json["delegatedProjectNumber"] = delegatedProjectNumber;
|
| }
|
| @@ -2290,31 +2555,35 @@ class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest {
|
| }
|
| }
|
|
|
| -/** Request to verify the password. */
|
| +/// Request to verify the password.
|
| class IdentitytoolkitRelyingpartyVerifyPasswordRequest {
|
| - /** The captcha challenge. */
|
| + /// The captcha challenge.
|
| core.String captchaChallenge;
|
| - /** Response to the captcha. */
|
| +
|
| + /// Response to the captcha.
|
| core.String captchaResponse;
|
| - /**
|
| - * GCP project number of the requesting delegated app. Currently only intended
|
| - * for Firebase V1 migration.
|
| - */
|
| +
|
| + /// GCP project number of the requesting delegated app. Currently only
|
| + /// intended for Firebase V1 migration.
|
| core.String delegatedProjectNumber;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /** The GITKit token of the authenticated user. */
|
| +
|
| + /// The GITKit token of the authenticated user.
|
| core.String idToken;
|
| - /** Instance id token of the app. */
|
| +
|
| + /// Instance id token of the app.
|
| core.String instanceId;
|
| - /** The password inputed by the user. */
|
| +
|
| + /// The password inputed by the user.
|
| core.String password;
|
| - /**
|
| - * The GITKit token for the non-trusted IDP, which is to be confirmed by the
|
| - * user.
|
| - */
|
| +
|
| + /// The GITKit token for the non-trusted IDP, which is to be confirmed by the
|
| + /// user.
|
| core.String pendingIdToken;
|
| - /** Whether return sts id token and refresh token instead of gitkit token. */
|
| +
|
| + /// Whether return sts id token and refresh token instead of gitkit token.
|
| core.bool returnSecureToken;
|
|
|
| IdentitytoolkitRelyingpartyVerifyPasswordRequest();
|
| @@ -2350,7 +2619,8 @@ class IdentitytoolkitRelyingpartyVerifyPasswordRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (captchaChallenge != null) {
|
| _json["captchaChallenge"] = captchaChallenge;
|
| }
|
| @@ -2382,22 +2652,178 @@ class IdentitytoolkitRelyingpartyVerifyPasswordRequest {
|
| }
|
| }
|
|
|
| -/** Template for a single idp configuration. */
|
| +/// Request for Identitytoolkit-VerifyPhoneNumber
|
| +class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest {
|
| + core.String code;
|
| + core.String idToken;
|
| + core.String operation;
|
| + core.String phoneNumber;
|
| +
|
| + /// The session info previously returned by
|
| + /// IdentityToolkit-SendVerificationCode.
|
| + core.String sessionInfo;
|
| + core.String temporaryProof;
|
| + core.String verificationProof;
|
| +
|
| + IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest();
|
| +
|
| + IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("idToken")) {
|
| + idToken = _json["idToken"];
|
| + }
|
| + if (_json.containsKey("operation")) {
|
| + operation = _json["operation"];
|
| + }
|
| + if (_json.containsKey("phoneNumber")) {
|
| + phoneNumber = _json["phoneNumber"];
|
| + }
|
| + if (_json.containsKey("sessionInfo")) {
|
| + sessionInfo = _json["sessionInfo"];
|
| + }
|
| + if (_json.containsKey("temporaryProof")) {
|
| + temporaryProof = _json["temporaryProof"];
|
| + }
|
| + if (_json.containsKey("verificationProof")) {
|
| + verificationProof = _json["verificationProof"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| + }
|
| + if (idToken != null) {
|
| + _json["idToken"] = idToken;
|
| + }
|
| + if (operation != null) {
|
| + _json["operation"] = operation;
|
| + }
|
| + if (phoneNumber != null) {
|
| + _json["phoneNumber"] = phoneNumber;
|
| + }
|
| + if (sessionInfo != null) {
|
| + _json["sessionInfo"] = sessionInfo;
|
| + }
|
| + if (temporaryProof != null) {
|
| + _json["temporaryProof"] = temporaryProof;
|
| + }
|
| + if (verificationProof != null) {
|
| + _json["verificationProof"] = verificationProof;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// Response for Identitytoolkit-VerifyPhoneNumber
|
| +class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse {
|
| + core.String expiresIn;
|
| + core.String idToken;
|
| + core.bool isNewUser;
|
| + core.String localId;
|
| + core.String phoneNumber;
|
| + core.String refreshToken;
|
| + core.String temporaryProof;
|
| + core.String temporaryProofExpiresIn;
|
| + core.String verificationProof;
|
| + core.String verificationProofExpiresIn;
|
| +
|
| + IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse();
|
| +
|
| + IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.fromJson(
|
| + core.Map _json) {
|
| + if (_json.containsKey("expiresIn")) {
|
| + expiresIn = _json["expiresIn"];
|
| + }
|
| + if (_json.containsKey("idToken")) {
|
| + idToken = _json["idToken"];
|
| + }
|
| + if (_json.containsKey("isNewUser")) {
|
| + isNewUser = _json["isNewUser"];
|
| + }
|
| + if (_json.containsKey("localId")) {
|
| + localId = _json["localId"];
|
| + }
|
| + if (_json.containsKey("phoneNumber")) {
|
| + phoneNumber = _json["phoneNumber"];
|
| + }
|
| + if (_json.containsKey("refreshToken")) {
|
| + refreshToken = _json["refreshToken"];
|
| + }
|
| + if (_json.containsKey("temporaryProof")) {
|
| + temporaryProof = _json["temporaryProof"];
|
| + }
|
| + if (_json.containsKey("temporaryProofExpiresIn")) {
|
| + temporaryProofExpiresIn = _json["temporaryProofExpiresIn"];
|
| + }
|
| + if (_json.containsKey("verificationProof")) {
|
| + verificationProof = _json["verificationProof"];
|
| + }
|
| + if (_json.containsKey("verificationProofExpiresIn")) {
|
| + verificationProofExpiresIn = _json["verificationProofExpiresIn"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (expiresIn != null) {
|
| + _json["expiresIn"] = expiresIn;
|
| + }
|
| + if (idToken != null) {
|
| + _json["idToken"] = idToken;
|
| + }
|
| + if (isNewUser != null) {
|
| + _json["isNewUser"] = isNewUser;
|
| + }
|
| + if (localId != null) {
|
| + _json["localId"] = localId;
|
| + }
|
| + if (phoneNumber != null) {
|
| + _json["phoneNumber"] = phoneNumber;
|
| + }
|
| + if (refreshToken != null) {
|
| + _json["refreshToken"] = refreshToken;
|
| + }
|
| + if (temporaryProof != null) {
|
| + _json["temporaryProof"] = temporaryProof;
|
| + }
|
| + if (temporaryProofExpiresIn != null) {
|
| + _json["temporaryProofExpiresIn"] = temporaryProofExpiresIn;
|
| + }
|
| + if (verificationProof != null) {
|
| + _json["verificationProof"] = verificationProof;
|
| + }
|
| + if (verificationProofExpiresIn != null) {
|
| + _json["verificationProofExpiresIn"] = verificationProofExpiresIn;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// Template for a single idp configuration.
|
| class IdpConfig {
|
| - /** OAuth2 client ID. */
|
| + /// OAuth2 client ID.
|
| core.String clientId;
|
| - /** Whether this IDP is enabled. */
|
| +
|
| + /// Whether this IDP is enabled.
|
| core.bool enabled;
|
| - /**
|
| - * Percent of users who will be prompted/redirected federated login for this
|
| - * IDP.
|
| - */
|
| +
|
| + /// Percent of users who will be prompted/redirected federated login for this
|
| + /// IDP.
|
| core.int experimentPercent;
|
| - /** OAuth2 provider. */
|
| +
|
| + /// OAuth2 provider.
|
| core.String provider;
|
| - /** OAuth2 client secret. */
|
| +
|
| + /// OAuth2 client secret.
|
| core.String secret;
|
| - /** Whitelisted client IDs for audience check. */
|
| +
|
| + /// Whitelisted client IDs for audience check.
|
| core.List<core.String> whitelistedAudiences;
|
|
|
| IdpConfig();
|
| @@ -2424,7 +2850,8 @@ class IdpConfig {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (clientId != null) {
|
| _json["clientId"] = clientId;
|
| }
|
| @@ -2447,48 +2874,54 @@ class IdpConfig {
|
| }
|
| }
|
|
|
| -/**
|
| - * Request of getting a code for user confirmation (reset password, change email
|
| - * etc.)
|
| - */
|
| +/// Request of getting a code for user confirmation (reset password, change
|
| +/// email etc.)
|
| class Relyingparty {
|
| - /**
|
| - * whether or not to install the android app on the device where the link is
|
| - * opened
|
| - */
|
| + /// whether or not to install the android app on the device where the link is
|
| + /// opened
|
| core.bool androidInstallApp;
|
| - /**
|
| - * minimum version of the app. if the version on the device is lower than this
|
| - * version then the user is taken to the play store to upgrade the app
|
| - */
|
| +
|
| + /// minimum version of the app. if the version on the device is lower than
|
| + /// this version then the user is taken to the play store to upgrade the app
|
| core.String androidMinimumVersion;
|
| - /** android package name of the android app to handle the action code */
|
| +
|
| + /// android package name of the android app to handle the action code
|
| core.String androidPackageName;
|
| - /**
|
| - * whether or not the app can handle the oob code without first going to web
|
| - */
|
| +
|
| + /// whether or not the app can handle the oob code without first going to web
|
| core.bool canHandleCodeInApp;
|
| - /** The recaptcha response from the user. */
|
| +
|
| + /// The recaptcha response from the user.
|
| core.String captchaResp;
|
| - /** The recaptcha challenge presented to the user. */
|
| +
|
| + /// The recaptcha challenge presented to the user.
|
| core.String challenge;
|
| - /** The url to continue to the Gitkit app */
|
| +
|
| + /// The url to continue to the Gitkit app
|
| core.String continueUrl;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /** iOS app store id to download the app if it's not already installed */
|
| +
|
| + /// iOS app store id to download the app if it's not already installed
|
| core.String iOSAppStoreId;
|
| - /** the iOS bundle id of iOS app to handle the action code */
|
| +
|
| + /// the iOS bundle id of iOS app to handle the action code
|
| core.String iOSBundleId;
|
| - /** The user's Gitkit login token for email change. */
|
| +
|
| + /// The user's Gitkit login token for email change.
|
| core.String idToken;
|
| - /** The fixed string "identitytoolkit#relyingparty". */
|
| +
|
| + /// The fixed string "identitytoolkit#relyingparty".
|
| core.String kind;
|
| - /** The new email if the code is for email change. */
|
| +
|
| + /// The new email if the code is for email change.
|
| core.String newEmail;
|
| - /** The request type. */
|
| +
|
| + /// The request type.
|
| core.String requestType;
|
| - /** The IP address of the user. */
|
| +
|
| + /// The IP address of the user.
|
| core.String userIp;
|
|
|
| Relyingparty();
|
| @@ -2542,7 +2975,8 @@ class Relyingparty {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (androidInstallApp != null) {
|
| _json["androidInstallApp"] = androidInstallApp;
|
| }
|
| @@ -2592,18 +3026,19 @@ class Relyingparty {
|
| }
|
| }
|
|
|
| -/** Response of resetting the password. */
|
| +/// Response of resetting the password.
|
| class ResetPasswordResponse {
|
| - /**
|
| - * The user's email. If the out-of-band code is for email recovery, the user's
|
| - * original email.
|
| - */
|
| + /// The user's email. If the out-of-band code is for email recovery, the
|
| + /// user's original email.
|
| core.String email;
|
| - /** The fixed string "identitytoolkit#ResetPasswordResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#ResetPasswordResponse".
|
| core.String kind;
|
| - /** If the out-of-band code is for email recovery, the user's new email. */
|
| +
|
| + /// If the out-of-band code is for email recovery, the user's new email.
|
| core.String newEmail;
|
| - /** The request type. */
|
| +
|
| + /// The request type.
|
| core.String requestType;
|
|
|
| ResetPasswordResponse();
|
| @@ -2624,7 +3059,8 @@ class ResetPasswordResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (email != null) {
|
| _json["email"] = email;
|
| }
|
| @@ -2642,17 +3078,18 @@ class ResetPasswordResponse {
|
| }
|
|
|
| class SetAccountInfoResponseProviderUserInfo {
|
| - /** The user's display name at the IDP. */
|
| + /// The user's display name at the IDP.
|
| core.String displayName;
|
| - /** User's identifier at IDP. */
|
| +
|
| + /// User's identifier at IDP.
|
| core.String federatedId;
|
| - /** The user's photo url at the IDP. */
|
| +
|
| + /// The user's photo url at the IDP.
|
| core.String photoUrl;
|
| - /**
|
| - * The IdP ID. For whitelisted IdPs it's a short domain name, e.g.,
|
| - * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the
|
| - * OP identifier.
|
| - */
|
| +
|
| + /// The IdP ID. For whitelisted IdPs it's a short domain name, e.g.,
|
| + /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
|
| + /// the OP identifier.
|
| core.String providerId;
|
|
|
| SetAccountInfoResponseProviderUserInfo();
|
| @@ -2673,7 +3110,8 @@ class SetAccountInfoResponseProviderUserInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
| @@ -2690,41 +3128,51 @@ class SetAccountInfoResponseProviderUserInfo {
|
| }
|
| }
|
|
|
| -/** Respone of setting the account information. */
|
| +/// Respone of setting the account information.
|
| class SetAccountInfoResponse {
|
| - /** The name of the user. */
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /** If email has been verified. */
|
| +
|
| + /// If email has been verified.
|
| core.bool emailVerified;
|
| - /**
|
| - * If idToken is STS id token, then this field will be expiration time of STS
|
| - * id token in seconds.
|
| - */
|
| +
|
| + /// If idToken is STS id token, then this field will be expiration time of
|
| + /// STS id token in seconds.
|
| core.String expiresIn;
|
| - /** The Gitkit id token to login the newly sign up user. */
|
| +
|
| + /// The Gitkit id token to login the newly sign up user.
|
| core.String idToken;
|
| - /** The fixed string "identitytoolkit#SetAccountInfoResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#SetAccountInfoResponse".
|
| core.String kind;
|
| - /** The local ID of the user. */
|
| +
|
| + /// The local ID of the user.
|
| core.String localId;
|
| - /** The new email the user attempts to change to. */
|
| +
|
| + /// The new email the user attempts to change to.
|
| core.String newEmail;
|
| - /** The user's hashed password. */
|
| +
|
| + /// The user's hashed password.
|
| core.String passwordHash;
|
| core.List<core.int> get passwordHashAsBytes {
|
| return convert.BASE64.decode(passwordHash);
|
| }
|
|
|
| void set passwordHashAsBytes(core.List<core.int> _bytes) {
|
| - passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + passwordHash =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /** The photo url of the user. */
|
| +
|
| + /// The photo url of the user.
|
| core.String photoUrl;
|
| - /** The user's profiles at the associated IdPs. */
|
| +
|
| + /// The user's profiles at the associated IdPs.
|
| core.List<SetAccountInfoResponseProviderUserInfo> providerUserInfo;
|
| - /** If idToken is STS id token, then this field will be refresh token. */
|
| +
|
| + /// If idToken is STS id token, then this field will be refresh token.
|
| core.String refreshToken;
|
|
|
| SetAccountInfoResponse();
|
| @@ -2761,7 +3209,10 @@ class SetAccountInfoResponse {
|
| photoUrl = _json["photoUrl"];
|
| }
|
| if (_json.containsKey("providerUserInfo")) {
|
| - providerUserInfo = _json["providerUserInfo"].map((value) => new SetAccountInfoResponseProviderUserInfo.fromJson(value)).toList();
|
| + providerUserInfo = _json["providerUserInfo"]
|
| + .map((value) =>
|
| + new SetAccountInfoResponseProviderUserInfo.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("refreshToken")) {
|
| refreshToken = _json["refreshToken"];
|
| @@ -2769,7 +3220,8 @@ class SetAccountInfoResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
| @@ -2801,7 +3253,8 @@ class SetAccountInfoResponse {
|
| _json["photoUrl"] = photoUrl;
|
| }
|
| if (providerUserInfo != null) {
|
| - _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson()).toList();
|
| + _json["providerUserInfo"] =
|
| + providerUserInfo.map((value) => (value).toJson()).toList();
|
| }
|
| if (refreshToken != null) {
|
| _json["refreshToken"] = refreshToken;
|
| @@ -2810,27 +3263,29 @@ class SetAccountInfoResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * Response of signing up new user, creating anonymous user or anonymous user
|
| - * reauth.
|
| - */
|
| +/// Response of signing up new user, creating anonymous user or anonymous user
|
| +/// reauth.
|
| class SignupNewUserResponse {
|
| - /** The name of the user. */
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /**
|
| - * If idToken is STS id token, then this field will be expiration time of STS
|
| - * id token in seconds.
|
| - */
|
| +
|
| + /// If idToken is STS id token, then this field will be expiration time of
|
| + /// STS id token in seconds.
|
| core.String expiresIn;
|
| - /** The Gitkit id token to login the newly sign up user. */
|
| +
|
| + /// The Gitkit id token to login the newly sign up user.
|
| core.String idToken;
|
| - /** The fixed string "identitytoolkit#SignupNewUserResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#SignupNewUserResponse".
|
| core.String kind;
|
| - /** The RP local ID of the user. */
|
| +
|
| + /// The RP local ID of the user.
|
| core.String localId;
|
| - /** If idToken is STS id token, then this field will be refresh token. */
|
| +
|
| + /// If idToken is STS id token, then this field will be refresh token.
|
| core.String refreshToken;
|
|
|
| SignupNewUserResponse();
|
| @@ -2860,7 +3315,8 @@ class SignupNewUserResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
| @@ -2887,9 +3343,10 @@ class SignupNewUserResponse {
|
| }
|
|
|
| class UploadAccountResponseError {
|
| - /** The index of the malformed account, starting from 0. */
|
| + /// The index of the malformed account, starting from 0.
|
| core.int index;
|
| - /** Detailed error message for the account info. */
|
| +
|
| + /// Detailed error message for the account info.
|
| core.String message;
|
|
|
| UploadAccountResponseError();
|
| @@ -2904,7 +3361,8 @@ class UploadAccountResponseError {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (index != null) {
|
| _json["index"] = index;
|
| }
|
| @@ -2915,18 +3373,21 @@ class UploadAccountResponseError {
|
| }
|
| }
|
|
|
| -/** Respone of uploading accounts in batch. */
|
| +/// Respone of uploading accounts in batch.
|
| class UploadAccountResponse {
|
| - /** The error encountered while processing the account info. */
|
| + /// The error encountered while processing the account info.
|
| core.List<UploadAccountResponseError> error;
|
| - /** The fixed string "identitytoolkit#UploadAccountResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#UploadAccountResponse".
|
| core.String kind;
|
|
|
| UploadAccountResponse();
|
|
|
| UploadAccountResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("error")) {
|
| - error = _json["error"].map((value) => new UploadAccountResponseError.fromJson(value)).toList();
|
| + error = _json["error"]
|
| + .map((value) => new UploadAccountResponseError.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -2934,7 +3395,8 @@ class UploadAccountResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (error != null) {
|
| _json["error"] = error.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2946,25 +3408,30 @@ class UploadAccountResponse {
|
| }
|
|
|
| class UserInfoProviderUserInfo {
|
| - /** The user's display name at the IDP. */
|
| + /// The user's display name at the IDP.
|
| core.String displayName;
|
| - /** User's email at IDP. */
|
| +
|
| + /// User's email at IDP.
|
| core.String email;
|
| - /** User's identifier at IDP. */
|
| +
|
| + /// User's identifier at IDP.
|
| core.String federatedId;
|
| - /** User's phone number. */
|
| +
|
| + /// User's phone number.
|
| core.String phoneNumber;
|
| - /** The user's photo url at the IDP. */
|
| +
|
| + /// The user's photo url at the IDP.
|
| core.String photoUrl;
|
| - /**
|
| - * The IdP ID. For white listed IdPs it's a short domain name, e.g.,
|
| - * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the
|
| - * OP identifier.
|
| - */
|
| +
|
| + /// The IdP ID. For white listed IdPs it's a short domain name, e.g.,
|
| + /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
|
| + /// the OP identifier.
|
| core.String providerId;
|
| - /** User's raw identifier directly returned from IDP. */
|
| +
|
| + /// User's raw identifier directly returned from IDP.
|
| core.String rawId;
|
| - /** User's screen name at Twitter or login name at Github. */
|
| +
|
| + /// User's screen name at Twitter or login name at Github.
|
| core.String screenName;
|
|
|
| UserInfoProviderUserInfo();
|
| @@ -2997,7 +3464,8 @@ class UserInfoProviderUserInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
| @@ -3026,57 +3494,79 @@ class UserInfoProviderUserInfo {
|
| }
|
| }
|
|
|
| -/** Template for an individual account info. */
|
| +/// Template for an individual account info.
|
| class UserInfo {
|
| - /** User creation timestamp. */
|
| + /// User creation timestamp.
|
| core.String createdAt;
|
| - /** Whether the user is authenticated by the developer. */
|
| +
|
| + /// The custom attributes to be set in the user's id token.
|
| + core.String customAttributes;
|
| +
|
| + /// Whether the user is authenticated by the developer.
|
| core.bool customAuth;
|
| - /** Whether the user is disabled. */
|
| +
|
| + /// Whether the user is disabled.
|
| core.bool disabled;
|
| - /** The name of the user. */
|
| +
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /** The email of the user. */
|
| +
|
| + /// The email of the user.
|
| core.String email;
|
| - /** Whether the email has been verified. */
|
| +
|
| + /// Whether the email has been verified.
|
| core.bool emailVerified;
|
| - /** last login timestamp. */
|
| +
|
| + /// last login timestamp.
|
| core.String lastLoginAt;
|
| - /** The local ID of the user. */
|
| +
|
| + /// The local ID of the user.
|
| core.String localId;
|
| - /** The user's hashed password. */
|
| +
|
| + /// The user's hashed password.
|
| core.String passwordHash;
|
| core.List<core.int> get passwordHashAsBytes {
|
| return convert.BASE64.decode(passwordHash);
|
| }
|
|
|
| void set passwordHashAsBytes(core.List<core.int> _bytes) {
|
| - passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + passwordHash =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /** The timestamp when the password was last updated. */
|
| +
|
| + /// The timestamp when the password was last updated.
|
| core.double passwordUpdatedAt;
|
| - /** User's phone number. */
|
| +
|
| + /// User's phone number.
|
| core.String phoneNumber;
|
| - /** The URL of the user profile photo. */
|
| +
|
| + /// The URL of the user profile photo.
|
| core.String photoUrl;
|
| - /** The IDP of the user. */
|
| +
|
| + /// The IDP of the user.
|
| core.List<UserInfoProviderUserInfo> providerUserInfo;
|
| - /** The user's plain text password. */
|
| +
|
| + /// The user's plain text password.
|
| core.String rawPassword;
|
| - /** The user's password salt. */
|
| +
|
| + /// The user's password salt.
|
| core.String salt;
|
| core.List<core.int> get saltAsBytes {
|
| return convert.BASE64.decode(salt);
|
| }
|
|
|
| void set saltAsBytes(core.List<core.int> _bytes) {
|
| - salt = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + salt =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /** User's screen name at Twitter or login name at Github. */
|
| +
|
| + /// User's screen name at Twitter or login name at Github.
|
| core.String screenName;
|
| - /** Timestamp in seconds for valid login token. */
|
| +
|
| + /// Timestamp in seconds for valid login token.
|
| core.String validSince;
|
| - /** Version of the user's password. */
|
| +
|
| + /// Version of the user's password.
|
| core.int version;
|
|
|
| UserInfo();
|
| @@ -3085,6 +3575,9 @@ class UserInfo {
|
| if (_json.containsKey("createdAt")) {
|
| createdAt = _json["createdAt"];
|
| }
|
| + if (_json.containsKey("customAttributes")) {
|
| + customAttributes = _json["customAttributes"];
|
| + }
|
| if (_json.containsKey("customAuth")) {
|
| customAuth = _json["customAuth"];
|
| }
|
| @@ -3119,7 +3612,9 @@ class UserInfo {
|
| photoUrl = _json["photoUrl"];
|
| }
|
| if (_json.containsKey("providerUserInfo")) {
|
| - providerUserInfo = _json["providerUserInfo"].map((value) => new UserInfoProviderUserInfo.fromJson(value)).toList();
|
| + providerUserInfo = _json["providerUserInfo"]
|
| + .map((value) => new UserInfoProviderUserInfo.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("rawPassword")) {
|
| rawPassword = _json["rawPassword"];
|
| @@ -3139,10 +3634,14 @@ class UserInfo {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (createdAt != null) {
|
| _json["createdAt"] = createdAt;
|
| }
|
| + if (customAttributes != null) {
|
| + _json["customAttributes"] = customAttributes;
|
| + }
|
| if (customAuth != null) {
|
| _json["customAuth"] = customAuth;
|
| }
|
| @@ -3177,7 +3676,8 @@ class UserInfo {
|
| _json["photoUrl"] = photoUrl;
|
| }
|
| if (providerUserInfo != null) {
|
| - _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson()).toList();
|
| + _json["providerUserInfo"] =
|
| + providerUserInfo.map((value) => (value).toJson()).toList();
|
| }
|
| if (rawPassword != null) {
|
| _json["rawPassword"] = rawPassword;
|
| @@ -3198,120 +3698,137 @@ class UserInfo {
|
| }
|
| }
|
|
|
| -/** Response of verifying the IDP assertion. */
|
| +/// Response of verifying the IDP assertion.
|
| class VerifyAssertionResponse {
|
| - /** The action code. */
|
| + /// The action code.
|
| core.String action;
|
| - /** URL for OTA app installation. */
|
| +
|
| + /// URL for OTA app installation.
|
| core.String appInstallationUrl;
|
| - /** The custom scheme used by mobile app. */
|
| +
|
| + /// The custom scheme used by mobile app.
|
| core.String appScheme;
|
| - /**
|
| - * The opaque value used by the client to maintain context info between the
|
| - * authentication request and the IDP callback.
|
| - */
|
| +
|
| + /// The opaque value used by the client to maintain context info between the
|
| + /// authentication request and the IDP callback.
|
| core.String context;
|
| - /** The birth date of the IdP account. */
|
| +
|
| + /// The birth date of the IdP account.
|
| core.String dateOfBirth;
|
| - /** The display name of the user. */
|
| +
|
| + /// The display name of the user.
|
| core.String displayName;
|
| - /**
|
| - * The email returned by the IdP. NOTE: The federated login user may not own
|
| - * the email.
|
| - */
|
| +
|
| + /// The email returned by the IdP. NOTE: The federated login user may not own
|
| + /// the email.
|
| core.String email;
|
| - /** It's true if the email is recycled. */
|
| +
|
| + /// It's true if the email is recycled.
|
| core.bool emailRecycled;
|
| - /**
|
| - * The value is true if the IDP is also the email provider. It means the user
|
| - * owns the email.
|
| - */
|
| +
|
| + /// The value is true if the IDP is also the email provider. It means the
|
| + /// user owns the email.
|
| core.bool emailVerified;
|
| - /** Client error code. */
|
| +
|
| + /// Client error code.
|
| core.String errorMessage;
|
| - /**
|
| - * If idToken is STS id token, then this field will be expiration time of STS
|
| - * id token in seconds.
|
| - */
|
| +
|
| + /// If idToken is STS id token, then this field will be expiration time of
|
| + /// STS id token in seconds.
|
| core.String expiresIn;
|
| - /** The unique ID identifies the IdP account. */
|
| +
|
| + /// The unique ID identifies the IdP account.
|
| core.String federatedId;
|
| - /** The first name of the user. */
|
| +
|
| + /// The first name of the user.
|
| core.String firstName;
|
| - /** The full name of the user. */
|
| +
|
| + /// The full name of the user.
|
| core.String fullName;
|
| - /** The ID token. */
|
| +
|
| + /// The ID token.
|
| core.String idToken;
|
| - /**
|
| - * It's the identifier param in the createAuthUri request if the identifier is
|
| - * an email. It can be used to check whether the user input email is different
|
| - * from the asserted email.
|
| - */
|
| +
|
| + /// It's the identifier param in the createAuthUri request if the identifier
|
| + /// is an email. It can be used to check whether the user input email is
|
| + /// different from the asserted email.
|
| core.String inputEmail;
|
| - /** True if it's a new user sign-in, false if it's a returning user. */
|
| +
|
| + /// True if it's a new user sign-in, false if it's a returning user.
|
| core.bool isNewUser;
|
| - /** The fixed string "identitytoolkit#VerifyAssertionResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#VerifyAssertionResponse".
|
| core.String kind;
|
| - /** The language preference of the user. */
|
| +
|
| + /// The language preference of the user.
|
| core.String language;
|
| - /** The last name of the user. */
|
| +
|
| + /// The last name of the user.
|
| core.String lastName;
|
| - /**
|
| - * The RP local ID if it's already been mapped to the IdP account identified
|
| - * by the federated ID.
|
| - */
|
| +
|
| + /// The RP local ID if it's already been mapped to the IdP account identified
|
| + /// by the federated ID.
|
| core.String localId;
|
| - /**
|
| - * Whether the assertion is from a non-trusted IDP and need account linking
|
| - * confirmation.
|
| - */
|
| +
|
| + /// Whether the assertion is from a non-trusted IDP and need account linking
|
| + /// confirmation.
|
| core.bool needConfirmation;
|
| - /**
|
| - * Whether need client to supply email to complete the federated login flow.
|
| - */
|
| +
|
| + /// Whether need client to supply email to complete the federated login flow.
|
| core.bool needEmail;
|
| - /** The nick name of the user. */
|
| +
|
| + /// The nick name of the user.
|
| core.String nickName;
|
| - /** The OAuth2 access token. */
|
| +
|
| + /// The OAuth2 access token.
|
| core.String oauthAccessToken;
|
| - /** The OAuth2 authorization code. */
|
| +
|
| + /// The OAuth2 authorization code.
|
| core.String oauthAuthorizationCode;
|
| - /** The lifetime in seconds of the OAuth2 access token. */
|
| +
|
| + /// The lifetime in seconds of the OAuth2 access token.
|
| core.int oauthExpireIn;
|
| - /** The OIDC id token. */
|
| +
|
| + /// The OIDC id token.
|
| core.String oauthIdToken;
|
| - /** The user approved request token for the OpenID OAuth extension. */
|
| +
|
| + /// The user approved request token for the OpenID OAuth extension.
|
| core.String oauthRequestToken;
|
| - /** The scope for the OpenID OAuth extension. */
|
| +
|
| + /// The scope for the OpenID OAuth extension.
|
| core.String oauthScope;
|
| - /** The OAuth1 access token secret. */
|
| +
|
| + /// The OAuth1 access token secret.
|
| core.String oauthTokenSecret;
|
| - /**
|
| - * The original email stored in the mapping storage. It's returned when the
|
| - * federated ID is associated to a different email.
|
| - */
|
| +
|
| + /// The original email stored in the mapping storage. It's returned when the
|
| + /// federated ID is associated to a different email.
|
| core.String originalEmail;
|
| - /** The URI of the public accessible profiel picture. */
|
| +
|
| + /// The URI of the public accessible profiel picture.
|
| core.String photoUrl;
|
| - /**
|
| - * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com,
|
| - * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID
|
| - * OP identifer other than the whilte listed IdPs the OP identifier is
|
| - * returned. If the "identifier" param is federated ID in the createAuthUri
|
| - * request. The domain part of the federated ID is returned.
|
| - */
|
| +
|
| + /// The IdP ID. For white listed IdPs it's a short domain name e.g.
|
| + /// google.com, aol.com, live.net and yahoo.com. If the "providerId" param is
|
| + /// set to OpenID OP identifer other than the whilte listed IdPs the OP
|
| + /// identifier is returned. If the "identifier" param is federated ID in the
|
| + /// createAuthUri request. The domain part of the federated ID is returned.
|
| core.String providerId;
|
| - /** Raw IDP-returned user info. */
|
| +
|
| + /// Raw IDP-returned user info.
|
| core.String rawUserInfo;
|
| - /** If idToken is STS id token, then this field will be refresh token. */
|
| +
|
| + /// If idToken is STS id token, then this field will be refresh token.
|
| core.String refreshToken;
|
| - /** The screen_name of a Twitter user or the login name at Github. */
|
| +
|
| + /// The screen_name of a Twitter user or the login name at Github.
|
| core.String screenName;
|
| - /** The timezone of the user. */
|
| +
|
| + /// The timezone of the user.
|
| core.String timeZone;
|
| - /**
|
| - * When action is 'map', contains the idps which can be used for confirmation.
|
| - */
|
| +
|
| + /// When action is 'map', contains the idps which can be used for
|
| + /// confirmation.
|
| core.List<core.String> verifiedProvider;
|
|
|
| VerifyAssertionResponse();
|
| @@ -3437,7 +3954,8 @@ class VerifyAssertionResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (action != null) {
|
| _json["action"] = action;
|
| }
|
| @@ -3559,18 +4077,22 @@ class VerifyAssertionResponse {
|
| }
|
| }
|
|
|
| -/** Response from verifying a custom token */
|
| +/// Response from verifying a custom token
|
| class VerifyCustomTokenResponse {
|
| - /**
|
| - * If idToken is STS id token, then this field will be expiration time of STS
|
| - * id token in seconds.
|
| - */
|
| + /// If idToken is STS id token, then this field will be expiration time of
|
| + /// STS id token in seconds.
|
| core.String expiresIn;
|
| - /** The GITKit token for authenticated user. */
|
| +
|
| + /// The GITKit token for authenticated user.
|
| core.String idToken;
|
| - /** The fixed string "identitytoolkit#VerifyCustomTokenResponse". */
|
| +
|
| + /// True if it's a new user sign-in, false if it's a returning user.
|
| + core.bool isNewUser;
|
| +
|
| + /// The fixed string "identitytoolkit#VerifyCustomTokenResponse".
|
| core.String kind;
|
| - /** If idToken is STS id token, then this field will be refresh token. */
|
| +
|
| + /// If idToken is STS id token, then this field will be refresh token.
|
| core.String refreshToken;
|
|
|
| VerifyCustomTokenResponse();
|
| @@ -3582,6 +4104,9 @@ class VerifyCustomTokenResponse {
|
| if (_json.containsKey("idToken")) {
|
| idToken = _json["idToken"];
|
| }
|
| + if (_json.containsKey("isNewUser")) {
|
| + isNewUser = _json["isNewUser"];
|
| + }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| }
|
| @@ -3591,13 +4116,17 @@ class VerifyCustomTokenResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (expiresIn != null) {
|
| _json["expiresIn"] = expiresIn;
|
| }
|
| if (idToken != null) {
|
| _json["idToken"] = idToken;
|
| }
|
| + if (isNewUser != null) {
|
| + _json["isNewUser"] = isNewUser;
|
| + }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -3608,40 +4137,45 @@ class VerifyCustomTokenResponse {
|
| }
|
| }
|
|
|
| -/** Request of verifying the password. */
|
| +/// Request of verifying the password.
|
| class VerifyPasswordResponse {
|
| - /** The name of the user. */
|
| + /// The name of the user.
|
| core.String displayName;
|
| - /**
|
| - * The email returned by the IdP. NOTE: The federated login user may not own
|
| - * the email.
|
| - */
|
| +
|
| + /// The email returned by the IdP. NOTE: The federated login user may not own
|
| + /// the email.
|
| core.String email;
|
| - /**
|
| - * If idToken is STS id token, then this field will be expiration time of STS
|
| - * id token in seconds.
|
| - */
|
| +
|
| + /// If idToken is STS id token, then this field will be expiration time of
|
| + /// STS id token in seconds.
|
| core.String expiresIn;
|
| - /** The GITKit token for authenticated user. */
|
| +
|
| + /// The GITKit token for authenticated user.
|
| core.String idToken;
|
| - /** The fixed string "identitytoolkit#VerifyPasswordResponse". */
|
| +
|
| + /// The fixed string "identitytoolkit#VerifyPasswordResponse".
|
| core.String kind;
|
| - /**
|
| - * The RP local ID if it's already been mapped to the IdP account identified
|
| - * by the federated ID.
|
| - */
|
| +
|
| + /// The RP local ID if it's already been mapped to the IdP account identified
|
| + /// by the federated ID.
|
| core.String localId;
|
| - /** The OAuth2 access token. */
|
| +
|
| + /// The OAuth2 access token.
|
| core.String oauthAccessToken;
|
| - /** The OAuth2 authorization code. */
|
| +
|
| + /// The OAuth2 authorization code.
|
| core.String oauthAuthorizationCode;
|
| - /** The lifetime in seconds of the OAuth2 access token. */
|
| +
|
| + /// The lifetime in seconds of the OAuth2 access token.
|
| core.int oauthExpireIn;
|
| - /** The URI of the user's photo at IdP */
|
| +
|
| + /// The URI of the user's photo at IdP
|
| core.String photoUrl;
|
| - /** If idToken is STS id token, then this field will be refresh token. */
|
| +
|
| + /// If idToken is STS id token, then this field will be refresh token.
|
| core.String refreshToken;
|
| - /** Whether the email is registered. */
|
| +
|
| + /// Whether the email is registered.
|
| core.bool registered;
|
|
|
| VerifyPasswordResponse();
|
| @@ -3686,7 +4220,8 @@ class VerifyPasswordResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
|
|