Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: generated/googleapis/lib/identitytoolkit/v3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/iam/v1.dart ('k') | generated/googleapis/lib/kgsearch/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
11 import 'package:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
12 12
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
14 ApiRequestError, DetailedApiRequestError; 14 show ApiRequestError, DetailedApiRequestError;
15 15
16 const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3'; 16 const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3';
17 17
18 /** Help the third party sites to implement federated login. */ 18 /// Help the third party sites to implement federated login.
19 class IdentitytoolkitApi { 19 class IdentitytoolkitApi {
20 /** View and manage your data across Google Cloud Platform services */ 20 /// View and manage your data across Google Cloud Platform services
21 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 21 static const CloudPlatformScope =
22 "https://www.googleapis.com/auth/cloud-platform";
22 23
23 /** View and administer all your Firebase data and settings */ 24 /// View and administer all your Firebase data and settings
24 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; 25 static const FirebaseScope = "https://www.googleapis.com/auth/firebase";
25 26
26
27 final commons.ApiRequester _requester; 27 final commons.ApiRequester _requester;
28 28
29 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque ster); 29 RelyingpartyResourceApi get relyingparty =>
30 new RelyingpartyResourceApi(_requester);
30 31
31 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : 32 IdentitytoolkitApi(http.Client client,
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 33 {core.String rootUrl: "https://www.googleapis.com/",
34 core.String servicePath: "identitytoolkit/v3/relyingparty/"})
35 : _requester =
36 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
33 } 37 }
34 38
35
36 class RelyingpartyResourceApi { 39 class RelyingpartyResourceApi {
37 final commons.ApiRequester _requester; 40 final commons.ApiRequester _requester;
38 41
39 RelyingpartyResourceApi(commons.ApiRequester client) : 42 RelyingpartyResourceApi(commons.ApiRequester client) : _requester = client;
40 _requester = client;
41 43
42 /** 44 /// Creates the URI used by the IdP to authenticate the user.
43 * Creates the URI used by the IdP to authenticate the user. 45 ///
44 * 46 /// [request] - The metadata request object.
45 * [request] - The metadata request object. 47 ///
46 * 48 /// Request parameters:
47 * Request parameters: 49 ///
48 * 50 /// Completes with a [CreateAuthUriResponse].
49 * Completes with a [CreateAuthUriResponse]. 51 ///
50 * 52 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
51 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 53 /// an error.
52 * error. 54 ///
53 * 55 /// If the used [http.Client] completes with an error when making a REST
54 * If the used [http.Client] completes with an error when making a REST call, 56 /// call, this method will complete with the same error.
55 * this method will complete with the same error. 57 async.Future<CreateAuthUriResponse> createAuthUri(
56 */ 58 IdentitytoolkitRelyingpartyCreateAuthUriRequest request) {
57 async.Future<CreateAuthUriResponse> createAuthUri(IdentitytoolkitRelyingpartyC reateAuthUriRequest request) {
58 var _url = null; 59 var _url = null;
59 var _queryParams = new core.Map(); 60 var _queryParams = new core.Map();
60 var _uploadMedia = null; 61 var _uploadMedia = null;
61 var _uploadOptions = null; 62 var _uploadOptions = null;
62 var _downloadOptions = commons.DownloadOptions.Metadata; 63 var _downloadOptions = commons.DownloadOptions.Metadata;
63 var _body = null; 64 var _body = null;
64 65
65 if (request != null) { 66 if (request != null) {
66 _body = convert.JSON.encode((request).toJson()); 67 _body = convert.JSON.encode((request).toJson());
67 } 68 }
68 69
69 _url = 'createAuthUri'; 70 _url = 'createAuthUri';
70 71
71 var _response = _requester.request(_url, 72 var _response = _requester.request(_url, "POST",
72 "POST", 73 body: _body,
73 body: _body, 74 queryParams: _queryParams,
74 queryParams: _queryParams, 75 uploadOptions: _uploadOptions,
75 uploadOptions: _uploadOptions, 76 uploadMedia: _uploadMedia,
76 uploadMedia: _uploadMedia, 77 downloadOptions: _downloadOptions);
77 downloadOptions: _downloadOptions);
78 return _response.then((data) => new CreateAuthUriResponse.fromJson(data)); 78 return _response.then((data) => new CreateAuthUriResponse.fromJson(data));
79 } 79 }
80 80
81 /** 81 /// Delete user account.
82 * Delete user account. 82 ///
83 * 83 /// [request] - The metadata request object.
84 * [request] - The metadata request object. 84 ///
85 * 85 /// Request parameters:
86 * Request parameters: 86 ///
87 * 87 /// Completes with a [DeleteAccountResponse].
88 * Completes with a [DeleteAccountResponse]. 88 ///
89 * 89 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
90 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 90 /// an error.
91 * error. 91 ///
92 * 92 /// If the used [http.Client] completes with an error when making a REST
93 * If the used [http.Client] completes with an error when making a REST call, 93 /// call, this method will complete with the same error.
94 * this method will complete with the same error. 94 async.Future<DeleteAccountResponse> deleteAccount(
95 */ 95 IdentitytoolkitRelyingpartyDeleteAccountRequest request) {
96 async.Future<DeleteAccountResponse> deleteAccount(IdentitytoolkitRelyingpartyD eleteAccountRequest request) {
97 var _url = null; 96 var _url = null;
98 var _queryParams = new core.Map(); 97 var _queryParams = new core.Map();
99 var _uploadMedia = null; 98 var _uploadMedia = null;
100 var _uploadOptions = null; 99 var _uploadOptions = null;
101 var _downloadOptions = commons.DownloadOptions.Metadata; 100 var _downloadOptions = commons.DownloadOptions.Metadata;
102 var _body = null; 101 var _body = null;
103 102
104 if (request != null) { 103 if (request != null) {
105 _body = convert.JSON.encode((request).toJson()); 104 _body = convert.JSON.encode((request).toJson());
106 } 105 }
107 106
108 _url = 'deleteAccount'; 107 _url = 'deleteAccount';
109 108
110 var _response = _requester.request(_url, 109 var _response = _requester.request(_url, "POST",
111 "POST", 110 body: _body,
112 body: _body, 111 queryParams: _queryParams,
113 queryParams: _queryParams, 112 uploadOptions: _uploadOptions,
114 uploadOptions: _uploadOptions, 113 uploadMedia: _uploadMedia,
115 uploadMedia: _uploadMedia, 114 downloadOptions: _downloadOptions);
116 downloadOptions: _downloadOptions);
117 return _response.then((data) => new DeleteAccountResponse.fromJson(data)); 115 return _response.then((data) => new DeleteAccountResponse.fromJson(data));
118 } 116 }
119 117
120 /** 118 /// Batch download user accounts.
121 * Batch download user accounts. 119 ///
122 * 120 /// [request] - The metadata request object.
123 * [request] - The metadata request object. 121 ///
124 * 122 /// Request parameters:
125 * Request parameters: 123 ///
126 * 124 /// Completes with a [DownloadAccountResponse].
127 * Completes with a [DownloadAccountResponse]. 125 ///
128 * 126 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
129 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 127 /// an error.
130 * error. 128 ///
131 * 129 /// If the used [http.Client] completes with an error when making a REST
132 * If the used [http.Client] completes with an error when making a REST call, 130 /// call, this method will complete with the same error.
133 * this method will complete with the same error. 131 async.Future<DownloadAccountResponse> downloadAccount(
134 */ 132 IdentitytoolkitRelyingpartyDownloadAccountRequest request) {
135 async.Future<DownloadAccountResponse> downloadAccount(IdentitytoolkitRelyingpa rtyDownloadAccountRequest request) {
136 var _url = null; 133 var _url = null;
137 var _queryParams = new core.Map(); 134 var _queryParams = new core.Map();
138 var _uploadMedia = null; 135 var _uploadMedia = null;
139 var _uploadOptions = null; 136 var _uploadOptions = null;
140 var _downloadOptions = commons.DownloadOptions.Metadata; 137 var _downloadOptions = commons.DownloadOptions.Metadata;
141 var _body = null; 138 var _body = null;
142 139
143 if (request != null) { 140 if (request != null) {
144 _body = convert.JSON.encode((request).toJson()); 141 _body = convert.JSON.encode((request).toJson());
145 } 142 }
146 143
147 _url = 'downloadAccount'; 144 _url = 'downloadAccount';
148 145
149 var _response = _requester.request(_url, 146 var _response = _requester.request(_url, "POST",
150 "POST", 147 body: _body,
151 body: _body, 148 queryParams: _queryParams,
152 queryParams: _queryParams, 149 uploadOptions: _uploadOptions,
153 uploadOptions: _uploadOptions, 150 uploadMedia: _uploadMedia,
154 uploadMedia: _uploadMedia, 151 downloadOptions: _downloadOptions);
155 downloadOptions: _downloadOptions);
156 return _response.then((data) => new DownloadAccountResponse.fromJson(data)); 152 return _response.then((data) => new DownloadAccountResponse.fromJson(data));
157 } 153 }
158 154
159 /** 155 /// Returns the account info.
160 * Returns the account info. 156 ///
161 * 157 /// [request] - The metadata request object.
162 * [request] - The metadata request object. 158 ///
163 * 159 /// Request parameters:
164 * Request parameters: 160 ///
165 * 161 /// Completes with a [GetAccountInfoResponse].
166 * Completes with a [GetAccountInfoResponse]. 162 ///
167 * 163 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
168 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 164 /// an error.
169 * error. 165 ///
170 * 166 /// If the used [http.Client] completes with an error when making a REST
171 * If the used [http.Client] completes with an error when making a REST call, 167 /// call, this method will complete with the same error.
172 * this method will complete with the same error. 168 async.Future<GetAccountInfoResponse> getAccountInfo(
173 */ 169 IdentitytoolkitRelyingpartyGetAccountInfoRequest request) {
174 async.Future<GetAccountInfoResponse> getAccountInfo(IdentitytoolkitRelyingpart yGetAccountInfoRequest request) {
175 var _url = null; 170 var _url = null;
176 var _queryParams = new core.Map(); 171 var _queryParams = new core.Map();
177 var _uploadMedia = null; 172 var _uploadMedia = null;
178 var _uploadOptions = null; 173 var _uploadOptions = null;
179 var _downloadOptions = commons.DownloadOptions.Metadata; 174 var _downloadOptions = commons.DownloadOptions.Metadata;
180 var _body = null; 175 var _body = null;
181 176
182 if (request != null) { 177 if (request != null) {
183 _body = convert.JSON.encode((request).toJson()); 178 _body = convert.JSON.encode((request).toJson());
184 } 179 }
185 180
186 _url = 'getAccountInfo'; 181 _url = 'getAccountInfo';
187 182
188 var _response = _requester.request(_url, 183 var _response = _requester.request(_url, "POST",
189 "POST", 184 body: _body,
190 body: _body, 185 queryParams: _queryParams,
191 queryParams: _queryParams, 186 uploadOptions: _uploadOptions,
192 uploadOptions: _uploadOptions, 187 uploadMedia: _uploadMedia,
193 uploadMedia: _uploadMedia, 188 downloadOptions: _downloadOptions);
194 downloadOptions: _downloadOptions);
195 return _response.then((data) => new GetAccountInfoResponse.fromJson(data)); 189 return _response.then((data) => new GetAccountInfoResponse.fromJson(data));
196 } 190 }
197 191
198 /** 192 /// Get a code for user action confirmation.
199 * Get a code for user action confirmation. 193 ///
200 * 194 /// [request] - The metadata request object.
201 * [request] - The metadata request object. 195 ///
202 * 196 /// Request parameters:
203 * Request parameters: 197 ///
204 * 198 /// Completes with a [GetOobConfirmationCodeResponse].
205 * Completes with a [GetOobConfirmationCodeResponse]. 199 ///
206 * 200 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 201 /// an error.
208 * error. 202 ///
209 * 203 /// If the used [http.Client] completes with an error when making a REST
210 * If the used [http.Client] completes with an error when making a REST call, 204 /// call, this method will complete with the same error.
211 * this method will complete with the same error. 205 async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(
212 */ 206 Relyingparty request) {
213 async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(Relyingpar ty request) {
214 var _url = null; 207 var _url = null;
215 var _queryParams = new core.Map(); 208 var _queryParams = new core.Map();
216 var _uploadMedia = null; 209 var _uploadMedia = null;
217 var _uploadOptions = null; 210 var _uploadOptions = null;
218 var _downloadOptions = commons.DownloadOptions.Metadata; 211 var _downloadOptions = commons.DownloadOptions.Metadata;
219 var _body = null; 212 var _body = null;
220 213
221 if (request != null) { 214 if (request != null) {
222 _body = convert.JSON.encode((request).toJson()); 215 _body = convert.JSON.encode((request).toJson());
223 } 216 }
224 217
225 _url = 'getOobConfirmationCode'; 218 _url = 'getOobConfirmationCode';
226 219
227 var _response = _requester.request(_url, 220 var _response = _requester.request(_url, "POST",
228 "POST", 221 body: _body,
229 body: _body, 222 queryParams: _queryParams,
230 queryParams: _queryParams, 223 uploadOptions: _uploadOptions,
231 uploadOptions: _uploadOptions, 224 uploadMedia: _uploadMedia,
232 uploadMedia: _uploadMedia, 225 downloadOptions: _downloadOptions);
233 downloadOptions: _downloadOptions); 226 return _response
234 return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson( data)); 227 .then((data) => new GetOobConfirmationCodeResponse.fromJson(data));
235 } 228 }
236 229
237 /** 230 /// Get project configuration.
238 * Get project configuration. 231 ///
239 * 232 /// Request parameters:
240 * Request parameters: 233 ///
241 * 234 /// [delegatedProjectNumber] - Delegated GCP project number of the request.
242 * [delegatedProjectNumber] - Delegated GCP project number of the request. 235 ///
243 * 236 /// [projectNumber] - GCP project number of the request.
244 * [projectNumber] - GCP project number of the request. 237 ///
245 * 238 /// Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse].
246 * Completes with a [IdentitytoolkitRelyingpartyGetProjectConfigResponse]. 239 ///
247 * 240 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
248 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 241 /// an error.
249 * error. 242 ///
250 * 243 /// If the used [http.Client] completes with an error when making a REST
251 * If the used [http.Client] completes with an error when making a REST call, 244 /// call, this method will complete with the same error.
252 * this method will complete with the same error. 245 async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse>
253 */ 246 getProjectConfig(
254 async.Future<IdentitytoolkitRelyingpartyGetProjectConfigResponse> getProjectCo nfig({core.String delegatedProjectNumber, core.String projectNumber}) { 247 {core.String delegatedProjectNumber, core.String projectNumber}) {
255 var _url = null; 248 var _url = null;
256 var _queryParams = new core.Map(); 249 var _queryParams = new core.Map();
257 var _uploadMedia = null; 250 var _uploadMedia = null;
258 var _uploadOptions = null; 251 var _uploadOptions = null;
259 var _downloadOptions = commons.DownloadOptions.Metadata; 252 var _downloadOptions = commons.DownloadOptions.Metadata;
260 var _body = null; 253 var _body = null;
261 254
262 if (delegatedProjectNumber != null) { 255 if (delegatedProjectNumber != null) {
263 _queryParams["delegatedProjectNumber"] = [delegatedProjectNumber]; 256 _queryParams["delegatedProjectNumber"] = [delegatedProjectNumber];
264 } 257 }
265 if (projectNumber != null) { 258 if (projectNumber != null) {
266 _queryParams["projectNumber"] = [projectNumber]; 259 _queryParams["projectNumber"] = [projectNumber];
267 } 260 }
268 261
269 _url = 'getProjectConfig'; 262 _url = 'getProjectConfig';
270 263
271 var _response = _requester.request(_url, 264 var _response = _requester.request(_url, "GET",
272 "GET", 265 body: _body,
273 body: _body, 266 queryParams: _queryParams,
274 queryParams: _queryParams, 267 uploadOptions: _uploadOptions,
275 uploadOptions: _uploadOptions, 268 uploadMedia: _uploadMedia,
276 uploadMedia: _uploadMedia, 269 downloadOptions: _downloadOptions);
277 downloadOptions: _downloadOptions); 270 return _response.then((data) =>
278 return _response.then((data) => new IdentitytoolkitRelyingpartyGetProjectCon figResponse.fromJson(data)); 271 new IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(data));
279 } 272 }
280 273
281 /** 274 /// Get token signing public key.
282 * Get token signing public key. 275 ///
283 * 276 /// Request parameters:
284 * Request parameters: 277 ///
285 * 278 /// Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse].
286 * Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse]. 279 ///
287 * 280 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 281 /// an error.
289 * error. 282 ///
290 * 283 /// If the used [http.Client] completes with an error when making a REST
291 * If the used [http.Client] completes with an error when making a REST call, 284 /// call, this method will complete with the same error.
292 * this method will complete with the same error. 285 async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse>
293 */ 286 getPublicKeys() {
294 async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse> getPublicKeys() {
295 var _url = null; 287 var _url = null;
296 var _queryParams = new core.Map(); 288 var _queryParams = new core.Map();
297 var _uploadMedia = null; 289 var _uploadMedia = null;
298 var _uploadOptions = null; 290 var _uploadOptions = null;
299 var _downloadOptions = commons.DownloadOptions.Metadata; 291 var _downloadOptions = commons.DownloadOptions.Metadata;
300 var _body = null; 292 var _body = null;
301 293
302
303 _url = 'publicKeys'; 294 _url = 'publicKeys';
304 295
305 var _response = _requester.request(_url, 296 var _response = _requester.request(_url, "GET",
306 "GET", 297 body: _body,
307 body: _body, 298 queryParams: _queryParams,
308 queryParams: _queryParams, 299 uploadOptions: _uploadOptions,
309 uploadOptions: _uploadOptions, 300 uploadMedia: _uploadMedia,
310 uploadMedia: _uploadMedia, 301 downloadOptions: _downloadOptions);
311 downloadOptions: _downloadOptions); 302 return _response.then((data) =>
312 return _response.then((data) => new IdentitytoolkitRelyingpartyGetPublicKeys Response.fromJson(data)); 303 new IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson(data));
313 } 304 }
314 305
315 /** 306 /// Get recaptcha secure param.
316 * Get recaptcha secure param. 307 ///
317 * 308 /// Request parameters:
318 * Request parameters: 309 ///
319 * 310 /// Completes with a [GetRecaptchaParamResponse].
320 * Completes with a [GetRecaptchaParamResponse]. 311 ///
321 * 312 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 313 /// an error.
323 * error. 314 ///
324 * 315 /// If the used [http.Client] completes with an error when making a REST
325 * If the used [http.Client] completes with an error when making a REST call, 316 /// call, this method will complete with the same error.
326 * this method will complete with the same error.
327 */
328 async.Future<GetRecaptchaParamResponse> getRecaptchaParam() { 317 async.Future<GetRecaptchaParamResponse> getRecaptchaParam() {
329 var _url = null; 318 var _url = null;
330 var _queryParams = new core.Map(); 319 var _queryParams = new core.Map();
331 var _uploadMedia = null; 320 var _uploadMedia = null;
332 var _uploadOptions = null; 321 var _uploadOptions = null;
333 var _downloadOptions = commons.DownloadOptions.Metadata; 322 var _downloadOptions = commons.DownloadOptions.Metadata;
334 var _body = null; 323 var _body = null;
335 324
336
337 _url = 'getRecaptchaParam'; 325 _url = 'getRecaptchaParam';
338 326
339 var _response = _requester.request(_url, 327 var _response = _requester.request(_url, "GET",
340 "GET", 328 body: _body,
341 body: _body, 329 queryParams: _queryParams,
342 queryParams: _queryParams, 330 uploadOptions: _uploadOptions,
343 uploadOptions: _uploadOptions, 331 uploadMedia: _uploadMedia,
344 uploadMedia: _uploadMedia, 332 downloadOptions: _downloadOptions);
345 downloadOptions: _downloadOptions); 333 return _response
346 return _response.then((data) => new GetRecaptchaParamResponse.fromJson(data) ); 334 .then((data) => new GetRecaptchaParamResponse.fromJson(data));
347 } 335 }
348 336
349 /** 337 /// Reset password for a user.
350 * Reset password for a user. 338 ///
351 * 339 /// [request] - The metadata request object.
352 * [request] - The metadata request object. 340 ///
353 * 341 /// Request parameters:
354 * Request parameters: 342 ///
355 * 343 /// Completes with a [ResetPasswordResponse].
356 * Completes with a [ResetPasswordResponse]. 344 ///
357 * 345 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 346 /// an error.
359 * error. 347 ///
360 * 348 /// If the used [http.Client] completes with an error when making a REST
361 * If the used [http.Client] completes with an error when making a REST call, 349 /// call, this method will complete with the same error.
362 * this method will complete with the same error. 350 async.Future<ResetPasswordResponse> resetPassword(
363 */ 351 IdentitytoolkitRelyingpartyResetPasswordRequest request) {
364 async.Future<ResetPasswordResponse> resetPassword(IdentitytoolkitRelyingpartyR esetPasswordRequest request) {
365 var _url = null; 352 var _url = null;
366 var _queryParams = new core.Map(); 353 var _queryParams = new core.Map();
367 var _uploadMedia = null; 354 var _uploadMedia = null;
368 var _uploadOptions = null; 355 var _uploadOptions = null;
369 var _downloadOptions = commons.DownloadOptions.Metadata; 356 var _downloadOptions = commons.DownloadOptions.Metadata;
370 var _body = null; 357 var _body = null;
371 358
372 if (request != null) { 359 if (request != null) {
373 _body = convert.JSON.encode((request).toJson()); 360 _body = convert.JSON.encode((request).toJson());
374 } 361 }
375 362
376 _url = 'resetPassword'; 363 _url = 'resetPassword';
377 364
378 var _response = _requester.request(_url, 365 var _response = _requester.request(_url, "POST",
379 "POST", 366 body: _body,
380 body: _body, 367 queryParams: _queryParams,
381 queryParams: _queryParams, 368 uploadOptions: _uploadOptions,
382 uploadOptions: _uploadOptions, 369 uploadMedia: _uploadMedia,
383 uploadMedia: _uploadMedia, 370 downloadOptions: _downloadOptions);
384 downloadOptions: _downloadOptions);
385 return _response.then((data) => new ResetPasswordResponse.fromJson(data)); 371 return _response.then((data) => new ResetPasswordResponse.fromJson(data));
386 } 372 }
387 373
388 /** 374 /// Send SMS verification code.
389 * Set account info for a user. 375 ///
390 * 376 /// [request] - The metadata request object.
391 * [request] - The metadata request object. 377 ///
392 * 378 /// Request parameters:
393 * Request parameters: 379 ///
394 * 380 /// Completes with a
395 * Completes with a [SetAccountInfoResponse]. 381 /// [IdentitytoolkitRelyingpartySendVerificationCodeResponse].
396 * 382 ///
397 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 383 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
398 * error. 384 /// an error.
399 * 385 ///
400 * If the used [http.Client] completes with an error when making a REST call, 386 /// If the used [http.Client] completes with an error when making a REST
401 * this method will complete with the same error. 387 /// call, this method will complete with the same error.
402 */ 388 async.Future<IdentitytoolkitRelyingpartySendVerificationCodeResponse>
403 async.Future<SetAccountInfoResponse> setAccountInfo(IdentitytoolkitRelyingpart ySetAccountInfoRequest request) { 389 sendVerificationCode(
390 IdentitytoolkitRelyingpartySendVerificationCodeRequest request) {
404 var _url = null; 391 var _url = null;
405 var _queryParams = new core.Map(); 392 var _queryParams = new core.Map();
406 var _uploadMedia = null; 393 var _uploadMedia = null;
394 var _uploadOptions = null;
395 var _downloadOptions = commons.DownloadOptions.Metadata;
396 var _body = null;
397
398 if (request != null) {
399 _body = convert.JSON.encode((request).toJson());
400 }
401
402 _url = 'sendVerificationCode';
403
404 var _response = _requester.request(_url, "POST",
405 body: _body,
406 queryParams: _queryParams,
407 uploadOptions: _uploadOptions,
408 uploadMedia: _uploadMedia,
409 downloadOptions: _downloadOptions);
410 return _response.then((data) =>
411 new IdentitytoolkitRelyingpartySendVerificationCodeResponse.fromJson(
412 data));
413 }
414
415 /// Set account info for a user.
416 ///
417 /// [request] - The metadata request object.
418 ///
419 /// Request parameters:
420 ///
421 /// Completes with a [SetAccountInfoResponse].
422 ///
423 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
424 /// an error.
425 ///
426 /// If the used [http.Client] completes with an error when making a REST
427 /// call, this method will complete with the same error.
428 async.Future<SetAccountInfoResponse> setAccountInfo(
429 IdentitytoolkitRelyingpartySetAccountInfoRequest request) {
430 var _url = null;
431 var _queryParams = new core.Map();
432 var _uploadMedia = null;
407 var _uploadOptions = null; 433 var _uploadOptions = null;
408 var _downloadOptions = commons.DownloadOptions.Metadata; 434 var _downloadOptions = commons.DownloadOptions.Metadata;
409 var _body = null; 435 var _body = null;
410 436
411 if (request != null) { 437 if (request != null) {
412 _body = convert.JSON.encode((request).toJson()); 438 _body = convert.JSON.encode((request).toJson());
413 } 439 }
414 440
415 _url = 'setAccountInfo'; 441 _url = 'setAccountInfo';
416 442
417 var _response = _requester.request(_url, 443 var _response = _requester.request(_url, "POST",
418 "POST", 444 body: _body,
419 body: _body, 445 queryParams: _queryParams,
420 queryParams: _queryParams, 446 uploadOptions: _uploadOptions,
421 uploadOptions: _uploadOptions, 447 uploadMedia: _uploadMedia,
422 uploadMedia: _uploadMedia, 448 downloadOptions: _downloadOptions);
423 downloadOptions: _downloadOptions);
424 return _response.then((data) => new SetAccountInfoResponse.fromJson(data)); 449 return _response.then((data) => new SetAccountInfoResponse.fromJson(data));
425 } 450 }
426 451
427 /** 452 /// Set project configuration.
428 * Set project configuration. 453 ///
429 * 454 /// [request] - The metadata request object.
430 * [request] - The metadata request object. 455 ///
431 * 456 /// Request parameters:
432 * Request parameters: 457 ///
433 * 458 /// Completes with a [IdentitytoolkitRelyingpartySetProjectConfigResponse].
434 * Completes with a [IdentitytoolkitRelyingpartySetProjectConfigResponse]. 459 ///
435 * 460 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
436 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 461 /// an error.
437 * error. 462 ///
438 * 463 /// If the used [http.Client] completes with an error when making a REST
439 * If the used [http.Client] completes with an error when making a REST call, 464 /// call, this method will complete with the same error.
440 * this method will complete with the same error. 465 async.Future<IdentitytoolkitRelyingpartySetProjectConfigResponse>
441 */ 466 setProjectConfig(
442 async.Future<IdentitytoolkitRelyingpartySetProjectConfigResponse> setProjectCo nfig(IdentitytoolkitRelyingpartySetProjectConfigRequest request) { 467 IdentitytoolkitRelyingpartySetProjectConfigRequest request) {
443 var _url = null; 468 var _url = null;
444 var _queryParams = new core.Map(); 469 var _queryParams = new core.Map();
445 var _uploadMedia = null; 470 var _uploadMedia = null;
446 var _uploadOptions = null; 471 var _uploadOptions = null;
447 var _downloadOptions = commons.DownloadOptions.Metadata; 472 var _downloadOptions = commons.DownloadOptions.Metadata;
448 var _body = null; 473 var _body = null;
449 474
450 if (request != null) { 475 if (request != null) {
451 _body = convert.JSON.encode((request).toJson()); 476 _body = convert.JSON.encode((request).toJson());
452 } 477 }
453 478
454 _url = 'setProjectConfig'; 479 _url = 'setProjectConfig';
455 480
456 var _response = _requester.request(_url, 481 var _response = _requester.request(_url, "POST",
457 "POST", 482 body: _body,
458 body: _body, 483 queryParams: _queryParams,
459 queryParams: _queryParams, 484 uploadOptions: _uploadOptions,
460 uploadOptions: _uploadOptions, 485 uploadMedia: _uploadMedia,
461 uploadMedia: _uploadMedia, 486 downloadOptions: _downloadOptions);
462 downloadOptions: _downloadOptions); 487 return _response.then((data) =>
463 return _response.then((data) => new IdentitytoolkitRelyingpartySetProjectCon figResponse.fromJson(data)); 488 new IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(data));
464 } 489 }
465 490
466 /** 491 /// Sign out user.
467 * Sign out user. 492 ///
468 * 493 /// [request] - The metadata request object.
469 * [request] - The metadata request object. 494 ///
470 * 495 /// Request parameters:
471 * Request parameters: 496 ///
472 * 497 /// Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse].
473 * Completes with a [IdentitytoolkitRelyingpartySignOutUserResponse]. 498 ///
474 * 499 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
475 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 500 /// an error.
476 * error. 501 ///
477 * 502 /// If the used [http.Client] completes with an error when making a REST
478 * If the used [http.Client] completes with an error when making a REST call, 503 /// call, this method will complete with the same error.
479 * this method will complete with the same error. 504 async.Future<IdentitytoolkitRelyingpartySignOutUserResponse> signOutUser(
480 */ 505 IdentitytoolkitRelyingpartySignOutUserRequest request) {
481 async.Future<IdentitytoolkitRelyingpartySignOutUserResponse> signOutUser(Ident itytoolkitRelyingpartySignOutUserRequest request) {
482 var _url = null; 506 var _url = null;
483 var _queryParams = new core.Map(); 507 var _queryParams = new core.Map();
484 var _uploadMedia = null; 508 var _uploadMedia = null;
485 var _uploadOptions = null; 509 var _uploadOptions = null;
486 var _downloadOptions = commons.DownloadOptions.Metadata; 510 var _downloadOptions = commons.DownloadOptions.Metadata;
487 var _body = null; 511 var _body = null;
488 512
489 if (request != null) { 513 if (request != null) {
490 _body = convert.JSON.encode((request).toJson()); 514 _body = convert.JSON.encode((request).toJson());
491 } 515 }
492 516
493 _url = 'signOutUser'; 517 _url = 'signOutUser';
494 518
495 var _response = _requester.request(_url, 519 var _response = _requester.request(_url, "POST",
496 "POST", 520 body: _body,
497 body: _body, 521 queryParams: _queryParams,
498 queryParams: _queryParams, 522 uploadOptions: _uploadOptions,
499 uploadOptions: _uploadOptions, 523 uploadMedia: _uploadMedia,
500 uploadMedia: _uploadMedia, 524 downloadOptions: _downloadOptions);
501 downloadOptions: _downloadOptions); 525 return _response.then((data) =>
502 return _response.then((data) => new IdentitytoolkitRelyingpartySignOutUserRe sponse.fromJson(data)); 526 new IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(data));
503 } 527 }
504 528
505 /** 529 /// Signup new user.
506 * Signup new user. 530 ///
507 * 531 /// [request] - The metadata request object.
508 * [request] - The metadata request object. 532 ///
509 * 533 /// Request parameters:
510 * Request parameters: 534 ///
511 * 535 /// Completes with a [SignupNewUserResponse].
512 * Completes with a [SignupNewUserResponse]. 536 ///
513 * 537 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
514 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 538 /// an error.
515 * error. 539 ///
516 * 540 /// If the used [http.Client] completes with an error when making a REST
517 * If the used [http.Client] completes with an error when making a REST call, 541 /// call, this method will complete with the same error.
518 * this method will complete with the same error. 542 async.Future<SignupNewUserResponse> signupNewUser(
519 */ 543 IdentitytoolkitRelyingpartySignupNewUserRequest request) {
520 async.Future<SignupNewUserResponse> signupNewUser(IdentitytoolkitRelyingpartyS ignupNewUserRequest request) {
521 var _url = null; 544 var _url = null;
522 var _queryParams = new core.Map(); 545 var _queryParams = new core.Map();
523 var _uploadMedia = null; 546 var _uploadMedia = null;
524 var _uploadOptions = null; 547 var _uploadOptions = null;
525 var _downloadOptions = commons.DownloadOptions.Metadata; 548 var _downloadOptions = commons.DownloadOptions.Metadata;
526 var _body = null; 549 var _body = null;
527 550
528 if (request != null) { 551 if (request != null) {
529 _body = convert.JSON.encode((request).toJson()); 552 _body = convert.JSON.encode((request).toJson());
530 } 553 }
531 554
532 _url = 'signupNewUser'; 555 _url = 'signupNewUser';
533 556
534 var _response = _requester.request(_url, 557 var _response = _requester.request(_url, "POST",
535 "POST", 558 body: _body,
536 body: _body, 559 queryParams: _queryParams,
537 queryParams: _queryParams, 560 uploadOptions: _uploadOptions,
538 uploadOptions: _uploadOptions, 561 uploadMedia: _uploadMedia,
539 uploadMedia: _uploadMedia, 562 downloadOptions: _downloadOptions);
540 downloadOptions: _downloadOptions);
541 return _response.then((data) => new SignupNewUserResponse.fromJson(data)); 563 return _response.then((data) => new SignupNewUserResponse.fromJson(data));
542 } 564 }
543 565
544 /** 566 /// Batch upload existing user accounts.
545 * Batch upload existing user accounts. 567 ///
546 * 568 /// [request] - The metadata request object.
547 * [request] - The metadata request object. 569 ///
548 * 570 /// Request parameters:
549 * Request parameters: 571 ///
550 * 572 /// Completes with a [UploadAccountResponse].
551 * Completes with a [UploadAccountResponse]. 573 ///
552 * 574 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
553 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 575 /// an error.
554 * error. 576 ///
555 * 577 /// If the used [http.Client] completes with an error when making a REST
556 * If the used [http.Client] completes with an error when making a REST call, 578 /// call, this method will complete with the same error.
557 * this method will complete with the same error. 579 async.Future<UploadAccountResponse> uploadAccount(
558 */ 580 IdentitytoolkitRelyingpartyUploadAccountRequest request) {
559 async.Future<UploadAccountResponse> uploadAccount(IdentitytoolkitRelyingpartyU ploadAccountRequest request) {
560 var _url = null; 581 var _url = null;
561 var _queryParams = new core.Map(); 582 var _queryParams = new core.Map();
562 var _uploadMedia = null; 583 var _uploadMedia = null;
563 var _uploadOptions = null; 584 var _uploadOptions = null;
564 var _downloadOptions = commons.DownloadOptions.Metadata; 585 var _downloadOptions = commons.DownloadOptions.Metadata;
565 var _body = null; 586 var _body = null;
566 587
567 if (request != null) { 588 if (request != null) {
568 _body = convert.JSON.encode((request).toJson()); 589 _body = convert.JSON.encode((request).toJson());
569 } 590 }
570 591
571 _url = 'uploadAccount'; 592 _url = 'uploadAccount';
572 593
573 var _response = _requester.request(_url, 594 var _response = _requester.request(_url, "POST",
574 "POST", 595 body: _body,
575 body: _body, 596 queryParams: _queryParams,
576 queryParams: _queryParams, 597 uploadOptions: _uploadOptions,
577 uploadOptions: _uploadOptions, 598 uploadMedia: _uploadMedia,
578 uploadMedia: _uploadMedia, 599 downloadOptions: _downloadOptions);
579 downloadOptions: _downloadOptions);
580 return _response.then((data) => new UploadAccountResponse.fromJson(data)); 600 return _response.then((data) => new UploadAccountResponse.fromJson(data));
581 } 601 }
582 602
583 /** 603 /// Verifies the assertion returned by the IdP.
584 * Verifies the assertion returned by the IdP. 604 ///
585 * 605 /// [request] - The metadata request object.
586 * [request] - The metadata request object. 606 ///
587 * 607 /// Request parameters:
588 * Request parameters: 608 ///
589 * 609 /// Completes with a [VerifyAssertionResponse].
590 * Completes with a [VerifyAssertionResponse]. 610 ///
591 * 611 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
592 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 612 /// an error.
593 * error. 613 ///
594 * 614 /// If the used [http.Client] completes with an error when making a REST
595 * If the used [http.Client] completes with an error when making a REST call, 615 /// call, this method will complete with the same error.
596 * this method will complete with the same error. 616 async.Future<VerifyAssertionResponse> verifyAssertion(
597 */ 617 IdentitytoolkitRelyingpartyVerifyAssertionRequest request) {
598 async.Future<VerifyAssertionResponse> verifyAssertion(IdentitytoolkitRelyingpa rtyVerifyAssertionRequest request) {
599 var _url = null; 618 var _url = null;
600 var _queryParams = new core.Map(); 619 var _queryParams = new core.Map();
601 var _uploadMedia = null; 620 var _uploadMedia = null;
602 var _uploadOptions = null; 621 var _uploadOptions = null;
603 var _downloadOptions = commons.DownloadOptions.Metadata; 622 var _downloadOptions = commons.DownloadOptions.Metadata;
604 var _body = null; 623 var _body = null;
605 624
606 if (request != null) { 625 if (request != null) {
607 _body = convert.JSON.encode((request).toJson()); 626 _body = convert.JSON.encode((request).toJson());
608 } 627 }
609 628
610 _url = 'verifyAssertion'; 629 _url = 'verifyAssertion';
611 630
612 var _response = _requester.request(_url, 631 var _response = _requester.request(_url, "POST",
613 "POST", 632 body: _body,
614 body: _body, 633 queryParams: _queryParams,
615 queryParams: _queryParams, 634 uploadOptions: _uploadOptions,
616 uploadOptions: _uploadOptions, 635 uploadMedia: _uploadMedia,
617 uploadMedia: _uploadMedia, 636 downloadOptions: _downloadOptions);
618 downloadOptions: _downloadOptions);
619 return _response.then((data) => new VerifyAssertionResponse.fromJson(data)); 637 return _response.then((data) => new VerifyAssertionResponse.fromJson(data));
620 } 638 }
621 639
622 /** 640 /// Verifies the developer asserted ID token.
623 * Verifies the developer asserted ID token. 641 ///
624 * 642 /// [request] - The metadata request object.
625 * [request] - The metadata request object. 643 ///
626 * 644 /// Request parameters:
627 * Request parameters: 645 ///
628 * 646 /// Completes with a [VerifyCustomTokenResponse].
629 * Completes with a [VerifyCustomTokenResponse]. 647 ///
630 * 648 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 649 /// an error.
632 * error. 650 ///
633 * 651 /// If the used [http.Client] completes with an error when making a REST
634 * If the used [http.Client] completes with an error when making a REST call, 652 /// call, this method will complete with the same error.
635 * this method will complete with the same error. 653 async.Future<VerifyCustomTokenResponse> verifyCustomToken(
636 */ 654 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest request) {
637 async.Future<VerifyCustomTokenResponse> verifyCustomToken(IdentitytoolkitRelyi ngpartyVerifyCustomTokenRequest request) {
638 var _url = null; 655 var _url = null;
639 var _queryParams = new core.Map(); 656 var _queryParams = new core.Map();
640 var _uploadMedia = null; 657 var _uploadMedia = null;
641 var _uploadOptions = null; 658 var _uploadOptions = null;
642 var _downloadOptions = commons.DownloadOptions.Metadata; 659 var _downloadOptions = commons.DownloadOptions.Metadata;
643 var _body = null; 660 var _body = null;
644 661
645 if (request != null) { 662 if (request != null) {
646 _body = convert.JSON.encode((request).toJson()); 663 _body = convert.JSON.encode((request).toJson());
647 } 664 }
648 665
649 _url = 'verifyCustomToken'; 666 _url = 'verifyCustomToken';
650 667
651 var _response = _requester.request(_url, 668 var _response = _requester.request(_url, "POST",
652 "POST", 669 body: _body,
653 body: _body, 670 queryParams: _queryParams,
654 queryParams: _queryParams, 671 uploadOptions: _uploadOptions,
655 uploadOptions: _uploadOptions, 672 uploadMedia: _uploadMedia,
656 uploadMedia: _uploadMedia, 673 downloadOptions: _downloadOptions);
657 downloadOptions: _downloadOptions); 674 return _response
658 return _response.then((data) => new VerifyCustomTokenResponse.fromJson(data) ); 675 .then((data) => new VerifyCustomTokenResponse.fromJson(data));
659 } 676 }
660 677
661 /** 678 /// Verifies the user entered password.
662 * Verifies the user entered password. 679 ///
663 * 680 /// [request] - The metadata request object.
664 * [request] - The metadata request object. 681 ///
665 * 682 /// Request parameters:
666 * Request parameters: 683 ///
667 * 684 /// Completes with a [VerifyPasswordResponse].
668 * Completes with a [VerifyPasswordResponse]. 685 ///
669 * 686 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
670 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 687 /// an error.
671 * error. 688 ///
672 * 689 /// If the used [http.Client] completes with an error when making a REST
673 * If the used [http.Client] completes with an error when making a REST call, 690 /// call, this method will complete with the same error.
674 * this method will complete with the same error. 691 async.Future<VerifyPasswordResponse> verifyPassword(
675 */ 692 IdentitytoolkitRelyingpartyVerifyPasswordRequest request) {
676 async.Future<VerifyPasswordResponse> verifyPassword(IdentitytoolkitRelyingpart yVerifyPasswordRequest request) {
677 var _url = null; 693 var _url = null;
678 var _queryParams = new core.Map(); 694 var _queryParams = new core.Map();
679 var _uploadMedia = null; 695 var _uploadMedia = null;
680 var _uploadOptions = null; 696 var _uploadOptions = null;
681 var _downloadOptions = commons.DownloadOptions.Metadata; 697 var _downloadOptions = commons.DownloadOptions.Metadata;
682 var _body = null; 698 var _body = null;
683 699
684 if (request != null) { 700 if (request != null) {
685 _body = convert.JSON.encode((request).toJson()); 701 _body = convert.JSON.encode((request).toJson());
686 } 702 }
687 703
688 _url = 'verifyPassword'; 704 _url = 'verifyPassword';
689 705
690 var _response = _requester.request(_url, 706 var _response = _requester.request(_url, "POST",
691 "POST", 707 body: _body,
692 body: _body, 708 queryParams: _queryParams,
693 queryParams: _queryParams, 709 uploadOptions: _uploadOptions,
694 uploadOptions: _uploadOptions, 710 uploadMedia: _uploadMedia,
695 uploadMedia: _uploadMedia, 711 downloadOptions: _downloadOptions);
696 downloadOptions: _downloadOptions);
697 return _response.then((data) => new VerifyPasswordResponse.fromJson(data)); 712 return _response.then((data) => new VerifyPasswordResponse.fromJson(data));
698 } 713 }
699 714
715 /// Verifies ownership of a phone number and creates/updates the user account
716 /// accordingly.
717 ///
718 /// [request] - The metadata request object.
719 ///
720 /// Request parameters:
721 ///
722 /// Completes with a [IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse].
723 ///
724 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
725 /// an error.
726 ///
727 /// If the used [http.Client] completes with an error when making a REST
728 /// call, this method will complete with the same error.
729 async.Future<IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>
730 verifyPhoneNumber(
731 IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest request) {
732 var _url = null;
733 var _queryParams = new core.Map();
734 var _uploadMedia = null;
735 var _uploadOptions = null;
736 var _downloadOptions = commons.DownloadOptions.Metadata;
737 var _body = null;
738
739 if (request != null) {
740 _body = convert.JSON.encode((request).toJson());
741 }
742
743 _url = 'verifyPhoneNumber';
744
745 var _response = _requester.request(_url, "POST",
746 body: _body,
747 queryParams: _queryParams,
748 uploadOptions: _uploadOptions,
749 uploadMedia: _uploadMedia,
750 downloadOptions: _downloadOptions);
751 return _response.then((data) =>
752 new IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.fromJson(
753 data));
754 }
700 } 755 }
701 756
757 /// Response of creating the IDP authentication URL.
758 class CreateAuthUriResponse {
759 /// all providers the user has once used to do federated login
760 core.List<core.String> allProviders;
702 761
762 /// The URI used by the IDP to authenticate the user.
763 core.String authUri;
703 764
704 /** Response of creating the IDP authentication URL. */ 765 /// True if captcha is required.
705 class CreateAuthUriResponse {
706 /** all providers the user has once used to do federated login */
707 core.List<core.String> allProviders;
708 /** The URI used by the IDP to authenticate the user. */
709 core.String authUri;
710 /** True if captcha is required. */
711 core.bool captchaRequired; 766 core.bool captchaRequired;
712 /** True if the authUri is for user's existing provider. */ 767
768 /// True if the authUri is for user's existing provider.
713 core.bool forExistingProvider; 769 core.bool forExistingProvider;
714 /** The fixed string identitytoolkit#CreateAuthUriResponse". */ 770
771 /// The fixed string identitytoolkit#CreateAuthUriResponse".
715 core.String kind; 772 core.String kind;
716 /** The provider ID of the auth URI. */ 773
774 /// The provider ID of the auth URI.
717 core.String providerId; 775 core.String providerId;
718 /** Whether the user is registered if the identifier is an email. */ 776
777 /// Whether the user is registered if the identifier is an email.
719 core.bool registered; 778 core.bool registered;
720 /** 779
721 * Session ID which should be passed in the following verifyAssertion request. 780 /// Session ID which should be passed in the following verifyAssertion
722 */ 781 /// request.
723 core.String sessionId; 782 core.String sessionId;
724 783
725 CreateAuthUriResponse(); 784 CreateAuthUriResponse();
726 785
727 CreateAuthUriResponse.fromJson(core.Map _json) { 786 CreateAuthUriResponse.fromJson(core.Map _json) {
728 if (_json.containsKey("allProviders")) { 787 if (_json.containsKey("allProviders")) {
729 allProviders = _json["allProviders"]; 788 allProviders = _json["allProviders"];
730 } 789 }
731 if (_json.containsKey("authUri")) { 790 if (_json.containsKey("authUri")) {
732 authUri = _json["authUri"]; 791 authUri = _json["authUri"];
(...skipping 12 matching lines...) Expand all
745 } 804 }
746 if (_json.containsKey("registered")) { 805 if (_json.containsKey("registered")) {
747 registered = _json["registered"]; 806 registered = _json["registered"];
748 } 807 }
749 if (_json.containsKey("sessionId")) { 808 if (_json.containsKey("sessionId")) {
750 sessionId = _json["sessionId"]; 809 sessionId = _json["sessionId"];
751 } 810 }
752 } 811 }
753 812
754 core.Map<core.String, core.Object> toJson() { 813 core.Map<core.String, core.Object> toJson() {
755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 814 final core.Map<core.String, core.Object> _json =
815 new core.Map<core.String, core.Object>();
756 if (allProviders != null) { 816 if (allProviders != null) {
757 _json["allProviders"] = allProviders; 817 _json["allProviders"] = allProviders;
758 } 818 }
759 if (authUri != null) { 819 if (authUri != null) {
760 _json["authUri"] = authUri; 820 _json["authUri"] = authUri;
761 } 821 }
762 if (captchaRequired != null) { 822 if (captchaRequired != null) {
763 _json["captchaRequired"] = captchaRequired; 823 _json["captchaRequired"] = captchaRequired;
764 } 824 }
765 if (forExistingProvider != null) { 825 if (forExistingProvider != null) {
766 _json["forExistingProvider"] = forExistingProvider; 826 _json["forExistingProvider"] = forExistingProvider;
767 } 827 }
768 if (kind != null) { 828 if (kind != null) {
769 _json["kind"] = kind; 829 _json["kind"] = kind;
770 } 830 }
771 if (providerId != null) { 831 if (providerId != null) {
772 _json["providerId"] = providerId; 832 _json["providerId"] = providerId;
773 } 833 }
774 if (registered != null) { 834 if (registered != null) {
775 _json["registered"] = registered; 835 _json["registered"] = registered;
776 } 836 }
777 if (sessionId != null) { 837 if (sessionId != null) {
778 _json["sessionId"] = sessionId; 838 _json["sessionId"] = sessionId;
779 } 839 }
780 return _json; 840 return _json;
781 } 841 }
782 } 842 }
783 843
784 /** Respone of deleting account. */ 844 /// Respone of deleting account.
785 class DeleteAccountResponse { 845 class DeleteAccountResponse {
786 /** The fixed string "identitytoolkit#DeleteAccountResponse". */ 846 /// The fixed string "identitytoolkit#DeleteAccountResponse".
787 core.String kind; 847 core.String kind;
788 848
789 DeleteAccountResponse(); 849 DeleteAccountResponse();
790 850
791 DeleteAccountResponse.fromJson(core.Map _json) { 851 DeleteAccountResponse.fromJson(core.Map _json) {
792 if (_json.containsKey("kind")) { 852 if (_json.containsKey("kind")) {
793 kind = _json["kind"]; 853 kind = _json["kind"];
794 } 854 }
795 } 855 }
796 856
797 core.Map<core.String, core.Object> toJson() { 857 core.Map<core.String, core.Object> toJson() {
798 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 858 final core.Map<core.String, core.Object> _json =
859 new core.Map<core.String, core.Object>();
799 if (kind != null) { 860 if (kind != null) {
800 _json["kind"] = kind; 861 _json["kind"] = kind;
801 } 862 }
802 return _json; 863 return _json;
803 } 864 }
804 } 865 }
805 866
806 /** Response of downloading accounts in batch. */ 867 /// Response of downloading accounts in batch.
807 class DownloadAccountResponse { 868 class DownloadAccountResponse {
808 /** The fixed string "identitytoolkit#DownloadAccountResponse". */ 869 /// The fixed string "identitytoolkit#DownloadAccountResponse".
809 core.String kind; 870 core.String kind;
810 /** 871
811 * The next page token. To be used in a subsequent request to return the next 872 /// The next page token. To be used in a subsequent request to return the
812 * page of results. 873 /// next page of results.
813 */
814 core.String nextPageToken; 874 core.String nextPageToken;
815 /** The user accounts data. */ 875
876 /// The user accounts data.
816 core.List<UserInfo> users; 877 core.List<UserInfo> users;
817 878
818 DownloadAccountResponse(); 879 DownloadAccountResponse();
819 880
820 DownloadAccountResponse.fromJson(core.Map _json) { 881 DownloadAccountResponse.fromJson(core.Map _json) {
821 if (_json.containsKey("kind")) { 882 if (_json.containsKey("kind")) {
822 kind = _json["kind"]; 883 kind = _json["kind"];
823 } 884 }
824 if (_json.containsKey("nextPageToken")) { 885 if (_json.containsKey("nextPageToken")) {
825 nextPageToken = _json["nextPageToken"]; 886 nextPageToken = _json["nextPageToken"];
826 } 887 }
827 if (_json.containsKey("users")) { 888 if (_json.containsKey("users")) {
828 users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList (); 889 users =
890 _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
829 } 891 }
830 } 892 }
831 893
832 core.Map<core.String, core.Object> toJson() { 894 core.Map<core.String, core.Object> toJson() {
833 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 895 final core.Map<core.String, core.Object> _json =
896 new core.Map<core.String, core.Object>();
834 if (kind != null) { 897 if (kind != null) {
835 _json["kind"] = kind; 898 _json["kind"] = kind;
836 } 899 }
837 if (nextPageToken != null) { 900 if (nextPageToken != null) {
838 _json["nextPageToken"] = nextPageToken; 901 _json["nextPageToken"] = nextPageToken;
839 } 902 }
840 if (users != null) { 903 if (users != null) {
841 _json["users"] = users.map((value) => (value).toJson()).toList(); 904 _json["users"] = users.map((value) => (value).toJson()).toList();
842 } 905 }
843 return _json; 906 return _json;
844 } 907 }
845 } 908 }
846 909
847 /** Template for an email template. */ 910 /// Template for an email template.
848 class EmailTemplate { 911 class EmailTemplate {
849 /** Email body. */ 912 /// Email body.
850 core.String body; 913 core.String body;
851 /** Email body format. */ 914
915 /// Email body format.
852 core.String format; 916 core.String format;
853 /** From address of the email. */ 917
918 /// From address of the email.
854 core.String from; 919 core.String from;
855 /** From display name. */ 920
921 /// From display name.
856 core.String fromDisplayName; 922 core.String fromDisplayName;
857 /** Reply-to address. */ 923
924 /// Reply-to address.
858 core.String replyTo; 925 core.String replyTo;
859 /** Subject of the email. */ 926
927 /// Subject of the email.
860 core.String subject; 928 core.String subject;
861 929
862 EmailTemplate(); 930 EmailTemplate();
863 931
864 EmailTemplate.fromJson(core.Map _json) { 932 EmailTemplate.fromJson(core.Map _json) {
865 if (_json.containsKey("body")) { 933 if (_json.containsKey("body")) {
866 body = _json["body"]; 934 body = _json["body"];
867 } 935 }
868 if (_json.containsKey("format")) { 936 if (_json.containsKey("format")) {
869 format = _json["format"]; 937 format = _json["format"];
870 } 938 }
871 if (_json.containsKey("from")) { 939 if (_json.containsKey("from")) {
872 from = _json["from"]; 940 from = _json["from"];
873 } 941 }
874 if (_json.containsKey("fromDisplayName")) { 942 if (_json.containsKey("fromDisplayName")) {
875 fromDisplayName = _json["fromDisplayName"]; 943 fromDisplayName = _json["fromDisplayName"];
876 } 944 }
877 if (_json.containsKey("replyTo")) { 945 if (_json.containsKey("replyTo")) {
878 replyTo = _json["replyTo"]; 946 replyTo = _json["replyTo"];
879 } 947 }
880 if (_json.containsKey("subject")) { 948 if (_json.containsKey("subject")) {
881 subject = _json["subject"]; 949 subject = _json["subject"];
882 } 950 }
883 } 951 }
884 952
885 core.Map<core.String, core.Object> toJson() { 953 core.Map<core.String, core.Object> toJson() {
886 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 954 final core.Map<core.String, core.Object> _json =
955 new core.Map<core.String, core.Object>();
887 if (body != null) { 956 if (body != null) {
888 _json["body"] = body; 957 _json["body"] = body;
889 } 958 }
890 if (format != null) { 959 if (format != null) {
891 _json["format"] = format; 960 _json["format"] = format;
892 } 961 }
893 if (from != null) { 962 if (from != null) {
894 _json["from"] = from; 963 _json["from"] = from;
895 } 964 }
896 if (fromDisplayName != null) { 965 if (fromDisplayName != null) {
897 _json["fromDisplayName"] = fromDisplayName; 966 _json["fromDisplayName"] = fromDisplayName;
898 } 967 }
899 if (replyTo != null) { 968 if (replyTo != null) {
900 _json["replyTo"] = replyTo; 969 _json["replyTo"] = replyTo;
901 } 970 }
902 if (subject != null) { 971 if (subject != null) {
903 _json["subject"] = subject; 972 _json["subject"] = subject;
904 } 973 }
905 return _json; 974 return _json;
906 } 975 }
907 } 976 }
908 977
909 /** Response of getting account information. */ 978 /// Response of getting account information.
910 class GetAccountInfoResponse { 979 class GetAccountInfoResponse {
911 /** The fixed string "identitytoolkit#GetAccountInfoResponse". */ 980 /// The fixed string "identitytoolkit#GetAccountInfoResponse".
912 core.String kind; 981 core.String kind;
913 /** The info of the users. */ 982
983 /// The info of the users.
914 core.List<UserInfo> users; 984 core.List<UserInfo> users;
915 985
916 GetAccountInfoResponse(); 986 GetAccountInfoResponse();
917 987
918 GetAccountInfoResponse.fromJson(core.Map _json) { 988 GetAccountInfoResponse.fromJson(core.Map _json) {
919 if (_json.containsKey("kind")) { 989 if (_json.containsKey("kind")) {
920 kind = _json["kind"]; 990 kind = _json["kind"];
921 } 991 }
922 if (_json.containsKey("users")) { 992 if (_json.containsKey("users")) {
923 users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList (); 993 users =
994 _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
924 } 995 }
925 } 996 }
926 997
927 core.Map<core.String, core.Object> toJson() { 998 core.Map<core.String, core.Object> toJson() {
928 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 999 final core.Map<core.String, core.Object> _json =
1000 new core.Map<core.String, core.Object>();
929 if (kind != null) { 1001 if (kind != null) {
930 _json["kind"] = kind; 1002 _json["kind"] = kind;
931 } 1003 }
932 if (users != null) { 1004 if (users != null) {
933 _json["users"] = users.map((value) => (value).toJson()).toList(); 1005 _json["users"] = users.map((value) => (value).toJson()).toList();
934 } 1006 }
935 return _json; 1007 return _json;
936 } 1008 }
937 } 1009 }
938 1010
939 /** 1011 /// Response of getting a code for user confirmation (reset password, change
940 * Response of getting a code for user confirmation (reset password, change 1012 /// email etc.).
941 * email etc.).
942 */
943 class GetOobConfirmationCodeResponse { 1013 class GetOobConfirmationCodeResponse {
944 /** The email address that the email is sent to. */ 1014 /// The email address that the email is sent to.
945 core.String email; 1015 core.String email;
946 /** The fixed string "identitytoolkit#GetOobConfirmationCodeResponse". */ 1016
1017 /// The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
947 core.String kind; 1018 core.String kind;
948 /** The code to be send to the user. */ 1019
1020 /// The code to be send to the user.
949 core.String oobCode; 1021 core.String oobCode;
950 1022
951 GetOobConfirmationCodeResponse(); 1023 GetOobConfirmationCodeResponse();
952 1024
953 GetOobConfirmationCodeResponse.fromJson(core.Map _json) { 1025 GetOobConfirmationCodeResponse.fromJson(core.Map _json) {
954 if (_json.containsKey("email")) { 1026 if (_json.containsKey("email")) {
955 email = _json["email"]; 1027 email = _json["email"];
956 } 1028 }
957 if (_json.containsKey("kind")) { 1029 if (_json.containsKey("kind")) {
958 kind = _json["kind"]; 1030 kind = _json["kind"];
959 } 1031 }
960 if (_json.containsKey("oobCode")) { 1032 if (_json.containsKey("oobCode")) {
961 oobCode = _json["oobCode"]; 1033 oobCode = _json["oobCode"];
962 } 1034 }
963 } 1035 }
964 1036
965 core.Map<core.String, core.Object> toJson() { 1037 core.Map<core.String, core.Object> toJson() {
966 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1038 final core.Map<core.String, core.Object> _json =
1039 new core.Map<core.String, core.Object>();
967 if (email != null) { 1040 if (email != null) {
968 _json["email"] = email; 1041 _json["email"] = email;
969 } 1042 }
970 if (kind != null) { 1043 if (kind != null) {
971 _json["kind"] = kind; 1044 _json["kind"] = kind;
972 } 1045 }
973 if (oobCode != null) { 1046 if (oobCode != null) {
974 _json["oobCode"] = oobCode; 1047 _json["oobCode"] = oobCode;
975 } 1048 }
976 return _json; 1049 return _json;
977 } 1050 }
978 } 1051 }
979 1052
980 /** Response of getting recaptcha param. */ 1053 /// Response of getting recaptcha param.
981 class GetRecaptchaParamResponse { 1054 class GetRecaptchaParamResponse {
982 /** The fixed string "identitytoolkit#GetRecaptchaParamResponse". */ 1055 /// The fixed string "identitytoolkit#GetRecaptchaParamResponse".
983 core.String kind; 1056 core.String kind;
984 /** Site key registered at recaptcha. */ 1057
1058 /// Site key registered at recaptcha.
985 core.String recaptchaSiteKey; 1059 core.String recaptchaSiteKey;
986 /** 1060
987 * The stoken field for the recaptcha widget, used to request captcha 1061 /// The stoken field for the recaptcha widget, used to request captcha
988 * challenge. 1062 /// challenge.
989 */
990 core.String recaptchaStoken; 1063 core.String recaptchaStoken;
991 1064
992 GetRecaptchaParamResponse(); 1065 GetRecaptchaParamResponse();
993 1066
994 GetRecaptchaParamResponse.fromJson(core.Map _json) { 1067 GetRecaptchaParamResponse.fromJson(core.Map _json) {
995 if (_json.containsKey("kind")) { 1068 if (_json.containsKey("kind")) {
996 kind = _json["kind"]; 1069 kind = _json["kind"];
997 } 1070 }
998 if (_json.containsKey("recaptchaSiteKey")) { 1071 if (_json.containsKey("recaptchaSiteKey")) {
999 recaptchaSiteKey = _json["recaptchaSiteKey"]; 1072 recaptchaSiteKey = _json["recaptchaSiteKey"];
1000 } 1073 }
1001 if (_json.containsKey("recaptchaStoken")) { 1074 if (_json.containsKey("recaptchaStoken")) {
1002 recaptchaStoken = _json["recaptchaStoken"]; 1075 recaptchaStoken = _json["recaptchaStoken"];
1003 } 1076 }
1004 } 1077 }
1005 1078
1006 core.Map<core.String, core.Object> toJson() { 1079 core.Map<core.String, core.Object> toJson() {
1007 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1080 final core.Map<core.String, core.Object> _json =
1081 new core.Map<core.String, core.Object>();
1008 if (kind != null) { 1082 if (kind != null) {
1009 _json["kind"] = kind; 1083 _json["kind"] = kind;
1010 } 1084 }
1011 if (recaptchaSiteKey != null) { 1085 if (recaptchaSiteKey != null) {
1012 _json["recaptchaSiteKey"] = recaptchaSiteKey; 1086 _json["recaptchaSiteKey"] = recaptchaSiteKey;
1013 } 1087 }
1014 if (recaptchaStoken != null) { 1088 if (recaptchaStoken != null) {
1015 _json["recaptchaStoken"] = recaptchaStoken; 1089 _json["recaptchaStoken"] = recaptchaStoken;
1016 } 1090 }
1017 return _json; 1091 return _json;
1018 } 1092 }
1019 } 1093 }
1020 1094
1021 /** Request to get the IDP authentication URL. */ 1095 /// Request to get the IDP authentication URL.
1022 class IdentitytoolkitRelyingpartyCreateAuthUriRequest { 1096 class IdentitytoolkitRelyingpartyCreateAuthUriRequest {
1023 /** 1097 /// The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android,
1024 * The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, 1098 /// BUNDLE_ID for iOS.
1025 * BUNDLE_ID for iOS.
1026 */
1027 core.String appId; 1099 core.String appId;
1028 /** 1100
1029 * Explicitly specify the auth flow type. Currently only support "CODE_FLOW" 1101 /// Explicitly specify the auth flow type. Currently only support "CODE_FLOW"
1030 * type. The field is only used for Google provider. 1102 /// type. The field is only used for Google provider.
1031 */
1032 core.String authFlowType; 1103 core.String authFlowType;
1033 /** The relying party OAuth client ID. */ 1104
1105 /// The relying party OAuth client ID.
1034 core.String clientId; 1106 core.String clientId;
1035 /** 1107
1036 * The opaque value used by the client to maintain context info between the 1108 /// The opaque value used by the client to maintain context info between the
1037 * authentication request and the IDP callback. 1109 /// authentication request and the IDP callback.
1038 */
1039 core.String context; 1110 core.String context;
1040 /** 1111
1041 * The URI to which the IDP redirects the user after the federated login flow. 1112 /// The URI to which the IDP redirects the user after the federated login
1042 */ 1113 /// flow.
1043 core.String continueUri; 1114 core.String continueUri;
1044 /** 1115
1045 * The query parameter that client can customize by themselves in auth url. 1116 /// The query parameter that client can customize by themselves in auth url.
1046 * The following parameters are reserved for server so that they cannot be 1117 /// The following parameters are reserved for server so that they cannot be
1047 * customized by clients: client_id, response_type, scope, redirect_uri, 1118 /// customized by clients: client_id, response_type, scope, redirect_uri,
1048 * state, oauth_token. 1119 /// state, oauth_token.
1049 */
1050 core.Map<core.String, core.String> customParameter; 1120 core.Map<core.String, core.String> customParameter;
1051 /** 1121
1052 * The hosted domain to restrict sign-in to accounts at that domain for Google 1122 /// The hosted domain to restrict sign-in to accounts at that domain for
1053 * Apps hosted accounts. 1123 /// Google Apps hosted accounts.
1054 */
1055 core.String hostedDomain; 1124 core.String hostedDomain;
1056 /** The email or federated ID of the user. */ 1125
1126 /// The email or federated ID of the user.
1057 core.String identifier; 1127 core.String identifier;
1058 /** The developer's consumer key for OpenId OAuth Extension */ 1128
1129 /// The developer's consumer key for OpenId OAuth Extension
1059 core.String oauthConsumerKey; 1130 core.String oauthConsumerKey;
1060 /** 1131
1061 * Additional oauth scopes, beyond the basid user profile, that the user would 1132 /// Additional oauth scopes, beyond the basid user profile, that the user
1062 * be prompted to grant 1133 /// would be prompted to grant
1063 */
1064 core.String oauthScope; 1134 core.String oauthScope;
1065 /** 1135
1066 * Optional realm for OpenID protocol. The sub string "scheme://domain:port" 1136 /// Optional realm for OpenID protocol. The sub string "scheme://domain:port"
1067 * of the param "continueUri" is used if this is not set. 1137 /// of the param "continueUri" is used if this is not set.
1068 */
1069 core.String openidRealm; 1138 core.String openidRealm;
1070 /** The native app package for OTA installation. */ 1139
1140 /// The native app package for OTA installation.
1071 core.String otaApp; 1141 core.String otaApp;
1072 /** 1142
1073 * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, 1143 /// The IdP ID. For white listed IdPs it's a short domain name e.g.
1074 * aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP 1144 /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
1075 * identifier. 1145 /// the OP identifier.
1076 */
1077 core.String providerId; 1146 core.String providerId;
1078 /** The session_id passed by client. */ 1147
1148 /// The session_id passed by client.
1079 core.String sessionId; 1149 core.String sessionId;
1080 1150
1081 IdentitytoolkitRelyingpartyCreateAuthUriRequest(); 1151 IdentitytoolkitRelyingpartyCreateAuthUriRequest();
1082 1152
1083 IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson(core.Map _json) { 1153 IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson(core.Map _json) {
1084 if (_json.containsKey("appId")) { 1154 if (_json.containsKey("appId")) {
1085 appId = _json["appId"]; 1155 appId = _json["appId"];
1086 } 1156 }
1087 if (_json.containsKey("authFlowType")) { 1157 if (_json.containsKey("authFlowType")) {
1088 authFlowType = _json["authFlowType"]; 1158 authFlowType = _json["authFlowType"];
(...skipping 30 matching lines...) Expand all
1119 } 1189 }
1120 if (_json.containsKey("providerId")) { 1190 if (_json.containsKey("providerId")) {
1121 providerId = _json["providerId"]; 1191 providerId = _json["providerId"];
1122 } 1192 }
1123 if (_json.containsKey("sessionId")) { 1193 if (_json.containsKey("sessionId")) {
1124 sessionId = _json["sessionId"]; 1194 sessionId = _json["sessionId"];
1125 } 1195 }
1126 } 1196 }
1127 1197
1128 core.Map<core.String, core.Object> toJson() { 1198 core.Map<core.String, core.Object> toJson() {
1129 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1199 final core.Map<core.String, core.Object> _json =
1200 new core.Map<core.String, core.Object>();
1130 if (appId != null) { 1201 if (appId != null) {
1131 _json["appId"] = appId; 1202 _json["appId"] = appId;
1132 } 1203 }
1133 if (authFlowType != null) { 1204 if (authFlowType != null) {
1134 _json["authFlowType"] = authFlowType; 1205 _json["authFlowType"] = authFlowType;
1135 } 1206 }
1136 if (clientId != null) { 1207 if (clientId != null) {
1137 _json["clientId"] = clientId; 1208 _json["clientId"] = clientId;
1138 } 1209 }
1139 if (context != null) { 1210 if (context != null) {
(...skipping 26 matching lines...) Expand all
1166 if (providerId != null) { 1237 if (providerId != null) {
1167 _json["providerId"] = providerId; 1238 _json["providerId"] = providerId;
1168 } 1239 }
1169 if (sessionId != null) { 1240 if (sessionId != null) {
1170 _json["sessionId"] = sessionId; 1241 _json["sessionId"] = sessionId;
1171 } 1242 }
1172 return _json; 1243 return _json;
1173 } 1244 }
1174 } 1245 }
1175 1246
1176 /** Request to delete account. */ 1247 /// Request to delete account.
1177 class IdentitytoolkitRelyingpartyDeleteAccountRequest { 1248 class IdentitytoolkitRelyingpartyDeleteAccountRequest {
1178 /** 1249 /// GCP project number of the requesting delegated app. Currently only
1179 * GCP project number of the requesting delegated app. Currently only intended 1250 /// intended for Firebase V1 migration.
1180 * for Firebase V1 migration.
1181 */
1182 core.String delegatedProjectNumber; 1251 core.String delegatedProjectNumber;
1183 /** The GITKit token or STS id token of the authenticated user. */ 1252
1253 /// The GITKit token or STS id token of the authenticated user.
1184 core.String idToken; 1254 core.String idToken;
1185 /** The local ID of the user. */ 1255
1256 /// The local ID of the user.
1186 core.String localId; 1257 core.String localId;
1187 1258
1188 IdentitytoolkitRelyingpartyDeleteAccountRequest(); 1259 IdentitytoolkitRelyingpartyDeleteAccountRequest();
1189 1260
1190 IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(core.Map _json) { 1261 IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(core.Map _json) {
1191 if (_json.containsKey("delegatedProjectNumber")) { 1262 if (_json.containsKey("delegatedProjectNumber")) {
1192 delegatedProjectNumber = _json["delegatedProjectNumber"]; 1263 delegatedProjectNumber = _json["delegatedProjectNumber"];
1193 } 1264 }
1194 if (_json.containsKey("idToken")) { 1265 if (_json.containsKey("idToken")) {
1195 idToken = _json["idToken"]; 1266 idToken = _json["idToken"];
1196 } 1267 }
1197 if (_json.containsKey("localId")) { 1268 if (_json.containsKey("localId")) {
1198 localId = _json["localId"]; 1269 localId = _json["localId"];
1199 } 1270 }
1200 } 1271 }
1201 1272
1202 core.Map<core.String, core.Object> toJson() { 1273 core.Map<core.String, core.Object> toJson() {
1203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1274 final core.Map<core.String, core.Object> _json =
1275 new core.Map<core.String, core.Object>();
1204 if (delegatedProjectNumber != null) { 1276 if (delegatedProjectNumber != null) {
1205 _json["delegatedProjectNumber"] = delegatedProjectNumber; 1277 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1206 } 1278 }
1207 if (idToken != null) { 1279 if (idToken != null) {
1208 _json["idToken"] = idToken; 1280 _json["idToken"] = idToken;
1209 } 1281 }
1210 if (localId != null) { 1282 if (localId != null) {
1211 _json["localId"] = localId; 1283 _json["localId"] = localId;
1212 } 1284 }
1213 return _json; 1285 return _json;
1214 } 1286 }
1215 } 1287 }
1216 1288
1217 /** Request to download user account in batch. */ 1289 /// Request to download user account in batch.
1218 class IdentitytoolkitRelyingpartyDownloadAccountRequest { 1290 class IdentitytoolkitRelyingpartyDownloadAccountRequest {
1219 /** 1291 /// GCP project number of the requesting delegated app. Currently only
1220 * GCP project number of the requesting delegated app. Currently only intended 1292 /// intended for Firebase V1 migration.
1221 * for Firebase V1 migration.
1222 */
1223 core.String delegatedProjectNumber; 1293 core.String delegatedProjectNumber;
1224 /** The max number of results to return in the response. */ 1294
1295 /// The max number of results to return in the response.
1225 core.int maxResults; 1296 core.int maxResults;
1226 /** 1297
1227 * The token for the next page. This should be taken from the previous 1298 /// The token for the next page. This should be taken from the previous
1228 * response. 1299 /// response.
1229 */
1230 core.String nextPageToken; 1300 core.String nextPageToken;
1231 /** 1301
1232 * Specify which project (field value is actually project id) to operate. Only 1302 /// Specify which project (field value is actually project id) to operate.
1233 * used when provided credential. 1303 /// Only used when provided credential.
1234 */
1235 core.String targetProjectId; 1304 core.String targetProjectId;
1236 1305
1237 IdentitytoolkitRelyingpartyDownloadAccountRequest(); 1306 IdentitytoolkitRelyingpartyDownloadAccountRequest();
1238 1307
1239 IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson(core.Map _json) { 1308 IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson(core.Map _json) {
1240 if (_json.containsKey("delegatedProjectNumber")) { 1309 if (_json.containsKey("delegatedProjectNumber")) {
1241 delegatedProjectNumber = _json["delegatedProjectNumber"]; 1310 delegatedProjectNumber = _json["delegatedProjectNumber"];
1242 } 1311 }
1243 if (_json.containsKey("maxResults")) { 1312 if (_json.containsKey("maxResults")) {
1244 maxResults = _json["maxResults"]; 1313 maxResults = _json["maxResults"];
1245 } 1314 }
1246 if (_json.containsKey("nextPageToken")) { 1315 if (_json.containsKey("nextPageToken")) {
1247 nextPageToken = _json["nextPageToken"]; 1316 nextPageToken = _json["nextPageToken"];
1248 } 1317 }
1249 if (_json.containsKey("targetProjectId")) { 1318 if (_json.containsKey("targetProjectId")) {
1250 targetProjectId = _json["targetProjectId"]; 1319 targetProjectId = _json["targetProjectId"];
1251 } 1320 }
1252 } 1321 }
1253 1322
1254 core.Map<core.String, core.Object> toJson() { 1323 core.Map<core.String, core.Object> toJson() {
1255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1324 final core.Map<core.String, core.Object> _json =
1325 new core.Map<core.String, core.Object>();
1256 if (delegatedProjectNumber != null) { 1326 if (delegatedProjectNumber != null) {
1257 _json["delegatedProjectNumber"] = delegatedProjectNumber; 1327 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1258 } 1328 }
1259 if (maxResults != null) { 1329 if (maxResults != null) {
1260 _json["maxResults"] = maxResults; 1330 _json["maxResults"] = maxResults;
1261 } 1331 }
1262 if (nextPageToken != null) { 1332 if (nextPageToken != null) {
1263 _json["nextPageToken"] = nextPageToken; 1333 _json["nextPageToken"] = nextPageToken;
1264 } 1334 }
1265 if (targetProjectId != null) { 1335 if (targetProjectId != null) {
1266 _json["targetProjectId"] = targetProjectId; 1336 _json["targetProjectId"] = targetProjectId;
1267 } 1337 }
1268 return _json; 1338 return _json;
1269 } 1339 }
1270 } 1340 }
1271 1341
1272 /** Request to get the account information. */ 1342 /// Request to get the account information.
1273 class IdentitytoolkitRelyingpartyGetAccountInfoRequest { 1343 class IdentitytoolkitRelyingpartyGetAccountInfoRequest {
1274 /** 1344 /// GCP project number of the requesting delegated app. Currently only
1275 * GCP project number of the requesting delegated app. Currently only intended 1345 /// intended for Firebase V1 migration.
1276 * for Firebase V1 migration.
1277 */
1278 core.String delegatedProjectNumber; 1346 core.String delegatedProjectNumber;
1279 /** The list of emails of the users to inquiry. */ 1347
1348 /// The list of emails of the users to inquiry.
1280 core.List<core.String> email; 1349 core.List<core.String> email;
1281 /** The GITKit token of the authenticated user. */ 1350
1351 /// The GITKit token of the authenticated user.
1282 core.String idToken; 1352 core.String idToken;
1283 /** The list of local ID's of the users to inquiry. */ 1353
1354 /// The list of local ID's of the users to inquiry.
1284 core.List<core.String> localId; 1355 core.List<core.String> localId;
1285 /** Privileged caller can query users by specified phone number. */ 1356
1357 /// Privileged caller can query users by specified phone number.
1286 core.List<core.String> phoneNumber; 1358 core.List<core.String> phoneNumber;
1287 1359
1288 IdentitytoolkitRelyingpartyGetAccountInfoRequest(); 1360 IdentitytoolkitRelyingpartyGetAccountInfoRequest();
1289 1361
1290 IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson(core.Map _json) { 1362 IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson(core.Map _json) {
1291 if (_json.containsKey("delegatedProjectNumber")) { 1363 if (_json.containsKey("delegatedProjectNumber")) {
1292 delegatedProjectNumber = _json["delegatedProjectNumber"]; 1364 delegatedProjectNumber = _json["delegatedProjectNumber"];
1293 } 1365 }
1294 if (_json.containsKey("email")) { 1366 if (_json.containsKey("email")) {
1295 email = _json["email"]; 1367 email = _json["email"];
1296 } 1368 }
1297 if (_json.containsKey("idToken")) { 1369 if (_json.containsKey("idToken")) {
1298 idToken = _json["idToken"]; 1370 idToken = _json["idToken"];
1299 } 1371 }
1300 if (_json.containsKey("localId")) { 1372 if (_json.containsKey("localId")) {
1301 localId = _json["localId"]; 1373 localId = _json["localId"];
1302 } 1374 }
1303 if (_json.containsKey("phoneNumber")) { 1375 if (_json.containsKey("phoneNumber")) {
1304 phoneNumber = _json["phoneNumber"]; 1376 phoneNumber = _json["phoneNumber"];
1305 } 1377 }
1306 } 1378 }
1307 1379
1308 core.Map<core.String, core.Object> toJson() { 1380 core.Map<core.String, core.Object> toJson() {
1309 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1381 final core.Map<core.String, core.Object> _json =
1382 new core.Map<core.String, core.Object>();
1310 if (delegatedProjectNumber != null) { 1383 if (delegatedProjectNumber != null) {
1311 _json["delegatedProjectNumber"] = delegatedProjectNumber; 1384 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1312 } 1385 }
1313 if (email != null) { 1386 if (email != null) {
1314 _json["email"] = email; 1387 _json["email"] = email;
1315 } 1388 }
1316 if (idToken != null) { 1389 if (idToken != null) {
1317 _json["idToken"] = idToken; 1390 _json["idToken"] = idToken;
1318 } 1391 }
1319 if (localId != null) { 1392 if (localId != null) {
1320 _json["localId"] = localId; 1393 _json["localId"] = localId;
1321 } 1394 }
1322 if (phoneNumber != null) { 1395 if (phoneNumber != null) {
1323 _json["phoneNumber"] = phoneNumber; 1396 _json["phoneNumber"] = phoneNumber;
1324 } 1397 }
1325 return _json; 1398 return _json;
1326 } 1399 }
1327 } 1400 }
1328 1401
1329 /** Response of getting the project configuration. */ 1402 /// Response of getting the project configuration.
1330 class IdentitytoolkitRelyingpartyGetProjectConfigResponse { 1403 class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
1331 /** Whether to allow password user sign in or sign up. */ 1404 /// Whether to allow password user sign in or sign up.
1332 core.bool allowPasswordUser; 1405 core.bool allowPasswordUser;
1333 /** Browser API key, needed when making http request to Apiary. */ 1406
1407 /// Browser API key, needed when making http request to Apiary.
1334 core.String apiKey; 1408 core.String apiKey;
1335 /** Authorized domains. */ 1409
1410 /// Authorized domains.
1336 core.List<core.String> authorizedDomains; 1411 core.List<core.String> authorizedDomains;
1337 /** Change email template. */ 1412
1413 /// Change email template.
1338 EmailTemplate changeEmailTemplate; 1414 EmailTemplate changeEmailTemplate;
1339 core.String dynamicLinksDomain; 1415 core.String dynamicLinksDomain;
1340 /** Whether anonymous user is enabled. */ 1416
1417 /// Whether anonymous user is enabled.
1341 core.bool enableAnonymousUser; 1418 core.bool enableAnonymousUser;
1342 /** OAuth2 provider configuration. */ 1419
1420 /// OAuth2 provider configuration.
1343 core.List<IdpConfig> idpConfig; 1421 core.List<IdpConfig> idpConfig;
1344 /** Legacy reset password email template. */ 1422
1423 /// Legacy reset password email template.
1345 EmailTemplate legacyResetPasswordTemplate; 1424 EmailTemplate legacyResetPasswordTemplate;
1346 /** Project ID of the relying party. */ 1425
1426 /// Project ID of the relying party.
1347 core.String projectId; 1427 core.String projectId;
1348 /** Reset password email template. */ 1428
1429 /// Reset password email template.
1349 EmailTemplate resetPasswordTemplate; 1430 EmailTemplate resetPasswordTemplate;
1350 /** Whether to use email sending provided by Firebear. */ 1431
1432 /// Whether to use email sending provided by Firebear.
1351 core.bool useEmailSending; 1433 core.bool useEmailSending;
1352 /** Verify email template. */ 1434
1435 /// Verify email template.
1353 EmailTemplate verifyEmailTemplate; 1436 EmailTemplate verifyEmailTemplate;
1354 1437
1355 IdentitytoolkitRelyingpartyGetProjectConfigResponse(); 1438 IdentitytoolkitRelyingpartyGetProjectConfigResponse();
1356 1439
1357 IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(core.Map _json) { 1440 IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson(core.Map _json) {
1358 if (_json.containsKey("allowPasswordUser")) { 1441 if (_json.containsKey("allowPasswordUser")) {
1359 allowPasswordUser = _json["allowPasswordUser"]; 1442 allowPasswordUser = _json["allowPasswordUser"];
1360 } 1443 }
1361 if (_json.containsKey("apiKey")) { 1444 if (_json.containsKey("apiKey")) {
1362 apiKey = _json["apiKey"]; 1445 apiKey = _json["apiKey"];
1363 } 1446 }
1364 if (_json.containsKey("authorizedDomains")) { 1447 if (_json.containsKey("authorizedDomains")) {
1365 authorizedDomains = _json["authorizedDomains"]; 1448 authorizedDomains = _json["authorizedDomains"];
1366 } 1449 }
1367 if (_json.containsKey("changeEmailTemplate")) { 1450 if (_json.containsKey("changeEmailTemplate")) {
1368 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat e"]); 1451 changeEmailTemplate =
1452 new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
1369 } 1453 }
1370 if (_json.containsKey("dynamicLinksDomain")) { 1454 if (_json.containsKey("dynamicLinksDomain")) {
1371 dynamicLinksDomain = _json["dynamicLinksDomain"]; 1455 dynamicLinksDomain = _json["dynamicLinksDomain"];
1372 } 1456 }
1373 if (_json.containsKey("enableAnonymousUser")) { 1457 if (_json.containsKey("enableAnonymousUser")) {
1374 enableAnonymousUser = _json["enableAnonymousUser"]; 1458 enableAnonymousUser = _json["enableAnonymousUser"];
1375 } 1459 }
1376 if (_json.containsKey("idpConfig")) { 1460 if (_json.containsKey("idpConfig")) {
1377 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value )).toList(); 1461 idpConfig = _json["idpConfig"]
1462 .map((value) => new IdpConfig.fromJson(value))
1463 .toList();
1378 } 1464 }
1379 if (_json.containsKey("legacyResetPasswordTemplate")) { 1465 if (_json.containsKey("legacyResetPasswordTemplate")) {
1380 legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyRese tPasswordTemplate"]); 1466 legacyResetPasswordTemplate =
1467 new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
1381 } 1468 }
1382 if (_json.containsKey("projectId")) { 1469 if (_json.containsKey("projectId")) {
1383 projectId = _json["projectId"]; 1470 projectId = _json["projectId"];
1384 } 1471 }
1385 if (_json.containsKey("resetPasswordTemplate")) { 1472 if (_json.containsKey("resetPasswordTemplate")) {
1386 resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTem plate"]); 1473 resetPasswordTemplate =
1474 new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
1387 } 1475 }
1388 if (_json.containsKey("useEmailSending")) { 1476 if (_json.containsKey("useEmailSending")) {
1389 useEmailSending = _json["useEmailSending"]; 1477 useEmailSending = _json["useEmailSending"];
1390 } 1478 }
1391 if (_json.containsKey("verifyEmailTemplate")) { 1479 if (_json.containsKey("verifyEmailTemplate")) {
1392 verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplat e"]); 1480 verifyEmailTemplate =
1481 new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
1393 } 1482 }
1394 } 1483 }
1395 1484
1396 core.Map<core.String, core.Object> toJson() { 1485 core.Map<core.String, core.Object> toJson() {
1397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1486 final core.Map<core.String, core.Object> _json =
1487 new core.Map<core.String, core.Object>();
1398 if (allowPasswordUser != null) { 1488 if (allowPasswordUser != null) {
1399 _json["allowPasswordUser"] = allowPasswordUser; 1489 _json["allowPasswordUser"] = allowPasswordUser;
1400 } 1490 }
1401 if (apiKey != null) { 1491 if (apiKey != null) {
1402 _json["apiKey"] = apiKey; 1492 _json["apiKey"] = apiKey;
1403 } 1493 }
1404 if (authorizedDomains != null) { 1494 if (authorizedDomains != null) {
1405 _json["authorizedDomains"] = authorizedDomains; 1495 _json["authorizedDomains"] = authorizedDomains;
1406 } 1496 }
1407 if (changeEmailTemplate != null) { 1497 if (changeEmailTemplate != null) {
1408 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); 1498 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson();
1409 } 1499 }
1410 if (dynamicLinksDomain != null) { 1500 if (dynamicLinksDomain != null) {
1411 _json["dynamicLinksDomain"] = dynamicLinksDomain; 1501 _json["dynamicLinksDomain"] = dynamicLinksDomain;
1412 } 1502 }
1413 if (enableAnonymousUser != null) { 1503 if (enableAnonymousUser != null) {
1414 _json["enableAnonymousUser"] = enableAnonymousUser; 1504 _json["enableAnonymousUser"] = enableAnonymousUser;
1415 } 1505 }
1416 if (idpConfig != null) { 1506 if (idpConfig != null) {
1417 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); 1507 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList();
1418 } 1508 }
1419 if (legacyResetPasswordTemplate != null) { 1509 if (legacyResetPasswordTemplate != null) {
1420 _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJso n(); 1510 _json["legacyResetPasswordTemplate"] =
1511 (legacyResetPasswordTemplate).toJson();
1421 } 1512 }
1422 if (projectId != null) { 1513 if (projectId != null) {
1423 _json["projectId"] = projectId; 1514 _json["projectId"] = projectId;
1424 } 1515 }
1425 if (resetPasswordTemplate != null) { 1516 if (resetPasswordTemplate != null) {
1426 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson(); 1517 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson();
1427 } 1518 }
1428 if (useEmailSending != null) { 1519 if (useEmailSending != null) {
1429 _json["useEmailSending"] = useEmailSending; 1520 _json["useEmailSending"] = useEmailSending;
1430 } 1521 }
1431 if (verifyEmailTemplate != null) { 1522 if (verifyEmailTemplate != null) {
1432 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson(); 1523 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson();
1433 } 1524 }
1434 return _json; 1525 return _json;
1435 } 1526 }
1436 } 1527 }
1437 1528
1438 /** Respone of getting public keys. */ 1529 /// Respone of getting public keys.
1439 class IdentitytoolkitRelyingpartyGetPublicKeysResponse 1530 class IdentitytoolkitRelyingpartyGetPublicKeysResponse
1440 extends collection.MapBase<core.String, core.String> { 1531 extends collection.MapBase<core.String, core.String> {
1441 final core.Map _innerMap = {}; 1532 final core.Map _innerMap = {};
1442 1533
1443 IdentitytoolkitRelyingpartyGetPublicKeysResponse(); 1534 IdentitytoolkitRelyingpartyGetPublicKeysResponse();
1444 1535
1445 IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson(core.Map _json) { 1536 IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson(core.Map _json) {
1446 _json.forEach((core.String key, value) { 1537 _json.forEach((core.String key, value) {
1447 this[key] = value; 1538 this[key] = value;
1448 }); 1539 });
1449 } 1540 }
1450 1541
1451 core.Map<core.String, core.String> toJson() { 1542 core.Map<core.String, core.String> toJson() {
1452 final core.Map<core.String, core.String> _json = <core.String, core.String>{ }; 1543 final core.Map<core.String, core.String> _json =
1544 <core.String, core.String>{};
1453 this.forEach((core.String key, value) { 1545 this.forEach((core.String key, value) {
1454 _json[key] = value; 1546 _json[key] = value;
1455 }); 1547 });
1456 return _json; 1548 return _json;
1457 } 1549 }
1458 1550
1459 core.String operator [](core.Object key) 1551 core.String operator [](core.Object key) => _innerMap[key];
1460 => _innerMap[key];
1461 1552
1462 operator []=(core.String key, core.String value) { 1553 operator []=(core.String key, core.String value) {
1463 _innerMap[key] = value; 1554 _innerMap[key] = value;
1464 } 1555 }
1465 1556
1466 void clear() { 1557 void clear() {
1467 _innerMap.clear(); 1558 _innerMap.clear();
1468 } 1559 }
1469 1560
1470 core.Iterable<core.String> get keys => _innerMap.keys; 1561 core.Iterable<core.String> get keys => _innerMap.keys;
1471 1562
1472 core.String remove(core.Object key) => _innerMap.remove(key); 1563 core.String remove(core.Object key) => _innerMap.remove(key);
1473 } 1564 }
1474 1565
1475 /** Request to reset the password. */ 1566 /// Request to reset the password.
1476 class IdentitytoolkitRelyingpartyResetPasswordRequest { 1567 class IdentitytoolkitRelyingpartyResetPasswordRequest {
1477 /** The email address of the user. */ 1568 /// The email address of the user.
1478 core.String email; 1569 core.String email;
1479 /** The new password inputted by the user. */ 1570
1571 /// The new password inputted by the user.
1480 core.String newPassword; 1572 core.String newPassword;
1481 /** The old password inputted by the user. */ 1573
1574 /// The old password inputted by the user.
1482 core.String oldPassword; 1575 core.String oldPassword;
1483 /** The confirmation code. */ 1576
1577 /// The confirmation code.
1484 core.String oobCode; 1578 core.String oobCode;
1485 1579
1486 IdentitytoolkitRelyingpartyResetPasswordRequest(); 1580 IdentitytoolkitRelyingpartyResetPasswordRequest();
1487 1581
1488 IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson(core.Map _json) { 1582 IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson(core.Map _json) {
1489 if (_json.containsKey("email")) { 1583 if (_json.containsKey("email")) {
1490 email = _json["email"]; 1584 email = _json["email"];
1491 } 1585 }
1492 if (_json.containsKey("newPassword")) { 1586 if (_json.containsKey("newPassword")) {
1493 newPassword = _json["newPassword"]; 1587 newPassword = _json["newPassword"];
1494 } 1588 }
1495 if (_json.containsKey("oldPassword")) { 1589 if (_json.containsKey("oldPassword")) {
1496 oldPassword = _json["oldPassword"]; 1590 oldPassword = _json["oldPassword"];
1497 } 1591 }
1498 if (_json.containsKey("oobCode")) { 1592 if (_json.containsKey("oobCode")) {
1499 oobCode = _json["oobCode"]; 1593 oobCode = _json["oobCode"];
1500 } 1594 }
1501 } 1595 }
1502 1596
1503 core.Map<core.String, core.Object> toJson() { 1597 core.Map<core.String, core.Object> toJson() {
1504 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1598 final core.Map<core.String, core.Object> _json =
1599 new core.Map<core.String, core.Object>();
1505 if (email != null) { 1600 if (email != null) {
1506 _json["email"] = email; 1601 _json["email"] = email;
1507 } 1602 }
1508 if (newPassword != null) { 1603 if (newPassword != null) {
1509 _json["newPassword"] = newPassword; 1604 _json["newPassword"] = newPassword;
1510 } 1605 }
1511 if (oldPassword != null) { 1606 if (oldPassword != null) {
1512 _json["oldPassword"] = oldPassword; 1607 _json["oldPassword"] = oldPassword;
1513 } 1608 }
1514 if (oobCode != null) { 1609 if (oobCode != null) {
1515 _json["oobCode"] = oobCode; 1610 _json["oobCode"] = oobCode;
1516 } 1611 }
1517 return _json; 1612 return _json;
1518 } 1613 }
1519 } 1614 }
1520 1615
1521 /** Request to set the account information. */ 1616 /// Request for Identitytoolkit-SendVerificationCode
1617 class IdentitytoolkitRelyingpartySendVerificationCodeRequest {
1618 /// Receipt of successful app token validation with APNS.
1619 core.String iosReceipt;
1620
1621 /// Secret delivered to iOS app via APNS.
1622 core.String iosSecret;
1623
1624 /// The phone number to send the verification code to in E.164 format.
1625 core.String phoneNumber;
1626
1627 /// Recaptcha solution.
1628 core.String recaptchaToken;
1629
1630 IdentitytoolkitRelyingpartySendVerificationCodeRequest();
1631
1632 IdentitytoolkitRelyingpartySendVerificationCodeRequest.fromJson(
1633 core.Map _json) {
1634 if (_json.containsKey("iosReceipt")) {
1635 iosReceipt = _json["iosReceipt"];
1636 }
1637 if (_json.containsKey("iosSecret")) {
1638 iosSecret = _json["iosSecret"];
1639 }
1640 if (_json.containsKey("phoneNumber")) {
1641 phoneNumber = _json["phoneNumber"];
1642 }
1643 if (_json.containsKey("recaptchaToken")) {
1644 recaptchaToken = _json["recaptchaToken"];
1645 }
1646 }
1647
1648 core.Map<core.String, core.Object> toJson() {
1649 final core.Map<core.String, core.Object> _json =
1650 new core.Map<core.String, core.Object>();
1651 if (iosReceipt != null) {
1652 _json["iosReceipt"] = iosReceipt;
1653 }
1654 if (iosSecret != null) {
1655 _json["iosSecret"] = iosSecret;
1656 }
1657 if (phoneNumber != null) {
1658 _json["phoneNumber"] = phoneNumber;
1659 }
1660 if (recaptchaToken != null) {
1661 _json["recaptchaToken"] = recaptchaToken;
1662 }
1663 return _json;
1664 }
1665 }
1666
1667 /// Response for Identitytoolkit-SendVerificationCode
1668 class IdentitytoolkitRelyingpartySendVerificationCodeResponse {
1669 /// Encrypted session information
1670 core.String sessionInfo;
1671
1672 IdentitytoolkitRelyingpartySendVerificationCodeResponse();
1673
1674 IdentitytoolkitRelyingpartySendVerificationCodeResponse.fromJson(
1675 core.Map _json) {
1676 if (_json.containsKey("sessionInfo")) {
1677 sessionInfo = _json["sessionInfo"];
1678 }
1679 }
1680
1681 core.Map<core.String, core.Object> toJson() {
1682 final core.Map<core.String, core.Object> _json =
1683 new core.Map<core.String, core.Object>();
1684 if (sessionInfo != null) {
1685 _json["sessionInfo"] = sessionInfo;
1686 }
1687 return _json;
1688 }
1689 }
1690
1691 /// Request to set the account information.
1522 class IdentitytoolkitRelyingpartySetAccountInfoRequest { 1692 class IdentitytoolkitRelyingpartySetAccountInfoRequest {
1523 /** The captcha challenge. */ 1693 /// The captcha challenge.
1524 core.String captchaChallenge; 1694 core.String captchaChallenge;
1525 /** Response to the captcha. */ 1695
1696 /// Response to the captcha.
1526 core.String captchaResponse; 1697 core.String captchaResponse;
1527 /** The timestamp when the account is created. */ 1698
1699 /// The timestamp when the account is created.
1528 core.String createdAt; 1700 core.String createdAt;
1529 /** 1701
1530 * GCP project number of the requesting delegated app. Currently only intended 1702 /// The custom attributes to be set in the user's id token.
1531 * for Firebase V1 migration. 1703 core.String customAttributes;
1532 */ 1704
1705 /// GCP project number of the requesting delegated app. Currently only
1706 /// intended for Firebase V1 migration.
1533 core.String delegatedProjectNumber; 1707 core.String delegatedProjectNumber;
1534 /** The attributes users request to delete. */ 1708
1709 /// The attributes users request to delete.
1535 core.List<core.String> deleteAttribute; 1710 core.List<core.String> deleteAttribute;
1536 /** The IDPs the user request to delete. */ 1711
1712 /// The IDPs the user request to delete.
1537 core.List<core.String> deleteProvider; 1713 core.List<core.String> deleteProvider;
1538 /** Whether to disable the user. */ 1714
1715 /// Whether to disable the user.
1539 core.bool disableUser; 1716 core.bool disableUser;
1540 /** The name of the user. */ 1717
1718 /// The name of the user.
1541 core.String displayName; 1719 core.String displayName;
1542 /** The email of the user. */ 1720
1721 /// The email of the user.
1543 core.String email; 1722 core.String email;
1544 /** Mark the email as verified or not. */ 1723
1724 /// Mark the email as verified or not.
1545 core.bool emailVerified; 1725 core.bool emailVerified;
1546 /** The GITKit token of the authenticated user. */ 1726
1727 /// The GITKit token of the authenticated user.
1547 core.String idToken; 1728 core.String idToken;
1548 /** Instance id token of the app. */ 1729
1730 /// Instance id token of the app.
1549 core.String instanceId; 1731 core.String instanceId;
1550 /** Last login timestamp. */ 1732
1733 /// Last login timestamp.
1551 core.String lastLoginAt; 1734 core.String lastLoginAt;
1552 /** The local ID of the user. */ 1735
1736 /// The local ID of the user.
1553 core.String localId; 1737 core.String localId;
1554 /** The out-of-band code of the change email request. */ 1738
1739 /// The out-of-band code of the change email request.
1555 core.String oobCode; 1740 core.String oobCode;
1556 /** The new password of the user. */ 1741
1742 /// The new password of the user.
1557 core.String password; 1743 core.String password;
1558 /** Privileged caller can update user with specified phone number. */ 1744
1745 /// Privileged caller can update user with specified phone number.
1559 core.String phoneNumber; 1746 core.String phoneNumber;
1560 /** The photo url of the user. */ 1747
1748 /// The photo url of the user.
1561 core.String photoUrl; 1749 core.String photoUrl;
1562 /** The associated IDPs of the user. */ 1750
1751 /// The associated IDPs of the user.
1563 core.List<core.String> provider; 1752 core.List<core.String> provider;
1564 /** Whether return sts id token and refresh token instead of gitkit token. */ 1753
1754 /// Whether return sts id token and refresh token instead of gitkit token.
1565 core.bool returnSecureToken; 1755 core.bool returnSecureToken;
1566 /** Mark the user to upgrade to federated login. */ 1756
1757 /// Mark the user to upgrade to federated login.
1567 core.bool upgradeToFederatedLogin; 1758 core.bool upgradeToFederatedLogin;
1568 /** Timestamp in seconds for valid login token. */ 1759
1760 /// Timestamp in seconds for valid login token.
1569 core.String validSince; 1761 core.String validSince;
1570 1762
1571 IdentitytoolkitRelyingpartySetAccountInfoRequest(); 1763 IdentitytoolkitRelyingpartySetAccountInfoRequest();
1572 1764
1573 IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson(core.Map _json) { 1765 IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson(core.Map _json) {
1574 if (_json.containsKey("captchaChallenge")) { 1766 if (_json.containsKey("captchaChallenge")) {
1575 captchaChallenge = _json["captchaChallenge"]; 1767 captchaChallenge = _json["captchaChallenge"];
1576 } 1768 }
1577 if (_json.containsKey("captchaResponse")) { 1769 if (_json.containsKey("captchaResponse")) {
1578 captchaResponse = _json["captchaResponse"]; 1770 captchaResponse = _json["captchaResponse"];
1579 } 1771 }
1580 if (_json.containsKey("createdAt")) { 1772 if (_json.containsKey("createdAt")) {
1581 createdAt = _json["createdAt"]; 1773 createdAt = _json["createdAt"];
1582 } 1774 }
1775 if (_json.containsKey("customAttributes")) {
1776 customAttributes = _json["customAttributes"];
1777 }
1583 if (_json.containsKey("delegatedProjectNumber")) { 1778 if (_json.containsKey("delegatedProjectNumber")) {
1584 delegatedProjectNumber = _json["delegatedProjectNumber"]; 1779 delegatedProjectNumber = _json["delegatedProjectNumber"];
1585 } 1780 }
1586 if (_json.containsKey("deleteAttribute")) { 1781 if (_json.containsKey("deleteAttribute")) {
1587 deleteAttribute = _json["deleteAttribute"]; 1782 deleteAttribute = _json["deleteAttribute"];
1588 } 1783 }
1589 if (_json.containsKey("deleteProvider")) { 1784 if (_json.containsKey("deleteProvider")) {
1590 deleteProvider = _json["deleteProvider"]; 1785 deleteProvider = _json["deleteProvider"];
1591 } 1786 }
1592 if (_json.containsKey("disableUser")) { 1787 if (_json.containsKey("disableUser")) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 } 1828 }
1634 if (_json.containsKey("upgradeToFederatedLogin")) { 1829 if (_json.containsKey("upgradeToFederatedLogin")) {
1635 upgradeToFederatedLogin = _json["upgradeToFederatedLogin"]; 1830 upgradeToFederatedLogin = _json["upgradeToFederatedLogin"];
1636 } 1831 }
1637 if (_json.containsKey("validSince")) { 1832 if (_json.containsKey("validSince")) {
1638 validSince = _json["validSince"]; 1833 validSince = _json["validSince"];
1639 } 1834 }
1640 } 1835 }
1641 1836
1642 core.Map<core.String, core.Object> toJson() { 1837 core.Map<core.String, core.Object> toJson() {
1643 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1838 final core.Map<core.String, core.Object> _json =
1839 new core.Map<core.String, core.Object>();
1644 if (captchaChallenge != null) { 1840 if (captchaChallenge != null) {
1645 _json["captchaChallenge"] = captchaChallenge; 1841 _json["captchaChallenge"] = captchaChallenge;
1646 } 1842 }
1647 if (captchaResponse != null) { 1843 if (captchaResponse != null) {
1648 _json["captchaResponse"] = captchaResponse; 1844 _json["captchaResponse"] = captchaResponse;
1649 } 1845 }
1650 if (createdAt != null) { 1846 if (createdAt != null) {
1651 _json["createdAt"] = createdAt; 1847 _json["createdAt"] = createdAt;
1652 } 1848 }
1849 if (customAttributes != null) {
1850 _json["customAttributes"] = customAttributes;
1851 }
1653 if (delegatedProjectNumber != null) { 1852 if (delegatedProjectNumber != null) {
1654 _json["delegatedProjectNumber"] = delegatedProjectNumber; 1853 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1655 } 1854 }
1656 if (deleteAttribute != null) { 1855 if (deleteAttribute != null) {
1657 _json["deleteAttribute"] = deleteAttribute; 1856 _json["deleteAttribute"] = deleteAttribute;
1658 } 1857 }
1659 if (deleteProvider != null) { 1858 if (deleteProvider != null) {
1660 _json["deleteProvider"] = deleteProvider; 1859 _json["deleteProvider"] = deleteProvider;
1661 } 1860 }
1662 if (disableUser != null) { 1861 if (disableUser != null) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 if (upgradeToFederatedLogin != null) { 1903 if (upgradeToFederatedLogin != null) {
1705 _json["upgradeToFederatedLogin"] = upgradeToFederatedLogin; 1904 _json["upgradeToFederatedLogin"] = upgradeToFederatedLogin;
1706 } 1905 }
1707 if (validSince != null) { 1906 if (validSince != null) {
1708 _json["validSince"] = validSince; 1907 _json["validSince"] = validSince;
1709 } 1908 }
1710 return _json; 1909 return _json;
1711 } 1910 }
1712 } 1911 }
1713 1912
1714 /** Request to set the project configuration. */ 1913 /// Request to set the project configuration.
1715 class IdentitytoolkitRelyingpartySetProjectConfigRequest { 1914 class IdentitytoolkitRelyingpartySetProjectConfigRequest {
1716 /** Whether to allow password user sign in or sign up. */ 1915 /// Whether to allow password user sign in or sign up.
1717 core.bool allowPasswordUser; 1916 core.bool allowPasswordUser;
1718 /** Browser API key, needed when making http request to Apiary. */ 1917
1918 /// Browser API key, needed when making http request to Apiary.
1719 core.String apiKey; 1919 core.String apiKey;
1720 /** Authorized domains for widget redirect. */ 1920
1921 /// Authorized domains for widget redirect.
1721 core.List<core.String> authorizedDomains; 1922 core.List<core.String> authorizedDomains;
1722 /** Change email template. */ 1923
1924 /// Change email template.
1723 EmailTemplate changeEmailTemplate; 1925 EmailTemplate changeEmailTemplate;
1724 /** 1926
1725 * GCP project number of the requesting delegated app. Currently only intended 1927 /// GCP project number of the requesting delegated app. Currently only
1726 * for Firebase V1 migration. 1928 /// intended for Firebase V1 migration.
1727 */
1728 core.String delegatedProjectNumber; 1929 core.String delegatedProjectNumber;
1729 /** Whether to enable anonymous user. */ 1930
1931 /// Whether to enable anonymous user.
1730 core.bool enableAnonymousUser; 1932 core.bool enableAnonymousUser;
1731 /** Oauth2 provider configuration. */ 1933
1934 /// Oauth2 provider configuration.
1732 core.List<IdpConfig> idpConfig; 1935 core.List<IdpConfig> idpConfig;
1733 /** Legacy reset password email template. */ 1936
1937 /// Legacy reset password email template.
1734 EmailTemplate legacyResetPasswordTemplate; 1938 EmailTemplate legacyResetPasswordTemplate;
1735 /** Reset password email template. */ 1939
1940 /// Reset password email template.
1736 EmailTemplate resetPasswordTemplate; 1941 EmailTemplate resetPasswordTemplate;
1737 /** Whether to use email sending provided by Firebear. */ 1942
1943 /// Whether to use email sending provided by Firebear.
1738 core.bool useEmailSending; 1944 core.bool useEmailSending;
1739 /** Verify email template. */ 1945
1946 /// Verify email template.
1740 EmailTemplate verifyEmailTemplate; 1947 EmailTemplate verifyEmailTemplate;
1741 1948
1742 IdentitytoolkitRelyingpartySetProjectConfigRequest(); 1949 IdentitytoolkitRelyingpartySetProjectConfigRequest();
1743 1950
1744 IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson(core.Map _json) { 1951 IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson(core.Map _json) {
1745 if (_json.containsKey("allowPasswordUser")) { 1952 if (_json.containsKey("allowPasswordUser")) {
1746 allowPasswordUser = _json["allowPasswordUser"]; 1953 allowPasswordUser = _json["allowPasswordUser"];
1747 } 1954 }
1748 if (_json.containsKey("apiKey")) { 1955 if (_json.containsKey("apiKey")) {
1749 apiKey = _json["apiKey"]; 1956 apiKey = _json["apiKey"];
1750 } 1957 }
1751 if (_json.containsKey("authorizedDomains")) { 1958 if (_json.containsKey("authorizedDomains")) {
1752 authorizedDomains = _json["authorizedDomains"]; 1959 authorizedDomains = _json["authorizedDomains"];
1753 } 1960 }
1754 if (_json.containsKey("changeEmailTemplate")) { 1961 if (_json.containsKey("changeEmailTemplate")) {
1755 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat e"]); 1962 changeEmailTemplate =
1963 new EmailTemplate.fromJson(_json["changeEmailTemplate"]);
1756 } 1964 }
1757 if (_json.containsKey("delegatedProjectNumber")) { 1965 if (_json.containsKey("delegatedProjectNumber")) {
1758 delegatedProjectNumber = _json["delegatedProjectNumber"]; 1966 delegatedProjectNumber = _json["delegatedProjectNumber"];
1759 } 1967 }
1760 if (_json.containsKey("enableAnonymousUser")) { 1968 if (_json.containsKey("enableAnonymousUser")) {
1761 enableAnonymousUser = _json["enableAnonymousUser"]; 1969 enableAnonymousUser = _json["enableAnonymousUser"];
1762 } 1970 }
1763 if (_json.containsKey("idpConfig")) { 1971 if (_json.containsKey("idpConfig")) {
1764 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value )).toList(); 1972 idpConfig = _json["idpConfig"]
1973 .map((value) => new IdpConfig.fromJson(value))
1974 .toList();
1765 } 1975 }
1766 if (_json.containsKey("legacyResetPasswordTemplate")) { 1976 if (_json.containsKey("legacyResetPasswordTemplate")) {
1767 legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyRese tPasswordTemplate"]); 1977 legacyResetPasswordTemplate =
1978 new EmailTemplate.fromJson(_json["legacyResetPasswordTemplate"]);
1768 } 1979 }
1769 if (_json.containsKey("resetPasswordTemplate")) { 1980 if (_json.containsKey("resetPasswordTemplate")) {
1770 resetPasswordTemplate = new EmailTemplate.fromJson(_json["resetPasswordTem plate"]); 1981 resetPasswordTemplate =
1982 new EmailTemplate.fromJson(_json["resetPasswordTemplate"]);
1771 } 1983 }
1772 if (_json.containsKey("useEmailSending")) { 1984 if (_json.containsKey("useEmailSending")) {
1773 useEmailSending = _json["useEmailSending"]; 1985 useEmailSending = _json["useEmailSending"];
1774 } 1986 }
1775 if (_json.containsKey("verifyEmailTemplate")) { 1987 if (_json.containsKey("verifyEmailTemplate")) {
1776 verifyEmailTemplate = new EmailTemplate.fromJson(_json["verifyEmailTemplat e"]); 1988 verifyEmailTemplate =
1989 new EmailTemplate.fromJson(_json["verifyEmailTemplate"]);
1777 } 1990 }
1778 } 1991 }
1779 1992
1780 core.Map<core.String, core.Object> toJson() { 1993 core.Map<core.String, core.Object> toJson() {
1781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1994 final core.Map<core.String, core.Object> _json =
1995 new core.Map<core.String, core.Object>();
1782 if (allowPasswordUser != null) { 1996 if (allowPasswordUser != null) {
1783 _json["allowPasswordUser"] = allowPasswordUser; 1997 _json["allowPasswordUser"] = allowPasswordUser;
1784 } 1998 }
1785 if (apiKey != null) { 1999 if (apiKey != null) {
1786 _json["apiKey"] = apiKey; 2000 _json["apiKey"] = apiKey;
1787 } 2001 }
1788 if (authorizedDomains != null) { 2002 if (authorizedDomains != null) {
1789 _json["authorizedDomains"] = authorizedDomains; 2003 _json["authorizedDomains"] = authorizedDomains;
1790 } 2004 }
1791 if (changeEmailTemplate != null) { 2005 if (changeEmailTemplate != null) {
1792 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); 2006 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson();
1793 } 2007 }
1794 if (delegatedProjectNumber != null) { 2008 if (delegatedProjectNumber != null) {
1795 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2009 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1796 } 2010 }
1797 if (enableAnonymousUser != null) { 2011 if (enableAnonymousUser != null) {
1798 _json["enableAnonymousUser"] = enableAnonymousUser; 2012 _json["enableAnonymousUser"] = enableAnonymousUser;
1799 } 2013 }
1800 if (idpConfig != null) { 2014 if (idpConfig != null) {
1801 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); 2015 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList();
1802 } 2016 }
1803 if (legacyResetPasswordTemplate != null) { 2017 if (legacyResetPasswordTemplate != null) {
1804 _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJso n(); 2018 _json["legacyResetPasswordTemplate"] =
2019 (legacyResetPasswordTemplate).toJson();
1805 } 2020 }
1806 if (resetPasswordTemplate != null) { 2021 if (resetPasswordTemplate != null) {
1807 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson(); 2022 _json["resetPasswordTemplate"] = (resetPasswordTemplate).toJson();
1808 } 2023 }
1809 if (useEmailSending != null) { 2024 if (useEmailSending != null) {
1810 _json["useEmailSending"] = useEmailSending; 2025 _json["useEmailSending"] = useEmailSending;
1811 } 2026 }
1812 if (verifyEmailTemplate != null) { 2027 if (verifyEmailTemplate != null) {
1813 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson(); 2028 _json["verifyEmailTemplate"] = (verifyEmailTemplate).toJson();
1814 } 2029 }
1815 return _json; 2030 return _json;
1816 } 2031 }
1817 } 2032 }
1818 2033
1819 /** Response of setting the project configuration. */ 2034 /// Response of setting the project configuration.
1820 class IdentitytoolkitRelyingpartySetProjectConfigResponse { 2035 class IdentitytoolkitRelyingpartySetProjectConfigResponse {
1821 /** Project ID of the relying party. */ 2036 /// Project ID of the relying party.
1822 core.String projectId; 2037 core.String projectId;
1823 2038
1824 IdentitytoolkitRelyingpartySetProjectConfigResponse(); 2039 IdentitytoolkitRelyingpartySetProjectConfigResponse();
1825 2040
1826 IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(core.Map _json) { 2041 IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson(core.Map _json) {
1827 if (_json.containsKey("projectId")) { 2042 if (_json.containsKey("projectId")) {
1828 projectId = _json["projectId"]; 2043 projectId = _json["projectId"];
1829 } 2044 }
1830 } 2045 }
1831 2046
1832 core.Map<core.String, core.Object> toJson() { 2047 core.Map<core.String, core.Object> toJson() {
1833 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2048 final core.Map<core.String, core.Object> _json =
2049 new core.Map<core.String, core.Object>();
1834 if (projectId != null) { 2050 if (projectId != null) {
1835 _json["projectId"] = projectId; 2051 _json["projectId"] = projectId;
1836 } 2052 }
1837 return _json; 2053 return _json;
1838 } 2054 }
1839 } 2055 }
1840 2056
1841 /** Request to sign out user. */ 2057 /// Request to sign out user.
1842 class IdentitytoolkitRelyingpartySignOutUserRequest { 2058 class IdentitytoolkitRelyingpartySignOutUserRequest {
1843 /** Instance id token of the app. */ 2059 /// Instance id token of the app.
1844 core.String instanceId; 2060 core.String instanceId;
1845 /** The local ID of the user. */ 2061
2062 /// The local ID of the user.
1846 core.String localId; 2063 core.String localId;
1847 2064
1848 IdentitytoolkitRelyingpartySignOutUserRequest(); 2065 IdentitytoolkitRelyingpartySignOutUserRequest();
1849 2066
1850 IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(core.Map _json) { 2067 IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(core.Map _json) {
1851 if (_json.containsKey("instanceId")) { 2068 if (_json.containsKey("instanceId")) {
1852 instanceId = _json["instanceId"]; 2069 instanceId = _json["instanceId"];
1853 } 2070 }
1854 if (_json.containsKey("localId")) { 2071 if (_json.containsKey("localId")) {
1855 localId = _json["localId"]; 2072 localId = _json["localId"];
1856 } 2073 }
1857 } 2074 }
1858 2075
1859 core.Map<core.String, core.Object> toJson() { 2076 core.Map<core.String, core.Object> toJson() {
1860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2077 final core.Map<core.String, core.Object> _json =
2078 new core.Map<core.String, core.Object>();
1861 if (instanceId != null) { 2079 if (instanceId != null) {
1862 _json["instanceId"] = instanceId; 2080 _json["instanceId"] = instanceId;
1863 } 2081 }
1864 if (localId != null) { 2082 if (localId != null) {
1865 _json["localId"] = localId; 2083 _json["localId"] = localId;
1866 } 2084 }
1867 return _json; 2085 return _json;
1868 } 2086 }
1869 } 2087 }
1870 2088
1871 /** Response of signing out user. */ 2089 /// Response of signing out user.
1872 class IdentitytoolkitRelyingpartySignOutUserResponse { 2090 class IdentitytoolkitRelyingpartySignOutUserResponse {
1873 /** The local ID of the user. */ 2091 /// The local ID of the user.
1874 core.String localId; 2092 core.String localId;
1875 2093
1876 IdentitytoolkitRelyingpartySignOutUserResponse(); 2094 IdentitytoolkitRelyingpartySignOutUserResponse();
1877 2095
1878 IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(core.Map _json) { 2096 IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(core.Map _json) {
1879 if (_json.containsKey("localId")) { 2097 if (_json.containsKey("localId")) {
1880 localId = _json["localId"]; 2098 localId = _json["localId"];
1881 } 2099 }
1882 } 2100 }
1883 2101
1884 core.Map<core.String, core.Object> toJson() { 2102 core.Map<core.String, core.Object> toJson() {
1885 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2103 final core.Map<core.String, core.Object> _json =
2104 new core.Map<core.String, core.Object>();
1886 if (localId != null) { 2105 if (localId != null) {
1887 _json["localId"] = localId; 2106 _json["localId"] = localId;
1888 } 2107 }
1889 return _json; 2108 return _json;
1890 } 2109 }
1891 } 2110 }
1892 2111
1893 /** 2112 /// Request to signup new user, create anonymous user or anonymous user reauth.
1894 * Request to signup new user, create anonymous user or anonymous user reauth.
1895 */
1896 class IdentitytoolkitRelyingpartySignupNewUserRequest { 2113 class IdentitytoolkitRelyingpartySignupNewUserRequest {
1897 /** The captcha challenge. */ 2114 /// The captcha challenge.
1898 core.String captchaChallenge; 2115 core.String captchaChallenge;
1899 /** Response to the captcha. */ 2116
2117 /// Response to the captcha.
1900 core.String captchaResponse; 2118 core.String captchaResponse;
1901 /** Whether to disable the user. Only can be used by service account. */ 2119
2120 /// Whether to disable the user. Only can be used by service account.
1902 core.bool disabled; 2121 core.bool disabled;
1903 /** The name of the user. */ 2122
2123 /// The name of the user.
1904 core.String displayName; 2124 core.String displayName;
1905 /** The email of the user. */ 2125
2126 /// The email of the user.
1906 core.String email; 2127 core.String email;
1907 /** 2128
1908 * Mark the email as verified or not. Only can be used by service account. 2129 /// Mark the email as verified or not. Only can be used by service account.
1909 */
1910 core.bool emailVerified; 2130 core.bool emailVerified;
1911 /** The GITKit token of the authenticated user. */ 2131
2132 /// The GITKit token of the authenticated user.
1912 core.String idToken; 2133 core.String idToken;
1913 /** Instance id token of the app. */ 2134
2135 /// Instance id token of the app.
1914 core.String instanceId; 2136 core.String instanceId;
1915 /** Privileged caller can create user with specified user id. */ 2137
2138 /// Privileged caller can create user with specified user id.
1916 core.String localId; 2139 core.String localId;
1917 /** The new password of the user. */ 2140
2141 /// The new password of the user.
1918 core.String password; 2142 core.String password;
1919 /** Privileged caller can create user with specified phone number. */ 2143
2144 /// Privileged caller can create user with specified phone number.
1920 core.String phoneNumber; 2145 core.String phoneNumber;
1921 /** The photo url of the user. */ 2146
2147 /// The photo url of the user.
1922 core.String photoUrl; 2148 core.String photoUrl;
1923 2149
1924 IdentitytoolkitRelyingpartySignupNewUserRequest(); 2150 IdentitytoolkitRelyingpartySignupNewUserRequest();
1925 2151
1926 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { 2152 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) {
1927 if (_json.containsKey("captchaChallenge")) { 2153 if (_json.containsKey("captchaChallenge")) {
1928 captchaChallenge = _json["captchaChallenge"]; 2154 captchaChallenge = _json["captchaChallenge"];
1929 } 2155 }
1930 if (_json.containsKey("captchaResponse")) { 2156 if (_json.containsKey("captchaResponse")) {
1931 captchaResponse = _json["captchaResponse"]; 2157 captchaResponse = _json["captchaResponse"];
(...skipping 24 matching lines...) Expand all
1956 } 2182 }
1957 if (_json.containsKey("phoneNumber")) { 2183 if (_json.containsKey("phoneNumber")) {
1958 phoneNumber = _json["phoneNumber"]; 2184 phoneNumber = _json["phoneNumber"];
1959 } 2185 }
1960 if (_json.containsKey("photoUrl")) { 2186 if (_json.containsKey("photoUrl")) {
1961 photoUrl = _json["photoUrl"]; 2187 photoUrl = _json["photoUrl"];
1962 } 2188 }
1963 } 2189 }
1964 2190
1965 core.Map<core.String, core.Object> toJson() { 2191 core.Map<core.String, core.Object> toJson() {
1966 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2192 final core.Map<core.String, core.Object> _json =
2193 new core.Map<core.String, core.Object>();
1967 if (captchaChallenge != null) { 2194 if (captchaChallenge != null) {
1968 _json["captchaChallenge"] = captchaChallenge; 2195 _json["captchaChallenge"] = captchaChallenge;
1969 } 2196 }
1970 if (captchaResponse != null) { 2197 if (captchaResponse != null) {
1971 _json["captchaResponse"] = captchaResponse; 2198 _json["captchaResponse"] = captchaResponse;
1972 } 2199 }
1973 if (disabled != null) { 2200 if (disabled != null) {
1974 _json["disabled"] = disabled; 2201 _json["disabled"] = disabled;
1975 } 2202 }
1976 if (displayName != null) { 2203 if (displayName != null) {
(...skipping 20 matching lines...) Expand all
1997 if (phoneNumber != null) { 2224 if (phoneNumber != null) {
1998 _json["phoneNumber"] = phoneNumber; 2225 _json["phoneNumber"] = phoneNumber;
1999 } 2226 }
2000 if (photoUrl != null) { 2227 if (photoUrl != null) {
2001 _json["photoUrl"] = photoUrl; 2228 _json["photoUrl"] = photoUrl;
2002 } 2229 }
2003 return _json; 2230 return _json;
2004 } 2231 }
2005 } 2232 }
2006 2233
2007 /** Request to upload user account in batch. */ 2234 /// Request to upload user account in batch.
2008 class IdentitytoolkitRelyingpartyUploadAccountRequest { 2235 class IdentitytoolkitRelyingpartyUploadAccountRequest {
2009 /** Whether allow overwrite existing account when user local_id exists. */ 2236 /// Whether allow overwrite existing account when user local_id exists.
2010 core.bool allowOverwrite; 2237 core.bool allowOverwrite;
2011 /** 2238 core.int blockSize;
2012 * GCP project number of the requesting delegated app. Currently only intended 2239
2013 * for Firebase V1 migration. 2240 /// The following 4 fields are for standard scrypt algorithm.
2014 */ 2241 core.int cpuMemCost;
2242
2243 /// GCP project number of the requesting delegated app. Currently only
2244 /// intended for Firebase V1 migration.
2015 core.String delegatedProjectNumber; 2245 core.String delegatedProjectNumber;
2016 /** The password hash algorithm. */ 2246 core.int dkLen;
2247
2248 /// The password hash algorithm.
2017 core.String hashAlgorithm; 2249 core.String hashAlgorithm;
2018 /** Memory cost for hash calculation. Used by scrypt similar algorithms. */ 2250
2251 /// Memory cost for hash calculation. Used by scrypt similar algorithms.
2019 core.int memoryCost; 2252 core.int memoryCost;
2020 /** Rounds for hash calculation. Used by scrypt and similar algorithms. */ 2253 core.int parallelization;
2254
2255 /// Rounds for hash calculation. Used by scrypt and similar algorithms.
2021 core.int rounds; 2256 core.int rounds;
2022 /** The salt separator. */ 2257
2258 /// The salt separator.
2023 core.String saltSeparator; 2259 core.String saltSeparator;
2024 core.List<core.int> get saltSeparatorAsBytes { 2260 core.List<core.int> get saltSeparatorAsBytes {
2025 return convert.BASE64.decode(saltSeparator); 2261 return convert.BASE64.decode(saltSeparator);
2026 } 2262 }
2027 2263
2028 void set saltSeparatorAsBytes(core.List<core.int> _bytes) { 2264 void set saltSeparatorAsBytes(core.List<core.int> _bytes) {
2029 saltSeparator = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-"); 2265 saltSeparator =
2266 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
2030 } 2267 }
2031 /** 2268
2032 * If true, backend will do sanity check(including duplicate email and 2269 /// If true, backend will do sanity check(including duplicate email and
2033 * federated id) when uploading account. 2270 /// federated id) when uploading account.
2034 */
2035 core.bool sanityCheck; 2271 core.bool sanityCheck;
2036 /** The key for to hash the password. */ 2272
2273 /// The key for to hash the password.
2037 core.String signerKey; 2274 core.String signerKey;
2038 core.List<core.int> get signerKeyAsBytes { 2275 core.List<core.int> get signerKeyAsBytes {
2039 return convert.BASE64.decode(signerKey); 2276 return convert.BASE64.decode(signerKey);
2040 } 2277 }
2041 2278
2042 void set signerKeyAsBytes(core.List<core.int> _bytes) { 2279 void set signerKeyAsBytes(core.List<core.int> _bytes) {
2043 signerKey = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-"); 2280 signerKey =
2281 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
2044 } 2282 }
2045 /** 2283
2046 * Specify which project (field value is actually project id) to operate. Only 2284 /// Specify which project (field value is actually project id) to operate.
2047 * used when provided credential. 2285 /// Only used when provided credential.
2048 */
2049 core.String targetProjectId; 2286 core.String targetProjectId;
2050 /** The account info to be stored. */ 2287
2288 /// The account info to be stored.
2051 core.List<UserInfo> users; 2289 core.List<UserInfo> users;
2052 2290
2053 IdentitytoolkitRelyingpartyUploadAccountRequest(); 2291 IdentitytoolkitRelyingpartyUploadAccountRequest();
2054 2292
2055 IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(core.Map _json) { 2293 IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(core.Map _json) {
2056 if (_json.containsKey("allowOverwrite")) { 2294 if (_json.containsKey("allowOverwrite")) {
2057 allowOverwrite = _json["allowOverwrite"]; 2295 allowOverwrite = _json["allowOverwrite"];
2058 } 2296 }
2297 if (_json.containsKey("blockSize")) {
2298 blockSize = _json["blockSize"];
2299 }
2300 if (_json.containsKey("cpuMemCost")) {
2301 cpuMemCost = _json["cpuMemCost"];
2302 }
2059 if (_json.containsKey("delegatedProjectNumber")) { 2303 if (_json.containsKey("delegatedProjectNumber")) {
2060 delegatedProjectNumber = _json["delegatedProjectNumber"]; 2304 delegatedProjectNumber = _json["delegatedProjectNumber"];
2061 } 2305 }
2306 if (_json.containsKey("dkLen")) {
2307 dkLen = _json["dkLen"];
2308 }
2062 if (_json.containsKey("hashAlgorithm")) { 2309 if (_json.containsKey("hashAlgorithm")) {
2063 hashAlgorithm = _json["hashAlgorithm"]; 2310 hashAlgorithm = _json["hashAlgorithm"];
2064 } 2311 }
2065 if (_json.containsKey("memoryCost")) { 2312 if (_json.containsKey("memoryCost")) {
2066 memoryCost = _json["memoryCost"]; 2313 memoryCost = _json["memoryCost"];
2067 } 2314 }
2315 if (_json.containsKey("parallelization")) {
2316 parallelization = _json["parallelization"];
2317 }
2068 if (_json.containsKey("rounds")) { 2318 if (_json.containsKey("rounds")) {
2069 rounds = _json["rounds"]; 2319 rounds = _json["rounds"];
2070 } 2320 }
2071 if (_json.containsKey("saltSeparator")) { 2321 if (_json.containsKey("saltSeparator")) {
2072 saltSeparator = _json["saltSeparator"]; 2322 saltSeparator = _json["saltSeparator"];
2073 } 2323 }
2074 if (_json.containsKey("sanityCheck")) { 2324 if (_json.containsKey("sanityCheck")) {
2075 sanityCheck = _json["sanityCheck"]; 2325 sanityCheck = _json["sanityCheck"];
2076 } 2326 }
2077 if (_json.containsKey("signerKey")) { 2327 if (_json.containsKey("signerKey")) {
2078 signerKey = _json["signerKey"]; 2328 signerKey = _json["signerKey"];
2079 } 2329 }
2080 if (_json.containsKey("targetProjectId")) { 2330 if (_json.containsKey("targetProjectId")) {
2081 targetProjectId = _json["targetProjectId"]; 2331 targetProjectId = _json["targetProjectId"];
2082 } 2332 }
2083 if (_json.containsKey("users")) { 2333 if (_json.containsKey("users")) {
2084 users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList (); 2334 users =
2335 _json["users"].map((value) => new UserInfo.fromJson(value)).toList();
2085 } 2336 }
2086 } 2337 }
2087 2338
2088 core.Map<core.String, core.Object> toJson() { 2339 core.Map<core.String, core.Object> toJson() {
2089 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2340 final core.Map<core.String, core.Object> _json =
2341 new core.Map<core.String, core.Object>();
2090 if (allowOverwrite != null) { 2342 if (allowOverwrite != null) {
2091 _json["allowOverwrite"] = allowOverwrite; 2343 _json["allowOverwrite"] = allowOverwrite;
2092 } 2344 }
2345 if (blockSize != null) {
2346 _json["blockSize"] = blockSize;
2347 }
2348 if (cpuMemCost != null) {
2349 _json["cpuMemCost"] = cpuMemCost;
2350 }
2093 if (delegatedProjectNumber != null) { 2351 if (delegatedProjectNumber != null) {
2094 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2352 _json["delegatedProjectNumber"] = delegatedProjectNumber;
2095 } 2353 }
2354 if (dkLen != null) {
2355 _json["dkLen"] = dkLen;
2356 }
2096 if (hashAlgorithm != null) { 2357 if (hashAlgorithm != null) {
2097 _json["hashAlgorithm"] = hashAlgorithm; 2358 _json["hashAlgorithm"] = hashAlgorithm;
2098 } 2359 }
2099 if (memoryCost != null) { 2360 if (memoryCost != null) {
2100 _json["memoryCost"] = memoryCost; 2361 _json["memoryCost"] = memoryCost;
2101 } 2362 }
2363 if (parallelization != null) {
2364 _json["parallelization"] = parallelization;
2365 }
2102 if (rounds != null) { 2366 if (rounds != null) {
2103 _json["rounds"] = rounds; 2367 _json["rounds"] = rounds;
2104 } 2368 }
2105 if (saltSeparator != null) { 2369 if (saltSeparator != null) {
2106 _json["saltSeparator"] = saltSeparator; 2370 _json["saltSeparator"] = saltSeparator;
2107 } 2371 }
2108 if (sanityCheck != null) { 2372 if (sanityCheck != null) {
2109 _json["sanityCheck"] = sanityCheck; 2373 _json["sanityCheck"] = sanityCheck;
2110 } 2374 }
2111 if (signerKey != null) { 2375 if (signerKey != null) {
2112 _json["signerKey"] = signerKey; 2376 _json["signerKey"] = signerKey;
2113 } 2377 }
2114 if (targetProjectId != null) { 2378 if (targetProjectId != null) {
2115 _json["targetProjectId"] = targetProjectId; 2379 _json["targetProjectId"] = targetProjectId;
2116 } 2380 }
2117 if (users != null) { 2381 if (users != null) {
2118 _json["users"] = users.map((value) => (value).toJson()).toList(); 2382 _json["users"] = users.map((value) => (value).toJson()).toList();
2119 } 2383 }
2120 return _json; 2384 return _json;
2121 } 2385 }
2122 } 2386 }
2123 2387
2124 /** Request to verify the IDP assertion. */ 2388 /// Request to verify the IDP assertion.
2125 class IdentitytoolkitRelyingpartyVerifyAssertionRequest { 2389 class IdentitytoolkitRelyingpartyVerifyAssertionRequest {
2126 /** 2390 /// When it's true, automatically creates a new account if the user doesn't
2127 * When it's true, automatically creates a new account if the user doesn't 2391 /// exist. When it's false, allows existing user to sign in normally and
2128 * exist. When it's false, allows existing user to sign in normally and throws 2392 /// throws exception if the user doesn't exist.
2129 * exception if the user doesn't exist.
2130 */
2131 core.bool autoCreate; 2393 core.bool autoCreate;
2132 /** 2394
2133 * GCP project number of the requesting delegated app. Currently only intended 2395 /// GCP project number of the requesting delegated app. Currently only
2134 * for Firebase V1 migration. 2396 /// intended for Firebase V1 migration.
2135 */
2136 core.String delegatedProjectNumber; 2397 core.String delegatedProjectNumber;
2137 /** The GITKit token of the authenticated user. */ 2398
2399 /// The GITKit token of the authenticated user.
2138 core.String idToken; 2400 core.String idToken;
2139 /** Instance id token of the app. */ 2401
2402 /// Instance id token of the app.
2140 core.String instanceId; 2403 core.String instanceId;
2141 /** 2404
2142 * The GITKit token for the non-trusted IDP pending to be confirmed by the 2405 /// The GITKit token for the non-trusted IDP pending to be confirmed by the
2143 * user. 2406 /// user.
2144 */
2145 core.String pendingIdToken; 2407 core.String pendingIdToken;
2146 /** The post body if the request is a HTTP POST. */ 2408
2409 /// The post body if the request is a HTTP POST.
2147 core.String postBody; 2410 core.String postBody;
2148 /** 2411
2149 * The URI to which the IDP redirects the user back. It may contain federated 2412 /// The URI to which the IDP redirects the user back. It may contain
2150 * login result params added by the IDP. 2413 /// federated login result params added by the IDP.
2151 */
2152 core.String requestUri; 2414 core.String requestUri;
2153 /** 2415
2154 * Whether return 200 and IDP credential rather than throw exception when 2416 /// Whether return 200 and IDP credential rather than throw exception when
2155 * federated id is already linked. 2417 /// federated id is already linked.
2156 */
2157 core.bool returnIdpCredential; 2418 core.bool returnIdpCredential;
2158 /** Whether to return refresh tokens. */ 2419
2420 /// Whether to return refresh tokens.
2159 core.bool returnRefreshToken; 2421 core.bool returnRefreshToken;
2160 /** Whether return sts id token and refresh token instead of gitkit token. */ 2422
2423 /// Whether return sts id token and refresh token instead of gitkit token.
2161 core.bool returnSecureToken; 2424 core.bool returnSecureToken;
2162 /** 2425
2163 * Session ID, which should match the one in previous createAuthUri request. 2426 /// Session ID, which should match the one in previous createAuthUri request.
2164 */
2165 core.String sessionId; 2427 core.String sessionId;
2166 2428
2167 IdentitytoolkitRelyingpartyVerifyAssertionRequest(); 2429 IdentitytoolkitRelyingpartyVerifyAssertionRequest();
2168 2430
2169 IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(core.Map _json) { 2431 IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(core.Map _json) {
2170 if (_json.containsKey("autoCreate")) { 2432 if (_json.containsKey("autoCreate")) {
2171 autoCreate = _json["autoCreate"]; 2433 autoCreate = _json["autoCreate"];
2172 } 2434 }
2173 if (_json.containsKey("delegatedProjectNumber")) { 2435 if (_json.containsKey("delegatedProjectNumber")) {
2174 delegatedProjectNumber = _json["delegatedProjectNumber"]; 2436 delegatedProjectNumber = _json["delegatedProjectNumber"];
(...skipping 21 matching lines...) Expand all
2196 } 2458 }
2197 if (_json.containsKey("returnSecureToken")) { 2459 if (_json.containsKey("returnSecureToken")) {
2198 returnSecureToken = _json["returnSecureToken"]; 2460 returnSecureToken = _json["returnSecureToken"];
2199 } 2461 }
2200 if (_json.containsKey("sessionId")) { 2462 if (_json.containsKey("sessionId")) {
2201 sessionId = _json["sessionId"]; 2463 sessionId = _json["sessionId"];
2202 } 2464 }
2203 } 2465 }
2204 2466
2205 core.Map<core.String, core.Object> toJson() { 2467 core.Map<core.String, core.Object> toJson() {
2206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2468 final core.Map<core.String, core.Object> _json =
2469 new core.Map<core.String, core.Object>();
2207 if (autoCreate != null) { 2470 if (autoCreate != null) {
2208 _json["autoCreate"] = autoCreate; 2471 _json["autoCreate"] = autoCreate;
2209 } 2472 }
2210 if (delegatedProjectNumber != null) { 2473 if (delegatedProjectNumber != null) {
2211 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2474 _json["delegatedProjectNumber"] = delegatedProjectNumber;
2212 } 2475 }
2213 if (idToken != null) { 2476 if (idToken != null) {
2214 _json["idToken"] = idToken; 2477 _json["idToken"] = idToken;
2215 } 2478 }
2216 if (instanceId != null) { 2479 if (instanceId != null) {
(...skipping 17 matching lines...) Expand all
2234 if (returnSecureToken != null) { 2497 if (returnSecureToken != null) {
2235 _json["returnSecureToken"] = returnSecureToken; 2498 _json["returnSecureToken"] = returnSecureToken;
2236 } 2499 }
2237 if (sessionId != null) { 2500 if (sessionId != null) {
2238 _json["sessionId"] = sessionId; 2501 _json["sessionId"] = sessionId;
2239 } 2502 }
2240 return _json; 2503 return _json;
2241 } 2504 }
2242 } 2505 }
2243 2506
2244 /** Request to verify a custom token */ 2507 /// Request to verify a custom token
2245 class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest { 2508 class IdentitytoolkitRelyingpartyVerifyCustomTokenRequest {
2246 /** 2509 /// GCP project number of the requesting delegated app. Currently only
2247 * GCP project number of the requesting delegated app. Currently only intended 2510 /// intended for Firebase V1 migration.
2248 * for Firebase V1 migration.
2249 */
2250 core.String delegatedProjectNumber; 2511 core.String delegatedProjectNumber;
2251 /** Instance id token of the app. */ 2512
2513 /// Instance id token of the app.
2252 core.String instanceId; 2514 core.String instanceId;
2253 /** Whether return sts id token and refresh token instead of gitkit token. */ 2515
2516 /// Whether return sts id token and refresh token instead of gitkit token.
2254 core.bool returnSecureToken; 2517 core.bool returnSecureToken;
2255 /** The custom token to verify */ 2518
2519 /// The custom token to verify
2256 core.String token; 2520 core.String token;
2257 2521
2258 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); 2522 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest();
2259 2523
2260 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(core.Map _json) { 2524 IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(core.Map _json) {
2261 if (_json.containsKey("delegatedProjectNumber")) { 2525 if (_json.containsKey("delegatedProjectNumber")) {
2262 delegatedProjectNumber = _json["delegatedProjectNumber"]; 2526 delegatedProjectNumber = _json["delegatedProjectNumber"];
2263 } 2527 }
2264 if (_json.containsKey("instanceId")) { 2528 if (_json.containsKey("instanceId")) {
2265 instanceId = _json["instanceId"]; 2529 instanceId = _json["instanceId"];
2266 } 2530 }
2267 if (_json.containsKey("returnSecureToken")) { 2531 if (_json.containsKey("returnSecureToken")) {
2268 returnSecureToken = _json["returnSecureToken"]; 2532 returnSecureToken = _json["returnSecureToken"];
2269 } 2533 }
2270 if (_json.containsKey("token")) { 2534 if (_json.containsKey("token")) {
2271 token = _json["token"]; 2535 token = _json["token"];
2272 } 2536 }
2273 } 2537 }
2274 2538
2275 core.Map<core.String, core.Object> toJson() { 2539 core.Map<core.String, core.Object> toJson() {
2276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2540 final core.Map<core.String, core.Object> _json =
2541 new core.Map<core.String, core.Object>();
2277 if (delegatedProjectNumber != null) { 2542 if (delegatedProjectNumber != null) {
2278 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2543 _json["delegatedProjectNumber"] = delegatedProjectNumber;
2279 } 2544 }
2280 if (instanceId != null) { 2545 if (instanceId != null) {
2281 _json["instanceId"] = instanceId; 2546 _json["instanceId"] = instanceId;
2282 } 2547 }
2283 if (returnSecureToken != null) { 2548 if (returnSecureToken != null) {
2284 _json["returnSecureToken"] = returnSecureToken; 2549 _json["returnSecureToken"] = returnSecureToken;
2285 } 2550 }
2286 if (token != null) { 2551 if (token != null) {
2287 _json["token"] = token; 2552 _json["token"] = token;
2288 } 2553 }
2289 return _json; 2554 return _json;
2290 } 2555 }
2291 } 2556 }
2292 2557
2293 /** Request to verify the password. */ 2558 /// Request to verify the password.
2294 class IdentitytoolkitRelyingpartyVerifyPasswordRequest { 2559 class IdentitytoolkitRelyingpartyVerifyPasswordRequest {
2295 /** The captcha challenge. */ 2560 /// The captcha challenge.
2296 core.String captchaChallenge; 2561 core.String captchaChallenge;
2297 /** Response to the captcha. */ 2562
2563 /// Response to the captcha.
2298 core.String captchaResponse; 2564 core.String captchaResponse;
2299 /** 2565
2300 * GCP project number of the requesting delegated app. Currently only intended 2566 /// GCP project number of the requesting delegated app. Currently only
2301 * for Firebase V1 migration. 2567 /// intended for Firebase V1 migration.
2302 */
2303 core.String delegatedProjectNumber; 2568 core.String delegatedProjectNumber;
2304 /** The email of the user. */ 2569
2570 /// The email of the user.
2305 core.String email; 2571 core.String email;
2306 /** The GITKit token of the authenticated user. */ 2572
2573 /// The GITKit token of the authenticated user.
2307 core.String idToken; 2574 core.String idToken;
2308 /** Instance id token of the app. */ 2575
2576 /// Instance id token of the app.
2309 core.String instanceId; 2577 core.String instanceId;
2310 /** The password inputed by the user. */ 2578
2579 /// The password inputed by the user.
2311 core.String password; 2580 core.String password;
2312 /** 2581
2313 * The GITKit token for the non-trusted IDP, which is to be confirmed by the 2582 /// The GITKit token for the non-trusted IDP, which is to be confirmed by the
2314 * user. 2583 /// user.
2315 */
2316 core.String pendingIdToken; 2584 core.String pendingIdToken;
2317 /** Whether return sts id token and refresh token instead of gitkit token. */ 2585
2586 /// Whether return sts id token and refresh token instead of gitkit token.
2318 core.bool returnSecureToken; 2587 core.bool returnSecureToken;
2319 2588
2320 IdentitytoolkitRelyingpartyVerifyPasswordRequest(); 2589 IdentitytoolkitRelyingpartyVerifyPasswordRequest();
2321 2590
2322 IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(core.Map _json) { 2591 IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(core.Map _json) {
2323 if (_json.containsKey("captchaChallenge")) { 2592 if (_json.containsKey("captchaChallenge")) {
2324 captchaChallenge = _json["captchaChallenge"]; 2593 captchaChallenge = _json["captchaChallenge"];
2325 } 2594 }
2326 if (_json.containsKey("captchaResponse")) { 2595 if (_json.containsKey("captchaResponse")) {
2327 captchaResponse = _json["captchaResponse"]; 2596 captchaResponse = _json["captchaResponse"];
(...skipping 15 matching lines...) Expand all
2343 } 2612 }
2344 if (_json.containsKey("pendingIdToken")) { 2613 if (_json.containsKey("pendingIdToken")) {
2345 pendingIdToken = _json["pendingIdToken"]; 2614 pendingIdToken = _json["pendingIdToken"];
2346 } 2615 }
2347 if (_json.containsKey("returnSecureToken")) { 2616 if (_json.containsKey("returnSecureToken")) {
2348 returnSecureToken = _json["returnSecureToken"]; 2617 returnSecureToken = _json["returnSecureToken"];
2349 } 2618 }
2350 } 2619 }
2351 2620
2352 core.Map<core.String, core.Object> toJson() { 2621 core.Map<core.String, core.Object> toJson() {
2353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2622 final core.Map<core.String, core.Object> _json =
2623 new core.Map<core.String, core.Object>();
2354 if (captchaChallenge != null) { 2624 if (captchaChallenge != null) {
2355 _json["captchaChallenge"] = captchaChallenge; 2625 _json["captchaChallenge"] = captchaChallenge;
2356 } 2626 }
2357 if (captchaResponse != null) { 2627 if (captchaResponse != null) {
2358 _json["captchaResponse"] = captchaResponse; 2628 _json["captchaResponse"] = captchaResponse;
2359 } 2629 }
2360 if (delegatedProjectNumber != null) { 2630 if (delegatedProjectNumber != null) {
2361 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2631 _json["delegatedProjectNumber"] = delegatedProjectNumber;
2362 } 2632 }
2363 if (email != null) { 2633 if (email != null) {
(...skipping 11 matching lines...) Expand all
2375 if (pendingIdToken != null) { 2645 if (pendingIdToken != null) {
2376 _json["pendingIdToken"] = pendingIdToken; 2646 _json["pendingIdToken"] = pendingIdToken;
2377 } 2647 }
2378 if (returnSecureToken != null) { 2648 if (returnSecureToken != null) {
2379 _json["returnSecureToken"] = returnSecureToken; 2649 _json["returnSecureToken"] = returnSecureToken;
2380 } 2650 }
2381 return _json; 2651 return _json;
2382 } 2652 }
2383 } 2653 }
2384 2654
2385 /** Template for a single idp configuration. */ 2655 /// Request for Identitytoolkit-VerifyPhoneNumber
2656 class IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest {
2657 core.String code;
2658 core.String idToken;
2659 core.String operation;
2660 core.String phoneNumber;
2661
2662 /// The session info previously returned by
2663 /// IdentityToolkit-SendVerificationCode.
2664 core.String sessionInfo;
2665 core.String temporaryProof;
2666 core.String verificationProof;
2667
2668 IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest();
2669
2670 IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest.fromJson(core.Map _json) {
2671 if (_json.containsKey("code")) {
2672 code = _json["code"];
2673 }
2674 if (_json.containsKey("idToken")) {
2675 idToken = _json["idToken"];
2676 }
2677 if (_json.containsKey("operation")) {
2678 operation = _json["operation"];
2679 }
2680 if (_json.containsKey("phoneNumber")) {
2681 phoneNumber = _json["phoneNumber"];
2682 }
2683 if (_json.containsKey("sessionInfo")) {
2684 sessionInfo = _json["sessionInfo"];
2685 }
2686 if (_json.containsKey("temporaryProof")) {
2687 temporaryProof = _json["temporaryProof"];
2688 }
2689 if (_json.containsKey("verificationProof")) {
2690 verificationProof = _json["verificationProof"];
2691 }
2692 }
2693
2694 core.Map<core.String, core.Object> toJson() {
2695 final core.Map<core.String, core.Object> _json =
2696 new core.Map<core.String, core.Object>();
2697 if (code != null) {
2698 _json["code"] = code;
2699 }
2700 if (idToken != null) {
2701 _json["idToken"] = idToken;
2702 }
2703 if (operation != null) {
2704 _json["operation"] = operation;
2705 }
2706 if (phoneNumber != null) {
2707 _json["phoneNumber"] = phoneNumber;
2708 }
2709 if (sessionInfo != null) {
2710 _json["sessionInfo"] = sessionInfo;
2711 }
2712 if (temporaryProof != null) {
2713 _json["temporaryProof"] = temporaryProof;
2714 }
2715 if (verificationProof != null) {
2716 _json["verificationProof"] = verificationProof;
2717 }
2718 return _json;
2719 }
2720 }
2721
2722 /// Response for Identitytoolkit-VerifyPhoneNumber
2723 class IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse {
2724 core.String expiresIn;
2725 core.String idToken;
2726 core.bool isNewUser;
2727 core.String localId;
2728 core.String phoneNumber;
2729 core.String refreshToken;
2730 core.String temporaryProof;
2731 core.String temporaryProofExpiresIn;
2732 core.String verificationProof;
2733 core.String verificationProofExpiresIn;
2734
2735 IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse();
2736
2737 IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.fromJson(
2738 core.Map _json) {
2739 if (_json.containsKey("expiresIn")) {
2740 expiresIn = _json["expiresIn"];
2741 }
2742 if (_json.containsKey("idToken")) {
2743 idToken = _json["idToken"];
2744 }
2745 if (_json.containsKey("isNewUser")) {
2746 isNewUser = _json["isNewUser"];
2747 }
2748 if (_json.containsKey("localId")) {
2749 localId = _json["localId"];
2750 }
2751 if (_json.containsKey("phoneNumber")) {
2752 phoneNumber = _json["phoneNumber"];
2753 }
2754 if (_json.containsKey("refreshToken")) {
2755 refreshToken = _json["refreshToken"];
2756 }
2757 if (_json.containsKey("temporaryProof")) {
2758 temporaryProof = _json["temporaryProof"];
2759 }
2760 if (_json.containsKey("temporaryProofExpiresIn")) {
2761 temporaryProofExpiresIn = _json["temporaryProofExpiresIn"];
2762 }
2763 if (_json.containsKey("verificationProof")) {
2764 verificationProof = _json["verificationProof"];
2765 }
2766 if (_json.containsKey("verificationProofExpiresIn")) {
2767 verificationProofExpiresIn = _json["verificationProofExpiresIn"];
2768 }
2769 }
2770
2771 core.Map<core.String, core.Object> toJson() {
2772 final core.Map<core.String, core.Object> _json =
2773 new core.Map<core.String, core.Object>();
2774 if (expiresIn != null) {
2775 _json["expiresIn"] = expiresIn;
2776 }
2777 if (idToken != null) {
2778 _json["idToken"] = idToken;
2779 }
2780 if (isNewUser != null) {
2781 _json["isNewUser"] = isNewUser;
2782 }
2783 if (localId != null) {
2784 _json["localId"] = localId;
2785 }
2786 if (phoneNumber != null) {
2787 _json["phoneNumber"] = phoneNumber;
2788 }
2789 if (refreshToken != null) {
2790 _json["refreshToken"] = refreshToken;
2791 }
2792 if (temporaryProof != null) {
2793 _json["temporaryProof"] = temporaryProof;
2794 }
2795 if (temporaryProofExpiresIn != null) {
2796 _json["temporaryProofExpiresIn"] = temporaryProofExpiresIn;
2797 }
2798 if (verificationProof != null) {
2799 _json["verificationProof"] = verificationProof;
2800 }
2801 if (verificationProofExpiresIn != null) {
2802 _json["verificationProofExpiresIn"] = verificationProofExpiresIn;
2803 }
2804 return _json;
2805 }
2806 }
2807
2808 /// Template for a single idp configuration.
2386 class IdpConfig { 2809 class IdpConfig {
2387 /** OAuth2 client ID. */ 2810 /// OAuth2 client ID.
2388 core.String clientId; 2811 core.String clientId;
2389 /** Whether this IDP is enabled. */ 2812
2813 /// Whether this IDP is enabled.
2390 core.bool enabled; 2814 core.bool enabled;
2391 /** 2815
2392 * Percent of users who will be prompted/redirected federated login for this 2816 /// Percent of users who will be prompted/redirected federated login for this
2393 * IDP. 2817 /// IDP.
2394 */
2395 core.int experimentPercent; 2818 core.int experimentPercent;
2396 /** OAuth2 provider. */ 2819
2820 /// OAuth2 provider.
2397 core.String provider; 2821 core.String provider;
2398 /** OAuth2 client secret. */ 2822
2823 /// OAuth2 client secret.
2399 core.String secret; 2824 core.String secret;
2400 /** Whitelisted client IDs for audience check. */ 2825
2826 /// Whitelisted client IDs for audience check.
2401 core.List<core.String> whitelistedAudiences; 2827 core.List<core.String> whitelistedAudiences;
2402 2828
2403 IdpConfig(); 2829 IdpConfig();
2404 2830
2405 IdpConfig.fromJson(core.Map _json) { 2831 IdpConfig.fromJson(core.Map _json) {
2406 if (_json.containsKey("clientId")) { 2832 if (_json.containsKey("clientId")) {
2407 clientId = _json["clientId"]; 2833 clientId = _json["clientId"];
2408 } 2834 }
2409 if (_json.containsKey("enabled")) { 2835 if (_json.containsKey("enabled")) {
2410 enabled = _json["enabled"]; 2836 enabled = _json["enabled"];
2411 } 2837 }
2412 if (_json.containsKey("experimentPercent")) { 2838 if (_json.containsKey("experimentPercent")) {
2413 experimentPercent = _json["experimentPercent"]; 2839 experimentPercent = _json["experimentPercent"];
2414 } 2840 }
2415 if (_json.containsKey("provider")) { 2841 if (_json.containsKey("provider")) {
2416 provider = _json["provider"]; 2842 provider = _json["provider"];
2417 } 2843 }
2418 if (_json.containsKey("secret")) { 2844 if (_json.containsKey("secret")) {
2419 secret = _json["secret"]; 2845 secret = _json["secret"];
2420 } 2846 }
2421 if (_json.containsKey("whitelistedAudiences")) { 2847 if (_json.containsKey("whitelistedAudiences")) {
2422 whitelistedAudiences = _json["whitelistedAudiences"]; 2848 whitelistedAudiences = _json["whitelistedAudiences"];
2423 } 2849 }
2424 } 2850 }
2425 2851
2426 core.Map<core.String, core.Object> toJson() { 2852 core.Map<core.String, core.Object> toJson() {
2427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2853 final core.Map<core.String, core.Object> _json =
2854 new core.Map<core.String, core.Object>();
2428 if (clientId != null) { 2855 if (clientId != null) {
2429 _json["clientId"] = clientId; 2856 _json["clientId"] = clientId;
2430 } 2857 }
2431 if (enabled != null) { 2858 if (enabled != null) {
2432 _json["enabled"] = enabled; 2859 _json["enabled"] = enabled;
2433 } 2860 }
2434 if (experimentPercent != null) { 2861 if (experimentPercent != null) {
2435 _json["experimentPercent"] = experimentPercent; 2862 _json["experimentPercent"] = experimentPercent;
2436 } 2863 }
2437 if (provider != null) { 2864 if (provider != null) {
2438 _json["provider"] = provider; 2865 _json["provider"] = provider;
2439 } 2866 }
2440 if (secret != null) { 2867 if (secret != null) {
2441 _json["secret"] = secret; 2868 _json["secret"] = secret;
2442 } 2869 }
2443 if (whitelistedAudiences != null) { 2870 if (whitelistedAudiences != null) {
2444 _json["whitelistedAudiences"] = whitelistedAudiences; 2871 _json["whitelistedAudiences"] = whitelistedAudiences;
2445 } 2872 }
2446 return _json; 2873 return _json;
2447 } 2874 }
2448 } 2875 }
2449 2876
2450 /** 2877 /// Request of getting a code for user confirmation (reset password, change
2451 * Request of getting a code for user confirmation (reset password, change email 2878 /// email etc.)
2452 * etc.)
2453 */
2454 class Relyingparty { 2879 class Relyingparty {
2455 /** 2880 /// whether or not to install the android app on the device where the link is
2456 * whether or not to install the android app on the device where the link is 2881 /// opened
2457 * opened
2458 */
2459 core.bool androidInstallApp; 2882 core.bool androidInstallApp;
2460 /** 2883
2461 * minimum version of the app. if the version on the device is lower than this 2884 /// minimum version of the app. if the version on the device is lower than
2462 * version then the user is taken to the play store to upgrade the app 2885 /// this version then the user is taken to the play store to upgrade the app
2463 */
2464 core.String androidMinimumVersion; 2886 core.String androidMinimumVersion;
2465 /** android package name of the android app to handle the action code */ 2887
2888 /// android package name of the android app to handle the action code
2466 core.String androidPackageName; 2889 core.String androidPackageName;
2467 /** 2890
2468 * whether or not the app can handle the oob code without first going to web 2891 /// whether or not the app can handle the oob code without first going to web
2469 */
2470 core.bool canHandleCodeInApp; 2892 core.bool canHandleCodeInApp;
2471 /** The recaptcha response from the user. */ 2893
2894 /// The recaptcha response from the user.
2472 core.String captchaResp; 2895 core.String captchaResp;
2473 /** The recaptcha challenge presented to the user. */ 2896
2897 /// The recaptcha challenge presented to the user.
2474 core.String challenge; 2898 core.String challenge;
2475 /** The url to continue to the Gitkit app */ 2899
2900 /// The url to continue to the Gitkit app
2476 core.String continueUrl; 2901 core.String continueUrl;
2477 /** The email of the user. */ 2902
2903 /// The email of the user.
2478 core.String email; 2904 core.String email;
2479 /** iOS app store id to download the app if it's not already installed */ 2905
2906 /// iOS app store id to download the app if it's not already installed
2480 core.String iOSAppStoreId; 2907 core.String iOSAppStoreId;
2481 /** the iOS bundle id of iOS app to handle the action code */ 2908
2909 /// the iOS bundle id of iOS app to handle the action code
2482 core.String iOSBundleId; 2910 core.String iOSBundleId;
2483 /** The user's Gitkit login token for email change. */ 2911
2912 /// The user's Gitkit login token for email change.
2484 core.String idToken; 2913 core.String idToken;
2485 /** The fixed string "identitytoolkit#relyingparty". */ 2914
2915 /// The fixed string "identitytoolkit#relyingparty".
2486 core.String kind; 2916 core.String kind;
2487 /** The new email if the code is for email change. */ 2917
2918 /// The new email if the code is for email change.
2488 core.String newEmail; 2919 core.String newEmail;
2489 /** The request type. */ 2920
2921 /// The request type.
2490 core.String requestType; 2922 core.String requestType;
2491 /** The IP address of the user. */ 2923
2924 /// The IP address of the user.
2492 core.String userIp; 2925 core.String userIp;
2493 2926
2494 Relyingparty(); 2927 Relyingparty();
2495 2928
2496 Relyingparty.fromJson(core.Map _json) { 2929 Relyingparty.fromJson(core.Map _json) {
2497 if (_json.containsKey("androidInstallApp")) { 2930 if (_json.containsKey("androidInstallApp")) {
2498 androidInstallApp = _json["androidInstallApp"]; 2931 androidInstallApp = _json["androidInstallApp"];
2499 } 2932 }
2500 if (_json.containsKey("androidMinimumVersion")) { 2933 if (_json.containsKey("androidMinimumVersion")) {
2501 androidMinimumVersion = _json["androidMinimumVersion"]; 2934 androidMinimumVersion = _json["androidMinimumVersion"];
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 } 2968 }
2536 if (_json.containsKey("requestType")) { 2969 if (_json.containsKey("requestType")) {
2537 requestType = _json["requestType"]; 2970 requestType = _json["requestType"];
2538 } 2971 }
2539 if (_json.containsKey("userIp")) { 2972 if (_json.containsKey("userIp")) {
2540 userIp = _json["userIp"]; 2973 userIp = _json["userIp"];
2541 } 2974 }
2542 } 2975 }
2543 2976
2544 core.Map<core.String, core.Object> toJson() { 2977 core.Map<core.String, core.Object> toJson() {
2545 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2978 final core.Map<core.String, core.Object> _json =
2979 new core.Map<core.String, core.Object>();
2546 if (androidInstallApp != null) { 2980 if (androidInstallApp != null) {
2547 _json["androidInstallApp"] = androidInstallApp; 2981 _json["androidInstallApp"] = androidInstallApp;
2548 } 2982 }
2549 if (androidMinimumVersion != null) { 2983 if (androidMinimumVersion != null) {
2550 _json["androidMinimumVersion"] = androidMinimumVersion; 2984 _json["androidMinimumVersion"] = androidMinimumVersion;
2551 } 2985 }
2552 if (androidPackageName != null) { 2986 if (androidPackageName != null) {
2553 _json["androidPackageName"] = androidPackageName; 2987 _json["androidPackageName"] = androidPackageName;
2554 } 2988 }
2555 if (canHandleCodeInApp != null) { 2989 if (canHandleCodeInApp != null) {
(...skipping 29 matching lines...) Expand all
2585 if (requestType != null) { 3019 if (requestType != null) {
2586 _json["requestType"] = requestType; 3020 _json["requestType"] = requestType;
2587 } 3021 }
2588 if (userIp != null) { 3022 if (userIp != null) {
2589 _json["userIp"] = userIp; 3023 _json["userIp"] = userIp;
2590 } 3024 }
2591 return _json; 3025 return _json;
2592 } 3026 }
2593 } 3027 }
2594 3028
2595 /** Response of resetting the password. */ 3029 /// Response of resetting the password.
2596 class ResetPasswordResponse { 3030 class ResetPasswordResponse {
2597 /** 3031 /// The user's email. If the out-of-band code is for email recovery, the
2598 * The user's email. If the out-of-band code is for email recovery, the user's 3032 /// user's original email.
2599 * original email.
2600 */
2601 core.String email; 3033 core.String email;
2602 /** The fixed string "identitytoolkit#ResetPasswordResponse". */ 3034
3035 /// The fixed string "identitytoolkit#ResetPasswordResponse".
2603 core.String kind; 3036 core.String kind;
2604 /** If the out-of-band code is for email recovery, the user's new email. */ 3037
3038 /// If the out-of-band code is for email recovery, the user's new email.
2605 core.String newEmail; 3039 core.String newEmail;
2606 /** The request type. */ 3040
3041 /// The request type.
2607 core.String requestType; 3042 core.String requestType;
2608 3043
2609 ResetPasswordResponse(); 3044 ResetPasswordResponse();
2610 3045
2611 ResetPasswordResponse.fromJson(core.Map _json) { 3046 ResetPasswordResponse.fromJson(core.Map _json) {
2612 if (_json.containsKey("email")) { 3047 if (_json.containsKey("email")) {
2613 email = _json["email"]; 3048 email = _json["email"];
2614 } 3049 }
2615 if (_json.containsKey("kind")) { 3050 if (_json.containsKey("kind")) {
2616 kind = _json["kind"]; 3051 kind = _json["kind"];
2617 } 3052 }
2618 if (_json.containsKey("newEmail")) { 3053 if (_json.containsKey("newEmail")) {
2619 newEmail = _json["newEmail"]; 3054 newEmail = _json["newEmail"];
2620 } 3055 }
2621 if (_json.containsKey("requestType")) { 3056 if (_json.containsKey("requestType")) {
2622 requestType = _json["requestType"]; 3057 requestType = _json["requestType"];
2623 } 3058 }
2624 } 3059 }
2625 3060
2626 core.Map<core.String, core.Object> toJson() { 3061 core.Map<core.String, core.Object> toJson() {
2627 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3062 final core.Map<core.String, core.Object> _json =
3063 new core.Map<core.String, core.Object>();
2628 if (email != null) { 3064 if (email != null) {
2629 _json["email"] = email; 3065 _json["email"] = email;
2630 } 3066 }
2631 if (kind != null) { 3067 if (kind != null) {
2632 _json["kind"] = kind; 3068 _json["kind"] = kind;
2633 } 3069 }
2634 if (newEmail != null) { 3070 if (newEmail != null) {
2635 _json["newEmail"] = newEmail; 3071 _json["newEmail"] = newEmail;
2636 } 3072 }
2637 if (requestType != null) { 3073 if (requestType != null) {
2638 _json["requestType"] = requestType; 3074 _json["requestType"] = requestType;
2639 } 3075 }
2640 return _json; 3076 return _json;
2641 } 3077 }
2642 } 3078 }
2643 3079
2644 class SetAccountInfoResponseProviderUserInfo { 3080 class SetAccountInfoResponseProviderUserInfo {
2645 /** The user's display name at the IDP. */ 3081 /// The user's display name at the IDP.
2646 core.String displayName; 3082 core.String displayName;
2647 /** User's identifier at IDP. */ 3083
3084 /// User's identifier at IDP.
2648 core.String federatedId; 3085 core.String federatedId;
2649 /** The user's photo url at the IDP. */ 3086
3087 /// The user's photo url at the IDP.
2650 core.String photoUrl; 3088 core.String photoUrl;
2651 /** 3089
2652 * The IdP ID. For whitelisted IdPs it's a short domain name, e.g., 3090 /// The IdP ID. For whitelisted IdPs it's a short domain name, e.g.,
2653 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the 3091 /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
2654 * OP identifier. 3092 /// the OP identifier.
2655 */
2656 core.String providerId; 3093 core.String providerId;
2657 3094
2658 SetAccountInfoResponseProviderUserInfo(); 3095 SetAccountInfoResponseProviderUserInfo();
2659 3096
2660 SetAccountInfoResponseProviderUserInfo.fromJson(core.Map _json) { 3097 SetAccountInfoResponseProviderUserInfo.fromJson(core.Map _json) {
2661 if (_json.containsKey("displayName")) { 3098 if (_json.containsKey("displayName")) {
2662 displayName = _json["displayName"]; 3099 displayName = _json["displayName"];
2663 } 3100 }
2664 if (_json.containsKey("federatedId")) { 3101 if (_json.containsKey("federatedId")) {
2665 federatedId = _json["federatedId"]; 3102 federatedId = _json["federatedId"];
2666 } 3103 }
2667 if (_json.containsKey("photoUrl")) { 3104 if (_json.containsKey("photoUrl")) {
2668 photoUrl = _json["photoUrl"]; 3105 photoUrl = _json["photoUrl"];
2669 } 3106 }
2670 if (_json.containsKey("providerId")) { 3107 if (_json.containsKey("providerId")) {
2671 providerId = _json["providerId"]; 3108 providerId = _json["providerId"];
2672 } 3109 }
2673 } 3110 }
2674 3111
2675 core.Map<core.String, core.Object> toJson() { 3112 core.Map<core.String, core.Object> toJson() {
2676 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3113 final core.Map<core.String, core.Object> _json =
3114 new core.Map<core.String, core.Object>();
2677 if (displayName != null) { 3115 if (displayName != null) {
2678 _json["displayName"] = displayName; 3116 _json["displayName"] = displayName;
2679 } 3117 }
2680 if (federatedId != null) { 3118 if (federatedId != null) {
2681 _json["federatedId"] = federatedId; 3119 _json["federatedId"] = federatedId;
2682 } 3120 }
2683 if (photoUrl != null) { 3121 if (photoUrl != null) {
2684 _json["photoUrl"] = photoUrl; 3122 _json["photoUrl"] = photoUrl;
2685 } 3123 }
2686 if (providerId != null) { 3124 if (providerId != null) {
2687 _json["providerId"] = providerId; 3125 _json["providerId"] = providerId;
2688 } 3126 }
2689 return _json; 3127 return _json;
2690 } 3128 }
2691 } 3129 }
2692 3130
2693 /** Respone of setting the account information. */ 3131 /// Respone of setting the account information.
2694 class SetAccountInfoResponse { 3132 class SetAccountInfoResponse {
2695 /** The name of the user. */ 3133 /// The name of the user.
2696 core.String displayName; 3134 core.String displayName;
2697 /** The email of the user. */ 3135
3136 /// The email of the user.
2698 core.String email; 3137 core.String email;
2699 /** If email has been verified. */ 3138
3139 /// If email has been verified.
2700 core.bool emailVerified; 3140 core.bool emailVerified;
2701 /** 3141
2702 * If idToken is STS id token, then this field will be expiration time of STS 3142 /// If idToken is STS id token, then this field will be expiration time of
2703 * id token in seconds. 3143 /// STS id token in seconds.
2704 */
2705 core.String expiresIn; 3144 core.String expiresIn;
2706 /** The Gitkit id token to login the newly sign up user. */ 3145
3146 /// The Gitkit id token to login the newly sign up user.
2707 core.String idToken; 3147 core.String idToken;
2708 /** The fixed string "identitytoolkit#SetAccountInfoResponse". */ 3148
3149 /// The fixed string "identitytoolkit#SetAccountInfoResponse".
2709 core.String kind; 3150 core.String kind;
2710 /** The local ID of the user. */ 3151
3152 /// The local ID of the user.
2711 core.String localId; 3153 core.String localId;
2712 /** The new email the user attempts to change to. */ 3154
3155 /// The new email the user attempts to change to.
2713 core.String newEmail; 3156 core.String newEmail;
2714 /** The user's hashed password. */ 3157
3158 /// The user's hashed password.
2715 core.String passwordHash; 3159 core.String passwordHash;
2716 core.List<core.int> get passwordHashAsBytes { 3160 core.List<core.int> get passwordHashAsBytes {
2717 return convert.BASE64.decode(passwordHash); 3161 return convert.BASE64.decode(passwordHash);
2718 } 3162 }
2719 3163
2720 void set passwordHashAsBytes(core.List<core.int> _bytes) { 3164 void set passwordHashAsBytes(core.List<core.int> _bytes) {
2721 passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-"); 3165 passwordHash =
3166 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
2722 } 3167 }
2723 /** The photo url of the user. */ 3168
3169 /// The photo url of the user.
2724 core.String photoUrl; 3170 core.String photoUrl;
2725 /** The user's profiles at the associated IdPs. */ 3171
3172 /// The user's profiles at the associated IdPs.
2726 core.List<SetAccountInfoResponseProviderUserInfo> providerUserInfo; 3173 core.List<SetAccountInfoResponseProviderUserInfo> providerUserInfo;
2727 /** If idToken is STS id token, then this field will be refresh token. */ 3174
3175 /// If idToken is STS id token, then this field will be refresh token.
2728 core.String refreshToken; 3176 core.String refreshToken;
2729 3177
2730 SetAccountInfoResponse(); 3178 SetAccountInfoResponse();
2731 3179
2732 SetAccountInfoResponse.fromJson(core.Map _json) { 3180 SetAccountInfoResponse.fromJson(core.Map _json) {
2733 if (_json.containsKey("displayName")) { 3181 if (_json.containsKey("displayName")) {
2734 displayName = _json["displayName"]; 3182 displayName = _json["displayName"];
2735 } 3183 }
2736 if (_json.containsKey("email")) { 3184 if (_json.containsKey("email")) {
2737 email = _json["email"]; 3185 email = _json["email"];
(...skipping 16 matching lines...) Expand all
2754 if (_json.containsKey("newEmail")) { 3202 if (_json.containsKey("newEmail")) {
2755 newEmail = _json["newEmail"]; 3203 newEmail = _json["newEmail"];
2756 } 3204 }
2757 if (_json.containsKey("passwordHash")) { 3205 if (_json.containsKey("passwordHash")) {
2758 passwordHash = _json["passwordHash"]; 3206 passwordHash = _json["passwordHash"];
2759 } 3207 }
2760 if (_json.containsKey("photoUrl")) { 3208 if (_json.containsKey("photoUrl")) {
2761 photoUrl = _json["photoUrl"]; 3209 photoUrl = _json["photoUrl"];
2762 } 3210 }
2763 if (_json.containsKey("providerUserInfo")) { 3211 if (_json.containsKey("providerUserInfo")) {
2764 providerUserInfo = _json["providerUserInfo"].map((value) => new SetAccount InfoResponseProviderUserInfo.fromJson(value)).toList(); 3212 providerUserInfo = _json["providerUserInfo"]
3213 .map((value) =>
3214 new SetAccountInfoResponseProviderUserInfo.fromJson(value))
3215 .toList();
2765 } 3216 }
2766 if (_json.containsKey("refreshToken")) { 3217 if (_json.containsKey("refreshToken")) {
2767 refreshToken = _json["refreshToken"]; 3218 refreshToken = _json["refreshToken"];
2768 } 3219 }
2769 } 3220 }
2770 3221
2771 core.Map<core.String, core.Object> toJson() { 3222 core.Map<core.String, core.Object> toJson() {
2772 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3223 final core.Map<core.String, core.Object> _json =
3224 new core.Map<core.String, core.Object>();
2773 if (displayName != null) { 3225 if (displayName != null) {
2774 _json["displayName"] = displayName; 3226 _json["displayName"] = displayName;
2775 } 3227 }
2776 if (email != null) { 3228 if (email != null) {
2777 _json["email"] = email; 3229 _json["email"] = email;
2778 } 3230 }
2779 if (emailVerified != null) { 3231 if (emailVerified != null) {
2780 _json["emailVerified"] = emailVerified; 3232 _json["emailVerified"] = emailVerified;
2781 } 3233 }
2782 if (expiresIn != null) { 3234 if (expiresIn != null) {
(...skipping 11 matching lines...) Expand all
2794 if (newEmail != null) { 3246 if (newEmail != null) {
2795 _json["newEmail"] = newEmail; 3247 _json["newEmail"] = newEmail;
2796 } 3248 }
2797 if (passwordHash != null) { 3249 if (passwordHash != null) {
2798 _json["passwordHash"] = passwordHash; 3250 _json["passwordHash"] = passwordHash;
2799 } 3251 }
2800 if (photoUrl != null) { 3252 if (photoUrl != null) {
2801 _json["photoUrl"] = photoUrl; 3253 _json["photoUrl"] = photoUrl;
2802 } 3254 }
2803 if (providerUserInfo != null) { 3255 if (providerUserInfo != null) {
2804 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson ()).toList(); 3256 _json["providerUserInfo"] =
3257 providerUserInfo.map((value) => (value).toJson()).toList();
2805 } 3258 }
2806 if (refreshToken != null) { 3259 if (refreshToken != null) {
2807 _json["refreshToken"] = refreshToken; 3260 _json["refreshToken"] = refreshToken;
2808 } 3261 }
2809 return _json; 3262 return _json;
2810 } 3263 }
2811 } 3264 }
2812 3265
2813 /** 3266 /// Response of signing up new user, creating anonymous user or anonymous user
2814 * Response of signing up new user, creating anonymous user or anonymous user 3267 /// reauth.
2815 * reauth.
2816 */
2817 class SignupNewUserResponse { 3268 class SignupNewUserResponse {
2818 /** The name of the user. */ 3269 /// The name of the user.
2819 core.String displayName; 3270 core.String displayName;
2820 /** The email of the user. */ 3271
3272 /// The email of the user.
2821 core.String email; 3273 core.String email;
2822 /** 3274
2823 * If idToken is STS id token, then this field will be expiration time of STS 3275 /// If idToken is STS id token, then this field will be expiration time of
2824 * id token in seconds. 3276 /// STS id token in seconds.
2825 */
2826 core.String expiresIn; 3277 core.String expiresIn;
2827 /** The Gitkit id token to login the newly sign up user. */ 3278
3279 /// The Gitkit id token to login the newly sign up user.
2828 core.String idToken; 3280 core.String idToken;
2829 /** The fixed string "identitytoolkit#SignupNewUserResponse". */ 3281
3282 /// The fixed string "identitytoolkit#SignupNewUserResponse".
2830 core.String kind; 3283 core.String kind;
2831 /** The RP local ID of the user. */ 3284
3285 /// The RP local ID of the user.
2832 core.String localId; 3286 core.String localId;
2833 /** If idToken is STS id token, then this field will be refresh token. */ 3287
3288 /// If idToken is STS id token, then this field will be refresh token.
2834 core.String refreshToken; 3289 core.String refreshToken;
2835 3290
2836 SignupNewUserResponse(); 3291 SignupNewUserResponse();
2837 3292
2838 SignupNewUserResponse.fromJson(core.Map _json) { 3293 SignupNewUserResponse.fromJson(core.Map _json) {
2839 if (_json.containsKey("displayName")) { 3294 if (_json.containsKey("displayName")) {
2840 displayName = _json["displayName"]; 3295 displayName = _json["displayName"];
2841 } 3296 }
2842 if (_json.containsKey("email")) { 3297 if (_json.containsKey("email")) {
2843 email = _json["email"]; 3298 email = _json["email"];
2844 } 3299 }
2845 if (_json.containsKey("expiresIn")) { 3300 if (_json.containsKey("expiresIn")) {
2846 expiresIn = _json["expiresIn"]; 3301 expiresIn = _json["expiresIn"];
2847 } 3302 }
2848 if (_json.containsKey("idToken")) { 3303 if (_json.containsKey("idToken")) {
2849 idToken = _json["idToken"]; 3304 idToken = _json["idToken"];
2850 } 3305 }
2851 if (_json.containsKey("kind")) { 3306 if (_json.containsKey("kind")) {
2852 kind = _json["kind"]; 3307 kind = _json["kind"];
2853 } 3308 }
2854 if (_json.containsKey("localId")) { 3309 if (_json.containsKey("localId")) {
2855 localId = _json["localId"]; 3310 localId = _json["localId"];
2856 } 3311 }
2857 if (_json.containsKey("refreshToken")) { 3312 if (_json.containsKey("refreshToken")) {
2858 refreshToken = _json["refreshToken"]; 3313 refreshToken = _json["refreshToken"];
2859 } 3314 }
2860 } 3315 }
2861 3316
2862 core.Map<core.String, core.Object> toJson() { 3317 core.Map<core.String, core.Object> toJson() {
2863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3318 final core.Map<core.String, core.Object> _json =
3319 new core.Map<core.String, core.Object>();
2864 if (displayName != null) { 3320 if (displayName != null) {
2865 _json["displayName"] = displayName; 3321 _json["displayName"] = displayName;
2866 } 3322 }
2867 if (email != null) { 3323 if (email != null) {
2868 _json["email"] = email; 3324 _json["email"] = email;
2869 } 3325 }
2870 if (expiresIn != null) { 3326 if (expiresIn != null) {
2871 _json["expiresIn"] = expiresIn; 3327 _json["expiresIn"] = expiresIn;
2872 } 3328 }
2873 if (idToken != null) { 3329 if (idToken != null) {
2874 _json["idToken"] = idToken; 3330 _json["idToken"] = idToken;
2875 } 3331 }
2876 if (kind != null) { 3332 if (kind != null) {
2877 _json["kind"] = kind; 3333 _json["kind"] = kind;
2878 } 3334 }
2879 if (localId != null) { 3335 if (localId != null) {
2880 _json["localId"] = localId; 3336 _json["localId"] = localId;
2881 } 3337 }
2882 if (refreshToken != null) { 3338 if (refreshToken != null) {
2883 _json["refreshToken"] = refreshToken; 3339 _json["refreshToken"] = refreshToken;
2884 } 3340 }
2885 return _json; 3341 return _json;
2886 } 3342 }
2887 } 3343 }
2888 3344
2889 class UploadAccountResponseError { 3345 class UploadAccountResponseError {
2890 /** The index of the malformed account, starting from 0. */ 3346 /// The index of the malformed account, starting from 0.
2891 core.int index; 3347 core.int index;
2892 /** Detailed error message for the account info. */ 3348
3349 /// Detailed error message for the account info.
2893 core.String message; 3350 core.String message;
2894 3351
2895 UploadAccountResponseError(); 3352 UploadAccountResponseError();
2896 3353
2897 UploadAccountResponseError.fromJson(core.Map _json) { 3354 UploadAccountResponseError.fromJson(core.Map _json) {
2898 if (_json.containsKey("index")) { 3355 if (_json.containsKey("index")) {
2899 index = _json["index"]; 3356 index = _json["index"];
2900 } 3357 }
2901 if (_json.containsKey("message")) { 3358 if (_json.containsKey("message")) {
2902 message = _json["message"]; 3359 message = _json["message"];
2903 } 3360 }
2904 } 3361 }
2905 3362
2906 core.Map<core.String, core.Object> toJson() { 3363 core.Map<core.String, core.Object> toJson() {
2907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3364 final core.Map<core.String, core.Object> _json =
3365 new core.Map<core.String, core.Object>();
2908 if (index != null) { 3366 if (index != null) {
2909 _json["index"] = index; 3367 _json["index"] = index;
2910 } 3368 }
2911 if (message != null) { 3369 if (message != null) {
2912 _json["message"] = message; 3370 _json["message"] = message;
2913 } 3371 }
2914 return _json; 3372 return _json;
2915 } 3373 }
2916 } 3374 }
2917 3375
2918 /** Respone of uploading accounts in batch. */ 3376 /// Respone of uploading accounts in batch.
2919 class UploadAccountResponse { 3377 class UploadAccountResponse {
2920 /** The error encountered while processing the account info. */ 3378 /// The error encountered while processing the account info.
2921 core.List<UploadAccountResponseError> error; 3379 core.List<UploadAccountResponseError> error;
2922 /** The fixed string "identitytoolkit#UploadAccountResponse". */ 3380
3381 /// The fixed string "identitytoolkit#UploadAccountResponse".
2923 core.String kind; 3382 core.String kind;
2924 3383
2925 UploadAccountResponse(); 3384 UploadAccountResponse();
2926 3385
2927 UploadAccountResponse.fromJson(core.Map _json) { 3386 UploadAccountResponse.fromJson(core.Map _json) {
2928 if (_json.containsKey("error")) { 3387 if (_json.containsKey("error")) {
2929 error = _json["error"].map((value) => new UploadAccountResponseError.fromJ son(value)).toList(); 3388 error = _json["error"]
3389 .map((value) => new UploadAccountResponseError.fromJson(value))
3390 .toList();
2930 } 3391 }
2931 if (_json.containsKey("kind")) { 3392 if (_json.containsKey("kind")) {
2932 kind = _json["kind"]; 3393 kind = _json["kind"];
2933 } 3394 }
2934 } 3395 }
2935 3396
2936 core.Map<core.String, core.Object> toJson() { 3397 core.Map<core.String, core.Object> toJson() {
2937 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3398 final core.Map<core.String, core.Object> _json =
3399 new core.Map<core.String, core.Object>();
2938 if (error != null) { 3400 if (error != null) {
2939 _json["error"] = error.map((value) => (value).toJson()).toList(); 3401 _json["error"] = error.map((value) => (value).toJson()).toList();
2940 } 3402 }
2941 if (kind != null) { 3403 if (kind != null) {
2942 _json["kind"] = kind; 3404 _json["kind"] = kind;
2943 } 3405 }
2944 return _json; 3406 return _json;
2945 } 3407 }
2946 } 3408 }
2947 3409
2948 class UserInfoProviderUserInfo { 3410 class UserInfoProviderUserInfo {
2949 /** The user's display name at the IDP. */ 3411 /// The user's display name at the IDP.
2950 core.String displayName; 3412 core.String displayName;
2951 /** User's email at IDP. */ 3413
3414 /// User's email at IDP.
2952 core.String email; 3415 core.String email;
2953 /** User's identifier at IDP. */ 3416
3417 /// User's identifier at IDP.
2954 core.String federatedId; 3418 core.String federatedId;
2955 /** User's phone number. */ 3419
3420 /// User's phone number.
2956 core.String phoneNumber; 3421 core.String phoneNumber;
2957 /** The user's photo url at the IDP. */ 3422
3423 /// The user's photo url at the IDP.
2958 core.String photoUrl; 3424 core.String photoUrl;
2959 /** 3425
2960 * The IdP ID. For white listed IdPs it's a short domain name, e.g., 3426 /// The IdP ID. For white listed IdPs it's a short domain name, e.g.,
2961 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the 3427 /// google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's
2962 * OP identifier. 3428 /// the OP identifier.
2963 */
2964 core.String providerId; 3429 core.String providerId;
2965 /** User's raw identifier directly returned from IDP. */ 3430
3431 /// User's raw identifier directly returned from IDP.
2966 core.String rawId; 3432 core.String rawId;
2967 /** User's screen name at Twitter or login name at Github. */ 3433
3434 /// User's screen name at Twitter or login name at Github.
2968 core.String screenName; 3435 core.String screenName;
2969 3436
2970 UserInfoProviderUserInfo(); 3437 UserInfoProviderUserInfo();
2971 3438
2972 UserInfoProviderUserInfo.fromJson(core.Map _json) { 3439 UserInfoProviderUserInfo.fromJson(core.Map _json) {
2973 if (_json.containsKey("displayName")) { 3440 if (_json.containsKey("displayName")) {
2974 displayName = _json["displayName"]; 3441 displayName = _json["displayName"];
2975 } 3442 }
2976 if (_json.containsKey("email")) { 3443 if (_json.containsKey("email")) {
2977 email = _json["email"]; 3444 email = _json["email"];
(...skipping 12 matching lines...) Expand all
2990 } 3457 }
2991 if (_json.containsKey("rawId")) { 3458 if (_json.containsKey("rawId")) {
2992 rawId = _json["rawId"]; 3459 rawId = _json["rawId"];
2993 } 3460 }
2994 if (_json.containsKey("screenName")) { 3461 if (_json.containsKey("screenName")) {
2995 screenName = _json["screenName"]; 3462 screenName = _json["screenName"];
2996 } 3463 }
2997 } 3464 }
2998 3465
2999 core.Map<core.String, core.Object> toJson() { 3466 core.Map<core.String, core.Object> toJson() {
3000 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3467 final core.Map<core.String, core.Object> _json =
3468 new core.Map<core.String, core.Object>();
3001 if (displayName != null) { 3469 if (displayName != null) {
3002 _json["displayName"] = displayName; 3470 _json["displayName"] = displayName;
3003 } 3471 }
3004 if (email != null) { 3472 if (email != null) {
3005 _json["email"] = email; 3473 _json["email"] = email;
3006 } 3474 }
3007 if (federatedId != null) { 3475 if (federatedId != null) {
3008 _json["federatedId"] = federatedId; 3476 _json["federatedId"] = federatedId;
3009 } 3477 }
3010 if (phoneNumber != null) { 3478 if (phoneNumber != null) {
3011 _json["phoneNumber"] = phoneNumber; 3479 _json["phoneNumber"] = phoneNumber;
3012 } 3480 }
3013 if (photoUrl != null) { 3481 if (photoUrl != null) {
3014 _json["photoUrl"] = photoUrl; 3482 _json["photoUrl"] = photoUrl;
3015 } 3483 }
3016 if (providerId != null) { 3484 if (providerId != null) {
3017 _json["providerId"] = providerId; 3485 _json["providerId"] = providerId;
3018 } 3486 }
3019 if (rawId != null) { 3487 if (rawId != null) {
3020 _json["rawId"] = rawId; 3488 _json["rawId"] = rawId;
3021 } 3489 }
3022 if (screenName != null) { 3490 if (screenName != null) {
3023 _json["screenName"] = screenName; 3491 _json["screenName"] = screenName;
3024 } 3492 }
3025 return _json; 3493 return _json;
3026 } 3494 }
3027 } 3495 }
3028 3496
3029 /** Template for an individual account info. */ 3497 /// Template for an individual account info.
3030 class UserInfo { 3498 class UserInfo {
3031 /** User creation timestamp. */ 3499 /// User creation timestamp.
3032 core.String createdAt; 3500 core.String createdAt;
3033 /** Whether the user is authenticated by the developer. */ 3501
3502 /// The custom attributes to be set in the user's id token.
3503 core.String customAttributes;
3504
3505 /// Whether the user is authenticated by the developer.
3034 core.bool customAuth; 3506 core.bool customAuth;
3035 /** Whether the user is disabled. */ 3507
3508 /// Whether the user is disabled.
3036 core.bool disabled; 3509 core.bool disabled;
3037 /** The name of the user. */ 3510
3511 /// The name of the user.
3038 core.String displayName; 3512 core.String displayName;
3039 /** The email of the user. */ 3513
3514 /// The email of the user.
3040 core.String email; 3515 core.String email;
3041 /** Whether the email has been verified. */ 3516
3517 /// Whether the email has been verified.
3042 core.bool emailVerified; 3518 core.bool emailVerified;
3043 /** last login timestamp. */ 3519
3520 /// last login timestamp.
3044 core.String lastLoginAt; 3521 core.String lastLoginAt;
3045 /** The local ID of the user. */ 3522
3523 /// The local ID of the user.
3046 core.String localId; 3524 core.String localId;
3047 /** The user's hashed password. */ 3525
3526 /// The user's hashed password.
3048 core.String passwordHash; 3527 core.String passwordHash;
3049 core.List<core.int> get passwordHashAsBytes { 3528 core.List<core.int> get passwordHashAsBytes {
3050 return convert.BASE64.decode(passwordHash); 3529 return convert.BASE64.decode(passwordHash);
3051 } 3530 }
3052 3531
3053 void set passwordHashAsBytes(core.List<core.int> _bytes) { 3532 void set passwordHashAsBytes(core.List<core.int> _bytes) {
3054 passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-"); 3533 passwordHash =
3534 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
3055 } 3535 }
3056 /** The timestamp when the password was last updated. */ 3536
3537 /// The timestamp when the password was last updated.
3057 core.double passwordUpdatedAt; 3538 core.double passwordUpdatedAt;
3058 /** User's phone number. */ 3539
3540 /// User's phone number.
3059 core.String phoneNumber; 3541 core.String phoneNumber;
3060 /** The URL of the user profile photo. */ 3542
3543 /// The URL of the user profile photo.
3061 core.String photoUrl; 3544 core.String photoUrl;
3062 /** The IDP of the user. */ 3545
3546 /// The IDP of the user.
3063 core.List<UserInfoProviderUserInfo> providerUserInfo; 3547 core.List<UserInfoProviderUserInfo> providerUserInfo;
3064 /** The user's plain text password. */ 3548
3549 /// The user's plain text password.
3065 core.String rawPassword; 3550 core.String rawPassword;
3066 /** The user's password salt. */ 3551
3552 /// The user's password salt.
3067 core.String salt; 3553 core.String salt;
3068 core.List<core.int> get saltAsBytes { 3554 core.List<core.int> get saltAsBytes {
3069 return convert.BASE64.decode(salt); 3555 return convert.BASE64.decode(salt);
3070 } 3556 }
3071 3557
3072 void set saltAsBytes(core.List<core.int> _bytes) { 3558 void set saltAsBytes(core.List<core.int> _bytes) {
3073 salt = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 3559 salt =
3560 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
3074 } 3561 }
3075 /** User's screen name at Twitter or login name at Github. */ 3562
3563 /// User's screen name at Twitter or login name at Github.
3076 core.String screenName; 3564 core.String screenName;
3077 /** Timestamp in seconds for valid login token. */ 3565
3566 /// Timestamp in seconds for valid login token.
3078 core.String validSince; 3567 core.String validSince;
3079 /** Version of the user's password. */ 3568
3569 /// Version of the user's password.
3080 core.int version; 3570 core.int version;
3081 3571
3082 UserInfo(); 3572 UserInfo();
3083 3573
3084 UserInfo.fromJson(core.Map _json) { 3574 UserInfo.fromJson(core.Map _json) {
3085 if (_json.containsKey("createdAt")) { 3575 if (_json.containsKey("createdAt")) {
3086 createdAt = _json["createdAt"]; 3576 createdAt = _json["createdAt"];
3087 } 3577 }
3578 if (_json.containsKey("customAttributes")) {
3579 customAttributes = _json["customAttributes"];
3580 }
3088 if (_json.containsKey("customAuth")) { 3581 if (_json.containsKey("customAuth")) {
3089 customAuth = _json["customAuth"]; 3582 customAuth = _json["customAuth"];
3090 } 3583 }
3091 if (_json.containsKey("disabled")) { 3584 if (_json.containsKey("disabled")) {
3092 disabled = _json["disabled"]; 3585 disabled = _json["disabled"];
3093 } 3586 }
3094 if (_json.containsKey("displayName")) { 3587 if (_json.containsKey("displayName")) {
3095 displayName = _json["displayName"]; 3588 displayName = _json["displayName"];
3096 } 3589 }
3097 if (_json.containsKey("email")) { 3590 if (_json.containsKey("email")) {
(...skipping 14 matching lines...) Expand all
3112 if (_json.containsKey("passwordUpdatedAt")) { 3605 if (_json.containsKey("passwordUpdatedAt")) {
3113 passwordUpdatedAt = _json["passwordUpdatedAt"]; 3606 passwordUpdatedAt = _json["passwordUpdatedAt"];
3114 } 3607 }
3115 if (_json.containsKey("phoneNumber")) { 3608 if (_json.containsKey("phoneNumber")) {
3116 phoneNumber = _json["phoneNumber"]; 3609 phoneNumber = _json["phoneNumber"];
3117 } 3610 }
3118 if (_json.containsKey("photoUrl")) { 3611 if (_json.containsKey("photoUrl")) {
3119 photoUrl = _json["photoUrl"]; 3612 photoUrl = _json["photoUrl"];
3120 } 3613 }
3121 if (_json.containsKey("providerUserInfo")) { 3614 if (_json.containsKey("providerUserInfo")) {
3122 providerUserInfo = _json["providerUserInfo"].map((value) => new UserInfoPr oviderUserInfo.fromJson(value)).toList(); 3615 providerUserInfo = _json["providerUserInfo"]
3616 .map((value) => new UserInfoProviderUserInfo.fromJson(value))
3617 .toList();
3123 } 3618 }
3124 if (_json.containsKey("rawPassword")) { 3619 if (_json.containsKey("rawPassword")) {
3125 rawPassword = _json["rawPassword"]; 3620 rawPassword = _json["rawPassword"];
3126 } 3621 }
3127 if (_json.containsKey("salt")) { 3622 if (_json.containsKey("salt")) {
3128 salt = _json["salt"]; 3623 salt = _json["salt"];
3129 } 3624 }
3130 if (_json.containsKey("screenName")) { 3625 if (_json.containsKey("screenName")) {
3131 screenName = _json["screenName"]; 3626 screenName = _json["screenName"];
3132 } 3627 }
3133 if (_json.containsKey("validSince")) { 3628 if (_json.containsKey("validSince")) {
3134 validSince = _json["validSince"]; 3629 validSince = _json["validSince"];
3135 } 3630 }
3136 if (_json.containsKey("version")) { 3631 if (_json.containsKey("version")) {
3137 version = _json["version"]; 3632 version = _json["version"];
3138 } 3633 }
3139 } 3634 }
3140 3635
3141 core.Map<core.String, core.Object> toJson() { 3636 core.Map<core.String, core.Object> toJson() {
3142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3637 final core.Map<core.String, core.Object> _json =
3638 new core.Map<core.String, core.Object>();
3143 if (createdAt != null) { 3639 if (createdAt != null) {
3144 _json["createdAt"] = createdAt; 3640 _json["createdAt"] = createdAt;
3145 } 3641 }
3642 if (customAttributes != null) {
3643 _json["customAttributes"] = customAttributes;
3644 }
3146 if (customAuth != null) { 3645 if (customAuth != null) {
3147 _json["customAuth"] = customAuth; 3646 _json["customAuth"] = customAuth;
3148 } 3647 }
3149 if (disabled != null) { 3648 if (disabled != null) {
3150 _json["disabled"] = disabled; 3649 _json["disabled"] = disabled;
3151 } 3650 }
3152 if (displayName != null) { 3651 if (displayName != null) {
3153 _json["displayName"] = displayName; 3652 _json["displayName"] = displayName;
3154 } 3653 }
3155 if (email != null) { 3654 if (email != null) {
(...skipping 14 matching lines...) Expand all
3170 if (passwordUpdatedAt != null) { 3669 if (passwordUpdatedAt != null) {
3171 _json["passwordUpdatedAt"] = passwordUpdatedAt; 3670 _json["passwordUpdatedAt"] = passwordUpdatedAt;
3172 } 3671 }
3173 if (phoneNumber != null) { 3672 if (phoneNumber != null) {
3174 _json["phoneNumber"] = phoneNumber; 3673 _json["phoneNumber"] = phoneNumber;
3175 } 3674 }
3176 if (photoUrl != null) { 3675 if (photoUrl != null) {
3177 _json["photoUrl"] = photoUrl; 3676 _json["photoUrl"] = photoUrl;
3178 } 3677 }
3179 if (providerUserInfo != null) { 3678 if (providerUserInfo != null) {
3180 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson ()).toList(); 3679 _json["providerUserInfo"] =
3680 providerUserInfo.map((value) => (value).toJson()).toList();
3181 } 3681 }
3182 if (rawPassword != null) { 3682 if (rawPassword != null) {
3183 _json["rawPassword"] = rawPassword; 3683 _json["rawPassword"] = rawPassword;
3184 } 3684 }
3185 if (salt != null) { 3685 if (salt != null) {
3186 _json["salt"] = salt; 3686 _json["salt"] = salt;
3187 } 3687 }
3188 if (screenName != null) { 3688 if (screenName != null) {
3189 _json["screenName"] = screenName; 3689 _json["screenName"] = screenName;
3190 } 3690 }
3191 if (validSince != null) { 3691 if (validSince != null) {
3192 _json["validSince"] = validSince; 3692 _json["validSince"] = validSince;
3193 } 3693 }
3194 if (version != null) { 3694 if (version != null) {
3195 _json["version"] = version; 3695 _json["version"] = version;
3196 } 3696 }
3197 return _json; 3697 return _json;
3198 } 3698 }
3199 } 3699 }
3200 3700
3201 /** Response of verifying the IDP assertion. */ 3701 /// Response of verifying the IDP assertion.
3202 class VerifyAssertionResponse { 3702 class VerifyAssertionResponse {
3203 /** The action code. */ 3703 /// The action code.
3204 core.String action; 3704 core.String action;
3205 /** URL for OTA app installation. */ 3705
3706 /// URL for OTA app installation.
3206 core.String appInstallationUrl; 3707 core.String appInstallationUrl;
3207 /** The custom scheme used by mobile app. */ 3708
3709 /// The custom scheme used by mobile app.
3208 core.String appScheme; 3710 core.String appScheme;
3209 /** 3711
3210 * The opaque value used by the client to maintain context info between the 3712 /// The opaque value used by the client to maintain context info between the
3211 * authentication request and the IDP callback. 3713 /// authentication request and the IDP callback.
3212 */
3213 core.String context; 3714 core.String context;
3214 /** The birth date of the IdP account. */ 3715
3716 /// The birth date of the IdP account.
3215 core.String dateOfBirth; 3717 core.String dateOfBirth;
3216 /** The display name of the user. */ 3718
3719 /// The display name of the user.
3217 core.String displayName; 3720 core.String displayName;
3218 /** 3721
3219 * The email returned by the IdP. NOTE: The federated login user may not own 3722 /// The email returned by the IdP. NOTE: The federated login user may not own
3220 * the email. 3723 /// the email.
3221 */
3222 core.String email; 3724 core.String email;
3223 /** It's true if the email is recycled. */ 3725
3726 /// It's true if the email is recycled.
3224 core.bool emailRecycled; 3727 core.bool emailRecycled;
3225 /** 3728
3226 * The value is true if the IDP is also the email provider. It means the user 3729 /// The value is true if the IDP is also the email provider. It means the
3227 * owns the email. 3730 /// user owns the email.
3228 */
3229 core.bool emailVerified; 3731 core.bool emailVerified;
3230 /** Client error code. */ 3732
3733 /// Client error code.
3231 core.String errorMessage; 3734 core.String errorMessage;
3232 /** 3735
3233 * If idToken is STS id token, then this field will be expiration time of STS 3736 /// If idToken is STS id token, then this field will be expiration time of
3234 * id token in seconds. 3737 /// STS id token in seconds.
3235 */
3236 core.String expiresIn; 3738 core.String expiresIn;
3237 /** The unique ID identifies the IdP account. */ 3739
3740 /// The unique ID identifies the IdP account.
3238 core.String federatedId; 3741 core.String federatedId;
3239 /** The first name of the user. */ 3742
3743 /// The first name of the user.
3240 core.String firstName; 3744 core.String firstName;
3241 /** The full name of the user. */ 3745
3746 /// The full name of the user.
3242 core.String fullName; 3747 core.String fullName;
3243 /** The ID token. */ 3748
3749 /// The ID token.
3244 core.String idToken; 3750 core.String idToken;
3245 /** 3751
3246 * It's the identifier param in the createAuthUri request if the identifier is 3752 /// It's the identifier param in the createAuthUri request if the identifier
3247 * an email. It can be used to check whether the user input email is different 3753 /// is an email. It can be used to check whether the user input email is
3248 * from the asserted email. 3754 /// different from the asserted email.
3249 */
3250 core.String inputEmail; 3755 core.String inputEmail;
3251 /** True if it's a new user sign-in, false if it's a returning user. */ 3756
3757 /// True if it's a new user sign-in, false if it's a returning user.
3252 core.bool isNewUser; 3758 core.bool isNewUser;
3253 /** The fixed string "identitytoolkit#VerifyAssertionResponse". */ 3759
3760 /// The fixed string "identitytoolkit#VerifyAssertionResponse".
3254 core.String kind; 3761 core.String kind;
3255 /** The language preference of the user. */ 3762
3763 /// The language preference of the user.
3256 core.String language; 3764 core.String language;
3257 /** The last name of the user. */ 3765
3766 /// The last name of the user.
3258 core.String lastName; 3767 core.String lastName;
3259 /** 3768
3260 * The RP local ID if it's already been mapped to the IdP account identified 3769 /// The RP local ID if it's already been mapped to the IdP account identified
3261 * by the federated ID. 3770 /// by the federated ID.
3262 */
3263 core.String localId; 3771 core.String localId;
3264 /** 3772
3265 * Whether the assertion is from a non-trusted IDP and need account linking 3773 /// Whether the assertion is from a non-trusted IDP and need account linking
3266 * confirmation. 3774 /// confirmation.
3267 */
3268 core.bool needConfirmation; 3775 core.bool needConfirmation;
3269 /** 3776
3270 * Whether need client to supply email to complete the federated login flow. 3777 /// Whether need client to supply email to complete the federated login flow.
3271 */
3272 core.bool needEmail; 3778 core.bool needEmail;
3273 /** The nick name of the user. */ 3779
3780 /// The nick name of the user.
3274 core.String nickName; 3781 core.String nickName;
3275 /** The OAuth2 access token. */ 3782
3783 /// The OAuth2 access token.
3276 core.String oauthAccessToken; 3784 core.String oauthAccessToken;
3277 /** The OAuth2 authorization code. */ 3785
3786 /// The OAuth2 authorization code.
3278 core.String oauthAuthorizationCode; 3787 core.String oauthAuthorizationCode;
3279 /** The lifetime in seconds of the OAuth2 access token. */ 3788
3789 /// The lifetime in seconds of the OAuth2 access token.
3280 core.int oauthExpireIn; 3790 core.int oauthExpireIn;
3281 /** The OIDC id token. */ 3791
3792 /// The OIDC id token.
3282 core.String oauthIdToken; 3793 core.String oauthIdToken;
3283 /** The user approved request token for the OpenID OAuth extension. */ 3794
3795 /// The user approved request token for the OpenID OAuth extension.
3284 core.String oauthRequestToken; 3796 core.String oauthRequestToken;
3285 /** The scope for the OpenID OAuth extension. */ 3797
3798 /// The scope for the OpenID OAuth extension.
3286 core.String oauthScope; 3799 core.String oauthScope;
3287 /** The OAuth1 access token secret. */ 3800
3801 /// The OAuth1 access token secret.
3288 core.String oauthTokenSecret; 3802 core.String oauthTokenSecret;
3289 /** 3803
3290 * The original email stored in the mapping storage. It's returned when the 3804 /// The original email stored in the mapping storage. It's returned when the
3291 * federated ID is associated to a different email. 3805 /// federated ID is associated to a different email.
3292 */
3293 core.String originalEmail; 3806 core.String originalEmail;
3294 /** The URI of the public accessible profiel picture. */ 3807
3808 /// The URI of the public accessible profiel picture.
3295 core.String photoUrl; 3809 core.String photoUrl;
3296 /** 3810
3297 * The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, 3811 /// The IdP ID. For white listed IdPs it's a short domain name e.g.
3298 * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID 3812 /// google.com, aol.com, live.net and yahoo.com. If the "providerId" param is
3299 * OP identifer other than the whilte listed IdPs the OP identifier is 3813 /// set to OpenID OP identifer other than the whilte listed IdPs the OP
3300 * returned. If the "identifier" param is federated ID in the createAuthUri 3814 /// identifier is returned. If the "identifier" param is federated ID in the
3301 * request. The domain part of the federated ID is returned. 3815 /// createAuthUri request. The domain part of the federated ID is returned.
3302 */
3303 core.String providerId; 3816 core.String providerId;
3304 /** Raw IDP-returned user info. */ 3817
3818 /// Raw IDP-returned user info.
3305 core.String rawUserInfo; 3819 core.String rawUserInfo;
3306 /** If idToken is STS id token, then this field will be refresh token. */ 3820
3821 /// If idToken is STS id token, then this field will be refresh token.
3307 core.String refreshToken; 3822 core.String refreshToken;
3308 /** The screen_name of a Twitter user or the login name at Github. */ 3823
3824 /// The screen_name of a Twitter user or the login name at Github.
3309 core.String screenName; 3825 core.String screenName;
3310 /** The timezone of the user. */ 3826
3827 /// The timezone of the user.
3311 core.String timeZone; 3828 core.String timeZone;
3312 /** 3829
3313 * When action is 'map', contains the idps which can be used for confirmation. 3830 /// When action is 'map', contains the idps which can be used for
3314 */ 3831 /// confirmation.
3315 core.List<core.String> verifiedProvider; 3832 core.List<core.String> verifiedProvider;
3316 3833
3317 VerifyAssertionResponse(); 3834 VerifyAssertionResponse();
3318 3835
3319 VerifyAssertionResponse.fromJson(core.Map _json) { 3836 VerifyAssertionResponse.fromJson(core.Map _json) {
3320 if (_json.containsKey("action")) { 3837 if (_json.containsKey("action")) {
3321 action = _json["action"]; 3838 action = _json["action"];
3322 } 3839 }
3323 if (_json.containsKey("appInstallationUrl")) { 3840 if (_json.containsKey("appInstallationUrl")) {
3324 appInstallationUrl = _json["appInstallationUrl"]; 3841 appInstallationUrl = _json["appInstallationUrl"];
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 } 3947 }
3431 if (_json.containsKey("timeZone")) { 3948 if (_json.containsKey("timeZone")) {
3432 timeZone = _json["timeZone"]; 3949 timeZone = _json["timeZone"];
3433 } 3950 }
3434 if (_json.containsKey("verifiedProvider")) { 3951 if (_json.containsKey("verifiedProvider")) {
3435 verifiedProvider = _json["verifiedProvider"]; 3952 verifiedProvider = _json["verifiedProvider"];
3436 } 3953 }
3437 } 3954 }
3438 3955
3439 core.Map<core.String, core.Object> toJson() { 3956 core.Map<core.String, core.Object> toJson() {
3440 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3957 final core.Map<core.String, core.Object> _json =
3958 new core.Map<core.String, core.Object>();
3441 if (action != null) { 3959 if (action != null) {
3442 _json["action"] = action; 3960 _json["action"] = action;
3443 } 3961 }
3444 if (appInstallationUrl != null) { 3962 if (appInstallationUrl != null) {
3445 _json["appInstallationUrl"] = appInstallationUrl; 3963 _json["appInstallationUrl"] = appInstallationUrl;
3446 } 3964 }
3447 if (appScheme != null) { 3965 if (appScheme != null) {
3448 _json["appScheme"] = appScheme; 3966 _json["appScheme"] = appScheme;
3449 } 3967 }
3450 if (context != null) { 3968 if (context != null) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 if (timeZone != null) { 4070 if (timeZone != null) {
3553 _json["timeZone"] = timeZone; 4071 _json["timeZone"] = timeZone;
3554 } 4072 }
3555 if (verifiedProvider != null) { 4073 if (verifiedProvider != null) {
3556 _json["verifiedProvider"] = verifiedProvider; 4074 _json["verifiedProvider"] = verifiedProvider;
3557 } 4075 }
3558 return _json; 4076 return _json;
3559 } 4077 }
3560 } 4078 }
3561 4079
3562 /** Response from verifying a custom token */ 4080 /// Response from verifying a custom token
3563 class VerifyCustomTokenResponse { 4081 class VerifyCustomTokenResponse {
3564 /** 4082 /// If idToken is STS id token, then this field will be expiration time of
3565 * If idToken is STS id token, then this field will be expiration time of STS 4083 /// STS id token in seconds.
3566 * id token in seconds.
3567 */
3568 core.String expiresIn; 4084 core.String expiresIn;
3569 /** The GITKit token for authenticated user. */ 4085
4086 /// The GITKit token for authenticated user.
3570 core.String idToken; 4087 core.String idToken;
3571 /** The fixed string "identitytoolkit#VerifyCustomTokenResponse". */ 4088
4089 /// True if it's a new user sign-in, false if it's a returning user.
4090 core.bool isNewUser;
4091
4092 /// The fixed string "identitytoolkit#VerifyCustomTokenResponse".
3572 core.String kind; 4093 core.String kind;
3573 /** If idToken is STS id token, then this field will be refresh token. */ 4094
4095 /// If idToken is STS id token, then this field will be refresh token.
3574 core.String refreshToken; 4096 core.String refreshToken;
3575 4097
3576 VerifyCustomTokenResponse(); 4098 VerifyCustomTokenResponse();
3577 4099
3578 VerifyCustomTokenResponse.fromJson(core.Map _json) { 4100 VerifyCustomTokenResponse.fromJson(core.Map _json) {
3579 if (_json.containsKey("expiresIn")) { 4101 if (_json.containsKey("expiresIn")) {
3580 expiresIn = _json["expiresIn"]; 4102 expiresIn = _json["expiresIn"];
3581 } 4103 }
3582 if (_json.containsKey("idToken")) { 4104 if (_json.containsKey("idToken")) {
3583 idToken = _json["idToken"]; 4105 idToken = _json["idToken"];
3584 } 4106 }
4107 if (_json.containsKey("isNewUser")) {
4108 isNewUser = _json["isNewUser"];
4109 }
3585 if (_json.containsKey("kind")) { 4110 if (_json.containsKey("kind")) {
3586 kind = _json["kind"]; 4111 kind = _json["kind"];
3587 } 4112 }
3588 if (_json.containsKey("refreshToken")) { 4113 if (_json.containsKey("refreshToken")) {
3589 refreshToken = _json["refreshToken"]; 4114 refreshToken = _json["refreshToken"];
3590 } 4115 }
3591 } 4116 }
3592 4117
3593 core.Map<core.String, core.Object> toJson() { 4118 core.Map<core.String, core.Object> toJson() {
3594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4119 final core.Map<core.String, core.Object> _json =
4120 new core.Map<core.String, core.Object>();
3595 if (expiresIn != null) { 4121 if (expiresIn != null) {
3596 _json["expiresIn"] = expiresIn; 4122 _json["expiresIn"] = expiresIn;
3597 } 4123 }
3598 if (idToken != null) { 4124 if (idToken != null) {
3599 _json["idToken"] = idToken; 4125 _json["idToken"] = idToken;
3600 } 4126 }
4127 if (isNewUser != null) {
4128 _json["isNewUser"] = isNewUser;
4129 }
3601 if (kind != null) { 4130 if (kind != null) {
3602 _json["kind"] = kind; 4131 _json["kind"] = kind;
3603 } 4132 }
3604 if (refreshToken != null) { 4133 if (refreshToken != null) {
3605 _json["refreshToken"] = refreshToken; 4134 _json["refreshToken"] = refreshToken;
3606 } 4135 }
3607 return _json; 4136 return _json;
3608 } 4137 }
3609 } 4138 }
3610 4139
3611 /** Request of verifying the password. */ 4140 /// Request of verifying the password.
3612 class VerifyPasswordResponse { 4141 class VerifyPasswordResponse {
3613 /** The name of the user. */ 4142 /// The name of the user.
3614 core.String displayName; 4143 core.String displayName;
3615 /** 4144
3616 * The email returned by the IdP. NOTE: The federated login user may not own 4145 /// The email returned by the IdP. NOTE: The federated login user may not own
3617 * the email. 4146 /// the email.
3618 */
3619 core.String email; 4147 core.String email;
3620 /** 4148
3621 * If idToken is STS id token, then this field will be expiration time of STS 4149 /// If idToken is STS id token, then this field will be expiration time of
3622 * id token in seconds. 4150 /// STS id token in seconds.
3623 */
3624 core.String expiresIn; 4151 core.String expiresIn;
3625 /** The GITKit token for authenticated user. */ 4152
4153 /// The GITKit token for authenticated user.
3626 core.String idToken; 4154 core.String idToken;
3627 /** The fixed string "identitytoolkit#VerifyPasswordResponse". */ 4155
4156 /// The fixed string "identitytoolkit#VerifyPasswordResponse".
3628 core.String kind; 4157 core.String kind;
3629 /** 4158
3630 * The RP local ID if it's already been mapped to the IdP account identified 4159 /// The RP local ID if it's already been mapped to the IdP account identified
3631 * by the federated ID. 4160 /// by the federated ID.
3632 */
3633 core.String localId; 4161 core.String localId;
3634 /** The OAuth2 access token. */ 4162
4163 /// The OAuth2 access token.
3635 core.String oauthAccessToken; 4164 core.String oauthAccessToken;
3636 /** The OAuth2 authorization code. */ 4165
4166 /// The OAuth2 authorization code.
3637 core.String oauthAuthorizationCode; 4167 core.String oauthAuthorizationCode;
3638 /** The lifetime in seconds of the OAuth2 access token. */ 4168
4169 /// The lifetime in seconds of the OAuth2 access token.
3639 core.int oauthExpireIn; 4170 core.int oauthExpireIn;
3640 /** The URI of the user's photo at IdP */ 4171
4172 /// The URI of the user's photo at IdP
3641 core.String photoUrl; 4173 core.String photoUrl;
3642 /** If idToken is STS id token, then this field will be refresh token. */ 4174
4175 /// If idToken is STS id token, then this field will be refresh token.
3643 core.String refreshToken; 4176 core.String refreshToken;
3644 /** Whether the email is registered. */ 4177
4178 /// Whether the email is registered.
3645 core.bool registered; 4179 core.bool registered;
3646 4180
3647 VerifyPasswordResponse(); 4181 VerifyPasswordResponse();
3648 4182
3649 VerifyPasswordResponse.fromJson(core.Map _json) { 4183 VerifyPasswordResponse.fromJson(core.Map _json) {
3650 if (_json.containsKey("displayName")) { 4184 if (_json.containsKey("displayName")) {
3651 displayName = _json["displayName"]; 4185 displayName = _json["displayName"];
3652 } 4186 }
3653 if (_json.containsKey("email")) { 4187 if (_json.containsKey("email")) {
3654 email = _json["email"]; 4188 email = _json["email"];
(...skipping 24 matching lines...) Expand all
3679 } 4213 }
3680 if (_json.containsKey("refreshToken")) { 4214 if (_json.containsKey("refreshToken")) {
3681 refreshToken = _json["refreshToken"]; 4215 refreshToken = _json["refreshToken"];
3682 } 4216 }
3683 if (_json.containsKey("registered")) { 4217 if (_json.containsKey("registered")) {
3684 registered = _json["registered"]; 4218 registered = _json["registered"];
3685 } 4219 }
3686 } 4220 }
3687 4221
3688 core.Map<core.String, core.Object> toJson() { 4222 core.Map<core.String, core.Object> toJson() {
3689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4223 final core.Map<core.String, core.Object> _json =
4224 new core.Map<core.String, core.Object>();
3690 if (displayName != null) { 4225 if (displayName != null) {
3691 _json["displayName"] = displayName; 4226 _json["displayName"] = displayName;
3692 } 4227 }
3693 if (email != null) { 4228 if (email != null) {
3694 _json["email"] = email; 4229 _json["email"] = email;
3695 } 4230 }
3696 if (expiresIn != null) { 4231 if (expiresIn != null) {
3697 _json["expiresIn"] = expiresIn; 4232 _json["expiresIn"] = expiresIn;
3698 } 4233 }
3699 if (idToken != null) { 4234 if (idToken != null) {
(...skipping 19 matching lines...) Expand all
3719 } 4254 }
3720 if (refreshToken != null) { 4255 if (refreshToken != null) {
3721 _json["refreshToken"] = refreshToken; 4256 _json["refreshToken"] = refreshToken;
3722 } 4257 }
3723 if (registered != null) { 4258 if (registered != null) {
3724 _json["registered"] = registered; 4259 _json["registered"] = registered;
3725 } 4260 }
3726 return _json; 4261 return _json;
3727 } 4262 }
3728 } 4263 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/iam/v1.dart ('k') | generated/googleapis/lib/kgsearch/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698