@aws-sdk/client-cognito-identity-provider 3.782.0 → 3.794.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.
Files changed (36) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +124 -32
  3. package/dist-es/CognitoIdentityProvider.js +2 -0
  4. package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +23 -0
  5. package/dist-es/commands/GetUserAuthFactorsCommand.js +1 -1
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +40 -8
  8. package/dist-es/models/models_1.js +8 -12
  9. package/dist-es/protocols/Aws_json1_1.js +37 -5
  10. package/dist-types/CognitoIdentityProvider.d.ts +7 -0
  11. package/dist-types/CognitoIdentityProviderClient.d.ts +3 -2
  12. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +4 -0
  13. package/dist-types/commands/CreateUserPoolClientCommand.d.ts +12 -0
  14. package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +4 -0
  15. package/dist-types/commands/DeleteUserPoolDomainCommand.d.ts +4 -0
  16. package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +4 -0
  17. package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +132 -0
  18. package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +1 -1
  19. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +1 -2
  20. package/dist-types/commands/InitiateAuthCommand.d.ts +4 -0
  21. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +12 -0
  22. package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +4 -0
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/models/models_0.d.ts +198 -149
  25. package/dist-types/models/models_1.d.ts +127 -14
  26. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  27. package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +17 -0
  28. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +6 -0
  29. package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +51 -0
  30. package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +4 -2
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +41 -29
  34. package/dist-types/ts3.4/models/models_1.d.ts +32 -10
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  36. package/package.json +5 -5
@@ -1,7 +1,117 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { DocumentType as __DocumentType } from "@smithy/types";
3
3
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
4
- import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AssetType, AttributeType, AuthenticationResultType, AuthFlowType, ChallengeNameType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, DeviceType, EmailConfigurationType, EmailMfaConfigType, EmailMfaSettingsType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, IdentityProviderTypeType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, ManagedLoginBrandingType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, StatusType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, UserPoolTierType, UserType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
4
+ import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AssetType, AttributeType, AuthenticationResultType, AuthFactorType, AuthFlowType, ChallengeNameType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, DeviceType, EmailConfigurationType, EmailMfaSettingsType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, IdentityProviderTypeType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, ManagedLoginBrandingType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, RefreshTokenRotationType, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SMSMfaSettingsType, SoftwareTokenMfaSettingsType, StatusType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, UserPoolTierType, UserType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface GetUserAuthFactorsRequest {
9
+ /**
10
+ * <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
11
+ * <code>aws.cognito.signin.user.admin</code>.</p>
12
+ * @public
13
+ */
14
+ AccessToken: string | undefined;
15
+ }
16
+ /**
17
+ * @public
18
+ */
19
+ export interface GetUserAuthFactorsResponse {
20
+ /**
21
+ * <p>The name of the user who is eligible for the authentication factors in the
22
+ * response.</p>
23
+ * @public
24
+ */
25
+ Username: string | undefined;
26
+ /**
27
+ * <p>The challenge method that Amazon Cognito returns to the user in response to sign-in requests.
28
+ * Users can prefer SMS message, email message, or TOTP MFA.</p>
29
+ * @public
30
+ */
31
+ PreferredMfaSetting?: string | undefined;
32
+ /**
33
+ * <p>The MFA options that are activated for the user. The possible values in this list are
34
+ * <code>SMS_MFA</code>, <code>EMAIL_OTP</code>, and
35
+ * <code>SOFTWARE_TOKEN_MFA</code>.</p>
36
+ * @public
37
+ */
38
+ UserMFASettingList?: string[] | undefined;
39
+ /**
40
+ * <p>The authentication types that are available to the user with <code>USER_AUTH</code>
41
+ * sign-in, for example <code>["PASSWORD", "WEB_AUTHN"]</code>.</p>
42
+ * @public
43
+ */
44
+ ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
45
+ }
46
+ /**
47
+ * @public
48
+ */
49
+ export interface GetUserPoolMfaConfigRequest {
50
+ /**
51
+ * <p>The ID of the user pool where you want to query WebAuthn and MFA configuration.</p>
52
+ * @public
53
+ */
54
+ UserPoolId: string | undefined;
55
+ }
56
+ /**
57
+ * <p>Sets or shows configuration for user pool email message MFA and sign-in with one-time
58
+ * passwords (OTPs). Includes the subject and body of the email message template for
59
+ * sign-in and MFA messages. To activate this setting, your user pool must be in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html">
60
+ * Essentials tier</a> or higher.</p>
61
+ * @public
62
+ */
63
+ export interface EmailMfaConfigType {
64
+ /**
65
+ * <p>The template for the email messages that your user pool sends to users with codes for
66
+ * MFA and sign-in with email OTPs. The message must contain the <code>\{####\}</code>
67
+ * placeholder. In the message, Amazon Cognito replaces this placeholder with the code. If you
68
+ * don't provide this parameter, Amazon Cognito sends messages in the default format.</p>
69
+ * @public
70
+ */
71
+ Message?: string | undefined;
72
+ /**
73
+ * <p>The subject of the email messages that your user pool sends to users with codes for
74
+ * MFA and email OTP sign-in.</p>
75
+ * @public
76
+ */
77
+ Subject?: string | undefined;
78
+ }
79
+ /**
80
+ * <p>The configuration of multi-factor authentication (MFA) with SMS messages in a user
81
+ * pool.</p>
82
+ * @public
83
+ */
84
+ export interface SmsMfaConfigType {
85
+ /**
86
+ * <p>The SMS authentication message that will be sent to users with the code they must sign
87
+ * in with. The message must contain the <code>\{####\}</code> placeholder. Your user pool
88
+ * replaces the placeholder with the MFA code. If this parameter isn't provided, your user
89
+ * pool sends a default message.</p>
90
+ * @public
91
+ */
92
+ SmsAuthenticationMessage?: string | undefined;
93
+ /**
94
+ * <p>User pool configuration for delivery of SMS messages with Amazon Simple Notification Service. To send SMS
95
+ * messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an
96
+ * Identity and Access Management (IAM) role in your Amazon Web Services account.</p>
97
+ * <p>You can set <code>SmsConfiguration</code> in <code>CreateUserPool</code> and <code>
98
+ * UpdateUserPool</code>, or in <code>SetUserPoolMfaConfig</code>.</p>
99
+ * @public
100
+ */
101
+ SmsConfiguration?: SmsConfigurationType | undefined;
102
+ }
103
+ /**
104
+ * <p>Settings for time-based one-time password (TOTP) multi-factor authentication (MFA) in
105
+ * a user pool. Enables and disables availability of this feature.</p>
106
+ * @public
107
+ */
108
+ export interface SoftwareTokenMfaConfigType {
109
+ /**
110
+ * <p>The activation state of TOTP MFA.</p>
111
+ * @public
112
+ */
113
+ Enabled?: boolean | undefined;
114
+ }
5
115
  /**
6
116
  * @public
7
117
  * @enum
@@ -1810,19 +1920,6 @@ export declare class UnauthorizedException extends __BaseException {
1810
1920
  */
