@aws-sdk/client-cognito-identity-provider 3.301.0 → 3.306.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.
@@ -893,11 +893,16 @@ export interface VerifySoftwareTokenRequest {
893
893
  }
894
894
  /**
895
895
  * @public
896
+ * @enum
896
897
  */
897
- export declare enum VerifySoftwareTokenResponseType {
898
- ERROR = "ERROR",
899
- SUCCESS = "SUCCESS"
900
- }
898
+ export declare const VerifySoftwareTokenResponseType: {
899
+ readonly ERROR: "ERROR";
900
+ readonly SUCCESS: "SUCCESS";
901
+ };
902
+ /**
903
+ * @public
904
+ */
905
+ export type VerifySoftwareTokenResponseType = (typeof VerifySoftwareTokenResponseType)[keyof typeof VerifySoftwareTokenResponseType];
901
906
  /**
902
907
  * @public
903
908
  */
@@ -1,10 +1,12 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
- export declare enum RecoveryOptionNameType {
4
- ADMIN_ONLY = "admin_only",
5
- VERIFIED_EMAIL = "verified_email",
6
- VERIFIED_PHONE_NUMBER = "verified_phone_number",
7
- }
3
+ export declare const RecoveryOptionNameType: {
4
+ readonly ADMIN_ONLY: "admin_only";
5
+ readonly VERIFIED_EMAIL: "verified_email";
6
+ readonly VERIFIED_PHONE_NUMBER: "verified_phone_number";
7
+ };
8
+ export type RecoveryOptionNameType =
9
+ (typeof RecoveryOptionNameType)[keyof typeof RecoveryOptionNameType];
8
10
  export interface RecoveryOptionType {
9
11
  Priority: number | undefined;
10
12
  Name: RecoveryOptionNameType | string | undefined;
@@ -12,12 +14,14 @@ export interface RecoveryOptionType {
12
14
  export interface AccountRecoverySettingType {
13
15
  RecoveryMechanisms?: RecoveryOptionType[];
14
16
  }
15
- export declare enum AccountTakeoverEventActionType {
16
- BLOCK = "BLOCK",
17
- MFA_IF_CONFIGURED = "MFA_IF_CONFIGURED",
18
- MFA_REQUIRED = "MFA_REQUIRED",
19
- NO_ACTION = "NO_ACTION",
20
- }
17
+ export declare const AccountTakeoverEventActionType: {
18
+ readonly BLOCK: "BLOCK";
19
+ readonly MFA_IF_CONFIGURED: "MFA_IF_CONFIGURED";
20
+ readonly MFA_REQUIRED: "MFA_REQUIRED";
21
+ readonly NO_ACTION: "NO_ACTION";
22
+ };
23
+ export type AccountTakeoverEventActionType =
24
+ (typeof AccountTakeoverEventActionType)[keyof typeof AccountTakeoverEventActionType];
21
25
  export interface AccountTakeoverActionType {
22
26
  Notify: boolean | undefined;
23
27
  EventAction: AccountTakeoverEventActionType | string | undefined;
@@ -44,12 +48,14 @@ export interface AccountTakeoverRiskConfigurationType {
44
48
  NotifyConfiguration?: NotifyConfigurationType;
45
49
  Actions: AccountTakeoverActionsType | undefined;
46
50
  }
47
- export declare enum AttributeDataType {
48
- BOOLEAN = "Boolean",
49
- DATETIME = "DateTime",
50
- NUMBER = "Number",
51
- STRING = "String",
52
- }
51
+ export declare const AttributeDataType: {
52
+ readonly BOOLEAN: "Boolean";
53
+ readonly DATETIME: "DateTime";
54
+ readonly NUMBER: "Number";
55
+ readonly STRING: "String";
56
+ };
57
+ export type AttributeDataType =
58
+ (typeof AttributeDataType)[keyof typeof AttributeDataType];
53
59
  export interface NumberAttributeConstraintsType {
54
60
  MinValue?: string;
55
61
  MaxValue?: string;
@@ -167,14 +173,18 @@ export declare class UserLambdaValidationException extends __BaseException {
167
173
  opts: __ExceptionOptionType<UserLambdaValidationException, __BaseException>
168
174
  );
169
175
  }
170
- export declare enum DeliveryMediumType {
171
- EMAIL = "EMAIL",
172
- SMS = "SMS",
173
- }
174
- export declare enum MessageActionType {
175
- RESEND = "RESEND",
176
- SUPPRESS = "SUPPRESS",
177
- }
176
+ export declare const DeliveryMediumType: {
177
+ readonly EMAIL: "EMAIL";
178
+ readonly SMS: "SMS";
179
+ };
180
+ export type DeliveryMediumType =
181
+ (typeof DeliveryMediumType)[keyof typeof DeliveryMediumType];
182
+ export declare const MessageActionType: {
183
+ readonly RESEND: "RESEND";
184
+ readonly SUPPRESS: "SUPPRESS";
185
+ };
186
+ export type MessageActionType =
187
+ (typeof MessageActionType)[keyof typeof MessageActionType];
178
188
  export interface AttributeType {
179
189
  Name: string | undefined;
180
190
  Value?: string;
@@ -194,15 +204,17 @@ export interface MFAOptionType {
194
204
  DeliveryMedium?: DeliveryMediumType | string;
195
205
  AttributeName?: string;
196
206
  }
197
- export declare enum UserStatusType {
198
- ARCHIVED = "ARCHIVED",
199
- COMPROMISED = "COMPROMISED",
200
- CONFIRMED = "CONFIRMED",
201
- FORCE_CHANGE_PASSWORD = "FORCE_CHANGE_PASSWORD",
202
- RESET_REQUIRED = "RESET_REQUIRED",
203
- UNCONFIRMED = "UNCONFIRMED",
204
- UNKNOWN = "UNKNOWN",
205
- }
207
+ export declare const UserStatusType: {
208
+ readonly ARCHIVED: "ARCHIVED";
209
+ readonly COMPROMISED: "COMPROMISED";
210
+ readonly CONFIRMED: "CONFIRMED";
211
+ readonly FORCE_CHANGE_PASSWORD: "FORCE_CHANGE_PASSWORD";
212
+ readonly RESET_REQUIRED: "RESET_REQUIRED";
213
+ readonly UNCONFIRMED: "UNCONFIRMED";
214
+ readonly UNKNOWN: "UNKNOWN";
215
+ };
216
+ export type UserStatusType =
217
+ (typeof UserStatusType)[keyof typeof UserStatusType];
206
218
  export interface UserType {
207
219
  Username?: string;
208
220
  Attributes?: AttributeType[];
@@ -365,15 +377,16 @@ export interface AdminGetUserResponse {
365
377
  export interface AnalyticsMetadataType {
366
378
  AnalyticsEndpointId?: string;
367
379
  }
368
- export declare enum AuthFlowType {
369
- ADMIN_NO_SRP_AUTH = "ADMIN_NO_SRP_AUTH",
370
- ADMIN_USER_PASSWORD_AUTH = "ADMIN_USER_PASSWORD_AUTH",
371
- CUSTOM_AUTH = "CUSTOM_AUTH",
372
- REFRESH_TOKEN = "REFRESH_TOKEN",
373
- REFRESH_TOKEN_AUTH = "REFRESH_TOKEN_AUTH",
374
- USER_PASSWORD_AUTH = "USER_PASSWORD_AUTH",
375
- USER_SRP_AUTH = "USER_SRP_AUTH",
376
- }
380
+ export declare const AuthFlowType: {
381
+ readonly ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH";
382
+ readonly ADMIN_USER_PASSWORD_AUTH: "ADMIN_USER_PASSWORD_AUTH";
383
+ readonly CUSTOM_AUTH: "CUSTOM_AUTH";
384
+ readonly REFRESH_TOKEN: "REFRESH_TOKEN";
385
+ readonly REFRESH_TOKEN_AUTH: "REFRESH_TOKEN_AUTH";
386
+ readonly USER_PASSWORD_AUTH: "USER_PASSWORD_AUTH";
387
+ readonly USER_SRP_AUTH: "USER_SRP_AUTH";
388
+ };
389
+ export type AuthFlowType = (typeof AuthFlowType)[keyof typeof AuthFlowType];
377
390
  export interface HttpHeader {
378
391
  headerName?: string;
379
392
  headerValue?: string;
@@ -406,18 +419,20 @@ export interface AuthenticationResultType {
406
419
  IdToken?: string;
407
420
  NewDeviceMetadata?: NewDeviceMetadataType;
408
421
  }
409
- export declare enum ChallengeNameType {
410
- ADMIN_NO_SRP_AUTH = "ADMIN_NO_SRP_AUTH",
411
- CUSTOM_CHALLENGE = "CUSTOM_CHALLENGE",
412
- DEVICE_PASSWORD_VERIFIER = "DEVICE_PASSWORD_VERIFIER",
413
- DEVICE_SRP_AUTH = "DEVICE_SRP_AUTH",
414
- MFA_SETUP = "MFA_SETUP",
415
- NEW_PASSWORD_REQUIRED = "NEW_PASSWORD_REQUIRED",
416
- PASSWORD_VERIFIER = "PASSWORD_VERIFIER",
417
- SELECT_MFA_TYPE = "SELECT_MFA_TYPE",
418
- SMS_MFA = "SMS_MFA",
419
- SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA",
420
- }
422
+ export declare const ChallengeNameType: {
423
+ readonly ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH";
424
+ readonly CUSTOM_CHALLENGE: "CUSTOM_CHALLENGE";
425
+ readonly DEVICE_PASSWORD_VERIFIER: "DEVICE_PASSWORD_VERIFIER";
426
+ readonly DEVICE_SRP_AUTH: "DEVICE_SRP_AUTH";
427
+ readonly MFA_SETUP: "MFA_SETUP";
428
+ readonly NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED";
429
+ readonly PASSWORD_VERIFIER: "PASSWORD_VERIFIER";
430
+ readonly SELECT_MFA_TYPE: "SELECT_MFA_TYPE";
431
+ readonly SMS_MFA: "SMS_MFA";
432
+ readonly SOFTWARE_TOKEN_MFA: "SOFTWARE_TOKEN_MFA";
433
+ };
434
+ export type ChallengeNameType =
435
+ (typeof ChallengeNameType)[keyof typeof ChallengeNameType];
421
436
  export interface AdminInitiateAuthResponse {
422
437
  ChallengeName?: ChallengeNameType | string;
423
438
  Session?: string;
@@ -486,14 +501,17 @@ export interface AdminListUserAuthEventsRequest {
486
501
  MaxResults?: number;
487
502
  NextToken?: string;
488
503
  }
489
- export declare enum ChallengeName {
490
- Mfa = "Mfa",
491
- Password = "Password",
492
- }
493
- export declare enum ChallengeResponse {
494
- Failure = "Failure",
495
- Success = "Success",
496
- }
504
+ export declare const ChallengeName: {
505
+ readonly Mfa: "Mfa";
506
+ readonly Password: "Password";
507
+ };
508
+ export type ChallengeName = (typeof ChallengeName)[keyof typeof ChallengeName];
509
+ export declare const ChallengeResponse: {
510
+ readonly Failure: "Failure";
511
+ readonly Success: "Success";
512
+ };
513
+ export type ChallengeResponse =
514
+ (typeof ChallengeResponse)[keyof typeof ChallengeResponse];
497
515
  export interface ChallengeResponseType {
498
516
  ChallengeName?: ChallengeName | string;
499
517
  ChallengeResponse?: ChallengeResponse | string;
@@ -505,42 +523,50 @@ export interface EventContextDataType {
505
523
  City?: string;
506
524
  Country?: string;
507
525
  }
508
- export declare enum FeedbackValueType {
509
- INVALID = "Invalid",
510
- VALID = "Valid",
511
- }
526
+ export declare const FeedbackValueType: {
527
+ readonly INVALID: "Invalid";
528
+ readonly VALID: "Valid";
529
+ };
530
+ export type FeedbackValueType =
531
+ (typeof FeedbackValueType)[keyof typeof FeedbackValueType];
512
532
  export interface EventFeedbackType {
513
533
  FeedbackValue: FeedbackValueType | string | undefined;
514
534
  Provider: string | undefined;
515
535
  FeedbackDate?: Date;
516
536
  }
517
- export declare enum EventResponseType {
518
- Fail = "Fail",
519
- InProgress = "InProgress",
520
- Pass = "Pass",
521
- }
522
- export declare enum RiskDecisionType {
523
- AccountTakeover = "AccountTakeover",
524
- Block = "Block",
525
- NoRisk = "NoRisk",
526
- }
527
- export declare enum RiskLevelType {
528
- High = "High",
529
- Low = "Low",
530
- Medium = "Medium",
531
- }
537
+ export declare const EventResponseType: {
538
+ readonly Fail: "Fail";
539
+ readonly InProgress: "InProgress";
540
+ readonly Pass: "Pass";
541
+ };
542
+ export type EventResponseType =
543
+ (typeof EventResponseType)[keyof typeof EventResponseType];
544
+ export declare const RiskDecisionType: {
545
+ readonly AccountTakeover: "AccountTakeover";
546
+ readonly Block: "Block";
547
+ readonly NoRisk: "NoRisk";
548
+ };
549
+ export type RiskDecisionType =
550
+ (typeof RiskDecisionType)[keyof typeof RiskDecisionType];
551
+ export declare const RiskLevelType: {
552
+ readonly High: "High";
553
+ readonly Low: "Low";
554
+ readonly Medium: "Medium";
555
+ };
556
+ export type RiskLevelType = (typeof RiskLevelType)[keyof typeof RiskLevelType];
532
557
  export interface EventRiskType {
533
558
  RiskDecision?: RiskDecisionType | string;
534
559
  RiskLevel?: RiskLevelType | string;
535
560
  CompromisedCredentialsDetected?: boolean;
536
561
  }
537
- export declare enum EventType {
538
- ForgotPassword = "ForgotPassword",
539
- PasswordChange = "PasswordChange",
540
- ResendCode = "ResendCode",
541
- SignIn = "SignIn",
542
- SignUp = "SignUp",
543
- }
562
+ export declare const EventType: {
563
+ readonly ForgotPassword: "ForgotPassword";
564
+ readonly PasswordChange: "PasswordChange";
565
+ readonly ResendCode: "ResendCode";
566
+ readonly SignIn: "SignIn";
567
+ readonly SignUp: "SignUp";
568
+ };
569
+ export type EventType = (typeof EventType)[keyof typeof EventType];
544
570
  export interface AuthEventType {
545
571
  EventId?: string;
546
572
  EventType?: EventType | string;
@@ -661,10 +687,12 @@ export interface AdminUpdateAuthEventFeedbackRequest {
661
687
  FeedbackValue: FeedbackValueType | string | undefined;
662
688
  }
663
689
  export interface AdminUpdateAuthEventFeedbackResponse {}
664
- export declare enum DeviceRememberedStatusType {
665
- NOT_REMEMBERED = "not_remembered",
666
- REMEMBERED = "remembered",
667
- }
690
+ export declare const DeviceRememberedStatusType: {
691
+ readonly NOT_REMEMBERED: "not_remembered";
692
+ readonly REMEMBERED: "remembered";
693
+ };
694
+ export type DeviceRememberedStatusType =
695
+ (typeof DeviceRememberedStatusType)[keyof typeof DeviceRememberedStatusType];
668
696
  export interface AdminUpdateDeviceStatusRequest {
669
697
  UserPoolId: string | undefined;
670
698
  Username: string | undefined;
@@ -684,16 +712,20 @@ export interface AdminUserGlobalSignOutRequest {
684
712
  Username: string | undefined;
685
713
  }
686
714
  export interface AdminUserGlobalSignOutResponse {}
687
- export declare enum AdvancedSecurityModeType {
688
- AUDIT = "AUDIT",
689
- ENFORCED = "ENFORCED",
690
- OFF = "OFF",
691
- }
692
- export declare enum AliasAttributeType {
693
- EMAIL = "email",
694
- PHONE_NUMBER = "phone_number",
695
- PREFERRED_USERNAME = "preferred_username",
696
- }
715
+ export declare const AdvancedSecurityModeType: {
716
+ readonly AUDIT: "AUDIT";
717
+ readonly ENFORCED: "ENFORCED";
718
+ readonly OFF: "OFF";
719
+ };
720
+ export type AdvancedSecurityModeType =
721
+ (typeof AdvancedSecurityModeType)[keyof typeof AdvancedSecurityModeType];
722
+ export declare const AliasAttributeType: {
723
+ readonly EMAIL: "email";
724
+ readonly PHONE_NUMBER: "phone_number";
725
+ readonly PREFERRED_USERNAME: "preferred_username";
726
+ };
727
+ export type AliasAttributeType =
728
+ (typeof AliasAttributeType)[keyof typeof AliasAttributeType];
697
729
  export interface AnalyticsConfigurationType {
698
730
  ApplicationId?: string;
699
731
  ApplicationArn?: string;
@@ -724,10 +756,12 @@ export declare class ForbiddenException extends __BaseException {
724
756
  readonly $fault: "client";
725
757
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
726
758
  }
727
- export declare enum VerifiedAttributeType {
728
- EMAIL = "email",
729
- PHONE_NUMBER = "phone_number",
730
- }
759
+ export declare const VerifiedAttributeType: {
760
+ readonly EMAIL: "email";
761
+ readonly PHONE_NUMBER: "phone_number";
762
+ };
763
+ export type VerifiedAttributeType =
764
+ (typeof VerifiedAttributeType)[keyof typeof VerifiedAttributeType];
731
765
  export interface ChangePasswordRequest {
732
766
  PreviousPassword: string | undefined;
733
767
  ProposedPassword: string | undefined;
@@ -790,14 +824,16 @@ export declare class GroupExistsException extends __BaseException {
790
824
  opts: __ExceptionOptionType<GroupExistsException, __BaseException>
791
825
  );
792
826
  }
793
- export declare enum IdentityProviderTypeType {
794
- Facebook = "Facebook",
795
- Google = "Google",
796
- LoginWithAmazon = "LoginWithAmazon",
797
- OIDC = "OIDC",
798
- SAML = "SAML",
799
- SignInWithApple = "SignInWithApple",
800
- }
827
+ export declare const IdentityProviderTypeType: {
828
+ readonly Facebook: "Facebook";
829
+ readonly Google: "Google";
830
+ readonly LoginWithAmazon: "LoginWithAmazon";
831
+ readonly OIDC: "OIDC";
832
+ readonly SAML: "SAML";
833
+ readonly SignInWithApple: "SignInWithApple";
834
+ };
835
+ export type IdentityProviderTypeType =
836
+ (typeof IdentityProviderTypeType)[keyof typeof IdentityProviderTypeType];
801
837
  export interface CreateIdentityProviderRequest {
802
838
  UserPoolId: string | undefined;
803
839
  ProviderName: string | undefined;
@@ -850,16 +886,18 @@ export interface CreateUserImportJobRequest {
850
886
  UserPoolId: string | undefined;
851
887
  CloudWatchLogsRoleArn: string | undefined;
852
888
  }
853
- export declare enum UserImportJobStatusType {
854
- Created = "Created",
855
- Expired = "Expired",
856
- Failed = "Failed",
857
- InProgress = "InProgress",
858
- Pending = "Pending",
859
- Stopped = "Stopped",
860
- Stopping = "Stopping",
861
- Succeeded = "Succeeded",
862
- }
889
+ export declare const UserImportJobStatusType: {
890
+ readonly Created: "Created";
891
+ readonly Expired: "Expired";
892
+ readonly Failed: "Failed";
893
+ readonly InProgress: "InProgress";
894
+ readonly Pending: "Pending";
895
+ readonly Stopped: "Stopped";
896
+ readonly Stopping: "Stopping";
897
+ readonly Succeeded: "Succeeded";
898
+ };
899
+ export type UserImportJobStatusType =
900
+ (typeof UserImportJobStatusType)[keyof typeof UserImportJobStatusType];
863
901
  export interface UserImportJobType {
864
902
  JobName?: string;
865
903
  JobId?: string;
@@ -878,18 +916,22 @@ export interface UserImportJobType {
878
916
  export interface CreateUserImportJobResponse {
879
917
  UserImportJob?: UserImportJobType;
880
918
  }
881
- export declare enum DeletionProtectionType {
882
- ACTIVE = "ACTIVE",
883
- INACTIVE = "INACTIVE",
884
- }
919
+ export declare const DeletionProtectionType: {
920
+ readonly ACTIVE: "ACTIVE";
921
+ readonly INACTIVE: "INACTIVE";
922
+ };
923
+ export type DeletionProtectionType =
924
+ (typeof DeletionProtectionType)[keyof typeof DeletionProtectionType];
885
925
  export interface DeviceConfigurationType {
886
926
  ChallengeRequiredOnNewDevice?: boolean;
887
927
  DeviceOnlyRememberedOnUserPrompt?: boolean;
888
928
  }
889
- export declare enum EmailSendingAccountType {
890
- COGNITO_DEFAULT = "COGNITO_DEFAULT",
891
- DEVELOPER = "DEVELOPER",
892
- }
929
+ export declare const EmailSendingAccountType: {
930
+ readonly COGNITO_DEFAULT: "COGNITO_DEFAULT";
931
+ readonly DEVELOPER: "DEVELOPER";
932
+ };
933
+ export type EmailSendingAccountType =
934
+ (typeof EmailSendingAccountType)[keyof typeof EmailSendingAccountType];
893
935
  export interface EmailConfigurationType {
894
936
  SourceArn?: string;
895
937
  ReplyToEmailAddress?: string;
@@ -897,16 +939,20 @@ export interface EmailConfigurationType {
897
939
  From?: string;
898
940
  ConfigurationSet?: string;
899
941
  }
900
- export declare enum CustomEmailSenderLambdaVersionType {
901
- V1_0 = "V1_0",
902
- }
942
+ export declare const CustomEmailSenderLambdaVersionType: {
943
+ readonly V1_0: "V1_0";
944
+ };
945
+ export type CustomEmailSenderLambdaVersionType =
946
+ (typeof CustomEmailSenderLambdaVersionType)[keyof typeof CustomEmailSenderLambdaVersionType];
903
947
  export interface CustomEmailLambdaVersionConfigType {
904
948
  LambdaVersion: CustomEmailSenderLambdaVersionType | string | undefined;
905
949
  LambdaArn: string | undefined;
906
950
  }
907
- export declare enum CustomSMSSenderLambdaVersionType {
908
- V1_0 = "V1_0",
909
- }
951
+ export declare const CustomSMSSenderLambdaVersionType: {
952
+ readonly V1_0: "V1_0";
953
+ };
954
+ export type CustomSMSSenderLambdaVersionType =
955
+ (typeof CustomSMSSenderLambdaVersionType)[keyof typeof CustomSMSSenderLambdaVersionType];
910
956
  export interface CustomSMSLambdaVersionConfigType {
911
957
  LambdaVersion: CustomSMSSenderLambdaVersionType | string | undefined;
912
958
  LambdaArn: string | undefined;
@@ -926,11 +972,13 @@ export interface LambdaConfigType {
926
972
  CustomEmailSender?: CustomEmailLambdaVersionConfigType;
927
973
  KMSKeyID?: string;
928
974
  }
929
- export declare enum UserPoolMfaType {
930
- OFF = "OFF",
931
- ON = "ON",
932
- OPTIONAL = "OPTIONAL",
933
- }
975
+ export declare const UserPoolMfaType: {
976
+ readonly OFF: "OFF";
977
+ readonly ON: "ON";
978
+ readonly OPTIONAL: "OPTIONAL";
979
+ };
980
+ export type UserPoolMfaType =
981
+ (typeof UserPoolMfaType)[keyof typeof UserPoolMfaType];
934
982
  export interface PasswordPolicyType {
935
983
  MinimumLength?: number;
936
984
  RequireUppercase?: boolean;
@@ -953,20 +1001,24 @@ export interface UserAttributeUpdateSettingsType {
953
1001
  | string
954
1002
  )[];
955
1003
  }
956
- export declare enum UsernameAttributeType {
957
- EMAIL = "email",
958
- PHONE_NUMBER = "phone_number",
959
- }
1004
+ export declare const UsernameAttributeType: {
1005
+ readonly EMAIL: "email";
1006
+ readonly PHONE_NUMBER: "phone_number";
1007
+ };
1008
+ export type UsernameAttributeType =
1009
+ (typeof UsernameAttributeType)[keyof typeof UsernameAttributeType];
960
1010
  export interface UsernameConfigurationType {
961
1011
  CaseSensitive: boolean | undefined;
962
1012
  }
963
1013
  export interface UserPoolAddOnsType {
964
1014
  AdvancedSecurityMode: AdvancedSecurityModeType | string | undefined;
965
1015
  }
966
- export declare enum DefaultEmailOptionType {
967
- CONFIRM_WITH_CODE = "CONFIRM_WITH_CODE",
968
- CONFIRM_WITH_LINK = "CONFIRM_WITH_LINK",
969
- }
1016
+ export declare const DefaultEmailOptionType: {
1017
+ readonly CONFIRM_WITH_CODE: "CONFIRM_WITH_CODE";
1018
+ readonly CONFIRM_WITH_LINK: "CONFIRM_WITH_LINK";
1019
+ };
1020
+ export type DefaultEmailOptionType =
1021
+ (typeof DefaultEmailOptionType)[keyof typeof DefaultEmailOptionType];
970
1022
  export interface VerificationMessageTemplateType {
971
1023
  SmsMessage?: string;
972
1024
  EmailMessage?: string;
@@ -1000,10 +1052,11 @@ export interface CreateUserPoolRequest {
1000
1052
  UsernameConfiguration?: UsernameConfigurationType;
1001
1053
  AccountRecoverySetting?: AccountRecoverySettingType;
1002
1054
  }
1003
- export declare enum StatusType {
1004
- Disabled = "Disabled",
1005
- Enabled = "Enabled",
1006
- }
1055
+ export declare const StatusType: {
1056
+ readonly Disabled: "Disabled";
1057
+ readonly Enabled: "Enabled";
1058
+ };
1059
+ export type StatusType = (typeof StatusType)[keyof typeof StatusType];
1007
1060
  export interface UserPoolType {
1008
1061
  Id?: string;
1009
1062
  Name?: string;
@@ -1049,31 +1102,37 @@ export declare class UserPoolTaggingException extends __BaseException {
1049
1102
  opts: __ExceptionOptionType<UserPoolTaggingException, __BaseException>
1050
1103
  );
1051
1104
  }
1052
- export declare enum OAuthFlowType {
1053
- client_credentials = "client_credentials",
1054
- code = "code",
1055
- implicit = "implicit",
1056
- }
1057
- export declare enum ExplicitAuthFlowsType {
1058
- ADMIN_NO_SRP_AUTH = "ADMIN_NO_SRP_AUTH",
1059
- ALLOW_ADMIN_USER_PASSWORD_AUTH = "ALLOW_ADMIN_USER_PASSWORD_AUTH",
1060
- ALLOW_CUSTOM_AUTH = "ALLOW_CUSTOM_AUTH",
1061
- ALLOW_REFRESH_TOKEN_AUTH = "ALLOW_REFRESH_TOKEN_AUTH",
1062
- ALLOW_USER_PASSWORD_AUTH = "ALLOW_USER_PASSWORD_AUTH",
1063
- ALLOW_USER_SRP_AUTH = "ALLOW_USER_SRP_AUTH",
1064
- CUSTOM_AUTH_FLOW_ONLY = "CUSTOM_AUTH_FLOW_ONLY",
1065
- USER_PASSWORD_AUTH = "USER_PASSWORD_AUTH",
1066
- }
1067
- export declare enum PreventUserExistenceErrorTypes {
1068
- ENABLED = "ENABLED",
1069
- LEGACY = "LEGACY",
1070
- }
1071
- export declare enum TimeUnitsType {
1072
- DAYS = "days",
1073
- HOURS = "hours",
1074
- MINUTES = "minutes",
1075
- SECONDS = "seconds",
1076
- }
1105
+ export declare const OAuthFlowType: {
1106
+ readonly client_credentials: "client_credentials";
1107
+ readonly code: "code";
1108
+ readonly implicit: "implicit";
1109
+ };
1110
+ export type OAuthFlowType = (typeof OAuthFlowType)[keyof typeof OAuthFlowType];
1111
+ export declare const ExplicitAuthFlowsType: {
1112
+ readonly ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH";
1113
+ readonly ALLOW_ADMIN_USER_PASSWORD_AUTH: "ALLOW_ADMIN_USER_PASSWORD_AUTH";
1114
+ readonly ALLOW_CUSTOM_AUTH: "ALLOW_CUSTOM_AUTH";
1115
+ readonly ALLOW_REFRESH_TOKEN_AUTH: "ALLOW_REFRESH_TOKEN_AUTH";
1116
+ readonly ALLOW_USER_PASSWORD_AUTH: "ALLOW_USER_PASSWORD_AUTH";
1117
+ readonly ALLOW_USER_SRP_AUTH: "ALLOW_USER_SRP_AUTH";
1118
+ readonly CUSTOM_AUTH_FLOW_ONLY: "CUSTOM_AUTH_FLOW_ONLY";
1119
+ readonly USER_PASSWORD_AUTH: "USER_PASSWORD_AUTH";
1120
+ };
1121
+ export type ExplicitAuthFlowsType =
1122
+ (typeof ExplicitAuthFlowsType)[keyof typeof ExplicitAuthFlowsType];
1123
+ export declare const PreventUserExistenceErrorTypes: {
1124
+ readonly ENABLED: "ENABLED";
1125
+ readonly LEGACY: "LEGACY";
1126
+ };
1127
+ export type PreventUserExistenceErrorTypes =
1128
+ (typeof PreventUserExistenceErrorTypes)[keyof typeof PreventUserExistenceErrorTypes];
1129
+ export declare const TimeUnitsType: {
1130
+ readonly DAYS: "days";
1131
+ readonly HOURS: "hours";
1132
+ readonly MINUTES: "minutes";
1133
+ readonly SECONDS: "seconds";
1134
+ };
1135
+ export type TimeUnitsType = (typeof TimeUnitsType)[keyof typeof TimeUnitsType];
1077
1136
  export interface TokenValidityUnitsType {
1078
1137
  AccessToken?: TimeUnitsType | string;
1079
1138
  IdToken?: TimeUnitsType | string;
@@ -1218,18 +1277,22 @@ export interface DescribeRiskConfigurationRequest {
1218
1277
  UserPoolId: string | undefined;
1219
1278
  ClientId?: string;
1220
1279
  }
1221
- export declare enum CompromisedCredentialsEventActionType {
1222
- BLOCK = "BLOCK",
1223
- NO_ACTION = "NO_ACTION",
1224
- }
1280
+ export declare const CompromisedCredentialsEventActionType: {
1281
+ readonly BLOCK: "BLOCK";
1282
+ readonly NO_ACTION: "NO_ACTION";
1283
+ };
1284
+ export type CompromisedCredentialsEventActionType =
1285
+ (typeof CompromisedCredentialsEventActionType)[keyof typeof CompromisedCredentialsEventActionType];
1225
1286
  export interface CompromisedCredentialsActionsType {
1226
1287
  EventAction: CompromisedCredentialsEventActionType | string | undefined;
1227
1288
  }
1228
- export declare enum EventFilterType {
1229
- PASSWORD_CHANGE = "PASSWORD_CHANGE",
1230
- SIGN_IN = "SIGN_IN",
1231
- SIGN_UP = "SIGN_UP",
1232
- }
1289
+ export declare const EventFilterType: {
1290
+ readonly PASSWORD_CHANGE: "PASSWORD_CHANGE";
1291
+ readonly SIGN_IN: "SIGN_IN";
1292
+ readonly SIGN_UP: "SIGN_UP";
1293
+ };
1294
+ export type EventFilterType =
1295
+ (typeof EventFilterType)[keyof typeof EventFilterType];
1233
1296
  export interface CompromisedCredentialsRiskConfigurationType {
1234
1297
  EventFilter?: (EventFilterType | string)[];
1235
1298
  Actions: CompromisedCredentialsActionsType | undefined;
@@ -1272,13 +1335,15 @@ export interface DescribeUserPoolClientResponse {
1272
1335
  export interface DescribeUserPoolDomainRequest {
1273
1336
  Domain: string | undefined;
1274
1337
  }
1275
- export declare enum DomainStatusType {
1276
- ACTIVE = "ACTIVE",
1277
- CREATING = "CREATING",
1278
- DELETING = "DELETING",
1279
- FAILED = "FAILED",
1280
- UPDATING = "UPDATING",
1281
- }
1338
+ export declare const DomainStatusType: {
1339
+ readonly ACTIVE: "ACTIVE";
1340
+ readonly CREATING: "CREATING";
1341
+ readonly DELETING: "DELETING";
1342
+ readonly FAILED: "FAILED";
1343
+ readonly UPDATING: "UPDATING";
1344
+ };
1345
+ export type DomainStatusType =
1346
+ (typeof DomainStatusType)[keyof typeof DomainStatusType];
1282
1347
  export interface DomainDescriptionType {
1283
1348
  UserPoolId?: string;
1284
1349
  AWSAccountId?: string;