@@ -112,7 +112,7 @@ export namespace auth {
112
112
}
113
113
114
114
/**
115
- * Interface representing the common properties of a user enrolled second factor.
115
+ * Interface representing the common properties of a user- enrolled second factor.
116
116
*/
117
117
export interface MultiFactorInfo {
118
118
@@ -143,7 +143,7 @@ export namespace auth {
143
143
}
144
144
145
145
/**
146
- * Interface representing a phone specific user enrolled second factor.
146
+ * Interface representing a phone specific user- enrolled second factor.
147
147
*/
148
148
export interface PhoneMultiFactorInfo extends MultiFactorInfo {
149
149
@@ -336,10 +336,10 @@ export namespace auth {
336
336
}
337
337
338
338
/**
339
- * Interface representing common properties of a user enrolled second factor
339
+ * Interface representing common properties of a user- enrolled second factor
340
340
* for an `UpdateRequest`.
341
341
*/
342
- export interface UpdateMultiFactorInfoRequest {
342
+ export interface BaseUpdateMultiFactorInfoRequest {
343
343
344
344
/**
345
345
* The ID of the enrolled second factor. This ID is unique to the user. When not provided,
@@ -364,17 +364,23 @@ export namespace auth {
364
364
}
365
365
366
366
/**
367
- * Interface representing a phone specific user enrolled second factor
367
+ * Interface representing a phone specific user- enrolled second factor
368
368
* for an `UpdateRequest`.
369
369
*/
370
- export interface UpdatePhoneMultiFactorInfoRequest extends UpdateMultiFactorInfoRequest {
370
+ export interface UpdatePhoneMultiFactorInfoRequest extends BaseUpdateMultiFactorInfoRequest {
371
371
372
372
/**
373
373
* The phone number associated with a phone second factor.
374
374
*/
375
375
phoneNumber : string ;
376
376
}
377
377
378
+ /**
379
+ * Type representing the properties of a user-enrolled second factor
380
+ * for an `UpdateRequest`.
381
+ */
382
+ export type UpdateMultiFactorInfoRequest = | UpdatePhoneMultiFactorInfoRequest ;
383
+
378
384
/**
379
385
* Interface representing the properties to update on the provided user.
380
386
*/
@@ -443,10 +449,10 @@ export namespace auth {
443
449
}
444
450
445
451
/**
446
- * Interface representing base properties of a user enrolled second factor for a
452
+ * Interface representing base properties of a user- enrolled second factor for a
447
453
* `CreateRequest`.
448
454
*/
449
- export interface CreateMultiFactorInfoRequest {
455
+ export interface BaseCreateMultiFactorInfoRequest {
450
456
451
457
/**
452
458
* The optional display name for an enrolled second factor.
@@ -460,17 +466,23 @@ export namespace auth {
460
466
}
461
467
462
468
/**
463
- * Interface representing a phone specific user enrolled second factor for a
469
+ * Interface representing a phone specific user- enrolled second factor for a
464
470
* `CreateRequest`.
465
471
*/
466
- export interface CreatePhoneMultiFactorInfoRequest extends CreateMultiFactorInfoRequest {
472
+ export interface CreatePhoneMultiFactorInfoRequest extends BaseCreateMultiFactorInfoRequest {
467
473
468
474
/**
469
475
* The phone number associated with a phone second factor.
470
476
*/
471
477
phoneNumber : string ;
472
478
}
473
479
480
+ /**
481
+ * Type representing the properties of a user-enrolled second factor
482
+ * for a `CreateRequest`.
483
+ */
484
+ export type CreateMultiFactorInfoRequest = | CreatePhoneMultiFactorInfoRequest ;
485
+
474
486
/**
475
487
* Interface representing the properties to set on a new user record to be
476
488
* created.
@@ -1221,7 +1233,7 @@ export namespace auth {
1221
1233
/**
1222
1234
* The base Auth provider configuration interface.
1223
1235
*/
1224
- export interface AuthProviderConfig {
1236
+ export interface BaseAuthProviderConfig {
1225
1237
1226
1238
/**
1227
1239
* The provider ID defined by the developer.
@@ -1249,7 +1261,7 @@ export namespace auth {
1249
1261
* Auth provider configuration interface. A SAML provider can be created via
1250
1262
* {@link auth.Auth.createProviderConfig `createProviderConfig()`}.
1251
1263
*/
1252
- export interface SAMLAuthProviderConfig extends AuthProviderConfig {
1264
+ export interface SAMLAuthProviderConfig extends BaseAuthProviderConfig {
1253
1265
1254
1266
/**
1255
1267
* The SAML IdP entity identifier.
@@ -1301,7 +1313,7 @@ export namespace auth {
1301
1313
export interface OAuthResponseType {
1302
1314
/**
1303
1315
* Whether ID token is returned from IdP's authorization endpoint.
1304
- */
1316
+ */
1305
1317
idToken ?: boolean ;
1306
1318
1307
1319
/**
@@ -1315,7 +1327,7 @@ export namespace auth {
1315
1327
* provider configuration interface. An OIDC provider can be created via
1316
1328
* {@link auth.Auth.createProviderConfig `createProviderConfig()`}.
1317
1329
*/
1318
- export interface OIDCAuthProviderConfig extends AuthProviderConfig {
1330
+ export interface OIDCAuthProviderConfig extends BaseAuthProviderConfig {
1319
1331
1320
1332
/**
1321
1333
* This is the required client ID used to confirm the audience of an OIDC
@@ -1347,13 +1359,19 @@ export namespace auth {
1347
1359
* The OIDC provider's client secret to enable OIDC code flow.
1348
1360
*/
1349
1361
clientSecret ?: string ;
1350
-
1362
+
1351
1363
/**
1352
1364
* The OIDC provider's response object for OAuth authorization flow.
1353
1365
*/
1354
1366
responseType ?: OAuthResponseType ;
1355
1367
}
1356
1368
1369
+ /**
1370
+ * The Auth provider configuration type.
1371
+ * {@link auth.Auth.createProviderConfig `createProviderConfig()`}.
1372
+ */
1373
+ export type AuthProviderConfig = SAMLAuthProviderConfig | OIDCAuthProviderConfig ;
1374
+
1357
1375
/**
1358
1376
* The request interface for updating a SAML Auth provider. This is used
1359
1377
* when updating a SAML provider's configuration via
@@ -1440,7 +1458,7 @@ export namespace auth {
1440
1458
* If not provided, the existing configuration's value is not modified.
1441
1459
*/
1442
1460
clientSecret ?: string ;
1443
-
1461
+
1444
1462
/**
1445
1463
* The OIDC provider's response object for OAuth authorization flow.
1446
1464
*/
0 commit comments