1811
1921
  constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
1812
1922
  }
1813
- /**
1814
- * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
1815
- * for the user pool client.</p>
1816
- * @public
1817
- */
1818
- export declare class UnsupportedOperationException extends __BaseException {
1819
- readonly name: "UnsupportedOperationException";
1820
- readonly $fault: "client";
1821
- /**
1822
- * @internal
1823
- */
1824
- constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
1825
- }
1826
1923
  /**
1827
1924
  * <p>Exception that is thrown when an unsupported token is passed to an operation.</p>
1828
1925
  * @public
@@ -3367,6 +3464,14 @@ export interface UpdateUserPoolClientRequest {
3367
3464
  * @public
3368
3465
  */
3369
3466
  AuthSessionValidity?: number | undefined;
3467
+ /**
3468
+ * <p>The configuration of your app client for refresh token rotation. When enabled, your
3469
+ * app client issues new ID, access, and refresh tokens when users renew their sessions
3470
+ * with refresh tokens. When disabled, token refresh issues only ID and access
3471
+ * tokens.</p>
3472
+ * @public
3473
+ */
3474
+ RefreshTokenRotation?: RefreshTokenRotationType | undefined;
3370
3475
  }
3371
3476
  /**
3372
3477
  * <p>Represents the response from the server to the request to update the user pool
@@ -3538,6 +3643,14 @@ export interface VerifyUserAttributeRequest {
3538
3643
  */
3539
3644
  export interface VerifyUserAttributeResponse {
3540
3645
  }
