@aws-sdk/client-cognito-identity-provider 3.300.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +197 -233
- package/dist-cjs/models/models_1.js +4 -5
- package/dist-es/models/models_0.js +197 -233
- package/dist-es/models/models_1.js +4 -5
- package/dist-types/commands/AddCustomAttributesCommand.d.ts +5 -5
- package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +1 -1
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -2
- package/dist-types/commands/AdminCreateUserCommand.d.ts +5 -5
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/AdminDeleteUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminDisableUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminEnableUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminForgetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/AdminGetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/AdminGetUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +7 -7
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +1 -1
- package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -2
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +7 -7
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +3 -3
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +1 -1
- package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +3 -3
- package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +1 -1
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +4 -4
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +1 -1
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +1 -1
- package/dist-types/commands/ChangePasswordCommand.d.ts +1 -1
- package/dist-types/commands/ConfirmDeviceCommand.d.ts +2 -2
- package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +4 -4
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +4 -4
- package/dist-types/commands/CreateGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +4 -4
- package/dist-types/commands/CreateResourceServerCommand.d.ts +3 -3
- package/dist-types/commands/CreateUserImportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +10 -10
- package/dist-types/commands/CreateUserPoolCommand.d.ts +27 -27
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +2 -2
- package/dist-types/commands/DeleteGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourceServerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserPoolClientCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserPoolCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserPoolDomainCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DescribeResourceServerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRiskConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +1 -1
- package/dist-types/commands/ForgetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +4 -4
- package/dist-types/commands/GetCSVHeaderCommand.d.ts +1 -1
- package/dist-types/commands/GetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/GetGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetIdentityProviderByIdentifierCommand.d.ts +1 -1
- package/dist-types/commands/GetSigningCertificateCommand.d.ts +1 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -2
- package/dist-types/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +1 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +1 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +5 -5
- package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceServersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListUserImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolClientsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolsCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersCommand.d.ts +2 -2
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +4 -4
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -5
- package/dist-types/commands/RevokeTokenCommand.d.ts +1 -1
- package/dist-types/commands/SetRiskConfigurationCommand.d.ts +12 -12
- package/dist-types/commands/SetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +3 -3
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +4 -4
- package/dist-types/commands/SetUserSettingsCommand.d.ts +3 -3
- package/dist-types/commands/SignUpCommand.d.ts +6 -6
- package/dist-types/commands/StartUserImportJobCommand.d.ts +1 -1
- package/dist-types/commands/StopUserImportJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGroupCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +4 -4
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +3 -3
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +4 -4
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +10 -10
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +20 -20
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +2 -2
- package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +1 -1
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +377 -197
- package/dist-types/models/models_1.d.ts +9 -4
- package/dist-types/ts3.4/models/models_0.d.ts +262 -197
- package/dist-types/ts3.4/models/models_1.d.ts +6 -4
- package/package.json +34 -34
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
AttributeDataType["NUMBER"] = "Number";
|
|
21
|
-
AttributeDataType["STRING"] = "String";
|
|
22
|
-
})(AttributeDataType || (AttributeDataType = {}));
|
|
3
|
+
export const RecoveryOptionNameType = {
|
|
4
|
+
ADMIN_ONLY: "admin_only",
|
|
5
|
+
VERIFIED_EMAIL: "verified_email",
|
|
6
|
+
VERIFIED_PHONE_NUMBER: "verified_phone_number",
|
|
7
|
+
};
|
|
8
|
+
export const AccountTakeoverEventActionType = {
|
|
9
|
+
BLOCK: "BLOCK",
|
|
10
|
+
MFA_IF_CONFIGURED: "MFA_IF_CONFIGURED",
|
|
11
|
+
MFA_REQUIRED: "MFA_REQUIRED",
|
|
12
|
+
NO_ACTION: "NO_ACTION",
|
|
13
|
+
};
|
|
14
|
+
export const AttributeDataType = {
|
|
15
|
+
BOOLEAN: "Boolean",
|
|
16
|
+
DATETIME: "DateTime",
|
|
17
|
+
NUMBER: "Number",
|
|
18
|
+
STRING: "String",
|
|
19
|
+
};
|
|
23
20
|
export class InternalErrorException extends __BaseException {
|
|
24
21
|
constructor(opts) {
|
|
25
22
|
super({
|
|
@@ -164,26 +161,23 @@ export class UserLambdaValidationException extends __BaseException {
|
|
|
164
161
|
Object.setPrototypeOf(this, UserLambdaValidationException.prototype);
|
|
165
162
|
}
|
|
166
163
|
}
|
|
167
|
-
export
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
UserStatusType["UNCONFIRMED"] = "UNCONFIRMED";
|
|
185
|
-
UserStatusType["UNKNOWN"] = "UNKNOWN";
|
|
186
|
-
})(UserStatusType || (UserStatusType = {}));
|
|
164
|
+
export const DeliveryMediumType = {
|
|
165
|
+
EMAIL: "EMAIL",
|
|
166
|
+
SMS: "SMS",
|
|
167
|
+
};
|
|
168
|
+
export const MessageActionType = {
|
|
169
|
+
RESEND: "RESEND",
|
|
170
|
+
SUPPRESS: "SUPPRESS",
|
|
171
|
+
};
|
|
172
|
+
export const UserStatusType = {
|
|
173
|
+
ARCHIVED: "ARCHIVED",
|
|
174
|
+
COMPROMISED: "COMPROMISED",
|
|
175
|
+
CONFIRMED: "CONFIRMED",
|
|
176
|
+
FORCE_CHANGE_PASSWORD: "FORCE_CHANGE_PASSWORD",
|
|
177
|
+
RESET_REQUIRED: "RESET_REQUIRED",
|
|
178
|
+
UNCONFIRMED: "UNCONFIRMED",
|
|
179
|
+
UNKNOWN: "UNKNOWN",
|
|
180
|
+
};
|
|
187
181
|
export class CodeDeliveryFailureException extends __BaseException {
|
|
188
182
|
constructor(opts) {
|
|
189
183
|
super({
|
|
@@ -292,29 +286,27 @@ export class InvalidUserPoolConfigurationException extends __BaseException {
|
|
|
292
286
|
Object.setPrototypeOf(this, InvalidUserPoolConfigurationException.prototype);
|
|
293
287
|
}
|
|
294
288
|
}
|
|
295
|
-
export
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
ChallengeNameType["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
|
|
317
|
-
})(ChallengeNameType || (ChallengeNameType = {}));
|
|
289
|
+
export const AuthFlowType = {
|
|
290
|
+
ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH",
|
|
291
|
+
ADMIN_USER_PASSWORD_AUTH: "ADMIN_USER_PASSWORD_AUTH",
|
|
292
|
+
CUSTOM_AUTH: "CUSTOM_AUTH",
|
|
293
|
+
REFRESH_TOKEN: "REFRESH_TOKEN",
|
|
294
|
+
REFRESH_TOKEN_AUTH: "REFRESH_TOKEN_AUTH",
|
|
295
|
+
USER_PASSWORD_AUTH: "USER_PASSWORD_AUTH",
|
|
296
|
+
USER_SRP_AUTH: "USER_SRP_AUTH",
|
|
297
|
+
};
|
|
298
|
+
export const ChallengeNameType = {
|
|
299
|
+
ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH",
|
|
300
|
+
CUSTOM_CHALLENGE: "CUSTOM_CHALLENGE",
|
|
301
|
+
DEVICE_PASSWORD_VERIFIER: "DEVICE_PASSWORD_VERIFIER",
|
|
302
|
+
DEVICE_SRP_AUTH: "DEVICE_SRP_AUTH",
|
|
303
|
+
MFA_SETUP: "MFA_SETUP",
|
|
304
|
+
NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED",
|
|
305
|
+
PASSWORD_VERIFIER: "PASSWORD_VERIFIER",
|
|
306
|
+
SELECT_MFA_TYPE: "SELECT_MFA_TYPE",
|
|
307
|
+
SMS_MFA: "SMS_MFA",
|
|
308
|
+
SOFTWARE_TOKEN_MFA: "SOFTWARE_TOKEN_MFA",
|
|
309
|
+
};
|
|
318
310
|
export class MFAMethodNotFoundException extends __BaseException {
|
|
319
311
|
constructor(opts) {
|
|
320
312
|
super({
|
|
@@ -351,47 +343,40 @@ export class UserNotConfirmedException extends __BaseException {
|
|
|
351
343
|
Object.setPrototypeOf(this, UserNotConfirmedException.prototype);
|
|
352
344
|
}
|
|
353
345
|
}
|
|
354
|
-
export
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
export
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
(function (EventType) {
|
|
389
|
-
EventType["ForgotPassword"] = "ForgotPassword";
|
|
390
|
-
EventType["PasswordChange"] = "PasswordChange";
|
|
391
|
-
EventType["ResendCode"] = "ResendCode";
|
|
392
|
-
EventType["SignIn"] = "SignIn";
|
|
393
|
-
EventType["SignUp"] = "SignUp";
|
|
394
|
-
})(EventType || (EventType = {}));
|
|
346
|
+
export const ChallengeName = {
|
|
347
|
+
Mfa: "Mfa",
|
|
348
|
+
Password: "Password",
|
|
349
|
+
};
|
|
350
|
+
export const ChallengeResponse = {
|
|
351
|
+
Failure: "Failure",
|
|
352
|
+
Success: "Success",
|
|
353
|
+
};
|
|
354
|
+
export const FeedbackValueType = {
|
|
355
|
+
INVALID: "Invalid",
|
|
356
|
+
VALID: "Valid",
|
|
357
|
+
};
|
|
358
|
+
export const EventResponseType = {
|
|
359
|
+
Fail: "Fail",
|
|
360
|
+
InProgress: "InProgress",
|
|
361
|
+
Pass: "Pass",
|
|
362
|
+
};
|
|
363
|
+
export const RiskDecisionType = {
|
|
364
|
+
AccountTakeover: "AccountTakeover",
|
|
365
|
+
Block: "Block",
|
|
366
|
+
NoRisk: "NoRisk",
|
|
367
|
+
};
|
|
368
|
+
export const RiskLevelType = {
|
|
369
|
+
High: "High",
|
|
370
|
+
Low: "Low",
|
|
371
|
+
Medium: "Medium",
|
|
372
|
+
};
|
|
373
|
+
export const EventType = {
|
|
374
|
+
ForgotPassword: "ForgotPassword",
|
|
375
|
+
PasswordChange: "PasswordChange",
|
|
376
|
+
ResendCode: "ResendCode",
|
|
377
|
+
SignIn: "SignIn",
|
|
378
|
+
SignUp: "SignUp",
|
|
379
|
+
};
|
|
395
380
|
export class UserPoolAddOnNotEnabledException extends __BaseException {
|
|
396
381
|
constructor(opts) {
|
|
397
382
|
super({
|
|
@@ -452,23 +437,20 @@ export class SoftwareTokenMFANotFoundException extends __BaseException {
|
|
|
452
437
|
Object.setPrototypeOf(this, SoftwareTokenMFANotFoundException.prototype);
|
|
453
438
|
}
|
|
454
439
|
}
|
|
455
|
-
export
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
AliasAttributeType["PHONE_NUMBER"] = "phone_number";
|
|
470
|
-
AliasAttributeType["PREFERRED_USERNAME"] = "preferred_username";
|
|
471
|
-
})(AliasAttributeType || (AliasAttributeType = {}));
|
|
440
|
+
export const DeviceRememberedStatusType = {
|
|
441
|
+
NOT_REMEMBERED: "not_remembered",
|
|
442
|
+
REMEMBERED: "remembered",
|
|
443
|
+
};
|
|
444
|
+
export const AdvancedSecurityModeType = {
|
|
445
|
+
AUDIT: "AUDIT",
|
|
446
|
+
ENFORCED: "ENFORCED",
|
|
447
|
+
OFF: "OFF",
|
|
448
|
+
};
|
|
449
|
+
export const AliasAttributeType = {
|
|
450
|
+
EMAIL: "email",
|
|
451
|
+
PHONE_NUMBER: "phone_number",
|
|
452
|
+
PREFERRED_USERNAME: "preferred_username",
|
|
453
|
+
};
|
|
472
454
|
export class ConcurrentModificationException extends __BaseException {
|
|
473
455
|
constructor(opts) {
|
|
474
456
|
super({
|
|
@@ -493,11 +475,10 @@ export class ForbiddenException extends __BaseException {
|
|
|
493
475
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
494
476
|
}
|
|
495
477
|
}
|
|
496
|
-
export
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
})(VerifiedAttributeType || (VerifiedAttributeType = {}));
|
|
478
|
+
export const VerifiedAttributeType = {
|
|
479
|
+
EMAIL: "email",
|
|
480
|
+
PHONE_NUMBER: "phone_number",
|
|
481
|
+
};
|
|
501
482
|
export class GroupExistsException extends __BaseException {
|
|
502
483
|
constructor(opts) {
|
|
503
484
|
super({
|
|
@@ -510,15 +491,14 @@ export class GroupExistsException extends __BaseException {
|
|
|
510
491
|
Object.setPrototypeOf(this, GroupExistsException.prototype);
|
|
511
492
|
}
|
|
512
493
|
}
|
|
513
|
-
export
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
})(IdentityProviderTypeType || (IdentityProviderTypeType = {}));
|
|
494
|
+
export const IdentityProviderTypeType = {
|
|
495
|
+
Facebook: "Facebook",
|
|
496
|
+
Google: "Google",
|
|
497
|
+
LoginWithAmazon: "LoginWithAmazon",
|
|
498
|
+
OIDC: "OIDC",
|
|
499
|
+
SAML: "SAML",
|
|
500
|
+
SignInWithApple: "SignInWithApple",
|
|
501
|
+
};
|
|
522
502
|
export class DuplicateProviderException extends __BaseException {
|
|
523
503
|
constructor(opts) {
|
|
524
504
|
super({
|
|
@@ -531,56 +511,47 @@ export class DuplicateProviderException extends __BaseException {
|
|
|
531
511
|
Object.setPrototypeOf(this, DuplicateProviderException.prototype);
|
|
532
512
|
}
|
|
533
513
|
}
|
|
534
|
-
export
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
export
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
export
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
(function (DefaultEmailOptionType) {
|
|
576
|
-
DefaultEmailOptionType["CONFIRM_WITH_CODE"] = "CONFIRM_WITH_CODE";
|
|
577
|
-
DefaultEmailOptionType["CONFIRM_WITH_LINK"] = "CONFIRM_WITH_LINK";
|
|
578
|
-
})(DefaultEmailOptionType || (DefaultEmailOptionType = {}));
|
|
579
|
-
export var StatusType;
|
|
580
|
-
(function (StatusType) {
|
|
581
|
-
StatusType["Disabled"] = "Disabled";
|
|
582
|
-
StatusType["Enabled"] = "Enabled";
|
|
583
|
-
})(StatusType || (StatusType = {}));
|
|
514
|
+
export const UserImportJobStatusType = {
|
|
515
|
+
Created: "Created",
|
|
516
|
+
Expired: "Expired",
|
|
517
|
+
Failed: "Failed",
|
|
518
|
+
InProgress: "InProgress",
|
|
519
|
+
Pending: "Pending",
|
|
520
|
+
Stopped: "Stopped",
|
|
521
|
+
Stopping: "Stopping",
|
|
522
|
+
Succeeded: "Succeeded",
|
|
523
|
+
};
|
|
524
|
+
export const DeletionProtectionType = {
|
|
525
|
+
ACTIVE: "ACTIVE",
|
|
526
|
+
INACTIVE: "INACTIVE",
|
|
527
|
+
};
|
|
528
|
+
export const EmailSendingAccountType = {
|
|
529
|
+
COGNITO_DEFAULT: "COGNITO_DEFAULT",
|
|
530
|
+
DEVELOPER: "DEVELOPER",
|
|
531
|
+
};
|
|
532
|
+
export const CustomEmailSenderLambdaVersionType = {
|
|
533
|
+
V1_0: "V1_0",
|
|
534
|
+
};
|
|
535
|
+
export const CustomSMSSenderLambdaVersionType = {
|
|
536
|
+
V1_0: "V1_0",
|
|
537
|
+
};
|
|
538
|
+
export const UserPoolMfaType = {
|
|
539
|
+
OFF: "OFF",
|
|
540
|
+
ON: "ON",
|
|
541
|
+
OPTIONAL: "OPTIONAL",
|
|
542
|
+
};
|
|
543
|
+
export const UsernameAttributeType = {
|
|
544
|
+
EMAIL: "email",
|
|
545
|
+
PHONE_NUMBER: "phone_number",
|
|
546
|
+
};
|
|
547
|
+
export const DefaultEmailOptionType = {
|
|
548
|
+
CONFIRM_WITH_CODE: "CONFIRM_WITH_CODE",
|
|
549
|
+
CONFIRM_WITH_LINK: "CONFIRM_WITH_LINK",
|
|
550
|
+
};
|
|
551
|
+
export const StatusType = {
|
|
552
|
+
Disabled: "Disabled",
|
|
553
|
+
Enabled: "Enabled",
|
|
554
|
+
};
|
|
584
555
|
export class UserPoolTaggingException extends __BaseException {
|
|
585
556
|
constructor(opts) {
|
|
586
557
|
super({
|
|
@@ -593,35 +564,31 @@ export class UserPoolTaggingException extends __BaseException {
|
|
|
593
564
|
Object.setPrototypeOf(this, UserPoolTaggingException.prototype);
|
|
594
565
|
}
|
|
595
566
|
}
|
|
596
|
-
export
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
TimeUnitsType["HOURS"] = "hours";
|
|
622
|
-
TimeUnitsType["MINUTES"] = "minutes";
|
|
623
|
-
TimeUnitsType["SECONDS"] = "seconds";
|
|
624
|
-
})(TimeUnitsType || (TimeUnitsType = {}));
|
|
567
|
+
export const OAuthFlowType = {
|
|
568
|
+
client_credentials: "client_credentials",
|
|
569
|
+
code: "code",
|
|
570
|
+
implicit: "implicit",
|
|
571
|
+
};
|
|
572
|
+
export const ExplicitAuthFlowsType = {
|
|
573
|
+
ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH",
|
|
574
|
+
ALLOW_ADMIN_USER_PASSWORD_AUTH: "ALLOW_ADMIN_USER_PASSWORD_AUTH",
|
|
575
|
+
ALLOW_CUSTOM_AUTH: "ALLOW_CUSTOM_AUTH",
|
|
576
|
+
ALLOW_REFRESH_TOKEN_AUTH: "ALLOW_REFRESH_TOKEN_AUTH",
|
|
577
|
+
ALLOW_USER_PASSWORD_AUTH: "ALLOW_USER_PASSWORD_AUTH",
|
|
578
|
+
ALLOW_USER_SRP_AUTH: "ALLOW_USER_SRP_AUTH",
|
|
579
|
+
CUSTOM_AUTH_FLOW_ONLY: "CUSTOM_AUTH_FLOW_ONLY",
|
|
580
|
+
USER_PASSWORD_AUTH: "USER_PASSWORD_AUTH",
|
|
581
|
+
};
|
|
582
|
+
export const PreventUserExistenceErrorTypes = {
|
|
583
|
+
ENABLED: "ENABLED",
|
|
584
|
+
LEGACY: "LEGACY",
|
|
585
|
+
};
|
|
586
|
+
export const TimeUnitsType = {
|
|
587
|
+
DAYS: "days",
|
|
588
|
+
HOURS: "hours",
|
|
589
|
+
MINUTES: "minutes",
|
|
590
|
+
SECONDS: "seconds",
|
|
591
|
+
};
|
|
625
592
|
export class InvalidOAuthFlowException extends __BaseException {
|
|
626
593
|
constructor(opts) {
|
|
627
594
|
super({
|
|
@@ -658,25 +625,22 @@ export class UnsupportedIdentityProviderException extends __BaseException {
|
|
|
658
625
|
Object.setPrototypeOf(this, UnsupportedIdentityProviderException.prototype);
|
|
659
626
|
}
|
|
660
627
|
}
|
|
661
|
-
export
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
DomainStatusType["FAILED"] = "FAILED";
|
|
678
|
-
DomainStatusType["UPDATING"] = "UPDATING";
|
|
679
|
-
})(DomainStatusType || (DomainStatusType = {}));
|
|
628
|
+
export const CompromisedCredentialsEventActionType = {
|
|
629
|
+
BLOCK: "BLOCK",
|
|
630
|
+
NO_ACTION: "NO_ACTION",
|
|
631
|
+
};
|
|
632
|
+
export const EventFilterType = {
|
|
633
|
+
PASSWORD_CHANGE: "PASSWORD_CHANGE",
|
|
634
|
+
SIGN_IN: "SIGN_IN",
|
|
635
|
+
SIGN_UP: "SIGN_UP",
|
|
636
|
+
};
|
|
637
|
+
export const DomainStatusType = {
|
|
638
|
+
ACTIVE: "ACTIVE",
|
|
639
|
+
CREATING: "CREATING",
|
|
640
|
+
DELETING: "DELETING",
|
|
641
|
+
FAILED: "FAILED",
|
|
642
|
+
UPDATING: "UPDATING",
|
|
643
|
+
};
|
|
680
644
|
export class UnauthorizedException extends __BaseException {
|
|
681
645
|
constructor(opts) {
|
|
682
646
|
super({
|
|
@@ -13,11 +13,10 @@ export class EnableSoftwareTokenMFAException extends __BaseException {
|
|
|
13
13
|
Object.setPrototypeOf(this, EnableSoftwareTokenMFAException.prototype);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})(VerifySoftwareTokenResponseType || (VerifySoftwareTokenResponseType = {}));
|
|
16
|
+
export const VerifySoftwareTokenResponseType = {
|
|
17
|
+
ERROR: "ERROR",
|
|
18
|
+
SUCCESS: "SUCCESS",
|
|
19
|
+
};
|
|
21
20
|
export const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
22
21
|
...obj,
|
|
23
22
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -26,20 +26,20 @@ export interface AddCustomAttributesCommandOutput extends AddCustomAttributesRes
|
|
|
26
26
|
* import { CognitoIdentityProviderClient, AddCustomAttributesCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
27
27
|
* // const { CognitoIdentityProviderClient, AddCustomAttributesCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
28
28
|
* const client = new CognitoIdentityProviderClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // AddCustomAttributesRequest
|
|
30
30
|
* UserPoolId: "STRING_VALUE", // required
|
|
31
|
-
* CustomAttributes: [ // required
|
|
32
|
-
* {
|
|
31
|
+
* CustomAttributes: [ // CustomAttributesListType // required
|
|
32
|
+
* { // SchemaAttributeType
|
|
33
33
|
* Name: "STRING_VALUE",
|
|
34
34
|
* AttributeDataType: "String" || "Number" || "DateTime" || "Boolean",
|
|
35
35
|
* DeveloperOnlyAttribute: true || false,
|
|
36
36
|
* Mutable: true || false,
|
|
37
37
|
* Required: true || false,
|
|
38
|
-
* NumberAttributeConstraints: {
|
|
38
|
+
* NumberAttributeConstraints: { // NumberAttributeConstraintsType
|
|
39
39
|
* MinValue: "STRING_VALUE",
|
|
40
40
|
* MaxValue: "STRING_VALUE",
|
|
41
41
|
* },
|
|
42
|
-
* StringAttributeConstraints: {
|
|
42
|
+
* StringAttributeConstraints: { // StringAttributeConstraintsType
|
|
43
43
|
* MinLength: "STRING_VALUE",
|
|
44
44
|
* MaxLength: "STRING_VALUE",
|
|
45
45
|
* },
|
|
@@ -27,7 +27,7 @@ export interface AdminAddUserToGroupCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* import { CognitoIdentityProviderClient, AdminAddUserToGroupCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
28
28
|
* // const { CognitoIdentityProviderClient, AdminAddUserToGroupCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
29
29
|
* const client = new CognitoIdentityProviderClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // AdminAddUserToGroupRequest
|
|
31
31
|
* UserPoolId: "STRING_VALUE", // required
|
|
32
32
|
* Username: "STRING_VALUE", // required
|
|
33
33
|
* GroupName: "STRING_VALUE", // required
|
|
@@ -28,10 +28,10 @@ export interface AdminConfirmSignUpCommandOutput extends AdminConfirmSignUpRespo
|
|
|
28
28
|
* import { CognitoIdentityProviderClient, AdminConfirmSignUpCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
29
29
|
* // const { CognitoIdentityProviderClient, AdminConfirmSignUpCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
30
30
|
* const client = new CognitoIdentityProviderClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // AdminConfirmSignUpRequest
|
|
32
32
|
* UserPoolId: "STRING_VALUE", // required
|
|
33
33
|
* Username: "STRING_VALUE", // required
|
|
34
|
-
* ClientMetadata: {
|
|
34
|
+
* ClientMetadata: { // ClientMetadataType
|
|
35
35
|
* "<keys>": "STRING_VALUE",
|
|
36
36
|
* },
|
|
37
37
|
* };
|
|
@@ -56,11 +56,11 @@ export interface AdminCreateUserCommandOutput extends AdminCreateUserResponse, _
|
|
|
56
56
|
* import { CognitoIdentityProviderClient, AdminCreateUserCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
57
57
|
* // const { CognitoIdentityProviderClient, AdminCreateUserCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
58
58
|
* const client = new CognitoIdentityProviderClient(config);
|
|
59
|
-
* const input = {
|
|
59
|
+
* const input = { // AdminCreateUserRequest
|
|
60
60
|
* UserPoolId: "STRING_VALUE", // required
|
|
61
61
|
* Username: "STRING_VALUE", // required
|
|
62
|
-
* UserAttributes: [
|
|
63
|
-
* {
|
|
62
|
+
* UserAttributes: [ // AttributeListType
|
|
63
|
+
* { // AttributeType
|
|
64
64
|
* Name: "STRING_VALUE", // required
|
|
65
65
|
* Value: "STRING_VALUE",
|
|
66
66
|
* },
|
|
@@ -74,10 +74,10 @@ export interface AdminCreateUserCommandOutput extends AdminCreateUserResponse, _
|
|
|
74
74
|
* TemporaryPassword: "STRING_VALUE",
|
|
75
75
|
* ForceAliasCreation: true || false,
|
|
76
76
|
* MessageAction: "RESEND" || "SUPPRESS",
|
|
77
|
-
* DesiredDeliveryMediums: [
|
|
77
|
+
* DesiredDeliveryMediums: [ // DeliveryMediumListType
|
|
78
78
|
* "SMS" || "EMAIL",
|
|
79
79
|
* ],
|
|
80
|
-
* ClientMetadata: {
|
|
80
|
+
* ClientMetadata: { // ClientMetadataType
|
|
81
81
|
* "<keys>": "STRING_VALUE",
|
|
82
82
|
* },
|
|
83
83
|
* };
|
|
@@ -28,10 +28,10 @@ export interface AdminDeleteUserAttributesCommandOutput extends AdminDeleteUserA
|
|
|
28
28
|
* import { CognitoIdentityProviderClient, AdminDeleteUserAttributesCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
29
29
|
* // const { CognitoIdentityProviderClient, AdminDeleteUserAttributesCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
30
30
|
* const client = new CognitoIdentityProviderClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // AdminDeleteUserAttributesRequest
|
|
32
32
|
* UserPoolId: "STRING_VALUE", // required
|
|
33
33
|
* Username: "STRING_VALUE", // required
|
|
34
|
-
* UserAttributeNames: [ // required
|
|
34
|
+
* UserAttributeNames: [ // AttributeNameListType // required
|
|
35
35
|
* "STRING_VALUE",
|
|
36
36
|
* ],
|
|
37
37
|
* };
|
|
@@ -27,7 +27,7 @@ export interface AdminDeleteUserCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* import { CognitoIdentityProviderClient, AdminDeleteUserCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
28
28
|
* // const { CognitoIdentityProviderClient, AdminDeleteUserCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
29
29
|
* const client = new CognitoIdentityProviderClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // AdminDeleteUserRequest
|
|
31
31
|
* UserPoolId: "STRING_VALUE", // required
|
|
32
32
|
* Username: "STRING_VALUE", // required
|
|
33
33
|
* };
|