| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.identitytoolkit.v3; | 3 library googleapis.identitytoolkit.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:collection' as collection; | 6 import 'dart:collection' as collection; |
| 7 import 'dart:async' as async; | 7 import 'dart:async' as async; |
| 8 import 'dart:convert' as convert; | 8 import 'dart:convert' as convert; |
| 9 | 9 |
| 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 uploadMedia: _uploadMedia, | 227 uploadMedia: _uploadMedia, |
| 228 downloadOptions: _downloadOptions); | 228 downloadOptions: _downloadOptions); |
| 229 return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson(
data)); | 229 return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson(
data)); |
| 230 } | 230 } |
| 231 | 231 |
| 232 /** | 232 /** |
| 233 * Get project configuration. | 233 * Get project configuration. |
| 234 * | 234 * |
| 235 * Request parameters: | 235 * Request parameters: |
| 236 * | 236 * |
| 237 * [delegatedProjectNumber] - Delegated GCP project number of the request. |
| 238 * |
| 239 * [projectNumber] - GCP project number of the request. |
| 240 * |
| 237 * Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse]. | 241 * Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse]. |
| 238 * | 242 * |
| 239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 240 * error. | 244 * error. |
| 241 * | 245 * |
| 242 * If the used [http.Client] completes with an error when making a REST call, | 246 * If the used [http.Client] completes with an error when making a REST call, |
| 243 * this method will complete with the same error. | 247 * this method will complete with the same error. |
| 244 */ | 248 */ |
| 245 async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse> getProjectCo
nfig() { | 249 async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse> getProjectCo
nfig({core.String delegatedProjectNumber, core.String projectNumber}) { |
| 246 var _url = null; | 250 var _url = null; |
| 247 var _queryParams = new core.Map(); | 251 var _queryParams = new core.Map(); |
| 248 var _uploadMedia = null; | 252 var _uploadMedia = null; |
| 249 var _uploadOptions = null; | 253 var _uploadOptions = null; |
| 250 var _downloadOptions = commons.DownloadOptions.Metadata; | 254 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 251 var _body = null; | 255 var _body = null; |
| 252 | 256 |
| 257 if (delegatedProjectNumber != null) { |
| 258 _queryParams["delegatedProjectNumber"] = [delegatedProjectNumber]; |
| 259 } |
| 260 if (projectNumber != null) { |
| 261 _queryParams["projectNumber"] = [projectNumber]; |
| 262 } |
| 253 | 263 |
| 254 _url = 'getProjectConfig'; | 264 _url = 'getProjectConfig'; |
| 255 | 265 |
| 256 var _response = _requester.request(_url, | 266 var _response = _requester.request(_url, |
| 257 "GET", | 267 "GET", |
| 258 body: _body, | 268 body: _body, |
| 259 queryParams: _queryParams, | 269 queryParams: _queryParams, |
| 260 uploadOptions: _uploadOptions, | 270 uploadOptions: _uploadOptions, |
| 261 uploadMedia: _uploadMedia, | 271 uploadMedia: _uploadMedia, |
| 262 downloadOptions: _downloadOptions); | 272 downloadOptions: _downloadOptions); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 "POST", | 413 "POST", |
| 404 body: _body, | 414 body: _body, |
| 405 queryParams: _queryParams, | 415 queryParams: _queryParams, |
| 406 uploadOptions: _uploadOptions, | 416 uploadOptions: _uploadOptions, |
| 407 uploadMedia: _uploadMedia, | 417 uploadMedia: _uploadMedia, |
| 408 downloadOptions: _downloadOptions); | 418 downloadOptions: _downloadOptions); |
| 409 return _response.then((data) => new SetAccountInfoResponse.fromJson(data)); | 419 return _response.then((data) => new SetAccountInfoResponse.fromJson(data)); |
| 410 } | 420 } |
| 411 | 421 |
| 412 /** | 422 /** |
| 423 * Set project configuration. |
| 424 * |
| 425 * [request] - The metadata request object. |
| 426 * |
| 427 * Request parameters: |
| 428 * |
| 429 * Completes with a [IdentitytoolkitRelyingpartySetProjectConfigResponse]. |
| 430 * |
| 431 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 432 * error. |
| 433 * |
| 434 * If the used [http.Client] completes with an error when making a REST call, |
| 435 * this method will complete with the same error. |
| 436 */ |
| 437 async.Future<IdentitytoolkitRelyingpartySetProjectConfigResponse> setProjectCo
nfig(IdentitytoolkitRelyingpartySetProjectConfigRequest request) { |
| 438 var _url = null; |
| 439 var _queryParams = new core.Map(); |
| 440 var _uploadMedia = null; |
| 441 var _uploadOptions = null; |
| 442 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 443 var _body = null; |
| 444 |
| 445 if (request != null) { |
| 446 _body = convert.JSON.encode((request).toJson()); |
| 447 } |
| 448 |
| 449 _url = 'setProjectConfig'; |
| 450 |
| 451 var _response = _requester.request(_url, |
| 452 "POST", |
| 453 body: _body, |
| 454 queryParams: _queryParams, |
| 455 uploadOptions: _uploadOptions, |
| 456 uploadMedia: _uploadMedia, |
| 457 downloadOptions: _downloadOptions); |
| 458 return _response.then((data) => new IdentitytoolkitRelyingpartySetProjectCon
figResponse.fromJson(data)); |
| 459 } |
| 460 |
| 461 /** |
| 413 * Sign out user. | 462 * Sign out user. |
| 414 * | 463 * |
| 415 * [request] - The metadata request object. | 464 * [request] - The metadata request object. |
| 416 * | 465 * |
| 417 * Request parameters: | 466 * Request parameters: |
| 418 * | 467 * |
| 419 * Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse]. | 468 * Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse]. |
| 420 * | 469 * |
| 421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 422 * error. | 471 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 442 "POST", | 491 "POST", |
| 443 body: _body, | 492 body: _body, |
| 444 queryParams: _queryParams, | 493 queryParams: _queryParams, |
| 445 uploadOptions: _uploadOptions, | 494 uploadOptions: _uploadOptions, |
| 446 uploadMedia: _uploadMedia, | 495 uploadMedia: _uploadMedia, |
| 447 downloadOptions: _downloadOptions); | 496 downloadOptions: _downloadOptions); |
| 448 return _response.then((data) => new IdentitytoolkitRelyingpartySignOutUserRe
sponse.fromJson(data)); | 497 return _response.then((data) => new IdentitytoolkitRelyingpartySignOutUserRe
sponse.fromJson(data)); |
| 449 } | 498 } |
| 450 | 499 |
| 451 /** | 500 /** |
| 501 * Signup new user. |
| 502 * |
| 503 * [request] - The metadata request object. |
| 504 * |
| 505 * Request parameters: |
| 506 * |
| 507 * Completes with a [SignupNewUserResponse]. |
| 508 * |
| 509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 510 * error. |
| 511 * |
| 512 * If the used [http.Client] completes with an error when making a REST call, |
| 513 * this method will complete with the same error. |
| 514 */ |
| 515 async.Future<SignupNewUserResponse> signupNewUser(IdentitytoolkitRelyingpartyS
ignupNewUserRequest request) { |
| 516 var _url = null; |
| 517 var _queryParams = new core.Map(); |
| 518 var _uploadMedia = null; |
| 519 var _uploadOptions = null; |
| 520 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 521 var _body = null; |
| 522 |
| 523 if (request != null) { |
| 524 _body = convert.JSON.encode((request).toJson()); |
| 525 } |
| 526 |
| 527 _url = 'signupNewUser'; |
| 528 |
| 529 var _response = _requester.request(_url, |
| 530 "POST", |
| 531 body: _body, |
| 532 queryParams: _queryParams, |
| 533 uploadOptions: _uploadOptions, |
| 534 uploadMedia: _uploadMedia, |
| 535 downloadOptions: _downloadOptions); |
| 536 return _response.then((data) => new SignupNewUserResponse.fromJson(data)); |
| 537 } |
| 538 |
| 539 /** |
| 452 * Batch upload existing user accounts. | 540 * Batch upload existing user accounts. |
| 453 * | 541 * |
| 454 * [request] - The metadata request object. | 542 * [request] - The metadata request object. |
| 455 * | 543 * |
| 456 * Request parameters: | 544 * Request parameters: |
| 457 * | 545 * |
| 458 * Completes with a [UploadAccountResponse]. | 546 * Completes with a [UploadAccountResponse]. |
| 459 * | 547 * |
| 460 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 548 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 461 * error. | 549 * error. |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 if (nextPageToken != null) { | 832 if (nextPageToken != null) { |
| 745 _json["nextPageToken"] = nextPageToken; | 833 _json["nextPageToken"] = nextPageToken; |
| 746 } | 834 } |
| 747 if (users != null) { | 835 if (users != null) { |
| 748 _json["users"] = users.map((value) => (value).toJson()).toList(); | 836 _json["users"] = users.map((value) => (value).toJson()).toList(); |
| 749 } | 837 } |
| 750 return _json; | 838 return _json; |
| 751 } | 839 } |
| 752 } | 840 } |
| 753 | 841 |
| 842 /** Template for an email template. */ |
| 843 class EmailTemplate { |
| 844 /** Email body. */ |
| 845 core.String body; |
| 846 /** Email body format. */ |
| 847 core.String format; |
| 848 /** From address of the email. */ |
| 849 core.String from; |
| 850 /** From display name. */ |
| 851 core.String fromDisplayName; |
| 852 /** Reply-to address. */ |
| 853 core.String replyTo; |
| 854 /** Subject of the email. */ |
| 855 core.String subject; |
| 856 |
| 857 EmailTemplate(); |
| 858 |
| 859 EmailTemplate.fromJson(core.Map _json) { |
| 860 if (_json.containsKey("body")) { |
| 861 body = _json["body"]; |
| 862 } |
| 863 if (_json.containsKey("format")) { |
| 864 format = _json["format"]; |
| 865 } |
| 866 if (_json.containsKey("from")) { |
| 867 from = _json["from"]; |
| 868 } |
| 869 if (_json.containsKey("fromDisplayName")) { |
| 870 fromDisplayName = _json["fromDisplayName"]; |
| 871 } |
| 872 if (_json.containsKey("replyTo")) { |
| 873 replyTo = _json["replyTo"]; |
| 874 } |
| 875 if (_json.containsKey("subject")) { |
| 876 subject = _json["subject"]; |
| 877 } |
| 878 } |
| 879 |
| 880 core.Map toJson() { |
| 881 var _json = new core.Map(); |
| 882 if (body != null) { |
| 883 _json["body"] = body; |
| 884 } |
| 885 if (format != null) { |
| 886 _json["format"] = format; |
| 887 } |
| 888 if (from != null) { |
| 889 _json["from"] = from; |
| 890 } |
| 891 if (fromDisplayName != null) { |
| 892 _json["fromDisplayName"] = fromDisplayName; |
| 893 } |
| 894 if (replyTo != null) { |
| 895 _json["replyTo"] = replyTo; |
| 896 } |
| 897 if (subject != null) { |
| 898 _json["subject"] = subject; |
| 899 } |
| 900 return _json; |
| 901 } |
| 902 } |
| 903 |
| 754 /** Response of getting account information. */ | 904 /** Response of getting account information. */ |
| 755 class GetAccountInfoResponse { | 905 class GetAccountInfoResponse { |
| 756 /** The fixed string "identitytoolkit#GetAccountInfoResponse". */ | 906 /** The fixed string "identitytoolkit#GetAccountInfoResponse". */ |
| 757 core.String kind; | 907 core.String kind; |
| 758 /** The info of the users. */ | 908 /** The info of the users. */ |
| 759 core.List<UserInfo> users; | 909 core.List<UserInfo> users; |
| 760 | 910 |
| 761 GetAccountInfoResponse(); | 911 GetAccountInfoResponse(); |
| 762 | 912 |
| 763 GetAccountInfoResponse.fromJson(core.Map _json) { | 913 GetAccountInfoResponse.fromJson(core.Map _json) { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 } | 1125 } |
| 976 } | 1126 } |
| 977 | 1127 |
| 978 /** Request to delete account. */ | 1128 /** Request to delete account. */ |
| 979 class IdentitytoolkitRelyingpartyDeleteAccountRequest { | 1129 class IdentitytoolkitRelyingpartyDeleteAccountRequest { |
| 980 /** | 1130 /** |
| 981 * GCP project number of the requesting delegated app. Currently only intended | 1131 * GCP project number of the requesting delegated app. Currently only intended |
| 982 * for Firebase V1 migration. | 1132 * for Firebase V1 migration. |
| 983 */ | 1133 */ |
| 984 core.String delegatedProjectNumber; | 1134 core.String delegatedProjectNumber; |
| 1135 /** The GITKit token or STS id token of the authenticated user. */ |
| 1136 core.String idToken; |
| 985 /** The local ID of the user. */ | 1137 /** The local ID of the user. */ |
| 986 core.String localId; | 1138 core.String localId; |
| 987 | 1139 |
| 988 IdentitytoolkitRelyingpartyDeleteAccountRequest(); | 1140 IdentitytoolkitRelyingpartyDeleteAccountRequest(); |
| 989 | 1141 |
| 990 IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(core.Map _json) { | 1142 IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(core.Map _json) { |
| 991 if (_json.containsKey("delegatedProjectNumber")) { | 1143 if (_json.containsKey("delegatedProjectNumber")) { |
| 992 delegatedProjectNumber = _json["delegatedProjectNumber"]; | 1144 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 993 } | 1145 } |
| 1146 if (_json.containsKey("idToken")) { |
| 1147 idToken = _json["idToken"]; |
| 1148 } |
| 994 if (_json.containsKey("localId")) { | 1149 if (_json.containsKey("localId")) { |
| 995 localId = _json["localId"]; | 1150 localId = _json["localId"]; |
| 996 } | 1151 } |
| 997 } | 1152 } |
| 998 | 1153 |
| 999 core.Map toJson() { | 1154 core.Map toJson() { |
| 1000 var _json = new core.Map(); | 1155 var _json = new core.Map(); |
| 1001 if (delegatedProjectNumber != null) { | 1156 if (delegatedProjectNumber != null) { |
| 1002 _json["delegatedProjectNumber"] = delegatedProjectNumber; | 1157 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1003 } | 1158 } |
| 1159 if (idToken != null) { |
| 1160 _json["idToken"] = idToken; |
| 1161 } |
| 1004 if (localId != null) { | 1162 if (localId != null) { |
| 1005 _json["localId"] = localId; | 1163 _json["localId"] = localId; |
| 1006 } | 1164 } |
| 1007 return _json; | 1165 return _json; |
| 1008 } | 1166 } |
| 1009 } | 1167 } |
| 1010 | 1168 |
| 1011 /** Request to download user account in batch. */ | 1169 /** Request to download user account in batch. */ |
| 1012 class IdentitytoolkitRelyingpartyDownloadAccountRequest { | 1170 class IdentitytoolkitRelyingpartyDownloadAccountRequest { |
| 1013 /** | 1171 /** |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 } | 1205 } |
| 1048 if (nextPageToken != null) { | 1206 if (nextPageToken != null) { |
| 1049 _json["nextPageToken"] = nextPageToken; | 1207 _json["nextPageToken"] = nextPageToken; |
| 1050 } | 1208 } |
| 1051 return _json; | 1209 return _json; |
| 1052 } | 1210 } |
| 1053 } | 1211 } |
| 1054 | 1212 |
| 1055 /** Request to get the account information. */ | 1213 /** Request to get the account information. */ |
| 1056 class IdentitytoolkitRelyingpartyGetAccountInfoRequest { | 1214 class IdentitytoolkitRelyingpartyGetAccountInfoRequest { |
| 1215 /** |
| 1216 * GCP project number of the requesting delegated app. Currently only intended |
| 1217 * for Firebase V1 migration. |
| 1218 */ |
| 1219 core.String delegatedProjectNumber; |
| 1057 /** The list of emails of the users to inquiry. */ | 1220 /** The list of emails of the users to inquiry. */ |
| 1058 core.List<core.String> email; | 1221 core.List<core.String> email; |
| 1059 /** The GITKit token of the authenticated user. */ | 1222 /** The GITKit token of the authenticated user. */ |
| 1060 core.String idToken; | 1223 core.String idToken; |
| 1061 /** The list of local ID's of the users to inquiry. */ | 1224 /** The list of local ID's of the users to inquiry. */ |
| 1062 core.List<core.String> localId; | 1225 core.List<core.String> localId; |
| 1063 | 1226 |
| 1064 IdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 1227 IdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
| 1065 | 1228 |
| 1066 IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson(core.Map _json) { | 1229 IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson(core.Map _json) { |
| 1230 if (_json.containsKey("delegatedProjectNumber")) { |
| 1231 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 1232 } |
| 1067 if (_json.containsKey("email")) { | 1233 if (_json.containsKey("email")) { |
| 1068 email = _json["email"]; | 1234 email = _json["email"]; |
| 1069 } | 1235 } |
| 1070 if (_json.containsKey("idToken")) { | 1236 if (_json.containsKey("idToken")) { |
| 1071 idToken = _json["idToken"]; | 1237 idToken = _json["idToken"]; |
| 1072 } | 1238 } |
| 1073 if (_json.containsKey("localId")) { | 1239 if (_json.containsKey("localId")) { |
| 1074 localId = _json["localId"]; | 1240 localId = _json["localId"]; |
| 1075 } | 1241 } |
| 1076 } | 1242 } |
| 1077 | 1243 |
| 1078 core.Map toJson() { | 1244 core.Map toJson() { |
| 1079 var _json = new core.Map(); | 1245 var _json = new core.Map(); |
| 1246 if (delegatedProjectNumber != null) { |
| 1247 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1248 } |
| 1080 if (email != null) { | 1249 if (email != null) { |
| 1081 _json["email"] = email; | 1250 _json["email"] = email; |
| 1082 } | 1251 } |
| 1083 if (idToken != null) { | 1252 if (idToken != null) { |
| 1084 _json["idToken"] = idToken; | 1253 _json["idToken"] = idToken; |
| 1085 } | 1254 } |
| 1086 if (localId != null) { | 1255 if (localId != null) { |
| 1087 _json["localId"] = localId; | 1256 _json["localId"] = localId; |
| 1088 } | 1257 } |
| 1089 return _json; | 1258 return _json; |
| 1090 } | 1259 } |
| 1091 } | 1260 } |
| 1092 | 1261 |
| 1093 /** Response of getting the project configuration. */ | 1262 /** Response of getting the project configuration. */ |
| 1094 class IdentitytoolkitRelyingpartyGetProjectConfigResponse { | 1263 class IdentitytoolkitRelyingpartyGetProjectConfigResponse { |
| 1095 /** Whether to allow password user sign in or sign up. */ | 1264 /** Whether to allow password user sign in or sign up. */ |
| 1096 core.bool allowPasswordUser; | 1265 core.bool allowPasswordUser; |
| 1097 /** Browser API key, needed when making http request to Apiary. */ | 1266 /** Browser API key, needed when making http request to Apiary. */ |
| 1098 core.String apiKey; | 1267 core.String apiKey; |
| 1268 /** Authorized domains. */ |
| 1269 core.List<core.String> authorizedDomains; |
| 1270 /** Change email template. */ |
| 1271 EmailTemplate changeEmailTemplate; |
| 1099 /** OAuth2 provider configuration. */ | 1272 /** OAuth2 provider configuration. */ |
| 1100 core.List<IdpConfig> idpConfig; | 1273 core.List<IdpConfig> idpConfig; |
| 1101 /** Project ID of the relying party. */ | 1274 /** Project ID of the relying party. */ |
| 1102 core.String projectId; | 1275 core.String projectId; |
| 1276 /** Reset password email template. */ |
| 1277 EmailTemplate resetPasswordTemplate; |
| 1278 /** Whether to use email sending provided by Firebear. */ |
| 1279 core.bool useEmailSending; |
| 1280 /** Verify email template. */ |
| 1281 EmailTemplate verifyEmailTemplate; |
| 1103 | 1282 |
| 1104 IdentitytoolkitRelyingpartyGetProjectConfigResponse(); | 1283 IdentitytoolkitRelyingpartyGetProjectConfigResponse(); |
| 1105 | 1284 |
| 1106 IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(core.Map _json) { | 1285 IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(core.Map _json) { |
| 1107 if (_json.containsKey("allowPasswordUser")) { | 1286 if (_json.containsKey("allowPasswordUser")) { |
| 1108 allowPasswordUser = _json["allowPasswordUser"]; | 1287 allowPasswordUser = _json["allowPasswordUser"]; |
| 1109 } | 1288 } |
| 1110 if (_json.containsKey("apiKey")) { | 1289 if (_json.containsKey("apiKey")) { |
| 1111 apiKey = _json["apiKey"]; | 1290 apiKey = _json["apiKey"]; |
| 1112 } | 1291 } |
| 1292 if (_json.containsKey("authorizedDomains")) { |
| 1293 authorizedDomains = _json["authorizedDomains"]; |
| 1294 } |
| 1295 if (_json.containsKey("changeEmailTemplate")) { |
| 1296 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat
e"]); |
| 1297 } |
| 1113 if (_json.containsKey("idpConfig")) { | 1298 if (_json.containsKey("idpConfig")) { |
| 1114 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value
)).toList(); | 1299 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value
)).toList(); |
| 1115 } | 1300 } |
| 1116 if (_json.containsKey("projectId")) { | 1301 if (_json.containsKey("projectId")) { |
| 1117 projectId = _json["projectId"]; | 1302 projectId = _json["projectId"]; |
| 1118 } | 1303 } |
| 1304 if (_json.containsKey("resetPasswordTemplate")) { |
| 1305 resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTem
plate"]); |
| 1306 } |
| 1307 if (_json.containsKey("useEmailSending")) { |
| 1308 useEmailSending = _json["useEmailSending"]; |
| 1309 } |
| 1310 if (_json.containsKey("verifyEmailTemplate")) { |
| 1311 verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplat
e"]); |
| 1312 } |
| 1119 } | 1313 } |
| 1120 | 1314 |
| 1121 core.Map toJson() { | 1315 core.Map toJson() { |
| 1122 var _json = new core.Map(); | 1316 var _json = new core.Map(); |
| 1123 if (allowPasswordUser != null) { | 1317 if (allowPasswordUser != null) { |
| 1124 _json["allowPasswordUser"] = allowPasswordUser; | 1318 _json["allowPasswordUser"] = allowPasswordUser; |
| 1125 } | 1319 } |
| 1126 if (apiKey != null) { | 1320 if (apiKey != null) { |
| 1127 _json["apiKey"] = apiKey; | 1321 _json["apiKey"] = apiKey; |
| 1128 } | 1322 } |
| 1323 if (authorizedDomains != null) { |
| 1324 _json["authorizedDomains"] = authorizedDomains; |
| 1325 } |
| 1326 if (changeEmailTemplate != null) { |
| 1327 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); |
| 1328 } |
| 1129 if (idpConfig != null) { | 1329 if (idpConfig != null) { |
| 1130 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); | 1330 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); |
| 1131 } | 1331 } |
| 1132 if (projectId != null) { | 1332 if (projectId != null) { |
| 1133 _json["projectId"] = projectId; | 1333 _json["projectId"] = projectId; |
| 1134 } | 1334 } |
| 1335 if (resetPasswordTemplate != null) { |
| 1336 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson(); |
| 1337 } |
| 1338 if (useEmailSending != null) { |
| 1339 _json["useEmailSending"] = useEmailSending; |
| 1340 } |
| 1341 if (verifyEmailTemplate != null) { |
| 1342 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson(); |
| 1343 } |
| 1135 return _json; | 1344 return _json; |
| 1136 } | 1345 } |
| 1137 } | 1346 } |
| 1138 | 1347 |
| 1139 /** Respone of getting public keys. */ | 1348 /** Respone of getting public keys. */ |
| 1140 class IdentitytoolkitRelyingpartyGetPublicKeysResponse | 1349 class IdentitytoolkitRelyingpartyGetPublicKeysResponse |
| 1141 extends collection.MapBase<core.String, core.String> { | 1350 extends collection.MapBase<core.String, core.String> { |
| 1142 final core.Map _innerMap = {}; | 1351 final core.Map _innerMap = {}; |
| 1143 | 1352 |
| 1144 IdentitytoolkitRelyingpartyGetPublicKeysResponse(); | 1353 IdentitytoolkitRelyingpartyGetPublicKeysResponse(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 class IdentitytoolkitRelyingpartySetAccountInfoRequest { | 1432 class IdentitytoolkitRelyingpartySetAccountInfoRequest { |
| 1224 /** The captcha challenge. */ | 1433 /** The captcha challenge. */ |
| 1225 core.String captchaChallenge; | 1434 core.String captchaChallenge; |
| 1226 /** Response to the captcha. */ | 1435 /** Response to the captcha. */ |
| 1227 core.String captchaResponse; | 1436 core.String captchaResponse; |
| 1228 /** | 1437 /** |
| 1229 * GCP project number of the requesting delegated app. Currently only intended | 1438 * GCP project number of the requesting delegated app. Currently only intended |
| 1230 * for Firebase V1 migration. | 1439 * for Firebase V1 migration. |
| 1231 */ | 1440 */ |
| 1232 core.String delegatedProjectNumber; | 1441 core.String delegatedProjectNumber; |
| 1442 /** The attributes users request to delete. */ |
| 1443 core.List<core.String> deleteAttribute; |
| 1444 /** The IDPs the user request to delete. */ |
| 1445 core.List<core.String> deleteProvider; |
| 1233 /** Whether to disable the user. */ | 1446 /** Whether to disable the user. */ |
| 1234 core.bool disableUser; | 1447 core.bool disableUser; |
| 1235 /** The name of the user. */ | 1448 /** The name of the user. */ |
| 1236 core.String displayName; | 1449 core.String displayName; |
| 1237 /** The email of the user. */ | 1450 /** The email of the user. */ |
| 1238 core.String email; | 1451 core.String email; |
| 1239 /** Mark the email as verified or not. */ | 1452 /** Mark the email as verified or not. */ |
| 1240 core.bool emailVerified; | 1453 core.bool emailVerified; |
| 1241 /** The GITKit token of the authenticated user. */ | 1454 /** The GITKit token of the authenticated user. */ |
| 1242 core.String idToken; | 1455 core.String idToken; |
| 1243 /** Instance id token of the app. */ | 1456 /** Instance id token of the app. */ |
| 1244 core.String instanceId; | 1457 core.String instanceId; |
| 1245 /** The local ID of the user. */ | 1458 /** The local ID of the user. */ |
| 1246 core.String localId; | 1459 core.String localId; |
| 1247 /** The out-of-band code of the change email request. */ | 1460 /** The out-of-band code of the change email request. */ |
| 1248 core.String oobCode; | 1461 core.String oobCode; |
| 1249 /** The new password of the user. */ | 1462 /** The new password of the user. */ |
| 1250 core.String password; | 1463 core.String password; |
| 1464 /** The photo url of the user. */ |
| 1465 core.String photoUrl; |
| 1251 /** The associated IDPs of the user. */ | 1466 /** The associated IDPs of the user. */ |
| 1252 core.List<core.String> provider; | 1467 core.List<core.String> provider; |
| 1468 /** Whether return sts id token and refresh token instead of gitkit token. */ |
| 1469 core.bool returnSecureToken; |
| 1253 /** Mark the user to upgrade to federated login. */ | 1470 /** Mark the user to upgrade to federated login. */ |
| 1254 core.bool upgradeToFederatedLogin; | 1471 core.bool upgradeToFederatedLogin; |
| 1255 /** Timestamp in seconds for valid login token. */ | 1472 /** Timestamp in seconds for valid login token. */ |
| 1256 core.String validSince; | 1473 core.String validSince; |
| 1257 | 1474 |
| 1258 IdentitytoolkitRelyingpartySetAccountInfoRequest(); | 1475 IdentitytoolkitRelyingpartySetAccountInfoRequest(); |
| 1259 | 1476 |
| 1260 IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson(core.Map _json) { | 1477 IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson(core.Map _json) { |
| 1261 if (_json.containsKey("captchaChallenge")) { | 1478 if (_json.containsKey("captchaChallenge")) { |
| 1262 captchaChallenge = _json["captchaChallenge"]; | 1479 captchaChallenge = _json["captchaChallenge"]; |
| 1263 } | 1480 } |
| 1264 if (_json.containsKey("captchaResponse")) { | 1481 if (_json.containsKey("captchaResponse")) { |
| 1265 captchaResponse = _json["captchaResponse"]; | 1482 captchaResponse = _json["captchaResponse"]; |
| 1266 } | 1483 } |
| 1267 if (_json.containsKey("delegatedProjectNumber")) { | 1484 if (_json.containsKey("delegatedProjectNumber")) { |
| 1268 delegatedProjectNumber = _json["delegatedProjectNumber"]; | 1485 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 1269 } | 1486 } |
| 1487 if (_json.containsKey("deleteAttribute")) { |
| 1488 deleteAttribute = _json["deleteAttribute"]; |
| 1489 } |
| 1490 if (_json.containsKey("deleteProvider")) { |
| 1491 deleteProvider = _json["deleteProvider"]; |
| 1492 } |
| 1270 if (_json.containsKey("disableUser")) { | 1493 if (_json.containsKey("disableUser")) { |
| 1271 disableUser = _json["disableUser"]; | 1494 disableUser = _json["disableUser"]; |
| 1272 } | 1495 } |
| 1273 if (_json.containsKey("displayName")) { | 1496 if (_json.containsKey("displayName")) { |
| 1274 displayName = _json["displayName"]; | 1497 displayName = _json["displayName"]; |
| 1275 } | 1498 } |
| 1276 if (_json.containsKey("email")) { | 1499 if (_json.containsKey("email")) { |
| 1277 email = _json["email"]; | 1500 email = _json["email"]; |
| 1278 } | 1501 } |
| 1279 if (_json.containsKey("emailVerified")) { | 1502 if (_json.containsKey("emailVerified")) { |
| 1280 emailVerified = _json["emailVerified"]; | 1503 emailVerified = _json["emailVerified"]; |
| 1281 } | 1504 } |
| 1282 if (_json.containsKey("idToken")) { | 1505 if (_json.containsKey("idToken")) { |
| 1283 idToken = _json["idToken"]; | 1506 idToken = _json["idToken"]; |
| 1284 } | 1507 } |
| 1285 if (_json.containsKey("instanceId")) { | 1508 if (_json.containsKey("instanceId")) { |
| 1286 instanceId = _json["instanceId"]; | 1509 instanceId = _json["instanceId"]; |
| 1287 } | 1510 } |
| 1288 if (_json.containsKey("localId")) { | 1511 if (_json.containsKey("localId")) { |
| 1289 localId = _json["localId"]; | 1512 localId = _json["localId"]; |
| 1290 } | 1513 } |
| 1291 if (_json.containsKey("oobCode")) { | 1514 if (_json.containsKey("oobCode")) { |
| 1292 oobCode = _json["oobCode"]; | 1515 oobCode = _json["oobCode"]; |
| 1293 } | 1516 } |
| 1294 if (_json.containsKey("password")) { | 1517 if (_json.containsKey("password")) { |
| 1295 password = _json["password"]; | 1518 password = _json["password"]; |
| 1296 } | 1519 } |
| 1520 if (_json.containsKey("photoUrl")) { |
| 1521 photoUrl = _json["photoUrl"]; |
| 1522 } |
| 1297 if (_json.containsKey("provider")) { | 1523 if (_json.containsKey("provider")) { |
| 1298 provider = _json["provider"]; | 1524 provider = _json["provider"]; |
| 1299 } | 1525 } |
| 1526 if (_json.containsKey("returnSecureToken")) { |
| 1527 returnSecureToken = _json["returnSecureToken"]; |
| 1528 } |
| 1300 if (_json.containsKey("upgradeToFederatedLogin")) { | 1529 if (_json.containsKey("upgradeToFederatedLogin")) { |
| 1301 upgradeToFederatedLogin = _json["upgradeToFederatedLogin"]; | 1530 upgradeToFederatedLogin = _json["upgradeToFederatedLogin"]; |
| 1302 } | 1531 } |
| 1303 if (_json.containsKey("validSince")) { | 1532 if (_json.containsKey("validSince")) { |
| 1304 validSince = _json["validSince"]; | 1533 validSince = _json["validSince"]; |
| 1305 } | 1534 } |
| 1306 } | 1535 } |
| 1307 | 1536 |
| 1308 core.Map toJson() { | 1537 core.Map toJson() { |
| 1309 var _json = new core.Map(); | 1538 var _json = new core.Map(); |
| 1310 if (captchaChallenge != null) { | 1539 if (captchaChallenge != null) { |
| 1311 _json["captchaChallenge"] = captchaChallenge; | 1540 _json["captchaChallenge"] = captchaChallenge; |
| 1312 } | 1541 } |
| 1313 if (captchaResponse != null) { | 1542 if (captchaResponse != null) { |
| 1314 _json["captchaResponse"] = captchaResponse; | 1543 _json["captchaResponse"] = captchaResponse; |
| 1315 } | 1544 } |
| 1316 if (delegatedProjectNumber != null) { | 1545 if (delegatedProjectNumber != null) { |
| 1317 _json["delegatedProjectNumber"] = delegatedProjectNumber; | 1546 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1318 } | 1547 } |
| 1548 if (deleteAttribute != null) { |
| 1549 _json["deleteAttribute"] = deleteAttribute; |
| 1550 } |
| 1551 if (deleteProvider != null) { |
| 1552 _json["deleteProvider"] = deleteProvider; |
| 1553 } |
| 1319 if (disableUser != null) { | 1554 if (disableUser != null) { |
| 1320 _json["disableUser"] = disableUser; | 1555 _json["disableUser"] = disableUser; |
| 1321 } | 1556 } |
| 1322 if (displayName != null) { | 1557 if (displayName != null) { |
| 1323 _json["displayName"] = displayName; | 1558 _json["displayName"] = displayName; |
| 1324 } | 1559 } |
| 1325 if (email != null) { | 1560 if (email != null) { |
| 1326 _json["email"] = email; | 1561 _json["email"] = email; |
| 1327 } | 1562 } |
| 1328 if (emailVerified != null) { | 1563 if (emailVerified != null) { |
| 1329 _json["emailVerified"] = emailVerified; | 1564 _json["emailVerified"] = emailVerified; |
| 1330 } | 1565 } |
| 1331 if (idToken != null) { | 1566 if (idToken != null) { |
| 1332 _json["idToken"] = idToken; | 1567 _json["idToken"] = idToken; |
| 1333 } | 1568 } |
| 1334 if (instanceId != null) { | 1569 if (instanceId != null) { |
| 1335 _json["instanceId"] = instanceId; | 1570 _json["instanceId"] = instanceId; |
| 1336 } | 1571 } |
| 1337 if (localId != null) { | 1572 if (localId != null) { |
| 1338 _json["localId"] = localId; | 1573 _json["localId"] = localId; |
| 1339 } | 1574 } |
| 1340 if (oobCode != null) { | 1575 if (oobCode != null) { |
| 1341 _json["oobCode"] = oobCode; | 1576 _json["oobCode"] = oobCode; |
| 1342 } | 1577 } |
| 1343 if (password != null) { | 1578 if (password != null) { |
| 1344 _json["password"] = password; | 1579 _json["password"] = password; |
| 1345 } | 1580 } |
| 1581 if (photoUrl != null) { |
| 1582 _json["photoUrl"] = photoUrl; |
| 1583 } |
| 1346 if (provider != null) { | 1584 if (provider != null) { |
| 1347 _json["provider"] = provider; | 1585 _json["provider"] = provider; |
| 1348 } | 1586 } |
| 1587 if (returnSecureToken != null) { |
| 1588 _json["returnSecureToken"] = returnSecureToken; |
| 1589 } |
| 1349 if (upgradeToFederatedLogin != null) { | 1590 if (upgradeToFederatedLogin != null) { |
| 1350 _json["upgradeToFederatedLogin"] = upgradeToFederatedLogin; | 1591 _json["upgradeToFederatedLogin"] = upgradeToFederatedLogin; |
| 1351 } | 1592 } |
| 1352 if (validSince != null) { | 1593 if (validSince != null) { |
| 1353 _json["validSince"] = validSince; | 1594 _json["validSince"] = validSince; |
| 1354 } | 1595 } |
| 1355 return _json; | 1596 return _json; |
| 1356 } | 1597 } |
| 1357 } | 1598 } |
| 1358 | 1599 |
| 1600 /** Request to set the project configuration. */ |
| 1601 class IdentitytoolkitRelyingpartySetProjectConfigRequest { |
| 1602 /** Whether to allow password user sign in or sign up. */ |
| 1603 core.bool allowPasswordUser; |
| 1604 /** Browser API key, needed when making http request to Apiary. */ |
| 1605 core.String apiKey; |
| 1606 /** Change email template. */ |
| 1607 EmailTemplate changeEmailTemplate; |
| 1608 /** |
| 1609 * GCP project number of the requesting delegated app. Currently only intended |
| 1610 * for Firebase V1 migration. |
| 1611 */ |
| 1612 core.String delegatedProjectNumber; |
| 1613 /** Oauth2 provider configuration. */ |
| 1614 core.List<IdpConfig> idpConfig; |
| 1615 /** Reset password email template. */ |
| 1616 EmailTemplate resetPasswordTemplate; |
| 1617 /** Whether to use email sending provided by Firebear. */ |
| 1618 core.bool useEmailSending; |
| 1619 /** Verify email template. */ |
| 1620 EmailTemplate verifyEmailTemplate; |
| 1621 |
| 1622 IdentitytoolkitRelyingpartySetProjectConfigRequest(); |
| 1623 |
| 1624 IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson(core.Map _json) { |
| 1625 if (_json.containsKey("allowPasswordUser")) { |
| 1626 allowPasswordUser = _json["allowPasswordUser"]; |
| 1627 } |
| 1628 if (_json.containsKey("apiKey")) { |
| 1629 apiKey = _json["apiKey"]; |
| 1630 } |
| 1631 if (_json.containsKey("changeEmailTemplate")) { |
| 1632 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat
e"]); |
| 1633 } |
| 1634 if (_json.containsKey("delegatedProjectNumber")) { |
| 1635 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 1636 } |
| 1637 if (_json.containsKey("idpConfig")) { |
| 1638 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value
)).toList(); |
| 1639 } |
| 1640 if (_json.containsKey("resetPasswordTemplate")) { |
| 1641 resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTem
plate"]); |
| 1642 } |
| 1643 if (_json.containsKey("useEmailSending")) { |
| 1644 useEmailSending = _json["useEmailSending"]; |
| 1645 } |
| 1646 if (_json.containsKey("verifyEmailTemplate")) { |
| 1647 verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplat
e"]); |
| 1648 } |
| 1649 } |
| 1650 |
| 1651 core.Map toJson() { |
| 1652 var _json = new core.Map(); |
| 1653 if (allowPasswordUser != null) { |
| 1654 _json["allowPasswordUser"] = allowPasswordUser; |
| 1655 } |
| 1656 if (apiKey != null) { |
| 1657 _json["apiKey"] = apiKey; |
| 1658 } |
| 1659 if (changeEmailTemplate != null) { |
| 1660 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); |
| 1661 } |
| 1662 if (delegatedProjectNumber != null) { |
| 1663 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1664 } |
| 1665 if (idpConfig != null) { |
| 1666 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); |
| 1667 } |
| 1668 if (resetPasswordTemplate != null) { |
| 1669 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson(); |
| 1670 } |
| 1671 if (useEmailSending != null) { |
| 1672 _json["useEmailSending"] = useEmailSending; |
| 1673 } |
| 1674 if (verifyEmailTemplate != null) { |
| 1675 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson(); |
| 1676 } |
| 1677 return _json; |
| 1678 } |
| 1679 } |
| 1680 |
| 1681 /** Response of setting the project configuration. */ |
| 1682 class IdentitytoolkitRelyingpartySetProjectConfigResponse { |
| 1683 /** Project ID of the relying party. */ |
| 1684 core.String projectId; |
| 1685 |
| 1686 IdentitytoolkitRelyingpartySetProjectConfigResponse(); |
| 1687 |
| 1688 IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(core.Map _json) { |
| 1689 if (_json.containsKey("projectId")) { |
| 1690 projectId = _json["projectId"]; |
| 1691 } |
| 1692 } |
| 1693 |
| 1694 core.Map toJson() { |
| 1695 var _json = new core.Map(); |
| 1696 if (projectId != null) { |
| 1697 _json["projectId"] = projectId; |
| 1698 } |
| 1699 return _json; |
| 1700 } |
| 1701 } |
| 1702 |
| 1359 /** Request to sign out user. */ | 1703 /** Request to sign out user. */ |
| 1360 class IdentitytoolkitRelyingpartySignOutUserRequest { | 1704 class IdentitytoolkitRelyingpartySignOutUserRequest { |
| 1361 /** Instance id token of the app. */ | 1705 /** Instance id token of the app. */ |
| 1362 core.String instanceId; | 1706 core.String instanceId; |
| 1363 /** The local ID of the user. */ | 1707 /** The local ID of the user. */ |
| 1364 core.String localId; | 1708 core.String localId; |
| 1365 | 1709 |
| 1366 IdentitytoolkitRelyingpartySignOutUserRequest(); | 1710 IdentitytoolkitRelyingpartySignOutUserRequest(); |
| 1367 | 1711 |
| 1368 IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(core.Map _json) { | 1712 IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(core.Map _json) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 | 1745 |
| 1402 core.Map toJson() { | 1746 core.Map toJson() { |
| 1403 var _json = new core.Map(); | 1747 var _json = new core.Map(); |
| 1404 if (localId != null) { | 1748 if (localId != null) { |
| 1405 _json["localId"] = localId; | 1749 _json["localId"] = localId; |
| 1406 } | 1750 } |
| 1407 return _json; | 1751 return _json; |
| 1408 } | 1752 } |
| 1409 } | 1753 } |
| 1410 | 1754 |
| 1755 /** |
| 1756 * Request to signup new user, create anonymous user or anonymous user reauth. |
| 1757 */ |
| 1758 class IdentitytoolkitRelyingpartySignupNewUserRequest { |
| 1759 /** The captcha challenge. */ |
| 1760 core.String captchaChallenge; |
| 1761 /** Response to the captcha. */ |
| 1762 core.String captchaResponse; |
| 1763 /** The name of the user. */ |
| 1764 core.String displayName; |
| 1765 /** The email of the user. */ |
| 1766 core.String email; |
| 1767 /** The GITKit token of the authenticated user. */ |
| 1768 core.String idToken; |
| 1769 /** Instance id token of the app. */ |
| 1770 core.String instanceId; |
| 1771 /** The new password of the user. */ |
| 1772 core.String password; |
| 1773 /** Whether return sts id token and refresh token instead of gitkit token. */ |
| 1774 core.bool returnSecureToken; |
| 1775 |
| 1776 IdentitytoolkitRelyingpartySignupNewUserRequest(); |
| 1777 |
| 1778 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { |
| 1779 if (_json.containsKey("captchaChallenge")) { |
| 1780 captchaChallenge = _json["captchaChallenge"]; |
| 1781 } |
| 1782 if (_json.containsKey("captchaResponse")) { |
| 1783 captchaResponse = _json["captchaResponse"]; |
| 1784 } |
| 1785 if (_json.containsKey("displayName")) { |
| 1786 displayName = _json["displayName"]; |
| 1787 } |
| 1788 if (_json.containsKey("email")) { |
| 1789 email = _json["email"]; |
| 1790 } |
| 1791 if (_json.containsKey("idToken")) { |
| 1792 idToken = _json["idToken"]; |
| 1793 } |
| 1794 if (_json.containsKey("instanceId")) { |
| 1795 instanceId = _json["instanceId"]; |
| 1796 } |
| 1797 if (_json.containsKey("password")) { |
| 1798 password = _json["password"]; |
| 1799 } |
| 1800 if (_json.containsKey("returnSecureToken")) { |
| 1801 returnSecureToken = _json["returnSecureToken"]; |
| 1802 } |
| 1803 } |
| 1804 |
| 1805 core.Map toJson() { |
| 1806 var _json = new core.Map(); |
| 1807 if (captchaChallenge != null) { |
| 1808 _json["captchaChallenge"] = captchaChallenge; |
| 1809 } |
| 1810 if (captchaResponse != null) { |
| 1811 _json["captchaResponse"] = captchaResponse; |
| 1812 } |
| 1813 if (displayName != null) { |
| 1814 _json["displayName"] = displayName; |
| 1815 } |
| 1816 if (email != null) { |
| 1817 _json["email"] = email; |
| 1818 } |
| 1819 if (idToken != null) { |
| 1820 _json["idToken"] = idToken; |
| 1821 } |
| 1822 if (instanceId != null) { |
| 1823 _json["instanceId"] = instanceId; |
| 1824 } |
| 1825 if (password != null) { |
| 1826 _json["password"] = password; |
| 1827 } |
| 1828 if (returnSecureToken != null) { |
| 1829 _json["returnSecureToken"] = returnSecureToken; |
| 1830 } |
| 1831 return _json; |
| 1832 } |
| 1833 } |
| 1834 |
| 1411 /** Request to upload user account in batch. */ | 1835 /** Request to upload user account in batch. */ |
| 1412 class IdentitytoolkitRelyingpartyUploadAccountRequest { | 1836 class IdentitytoolkitRelyingpartyUploadAccountRequest { |
| 1413 /** | 1837 /** |
| 1414 * GCP project number of the requesting delegated app. Currently only intended | 1838 * GCP project number of the requesting delegated app. Currently only intended |
| 1415 * for Firebase V1 migration. | 1839 * for Firebase V1 migration. |
| 1416 */ | 1840 */ |
| 1417 core.String delegatedProjectNumber; | 1841 core.String delegatedProjectNumber; |
| 1418 /** The password hash algorithm. */ | 1842 /** The password hash algorithm. */ |
| 1419 core.String hashAlgorithm; | 1843 core.String hashAlgorithm; |
| 1420 /** Memory cost for hash calculation. Used by scrypt similar algorithms. */ | 1844 /** Memory cost for hash calculation. Used by scrypt similar algorithms. */ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 } | 1919 } |
| 1496 } | 1920 } |
| 1497 | 1921 |
| 1498 /** Request to verify the IDP assertion. */ | 1922 /** Request to verify the IDP assertion. */ |
| 1499 class IdentitytoolkitRelyingpartyVerifyAssertionRequest { | 1923 class IdentitytoolkitRelyingpartyVerifyAssertionRequest { |
| 1500 /** | 1924 /** |
| 1501 * GCP project number of the requesting delegated app. Currently only intended | 1925 * GCP project number of the requesting delegated app. Currently only intended |
| 1502 * for Firebase V1 migration. | 1926 * for Firebase V1 migration. |
| 1503 */ | 1927 */ |
| 1504 core.String delegatedProjectNumber; | 1928 core.String delegatedProjectNumber; |
| 1929 /** The GITKit token of the authenticated user. */ |
| 1930 core.String idToken; |
| 1505 /** Instance id token of the app. */ | 1931 /** Instance id token of the app. */ |
| 1506 core.String instanceId; | 1932 core.String instanceId; |
| 1507 /** | 1933 /** |
| 1508 * The GITKit token for the non-trusted IDP pending to be confirmed by the | 1934 * The GITKit token for the non-trusted IDP pending to be confirmed by the |
| 1509 * user. | 1935 * user. |
| 1510 */ | 1936 */ |
| 1511 core.String pendingIdToken; | 1937 core.String pendingIdToken; |
| 1512 /** The post body if the request is a HTTP POST. */ | 1938 /** The post body if the request is a HTTP POST. */ |
| 1513 core.String postBody; | 1939 core.String postBody; |
| 1514 /** | 1940 /** |
| 1515 * The URI to which the IDP redirects the user back. It may contain federated | 1941 * The URI to which the IDP redirects the user back. It may contain federated |
| 1516 * login result params added by the IDP. | 1942 * login result params added by the IDP. |
| 1517 */ | 1943 */ |
| 1518 core.String requestUri; | 1944 core.String requestUri; |
| 1519 /** Whether to return refresh tokens. */ | 1945 /** Whether to return refresh tokens. */ |
| 1520 core.bool returnRefreshToken; | 1946 core.bool returnRefreshToken; |
| 1947 /** Whether return sts id token and refresh token instead of gitkit token. */ |
| 1948 core.bool returnSecureToken; |
| 1521 /** | 1949 /** |
| 1522 * Session ID, which should match the one in previous createAuthUri request. | 1950 * Session ID, which should match the one in previous createAuthUri request. |
| 1523 */ | 1951 */ |
| 1524 core.String sessionId; | 1952 core.String sessionId; |
| 1525 | 1953 |
| 1526 IdentitytoolkitRelyingpartyVerifyAssertionRequest(); | 1954 IdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
| 1527 | 1955 |
| 1528 IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(core.Map _json) { | 1956 IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(core.Map _json) { |
| 1529 if (_json.containsKey("delegatedProjectNumber")) { | 1957 if (_json.containsKey("delegatedProjectNumber")) { |
| 1530 delegatedProjectNumber = _json["delegatedProjectNumber"]; | 1958 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 1531 } | 1959 } |
| 1960 if (_json.containsKey("idToken")) { |
| 1961 idToken = _json["idToken"]; |
| 1962 } |
| 1532 if (_json.containsKey("instanceId")) { | 1963 if (_json.containsKey("instanceId")) { |
| 1533 instanceId = _json["instanceId"]; | 1964 instanceId = _json["instanceId"]; |
| 1534 } | 1965 } |
| 1535 if (_json.containsKey("pendingIdToken")) { | 1966 if (_json.containsKey("pendingIdToken")) { |
| 1536 pendingIdToken = _json["pendingIdToken"]; | 1967 pendingIdToken = _json["pendingIdToken"]; |
| 1537 } | 1968 } |
| 1538 if (_json.containsKey("postBody")) { | 1969 if (_json.containsKey("postBody")) { |
| 1539 postBody = _json["postBody"]; | 1970 postBody = _json["postBody"]; |
| 1540 } | 1971 } |
| 1541 if (_json.containsKey("requestUri")) { | 1972 if (_json.containsKey("requestUri")) { |
| 1542 requestUri = _json["requestUri"]; | 1973 requestUri = _json["requestUri"]; |
| 1543 } | 1974 } |
| 1544 if (_json.containsKey("returnRefreshToken")) { | 1975 if (_json.containsKey("returnRefreshToken")) { |
| 1545 returnRefreshToken = _json["returnRefreshToken"]; | 1976 returnRefreshToken = _json["returnRefreshToken"]; |
| 1546 } | 1977 } |
| 1978 if (_json.containsKey("returnSecureToken")) { |
| 1979 returnSecureToken = _json["returnSecureToken"]; |
| 1980 } |
| 1547 if (_json.containsKey("sessionId")) { | 1981 if (_json.containsKey("sessionId")) { |
| 1548 sessionId = _json["sessionId"]; | 1982 sessionId = _json["sessionId"]; |
| 1549 } | 1983 } |
| 1550 } | 1984 } |
| 1551 | 1985 |
| 1552 core.Map toJson() { | 1986 core.Map toJson() { |
| 1553 var _json = new core.Map(); | 1987 var _json = new core.Map(); |
| 1554 if (delegatedProjectNumber != null) { | 1988 if (delegatedProjectNumber != null) { |
| 1555 _json["delegatedProjectNumber"] = delegatedProjectNumber; | 1989 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1556 } | 1990 } |
| 1991 if (idToken != null) { |
| 1992 _json["idToken"] = idToken; |
| 1993 } |
| 1557 if (instanceId != null) { | 1994 if (instanceId != null) { |
| 1558 _json["instanceId"] = instanceId; | 1995 _json["instanceId"] = instanceId; |
| 1559 } | 1996 } |
| 1560 if (pendingIdToken != null) { | 1997 if (pendingIdToken != null) { |
| 1561 _json["pendingIdToken"] = pendingIdToken; | 1998 _json["pendingIdToken"] = pendingIdToken; |
| 1562 } | 1999 } |
| 1563 if (postBody != null) { | 2000 if (postBody != null) { |
| 1564 _json["postBody"] = postBody; | 2001 _json["postBody"] = postBody; |
| 1565 } | 2002 } |
| 1566 if (requestUri != null) { | 2003 if (requestUri != null) { |
| 1567 _json["requestUri"] = requestUri; | 2004 _json["requestUri"] = requestUri; |
| 1568 } | 2005 } |
| 1569 if (returnRefreshToken != null) { | 2006 if (returnRefreshToken != null) { |
| 1570 _json["returnRefreshToken"] = returnRefreshToken; | 2007 _json["returnRefreshToken"] = returnRefreshToken; |
| 1571 } | 2008 } |
| 2009 if (returnSecureToken != null) { |
| 2010 _json["returnSecureToken"] = returnSecureToken; |
| 2011 } |
| 1572 if (sessionId != null) { | 2012 if (sessionId != null) { |
| 1573 _json["sessionId"] = sessionId; | 2013 _json["sessionId"] = sessionId; |
| 1574 } | 2014 } |
| 1575 return _json; | 2015 return _json; |
| 1576 } | 2016 } |
| 1577 } | 2017 } |
| 1578 | 2018 |
| 1579 /** Request to verify a custom token */ | 2019 /** Request to verify a custom token */ |
| 1580 class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest { | 2020 class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest { |
| 1581 /** Instance id token of the app. */ | 2021 /** Instance id token of the app. */ |
| 1582 core.String instanceId; | 2022 core.String instanceId; |
| 2023 /** Whether return sts id token and refresh token instead of gitkit token. */ |
| 2024 core.bool returnSecureToken; |
| 1583 /** The custom token to verify */ | 2025 /** The custom token to verify */ |
| 1584 core.String token; | 2026 core.String token; |
| 1585 | 2027 |
| 1586 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); | 2028 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); |
| 1587 | 2029 |
| 1588 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(core.Map _json) { | 2030 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(core.Map _json) { |
| 1589 if (_json.containsKey("instanceId")) { | 2031 if (_json.containsKey("instanceId")) { |
| 1590 instanceId = _json["instanceId"]; | 2032 instanceId = _json["instanceId"]; |
| 1591 } | 2033 } |
| 2034 if (_json.containsKey("returnSecureToken")) { |
| 2035 returnSecureToken = _json["returnSecureToken"]; |
| 2036 } |
| 1592 if (_json.containsKey("token")) { | 2037 if (_json.containsKey("token")) { |
| 1593 token = _json["token"]; | 2038 token = _json["token"]; |
| 1594 } | 2039 } |
| 1595 } | 2040 } |
| 1596 | 2041 |
| 1597 core.Map toJson() { | 2042 core.Map toJson() { |
| 1598 var _json = new core.Map(); | 2043 var _json = new core.Map(); |
| 1599 if (instanceId != null) { | 2044 if (instanceId != null) { |
| 1600 _json["instanceId"] = instanceId; | 2045 _json["instanceId"] = instanceId; |
| 1601 } | 2046 } |
| 2047 if (returnSecureToken != null) { |
| 2048 _json["returnSecureToken"] = returnSecureToken; |
| 2049 } |
| 1602 if (token != null) { | 2050 if (token != null) { |
| 1603 _json["token"] = token; | 2051 _json["token"] = token; |
| 1604 } | 2052 } |
| 1605 return _json; | 2053 return _json; |
| 1606 } | 2054 } |
| 1607 } | 2055 } |
| 1608 | 2056 |
| 1609 /** Request to verify the password. */ | 2057 /** Request to verify the password. */ |
| 1610 class IdentitytoolkitRelyingpartyVerifyPasswordRequest { | 2058 class IdentitytoolkitRelyingpartyVerifyPasswordRequest { |
| 1611 /** The captcha challenge. */ | 2059 /** The captcha challenge. */ |
| 1612 core.String captchaChallenge; | 2060 core.String captchaChallenge; |
| 1613 /** Response to the captcha. */ | 2061 /** Response to the captcha. */ |
| 1614 core.String captchaResponse; | 2062 core.String captchaResponse; |
| 1615 /** | 2063 /** |
| 1616 * GCP project number of the requesting delegated app. Currently only intended | 2064 * GCP project number of the requesting delegated app. Currently only intended |
| 1617 * for Firebase V1 migration. | 2065 * for Firebase V1 migration. |
| 1618 */ | 2066 */ |
| 1619 core.String delegatedProjectNumber; | 2067 core.String delegatedProjectNumber; |
| 1620 /** The email of the user. */ | 2068 /** The email of the user. */ |
| 1621 core.String email; | 2069 core.String email; |
| 2070 /** The GITKit token of the authenticated user. */ |
| 2071 core.String idToken; |
| 1622 /** Instance id token of the app. */ | 2072 /** Instance id token of the app. */ |
| 1623 core.String instanceId; | 2073 core.String instanceId; |
| 1624 /** The password inputed by the user. */ | 2074 /** The password inputed by the user. */ |
| 1625 core.String password; | 2075 core.String password; |
| 1626 /** | 2076 /** |
| 1627 * The GITKit token for the non-trusted IDP, which is to be confirmed by the | 2077 * The GITKit token for the non-trusted IDP, which is to be confirmed by the |
| 1628 * user. | 2078 * user. |
| 1629 */ | 2079 */ |
| 1630 core.String pendingIdToken; | 2080 core.String pendingIdToken; |
| 2081 /** Whether return sts id token and refresh token instead of gitkit token. */ |
| 2082 core.bool returnSecureToken; |
| 1631 | 2083 |
| 1632 IdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 2084 IdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
| 1633 | 2085 |
| 1634 IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(core.Map _json) { | 2086 IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(core.Map _json) { |
| 1635 if (_json.containsKey("captchaChallenge")) { | 2087 if (_json.containsKey("captchaChallenge")) { |
| 1636 captchaChallenge = _json["captchaChallenge"]; | 2088 captchaChallenge = _json["captchaChallenge"]; |
| 1637 } | 2089 } |
| 1638 if (_json.containsKey("captchaResponse")) { | 2090 if (_json.containsKey("captchaResponse")) { |
| 1639 captchaResponse = _json["captchaResponse"]; | 2091 captchaResponse = _json["captchaResponse"]; |
| 1640 } | 2092 } |
| 1641 if (_json.containsKey("delegatedProjectNumber")) { | 2093 if (_json.containsKey("delegatedProjectNumber")) { |
| 1642 delegatedProjectNumber = _json["delegatedProjectNumber"]; | 2094 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
| 1643 } | 2095 } |
| 1644 if (_json.containsKey("email")) { | 2096 if (_json.containsKey("email")) { |
| 1645 email = _json["email"]; | 2097 email = _json["email"]; |
| 1646 } | 2098 } |
| 2099 if (_json.containsKey("idToken")) { |
| 2100 idToken = _json["idToken"]; |
| 2101 } |
| 1647 if (_json.containsKey("instanceId")) { | 2102 if (_json.containsKey("instanceId")) { |
| 1648 instanceId = _json["instanceId"]; | 2103 instanceId = _json["instanceId"]; |
| 1649 } | 2104 } |
| 1650 if (_json.containsKey("password")) { | 2105 if (_json.containsKey("password")) { |
| 1651 password = _json["password"]; | 2106 password = _json["password"]; |
| 1652 } | 2107 } |
| 1653 if (_json.containsKey("pendingIdToken")) { | 2108 if (_json.containsKey("pendingIdToken")) { |
| 1654 pendingIdToken = _json["pendingIdToken"]; | 2109 pendingIdToken = _json["pendingIdToken"]; |
| 1655 } | 2110 } |
| 2111 if (_json.containsKey("returnSecureToken")) { |
| 2112 returnSecureToken = _json["returnSecureToken"]; |
| 2113 } |
| 1656 } | 2114 } |
| 1657 | 2115 |
| 1658 core.Map toJson() { | 2116 core.Map toJson() { |
| 1659 var _json = new core.Map(); | 2117 var _json = new core.Map(); |
| 1660 if (captchaChallenge != null) { | 2118 if (captchaChallenge != null) { |
| 1661 _json["captchaChallenge"] = captchaChallenge; | 2119 _json["captchaChallenge"] = captchaChallenge; |
| 1662 } | 2120 } |
| 1663 if (captchaResponse != null) { | 2121 if (captchaResponse != null) { |
| 1664 _json["captchaResponse"] = captchaResponse; | 2122 _json["captchaResponse"] = captchaResponse; |
| 1665 } | 2123 } |
| 1666 if (delegatedProjectNumber != null) { | 2124 if (delegatedProjectNumber != null) { |
| 1667 _json["delegatedProjectNumber"] = delegatedProjectNumber; | 2125 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
| 1668 } | 2126 } |
| 1669 if (email != null) { | 2127 if (email != null) { |
| 1670 _json["email"] = email; | 2128 _json["email"] = email; |
| 1671 } | 2129 } |
| 2130 if (idToken != null) { |
| 2131 _json["idToken"] = idToken; |
| 2132 } |
| 1672 if (instanceId != null) { | 2133 if (instanceId != null) { |
| 1673 _json["instanceId"] = instanceId; | 2134 _json["instanceId"] = instanceId; |
| 1674 } | 2135 } |
| 1675 if (password != null) { | 2136 if (password != null) { |
| 1676 _json["password"] = password; | 2137 _json["password"] = password; |
| 1677 } | 2138 } |
| 1678 if (pendingIdToken != null) { | 2139 if (pendingIdToken != null) { |
| 1679 _json["pendingIdToken"] = pendingIdToken; | 2140 _json["pendingIdToken"] = pendingIdToken; |
| 1680 } | 2141 } |
| 2142 if (returnSecureToken != null) { |
| 2143 _json["returnSecureToken"] = returnSecureToken; |
| 2144 } |
| 1681 return _json; | 2145 return _json; |
| 1682 } | 2146 } |
| 1683 } | 2147 } |
| 1684 | 2148 |
| 1685 /** Template for a single idp configuration. */ | 2149 /** Template for a single idp configuration. */ |
| 1686 class IdpConfig { | 2150 class IdpConfig { |
| 1687 /** OAuth2 client ID. */ | 2151 /** OAuth2 client ID. */ |
| 1688 core.String clientId; | 2152 core.String clientId; |
| 1689 /** Whether this IDP is enabled. */ | 2153 /** Whether this IDP is enabled. */ |
| 1690 core.bool enabled; | 2154 core.bool enabled; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1882 return _json; | 2346 return _json; |
| 1883 } | 2347 } |
| 1884 } | 2348 } |
| 1885 | 2349 |
| 1886 /** Respone of setting the account information. */ | 2350 /** Respone of setting the account information. */ |
| 1887 class SetAccountInfoResponse { | 2351 class SetAccountInfoResponse { |
| 1888 /** The name of the user. */ | 2352 /** The name of the user. */ |
| 1889 core.String displayName; | 2353 core.String displayName; |
| 1890 /** The email of the user. */ | 2354 /** The email of the user. */ |
| 1891 core.String email; | 2355 core.String email; |
| 2356 /** |
| 2357 * If idToken is STS id token, then this field will be expiration time of STS |
| 2358 * id token in seconds. |
| 2359 */ |
| 2360 core.String expiresIn; |
| 1892 /** The Gitkit id token to login the newly sign up user. */ | 2361 /** The Gitkit id token to login the newly sign up user. */ |
| 1893 core.String idToken; | 2362 core.String idToken; |
| 1894 /** The fixed string "identitytoolkit#SetAccountInfoResponse". */ | 2363 /** The fixed string "identitytoolkit#SetAccountInfoResponse". */ |
| 1895 core.String kind; | 2364 core.String kind; |
| 1896 /** The new email the user attempts to change to. */ | 2365 /** The new email the user attempts to change to. */ |
| 1897 core.String newEmail; | 2366 core.String newEmail; |
| 2367 /** The photo url of the user. */ |
| 2368 core.String photoUrl; |
| 1898 /** The user's profiles at the associated IdPs. */ | 2369 /** The user's profiles at the associated IdPs. */ |
| 1899 core.List<SetAccountInfoResponseProviderUserInfo> providerUserInfo; | 2370 core.List<SetAccountInfoResponseProviderUserInfo> providerUserInfo; |
| 2371 /** If idToken is STS id token, then this field will be refresh token. */ |
| 2372 core.String refreshToken; |
| 1900 | 2373 |
| 1901 SetAccountInfoResponse(); | 2374 SetAccountInfoResponse(); |
| 1902 | 2375 |
| 1903 SetAccountInfoResponse.fromJson(core.Map _json) { | 2376 SetAccountInfoResponse.fromJson(core.Map _json) { |
| 1904 if (_json.containsKey("displayName")) { | 2377 if (_json.containsKey("displayName")) { |
| 1905 displayName = _json["displayName"]; | 2378 displayName = _json["displayName"]; |
| 1906 } | 2379 } |
| 1907 if (_json.containsKey("email")) { | 2380 if (_json.containsKey("email")) { |
| 1908 email = _json["email"]; | 2381 email = _json["email"]; |
| 1909 } | 2382 } |
| 2383 if (_json.containsKey("expiresIn")) { |
| 2384 expiresIn = _json["expiresIn"]; |
| 2385 } |
| 1910 if (_json.containsKey("idToken")) { | 2386 if (_json.containsKey("idToken")) { |
| 1911 idToken = _json["idToken"]; | 2387 idToken = _json["idToken"]; |
| 1912 } | 2388 } |
| 1913 if (_json.containsKey("kind")) { | 2389 if (_json.containsKey("kind")) { |
| 1914 kind = _json["kind"]; | 2390 kind = _json["kind"]; |
| 1915 } | 2391 } |
| 1916 if (_json.containsKey("newEmail")) { | 2392 if (_json.containsKey("newEmail")) { |
| 1917 newEmail = _json["newEmail"]; | 2393 newEmail = _json["newEmail"]; |
| 1918 } | 2394 } |
| 2395 if (_json.containsKey("photoUrl")) { |
| 2396 photoUrl = _json["photoUrl"]; |
| 2397 } |
| 1919 if (_json.containsKey("providerUserInfo")) { | 2398 if (_json.containsKey("providerUserInfo")) { |
| 1920 providerUserInfo = _json["providerUserInfo"].map((value) => new SetAccount
InfoResponseProviderUserInfo.fromJson(value)).toList(); | 2399 providerUserInfo = _json["providerUserInfo"].map((value) => new SetAccount
InfoResponseProviderUserInfo.fromJson(value)).toList(); |
| 1921 } | 2400 } |
| 2401 if (_json.containsKey("refreshToken")) { |
| 2402 refreshToken = _json["refreshToken"]; |
| 2403 } |
| 1922 } | 2404 } |
| 1923 | 2405 |
| 1924 core.Map toJson() { | 2406 core.Map toJson() { |
| 1925 var _json = new core.Map(); | 2407 var _json = new core.Map(); |
| 1926 if (displayName != null) { | 2408 if (displayName != null) { |
| 1927 _json["displayName"] = displayName; | 2409 _json["displayName"] = displayName; |
| 1928 } | 2410 } |
| 1929 if (email != null) { | 2411 if (email != null) { |
| 1930 _json["email"] = email; | 2412 _json["email"] = email; |
| 1931 } | 2413 } |
| 2414 if (expiresIn != null) { |
| 2415 _json["expiresIn"] = expiresIn; |
| 2416 } |
| 1932 if (idToken != null) { | 2417 if (idToken != null) { |
| 1933 _json["idToken"] = idToken; | 2418 _json["idToken"] = idToken; |
| 1934 } | 2419 } |
| 1935 if (kind != null) { | 2420 if (kind != null) { |
| 1936 _json["kind"] = kind; | 2421 _json["kind"] = kind; |
| 1937 } | 2422 } |
| 1938 if (newEmail != null) { | 2423 if (newEmail != null) { |
| 1939 _json["newEmail"] = newEmail; | 2424 _json["newEmail"] = newEmail; |
| 1940 } | 2425 } |
| 2426 if (photoUrl != null) { |
| 2427 _json["photoUrl"] = photoUrl; |
| 2428 } |
| 1941 if (providerUserInfo != null) { | 2429 if (providerUserInfo != null) { |
| 1942 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson
()).toList(); | 2430 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson
()).toList(); |
| 1943 } | 2431 } |
| 2432 if (refreshToken != null) { |
| 2433 _json["refreshToken"] = refreshToken; |
| 2434 } |
| 1944 return _json; | 2435 return _json; |
| 1945 } | 2436 } |
| 1946 } | 2437 } |
| 2438 |
| 2439 /** |
| 2440 * Response of signing up new user, creating anonymous user or anonymous user |
| 2441 * reauth. |
| 2442 */ |
| 2443 class SignupNewUserResponse { |
| 2444 /** The name of the user. */ |
| 2445 core.String displayName; |
| 2446 /** The email of the user. */ |
| 2447 core.String email; |
| 2448 /** |
| 2449 * If idToken is STS id token, then this field will be expiration time of STS |
| 2450 * id token in seconds. |
| 2451 */ |
| 2452 core.String expiresIn; |
| 2453 /** The Gitkit id token to login the newly sign up user. */ |
| 2454 core.String idToken; |
| 2455 /** The fixed string "identitytoolkit#SignupNewUserResponse". */ |
| 2456 core.String kind; |
| 2457 /** The RP local ID of the user. */ |
| 2458 core.String localId; |
| 2459 /** If idToken is STS id token, then this field will be refresh token. */ |
| 2460 core.String refreshToken; |
| 2461 |
| 2462 SignupNewUserResponse(); |
| 2463 |
| 2464 SignupNewUserResponse.fromJson(core.Map _json) { |
| 2465 if (_json.containsKey("displayName")) { |
| 2466 displayName = _json["displayName"]; |
| 2467 } |
| 2468 if (_json.containsKey("email")) { |
| 2469 email = _json["email"]; |
| 2470 } |
| 2471 if (_json.containsKey("expiresIn")) { |
| 2472 expiresIn = _json["expiresIn"]; |
| 2473 } |
| 2474 if (_json.containsKey("idToken")) { |
| 2475 idToken = _json["idToken"]; |
| 2476 } |
| 2477 if (_json.containsKey("kind")) { |
| 2478 kind = _json["kind"]; |
| 2479 } |
| 2480 if (_json.containsKey("localId")) { |
| 2481 localId = _json["localId"]; |
| 2482 } |
| 2483 if (_json.containsKey("refreshToken")) { |
| 2484 refreshToken = _json["refreshToken"]; |
| 2485 } |
| 2486 } |
| 2487 |
| 2488 core.Map toJson() { |
| 2489 var _json = new core.Map(); |
| 2490 if (displayName != null) { |
| 2491 _json["displayName"] = displayName; |
| 2492 } |
| 2493 if (email != null) { |
| 2494 _json["email"] = email; |
| 2495 } |
| 2496 if (expiresIn != null) { |
| 2497 _json["expiresIn"] = expiresIn; |
| 2498 } |
| 2499 if (idToken != null) { |
| 2500 _json["idToken"] = idToken; |
| 2501 } |
| 2502 if (kind != null) { |
| 2503 _json["kind"] = kind; |
| 2504 } |
| 2505 if (localId != null) { |
| 2506 _json["localId"] = localId; |
| 2507 } |
| 2508 if (refreshToken != null) { |
| 2509 _json["refreshToken"] = refreshToken; |
| 2510 } |
| 2511 return _json; |
| 2512 } |
| 2513 } |
| 1947 | 2514 |
| 1948 class UploadAccountResponseError { | 2515 class UploadAccountResponseError { |
| 1949 /** The index of the malformed account, starting from 0. */ | 2516 /** The index of the malformed account, starting from 0. */ |
| 1950 core.int index; | 2517 core.int index; |
| 1951 /** Detailed error message for the account info. */ | 2518 /** Detailed error message for the account info. */ |
| 1952 core.String message; | 2519 core.String message; |
| 1953 | 2520 |
| 1954 UploadAccountResponseError(); | 2521 UploadAccountResponseError(); |
| 1955 | 2522 |
| 1956 UploadAccountResponseError.fromJson(core.Map _json) { | 2523 UploadAccountResponseError.fromJson(core.Map _json) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2000 if (kind != null) { | 2567 if (kind != null) { |
| 2001 _json["kind"] = kind; | 2568 _json["kind"] = kind; |
| 2002 } | 2569 } |
| 2003 return _json; | 2570 return _json; |
| 2004 } | 2571 } |
| 2005 } | 2572 } |
| 2006 | 2573 |
| 2007 class UserInfoProviderUserInfo { | 2574 class UserInfoProviderUserInfo { |
| 2008 /** The user's display name at the IDP. */ | 2575 /** The user's display name at the IDP. */ |
| 2009 core.String displayName; | 2576 core.String displayName; |
| 2577 /** User's email at IDP. */ |
| 2578 core.String email; |
| 2010 /** User's identifier at IDP. */ | 2579 /** User's identifier at IDP. */ |
| 2011 core.String federatedId; | 2580 core.String federatedId; |
| 2012 /** The user's photo url at the IDP. */ | 2581 /** The user's photo url at the IDP. */ |
| 2013 core.String photoUrl; | 2582 core.String photoUrl; |
| 2014 /** | 2583 /** |
| 2015 * The IdP ID. For white listed IdPs it's a short domain name, e.g., | 2584 * The IdP ID. For white listed IdPs it's a short domain name, e.g., |
| 2016 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the | 2585 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the |
| 2017 * OP identifier. | 2586 * OP identifier. |
| 2018 */ | 2587 */ |
| 2019 core.String providerId; | 2588 core.String providerId; |
| 2589 /** User's raw identifier directly returned from IDP. */ |
| 2590 core.String rawId; |
| 2020 | 2591 |
| 2021 UserInfoProviderUserInfo(); | 2592 UserInfoProviderUserInfo(); |
| 2022 | 2593 |
| 2023 UserInfoProviderUserInfo.fromJson(core.Map _json) { | 2594 UserInfoProviderUserInfo.fromJson(core.Map _json) { |
| 2024 if (_json.containsKey("displayName")) { | 2595 if (_json.containsKey("displayName")) { |
| 2025 displayName = _json["displayName"]; | 2596 displayName = _json["displayName"]; |
| 2026 } | 2597 } |
| 2598 if (_json.containsKey("email")) { |
| 2599 email = _json["email"]; |
| 2600 } |
| 2027 if (_json.containsKey("federatedId")) { | 2601 if (_json.containsKey("federatedId")) { |
| 2028 federatedId = _json["federatedId"]; | 2602 federatedId = _json["federatedId"]; |
| 2029 } | 2603 } |
| 2030 if (_json.containsKey("photoUrl")) { | 2604 if (_json.containsKey("photoUrl")) { |
| 2031 photoUrl = _json["photoUrl"]; | 2605 photoUrl = _json["photoUrl"]; |
| 2032 } | 2606 } |
| 2033 if (_json.containsKey("providerId")) { | 2607 if (_json.containsKey("providerId")) { |
| 2034 providerId = _json["providerId"]; | 2608 providerId = _json["providerId"]; |
| 2035 } | 2609 } |
| 2610 if (_json.containsKey("rawId")) { |
| 2611 rawId = _json["rawId"]; |
| 2612 } |
| 2036 } | 2613 } |
| 2037 | 2614 |
| 2038 core.Map toJson() { | 2615 core.Map toJson() { |
| 2039 var _json = new core.Map(); | 2616 var _json = new core.Map(); |
| 2040 if (displayName != null) { | 2617 if (displayName != null) { |
| 2041 _json["displayName"] = displayName; | 2618 _json["displayName"] = displayName; |
| 2042 } | 2619 } |
| 2620 if (email != null) { |
| 2621 _json["email"] = email; |
| 2622 } |
| 2043 if (federatedId != null) { | 2623 if (federatedId != null) { |
| 2044 _json["federatedId"] = federatedId; | 2624 _json["federatedId"] = federatedId; |
| 2045 } | 2625 } |
| 2046 if (photoUrl != null) { | 2626 if (photoUrl != null) { |
| 2047 _json["photoUrl"] = photoUrl; | 2627 _json["photoUrl"] = photoUrl; |
| 2048 } | 2628 } |
| 2049 if (providerId != null) { | 2629 if (providerId != null) { |
| 2050 _json["providerId"] = providerId; | 2630 _json["providerId"] = providerId; |
| 2051 } | 2631 } |
| 2632 if (rawId != null) { |
| 2633 _json["rawId"] = rawId; |
| 2634 } |
| 2052 return _json; | 2635 return _json; |
| 2053 } | 2636 } |
| 2054 } | 2637 } |
| 2055 | 2638 |
| 2056 /** Template for an individual account info. */ | 2639 /** Template for an individual account info. */ |
| 2057 class UserInfo { | 2640 class UserInfo { |
| 2058 /** Whether the user is disabled. */ | 2641 /** Whether the user is disabled. */ |
| 2059 core.bool disabled; | 2642 core.bool disabled; |
| 2060 /** The name of the user. */ | 2643 /** The name of the user. */ |
| 2061 core.String displayName; | 2644 core.String displayName; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2199 * the email. | 2782 * the email. |
| 2200 */ | 2783 */ |
| 2201 core.String email; | 2784 core.String email; |
| 2202 /** It's true if the email is recycled. */ | 2785 /** It's true if the email is recycled. */ |
| 2203 core.bool emailRecycled; | 2786 core.bool emailRecycled; |
| 2204 /** | 2787 /** |
| 2205 * The value is true if the IDP is also the email provider. It means the user | 2788 * The value is true if the IDP is also the email provider. It means the user |
| 2206 * owns the email. | 2789 * owns the email. |
| 2207 */ | 2790 */ |
| 2208 core.bool emailVerified; | 2791 core.bool emailVerified; |
| 2792 /** |
| 2793 * If idToken is STS id token, then this field will be expiration time of STS |
| 2794 * id token in seconds. |
| 2795 */ |
| 2796 core.String expiresIn; |
| 2209 /** The unique ID identifies the IdP account. */ | 2797 /** The unique ID identifies the IdP account. */ |
| 2210 core.String federatedId; | 2798 core.String federatedId; |
| 2211 /** The first name of the user. */ | 2799 /** The first name of the user. */ |
| 2212 core.String firstName; | 2800 core.String firstName; |
| 2213 /** The full name of the user. */ | 2801 /** The full name of the user. */ |
| 2214 core.String fullName; | 2802 core.String fullName; |
| 2215 /** The ID token. */ | 2803 /** The ID token. */ |
| 2216 core.String idToken; | 2804 core.String idToken; |
| 2217 /** | 2805 /** |
| 2218 * It's the identifier param in the createAuthUri request if the identifier is | 2806 * It's the identifier param in the createAuthUri request if the identifier is |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2245 /** The OAuth2 access token. */ | 2833 /** The OAuth2 access token. */ |
| 2246 core.String oauthAccessToken; | 2834 core.String oauthAccessToken; |
| 2247 /** The OAuth2 authorization code. */ | 2835 /** The OAuth2 authorization code. */ |
| 2248 core.String oauthAuthorizationCode; | 2836 core.String oauthAuthorizationCode; |
| 2249 /** The lifetime in seconds of the OAuth2 access token. */ | 2837 /** The lifetime in seconds of the OAuth2 access token. */ |
| 2250 core.int oauthExpireIn; | 2838 core.int oauthExpireIn; |
| 2251 /** The user approved request token for the OpenID OAuth extension. */ | 2839 /** The user approved request token for the OpenID OAuth extension. */ |
| 2252 core.String oauthRequestToken; | 2840 core.String oauthRequestToken; |
| 2253 /** The scope for the OpenID OAuth extension. */ | 2841 /** The scope for the OpenID OAuth extension. */ |
| 2254 core.String oauthScope; | 2842 core.String oauthScope; |
| 2843 /** The OAuth1 access token secret. */ |
| 2844 core.String oauthTokenSecret; |
| 2255 /** | 2845 /** |
| 2256 * The original email stored in the mapping storage. It's returned when the | 2846 * The original email stored in the mapping storage. It's returned when the |
| 2257 * federated ID is associated to a different email. | 2847 * federated ID is associated to a different email. |
| 2258 */ | 2848 */ |
| 2259 core.String originalEmail; | 2849 core.String originalEmail; |
| 2260 /** The URI of the public accessible profiel picture. */ | 2850 /** The URI of the public accessible profiel picture. */ |
| 2261 core.String photoUrl; | 2851 core.String photoUrl; |
| 2262 /** | 2852 /** |
| 2263 * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, | 2853 * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, |
| 2264 * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID | 2854 * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID |
| 2265 * OP identifer other than the whilte listed IdPs the OP identifier is | 2855 * OP identifer other than the whilte listed IdPs the OP identifier is |
| 2266 * returned. If the "identifier" param is federated ID in the createAuthUri | 2856 * returned. If the "identifier" param is federated ID in the createAuthUri |
| 2267 * request. The domain part of the federated ID is returned. | 2857 * request. The domain part of the federated ID is returned. |
| 2268 */ | 2858 */ |
| 2269 core.String providerId; | 2859 core.String providerId; |
| 2860 /** If idToken is STS id token, then this field will be refresh token. */ |
| 2861 core.String refreshToken; |
| 2270 /** The timezone of the user. */ | 2862 /** The timezone of the user. */ |
| 2271 core.String timeZone; | 2863 core.String timeZone; |
| 2272 /** | 2864 /** |
| 2273 * When action is 'map', contains the idps which can be used for confirmation. | 2865 * When action is 'map', contains the idps which can be used for confirmation. |
| 2274 */ | 2866 */ |
| 2275 core.List<core.String> verifiedProvider; | 2867 core.List<core.String> verifiedProvider; |
| 2276 | 2868 |
| 2277 VerifyAssertionResponse(); | 2869 VerifyAssertionResponse(); |
| 2278 | 2870 |
| 2279 VerifyAssertionResponse.fromJson(core.Map _json) { | 2871 VerifyAssertionResponse.fromJson(core.Map _json) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2297 } | 2889 } |
| 2298 if (_json.containsKey("email")) { | 2890 if (_json.containsKey("email")) { |
| 2299 email = _json["email"]; | 2891 email = _json["email"]; |
| 2300 } | 2892 } |
| 2301 if (_json.containsKey("emailRecycled")) { | 2893 if (_json.containsKey("emailRecycled")) { |
| 2302 emailRecycled = _json["emailRecycled"]; | 2894 emailRecycled = _json["emailRecycled"]; |
| 2303 } | 2895 } |
| 2304 if (_json.containsKey("emailVerified")) { | 2896 if (_json.containsKey("emailVerified")) { |
| 2305 emailVerified = _json["emailVerified"]; | 2897 emailVerified = _json["emailVerified"]; |
| 2306 } | 2898 } |
| 2899 if (_json.containsKey("expiresIn")) { |
| 2900 expiresIn = _json["expiresIn"]; |
| 2901 } |
| 2307 if (_json.containsKey("federatedId")) { | 2902 if (_json.containsKey("federatedId")) { |
| 2308 federatedId = _json["federatedId"]; | 2903 federatedId = _json["federatedId"]; |
| 2309 } | 2904 } |
| 2310 if (_json.containsKey("firstName")) { | 2905 if (_json.containsKey("firstName")) { |
| 2311 firstName = _json["firstName"]; | 2906 firstName = _json["firstName"]; |
| 2312 } | 2907 } |
| 2313 if (_json.containsKey("fullName")) { | 2908 if (_json.containsKey("fullName")) { |
| 2314 fullName = _json["fullName"]; | 2909 fullName = _json["fullName"]; |
| 2315 } | 2910 } |
| 2316 if (_json.containsKey("idToken")) { | 2911 if (_json.containsKey("idToken")) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2348 } | 2943 } |
| 2349 if (_json.containsKey("oauthExpireIn")) { | 2944 if (_json.containsKey("oauthExpireIn")) { |
| 2350 oauthExpireIn = _json["oauthExpireIn"]; | 2945 oauthExpireIn = _json["oauthExpireIn"]; |
| 2351 } | 2946 } |
| 2352 if (_json.containsKey("oauthRequestToken")) { | 2947 if (_json.containsKey("oauthRequestToken")) { |
| 2353 oauthRequestToken = _json["oauthRequestToken"]; | 2948 oauthRequestToken = _json["oauthRequestToken"]; |
| 2354 } | 2949 } |
| 2355 if (_json.containsKey("oauthScope")) { | 2950 if (_json.containsKey("oauthScope")) { |
| 2356 oauthScope = _json["oauthScope"]; | 2951 oauthScope = _json["oauthScope"]; |
| 2357 } | 2952 } |
| 2953 if (_json.containsKey("oauthTokenSecret")) { |
| 2954 oauthTokenSecret = _json["oauthTokenSecret"]; |
| 2955 } |
| 2358 if (_json.containsKey("originalEmail")) { | 2956 if (_json.containsKey("originalEmail")) { |
| 2359 originalEmail = _json["originalEmail"]; | 2957 originalEmail = _json["originalEmail"]; |
| 2360 } | 2958 } |
| 2361 if (_json.containsKey("photoUrl")) { | 2959 if (_json.containsKey("photoUrl")) { |
| 2362 photoUrl = _json["photoUrl"]; | 2960 photoUrl = _json["photoUrl"]; |
| 2363 } | 2961 } |
| 2364 if (_json.containsKey("providerId")) { | 2962 if (_json.containsKey("providerId")) { |
| 2365 providerId = _json["providerId"]; | 2963 providerId = _json["providerId"]; |
| 2366 } | 2964 } |
| 2965 if (_json.containsKey("refreshToken")) { |
| 2966 refreshToken = _json["refreshToken"]; |
| 2967 } |
| 2367 if (_json.containsKey("timeZone")) { | 2968 if (_json.containsKey("timeZone")) { |
| 2368 timeZone = _json["timeZone"]; | 2969 timeZone = _json["timeZone"]; |
| 2369 } | 2970 } |
| 2370 if (_json.containsKey("verifiedProvider")) { | 2971 if (_json.containsKey("verifiedProvider")) { |
| 2371 verifiedProvider = _json["verifiedProvider"]; | 2972 verifiedProvider = _json["verifiedProvider"]; |
| 2372 } | 2973 } |
| 2373 } | 2974 } |
| 2374 | 2975 |
| 2375 core.Map toJson() { | 2976 core.Map toJson() { |
| 2376 var _json = new core.Map(); | 2977 var _json = new core.Map(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2394 } | 2995 } |
| 2395 if (email != null) { | 2996 if (email != null) { |
| 2396 _json["email"] = email; | 2997 _json["email"] = email; |
| 2397 } | 2998 } |
| 2398 if (emailRecycled != null) { | 2999 if (emailRecycled != null) { |
| 2399 _json["emailRecycled"] = emailRecycled; | 3000 _json["emailRecycled"] = emailRecycled; |
| 2400 } | 3001 } |
| 2401 if (emailVerified != null) { | 3002 if (emailVerified != null) { |
| 2402 _json["emailVerified"] = emailVerified; | 3003 _json["emailVerified"] = emailVerified; |
| 2403 } | 3004 } |
| 3005 if (expiresIn != null) { |
| 3006 _json["expiresIn"] = expiresIn; |
| 3007 } |
| 2404 if (federatedId != null) { | 3008 if (federatedId != null) { |
| 2405 _json["federatedId"] = federatedId; | 3009 _json["federatedId"] = federatedId; |
| 2406 } | 3010 } |
| 2407 if (firstName != null) { | 3011 if (firstName != null) { |
| 2408 _json["firstName"] = firstName; | 3012 _json["firstName"] = firstName; |
| 2409 } | 3013 } |
| 2410 if (fullName != null) { | 3014 if (fullName != null) { |
| 2411 _json["fullName"] = fullName; | 3015 _json["fullName"] = fullName; |
| 2412 } | 3016 } |
| 2413 if (idToken != null) { | 3017 if (idToken != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2445 } | 3049 } |
| 2446 if (oauthExpireIn != null) { | 3050 if (oauthExpireIn != null) { |
| 2447 _json["oauthExpireIn"] = oauthExpireIn; | 3051 _json["oauthExpireIn"] = oauthExpireIn; |
| 2448 } | 3052 } |
| 2449 if (oauthRequestToken != null) { | 3053 if (oauthRequestToken != null) { |
| 2450 _json["oauthRequestToken"] = oauthRequestToken; | 3054 _json["oauthRequestToken"] = oauthRequestToken; |
| 2451 } | 3055 } |
| 2452 if (oauthScope != null) { | 3056 if (oauthScope != null) { |
| 2453 _json["oauthScope"] = oauthScope; | 3057 _json["oauthScope"] = oauthScope; |
| 2454 } | 3058 } |
| 3059 if (oauthTokenSecret != null) { |
| 3060 _json["oauthTokenSecret"] = oauthTokenSecret; |
| 3061 } |
| 2455 if (originalEmail != null) { | 3062 if (originalEmail != null) { |
| 2456 _json["originalEmail"] = originalEmail; | 3063 _json["originalEmail"] = originalEmail; |
| 2457 } | 3064 } |
| 2458 if (photoUrl != null) { | 3065 if (photoUrl != null) { |
| 2459 _json["photoUrl"] = photoUrl; | 3066 _json["photoUrl"] = photoUrl; |
| 2460 } | 3067 } |
| 2461 if (providerId != null) { | 3068 if (providerId != null) { |
| 2462 _json["providerId"] = providerId; | 3069 _json["providerId"] = providerId; |
| 2463 } | 3070 } |
| 3071 if (refreshToken != null) { |
| 3072 _json["refreshToken"] = refreshToken; |
| 3073 } |
| 2464 if (timeZone != null) { | 3074 if (timeZone != null) { |
| 2465 _json["timeZone"] = timeZone; | 3075 _json["timeZone"] = timeZone; |
| 2466 } | 3076 } |
| 2467 if (verifiedProvider != null) { | 3077 if (verifiedProvider != null) { |
| 2468 _json["verifiedProvider"] = verifiedProvider; | 3078 _json["verifiedProvider"] = verifiedProvider; |
| 2469 } | 3079 } |
| 2470 return _json; | 3080 return _json; |
| 2471 } | 3081 } |
| 2472 } | 3082 } |
| 2473 | 3083 |
| 2474 /** Response from verifying a custom token */ | 3084 /** Response from verifying a custom token */ |
| 2475 class VerifyCustomTokenResponse { | 3085 class VerifyCustomTokenResponse { |
| 3086 /** |
| 3087 * If idToken is STS id token, then this field will be expiration time of STS |
| 3088 * id token in seconds. |
| 3089 */ |
| 3090 core.String expiresIn; |
| 2476 /** The GITKit token for authenticated user. */ | 3091 /** The GITKit token for authenticated user. */ |
| 2477 core.String idToken; | 3092 core.String idToken; |
| 2478 /** The fixed string "identitytoolkit#VerifyCustomTokenResponse". */ | 3093 /** The fixed string "identitytoolkit#VerifyCustomTokenResponse". */ |
| 2479 core.String kind; | 3094 core.String kind; |
| 3095 /** If idToken is STS id token, then this field will be refresh token. */ |
| 3096 core.String refreshToken; |
| 2480 | 3097 |
| 2481 VerifyCustomTokenResponse(); | 3098 VerifyCustomTokenResponse(); |
| 2482 | 3099 |
| 2483 VerifyCustomTokenResponse.fromJson(core.Map _json) { | 3100 VerifyCustomTokenResponse.fromJson(core.Map _json) { |
| 3101 if (_json.containsKey("expiresIn")) { |
| 3102 expiresIn = _json["expiresIn"]; |
| 3103 } |
| 2484 if (_json.containsKey("idToken")) { | 3104 if (_json.containsKey("idToken")) { |
| 2485 idToken = _json["idToken"]; | 3105 idToken = _json["idToken"]; |
| 2486 } | 3106 } |
| 2487 if (_json.containsKey("kind")) { | 3107 if (_json.containsKey("kind")) { |
| 2488 kind = _json["kind"]; | 3108 kind = _json["kind"]; |
| 2489 } | 3109 } |
| 3110 if (_json.containsKey("refreshToken")) { |
| 3111 refreshToken = _json["refreshToken"]; |
| 3112 } |
| 2490 } | 3113 } |
| 2491 | 3114 |
| 2492 core.Map toJson() { | 3115 core.Map toJson() { |
| 2493 var _json = new core.Map(); | 3116 var _json = new core.Map(); |
| 3117 if (expiresIn != null) { |
| 3118 _json["expiresIn"] = expiresIn; |
| 3119 } |
| 2494 if (idToken != null) { | 3120 if (idToken != null) { |
| 2495 _json["idToken"] = idToken; | 3121 _json["idToken"] = idToken; |
| 2496 } | 3122 } |
| 2497 if (kind != null) { | 3123 if (kind != null) { |
| 2498 _json["kind"] = kind; | 3124 _json["kind"] = kind; |
| 2499 } | 3125 } |
| 3126 if (refreshToken != null) { |
| 3127 _json["refreshToken"] = refreshToken; |
| 3128 } |
| 2500 return _json; | 3129 return _json; |
| 2501 } | 3130 } |
| 2502 } | 3131 } |
| 2503 | 3132 |
| 2504 /** Request of verifying the password. */ | 3133 /** Request of verifying the password. */ |
| 2505 class VerifyPasswordResponse { | 3134 class VerifyPasswordResponse { |
| 2506 /** The name of the user. */ | 3135 /** The name of the user. */ |
| 2507 core.String displayName; | 3136 core.String displayName; |
| 2508 /** | 3137 /** |
| 2509 * The email returned by the IdP. NOTE: The federated login user may not own | 3138 * The email returned by the IdP. NOTE: The federated login user may not own |
| 2510 * the email. | 3139 * the email. |
| 2511 */ | 3140 */ |
| 2512 core.String email; | 3141 core.String email; |
| 3142 /** |
| 3143 * If idToken is STS id token, then this field will be expiration time of STS |
| 3144 * id token in seconds. |
| 3145 */ |
| 3146 core.String expiresIn; |
| 2513 /** The GITKit token for authenticated user. */ | 3147 /** The GITKit token for authenticated user. */ |
| 2514 core.String idToken; | 3148 core.String idToken; |
| 2515 /** The fixed string "identitytoolkit#VerifyPasswordResponse". */ | 3149 /** The fixed string "identitytoolkit#VerifyPasswordResponse". */ |
| 2516 core.String kind; | 3150 core.String kind; |
| 2517 /** | 3151 /** |
| 2518 * The RP local ID if it's already been mapped to the IdP account identified | 3152 * The RP local ID if it's already been mapped to the IdP account identified |
| 2519 * by the federated ID. | 3153 * by the federated ID. |
| 2520 */ | 3154 */ |
| 2521 core.String localId; | 3155 core.String localId; |
| 2522 /** The OAuth2 access token. */ | 3156 /** The OAuth2 access token. */ |
| 2523 core.String oauthAccessToken; | 3157 core.String oauthAccessToken; |
| 2524 /** The OAuth2 authorization code. */ | 3158 /** The OAuth2 authorization code. */ |
| 2525 core.String oauthAuthorizationCode; | 3159 core.String oauthAuthorizationCode; |
| 2526 /** The lifetime in seconds of the OAuth2 access token. */ | 3160 /** The lifetime in seconds of the OAuth2 access token. */ |
| 2527 core.int oauthExpireIn; | 3161 core.int oauthExpireIn; |
| 2528 /** The URI of the user's photo at IdP */ | 3162 /** The URI of the user's photo at IdP */ |
| 2529 core.String photoUrl; | 3163 core.String photoUrl; |
| 3164 /** If idToken is STS id token, then this field will be refresh token. */ |
| 3165 core.String refreshToken; |
| 2530 /** Whether the email is registered. */ | 3166 /** Whether the email is registered. */ |
| 2531 core.bool registered; | 3167 core.bool registered; |
| 2532 | 3168 |
| 2533 VerifyPasswordResponse(); | 3169 VerifyPasswordResponse(); |
| 2534 | 3170 |
| 2535 VerifyPasswordResponse.fromJson(core.Map _json) { | 3171 VerifyPasswordResponse.fromJson(core.Map _json) { |
| 2536 if (_json.containsKey("displayName")) { | 3172 if (_json.containsKey("displayName")) { |
| 2537 displayName = _json["displayName"]; | 3173 displayName = _json["displayName"]; |
| 2538 } | 3174 } |
| 2539 if (_json.containsKey("email")) { | 3175 if (_json.containsKey("email")) { |
| 2540 email = _json["email"]; | 3176 email = _json["email"]; |
| 2541 } | 3177 } |
| 3178 if (_json.containsKey("expiresIn")) { |
| 3179 expiresIn = _json["expiresIn"]; |
| 3180 } |
| 2542 if (_json.containsKey("idToken")) { | 3181 if (_json.containsKey("idToken")) { |
| 2543 idToken = _json["idToken"]; | 3182 idToken = _json["idToken"]; |
| 2544 } | 3183 } |
| 2545 if (_json.containsKey("kind")) { | 3184 if (_json.containsKey("kind")) { |
| 2546 kind = _json["kind"]; | 3185 kind = _json["kind"]; |
| 2547 } | 3186 } |
| 2548 if (_json.containsKey("localId")) { | 3187 if (_json.containsKey("localId")) { |
| 2549 localId = _json["localId"]; | 3188 localId = _json["localId"]; |
| 2550 } | 3189 } |
| 2551 if (_json.containsKey("oauthAccessToken")) { | 3190 if (_json.containsKey("oauthAccessToken")) { |
| 2552 oauthAccessToken = _json["oauthAccessToken"]; | 3191 oauthAccessToken = _json["oauthAccessToken"]; |
| 2553 } | 3192 } |
| 2554 if (_json.containsKey("oauthAuthorizationCode")) { | 3193 if (_json.containsKey("oauthAuthorizationCode")) { |
| 2555 oauthAuthorizationCode = _json["oauthAuthorizationCode"]; | 3194 oauthAuthorizationCode = _json["oauthAuthorizationCode"]; |
| 2556 } | 3195 } |
| 2557 if (_json.containsKey("oauthExpireIn")) { | 3196 if (_json.containsKey("oauthExpireIn")) { |
| 2558 oauthExpireIn = _json["oauthExpireIn"]; | 3197 oauthExpireIn = _json["oauthExpireIn"]; |
| 2559 } | 3198 } |
| 2560 if (_json.containsKey("photoUrl")) { | 3199 if (_json.containsKey("photoUrl")) { |
| 2561 photoUrl = _json["photoUrl"]; | 3200 photoUrl = _json["photoUrl"]; |
| 2562 } | 3201 } |
| 3202 if (_json.containsKey("refreshToken")) { |
| 3203 refreshToken = _json["refreshToken"]; |
| 3204 } |
| 2563 if (_json.containsKey("registered")) { | 3205 if (_json.containsKey("registered")) { |
| 2564 registered = _json["registered"]; | 3206 registered = _json["registered"]; |
| 2565 } | 3207 } |
| 2566 } | 3208 } |
| 2567 | 3209 |
| 2568 core.Map toJson() { | 3210 core.Map toJson() { |
| 2569 var _json = new core.Map(); | 3211 var _json = new core.Map(); |
| 2570 if (displayName != null) { | 3212 if (displayName != null) { |
| 2571 _json["displayName"] = displayName; | 3213 _json["displayName"] = displayName; |
| 2572 } | 3214 } |
| 2573 if (email != null) { | 3215 if (email != null) { |
| 2574 _json["email"] = email; | 3216 _json["email"] = email; |
| 2575 } | 3217 } |
| 3218 if (expiresIn != null) { |
| 3219 _json["expiresIn"] = expiresIn; |
| 3220 } |
| 2576 if (idToken != null) { | 3221 if (idToken != null) { |
| 2577 _json["idToken"] = idToken; | 3222 _json["idToken"] = idToken; |
| 2578 } | 3223 } |
| 2579 if (kind != null) { | 3224 if (kind != null) { |
| 2580 _json["kind"] = kind; | 3225 _json["kind"] = kind; |
| 2581 } | 3226 } |
| 2582 if (localId != null) { | 3227 if (localId != null) { |
| 2583 _json["localId"] = localId; | 3228 _json["localId"] = localId; |
| 2584 } | 3229 } |
| 2585 if (oauthAccessToken != null) { | 3230 if (oauthAccessToken != null) { |
| 2586 _json["oauthAccessToken"] = oauthAccessToken; | 3231 _json["oauthAccessToken"] = oauthAccessToken; |
| 2587 } | 3232 } |
| 2588 if (oauthAuthorizationCode != null) { | 3233 if (oauthAuthorizationCode != null) { |
| 2589 _json["oauthAuthorizationCode"] = oauthAuthorizationCode; | 3234 _json["oauthAuthorizationCode"] = oauthAuthorizationCode; |
| 2590 } | 3235 } |
| 2591 if (oauthExpireIn != null) { | 3236 if (oauthExpireIn != null) { |
| 2592 _json["oauthExpireIn"] = oauthExpireIn; | 3237 _json["oauthExpireIn"] = oauthExpireIn; |
| 2593 } | 3238 } |
| 2594 if (photoUrl != null) { | 3239 if (photoUrl != null) { |
| 2595 _json["photoUrl"] = photoUrl; | 3240 _json["photoUrl"] = photoUrl; |
| 2596 } | 3241 } |
| 3242 if (refreshToken != null) { |
| 3243 _json["refreshToken"] = refreshToken; |
| 3244 } |
| 2597 if (registered != null) { | 3245 if (registered != null) { |
| 2598 _json["registered"] = registered; | 3246 _json["registered"] = registered; |
| 2599 } | 3247 } |
| 2600 return _json; | 3248 return _json; |
| 2601 } | 3249 } |
| 2602 } | 3250 } |
| OLD | NEW |