3646
+ /**
3647
+ * @internal
3648
+ */
3649
+ export declare const GetUserAuthFactorsRequestFilterSensitiveLog: (obj: GetUserAuthFactorsRequest) => any;
3650
+ /**
3651
+ * @internal
3652
+ */
3653
+ export declare const GetUserAuthFactorsResponseFilterSensitiveLog: (obj: GetUserAuthFactorsResponse) => any;
3541
3654
  /**
3542
3655
  * @internal
3543
3656
  */
@@ -68,6 +68,7 @@ import { GetGroupCommandInput, GetGroupCommandOutput } from "../commands/GetGrou
68
68
  import { GetIdentityProviderByIdentifierCommandInput, GetIdentityProviderByIdentifierCommandOutput } from "../commands/GetIdentityProviderByIdentifierCommand";
69
69
  import { GetLogDeliveryConfigurationCommandInput, GetLogDeliveryConfigurationCommandOutput } from "../commands/GetLogDeliveryConfigurationCommand";
70
70
  import { GetSigningCertificateCommandInput, GetSigningCertificateCommandOutput } from "../commands/GetSigningCertificateCommand";
71
+ import { GetTokensFromRefreshTokenCommandInput, GetTokensFromRefreshTokenCommandOutput } from "../commands/GetTokensFromRefreshTokenCommand";
71
72
  import { GetUICustomizationCommandInput, GetUICustomizationCommandOutput } from "../commands/GetUICustomizationCommand";
72
73
  import { GetUserAttributeVerificationCodeCommandInput, GetUserAttributeVerificationCodeCommandOutput } from "../commands/GetUserAttributeVerificationCodeCommand";
73
74
  import { GetUserAuthFactorsCommandInput, GetUserAuthFactorsCommandOutput } from "../commands/GetUserAuthFactorsCommand";
