@aws-sdk/client-cognito-identity-provider 3.650.0 → 3.651.1

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.
Files changed (32) hide show
  1. package/dist-cjs/index.js +37 -36
  2. package/dist-es/commands/RespondToAuthChallengeCommand.js +2 -1
  3. package/dist-es/commands/RevokeTokenCommand.js +1 -1
  4. package/dist-es/models/models_0.js +13 -25
  5. package/dist-es/models/models_1.js +14 -1
  6. package/dist-es/protocols/Aws_json1_1.js +3 -3
  7. package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
  8. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +6 -2
  9. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
  10. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +7 -3
  11. package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +9 -5
  12. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateUserPoolCommand.d.ts +1 -1
  14. package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
  15. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  16. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +4 -0
  17. package/dist-types/commands/InitiateAuthCommand.d.ts +6 -2
  18. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  19. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +9 -4
  20. package/dist-types/commands/RevokeTokenCommand.d.ts +1 -2
  21. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +4 -0
  22. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +9 -1
  23. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  24. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  25. package/dist-types/commands/UpdateUserPoolCommand.d.ts +1 -1
  26. package/dist-types/models/models_0.d.ts +139 -95
  27. package/dist-types/models/models_1.d.ts +96 -9
  28. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -4
  29. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +1 -2
  30. package/dist-types/ts3.4/models/models_0.d.ts +21 -27
  31. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  32. package/package.json +5 -5
