@aws-sdk/client-cognito-identity-provider 3.45.0 → 3.47.2
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 +45 -0
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +6 -240
- package/dist-cjs/models/models_1.js +1 -7
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +0 -156
- package/dist-es/models/models_1.js +0 -4
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/CognitoIdentityProviderClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -234
- package/dist-types/models/models_1.d.ts +0 -6
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -156
- package/dist-types/ts3.4/models/models_1.d.ts +0 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "cognito-idp.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "cognito-idp-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "cognito-idp.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "cognito-idp-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "cognito-idp.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "cognito-idp-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "cognito-idp.us-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "cognito-idp-fips.us-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-2": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "cognito-idp.us-west-2.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "cognito-idp-fips.us-west-2.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -68,38 +68,10 @@ export var AddCustomAttributesResponse;
|
|
|
68
68
|
(function (AddCustomAttributesResponse) {
|
|
69
69
|
AddCustomAttributesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
70
70
|
})(AddCustomAttributesResponse || (AddCustomAttributesResponse = {}));
|
|
71
|
-
export var InternalErrorException;
|
|
72
|
-
(function (InternalErrorException) {
|
|
73
|
-
InternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
-
})(InternalErrorException || (InternalErrorException = {}));
|
|
75
|
-
export var InvalidParameterException;
|
|
76
|
-
(function (InvalidParameterException) {
|
|
77
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
79
|
-
export var NotAuthorizedException;
|
|
80
|
-
(function (NotAuthorizedException) {
|
|
81
|
-
NotAuthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
|
-
})(NotAuthorizedException || (NotAuthorizedException = {}));
|
|
83
|
-
export var ResourceNotFoundException;
|
|
84
|
-
(function (ResourceNotFoundException) {
|
|
85
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
87
|
-
export var TooManyRequestsException;
|
|
88
|
-
(function (TooManyRequestsException) {
|
|
89
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
91
|
-
export var UserImportInProgressException;
|
|
92
|
-
(function (UserImportInProgressException) {
|
|
93
|
-
UserImportInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
-
})(UserImportInProgressException || (UserImportInProgressException = {}));
|
|
95
71
|
export var AdminAddUserToGroupRequest;
|
|
96
72
|
(function (AdminAddUserToGroupRequest) {
|
|
97
73
|
AdminAddUserToGroupRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
98
74
|
})(AdminAddUserToGroupRequest || (AdminAddUserToGroupRequest = {}));
|
|
99
|
-
export var UserNotFoundException;
|
|
100
|
-
(function (UserNotFoundException) {
|
|
101
|
-
UserNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
-
})(UserNotFoundException || (UserNotFoundException = {}));
|
|
103
75
|
export var AdminConfirmSignUpRequest;
|
|
104
76
|
(function (AdminConfirmSignUpRequest) {
|
|
105
77
|
AdminConfirmSignUpRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
@@ -108,26 +80,6 @@ export var AdminConfirmSignUpResponse;
|
|
|
108
80
|
(function (AdminConfirmSignUpResponse) {
|
|
109
81
|
AdminConfirmSignUpResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
82
|
})(AdminConfirmSignUpResponse || (AdminConfirmSignUpResponse = {}));
|
|
111
|
-
export var InvalidLambdaResponseException;
|
|
112
|
-
(function (InvalidLambdaResponseException) {
|
|
113
|
-
InvalidLambdaResponseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
-
})(InvalidLambdaResponseException || (InvalidLambdaResponseException = {}));
|
|
115
|
-
export var LimitExceededException;
|
|
116
|
-
(function (LimitExceededException) {
|
|
117
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
119
|
-
export var TooManyFailedAttemptsException;
|
|
120
|
-
(function (TooManyFailedAttemptsException) {
|
|
121
|
-
TooManyFailedAttemptsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
-
})(TooManyFailedAttemptsException || (TooManyFailedAttemptsException = {}));
|
|
123
|
-
export var UnexpectedLambdaException;
|
|
124
|
-
(function (UnexpectedLambdaException) {
|
|
125
|
-
UnexpectedLambdaException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
|
-
})(UnexpectedLambdaException || (UnexpectedLambdaException = {}));
|
|
127
|
-
export var UserLambdaValidationException;
|
|
128
|
-
(function (UserLambdaValidationException) {
|
|
129
|
-
UserLambdaValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
-
})(UserLambdaValidationException || (UserLambdaValidationException = {}));
|
|
131
83
|
export var DeliveryMediumType;
|
|
132
84
|
(function (DeliveryMediumType) {
|
|
133
85
|
DeliveryMediumType["EMAIL"] = "EMAIL";
|
|
@@ -172,34 +124,6 @@ export var AdminCreateUserResponse;
|
|
|
172
124
|
(function (AdminCreateUserResponse) {
|
|
173
125
|
AdminCreateUserResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.User && { User: UserType.filterSensitiveLog(obj.User) }))); };
|
|
174
126
|
})(AdminCreateUserResponse || (AdminCreateUserResponse = {}));
|
|
175
|
-
export var CodeDeliveryFailureException;
|
|
176
|
-
(function (CodeDeliveryFailureException) {
|
|
177
|
-
CodeDeliveryFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
-
})(CodeDeliveryFailureException || (CodeDeliveryFailureException = {}));
|
|
179
|
-
export var InvalidPasswordException;
|
|
180
|
-
(function (InvalidPasswordException) {
|
|
181
|
-
InvalidPasswordException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
-
})(InvalidPasswordException || (InvalidPasswordException = {}));
|
|
183
|
-
export var InvalidSmsRoleAccessPolicyException;
|
|
184
|
-
(function (InvalidSmsRoleAccessPolicyException) {
|
|
185
|
-
InvalidSmsRoleAccessPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
-
})(InvalidSmsRoleAccessPolicyException || (InvalidSmsRoleAccessPolicyException = {}));
|
|
187
|
-
export var InvalidSmsRoleTrustRelationshipException;
|
|
188
|
-
(function (InvalidSmsRoleTrustRelationshipException) {
|
|
189
|
-
InvalidSmsRoleTrustRelationshipException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
-
})(InvalidSmsRoleTrustRelationshipException || (InvalidSmsRoleTrustRelationshipException = {}));
|
|
191
|
-
export var PreconditionNotMetException;
|
|
192
|
-
(function (PreconditionNotMetException) {
|
|
193
|
-
PreconditionNotMetException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
-
})(PreconditionNotMetException || (PreconditionNotMetException = {}));
|
|
195
|
-
export var UnsupportedUserStateException;
|
|
196
|
-
(function (UnsupportedUserStateException) {
|
|
197
|
-
UnsupportedUserStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
-
})(UnsupportedUserStateException || (UnsupportedUserStateException = {}));
|
|
199
|
-
export var UsernameExistsException;
|
|
200
|
-
(function (UsernameExistsException) {
|
|
201
|
-
UsernameExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
-
})(UsernameExistsException || (UsernameExistsException = {}));
|
|
203
127
|
export var MessageTemplateType;
|
|
204
128
|
(function (MessageTemplateType) {
|
|
205
129
|
MessageTemplateType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -232,10 +156,6 @@ export var AdminDisableProviderForUserResponse;
|
|
|
232
156
|
(function (AdminDisableProviderForUserResponse) {
|
|
233
157
|
AdminDisableProviderForUserResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
234
158
|
})(AdminDisableProviderForUserResponse || (AdminDisableProviderForUserResponse = {}));
|
|
235
|
-
export var AliasExistsException;
|
|
236
|
-
(function (AliasExistsException) {
|
|
237
|
-
AliasExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
238
|
-
})(AliasExistsException || (AliasExistsException = {}));
|
|
239
159
|
export var AdminDisableUserRequest;
|
|
240
160
|
(function (AdminDisableUserRequest) {
|
|
241
161
|
AdminDisableUserRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
@@ -256,10 +176,6 @@ export var AdminForgetDeviceRequest;
|
|
|
256
176
|
(function (AdminForgetDeviceRequest) {
|
|
257
177
|
AdminForgetDeviceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
258
178
|
})(AdminForgetDeviceRequest || (AdminForgetDeviceRequest = {}));
|
|
259
|
-
export var InvalidUserPoolConfigurationException;
|
|
260
|
-
(function (InvalidUserPoolConfigurationException) {
|
|
261
|
-
InvalidUserPoolConfigurationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
262
|
-
})(InvalidUserPoolConfigurationException || (InvalidUserPoolConfigurationException = {}));
|
|
263
179
|
export var AdminGetDeviceRequest;
|
|
264
180
|
(function (AdminGetDeviceRequest) {
|
|
265
181
|
AdminGetDeviceRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
@@ -337,18 +253,6 @@ export var AdminInitiateAuthResponse;
|
|
|
337
253
|
AuthenticationResult: AuthenticationResultType.filterSensitiveLog(obj.AuthenticationResult),
|
|
338
254
|
}))); };
|
|
339
255
|
})(AdminInitiateAuthResponse || (AdminInitiateAuthResponse = {}));
|
|
340
|
-
export var MFAMethodNotFoundException;
|
|
341
|
-
(function (MFAMethodNotFoundException) {
|
|
342
|
-
MFAMethodNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
343
|
-
})(MFAMethodNotFoundException || (MFAMethodNotFoundException = {}));
|
|
344
|
-
export var PasswordResetRequiredException;
|
|
345
|
-
(function (PasswordResetRequiredException) {
|
|
346
|
-
PasswordResetRequiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
347
|
-
})(PasswordResetRequiredException || (PasswordResetRequiredException = {}));
|
|
348
|
-
export var UserNotConfirmedException;
|
|
349
|
-
(function (UserNotConfirmedException) {
|
|
350
|
-
UserNotConfirmedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
351
|
-
})(UserNotConfirmedException || (UserNotConfirmedException = {}));
|
|
352
256
|
export var AdminLinkProviderForUserRequest;
|
|
353
257
|
(function (AdminLinkProviderForUserRequest) {
|
|
354
258
|
AdminLinkProviderForUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -443,10 +347,6 @@ export var AdminListUserAuthEventsResponse;
|
|
|
443
347
|
(function (AdminListUserAuthEventsResponse) {
|
|
444
348
|
AdminListUserAuthEventsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
445
349
|
})(AdminListUserAuthEventsResponse || (AdminListUserAuthEventsResponse = {}));
|
|
446
|
-
export var UserPoolAddOnNotEnabledException;
|
|
447
|
-
(function (UserPoolAddOnNotEnabledException) {
|
|
448
|
-
UserPoolAddOnNotEnabledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
449
|
-
})(UserPoolAddOnNotEnabledException || (UserPoolAddOnNotEnabledException = {}));
|
|
450
350
|
export var AdminRemoveUserFromGroupRequest;
|
|
451
351
|
(function (AdminRemoveUserFromGroupRequest) {
|
|
452
352
|
AdminRemoveUserFromGroupRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Username && { Username: SENSITIVE_STRING }))); };
|
|
@@ -459,10 +359,6 @@ export var AdminResetUserPasswordResponse;
|
|
|
459
359
|
(function (AdminResetUserPasswordResponse) {
|
|
460
360
|
AdminResetUserPasswordResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
461
361
|
})(AdminResetUserPasswordResponse || (AdminResetUserPasswordResponse = {}));
|
|
462
|
-
export var InvalidEmailRoleAccessPolicyException;
|
|
463
|
-
(function (InvalidEmailRoleAccessPolicyException) {
|
|
464
|
-
InvalidEmailRoleAccessPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
465
|
-
})(InvalidEmailRoleAccessPolicyException || (InvalidEmailRoleAccessPolicyException = {}));
|
|
466
362
|
export var AdminRespondToAuthChallengeRequest;
|
|
467
363
|
(function (AdminRespondToAuthChallengeRequest) {
|
|
468
364
|
AdminRespondToAuthChallengeRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientId && { ClientId: SENSITIVE_STRING }))); };
|
|
@@ -473,18 +369,6 @@ export var AdminRespondToAuthChallengeResponse;
|
|
|
473
369
|
AuthenticationResult: AuthenticationResultType.filterSensitiveLog(obj.AuthenticationResult),
|
|
474
370
|
}))); };
|
|
475
371
|
})(AdminRespondToAuthChallengeResponse || (AdminRespondToAuthChallengeResponse = {}));
|
|
476
|
-
export var CodeMismatchException;
|
|
477
|
-
(function (CodeMismatchException) {
|
|
478
|
-
CodeMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
479
|
-
})(CodeMismatchException || (CodeMismatchException = {}));
|
|
480
|
-
export var ExpiredCodeException;
|
|
481
|
-
(function (ExpiredCodeException) {
|
|
482
|
-
ExpiredCodeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
483
|
-
})(ExpiredCodeException || (ExpiredCodeException = {}));
|
|
484
|
-
export var SoftwareTokenMFANotFoundException;
|
|
485
|
-
(function (SoftwareTokenMFANotFoundException) {
|
|
486
|
-
SoftwareTokenMFANotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
487
|
-
})(SoftwareTokenMFANotFoundException || (SoftwareTokenMFANotFoundException = {}));
|
|
488
372
|
export var SMSMfaSettingsType;
|
|
489
373
|
(function (SMSMfaSettingsType) {
|
|
490
374
|
SMSMfaSettingsType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -580,10 +464,6 @@ export var AssociateSoftwareTokenResponse;
|
|
|
580
464
|
(function (AssociateSoftwareTokenResponse) {
|
|
581
465
|
AssociateSoftwareTokenResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SecretCode && { SecretCode: SENSITIVE_STRING }))); };
|
|
582
466
|
})(AssociateSoftwareTokenResponse || (AssociateSoftwareTokenResponse = {}));
|
|
583
|
-
export var ConcurrentModificationException;
|
|
584
|
-
(function (ConcurrentModificationException) {
|
|
585
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
586
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
587
467
|
export var ChangePasswordRequest;
|
|
588
468
|
(function (ChangePasswordRequest) {
|
|
589
469
|
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 }))); };
|
|
@@ -632,10 +512,6 @@ export var CreateGroupResponse;
|
|
|
632
512
|
(function (CreateGroupResponse) {
|
|
633
513
|
CreateGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
634
514
|
})(CreateGroupResponse || (CreateGroupResponse = {}));
|
|
635
|
-
export var GroupExistsException;
|
|
636
|
-
(function (GroupExistsException) {
|
|
637
|
-
GroupExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
638
|
-
})(GroupExistsException || (GroupExistsException = {}));
|
|
639
515
|
export var IdentityProviderTypeType;
|
|
640
516
|
(function (IdentityProviderTypeType) {
|
|
641
517
|
IdentityProviderTypeType["Facebook"] = "Facebook";
|
|
@@ -657,10 +533,6 @@ export var CreateIdentityProviderResponse;
|
|
|
657
533
|
(function (CreateIdentityProviderResponse) {
|
|
658
534
|
CreateIdentityProviderResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
659
535
|
})(CreateIdentityProviderResponse || (CreateIdentityProviderResponse = {}));
|
|
660
|
-
export var DuplicateProviderException;
|
|
661
|
-
(function (DuplicateProviderException) {
|
|
662
|
-
DuplicateProviderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
663
|
-
})(DuplicateProviderException || (DuplicateProviderException = {}));
|
|
664
536
|
export var ResourceServerScopeType;
|
|
665
537
|
(function (ResourceServerScopeType) {
|
|
666
538
|
ResourceServerScopeType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -795,10 +667,6 @@ export var CreateUserPoolResponse;
|
|
|
795
667
|
(function (CreateUserPoolResponse) {
|
|
796
668
|
CreateUserPoolResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
797
669
|
})(CreateUserPoolResponse || (CreateUserPoolResponse = {}));
|
|
798
|
-
export var UserPoolTaggingException;
|
|
799
|
-
(function (UserPoolTaggingException) {
|
|
800
|
-
UserPoolTaggingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
801
|
-
})(UserPoolTaggingException || (UserPoolTaggingException = {}));
|
|
802
670
|
export var OAuthFlowType;
|
|
803
671
|
(function (OAuthFlowType) {
|
|
804
672
|
OAuthFlowType["client_credentials"] = "client_credentials";
|
|
@@ -844,14 +712,6 @@ export var CreateUserPoolClientResponse;
|
|
|
844
712
|
(function (CreateUserPoolClientResponse) {
|
|
845
713
|
CreateUserPoolClientResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.UserPoolClient && { UserPoolClient: UserPoolClientType.filterSensitiveLog(obj.UserPoolClient) }))); };
|
|
846
714
|
})(CreateUserPoolClientResponse || (CreateUserPoolClientResponse = {}));
|
|
847
|
-
export var InvalidOAuthFlowException;
|
|
848
|
-
(function (InvalidOAuthFlowException) {
|
|
849
|
-
InvalidOAuthFlowException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
850
|
-
})(InvalidOAuthFlowException || (InvalidOAuthFlowException = {}));
|
|
851
|
-
export var ScopeDoesNotExistException;
|
|
852
|
-
(function (ScopeDoesNotExistException) {
|
|
853
|
-
ScopeDoesNotExistException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
854
|
-
})(ScopeDoesNotExistException || (ScopeDoesNotExistException = {}));
|
|
855
715
|
export var CustomDomainConfigType;
|
|
856
716
|
(function (CustomDomainConfigType) {
|
|
857
717
|
CustomDomainConfigType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -872,10 +732,6 @@ export var DeleteIdentityProviderRequest;
|
|
|
872
732
|
(function (DeleteIdentityProviderRequest) {
|
|
873
733
|
DeleteIdentityProviderRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
874
734
|
})(DeleteIdentityProviderRequest || (DeleteIdentityProviderRequest = {}));
|
|
875
|
-
export var UnsupportedIdentityProviderException;
|
|
876
|
-
(function (UnsupportedIdentityProviderException) {
|
|
877
|
-
UnsupportedIdentityProviderException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
878
|
-
})(UnsupportedIdentityProviderException || (UnsupportedIdentityProviderException = {}));
|
|
879
735
|
export var DeleteResourceServerRequest;
|
|
880
736
|
(function (DeleteResourceServerRequest) {
|
|
881
737
|
DeleteResourceServerRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1245,18 +1101,6 @@ export var RevokeTokenResponse;
|
|
|
1245
1101
|
(function (RevokeTokenResponse) {
|
|
1246
1102
|
RevokeTokenResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1247
1103
|
})(RevokeTokenResponse || (RevokeTokenResponse = {}));
|
|
1248
|
-
export var UnauthorizedException;
|
|
1249
|
-
(function (UnauthorizedException) {
|
|
1250
|
-
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1251
|
-
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
1252
|
-
export var UnsupportedOperationException;
|
|
1253
|
-
(function (UnsupportedOperationException) {
|
|
1254
|
-
UnsupportedOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1255
|
-
})(UnsupportedOperationException || (UnsupportedOperationException = {}));
|
|
1256
|
-
export var UnsupportedTokenTypeException;
|
|
1257
|
-
(function (UnsupportedTokenTypeException) {
|
|
1258
|
-
UnsupportedTokenTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1259
|
-
})(UnsupportedTokenTypeException || (UnsupportedTokenTypeException = {}));
|
|
1260
1104
|
export var SetRiskConfigurationRequest;
|
|
1261
1105
|
(function (SetRiskConfigurationRequest) {
|
|
1262
1106
|
SetRiskConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientId && { ClientId: SENSITIVE_STRING }))); };
|
|
@@ -103,10 +103,6 @@ export var UpdateUserPoolDomainResponse;
|
|
|
103
103
|
(function (UpdateUserPoolDomainResponse) {
|
|
104
104
|
UpdateUserPoolDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
105
|
})(UpdateUserPoolDomainResponse || (UpdateUserPoolDomainResponse = {}));
|
|
106
|
-
export var EnableSoftwareTokenMFAException;
|
|
107
|
-
(function (EnableSoftwareTokenMFAException) {
|
|
108
|
-
EnableSoftwareTokenMFAException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
-
})(EnableSoftwareTokenMFAException || (EnableSoftwareTokenMFAException = {}));
|
|
110
106
|
export var VerifySoftwareTokenRequest;
|
|
111
107
|
(function (VerifySoftwareTokenRequest) {
|
|
112
108
|
VerifySoftwareTokenRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AccessToken && { AccessToken: SENSITIVE_STRING }))); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AddCustomAttributesCommandInput, AddCustomAttributesCommandOutput } from "./commands/AddCustomAttributesCommand";
|
|
10
10
|
import { AdminAddUserToGroupCommandInput, AdminAddUserToGroupCommandOutput } from "./commands/AdminAddUserToGroupCommand";
|
|
@@ -209,6 +209,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
209
209
|
* @internal
|
|
210
210
|
*/
|
|
211
211
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
212
|
+
/**
|
|
213
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
214
|
+
*/
|
|
215
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
212
216
|
}
|
|
213
217
|
declare type CognitoIdentityProviderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
214
218
|
/**
|