@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
@@ -75,6 +75,7 @@ import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroup
75
75
  import { GetIdentityProviderByIdentifierCommandInput, GetIdentityProviderByIdentifierCommandOutput } from "./commands/GetIdentityProviderByIdentifierCommand";
76
76
  import { GetLogDeliveryConfigurationCommandInput, GetLogDeliveryConfigurationCommandOutput } from "./commands/GetLogDeliveryConfigurationCommand";
77
77
  import { GetSigningCertificateCommandInput, GetSigningCertificateCommandOutput } from "./commands/GetSigningCertificateCommand";
78
+ import { GetTokensFromRefreshTokenCommandInput, GetTokensFromRefreshTokenCommandOutput } from "./commands/GetTokensFromRefreshTokenCommand";
78
79
  import { GetUICustomizationCommandInput, GetUICustomizationCommandOutput } from "./commands/GetUICustomizationCommand";
79
80
  import { GetUserAttributeVerificationCodeCommandInput, GetUserAttributeVerificationCodeCommandOutput } from "./commands/GetUserAttributeVerificationCodeCommand";
80
81
  import { GetUserAuthFactorsCommandInput, GetUserAuthFactorsCommandOutput } from "./commands/GetUserAuthFactorsCommand";
@@ -126,11 +127,11 @@ export { __Client };
126
127
  /**
127
128
  * @public
128
129
  */
