| 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 796 |
| 797 core.Map toJson() { | 797 core.Map toJson() { |
| 798 var _json = new core.Map(); | 798 var _json = new core.Map(); |
| 799 if (kind != null) { | 799 if (kind != null) { |
| 800 _json["kind"] = kind; | 800 _json["kind"] = kind; |
| 801 } | 801 } |
| 802 return _json; | 802 return _json; |
| 803 } | 803 } |
| 804 } | 804 } |
| 805 | 805 |
| 806 /** Respone of downloading accounts in batch. */ | 806 /** Response of downloading accounts in batch. */ |
| 807 class DownloadAccountResponse { | 807 class DownloadAccountResponse { |
| 808 /** The fixed string "identitytoolkit#DownloadAccountResponse". */ | 808 /** The fixed string "identitytoolkit#DownloadAccountResponse". */ |
| 809 core.String kind; | 809 core.String kind; |
| 810 /** | 810 /** |
| 811 * The next page token. To be used in a subsequent request to return the next | 811 * The next page token. To be used in a subsequent request to return the next |
| 812 * page of results. | 812 * page of results. |
| 813 */ | 813 */ |
| 814 core.String nextPageToken; | 814 core.String nextPageToken; |
| 815 /** The user accounts data. */ | 815 /** The user accounts data. */ |
| 816 core.List<UserInfo> users; | 816 core.List<UserInfo> users; |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 /** The email of the user. */ | 1889 /** The email of the user. */ |
| 1890 core.String email; | 1890 core.String email; |
| 1891 /** | 1891 /** |
| 1892 * Mark the email as verified or not. Only can be used by service account. | 1892 * Mark the email as verified or not. Only can be used by service account. |
| 1893 */ | 1893 */ |
| 1894 core.bool emailVerified; | 1894 core.bool emailVerified; |
| 1895 /** The GITKit token of the authenticated user. */ | 1895 /** The GITKit token of the authenticated user. */ |
| 1896 core.String idToken; | 1896 core.String idToken; |
| 1897 /** Instance id token of the app. */ | 1897 /** Instance id token of the app. */ |
| 1898 core.String instanceId; | 1898 core.String instanceId; |
| 1899 /** Privileged caller can create user with specified user id. */ |
| 1900 core.String localId; |
| 1899 /** The new password of the user. */ | 1901 /** The new password of the user. */ |
| 1900 core.String password; | 1902 core.String password; |
| 1901 /** The photo url of the user. */ | 1903 /** The photo url of the user. */ |
| 1902 core.String photoUrl; | 1904 core.String photoUrl; |
| 1903 | 1905 |
| 1904 IdentitytoolkitRelyingpartySignupNewUserRequest(); | 1906 IdentitytoolkitRelyingpartySignupNewUserRequest(); |
| 1905 | 1907 |
| 1906 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { | 1908 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { |
| 1907 if (_json.containsKey("captchaChallenge")) { | 1909 if (_json.containsKey("captchaChallenge")) { |
| 1908 captchaChallenge = _json["captchaChallenge"]; | 1910 captchaChallenge = _json["captchaChallenge"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1921 } | 1923 } |
| 1922 if (_json.containsKey("emailVerified")) { | 1924 if (_json.containsKey("emailVerified")) { |
| 1923 emailVerified = _json["emailVerified"]; | 1925 emailVerified = _json["emailVerified"]; |
| 1924 } | 1926 } |
| 1925 if (_json.containsKey("idToken")) { | 1927 if (_json.containsKey("idToken")) { |
| 1926 idToken = _json["idToken"]; | 1928 idToken = _json["idToken"]; |
| 1927 } | 1929 } |
| 1928 if (_json.containsKey("instanceId")) { | 1930 if (_json.containsKey("instanceId")) { |
| 1929 instanceId = _json["instanceId"]; | 1931 instanceId = _json["instanceId"]; |
| 1930 } | 1932 } |
| 1933 if (_json.containsKey("localId")) { |
| 1934 localId = _json["localId"]; |
| 1935 } |
| 1931 if (_json.containsKey("password")) { | 1936 if (_json.containsKey("password")) { |
| 1932 password = _json["password"]; | 1937 password = _json["password"]; |
| 1933 } | 1938 } |
| 1934 if (_json.containsKey("photoUrl")) { | 1939 if (_json.containsKey("photoUrl")) { |
| 1935 photoUrl = _json["photoUrl"]; | 1940 photoUrl = _json["photoUrl"]; |
| 1936 } | 1941 } |
| 1937 } | 1942 } |
| 1938 | 1943 |
| 1939 core.Map toJson() { | 1944 core.Map toJson() { |
| 1940 var _json = new core.Map(); | 1945 var _json = new core.Map(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1955 } | 1960 } |
| 1956 if (emailVerified != null) { | 1961 if (emailVerified != null) { |
| 1957 _json["emailVerified"] = emailVerified; | 1962 _json["emailVerified"] = emailVerified; |
| 1958 } | 1963 } |
| 1959 if (idToken != null) { | 1964 if (idToken != null) { |
| 1960 _json["idToken"] = idToken; | 1965 _json["idToken"] = idToken; |
| 1961 } | 1966 } |
| 1962 if (instanceId != null) { | 1967 if (instanceId != null) { |
| 1963 _json["instanceId"] = instanceId; | 1968 _json["instanceId"] = instanceId; |
| 1964 } | 1969 } |
| 1970 if (localId != null) { |
| 1971 _json["localId"] = localId; |
| 1972 } |
| 1965 if (password != null) { | 1973 if (password != null) { |
| 1966 _json["password"] = password; | 1974 _json["password"] = password; |
| 1967 } | 1975 } |
| 1968 if (photoUrl != null) { | 1976 if (photoUrl != null) { |
| 1969 _json["photoUrl"] = photoUrl; | 1977 _json["photoUrl"] = photoUrl; |
| 1970 } | 1978 } |
| 1971 return _json; | 1979 return _json; |
| 1972 } | 1980 } |
| 1973 } | 1981 } |
| 1974 | 1982 |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 return _json; | 2589 return _json; |
| 2582 } | 2590 } |
| 2583 } | 2591 } |
| 2584 | 2592 |
| 2585 /** Respone of setting the account information. */ | 2593 /** Respone of setting the account information. */ |
| 2586 class SetAccountInfoResponse { | 2594 class SetAccountInfoResponse { |
| 2587 /** The name of the user. */ | 2595 /** The name of the user. */ |
| 2588 core.String displayName; | 2596 core.String displayName; |
| 2589 /** The email of the user. */ | 2597 /** The email of the user. */ |
| 2590 core.String email; | 2598 core.String email; |
| 2599 /** If email has been verified. */ |
| 2600 core.bool emailVerified; |
| 2591 /** | 2601 /** |
| 2592 * If idToken is STS id token, then this field will be expiration time of STS | 2602 * If idToken is STS id token, then this field will be expiration time of STS |
| 2593 * id token in seconds. | 2603 * id token in seconds. |
| 2594 */ | 2604 */ |
| 2595 core.String expiresIn; | 2605 core.String expiresIn; |
| 2596 /** The Gitkit id token to login the newly sign up user. */ | 2606 /** The Gitkit id token to login the newly sign up user. */ |
| 2597 core.String idToken; | 2607 core.String idToken; |
| 2598 /** The fixed string "identitytoolkit#SetAccountInfoResponse". */ | 2608 /** The fixed string "identitytoolkit#SetAccountInfoResponse". */ |
| 2599 core.String kind; | 2609 core.String kind; |
| 2600 /** The local ID of the user. */ | 2610 /** The local ID of the user. */ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2619 | 2629 |
| 2620 SetAccountInfoResponse(); | 2630 SetAccountInfoResponse(); |
| 2621 | 2631 |
| 2622 SetAccountInfoResponse.fromJson(core.Map _json) { | 2632 SetAccountInfoResponse.fromJson(core.Map _json) { |
| 2623 if (_json.containsKey("displayName")) { | 2633 if (_json.containsKey("displayName")) { |
| 2624 displayName = _json["displayName"]; | 2634 displayName = _json["displayName"]; |
| 2625 } | 2635 } |
| 2626 if (_json.containsKey("email")) { | 2636 if (_json.containsKey("email")) { |
| 2627 email = _json["email"]; | 2637 email = _json["email"]; |
| 2628 } | 2638 } |
| 2639 if (_json.containsKey("emailVerified")) { |
| 2640 emailVerified = _json["emailVerified"]; |
| 2641 } |
| 2629 if (_json.containsKey("expiresIn")) { | 2642 if (_json.containsKey("expiresIn")) { |
| 2630 expiresIn = _json["expiresIn"]; | 2643 expiresIn = _json["expiresIn"]; |
| 2631 } | 2644 } |
| 2632 if (_json.containsKey("idToken")) { | 2645 if (_json.containsKey("idToken")) { |
| 2633 idToken = _json["idToken"]; | 2646 idToken = _json["idToken"]; |
| 2634 } | 2647 } |
| 2635 if (_json.containsKey("kind")) { | 2648 if (_json.containsKey("kind")) { |
| 2636 kind = _json["kind"]; | 2649 kind = _json["kind"]; |
| 2637 } | 2650 } |
| 2638 if (_json.containsKey("localId")) { | 2651 if (_json.containsKey("localId")) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2656 } | 2669 } |
| 2657 | 2670 |
| 2658 core.Map toJson() { | 2671 core.Map toJson() { |
| 2659 var _json = new core.Map(); | 2672 var _json = new core.Map(); |
| 2660 if (displayName != null) { | 2673 if (displayName != null) { |
| 2661 _json["displayName"] = displayName; | 2674 _json["displayName"] = displayName; |
| 2662 } | 2675 } |
| 2663 if (email != null) { | 2676 if (email != null) { |
| 2664 _json["email"] = email; | 2677 _json["email"] = email; |
| 2665 } | 2678 } |
| 2679 if (emailVerified != null) { |
| 2680 _json["emailVerified"] = emailVerified; |
| 2681 } |
| 2666 if (expiresIn != null) { | 2682 if (expiresIn != null) { |
| 2667 _json["expiresIn"] = expiresIn; | 2683 _json["expiresIn"] = expiresIn; |
| 2668 } | 2684 } |
| 2669 if (idToken != null) { | 2685 if (idToken != null) { |
| 2670 _json["idToken"] = idToken; | 2686 _json["idToken"] = idToken; |
| 2671 } | 2687 } |
| 2672 if (kind != null) { | 2688 if (kind != null) { |
| 2673 _json["kind"] = kind; | 2689 _json["kind"] = kind; |
| 2674 } | 2690 } |
| 2675 if (localId != null) { | 2691 if (localId != null) { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3109 /** The full name of the user. */ | 3125 /** The full name of the user. */ |
| 3110 core.String fullName; | 3126 core.String fullName; |
| 3111 /** The ID token. */ | 3127 /** The ID token. */ |
| 3112 core.String idToken; | 3128 core.String idToken; |
| 3113 /** | 3129 /** |
| 3114 * It's the identifier param in the createAuthUri request if the identifier is | 3130 * It's the identifier param in the createAuthUri request if the identifier is |
| 3115 * an email. It can be used to check whether the user input email is different | 3131 * an email. It can be used to check whether the user input email is different |
| 3116 * from the asserted email. | 3132 * from the asserted email. |
| 3117 */ | 3133 */ |
| 3118 core.String inputEmail; | 3134 core.String inputEmail; |
| 3135 /** True if it's a new user sign-in, false if it's a returning user. */ |
| 3136 core.bool isNewUser; |
| 3119 /** The fixed string "identitytoolkit#VerifyAssertionResponse". */ | 3137 /** The fixed string "identitytoolkit#VerifyAssertionResponse". */ |
| 3120 core.String kind; | 3138 core.String kind; |
| 3121 /** The language preference of the user. */ | 3139 /** The language preference of the user. */ |
| 3122 core.String language; | 3140 core.String language; |
| 3123 /** The last name of the user. */ | 3141 /** The last name of the user. */ |
| 3124 core.String lastName; | 3142 core.String lastName; |
| 3125 /** | 3143 /** |
| 3126 * The RP local ID if it's already been mapped to the IdP account identified | 3144 * The RP local ID if it's already been mapped to the IdP account identified |
| 3127 * by the federated ID. | 3145 * by the federated ID. |
| 3128 */ | 3146 */ |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3224 } | 3242 } |
| 3225 if (_json.containsKey("fullName")) { | 3243 if (_json.containsKey("fullName")) { |
| 3226 fullName = _json["fullName"]; | 3244 fullName = _json["fullName"]; |
| 3227 } | 3245 } |
| 3228 if (_json.containsKey("idToken")) { | 3246 if (_json.containsKey("idToken")) { |
| 3229 idToken = _json["idToken"]; | 3247 idToken = _json["idToken"]; |
| 3230 } | 3248 } |
| 3231 if (_json.containsKey("inputEmail")) { | 3249 if (_json.containsKey("inputEmail")) { |
| 3232 inputEmail = _json["inputEmail"]; | 3250 inputEmail = _json["inputEmail"]; |
| 3233 } | 3251 } |
| 3252 if (_json.containsKey("isNewUser")) { |
| 3253 isNewUser = _json["isNewUser"]; |
| 3254 } |
| 3234 if (_json.containsKey("kind")) { | 3255 if (_json.containsKey("kind")) { |
| 3235 kind = _json["kind"]; | 3256 kind = _json["kind"]; |
| 3236 } | 3257 } |
| 3237 if (_json.containsKey("language")) { | 3258 if (_json.containsKey("language")) { |
| 3238 language = _json["language"]; | 3259 language = _json["language"]; |
| 3239 } | 3260 } |
| 3240 if (_json.containsKey("lastName")) { | 3261 if (_json.containsKey("lastName")) { |
| 3241 lastName = _json["lastName"]; | 3262 lastName = _json["lastName"]; |
| 3242 } | 3263 } |
| 3243 if (_json.containsKey("localId")) { | 3264 if (_json.containsKey("localId")) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3342 } | 3363 } |
| 3343 if (fullName != null) { | 3364 if (fullName != null) { |
| 3344 _json["fullName"] = fullName; | 3365 _json["fullName"] = fullName; |
| 3345 } | 3366 } |
| 3346 if (idToken != null) { | 3367 if (idToken != null) { |
| 3347 _json["idToken"] = idToken; | 3368 _json["idToken"] = idToken; |
| 3348 } | 3369 } |
| 3349 if (inputEmail != null) { | 3370 if (inputEmail != null) { |
| 3350 _json["inputEmail"] = inputEmail; | 3371 _json["inputEmail"] = inputEmail; |
| 3351 } | 3372 } |
| 3373 if (isNewUser != null) { |
| 3374 _json["isNewUser"] = isNewUser; |
| 3375 } |
| 3352 if (kind != null) { | 3376 if (kind != null) { |
| 3353 _json["kind"] = kind; | 3377 _json["kind"] = kind; |
| 3354 } | 3378 } |
| 3355 if (language != null) { | 3379 if (language != null) { |
| 3356 _json["language"] = language; | 3380 _json["language"] = language; |
| 3357 } | 3381 } |
| 3358 if (lastName != null) { | 3382 if (lastName != null) { |
| 3359 _json["lastName"] = lastName; | 3383 _json["lastName"] = lastName; |
| 3360 } | 3384 } |
| 3361 if (localId != null) { | 3385 if (localId != null) { |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3579 } | 3603 } |
| 3580 if (refreshToken != null) { | 3604 if (refreshToken != null) { |
| 3581 _json["refreshToken"] = refreshToken; | 3605 _json["refreshToken"] = refreshToken; |
| 3582 } | 3606 } |
| 3583 if (registered != null) { | 3607 if (registered != null) { |
| 3584 _json["registered"] = registered; | 3608 _json["registered"] = registered; |
| 3585 } | 3609 } |
| 3586 return _json; | 3610 return _json; |
| 3587 } | 3611 } |
| 3588 } | 3612 } |
| OLD | NEW |