@@ -385,6 +386,10 @@ export declare const se_GetLogDeliveryConfigurationCommand: (input: GetLogDelive
385
386
  * serializeAws_json1_1GetSigningCertificateCommand
386
387
  */
387
388
  export declare const se_GetSigningCertificateCommand: (input: GetSigningCertificateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
389
+ /**
390
+ * serializeAws_json1_1GetTokensFromRefreshTokenCommand
391
+ */
392
+ export declare const se_GetTokensFromRefreshTokenCommand: (input: GetTokensFromRefreshTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
388
393
  /**
389
394
  * serializeAws_json1_1GetUICustomizationCommand
390
395
  */
@@ -837,6 +842,10 @@ export declare const de_GetLogDeliveryConfigurationCommand: (output: __HttpRespo
837
842
  * deserializeAws_json1_1GetSigningCertificateCommand
838
843
  */
839
844
  export declare const de_GetSigningCertificateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSigningCertificateCommandOutput>;
845
+ /**
846
+ * deserializeAws_json1_1GetTokensFromRefreshTokenCommand
847
+ */
848
+ export declare const de_GetTokensFromRefreshTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTokensFromRefreshTokenCommandOutput>;
840
849
  /**
841
850
  * deserializeAws_json1_1GetUICustomizationCommand
842
851
  */
@@ -272,6 +272,10 @@ import {
272
272
  GetSigningCertificateCommandInput,
273
273
  GetSigningCertificateCommandOutput,
274
274
  } from "./commands/GetSigningCertificateCommand";
275
+ import {
276
+ GetTokensFromRefreshTokenCommandInput,
277
+ GetTokensFromRefreshTokenCommandOutput,
278
+ } from "./commands/GetTokensFromRefreshTokenCommand";
275
279
  import {
276
280
  GetUICustomizationCommandInput,
277
281
  GetUICustomizationCommandOutput,
@@ -1344,6 +1348,19 @@ export interface CognitoIdentityProvider {
1344
1348
  options: __HttpHandlerOptions,
1345
1349
  cb: (err: any, data?: GetSigningCertificateCommandOutput) => void
1346
1350
  ): void;
1351
+ getTokensFromRefreshToken(
1352
+ args: GetTokensFromRefreshTokenCommandInput,
1353
+ options?: __HttpHandlerOptions
1354
+ ): Promise<GetTokensFromRefreshTokenCommandOutput>;
1355
+ getTokensFromRefreshToken(
1356
+ args: GetTokensFromRefreshTokenCommandInput,
1357
+ cb: (err: any, data?: GetTokensFromRefreshTokenCommandOutput) => void
1358
+ ): void;
1359
+ getTokensFromRefreshToken(
1360
+ args: GetTokensFromRefreshTokenCommandInput,
1361
+ options: __HttpHandlerOptions,
1362
+ cb: (err: any, data?: GetTokensFromRefreshTokenCommandOutput) => void
1363
+ ): void;
1347
1364
  getUICustomization(
1348
1365
  args: GetUICustomizationCommandInput,
1349
1366
  options?: __HttpHandlerOptions
@@ -317,6 +317,10 @@ import {
317
317
  GetSigningCertificateCommandInput,
318
318
  GetSigningCertificateCommandOutput,
319
319
  } from "./commands/GetSigningCertificateCommand";
320
+ import {
321
+ GetTokensFromRefreshTokenCommandInput,
322
+ GetTokensFromRefreshTokenCommandOutput,
323
+ } from "./commands/GetTokensFromRefreshTokenCommand";
320
324
  import {
321
325
  GetUICustomizationCommandInput,
322
326
  GetUICustomizationCommandOutput,
@@ -573,6 +577,7 @@ export type ServiceInputTypes =
573
577
  | GetIdentityProviderByIdentifierCommandInput
574
578
  | GetLogDeliveryConfigurationCommandInput
575
579
  | GetSigningCertificateCommandInput
580
+ | GetTokensFromRefreshTokenCommandInput
576
581
  | GetUICustomizationCommandInput
577
582
  | GetUserAttributeVerificationCodeCommandInput
578
583
  | GetUserAuthFactorsCommandInput
@@ -687,6 +692,7 @@ export type ServiceOutputTypes =
687
692
  | GetIdentityProviderByIdentifierCommandOutput
688
693
  | GetLogDeliveryConfigurationCommandOutput
689
694
  | GetSigningCertificateCommandOutput
695
+ | GetTokensFromRefreshTokenCommandOutput
690
696
  | GetUICustomizationCommandOutput
691
697
  | GetUserAttributeVerificationCodeCommandOutput
692
698
  | GetUserAuthFactorsCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CognitoIdentityProviderClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CognitoIdentityProviderClient";
8
+ import {
9
+ GetTokensFromRefreshTokenRequest,
10
+ GetTokensFromRefreshTokenResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetTokensFromRefreshTokenCommandInput
15
+ extends GetTokensFromRefreshTokenRequest {}
16
+ export interface GetTokensFromRefreshTokenCommandOutput
17
+ extends GetTokensFromRefreshTokenResponse,
18
+ __MetadataBearer {}
19
+ declare const GetTokensFromRefreshTokenCommand_base: {
20
+ new (
21
+ input: GetTokensFromRefreshTokenCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ GetTokensFromRefreshTokenCommandInput,
24
+ GetTokensFromRefreshTokenCommandOutput,
25
+ CognitoIdentityProviderClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: GetTokensFromRefreshTokenCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ GetTokensFromRefreshTokenCommandInput,
33
+ GetTokensFromRefreshTokenCommandOutput,
34
+ CognitoIdentityProviderClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class GetTokensFromRefreshTokenCommand extends GetTokensFromRefreshTokenCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: GetTokensFromRefreshTokenRequest;
44
+ output: GetTokensFromRefreshTokenResponse;
45
+ };
46
+ sdk: {
47
+ input: GetTokensFromRefreshTokenCommandInput;
48
+ output: GetTokensFromRefreshTokenCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  GetUserAuthFactorsRequest,
10
10
  GetUserAuthFactorsResponse,
11
- } from "../models/models_0";
11
+ } from "../models/models_1";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface GetUserAuthFactorsCommandInput
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../CognitoIdentityProviderClient";
8
- import { GetUserPoolMfaConfigRequest } from "../models/models_0";
9
- import { GetUserPoolMfaConfigResponse } from "../models/models_1";
8
+ import {
9
+ GetUserPoolMfaConfigRequest,
10
+ GetUserPoolMfaConfigResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface GetUserPoolMfaConfigCommandInput
@@ -66,6 +66,7 @@ export * from "./GetGroupCommand";
66
66
  export * from "./GetIdentityProviderByIdentifierCommand";
67
67
  export * from "./GetLogDeliveryConfigurationCommand";
68
68
  export * from "./GetSigningCertificateCommand";
69
+ export * from "./GetTokensFromRefreshTokenCommand";
69
70
  export * from "./GetUICustomizationCommand";
70
71
  export * from "./GetUserAttributeVerificationCodeCommand";
71
72
  export * from "./GetUserAuthFactorsCommand";
@@ -475,6 +475,13 @@ export declare class PasswordResetRequiredException extends __BaseException {
475
475
  opts: __ExceptionOptionType<PasswordResetRequiredException, __BaseException>
476
476
  );
477
477
  }
478
+ export declare class UnsupportedOperationException extends __BaseException {
479
+ readonly name: "UnsupportedOperationException";
480
+ readonly $fault: "client";
481
+ constructor(
482
+ opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
483
+ );
484
+ }
478
485
  export declare class UserNotConfirmedException extends __BaseException {
479
486
  readonly name: "UserNotConfirmedException";
480
487
  readonly $fault: "client";
@@ -1359,6 +1366,15 @@ export declare const PreventUserExistenceErrorTypes: {
1359
1366
  };
1360
1367
  export type PreventUserExistenceErrorTypes =
1361
1368
  (typeof PreventUserExistenceErrorTypes)[keyof typeof PreventUserExistenceErrorTypes];
1369
+ export declare const FeatureType: {
1370
+ readonly DISABLED: "DISABLED";
1371
+ readonly ENABLED: "ENABLED";
1372
+ };
1373
+ export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
1374
+ export interface RefreshTokenRotationType {
1375
+ Feature: FeatureType | undefined;
1376
+ RetryGracePeriodSeconds?: number | undefined;
1377
+ }
1362
1378
  export declare const TimeUnitsType: {
1363
1379
  readonly DAYS: "days";
1364
1380
  readonly HOURS: "hours";
@@ -1394,6 +1410,7 @@ export interface CreateUserPoolClientRequest {
1394
1410
  EnableTokenRevocation?: boolean | undefined;
1395
1411
  EnablePropagateAdditionalUserContextData?: boolean | undefined;
1396
1412
  AuthSessionValidity?: number | undefined;
1413
+ RefreshTokenRotation?: RefreshTokenRotationType | undefined;
1397
1414
  }
1398
1415
  export interface UserPoolClientType {
1399
1416
  UserPoolId?: string | undefined;
@@ -1421,6 +1438,7 @@ export interface UserPoolClientType {
1421
1438
  EnableTokenRevocation?: boolean | undefined;
1422
1439
  EnablePropagateAdditionalUserContextData?: boolean | undefined;
1423
1440
  AuthSessionValidity?: number | undefined;
1441
+ RefreshTokenRotation?: RefreshTokenRotationType | undefined;
1424
1442
  }
1425
1443
  export interface CreateUserPoolClientResponse {
1426
1444
  UserPoolClient?: UserPoolClientType | undefined;
@@ -1713,6 +1731,23 @@ export interface GetSigningCertificateRequest {
1713
1731
  export interface GetSigningCertificateResponse {
1714
1732
  Certificate?: string | undefined;
1715
1733
  }
1734
+ export interface GetTokensFromRefreshTokenRequest {
1735
+ RefreshToken: string | undefined;
1736
+ ClientId: string | undefined;
1737
+ ClientSecret?: string | undefined;
1738
+ DeviceKey?: string | undefined;
1739
+ ClientMetadata?: Record<string, string> | undefined;
1740
+ }
1741
+ export interface GetTokensFromRefreshTokenResponse {
1742
+ AuthenticationResult?: AuthenticationResultType | undefined;
1743
+ }
1744
+ export declare class RefreshTokenReuseException extends __BaseException {
1745
+ readonly name: "RefreshTokenReuseException";
1746
+ readonly $fault: "client";
1747
+ constructor(
1748
+ opts: __ExceptionOptionType<RefreshTokenReuseException, __BaseException>
1749
+ );
1750
+ }
1716
1751
  export interface GetUICustomizationRequest {
1717
1752
  UserPoolId: string | undefined;
1718
1753
  ClientId?: string | undefined;
@@ -1747,29 +1782,6 @@ export interface GetUserAttributeVerificationCodeRequest {
1747
1782
  export interface GetUserAttributeVerificationCodeResponse {
1748
1783
  CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
1749
1784
  }
1750
- export interface GetUserAuthFactorsRequest {
1751
- AccessToken: string | undefined;
1752
- }
1753
- export interface GetUserAuthFactorsResponse {
1754
- Username: string | undefined;
1755
- PreferredMfaSetting?: string | undefined;
1756
- UserMFASettingList?: string[] | undefined;
1757
- ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
1758
- }
1759
- export interface GetUserPoolMfaConfigRequest {
1760
- UserPoolId: string | undefined;
1761
- }
1762
- export interface EmailMfaConfigType {
1763
- Message?: string | undefined;
1764
- Subject?: string | undefined;
1765
- }
1766
- export interface SmsMfaConfigType {
1767
- SmsAuthenticationMessage?: string | undefined;
1768
- SmsConfiguration?: SmsConfigurationType | undefined;
1769
- }
1770
- export interface SoftwareTokenMfaConfigType {
1771
- Enabled?: boolean | undefined;
1772
- }
1773
1785
  export declare const AdminAddUserToGroupRequestFilterSensitiveLog: (
1774
1786
  obj: AdminAddUserToGroupRequest
1775
1787
  ) => any;
@@ -1946,6 +1958,12 @@ export declare const GetDeviceRequestFilterSensitiveLog: (
1946
1958
  export declare const GetDeviceResponseFilterSensitiveLog: (
1947
1959
  obj: GetDeviceResponse
1948
1960
  ) => any;
1961
+ export declare const GetTokensFromRefreshTokenRequestFilterSensitiveLog: (
1962
+ obj: GetTokensFromRefreshTokenRequest
1963
+ ) => any;
1964
+ export declare const GetTokensFromRefreshTokenResponseFilterSensitiveLog: (
1965
+ obj: GetTokensFromRefreshTokenResponse
1966
+ ) => any;
1949
1967
  export declare const GetUICustomizationRequestFilterSensitiveLog: (
1950
1968
  obj: GetUICustomizationRequest
1951
1969
  ) => any;
@@ -1964,9 +1982,3 @@ export declare const GetUserResponseFilterSensitiveLog: (
1964
1982
  export declare const GetUserAttributeVerificationCodeRequestFilterSensitiveLog: (
1965
1983
  obj: GetUserAttributeVerificationCodeRequest
1966
1984
  ) => any;
1967
- export declare const GetUserAuthFactorsRequestFilterSensitiveLog: (
1968
- obj: GetUserAuthFactorsRequest
1969
- ) => any;
1970
- export declare const GetUserAuthFactorsResponseFilterSensitiveLog: (
1971
- obj: GetUserAuthFactorsResponse
1972
- ) => any;
@@ -10,6 +10,7 @@ import {
10
10
  AssetType,
11
11
  AttributeType,
12
12
  AuthenticationResultType,
13
+ AuthFactorType,
13
14
  AuthFlowType,
14
15
  ChallengeNameType,
15
16
  CodeDeliveryDetailsType,
@@ -20,7 +21,6 @@ import {
20
21
  DeviceRememberedStatusType,
21
22
  DeviceType,
22
23
  EmailConfigurationType,
23
- EmailMfaConfigType,
24
24
  EmailMfaSettingsType,
25
25
  ExplicitAuthFlowsType,
26
26
  FeedbackValueType,
@@ -34,14 +34,13 @@ import {
34
34
  MFAOptionType,
35
35
  OAuthFlowType,
36
36
  PreventUserExistenceErrorTypes,
37
+ RefreshTokenRotationType,
37
38
  ResourceServerScopeType,
38
39
  ResourceServerType,
39
40
  RiskConfigurationType,
40
41
  RiskExceptionConfigurationType,
41
42
  SmsConfigurationType,
42
- SmsMfaConfigType,
43
43
  SMSMfaSettingsType,
44
- SoftwareTokenMfaConfigType,
45
44
  SoftwareTokenMfaSettingsType,
46
45
  StatusType,
47
46
  TokenValidityUnitsType,
@@ -58,6 +57,29 @@ import {
58
57
  VerificationMessageTemplateType,
59
58
  VerifiedAttributeType,
60
59
  } from "./models_0";
60
+ export interface GetUserAuthFactorsRequest {
61
+ AccessToken: string | undefined;
62
+ }
63
+ export interface GetUserAuthFactorsResponse {
64
+ Username: string | undefined;
65
+ PreferredMfaSetting?: string | undefined;
66
+ UserMFASettingList?: string[] | undefined;
67
+ ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
68
+ }
69
+ export interface GetUserPoolMfaConfigRequest {
70
+ UserPoolId: string | undefined;
71
+ }
72
+ export interface EmailMfaConfigType {
73
+ Message?: string | undefined;
74
+ Subject?: string | undefined;
75
+ }
76
+ export interface SmsMfaConfigType {
77
+ SmsAuthenticationMessage?: string | undefined;
78
+ SmsConfiguration?: SmsConfigurationType | undefined;
79
+ }
80
+ export interface SoftwareTokenMfaConfigType {
81
+ Enabled?: boolean | undefined;
82
+ }
61
83
  export declare const UserVerificationType: {
62
84
  readonly PREFERRED: "preferred";
63
85
  readonly REQUIRED: "required";
@@ -259,13 +281,6 @@ export declare class UnauthorizedException extends __BaseException {
259
281
  opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
260
282
  );
261
283
  }
262
- export declare class UnsupportedOperationException extends __BaseException {
263
- readonly name: "UnsupportedOperationException";
264
- readonly $fault: "client";
265
- constructor(
266
- opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
267
- );
268
- }
269
284
  export declare class UnsupportedTokenTypeException extends __BaseException {
270
285
  readonly name: "UnsupportedTokenTypeException";
271
286
  readonly $fault: "client";
@@ -495,6 +510,7 @@ export interface UpdateUserPoolClientRequest {
495
510
  EnableTokenRevocation?: boolean | undefined;
496
511
  EnablePropagateAdditionalUserContextData?: boolean | undefined;
497
512
  AuthSessionValidity?: number | undefined;
513
+ RefreshTokenRotation?: RefreshTokenRotationType | undefined;
498
514
  }
499
515
  export interface UpdateUserPoolClientResponse {
500
516
  UserPoolClient?: UserPoolClientType | undefined;
@@ -541,6 +557,12 @@ export interface VerifyUserAttributeRequest {
541
557
  Code: string | undefined;
542
558
  }
543
559
  export interface VerifyUserAttributeResponse {}
560
+ export declare const GetUserAuthFactorsRequestFilterSensitiveLog: (
561
+ obj: GetUserAuthFactorsRequest
562
+ ) => any;
563
+ export declare const GetUserAuthFactorsResponseFilterSensitiveLog: (
564
+ obj: GetUserAuthFactorsResponse
565
+ ) => any;
544
566
  export declare const GlobalSignOutRequestFilterSensitiveLog: (
545
567
  obj: GlobalSignOutRequest
546
568
  ) => any;
@@ -275,6 +275,10 @@ import {
275
275
  GetSigningCertificateCommandInput,
276
276
  GetSigningCertificateCommandOutput,
277
277
  } from "../commands/GetSigningCertificateCommand";
278
+ import {
279
+ GetTokensFromRefreshTokenCommandInput,
280
+ GetTokensFromRefreshTokenCommandOutput,
281
+ } from "../commands/GetTokensFromRefreshTokenCommand";
278
282
  import {
279
283
  GetUICustomizationCommandInput,
280
284
  GetUICustomizationCommandOutput,
@@ -727,6 +731,10 @@ export declare const se_GetSigningCertificateCommand: (
727
731
  input: GetSigningCertificateCommandInput,
728
732
  context: __SerdeContext
729
733
  ) => Promise<__HttpRequest>;
734
+ export declare const se_GetTokensFromRefreshTokenCommand: (
735
+ input: GetTokensFromRefreshTokenCommandInput,
736
+ context: __SerdeContext
737
+ ) => Promise<__HttpRequest>;
730
738
  export declare const se_GetUICustomizationCommand: (
731
739
  input: GetUICustomizationCommandInput,
732
740
  context: __SerdeContext
@@ -1179,6 +1187,10 @@ export declare const de_GetSigningCertificateCommand: (
1179
1187
  output: __HttpResponse,
1180
1188
  context: __SerdeContext
1181
1189
  ) => Promise<GetSigningCertificateCommandOutput>;
1190
+ export declare const de_GetTokensFromRefreshTokenCommand: (
1191
+ output: __HttpResponse,
1192
+ context: __SerdeContext
1193
+ ) => Promise<GetTokensFromRefreshTokenCommandOutput>;
1182
1194
  export declare const de_GetUICustomizationCommand: (
1183
1195
  output: __HttpResponse,
1184
1196
  context: __SerdeContext
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.782.0",
4
+ "version": "3.794.0",
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",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.782.0",
24
+ "@aws-sdk/credential-provider-node": "3.787.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.782.0",
28
+ "@aws-sdk/middleware-user-agent": "3.787.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.782.0",
31
+ "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.782.0",
33
+ "@aws-sdk/util-user-agent-node": "3.787.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",