129
- export type ServiceInputTypes = AddCustomAttributesCommandInput | AdminAddUserToGroupCommandInput | AdminConfirmSignUpCommandInput | AdminCreateUserCommandInput | AdminDeleteUserAttributesCommandInput | AdminDeleteUserCommandInput | AdminDisableProviderForUserCommandInput | AdminDisableUserCommandInput | AdminEnableUserCommandInput | AdminForgetDeviceCommandInput | AdminGetDeviceCommandInput | AdminGetUserCommandInput | AdminInitiateAuthCommandInput | AdminLinkProviderForUserCommandInput | AdminListDevicesCommandInput | AdminListGroupsForUserCommandInput | AdminListUserAuthEventsCommandInput | AdminRemoveUserFromGroupCommandInput | AdminResetUserPasswordCommandInput | AdminRespondToAuthChallengeCommandInput | AdminSetUserMFAPreferenceCommandInput | AdminSetUserPasswordCommandInput | AdminSetUserSettingsCommandInput | AdminUpdateAuthEventFeedbackCommandInput | AdminUpdateDeviceStatusCommandInput | AdminUpdateUserAttributesCommandInput | AdminUserGlobalSignOutCommandInput | AssociateSoftwareTokenCommandInput | ChangePasswordCommandInput | CompleteWebAuthnRegistrationCommandInput | ConfirmDeviceCommandInput | ConfirmForgotPasswordCommandInput | ConfirmSignUpCommandInput | CreateGroupCommandInput | CreateIdentityProviderCommandInput | CreateManagedLoginBrandingCommandInput | CreateResourceServerCommandInput | CreateUserImportJobCommandInput | CreateUserPoolClientCommandInput | CreateUserPoolCommandInput | CreateUserPoolDomainCommandInput | DeleteGroupCommandInput | DeleteIdentityProviderCommandInput | DeleteManagedLoginBrandingCommandInput | DeleteResourceServerCommandInput | DeleteUserAttributesCommandInput | DeleteUserCommandInput | DeleteUserPoolClientCommandInput | DeleteUserPoolCommandInput | DeleteUserPoolDomainCommandInput | DeleteWebAuthnCredentialCommandInput | DescribeIdentityProviderCommandInput | DescribeManagedLoginBrandingByClientCommandInput | DescribeManagedLoginBrandingCommandInput | DescribeResourceServerCommandInput | DescribeRiskConfigurationCommandInput | DescribeUserImportJobCommandInput | DescribeUserPoolClientCommandInput | DescribeUserPoolCommandInput | DescribeUserPoolDomainCommandInput | ForgetDeviceCommandInput | ForgotPasswordCommandInput | GetCSVHeaderCommandInput | GetDeviceCommandInput | GetGroupCommandInput | GetIdentityProviderByIdentifierCommandInput | GetLogDeliveryConfigurationCommandInput | GetSigningCertificateCommandInput | GetUICustomizationCommandInput | GetUserAttributeVerificationCodeCommandInput | GetUserAuthFactorsCommandInput | GetUserCommandInput | GetUserPoolMfaConfigCommandInput | GlobalSignOutCommandInput | InitiateAuthCommandInput | ListDevicesCommandInput | ListGroupsCommandInput | ListIdentityProvidersCommandInput | ListResourceServersCommandInput | ListTagsForResourceCommandInput | ListUserImportJobsCommandInput | ListUserPoolClientsCommandInput | ListUserPoolsCommandInput | ListUsersCommandInput | ListUsersInGroupCommandInput | ListWebAuthnCredentialsCommandInput | ResendConfirmationCodeCommandInput | RespondToAuthChallengeCommandInput | RevokeTokenCommandInput | SetLogDeliveryConfigurationCommandInput | SetRiskConfigurationCommandInput | SetUICustomizationCommandInput | SetUserMFAPreferenceCommandInput | SetUserPoolMfaConfigCommandInput | SetUserSettingsCommandInput | SignUpCommandInput | StartUserImportJobCommandInput | StartWebAuthnRegistrationCommandInput | StopUserImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAuthEventFeedbackCommandInput | UpdateDeviceStatusCommandInput | UpdateGroupCommandInput | UpdateIdentityProviderCommandInput | UpdateManagedLoginBrandingCommandInput | UpdateResourceServerCommandInput | UpdateUserAttributesCommandInput | UpdateUserPoolClientCommandInput | UpdateUserPoolCommandInput | UpdateUserPoolDomainCommandInput | VerifySoftwareTokenCommandInput | VerifyUserAttributeCommandInput;
130
+ export type ServiceInputTypes = AddCustomAttributesCommandInput | AdminAddUserToGroupCommandInput | AdminConfirmSignUpCommandInput | AdminCreateUserCommandInput | AdminDeleteUserAttributesCommandInput | AdminDeleteUserCommandInput | AdminDisableProviderForUserCommandInput | AdminDisableUserCommandInput | AdminEnableUserCommandInput | AdminForgetDeviceCommandInput | AdminGetDeviceCommandInput | AdminGetUserCommandInput | AdminInitiateAuthCommandInput | AdminLinkProviderForUserCommandInput | AdminListDevicesCommandInput | AdminListGroupsForUserCommandInput | AdminListUserAuthEventsCommandInput | AdminRemoveUserFromGroupCommandInput | AdminResetUserPasswordCommandInput | AdminRespondToAuthChallengeCommandInput | AdminSetUserMFAPreferenceCommandInput | AdminSetUserPasswordCommandInput | AdminSetUserSettingsCommandInput | AdminUpdateAuthEventFeedbackCommandInput | AdminUpdateDeviceStatusCommandInput | AdminUpdateUserAttributesCommandInput | AdminUserGlobalSignOutCommandInput | AssociateSoftwareTokenCommandInput | ChangePasswordCommandInput | CompleteWebAuthnRegistrationCommandInput | ConfirmDeviceCommandInput | ConfirmForgotPasswordCommandInput | ConfirmSignUpCommandInput | CreateGroupCommandInput | CreateIdentityProviderCommandInput | CreateManagedLoginBrandingCommandInput | CreateResourceServerCommandInput | CreateUserImportJobCommandInput | CreateUserPoolClientCommandInput | CreateUserPoolCommandInput | CreateUserPoolDomainCommandInput | DeleteGroupCommandInput | DeleteIdentityProviderCommandInput | DeleteManagedLoginBrandingCommandInput | DeleteResourceServerCommandInput | DeleteUserAttributesCommandInput | DeleteUserCommandInput | DeleteUserPoolClientCommandInput | DeleteUserPoolCommandInput | DeleteUserPoolDomainCommandInput | DeleteWebAuthnCredentialCommandInput | DescribeIdentityProviderCommandInput | DescribeManagedLoginBrandingByClientCommandInput | DescribeManagedLoginBrandingCommandInput | DescribeResourceServerCommandInput | DescribeRiskConfigurationCommandInput | DescribeUserImportJobCommandInput | DescribeUserPoolClientCommandInput | DescribeUserPoolCommandInput | DescribeUserPoolDomainCommandInput | ForgetDeviceCommandInput | ForgotPasswordCommandInput | GetCSVHeaderCommandInput | GetDeviceCommandInput | GetGroupCommandInput | GetIdentityProviderByIdentifierCommandInput | GetLogDeliveryConfigurationCommandInput | GetSigningCertificateCommandInput | GetTokensFromRefreshTokenCommandInput | GetUICustomizationCommandInput | GetUserAttributeVerificationCodeCommandInput | GetUserAuthFactorsCommandInput | GetUserCommandInput | GetUserPoolMfaConfigCommandInput | GlobalSignOutCommandInput | InitiateAuthCommandInput | ListDevicesCommandInput | ListGroupsCommandInput | ListIdentityProvidersCommandInput | ListResourceServersCommandInput | ListTagsForResourceCommandInput | ListUserImportJobsCommandInput | ListUserPoolClientsCommandInput | ListUserPoolsCommandInput | ListUsersCommandInput | ListUsersInGroupCommandInput | ListWebAuthnCredentialsCommandInput | ResendConfirmationCodeCommandInput | RespondToAuthChallengeCommandInput | RevokeTokenCommandInput | SetLogDeliveryConfigurationCommandInput | SetRiskConfigurationCommandInput | SetUICustomizationCommandInput | SetUserMFAPreferenceCommandInput | SetUserPoolMfaConfigCommandInput | SetUserSettingsCommandInput | SignUpCommandInput | StartUserImportJobCommandInput | StartWebAuthnRegistrationCommandInput | StopUserImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAuthEventFeedbackCommandInput | UpdateDeviceStatusCommandInput | UpdateGroupCommandInput | UpdateIdentityProviderCommandInput | UpdateManagedLoginBrandingCommandInput | UpdateResourceServerCommandInput | UpdateUserAttributesCommandInput | UpdateUserPoolClientCommandInput | UpdateUserPoolCommandInput | UpdateUserPoolDomainCommandInput | VerifySoftwareTokenCommandInput | VerifyUserAttributeCommandInput;
130
131
  /**
131
132
  * @public
132
133
  */
