@aws-sdk/client-cognito-identity-provider 3.94.0 → 3.99.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +5 -2
- package/dist-cjs/commands/StartUserImportJobCommand.js +1 -2
- package/dist-cjs/models/models_0.js +15 -15
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_json1_1.js +51 -0
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-es/commands/StartUserImportJobCommand.js +1 -2
- package/dist-es/models/models_0.js +9 -9
- package/dist-es/models/models_1.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +87 -39
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/CognitoIdentityProvider.d.ts +261 -157
- package/dist-types/CognitoIdentityProviderClient.d.ts +5 -2
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -1
- package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -7
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -1
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +27 -16
- package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +0 -1
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +17 -12
- package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +2 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +10 -6
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +5 -3
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +10 -5
- package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +3 -3
- package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +3 -2
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +6 -3
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +6 -2
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +10 -6
- package/dist-types/commands/ConfirmDeviceCommand.d.ts +2 -1
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +1 -1
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolCommand.d.ts +2 -1
- package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +2 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +8 -8
- package/dist-types/commands/GetCSVHeaderCommand.d.ts +2 -1
- package/dist-types/commands/GetIdentityProviderByIdentifierCommand.d.ts +1 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +5 -2
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +3 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +5 -2
- package/dist-types/commands/InitiateAuthCommand.d.ts +2 -1
- package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +2 -1
- package/dist-types/commands/RevokeTokenCommand.d.ts +3 -1
- package/dist-types/commands/SetRiskConfigurationCommand.d.ts +5 -2
- package/dist-types/commands/SetUICustomizationCommand.d.ts +13 -7
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +8 -5
- package/dist-types/commands/SetUserSettingsCommand.d.ts +3 -2
- package/dist-types/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/commands/StartUserImportJobCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +14 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +3 -2
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +4 -3
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +8 -7
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +4 -3
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +19 -12
- package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +3 -2
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +1940 -1245
- package/dist-types/models/models_1.d.ts +247 -123
- package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +17 -15
- package/dist-types/ts3.4/models/models_1.d.ts +14 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.98.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.97.0...v3.98.0) (2022-05-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-cognito-identity-provider:** Amazon Cognito now supports requiring attribute verification (ex. email and phone number) before update. ([6ee832d](https://github.com/aws/aws-sdk-js-v3/commit/6ee832d8dcc3c3b856c35cd5b887d595ffeed6cf))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
|
package/README.md
CHANGED
|
@@ -9,9 +9,12 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript CognitoIdentityProvider Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>Using the Amazon Cognito user pools API, you can create a user pool to manage directories and
|
|
12
|
+
<p>Using the Amazon Cognito user pools API, you can create a user pool to manage directories and
|
|
13
|
+
users. You can authenticate a user to obtain tokens related to user identity and access
|
|
14
|
+
policies.</p>
|
|
13
15
|
<p>This API reference provides information about user pools in Amazon Cognito user pools.</p>
|
|
14
|
-
<p>For more information, see the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html">Amazon Cognito
|
|
16
|
+
<p>For more information, see the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html">Amazon Cognito
|
|
17
|
+
Documentation</a>.</p>
|
|
15
18
|
|
|
16
19
|
## Installing
|
|
17
20
|
|
|
@@ -4,7 +4,6 @@ exports.StartUserImportJobCommand = void 0;
|
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const models_1_1 = require("../models/models_1");
|
|
9
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
9
|
class StartUserImportJobCommand extends smithy_client_1.Command {
|
|
@@ -23,7 +22,7 @@ class StartUserImportJobCommand extends smithy_client_1.Command {
|
|
|
23
22
|
logger,
|
|
24
23
|
clientName,
|
|
25
24
|
commandName,
|
|
26
|
-
inputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: models_1_1.StartUserImportJobRequest.filterSensitiveLog,
|
|
27
26
|
outputFilterSensitiveLog: models_1_1.StartUserImportJobResponse.filterSensitiveLog,
|
|
28
27
|
};
|
|
29
28
|
const { requestHandler } = configuration;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminDeleteUserAttributesResponse = exports.AdminDeleteUserAttributesRequest = exports.AdminDeleteUserRequest = exports.AdminCreateUserConfigType = exports.MessageTemplateType = exports.UsernameExistsException = exports.UnsupportedUserStateException = exports.PreconditionNotMetException = exports.InvalidSmsRoleTrustRelationshipException = exports.InvalidSmsRoleAccessPolicyException = exports.InvalidPasswordException = exports.CodeDeliveryFailureException = exports.AdminCreateUserResponse = exports.UserType = exports.UserStatusType = exports.MFAOptionType = exports.AdminCreateUserRequest = exports.AttributeType = exports.MessageActionType = exports.DeliveryMediumType = exports.UserLambdaValidationException = exports.UnexpectedLambdaException = exports.TooManyFailedAttemptsException = exports.LimitExceededException = exports.InvalidLambdaResponseException = exports.AdminConfirmSignUpResponse = exports.AdminConfirmSignUpRequest = exports.UserNotFoundException = exports.AdminAddUserToGroupRequest = exports.UserImportInProgressException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.AddCustomAttributesResponse = exports.AddCustomAttributesRequest = exports.SchemaAttributeType = exports.StringAttributeConstraintsType = exports.NumberAttributeConstraintsType = exports.AttributeDataType = exports.AccountTakeoverRiskConfigurationType = exports.NotifyConfigurationType = exports.NotifyEmailType = exports.AccountTakeoverActionsType = exports.AccountTakeoverActionType = exports.AccountTakeoverEventActionType = exports.AccountRecoverySettingType = exports.RecoveryOptionType = exports.RecoveryOptionNameType = void 0;
|
|
4
4
|
exports.AdminRemoveUserFromGroupRequest = exports.UserPoolAddOnNotEnabledException = exports.AdminListUserAuthEventsResponse = exports.AuthEventType = exports.EventType = exports.EventRiskType = exports.RiskLevelType = exports.RiskDecisionType = exports.EventResponseType = exports.EventFeedbackType = exports.FeedbackValueType = exports.EventContextDataType = exports.ChallengeResponseType = exports.ChallengeResponse = exports.ChallengeName = exports.AdminListUserAuthEventsRequest = exports.AdminListGroupsForUserResponse = exports.GroupType = exports.AdminListGroupsForUserRequest = exports.AdminListDevicesResponse = exports.AdminListDevicesRequest = exports.AdminLinkProviderForUserResponse = exports.AdminLinkProviderForUserRequest = exports.UserNotConfirmedException = exports.PasswordResetRequiredException = exports.MFAMethodNotFoundException = exports.AdminInitiateAuthResponse = exports.ChallengeNameType = exports.AuthenticationResultType = exports.NewDeviceMetadataType = exports.AdminInitiateAuthRequest = exports.ContextDataType = exports.HttpHeader = exports.AuthFlowType = exports.AnalyticsMetadataType = exports.AdminGetUserResponse = exports.AdminGetUserRequest = exports.AdminGetDeviceResponse = exports.DeviceType = exports.AdminGetDeviceRequest = exports.InvalidUserPoolConfigurationException = exports.AdminForgetDeviceRequest = exports.AdminEnableUserResponse = exports.AdminEnableUserRequest = exports.AdminDisableUserResponse = exports.AdminDisableUserRequest = exports.AliasExistsException = exports.AdminDisableProviderForUserResponse = exports.AdminDisableProviderForUserRequest = exports.ProviderUserIdentifierType = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
5
|
+
exports.DuplicateProviderException = exports.CreateIdentityProviderResponse = exports.IdentityProviderType = exports.CreateIdentityProviderRequest = exports.IdentityProviderTypeType = exports.GroupExistsException = exports.CreateGroupResponse = exports.CreateGroupRequest = exports.ConfirmSignUpResponse = exports.ConfirmSignUpRequest = exports.ConfirmForgotPasswordResponse = exports.ConfirmForgotPasswordRequest = exports.UserContextDataType = exports.ConfirmDeviceResponse = exports.ConfirmDeviceRequest = exports.DeviceSecretVerifierConfigType = exports.ChangePasswordResponse = exports.ChangePasswordRequest = exports.VerifiedAttributeType = exports.ConcurrentModificationException = exports.AssociateSoftwareTokenResponse = exports.AssociateSoftwareTokenRequest = exports.AnalyticsConfigurationType = exports.AliasAttributeType = exports.AdvancedSecurityModeType = exports.AdminUserGlobalSignOutResponse = exports.AdminUserGlobalSignOutRequest = exports.AdminUpdateUserAttributesResponse = exports.AdminUpdateUserAttributesRequest = exports.AdminUpdateDeviceStatusResponse = exports.AdminUpdateDeviceStatusRequest = exports.DeviceRememberedStatusType = exports.AdminUpdateAuthEventFeedbackResponse = exports.AdminUpdateAuthEventFeedbackRequest = exports.AdminSetUserSettingsResponse = exports.AdminSetUserSettingsRequest = exports.AdminSetUserPasswordResponse = exports.AdminSetUserPasswordRequest = exports.AdminSetUserMFAPreferenceResponse = exports.AdminSetUserMFAPreferenceRequest = exports.SoftwareTokenMfaSettingsType = exports.SMSMfaSettingsType = exports.SoftwareTokenMFANotFoundException = exports.ExpiredCodeException = exports.CodeMismatchException = exports.AdminRespondToAuthChallengeResponse = exports.AdminRespondToAuthChallengeRequest = exports.InvalidEmailRoleAccessPolicyException = exports.AdminResetUserPasswordResponse = exports.AdminResetUserPasswordRequest = void 0;
|
|
6
|
+
exports.DeleteUserAttributesRequest = exports.DeleteUserRequest = exports.DeleteResourceServerRequest = exports.UnsupportedIdentityProviderException = exports.DeleteIdentityProviderRequest = exports.DeleteGroupRequest = exports.CreateUserPoolDomainResponse = exports.CreateUserPoolDomainRequest = exports.CustomDomainConfigType = exports.ScopeDoesNotExistException = exports.InvalidOAuthFlowException = exports.CreateUserPoolClientResponse = exports.UserPoolClientType = exports.CreateUserPoolClientRequest = exports.TokenValidityUnitsType = exports.TimeUnitsType = exports.PreventUserExistenceErrorTypes = exports.ExplicitAuthFlowsType = exports.OAuthFlowType = exports.UserPoolTaggingException = exports.CreateUserPoolResponse = exports.UserPoolType = exports.StatusType = exports.CreateUserPoolRequest = exports.VerificationMessageTemplateType = exports.DefaultEmailOptionType = exports.UserPoolAddOnsType = exports.UsernameConfigurationType = exports.UsernameAttributeType = exports.UserAttributeUpdateSettingsType = exports.SmsConfigurationType = exports.UserPoolPolicyType = exports.PasswordPolicyType = exports.UserPoolMfaType = exports.LambdaConfigType = exports.CustomSMSLambdaVersionConfigType = exports.CustomSMSSenderLambdaVersionType = exports.CustomEmailLambdaVersionConfigType = exports.CustomEmailSenderLambdaVersionType = exports.EmailConfigurationType = exports.EmailSendingAccountType = exports.DeviceConfigurationType = exports.CreateUserImportJobResponse = exports.UserImportJobType = exports.UserImportJobStatusType = exports.CreateUserImportJobRequest = exports.CreateResourceServerResponse = exports.ResourceServerType = exports.CreateResourceServerRequest = exports.ResourceServerScopeType = void 0;
|
|
7
|
+
exports.SmsMfaConfigType = exports.GetUserPoolMfaConfigRequest = exports.GetUserAttributeVerificationCodeResponse = exports.GetUserAttributeVerificationCodeRequest = exports.GetUserResponse = exports.GetUserRequest = exports.GetUICustomizationResponse = exports.UICustomizationType = exports.GetUICustomizationRequest = exports.GetSigningCertificateResponse = exports.GetSigningCertificateRequest = exports.GetIdentityProviderByIdentifierResponse = exports.GetIdentityProviderByIdentifierRequest = exports.GetGroupResponse = exports.GetGroupRequest = exports.GetDeviceResponse = exports.GetDeviceRequest = exports.GetCSVHeaderResponse = exports.GetCSVHeaderRequest = exports.ForgotPasswordResponse = exports.CodeDeliveryDetailsType = exports.ForgotPasswordRequest = exports.ForgetDeviceRequest = exports.DescribeUserPoolDomainResponse = exports.DomainDescriptionType = exports.DomainStatusType = exports.DescribeUserPoolDomainRequest = exports.DescribeUserPoolClientResponse = exports.DescribeUserPoolClientRequest = exports.DescribeUserPoolResponse = exports.DescribeUserPoolRequest = exports.DescribeUserImportJobResponse = exports.DescribeUserImportJobRequest = exports.DescribeRiskConfigurationResponse = exports.RiskConfigurationType = exports.RiskExceptionConfigurationType = exports.CompromisedCredentialsRiskConfigurationType = exports.EventFilterType = exports.CompromisedCredentialsActionsType = exports.CompromisedCredentialsEventActionType = exports.DescribeRiskConfigurationRequest = exports.DescribeResourceServerResponse = exports.DescribeResourceServerRequest = exports.DescribeIdentityProviderResponse = exports.DescribeIdentityProviderRequest = exports.DeleteUserPoolDomainResponse = exports.DeleteUserPoolDomainRequest = exports.DeleteUserPoolClientRequest = exports.DeleteUserPoolRequest = exports.DeleteUserAttributesResponse = void 0;
|
|
8
|
+
exports.SignUpResponse = exports.SignUpRequest = exports.SetUserSettingsResponse = exports.SetUserSettingsRequest = exports.SetUserPoolMfaConfigResponse = exports.SetUserPoolMfaConfigRequest = exports.SetUserMFAPreferenceResponse = exports.SetUserMFAPreferenceRequest = exports.SetUICustomizationResponse = exports.SetUICustomizationRequest = exports.SetRiskConfigurationResponse = exports.SetRiskConfigurationRequest = exports.UnsupportedTokenTypeException = exports.UnsupportedOperationException = exports.UnauthorizedException = exports.RevokeTokenResponse = exports.RevokeTokenRequest = exports.RespondToAuthChallengeResponse = exports.RespondToAuthChallengeRequest = exports.ResendConfirmationCodeResponse = exports.ResendConfirmationCodeRequest = exports.ListUsersInGroupResponse = exports.ListUsersInGroupRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListUserPoolsResponse = exports.UserPoolDescriptionType = exports.ListUserPoolsRequest = exports.ListUserPoolClientsResponse = exports.UserPoolClientDescription = exports.ListUserPoolClientsRequest = exports.ListUserImportJobsResponse = exports.ListUserImportJobsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListResourceServersResponse = exports.ListResourceServersRequest = exports.ListIdentityProvidersResponse = exports.ProviderDescription = exports.ListIdentityProvidersRequest = exports.ListGroupsResponse = exports.ListGroupsRequest = exports.ListDevicesResponse = exports.ListDevicesRequest = exports.InitiateAuthResponse = exports.InitiateAuthRequest = exports.GlobalSignOutResponse = exports.GlobalSignOutRequest = exports.GetUserPoolMfaConfigResponse = exports.SoftwareTokenMfaConfigType = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
11
11
|
var RecoveryOptionNameType;
|
|
@@ -1073,6 +1073,11 @@ class ConcurrentModificationException extends CognitoIdentityProviderServiceExce
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
1076
|
+
var VerifiedAttributeType;
|
|
1077
|
+
(function (VerifiedAttributeType) {
|
|
1078
|
+
VerifiedAttributeType["EMAIL"] = "email";
|
|
1079
|
+
VerifiedAttributeType["PHONE_NUMBER"] = "phone_number";
|
|
1080
|
+
})(VerifiedAttributeType = exports.VerifiedAttributeType || (exports.VerifiedAttributeType = {}));
|
|
1076
1081
|
var ChangePasswordRequest;
|
|
1077
1082
|
(function (ChangePasswordRequest) {
|
|
1078
1083
|
ChangePasswordRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1262,11 +1267,6 @@ var CreateUserImportJobResponse;
|
|
|
1262
1267
|
...obj,
|
|
1263
1268
|
});
|
|
1264
1269
|
})(CreateUserImportJobResponse = exports.CreateUserImportJobResponse || (exports.CreateUserImportJobResponse = {}));
|
|
1265
|
-
var VerifiedAttributeType;
|
|
1266
|
-
(function (VerifiedAttributeType) {
|
|
1267
|
-
VerifiedAttributeType["EMAIL"] = "email";
|
|
1268
|
-
VerifiedAttributeType["PHONE_NUMBER"] = "phone_number";
|
|
1269
|
-
})(VerifiedAttributeType = exports.VerifiedAttributeType || (exports.VerifiedAttributeType = {}));
|
|
1270
1270
|
var DeviceConfigurationType;
|
|
1271
1271
|
(function (DeviceConfigurationType) {
|
|
1272
1272
|
DeviceConfigurationType.filterSensitiveLog = (obj) => ({
|
|
@@ -1334,6 +1334,12 @@ var SmsConfigurationType;
|
|
|
1334
1334
|
...obj,
|
|
1335
1335
|
});
|
|
1336
1336
|
})(SmsConfigurationType = exports.SmsConfigurationType || (exports.SmsConfigurationType = {}));
|
|
1337
|
+
var UserAttributeUpdateSettingsType;
|
|
1338
|
+
(function (UserAttributeUpdateSettingsType) {
|
|
1339
|
+
UserAttributeUpdateSettingsType.filterSensitiveLog = (obj) => ({
|
|
1340
|
+
...obj,
|
|
1341
|
+
});
|
|
1342
|
+
})(UserAttributeUpdateSettingsType = exports.UserAttributeUpdateSettingsType || (exports.UserAttributeUpdateSettingsType = {}));
|
|
1337
1343
|
var UsernameAttributeType;
|
|
1338
1344
|
(function (UsernameAttributeType) {
|
|
1339
1345
|
UsernameAttributeType["EMAIL"] = "email";
|
|
@@ -2229,9 +2235,3 @@ var SignUpResponse;
|
|
|
2229
2235
|
...obj,
|
|
2230
2236
|
});
|
|
2231
2237
|
})(SignUpResponse = exports.SignUpResponse || (exports.SignUpResponse = {}));
|
|
2232
|
-
var StartUserImportJobRequest;
|
|
2233
|
-
(function (StartUserImportJobRequest) {
|
|
2234
|
-
StartUserImportJobRequest.filterSensitiveLog = (obj) => ({
|
|
2235
|
-
...obj,
|
|
2236
|
-
});
|
|
2237
|
-
})(StartUserImportJobRequest = exports.StartUserImportJobRequest || (exports.StartUserImportJobRequest = {}));
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyUserAttributeResponse = exports.VerifyUserAttributeRequest = exports.VerifySoftwareTokenResponse = exports.VerifySoftwareTokenResponseType = exports.VerifySoftwareTokenRequest = exports.EnableSoftwareTokenMFAException = exports.UpdateUserPoolDomainResponse = exports.UpdateUserPoolDomainRequest = exports.UpdateUserPoolClientResponse = exports.UpdateUserPoolClientRequest = exports.UpdateUserPoolResponse = exports.UpdateUserPoolRequest = exports.UpdateUserAttributesResponse = exports.UpdateUserAttributesRequest = exports.UpdateResourceServerResponse = exports.UpdateResourceServerRequest = exports.UpdateIdentityProviderResponse = exports.UpdateIdentityProviderRequest = exports.UpdateGroupResponse = exports.UpdateGroupRequest = exports.UpdateDeviceStatusResponse = exports.UpdateDeviceStatusRequest = exports.UpdateAuthEventFeedbackResponse = exports.UpdateAuthEventFeedbackRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopUserImportJobResponse = exports.StopUserImportJobRequest = exports.StartUserImportJobResponse = void 0;
|
|
3
|
+
exports.VerifyUserAttributeResponse = exports.VerifyUserAttributeRequest = exports.VerifySoftwareTokenResponse = exports.VerifySoftwareTokenResponseType = exports.VerifySoftwareTokenRequest = exports.EnableSoftwareTokenMFAException = exports.UpdateUserPoolDomainResponse = exports.UpdateUserPoolDomainRequest = exports.UpdateUserPoolClientResponse = exports.UpdateUserPoolClientRequest = exports.UpdateUserPoolResponse = exports.UpdateUserPoolRequest = exports.UpdateUserAttributesResponse = exports.UpdateUserAttributesRequest = exports.UpdateResourceServerResponse = exports.UpdateResourceServerRequest = exports.UpdateIdentityProviderResponse = exports.UpdateIdentityProviderRequest = exports.UpdateGroupResponse = exports.UpdateGroupRequest = exports.UpdateDeviceStatusResponse = exports.UpdateDeviceStatusRequest = exports.UpdateAuthEventFeedbackResponse = exports.UpdateAuthEventFeedbackRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopUserImportJobResponse = exports.StopUserImportJobRequest = exports.StartUserImportJobResponse = exports.StartUserImportJobRequest = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
6
6
|
const models_0_1 = require("./models_0");
|
|
7
|
+
var StartUserImportJobRequest;
|
|
8
|
+
(function (StartUserImportJobRequest) {
|
|
9
|
+
StartUserImportJobRequest.filterSensitiveLog = (obj) => ({
|
|
10
|
+
...obj,
|
|
11
|
+
});
|
|
12
|
+
})(StartUserImportJobRequest = exports.StartUserImportJobRequest || (exports.StartUserImportJobRequest = {}));
|
|
7
13
|
var StartUserImportJobResponse;
|
|
8
14
|
(function (StartUserImportJobResponse) {
|
|
9
15
|
StartUserImportJobResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -6605,6 +6605,9 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6605
6605
|
let errorCode = "UnknownError";
|
|
6606
6606
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6607
6607
|
switch (errorCode) {
|
|
6608
|
+
case "AliasExistsException":
|
|
6609
|
+
case "com.amazonaws.cognitoidentityprovider#AliasExistsException":
|
|
6610
|
+
throw await deserializeAws_json1_1AliasExistsExceptionResponse(parsedOutput, context);
|
|
6608
6611
|
case "CodeMismatchException":
|
|
6609
6612
|
case "com.amazonaws.cognitoidentityprovider#CodeMismatchException":
|
|
6610
6613
|
throw await deserializeAws_json1_1CodeMismatchExceptionResponse(parsedOutput, context);
|
|
@@ -7397,6 +7400,16 @@ const serializeAws_json1_1AttributeNameListType = (input, context) => {
|
|
|
7397
7400
|
return entry;
|
|
7398
7401
|
});
|
|
7399
7402
|
};
|
|
7403
|
+
const serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = (input, context) => {
|
|
7404
|
+
return input
|
|
7405
|
+
.filter((e) => e != null)
|
|
7406
|
+
.map((entry) => {
|
|
7407
|
+
if (entry === null) {
|
|
7408
|
+
return null;
|
|
7409
|
+
}
|
|
7410
|
+
return entry;
|
|
7411
|
+
});
|
|
7412
|
+
};
|
|
7400
7413
|
const serializeAws_json1_1AttributeType = (input, context) => {
|
|
7401
7414
|
return {
|
|
7402
7415
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -7722,6 +7735,10 @@ const serializeAws_json1_1CreateUserPoolRequest = (input, context) => {
|
|
|
7722
7735
|
}),
|
|
7723
7736
|
...(input.SmsVerificationMessage !== undefined &&
|
|
7724
7737
|
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage }),
|
|
7738
|
+
...(input.UserAttributeUpdateSettings !== undefined &&
|
|
7739
|
+
input.UserAttributeUpdateSettings !== null && {
|
|
7740
|
+
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
7741
|
+
}),
|
|
7725
7742
|
...(input.UserPoolAddOns !== undefined &&
|
|
7726
7743
|
input.UserPoolAddOns !== null && {
|
|
7727
7744
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
@@ -8774,6 +8791,10 @@ const serializeAws_json1_1UpdateUserPoolRequest = (input, context) => {
|
|
|
8774
8791
|
}),
|
|
8775
8792
|
...(input.SmsVerificationMessage !== undefined &&
|
|
8776
8793
|
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage }),
|
|
8794
|
+
...(input.UserAttributeUpdateSettings !== undefined &&
|
|
8795
|
+
input.UserAttributeUpdateSettings !== null && {
|
|
8796
|
+
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
8797
|
+
}),
|
|
8777
8798
|
...(input.UserPoolAddOns !== undefined &&
|
|
8778
8799
|
input.UserPoolAddOns !== null && {
|
|
8779
8800
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
@@ -8789,6 +8810,14 @@ const serializeAws_json1_1UpdateUserPoolRequest = (input, context) => {
|
|
|
8789
8810
|
}),
|
|
8790
8811
|
};
|
|
8791
8812
|
};
|
|
8813
|
+
const serializeAws_json1_1UserAttributeUpdateSettingsType = (input, context) => {
|
|
8814
|
+
return {
|
|
8815
|
+
...(input.AttributesRequireVerificationBeforeUpdate !== undefined &&
|
|
8816
|
+
input.AttributesRequireVerificationBeforeUpdate !== null && {
|
|
8817
|
+
AttributesRequireVerificationBeforeUpdate: serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(input.AttributesRequireVerificationBeforeUpdate, context),
|
|
8818
|
+
}),
|
|
8819
|
+
};
|
|
8820
|
+
};
|
|
8792
8821
|
const serializeAws_json1_1UserContextDataType = (input, context) => {
|
|
8793
8822
|
return {
|
|
8794
8823
|
...(input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData }),
|
|
@@ -9111,6 +9140,17 @@ const deserializeAws_json1_1AttributeMappingType = (output, context) => {
|
|
|
9111
9140
|
};
|
|
9112
9141
|
}, {});
|
|
9113
9142
|
};
|
|
9143
|
+
const deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = (output, context) => {
|
|
9144
|
+
const retVal = (output || [])
|
|
9145
|
+
.filter((e) => e != null)
|
|
9146
|
+
.map((entry) => {
|
|
9147
|
+
if (entry === null) {
|
|
9148
|
+
return null;
|
|
9149
|
+
}
|
|
9150
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
9151
|
+
});
|
|
9152
|
+
return retVal;
|
|
9153
|
+
};
|
|
9114
9154
|
const deserializeAws_json1_1AttributeType = (output, context) => {
|
|
9115
9155
|
return {
|
|
9116
9156
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -10366,6 +10406,14 @@ const deserializeAws_json1_1UpdateUserPoolDomainResponse = (output, context) =>
|
|
|
10366
10406
|
const deserializeAws_json1_1UpdateUserPoolResponse = (output, context) => {
|
|
10367
10407
|
return {};
|
|
10368
10408
|
};
|
|
10409
|
+
const deserializeAws_json1_1UserAttributeUpdateSettingsType = (output, context) => {
|
|
10410
|
+
return {
|
|
10411
|
+
AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate !== undefined &&
|
|
10412
|
+
output.AttributesRequireVerificationBeforeUpdate !== null
|
|
10413
|
+
? deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(output.AttributesRequireVerificationBeforeUpdate, context)
|
|
10414
|
+
: undefined,
|
|
10415
|
+
};
|
|
10416
|
+
};
|
|
10369
10417
|
const deserializeAws_json1_1UserImportInProgressException = (output, context) => {
|
|
10370
10418
|
return {
|
|
10371
10419
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -10633,6 +10681,9 @@ const deserializeAws_json1_1UserPoolType = (output, context) => {
|
|
|
10633
10681
|
SmsConfigurationFailure: (0, smithy_client_1.expectString)(output.SmsConfigurationFailure),
|
|
10634
10682
|
SmsVerificationMessage: (0, smithy_client_1.expectString)(output.SmsVerificationMessage),
|
|
10635
10683
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
10684
|
+
UserAttributeUpdateSettings: output.UserAttributeUpdateSettings !== undefined && output.UserAttributeUpdateSettings !== null
|
|
10685
|
+
? deserializeAws_json1_1UserAttributeUpdateSettingsType(output.UserAttributeUpdateSettings, context)
|
|
10686
|
+
: undefined,
|
|
10636
10687
|
UserPoolAddOns: output.UserPoolAddOns !== undefined && output.UserPoolAddOns !== null
|
|
10637
10688
|
? deserializeAws_json1_1UserPoolAddOnsType(output.UserPoolAddOns, context)
|
|
10638
10689
|
: undefined,
|
|
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
20
21
|
const getRuntimeConfig = (config) => {
|
|
21
22
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
24
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
25
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
26
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -2,8 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import { StartUserImportJobRequest } from "../models/
|
|
6
|
-
import { StartUserImportJobResponse } from "../models/models_1";
|
|
5
|
+
import { StartUserImportJobRequest, StartUserImportJobResponse } from "../models/models_1";
|
|
7
6
|
import { deserializeAws_json1_1StartUserImportJobCommand, serializeAws_json1_1StartUserImportJobCommand, } from "../protocols/Aws_json1_1";
|
|
8
7
|
var StartUserImportJobCommand = (function (_super) {
|
|
9
8
|
__extends(StartUserImportJobCommand, _super);
|
|
@@ -825,6 +825,11 @@ var ConcurrentModificationException = (function (_super) {
|
|
|
825
825
|
return ConcurrentModificationException;
|
|
826
826
|
}(__BaseException));
|
|
827
827
|
export { ConcurrentModificationException };
|
|
828
|
+
export var VerifiedAttributeType;
|
|
829
|
+
(function (VerifiedAttributeType) {
|
|
830
|
+
VerifiedAttributeType["EMAIL"] = "email";
|
|
831
|
+
VerifiedAttributeType["PHONE_NUMBER"] = "phone_number";
|
|
832
|
+
})(VerifiedAttributeType || (VerifiedAttributeType = {}));
|
|
828
833
|
export var ChangePasswordRequest;
|
|
829
834
|
(function (ChangePasswordRequest) {
|
|
830
835
|
ChangePasswordRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.PreviousPassword && { PreviousPassword: SENSITIVE_STRING })), (obj.ProposedPassword && { ProposedPassword: SENSITIVE_STRING })), (obj.AccessToken && { AccessToken: SENSITIVE_STRING }))); };
|
|
@@ -957,11 +962,6 @@ export var CreateUserImportJobResponse;
|
|
|
957
962
|
(function (CreateUserImportJobResponse) {
|
|
958
963
|
CreateUserImportJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
959
964
|
})(CreateUserImportJobResponse || (CreateUserImportJobResponse = {}));
|
|
960
|
-
export var VerifiedAttributeType;
|
|
961
|
-
(function (VerifiedAttributeType) {
|
|
962
|
-
VerifiedAttributeType["EMAIL"] = "email";
|
|
963
|
-
VerifiedAttributeType["PHONE_NUMBER"] = "phone_number";
|
|
964
|
-
})(VerifiedAttributeType || (VerifiedAttributeType = {}));
|
|
965
965
|
export var DeviceConfigurationType;
|
|
966
966
|
(function (DeviceConfigurationType) {
|
|
967
967
|
DeviceConfigurationType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1013,6 +1013,10 @@ export var SmsConfigurationType;
|
|
|
1013
1013
|
(function (SmsConfigurationType) {
|
|
1014
1014
|
SmsConfigurationType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1015
1015
|
})(SmsConfigurationType || (SmsConfigurationType = {}));
|
|
1016
|
+
export var UserAttributeUpdateSettingsType;
|
|
1017
|
+
(function (UserAttributeUpdateSettingsType) {
|
|
1018
|
+
UserAttributeUpdateSettingsType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1019
|
+
})(UserAttributeUpdateSettingsType || (UserAttributeUpdateSettingsType = {}));
|
|
1016
1020
|
export var UsernameAttributeType;
|
|
1017
1021
|
(function (UsernameAttributeType) {
|
|
1018
1022
|
UsernameAttributeType["EMAIL"] = "email";
|
|
@@ -1624,7 +1628,3 @@ export var SignUpResponse;
|
|
|
1624
1628
|
(function (SignUpResponse) {
|
|
1625
1629
|
SignUpResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1626
1630
|
})(SignUpResponse || (SignUpResponse = {}));
|
|
1627
|
-
export var StartUserImportJobRequest;
|
|
1628
|
-
(function (StartUserImportJobRequest) {
|
|
1629
|
-
StartUserImportJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1630
|
-
})(StartUserImportJobRequest || (StartUserImportJobRequest = {}));
|
|
@@ -2,6 +2,10 @@ import { __assign, __extends } from "tslib";
|
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
4
4
|
import { AttributeType, UserPoolClientType, } from "./models_0";
|
|
5
|
+
export var StartUserImportJobRequest;
|
|
6
|
+
(function (StartUserImportJobRequest) {
|
|
7
|
+
StartUserImportJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
|
+
})(StartUserImportJobRequest || (StartUserImportJobRequest = {}));
|
|
5
9
|
export var StartUserImportJobResponse;
|
|
6
10
|
(function (StartUserImportJobResponse) {
|
|
7
11
|
StartUserImportJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -8808,53 +8808,57 @@ var deserializeAws_json1_1VerifyUserAttributeCommandError = function (output, co
|
|
|
8808
8808
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8809
8809
|
_b = errorCode;
|
|
8810
8810
|
switch (_b) {
|
|
8811
|
-
case "
|
|
8812
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8813
|
-
case "
|
|
8814
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8815
|
-
case "
|
|
8816
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8817
|
-
case "
|
|
8818
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8819
|
-
case "
|
|
8820
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8821
|
-
case "
|
|
8822
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8823
|
-
case "
|
|
8824
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8825
|
-
case "
|
|
8826
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8827
|
-
case "
|
|
8828
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8829
|
-
case "
|
|
8830
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8831
|
-
case "
|
|
8832
|
-
case "com.amazonaws.cognitoidentityprovider#
|
|
8811
|
+
case "AliasExistsException": return [3, 2];
|
|
8812
|
+
case "com.amazonaws.cognitoidentityprovider#AliasExistsException": return [3, 2];
|
|
8813
|
+
case "CodeMismatchException": return [3, 4];
|
|
8814
|
+
case "com.amazonaws.cognitoidentityprovider#CodeMismatchException": return [3, 4];
|
|
8815
|
+
case "ExpiredCodeException": return [3, 6];
|
|
8816
|
+
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException": return [3, 6];
|
|
8817
|
+
case "InternalErrorException": return [3, 8];
|
|
8818
|
+
case "com.amazonaws.cognitoidentityprovider#InternalErrorException": return [3, 8];
|
|
8819
|
+
case "InvalidParameterException": return [3, 10];
|
|
8820
|
+
case "com.amazonaws.cognitoidentityprovider#InvalidParameterException": return [3, 10];
|
|
8821
|
+
case "LimitExceededException": return [3, 12];
|
|
8822
|
+
case "com.amazonaws.cognitoidentityprovider#LimitExceededException": return [3, 12];
|
|
8823
|
+
case "NotAuthorizedException": return [3, 14];
|
|
8824
|
+
case "com.amazonaws.cognitoidentityprovider#NotAuthorizedException": return [3, 14];
|
|
8825
|
+
case "PasswordResetRequiredException": return [3, 16];
|
|
8826
|
+
case "com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException": return [3, 16];
|
|
8827
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
8828
|
+
case "com.amazonaws.cognitoidentityprovider#ResourceNotFoundException": return [3, 18];
|
|
8829
|
+
case "TooManyRequestsException": return [3, 20];
|
|
8830
|
+
case "com.amazonaws.cognitoidentityprovider#TooManyRequestsException": return [3, 20];
|
|
8831
|
+
case "UserNotConfirmedException": return [3, 22];
|
|
8832
|
+
case "com.amazonaws.cognitoidentityprovider#UserNotConfirmedException": return [3, 22];
|
|
8833
|
+
case "UserNotFoundException": return [3, 24];
|
|
8834
|
+
case "com.amazonaws.cognitoidentityprovider#UserNotFoundException": return [3, 24];
|
|
8833
8835
|
}
|
|
8834
|
-
return [3,
|
|
8835
|
-
case 2: return [4,
|
|
8836
|
+
return [3, 26];
|
|
8837
|
+
case 2: return [4, deserializeAws_json1_1AliasExistsExceptionResponse(parsedOutput, context)];
|
|
8836
8838
|
case 3: throw _d.sent();
|
|
8837
|
-
case 4: return [4,
|
|
8839
|
+
case 4: return [4, deserializeAws_json1_1CodeMismatchExceptionResponse(parsedOutput, context)];
|
|
8838
8840
|
case 5: throw _d.sent();
|
|
8839
|
-
case 6: return [4,
|
|
8841
|
+
case 6: return [4, deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context)];
|
|
8840
8842
|
case 7: throw _d.sent();
|
|
8841
|
-
case 8: return [4,
|
|
8843
|
+
case 8: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
8842
8844
|
case 9: throw _d.sent();
|
|
8843
|
-
case 10: return [4,
|
|
8845
|
+
case 10: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
8844
8846
|
case 11: throw _d.sent();
|
|
8845
|
-
case 12: return [4,
|
|
8847
|
+
case 12: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
8846
8848
|
case 13: throw _d.sent();
|
|
8847
|
-
case 14: return [4,
|
|
8849
|
+
case 14: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
8848
8850
|
case 15: throw _d.sent();
|
|
8849
|
-
case 16: return [4,
|
|
8851
|
+
case 16: return [4, deserializeAws_json1_1PasswordResetRequiredExceptionResponse(parsedOutput, context)];
|
|
8850
8852
|
case 17: throw _d.sent();
|
|
8851
|
-
case 18: return [4,
|
|
8853
|
+
case 18: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
8852
8854
|
case 19: throw _d.sent();
|
|
8853
|
-
case 20: return [4,
|
|
8855
|
+
case 20: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
8854
8856
|
case 21: throw _d.sent();
|
|
8855
|
-
case 22: return [4,
|
|
8857
|
+
case 22: return [4, deserializeAws_json1_1UserNotConfirmedExceptionResponse(parsedOutput, context)];
|
|
8856
8858
|
case 23: throw _d.sent();
|
|
8857
|
-
case 24:
|
|
8859
|
+
case 24: return [4, deserializeAws_json1_1UserNotFoundExceptionResponse(parsedOutput, context)];
|
|
8860
|
+
case 25: throw _d.sent();
|
|
8861
|
+
case 26:
|
|
8858
8862
|
parsedBody = parsedOutput.body;
|
|
8859
8863
|
response = new __BaseException({
|
|
8860
8864
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -9462,6 +9466,16 @@ var serializeAws_json1_1AttributeNameListType = function (input, context) {
|
|
|
9462
9466
|
return entry;
|
|
9463
9467
|
});
|
|
9464
9468
|
};
|
|
9469
|
+
var serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = function (input, context) {
|
|
9470
|
+
return input
|
|
9471
|
+
.filter(function (e) { return e != null; })
|
|
9472
|
+
.map(function (entry) {
|
|
9473
|
+
if (entry === null) {
|
|
9474
|
+
return null;
|
|
9475
|
+
}
|
|
9476
|
+
return entry;
|
|
9477
|
+
});
|
|
9478
|
+
};
|
|
9465
9479
|
var serializeAws_json1_1AttributeType = function (input, context) {
|
|
9466
9480
|
return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
9467
9481
|
};
|
|
@@ -9648,7 +9662,7 @@ var serializeAws_json1_1CreateUserPoolDomainRequest = function (input, context)
|
|
|
9648
9662
|
})), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
|
|
9649
9663
|
};
|
|
9650
9664
|
var serializeAws_json1_1CreateUserPoolRequest = function (input, context) {
|
|
9651
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
|
|
9665
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
|
|
9652
9666
|
input.AccountRecoverySetting !== null && {
|
|
9653
9667
|
AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
|
|
9654
9668
|
})), (input.AdminCreateUserConfig !== undefined &&
|
|
@@ -9679,7 +9693,10 @@ var serializeAws_json1_1CreateUserPoolRequest = function (input, context) {
|
|
|
9679
9693
|
input.SmsConfiguration !== null && {
|
|
9680
9694
|
SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
|
|
9681
9695
|
})), (input.SmsVerificationMessage !== undefined &&
|
|
9682
|
-
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.
|
|
9696
|
+
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings !== undefined &&
|
|
9697
|
+
input.UserAttributeUpdateSettings !== null && {
|
|
9698
|
+
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
9699
|
+
})), (input.UserPoolAddOns !== undefined &&
|
|
9683
9700
|
input.UserPoolAddOns !== null && {
|
|
9684
9701
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
9685
9702
|
})), (input.UserPoolTags !== undefined &&
|
|
@@ -10332,7 +10349,7 @@ var serializeAws_json1_1UpdateUserPoolDomainRequest = function (input, context)
|
|
|
10332
10349
|
})), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
|
|
10333
10350
|
};
|
|
10334
10351
|
var serializeAws_json1_1UpdateUserPoolRequest = function (input, context) {
|
|
10335
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
|
|
10352
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
|
|
10336
10353
|
input.AccountRecoverySetting !== null && {
|
|
10337
10354
|
AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
|
|
10338
10355
|
})), (input.AdminCreateUserConfig !== undefined &&
|
|
@@ -10359,7 +10376,10 @@ var serializeAws_json1_1UpdateUserPoolRequest = function (input, context) {
|
|
|
10359
10376
|
input.SmsConfiguration !== null && {
|
|
10360
10377
|
SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
|
|
10361
10378
|
})), (input.SmsVerificationMessage !== undefined &&
|
|
10362
|
-
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.
|
|
10379
|
+
input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings !== undefined &&
|
|
10380
|
+
input.UserAttributeUpdateSettings !== null && {
|
|
10381
|
+
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
10382
|
+
})), (input.UserPoolAddOns !== undefined &&
|
|
10363
10383
|
input.UserPoolAddOns !== null && {
|
|
10364
10384
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
10365
10385
|
})), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.UserPoolTags !== undefined &&
|
|
@@ -10370,6 +10390,12 @@ var serializeAws_json1_1UpdateUserPoolRequest = function (input, context) {
|
|
|
10370
10390
|
VerificationMessageTemplate: serializeAws_json1_1VerificationMessageTemplateType(input.VerificationMessageTemplate, context),
|
|
10371
10391
|
}));
|
|
10372
10392
|
};
|
|
10393
|
+
var serializeAws_json1_1UserAttributeUpdateSettingsType = function (input, context) {
|
|
10394
|
+
return __assign({}, (input.AttributesRequireVerificationBeforeUpdate !== undefined &&
|
|
10395
|
+
input.AttributesRequireVerificationBeforeUpdate !== null && {
|
|
10396
|
+
AttributesRequireVerificationBeforeUpdate: serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(input.AttributesRequireVerificationBeforeUpdate, context),
|
|
10397
|
+
}));
|
|
10398
|
+
};
|
|
10373
10399
|
var serializeAws_json1_1UserContextDataType = function (input, context) {
|
|
10374
10400
|
return __assign({}, (input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData }));
|
|
10375
10401
|
};
|
|
@@ -10666,6 +10692,17 @@ var deserializeAws_json1_1AttributeMappingType = function (output, context) {
|
|
|
10666
10692
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
10667
10693
|
}, {});
|
|
10668
10694
|
};
|
|
10695
|
+
var deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = function (output, context) {
|
|
10696
|
+
var retVal = (output || [])
|
|
10697
|
+
.filter(function (e) { return e != null; })
|
|
10698
|
+
.map(function (entry) {
|
|
10699
|
+
if (entry === null) {
|
|
10700
|
+
return null;
|
|
10701
|
+
}
|
|
10702
|
+
return __expectString(entry);
|
|
10703
|
+
});
|
|
10704
|
+
return retVal;
|
|
10705
|
+
};
|
|
10669
10706
|
var deserializeAws_json1_1AttributeType = function (output, context) {
|
|
10670
10707
|
return {
|
|
10671
10708
|
Name: __expectString(output.Name),
|
|
@@ -11919,6 +11956,14 @@ var deserializeAws_json1_1UpdateUserPoolDomainResponse = function (output, conte
|
|
|
11919
11956
|
var deserializeAws_json1_1UpdateUserPoolResponse = function (output, context) {
|
|
11920
11957
|
return {};
|
|
11921
11958
|
};
|
|
11959
|
+
var deserializeAws_json1_1UserAttributeUpdateSettingsType = function (output, context) {
|
|
11960
|
+
return {
|
|
11961
|
+
AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate !== undefined &&
|
|
11962
|
+
output.AttributesRequireVerificationBeforeUpdate !== null
|
|
11963
|
+
? deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(output.AttributesRequireVerificationBeforeUpdate, context)
|
|
11964
|
+
: undefined,
|
|
11965
|
+
};
|
|
11966
|
+
};
|
|
11922
11967
|
var deserializeAws_json1_1UserImportInProgressException = function (output, context) {
|
|
11923
11968
|
return {
|
|
11924
11969
|
message: __expectString(output.message),
|
|
@@ -12185,6 +12230,9 @@ var deserializeAws_json1_1UserPoolType = function (output, context) {
|
|
|
12185
12230
|
SmsConfigurationFailure: __expectString(output.SmsConfigurationFailure),
|
|
12186
12231
|
SmsVerificationMessage: __expectString(output.SmsVerificationMessage),
|
|
12187
12232
|
Status: __expectString(output.Status),
|
|
12233
|
+
UserAttributeUpdateSettings: output.UserAttributeUpdateSettings !== undefined && output.UserAttributeUpdateSettings !== null
|
|
12234
|
+
? deserializeAws_json1_1UserAttributeUpdateSettingsType(output.UserAttributeUpdateSettings, context)
|
|
12235
|
+
: undefined,
|
|
12188
12236
|
UserPoolAddOns: output.UserPoolAddOns !== undefined && output.UserPoolAddOns !== null
|
|
12189
12237
|
? deserializeAws_json1_1UserPoolAddOnsType(output.UserPoolAddOns, context)
|
|
12190
12238
|
: undefined,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
16
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
18
|
export var getRuntimeConfig = function (config) {
|
|
18
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
21
|
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
22
|
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
21
23
|
var clientSharedValues = getSharedRuntimeConfig(config);
|