@@ -425,6 +425,7 @@ export declare const ChallengeNameType: {
425
425
  readonly CUSTOM_CHALLENGE: "CUSTOM_CHALLENGE";
426
426
  readonly DEVICE_PASSWORD_VERIFIER: "DEVICE_PASSWORD_VERIFIER";
427
427
  readonly DEVICE_SRP_AUTH: "DEVICE_SRP_AUTH";
428
+ readonly EMAIL_OTP: "EMAIL_OTP";
428
429
  readonly MFA_SETUP: "MFA_SETUP";
429
430
  readonly NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED";
430
431
  readonly PASSWORD_VERIFIER: "PASSWORD_VERIFIER";
@@ -440,6 +441,16 @@ export interface AdminInitiateAuthResponse {
440
441
  ChallengeParameters?: Record<string, string>;
441
442
  AuthenticationResult?: AuthenticationResultType;
442
443
  }
444
+ export declare class InvalidEmailRoleAccessPolicyException extends __BaseException {
445
+ readonly name: "InvalidEmailRoleAccessPolicyException";
446
+ readonly $fault: "client";
447
+ constructor(
448
+ opts: __ExceptionOptionType<
449
+ InvalidEmailRoleAccessPolicyException,
450
+ __BaseException
451
+ >
452
+ );
453
+ }
443
454
  export declare class MFAMethodNotFoundException extends __BaseException {
444
455
  readonly name: "MFAMethodNotFoundException";
445
456
  readonly $fault: "client";
@@ -603,16 +614,6 @@ export interface AdminResetUserPasswordRequest {
603
614
  ClientMetadata?: Record<string, string>;
604
615
  }
605
616
  export interface AdminResetUserPasswordResponse {}
606
- export declare class InvalidEmailRoleAccessPolicyException extends __BaseException {
607
- readonly name: "InvalidEmailRoleAccessPolicyException";
608
- readonly $fault: "client";
609
- constructor(
610
- opts: __ExceptionOptionType<
611
- InvalidEmailRoleAccessPolicyException,
612
- __BaseException
613
- >
614
- );
615
- }
616
617
  export interface AdminRespondToAuthChallengeRequest {
617
618
  UserPoolId: string | undefined;
618
619
  ClientId: string | undefined;
@@ -663,6 +664,10 @@ export declare class SoftwareTokenMFANotFoundException extends __BaseException {
663
664
  >
664
665
  );
665
666
  }
667
+ export interface EmailMfaSettingsType {
668
+ Enabled?: boolean;
669
+ PreferredMfa?: boolean;
670
+ }
666
671
  export interface SMSMfaSettingsType {
667
672
  Enabled?: boolean;
668
673
  PreferredMfa?: boolean;
@@ -674,6 +679,7 @@ export interface SoftwareTokenMfaSettingsType {
674
679
  export interface AdminSetUserMFAPreferenceRequest {
675
680
  SMSMfaSettings?: SMSMfaSettingsType;
676
681
  SoftwareTokenMfaSettings?: SoftwareTokenMfaSettingsType;
682
+ EmailMfaSettings?: EmailMfaSettingsType;
677
683
  Username: string | undefined;
678
684
  UserPoolId: string | undefined;
679
685
  }
@@ -1515,6 +1521,10 @@ export interface GetUserAttributeVerificationCodeResponse {
1515
1521
  export interface GetUserPoolMfaConfigRequest {
1516
1522
  UserPoolId: string | undefined;
1517
1523
  }
1524
+ export interface EmailMfaConfigType {
1525
+ Message?: string;
1526
+ Subject?: string;
1527
+ }
1518
1528
  export interface SmsMfaConfigType {
1519
1529
  SmsAuthenticationMessage?: string;
1520
1530
  SmsConfiguration?: SmsConfigurationType;
@@ -1525,6 +1535,7 @@ export interface SoftwareTokenMfaConfigType {
1525
1535
  export interface GetUserPoolMfaConfigResponse {
1526
1536
  SmsMfaConfiguration?: SmsMfaConfigType;
1527
1537
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
1538
+ EmailMfaConfiguration?: EmailMfaConfigType;
1528
1539
  MfaConfiguration?: UserPoolMfaType;
1529
1540
  }
1530
1541
  export interface GlobalSignOutRequest {
@@ -1673,17 +1684,6 @@ export interface RespondToAuthChallengeRequest {
1673
1684
  UserContextData?: UserContextDataType;
1674
1685
  ClientMetadata?: Record<string, string>;
1675
1686
  }
1676
- export interface RespondToAuthChallengeResponse {
1677
- ChallengeName?: ChallengeNameType;
1678
- Session?: string;
1679
- ChallengeParameters?: Record<string, string>;
1680
- AuthenticationResult?: AuthenticationResultType;
1681
- }
1682
- export interface RevokeTokenRequest {
1683
- Token: string | undefined;
1684
- ClientId: string | undefined;
1685
- ClientSecret?: string;
1686
- }
1687
1687
  export declare const AdminAddUserToGroupRequestFilterSensitiveLog: (
1688
1688
  obj: AdminAddUserToGroupRequest
1689
1689
  ) => any;
@@ -1896,9 +1896,3 @@ export declare const ResendConfirmationCodeRequestFilterSensitiveLog: (
1896
1896
  export declare const RespondToAuthChallengeRequestFilterSensitiveLog: (
1897
1897
  obj: RespondToAuthChallengeRequest
1898
1898
  ) => any;
1899
- export declare const RespondToAuthChallengeResponseFilterSensitiveLog: (
1900
- obj: RespondToAuthChallengeResponse
1901
- ) => any;
1902
- export declare const RevokeTokenRequestFilterSensitiveLog: (
1903
- obj: RevokeTokenRequest
1904
- ) => any;
@@ -7,6 +7,8 @@ import {
7
7
  AnalyticsConfigurationType,
8
8
  AnalyticsMetadataType,
9
9
  AttributeType,
10
+ AuthenticationResultType,
11
+ ChallengeNameType,
10
12
  CodeDeliveryDetailsType,
11
13
  CompromisedCredentialsRiskConfigurationType,
12
14
  CustomDomainConfigType,
@@ -14,6 +16,8 @@ import {
14
16
  DeviceConfigurationType,
15
17
  DeviceRememberedStatusType,
16
18
  EmailConfigurationType,
19
+ EmailMfaConfigType,
20
+ EmailMfaSettingsType,
17
21
  ExplicitAuthFlowsType,
18
22
  FeedbackValueType,
19
23
  GroupType,
@@ -45,6 +49,17 @@ import {
45
49
  VerificationMessageTemplateType,
46
50
  VerifiedAttributeType,
47
51
  } from "./models_0";
52
+ export interface RespondToAuthChallengeResponse {
53
+ ChallengeName?: ChallengeNameType;
54
+ Session?: string;
55
+ ChallengeParameters?: Record<string, string>;
56
+ AuthenticationResult?: AuthenticationResultType;
57
+ }
58
+ export interface RevokeTokenRequest {
59
+ Token: string | undefined;
60
+ ClientId: string | undefined;
61
+ ClientSecret?: string;
62
+ }
48
63
  export interface RevokeTokenResponse {}
49
64
  export declare class UnauthorizedException extends __BaseException {
50
65
  readonly name: "UnauthorizedException";
@@ -96,6 +111,7 @@ export interface SetUICustomizationResponse {
96
111
  export interface SetUserMFAPreferenceRequest {
97
112
  SMSMfaSettings?: SMSMfaSettingsType;
98
113
  SoftwareTokenMfaSettings?: SoftwareTokenMfaSettingsType;
114
+ EmailMfaSettings?: EmailMfaSettingsType;
99
115
  AccessToken: string | undefined;
100
116
  }
101
117
  export interface SetUserMFAPreferenceResponse {}
@@ -103,11 +119,13 @@ export interface SetUserPoolMfaConfigRequest {
103
119
  UserPoolId: string | undefined;
104
120
  SmsMfaConfiguration?: SmsMfaConfigType;
105
121
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
122
+ EmailMfaConfiguration?: EmailMfaConfigType;
106
123
  MfaConfiguration?: UserPoolMfaType;
107
124
  }
108
125
  export interface SetUserPoolMfaConfigResponse {
109
126
  SmsMfaConfiguration?: SmsMfaConfigType;
110
127
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
128
+ EmailMfaConfiguration?: EmailMfaConfigType;
111
129
  MfaConfiguration?: UserPoolMfaType;
112
130
  }
113
131
  export interface SetUserSettingsRequest {
@@ -295,6 +313,12 @@ export interface VerifyUserAttributeRequest {
295
313
  Code: string | undefined;
296
314
  }
297
315
  export interface VerifyUserAttributeResponse {}
316
+ export declare const RespondToAuthChallengeResponseFilterSensitiveLog: (
317
+ obj: RespondToAuthChallengeResponse
318
+ ) => any;
319
+ export declare const RevokeTokenRequestFilterSensitiveLog: (
320
+ obj: RevokeTokenRequest
321
+ ) => any;
298
322
  export declare const SetRiskConfigurationRequestFilterSensitiveLog: (
299
323
  obj: SetRiskConfigurationRequest
300
324
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity-provider",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
4
- "version": "3.650.0",
4
+ "version": "3.651.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity-provider",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.650.0",
24
- "@aws-sdk/client-sts": "3.650.0",
25
- "@aws-sdk/core": "3.649.0",
26
- "@aws-sdk/credential-provider-node": "3.650.0",
23
+ "@aws-sdk/client-sso-oidc": "3.651.1",
24
+ "@aws-sdk/client-sts": "3.651.1",
25
+ "@aws-sdk/core": "3.651.1",
26
+ "@aws-sdk/credential-provider-node": "3.651.1",
27
27
  "@aws-sdk/middleware-host-header": "3.649.0",
28
28
  "@aws-sdk/middleware-logger": "3.649.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.649.0",