133
- export type ServiceOutputTypes = AddCustomAttributesCommandOutput | AdminAddUserToGroupCommandOutput | AdminConfirmSignUpCommandOutput | AdminCreateUserCommandOutput | AdminDeleteUserAttributesCommandOutput | AdminDeleteUserCommandOutput | AdminDisableProviderForUserCommandOutput | AdminDisableUserCommandOutput | AdminEnableUserCommandOutput | AdminForgetDeviceCommandOutput | AdminGetDeviceCommandOutput | AdminGetUserCommandOutput | AdminInitiateAuthCommandOutput | AdminLinkProviderForUserCommandOutput | AdminListDevicesCommandOutput | AdminListGroupsForUserCommandOutput | AdminListUserAuthEventsCommandOutput | AdminRemoveUserFromGroupCommandOutput | AdminResetUserPasswordCommandOutput | AdminRespondToAuthChallengeCommandOutput | AdminSetUserMFAPreferenceCommandOutput | AdminSetUserPasswordCommandOutput | AdminSetUserSettingsCommandOutput | AdminUpdateAuthEventFeedbackCommandOutput | AdminUpdateDeviceStatusCommandOutput | AdminUpdateUserAttributesCommandOutput | AdminUserGlobalSignOutCommandOutput | AssociateSoftwareTokenCommandOutput | ChangePasswordCommandOutput | CompleteWebAuthnRegistrationCommandOutput | ConfirmDeviceCommandOutput | ConfirmForgotPasswordCommandOutput | ConfirmSignUpCommandOutput | CreateGroupCommandOutput | CreateIdentityProviderCommandOutput | CreateManagedLoginBrandingCommandOutput | CreateResourceServerCommandOutput | CreateUserImportJobCommandOutput | CreateUserPoolClientCommandOutput | CreateUserPoolCommandOutput | CreateUserPoolDomainCommandOutput | DeleteGroupCommandOutput | DeleteIdentityProviderCommandOutput | DeleteManagedLoginBrandingCommandOutput | DeleteResourceServerCommandOutput | DeleteUserAttributesCommandOutput | DeleteUserCommandOutput | DeleteUserPoolClientCommandOutput | DeleteUserPoolCommandOutput | DeleteUserPoolDomainCommandOutput | DeleteWebAuthnCredentialCommandOutput | DescribeIdentityProviderCommandOutput | DescribeManagedLoginBrandingByClientCommandOutput | DescribeManagedLoginBrandingCommandOutput | DescribeResourceServerCommandOutput | DescribeRiskConfigurationCommandOutput | DescribeUserImportJobCommandOutput | DescribeUserPoolClientCommandOutput | DescribeUserPoolCommandOutput | DescribeUserPoolDomainCommandOutput | ForgetDeviceCommandOutput | ForgotPasswordCommandOutput | GetCSVHeaderCommandOutput | GetDeviceCommandOutput | GetGroupCommandOutput | GetIdentityProviderByIdentifierCommandOutput | GetLogDeliveryConfigurationCommandOutput | GetSigningCertificateCommandOutput | GetUICustomizationCommandOutput | GetUserAttributeVerificationCodeCommandOutput | GetUserAuthFactorsCommandOutput | GetUserCommandOutput | GetUserPoolMfaConfigCommandOutput | GlobalSignOutCommandOutput | InitiateAuthCommandOutput | ListDevicesCommandOutput | ListGroupsCommandOutput | ListIdentityProvidersCommandOutput | ListResourceServersCommandOutput | ListTagsForResourceCommandOutput | ListUserImportJobsCommandOutput | ListUserPoolClientsCommandOutput | ListUserPoolsCommandOutput | ListUsersCommandOutput | ListUsersInGroupCommandOutput | ListWebAuthnCredentialsCommandOutput | ResendConfirmationCodeCommandOutput | RespondToAuthChallengeCommandOutput | RevokeTokenCommandOutput | SetLogDeliveryConfigurationCommandOutput | SetRiskConfigurationCommandOutput | SetUICustomizationCommandOutput | SetUserMFAPreferenceCommandOutput | SetUserPoolMfaConfigCommandOutput | SetUserSettingsCommandOutput | SignUpCommandOutput | StartUserImportJobCommandOutput | StartWebAuthnRegistrationCommandOutput | StopUserImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAuthEventFeedbackCommandOutput | UpdateDeviceStatusCommandOutput | UpdateGroupCommandOutput | UpdateIdentityProviderCommandOutput | UpdateManagedLoginBrandingCommandOutput | UpdateResourceServerCommandOutput | UpdateUserAttributesCommandOutput | UpdateUserPoolClientCommandOutput | UpdateUserPoolCommandOutput | UpdateUserPoolDomainCommandOutput | VerifySoftwareTokenCommandOutput | VerifyUserAttributeCommandOutput;
134
+ export type ServiceOutputTypes = AddCustomAttributesCommandOutput | AdminAddUserToGroupCommandOutput | AdminConfirmSignUpCommandOutput | AdminCreateUserCommandOutput | AdminDeleteUserAttributesCommandOutput | AdminDeleteUserCommandOutput | AdminDisableProviderForUserCommandOutput | AdminDisableUserCommandOutput | AdminEnableUserCommandOutput | AdminForgetDeviceCommandOutput | AdminGetDeviceCommandOutput | AdminGetUserCommandOutput | AdminInitiateAuthCommandOutput | AdminLinkProviderForUserCommandOutput | AdminListDevicesCommandOutput | AdminListGroupsForUserCommandOutput | AdminListUserAuthEventsCommandOutput | AdminRemoveUserFromGroupCommandOutput | AdminResetUserPasswordCommandOutput | AdminRespondToAuthChallengeCommandOutput | AdminSetUserMFAPreferenceCommandOutput | AdminSetUserPasswordCommandOutput | AdminSetUserSettingsCommandOutput | AdminUpdateAuthEventFeedbackCommandOutput | AdminUpdateDeviceStatusCommandOutput | AdminUpdateUserAttributesCommandOutput | AdminUserGlobalSignOutCommandOutput | AssociateSoftwareTokenCommandOutput | ChangePasswordCommandOutput | CompleteWebAuthnRegistrationCommandOutput | ConfirmDeviceCommandOutput | ConfirmForgotPasswordCommandOutput | ConfirmSignUpCommandOutput | CreateGroupCommandOutput | CreateIdentityProviderCommandOutput | CreateManagedLoginBrandingCommandOutput | CreateResourceServerCommandOutput | CreateUserImportJobCommandOutput | CreateUserPoolClientCommandOutput | CreateUserPoolCommandOutput | CreateUserPoolDomainCommandOutput | DeleteGroupCommandOutput | DeleteIdentityProviderCommandOutput | DeleteManagedLoginBrandingCommandOutput | DeleteResourceServerCommandOutput | DeleteUserAttributesCommandOutput | DeleteUserCommandOutput | DeleteUserPoolClientCommandOutput | DeleteUserPoolCommandOutput | DeleteUserPoolDomainCommandOutput | DeleteWebAuthnCredentialCommandOutput | DescribeIdentityProviderCommandOutput | DescribeManagedLoginBrandingByClientCommandOutput | DescribeManagedLoginBrandingCommandOutput | DescribeResourceServerCommandOutput | DescribeRiskConfigurationCommandOutput | DescribeUserImportJobCommandOutput | DescribeUserPoolClientCommandOutput | DescribeUserPoolCommandOutput | DescribeUserPoolDomainCommandOutput | ForgetDeviceCommandOutput | ForgotPasswordCommandOutput | GetCSVHeaderCommandOutput | GetDeviceCommandOutput | GetGroupCommandOutput | GetIdentityProviderByIdentifierCommandOutput | GetLogDeliveryConfigurationCommandOutput | GetSigningCertificateCommandOutput | GetTokensFromRefreshTokenCommandOutput | GetUICustomizationCommandOutput | GetUserAttributeVerificationCodeCommandOutput | GetUserAuthFactorsCommandOutput | GetUserCommandOutput | GetUserPoolMfaConfigCommandOutput | GlobalSignOutCommandOutput | InitiateAuthCommandOutput | ListDevicesCommandOutput | ListGroupsCommandOutput | ListIdentityProvidersCommandOutput | ListResourceServersCommandOutput | ListTagsForResourceCommandOutput | ListUserImportJobsCommandOutput | ListUserPoolClientsCommandOutput | ListUserPoolsCommandOutput | ListUsersCommandOutput | ListUsersInGroupCommandOutput | ListWebAuthnCredentialsCommandOutput | ResendConfirmationCodeCommandOutput | RespondToAuthChallengeCommandOutput | RevokeTokenCommandOutput | SetLogDeliveryConfigurationCommandOutput | SetRiskConfigurationCommandOutput | SetUICustomizationCommandOutput | SetUserMFAPreferenceCommandOutput | SetUserPoolMfaConfigCommandOutput | SetUserSettingsCommandOutput | SignUpCommandOutput | StartUserImportJobCommandOutput | StartWebAuthnRegistrationCommandOutput | StopUserImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAuthEventFeedbackCommandOutput | UpdateDeviceStatusCommandOutput | UpdateGroupCommandOutput | UpdateIdentityProviderCommandOutput | UpdateManagedLoginBrandingCommandOutput | UpdateResourceServerCommandOutput | UpdateUserAttributesCommandOutput | UpdateUserPoolClientCommandOutput | UpdateUserPoolCommandOutput | UpdateUserPoolDomainCommandOutput | VerifySoftwareTokenCommandOutput | VerifyUserAttributeCommandOutput;
134
135
  /**
135
136
  * @public
136
137
  */
@@ -183,6 +183,10 @@ declare const AdminInitiateAuthCommand_base: {
183
183
  * <p>This exception is thrown when Amazon Cognito encounters an unexpected exception with
184
184
  * Lambda.</p>
185
185
  *
186
+ * @throws {@link UnsupportedOperationException} (client fault)
187
+ * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
188
+ * for the user pool client.</p>
189
+ *
186
190
  * @throws {@link UserLambdaValidationException} (client fault)
187
191
  * <p>This exception is thrown when the Amazon Cognito service encounters a user validation exception
188
192
  * with the Lambda service.</p>
@@ -110,6 +110,10 @@ declare const CreateUserPoolClientCommand_base: {
110
110
  * EnableTokenRevocation: true || false,
111
111
  * EnablePropagateAdditionalUserContextData: true || false,
112
112
  * AuthSessionValidity: Number("int"),
113
+ * RefreshTokenRotation: { // RefreshTokenRotationType
114
+ * Feature: "ENABLED" || "DISABLED", // required
115
+ * RetryGracePeriodSeconds: Number("int"),
116
+ * },
113
117
  * };
114
118
  * const command = new CreateUserPoolClientCommand(input);
115
119
  * const response = await client.send(command);
@@ -166,6 +170,10 @@ declare const CreateUserPoolClientCommand_base: {
166
170
  * // EnableTokenRevocation: true || false,
167
171
  * // EnablePropagateAdditionalUserContextData: true || false,
168
172
  * // AuthSessionValidity: Number("int"),
173
+ * // RefreshTokenRotation: { // RefreshTokenRotationType
174
+ * // Feature: "ENABLED" || "DISABLED", // required
175
+ * // RetryGracePeriodSeconds: Number("int"),
176
+ * // },
169
177
  * // },
170
178
  * // };
171
179
  *
@@ -177,6 +185,10 @@ declare const CreateUserPoolClientCommand_base: {
177
185
  * @see {@link CreateUserPoolClientCommandOutput} for command's `response` shape.
178
186
  * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
179
187
  *
188
+ * @throws {@link FeatureUnavailableInTierException} (client fault)
189
+ * <p>This exception is thrown when a feature you attempted to configure isn't
190
+ * available in your current feature plan.</p>
191
+ *
180
192
  * @throws {@link InternalErrorException} (server fault)
181
193
  * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
182
194
  *
@@ -86,6 +86,10 @@ declare const CreateUserPoolDomainCommand_base: {
86
86
  * @see {@link CreateUserPoolDomainCommandOutput} for command's `response` shape.
87
87
  * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
88
88
  *
89
+ * @throws {@link ConcurrentModificationException} (client fault)
90
+ * <p>This exception is thrown if two or more modifications are happening
91
+ * concurrently.</p>
92
+ *
89
93
  * @throws {@link FeatureUnavailableInTierException} (client fault)
90
94
  * <p>This exception is thrown when a feature you attempted to configure isn't
91
95
  * available in your current feature plan.</p>
@@ -52,6 +52,10 @@ declare const DeleteUserPoolDomainCommand_base: {
52
52
  * @see {@link DeleteUserPoolDomainCommandOutput} for command's `response` shape.
53
53
  * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
54
54
  *
55
+ * @throws {@link ConcurrentModificationException} (client fault)
56
+ * <p>This exception is thrown if two or more modifications are happening
57
+ * concurrently.</p>
58
+ *
55
59
  * @throws {@link InternalErrorException} (server fault)
56
60
  * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
57
61
  *
@@ -115,6 +115,10 @@ declare const DescribeUserPoolClientCommand_base: {
115
115
  * // EnableTokenRevocation: true || false,
116
116
  * // EnablePropagateAdditionalUserContextData: true || false,
117
117
  * // AuthSessionValidity: Number("int"),
118
+ * // RefreshTokenRotation: { // RefreshTokenRotationType
119
+ * // Feature: "ENABLED" || "DISABLED", // required
120
+ * // RetryGracePeriodSeconds: Number("int"),
121
+ * // },
118
122
  * // },
119
123
  * // };
120
124
  *
@@ -0,0 +1,132 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
+ import { GetTokensFromRefreshTokenRequest, GetTokensFromRefreshTokenResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetTokensFromRefreshTokenCommand}.
14
+ */
15
+ export interface GetTokensFromRefreshTokenCommandInput extends GetTokensFromRefreshTokenRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetTokensFromRefreshTokenCommand}.
21
+ */
22
+ export interface GetTokensFromRefreshTokenCommandOutput extends GetTokensFromRefreshTokenResponse, __MetadataBearer {
23
+ }
24
+ declare const GetTokensFromRefreshTokenCommand_base: {
25
+ new (input: GetTokensFromRefreshTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetTokensFromRefreshTokenCommandInput, GetTokensFromRefreshTokenCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetTokensFromRefreshTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetTokensFromRefreshTokenCommandInput, GetTokensFromRefreshTokenCommandOutput, CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Given a refresh token, issues new ID, access, and optionally refresh tokens for the
31
+ * user who owns the submitted token. This operation issues a new refresh token and
32
+ * invalidates the original refresh token after an optional grace period when refresh token
33
+ * rotation is enabled. If refresh token rotation is disabled, issues new ID and access
34
+ * tokens only.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { CognitoIdentityProviderClient, GetTokensFromRefreshTokenCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
39
+ * // const { CognitoIdentityProviderClient, GetTokensFromRefreshTokenCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
40
+ * const client = new CognitoIdentityProviderClient(config);
41
+ * const input = { // GetTokensFromRefreshTokenRequest
42
+ * RefreshToken: "STRING_VALUE", // required
43
+ * ClientId: "STRING_VALUE", // required
44
+ * ClientSecret: "STRING_VALUE",
45
+ * DeviceKey: "STRING_VALUE",
46
+ * ClientMetadata: { // ClientMetadataType
47
+ * "<keys>": "STRING_VALUE",
48
+ * },
49
+ * };
50
+ * const command = new GetTokensFromRefreshTokenCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // GetTokensFromRefreshTokenResponse
53
+ * // AuthenticationResult: { // AuthenticationResultType
54
+ * // AccessToken: "STRING_VALUE",
55
+ * // ExpiresIn: Number("int"),
56
+ * // TokenType: "STRING_VALUE",
57
+ * // RefreshToken: "STRING_VALUE",
58
+ * // IdToken: "STRING_VALUE",
59
+ * // NewDeviceMetadata: { // NewDeviceMetadataType
60
+ * // DeviceKey: "STRING_VALUE",
61
+ * // DeviceGroupKey: "STRING_VALUE",
62
+ * // },
63
+ * // },
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param GetTokensFromRefreshTokenCommandInput - {@link GetTokensFromRefreshTokenCommandInput}
69
+ * @returns {@link GetTokensFromRefreshTokenCommandOutput}
70
+ * @see {@link GetTokensFromRefreshTokenCommandInput} for command's `input` shape.
71
+ * @see {@link GetTokensFromRefreshTokenCommandOutput} for command's `response` shape.
72
+ * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
73
+ *
74
+ * @throws {@link ForbiddenException} (client fault)
75
+ * <p>This exception is thrown when WAF doesn't allow your request based on a web
76
+ * ACL that's associated with your user pool.</p>
77
+ *
78
+ * @throws {@link InternalErrorException} (server fault)
79
+ * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
80
+ *
81
+ * @throws {@link InvalidLambdaResponseException} (client fault)
82
+ * <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
83
+ *
84
+ * @throws {@link InvalidParameterException} (client fault)
85
+ * <p>This exception is thrown when the Amazon Cognito service encounters an invalid
86
+ * parameter.</p>
87
+ *
88
+ * @throws {@link NotAuthorizedException} (client fault)
89
+ * <p>This exception is thrown when a user isn't authorized.</p>
90
+ *
91
+ * @throws {@link RefreshTokenReuseException} (client fault)
92
+ * <p>This exception is throw when your application requests token refresh with a refresh
93
+ * token that has been invalidated by refresh-token rotation.</p>
94
+ *
95
+ * @throws {@link ResourceNotFoundException} (client fault)
96
+ * <p>This exception is thrown when the Amazon Cognito service can't find the requested
97
+ * resource.</p>
98
+ *
99
+ * @throws {@link TooManyRequestsException} (client fault)
100
+ * <p>This exception is thrown when the user has made too many requests for a given
101
+ * operation.</p>
102
+ *
103
+ * @throws {@link UnexpectedLambdaException} (client fault)
104
+ * <p>This exception is thrown when Amazon Cognito encounters an unexpected exception with
105
+ * Lambda.</p>
106
+ *
107
+ * @throws {@link UserLambdaValidationException} (client fault)
108
+ * <p>This exception is thrown when the Amazon Cognito service encounters a user validation exception
109
+ * with the Lambda service.</p>
110
+ *
111
+ * @throws {@link UserNotFoundException} (client fault)
112
+ * <p>This exception is thrown when a user isn't found.</p>
113
+ *
114
+ * @throws {@link CognitoIdentityProviderServiceException}
115
+ * <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
116
+ *
117
+ *
118
+ * @public
119
+ */
120
+ export declare class GetTokensFromRefreshTokenCommand extends GetTokensFromRefreshTokenCommand_base {
121
+ /** @internal type navigation helper, not in runtime. */
122
+ protected static __types: {
123
+ api: {
124
+ input: GetTokensFromRefreshTokenRequest;
125
+ output: GetTokensFromRefreshTokenResponse;
126
+ };
127
+ sdk: {
128
+ input: GetTokensFromRefreshTokenCommandInput;
129
+ output: GetTokensFromRefreshTokenCommandOutput;
130
+ };
131
+ };
132
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import { GetUserAuthFactorsRequest, GetUserAuthFactorsResponse } from "../models/models_0";
4
+ import { GetUserAuthFactorsRequest, GetUserAuthFactorsResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
4
- import { GetUserPoolMfaConfigRequest } from "../models/models_0";
5
- import { GetUserPoolMfaConfigResponse } from "../models/models_1";
4
+ import { GetUserPoolMfaConfigRequest, GetUserPoolMfaConfigResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -160,6 +160,10 @@ declare const InitiateAuthCommand_base: {
160
160
  * <p>This exception is thrown when Amazon Cognito encounters an unexpected exception with
161
161
  * Lambda.</p>
162
162
  *
163
+ * @throws {@link UnsupportedOperationException} (client fault)
164
+ * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
165
+ * for the user pool client.</p>
166
+ *
163
167
  * @throws {@link UserLambdaValidationException} (client fault)
164
168
  * <p>This exception is thrown when the Amazon Cognito service encounters a user validation exception
165
169
  * with the Lambda service.</p>
@@ -112,6 +112,10 @@ declare const UpdateUserPoolClientCommand_base: {
112
112
  * EnableTokenRevocation: true || false,
113
113
  * EnablePropagateAdditionalUserContextData: true || false,
114
114
  * AuthSessionValidity: Number("int"),
115
+ * RefreshTokenRotation: { // RefreshTokenRotationType
116
+ * Feature: "ENABLED" || "DISABLED", // required
117
+ * RetryGracePeriodSeconds: Number("int"),
118
+ * },
115
119
  * };
116
120
  * const command = new UpdateUserPoolClientCommand(input);
117
121
  * const response = await client.send(command);
@@ -168,6 +172,10 @@ declare const UpdateUserPoolClientCommand_base: {
168
172
  * // EnableTokenRevocation: true || false,
169
173
  * // EnablePropagateAdditionalUserContextData: true || false,
170
174
  * // AuthSessionValidity: Number("int"),
175
+ * // RefreshTokenRotation: { // RefreshTokenRotationType
176
+ * // Feature: "ENABLED" || "DISABLED", // required
177
+ * // RetryGracePeriodSeconds: Number("int"),
178
+ * // },
171
179
  * // },
172
180
  * // };
173
181
  *
@@ -183,6 +191,10 @@ declare const UpdateUserPoolClientCommand_base: {
183
191
  * <p>This exception is thrown if two or more modifications are happening
184
192
  * concurrently.</p>
185
193
  *
194
+ * @throws {@link FeatureUnavailableInTierException} (client fault)
195
+ * <p>This exception is thrown when a feature you attempted to configure isn't
196
+ * available in your current feature plan.</p>
197
+ *
186
198
  * @throws {@link InternalErrorException} (server fault)
187
199
  * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
188
200
  *
@@ -93,6 +93,10 @@ declare const UpdateUserPoolDomainCommand_base: {
93
93
  * @see {@link UpdateUserPoolDomainCommandOutput} for command's `response` shape.
94
94
  * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
95
95
  *
96
+ * @throws {@link ConcurrentModificationException} (client fault)
97
+ * <p>This exception is thrown if two or more modifications are happening
98
+ * concurrently.</p>
99
+ *
96
100
  * @throws {@link FeatureUnavailableInTierException} (client fault)
97
101
  * <p>This exception is thrown when a feature you attempted to configure isn't
98
102
  * available in your current feature plan.</p>
@@ -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";