@aws-sdk/client-cognito-identity-provider 3.625.0 → 3.628.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/dist-cjs/index.js +24 -18
- package/dist-es/models/models_0.js +4 -12
- package/dist-es/models/models_1.js +12 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -2
- package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +1 -1
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolCommand.d.ts +7 -1
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +3 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +1 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +1 -1
- package/dist-types/commands/RevokeTokenCommand.d.ts +2 -1
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +39 -19
- package/dist-types/models/models_1.d.ts +18 -0
- package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +10 -8
- package/dist-types/ts3.4/models/models_1.d.ts +8 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -79,6 +79,7 @@ __export(src_exports, {
|
|
|
79
79
|
AdminUpdateUserAttributesRequestFilterSensitiveLog: () => AdminUpdateUserAttributesRequestFilterSensitiveLog,
|
|
80
80
|
AdminUserGlobalSignOutCommand: () => AdminUserGlobalSignOutCommand,
|
|
81
81
|
AdminUserGlobalSignOutRequestFilterSensitiveLog: () => AdminUserGlobalSignOutRequestFilterSensitiveLog,
|
|
82
|
+
AdvancedSecurityEnabledModeType: () => AdvancedSecurityEnabledModeType,
|
|
82
83
|
AdvancedSecurityModeType: () => AdvancedSecurityModeType,
|
|
83
84
|
AliasAttributeType: () => AliasAttributeType,
|
|
84
85
|
AliasExistsException: () => AliasExistsException,
|
|
@@ -1081,6 +1082,10 @@ var DeviceRememberedStatusType = {
|
|
|
1081
1082
|
NOT_REMEMBERED: "not_remembered",
|
|
1082
1083
|
REMEMBERED: "remembered"
|
|
1083
1084
|
};
|
|
1085
|
+
var AdvancedSecurityEnabledModeType = {
|
|
1086
|
+
AUDIT: "AUDIT",
|
|
1087
|
+
ENFORCED: "ENFORCED"
|
|
1088
|
+
};
|
|
1084
1089
|
var AdvancedSecurityModeType = {
|
|
1085
1090
|
AUDIT: "AUDIT",
|
|
1086
1091
|
ENFORCED: "ENFORCED",
|
|
@@ -1333,23 +1338,6 @@ var LogLevel = {
|
|
|
1333
1338
|
ERROR: "ERROR",
|
|
1334
1339
|
INFO: "INFO"
|
|
1335
1340
|
};
|
|
1336
|
-
var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentityProviderServiceException {
|
|
1337
|
-
/**
|
|
1338
|
-
* @internal
|
|
1339
|
-
*/
|
|
1340
|
-
constructor(opts) {
|
|
1341
|
-
super({
|
|
1342
|
-
name: "UnauthorizedException",
|
|
1343
|
-
$fault: "client",
|
|
1344
|
-
...opts
|
|
1345
|
-
});
|
|
1346
|
-
this.name = "UnauthorizedException";
|
|
1347
|
-
this.$fault = "client";
|
|
1348
|
-
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
|
-
__name(_UnauthorizedException, "UnauthorizedException");
|
|
1352
|
-
var UnauthorizedException = _UnauthorizedException;
|
|
1353
1341
|
var AdminAddUserToGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1354
1342
|
...obj,
|
|
1355
1343
|
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1710,6 +1698,23 @@ var RevokeTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1710
1698
|
|
|
1711
1699
|
// src/models/models_1.ts
|
|
1712
1700
|
|
|
1701
|
+
var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentityProviderServiceException {
|
|
1702
|
+
/**
|
|
1703
|
+
* @internal
|
|
1704
|
+
*/
|
|
1705
|
+
constructor(opts) {
|
|
1706
|
+
super({
|
|
1707
|
+
name: "UnauthorizedException",
|
|
1708
|
+
$fault: "client",
|
|
1709
|
+
...opts
|
|
1710
|
+
});
|
|
1711
|
+
this.name = "UnauthorizedException";
|
|
1712
|
+
this.$fault = "client";
|
|
1713
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
1717
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
1713
1718
|
var _UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
|
|
1714
1719
|
/**
|
|
1715
1720
|
* @internal
|
|
@@ -6700,6 +6705,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6700
6705
|
PasswordHistoryPolicyViolationException,
|
|
6701
6706
|
SoftwareTokenMFANotFoundException,
|
|
6702
6707
|
DeviceRememberedStatusType,
|
|
6708
|
+
AdvancedSecurityEnabledModeType,
|
|
6703
6709
|
AdvancedSecurityModeType,
|
|
6704
6710
|
AliasAttributeType,
|
|
6705
6711
|
ConcurrentModificationException,
|
|
@@ -6731,7 +6737,6 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6731
6737
|
DomainStatusType,
|
|
6732
6738
|
EventSourceName,
|
|
6733
6739
|
LogLevel,
|
|
6734
|
-
UnauthorizedException,
|
|
6735
6740
|
AdminAddUserToGroupRequestFilterSensitiveLog,
|
|
6736
6741
|
AdminConfirmSignUpRequestFilterSensitiveLog,
|
|
6737
6742
|
AttributeTypeFilterSensitiveLog,
|
|
@@ -6806,6 +6811,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6806
6811
|
RespondToAuthChallengeRequestFilterSensitiveLog,
|
|
6807
6812
|
RespondToAuthChallengeResponseFilterSensitiveLog,
|
|
6808
6813
|
RevokeTokenRequestFilterSensitiveLog,
|
|
6814
|
+
UnauthorizedException,
|
|
6809
6815
|
UnsupportedOperationException,
|
|
6810
6816
|
UnsupportedTokenTypeException,
|
|
6811
6817
|
EnableSoftwareTokenMFAException,
|
|
@@ -454,6 +454,10 @@ export const DeviceRememberedStatusType = {
|
|
|
454
454
|
NOT_REMEMBERED: "not_remembered",
|
|
455
455
|
REMEMBERED: "remembered",
|
|
456
456
|
};
|
|
457
|
+
export const AdvancedSecurityEnabledModeType = {
|
|
458
|
+
AUDIT: "AUDIT",
|
|
459
|
+
ENFORCED: "ENFORCED",
|
|
460
|
+
};
|
|
457
461
|
export const AdvancedSecurityModeType = {
|
|
458
462
|
AUDIT: "AUDIT",
|
|
459
463
|
ENFORCED: "ENFORCED",
|
|
@@ -666,18 +670,6 @@ export const LogLevel = {
|
|
|
666
670
|
ERROR: "ERROR",
|
|
667
671
|
INFO: "INFO",
|
|
668
672
|
};
|
|
669
|
-
export class UnauthorizedException extends __BaseException {
|
|
670
|
-
constructor(opts) {
|
|
671
|
-
super({
|
|
672
|
-
name: "UnauthorizedException",
|
|
673
|
-
$fault: "client",
|
|
674
|
-
...opts,
|
|
675
|
-
});
|
|
676
|
-
this.name = "UnauthorizedException";
|
|
677
|
-
this.$fault = "client";
|
|
678
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
673
|
export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
|
|
682
674
|
...obj,
|
|
683
675
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
3
|
import { AttributeTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
|
|
4
|
+
export class UnauthorizedException extends __BaseException {
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "UnauthorizedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
this.name = "UnauthorizedException";
|
|
12
|
+
this.$fault = "client";
|
|
13
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
export class UnsupportedOperationException extends __BaseException {
|
|
5
17
|
constructor(opts) {
|
|
6
18
|
super({
|
|
@@ -2,8 +2,8 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { CognitoIdentityProviderServiceException as __BaseException } from "../models/CognitoIdentityProviderServiceException";
|
|
5
|
-
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException,
|
|
6
|
-
import { EnableSoftwareTokenMFAException, UnsupportedOperationException, UnsupportedTokenTypeException, } from "../models/models_1";
|
|
5
|
+
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
|
|
6
|
+
import { EnableSoftwareTokenMFAException, UnauthorizedException, UnsupportedOperationException, UnsupportedTokenTypeException, } from "../models/models_1";
|
|
7
7
|
export const se_AddCustomAttributesCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("AddCustomAttributes");
|
|
9
9
|
let body;
|
|
@@ -38,7 +38,7 @@ declare const AdminCreateUserCommand_base: {
|
|
|
38
38
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
39
39
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
40
40
|
* in.</p>
|
|
41
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
41
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
42
42
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
43
43
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
44
44
|
* mode</a>
|
|
@@ -36,7 +36,7 @@ declare const AdminInitiateAuthCommand_base: {
|
|
|
36
36
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
37
37
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
38
38
|
* in.</p>
|
|
39
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
39
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
40
40
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
41
41
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
42
42
|
* mode</a>
|
|
@@ -39,7 +39,7 @@ declare const AdminResetUserPasswordCommand_base: {
|
|
|
39
39
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
40
40
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
41
41
|
* in.</p>
|
|
42
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
42
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
43
43
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
44
44
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
45
45
|
* mode</a>
|
|
@@ -42,7 +42,7 @@ declare const AdminRespondToAuthChallengeCommand_base: {
|
|
|
42
42
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
43
43
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
44
44
|
* in.</p>
|
|
45
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
45
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
46
46
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
47
47
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
48
48
|
* mode</a>
|
|
@@ -35,7 +35,7 @@ declare const AdminUpdateUserAttributesCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -35,7 +35,7 @@ declare const CreateUserPoolCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -188,6 +188,9 @@ declare const CreateUserPoolCommand_base: {
|
|
|
188
188
|
* ],
|
|
189
189
|
* UserPoolAddOns: { // UserPoolAddOnsType
|
|
190
190
|
* AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
|
|
191
|
+
* AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
|
|
192
|
+
* CustomAuthMode: "AUDIT" || "ENFORCED",
|
|
193
|
+
* },
|
|
191
194
|
* },
|
|
192
195
|
* UsernameConfiguration: { // UsernameConfigurationType
|
|
193
196
|
* CaseSensitive: true || false, // required
|
|
@@ -326,6 +329,9 @@ declare const CreateUserPoolCommand_base: {
|
|
|
326
329
|
* // },
|
|
327
330
|
* // UserPoolAddOns: { // UserPoolAddOnsType
|
|
328
331
|
* // AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
|
|
332
|
+
* // AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
|
|
333
|
+
* // CustomAuthMode: "AUDIT" || "ENFORCED",
|
|
334
|
+
* // },
|
|
329
335
|
* // },
|
|
330
336
|
* // UsernameConfiguration: { // UsernameConfigurationType
|
|
331
337
|
* // CaseSensitive: true || false, // required
|
|
@@ -182,6 +182,9 @@ declare const DescribeUserPoolCommand_base: {
|
|
|
182
182
|
* // },
|
|
183
183
|
* // UserPoolAddOns: { // UserPoolAddOnsType
|
|
184
184
|
* // AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
|
|
185
|
+
* // AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
|
|
186
|
+
* // CustomAuthMode: "AUDIT" || "ENFORCED",
|
|
187
|
+
* // },
|
|
185
188
|
* // },
|
|
186
189
|
* // UsernameConfiguration: { // UsernameConfigurationType
|
|
187
190
|
* // CaseSensitive: true || false, // required
|
|
@@ -53,7 +53,7 @@ declare const ForgotPasswordCommand_base: {
|
|
|
53
53
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
54
54
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
55
55
|
* in.</p>
|
|
56
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
56
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
57
57
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
58
58
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
59
59
|
* mode</a>
|
|
@@ -45,7 +45,7 @@ declare const GetUserAttributeVerificationCodeCommand_base: {
|
|
|
45
45
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
46
46
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
47
47
|
* in.</p>
|
|
48
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
48
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
49
49
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
50
50
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
51
51
|
* mode</a>
|
|
@@ -43,7 +43,7 @@ declare const InitiateAuthCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -43,7 +43,7 @@ declare const ResendConfirmationCodeCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -48,7 +48,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
48
48
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
49
49
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
50
50
|
* in.</p>
|
|
51
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
51
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
52
52
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
53
53
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
54
54
|
* mode</a>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
-
import { RevokeTokenRequest
|
|
4
|
+
import { RevokeTokenRequest } from "../models/models_0";
|
|
5
|
+
import { RevokeTokenResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -36,7 +36,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
36
36
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
37
37
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
38
38
|
* in.</p>
|
|
39
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
39
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
40
40
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
41
41
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
42
42
|
* mode</a>
|
|
@@ -43,7 +43,7 @@ declare const SignUpCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -47,7 +47,7 @@ declare const UpdateUserAttributesCommand_base: {
|
|
|
47
47
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
48
48
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
49
49
|
* in.</p>
|
|
50
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
50
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
51
51
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
52
52
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
53
53
|
* mode</a>
|
|
@@ -35,7 +35,7 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -165,6 +165,9 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
165
165
|
* },
|
|
166
166
|
* UserPoolAddOns: { // UserPoolAddOnsType
|
|
167
167
|
* AdvancedSecurityMode: "OFF" || "AUDIT" || "ENFORCED", // required
|
|
168
|
+
* AdvancedSecurityAdditionalFlows: { // AdvancedSecurityAdditionalFlowsType
|
|
169
|
+
* CustomAuthMode: "AUDIT" || "ENFORCED",
|
|
170
|
+
* },
|
|
168
171
|
* },
|
|
169
172
|
* AccountRecoverySetting: { // AccountRecoverySettingType
|
|
170
173
|
* RecoveryMechanisms: [ // RecoveryMechanismsType
|
|
@@ -3143,6 +3143,34 @@ export interface AdminUserGlobalSignOutRequest {
|
|
|
3143
3143
|
*/
|
|
3144
3144
|
export interface AdminUserGlobalSignOutResponse {
|
|
3145
3145
|
}
|
|
3146
|
+
/**
|
|
3147
|
+
* @public
|
|
3148
|
+
* @enum
|
|
3149
|
+
*/
|
|
3150
|
+
export declare const AdvancedSecurityEnabledModeType: {
|
|
3151
|
+
readonly AUDIT: "AUDIT";
|
|
3152
|
+
readonly ENFORCED: "ENFORCED";
|
|
3153
|
+
};
|
|
3154
|
+
/**
|
|
3155
|
+
* @public
|
|
3156
|
+
*/
|
|
3157
|
+
export type AdvancedSecurityEnabledModeType = (typeof AdvancedSecurityEnabledModeType)[keyof typeof AdvancedSecurityEnabledModeType];
|
|
3158
|
+
/**
|
|
3159
|
+
* <p>Advanced security configuration options for additional authentication types in your
|
|
3160
|
+
* user pool, including custom
|
|
3161
|
+
* authentication. </p>
|
|
3162
|
+
* @public
|
|
3163
|
+
*/
|
|
3164
|
+
export interface AdvancedSecurityAdditionalFlowsType {
|
|
3165
|
+
/**
|
|
3166
|
+
* <p>The operating mode of advanced security features in custom authentication with
|
|
3167
|
+
* <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html">
|
|
3168
|
+
* Custom authentication challenge Lambda triggers</a>.
|
|
3169
|
+
* </p>
|
|
3170
|
+
* @public
|
|
3171
|
+
*/
|
|
3172
|
+
CustomAuthMode?: AdvancedSecurityEnabledModeType;
|
|
3173
|
+
}
|
|
3146
3174
|
/**
|
|
3147
3175
|
* @public
|
|
3148
3176
|
* @enum
|
|
@@ -4816,10 +4844,20 @@ export interface UsernameConfigurationType {
|
|
|
4816
4844
|
*/
|
|
4817
4845
|
export interface UserPoolAddOnsType {
|
|
4818
4846
|
/**
|
|
4819
|
-
* <p>The operating mode of advanced security features
|
|
4847
|
+
* <p>The operating mode of advanced security features for standard authentication types
|
|
4848
|
+
* in your user pool, including username-password and secure remote password (SRP)
|
|
4849
|
+
* authentication.
|
|
4850
|
+
* </p>
|
|
4820
4851
|
* @public
|
|
4821
4852
|
*/
|
|
4822
4853
|
AdvancedSecurityMode: AdvancedSecurityModeType | undefined;
|
|
4854
|
+
/**
|
|
4855
|
+
* <p>Advanced security configuration options for additional authentication types in your
|
|
4856
|
+
* user pool, including custom
|
|
4857
|
+
* authentication. </p>
|
|
4858
|
+
* @public
|
|
4859
|
+
*/
|
|
4860
|
+
AdvancedSecurityAdditionalFlows?: AdvancedSecurityAdditionalFlowsType;
|
|
4823
4861
|
}
|
|
4824
4862
|
/**
|
|
4825
4863
|
* @public
|
|
@@ -8589,24 +8627,6 @@ export interface RevokeTokenRequest {
|
|
|
8589
8627
|
*/
|
|
8590
8628
|
ClientSecret?: string;
|
|
8591
8629
|
}
|
|
8592
|
-
/**
|
|
8593
|
-
* @public
|
|
8594
|
-
*/
|
|
8595
|
-
export interface RevokeTokenResponse {
|
|
8596
|
-
}
|
|
8597
|
-
/**
|
|
8598
|
-
* <p>Exception that is thrown when the request isn't authorized. This can happen due to an
|
|
8599
|
-
* invalid access token in the request.</p>
|
|
8600
|
-
* @public
|
|
8601
|
-
*/
|
|
8602
|
-
export declare class UnauthorizedException extends __BaseException {
|
|
8603
|
-
readonly name: "UnauthorizedException";
|
|
8604
|
-
readonly $fault: "client";
|
|
8605
|
-
/**
|
|
8606
|
-
* @internal
|
|
8607
|
-
*/
|
|
8608
|
-
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
8609
|
-
}
|
|
8610
8630
|
/**
|
|
8611
8631
|
* @internal
|
|
8612
8632
|
*/
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
3
|
import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AttributeType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface RevokeTokenResponse {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Exception that is thrown when the request isn't authorized. This can happen due to an
|
|
11
|
+
* invalid access token in the request.</p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
15
|
+
readonly name: "UnauthorizedException";
|
|
16
|
+
readonly $fault: "client";
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
21
|
+
}
|
|
4
22
|
/**
|
|
5
23
|
* <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
|
|
6
24
|
* for the user pool client.</p>
|
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../CognitoIdentityProviderClient";
|
|
8
|
-
import { RevokeTokenRequest
|
|
8
|
+
import { RevokeTokenRequest } from "../models/models_0";
|
|
9
|
+
import { RevokeTokenResponse } from "../models/models_1";
|
|
9
10
|
export { __MetadataBearer };
|
|
10
11
|
export { $Command };
|
|
11
12
|
export interface RevokeTokenCommandInput extends RevokeTokenRequest {}
|
|
@@ -723,6 +723,15 @@ export interface AdminUserGlobalSignOutRequest {
|
|
|
723
723
|
Username: string | undefined;
|
|
724
724
|
}
|
|
725
725
|
export interface AdminUserGlobalSignOutResponse {}
|
|
726
|
+
export declare const AdvancedSecurityEnabledModeType: {
|
|
727
|
+
readonly AUDIT: "AUDIT";
|
|
728
|
+
readonly ENFORCED: "ENFORCED";
|
|
729
|
+
};
|
|
730
|
+
export type AdvancedSecurityEnabledModeType =
|
|
731
|
+
(typeof AdvancedSecurityEnabledModeType)[keyof typeof AdvancedSecurityEnabledModeType];
|
|
732
|
+
export interface AdvancedSecurityAdditionalFlowsType {
|
|
733
|
+
CustomAuthMode?: AdvancedSecurityEnabledModeType;
|
|
734
|
+
}
|
|
726
735
|
export declare const AdvancedSecurityModeType: {
|
|
727
736
|
readonly AUDIT: "AUDIT";
|
|
728
737
|
readonly ENFORCED: "ENFORCED";
|
|
@@ -1032,6 +1041,7 @@ export interface UsernameConfigurationType {
|
|
|
1032
1041
|
}
|
|
1033
1042
|
export interface UserPoolAddOnsType {
|
|
1034
1043
|
AdvancedSecurityMode: AdvancedSecurityModeType | undefined;
|
|
1044
|
+
AdvancedSecurityAdditionalFlows?: AdvancedSecurityAdditionalFlowsType;
|
|
1035
1045
|
}
|
|
1036
1046
|
export declare const DefaultEmailOptionType: {
|
|
1037
1047
|
readonly CONFIRM_WITH_CODE: "CONFIRM_WITH_CODE";
|
|
@@ -1674,14 +1684,6 @@ export interface RevokeTokenRequest {
|
|
|
1674
1684
|
ClientId: string | undefined;
|
|
1675
1685
|
ClientSecret?: string;
|
|
1676
1686
|
}
|
|
1677
|
-
export interface RevokeTokenResponse {}
|
|
1678
|
-
export declare class UnauthorizedException extends __BaseException {
|
|
1679
|
-
readonly name: "UnauthorizedException";
|
|
1680
|
-
readonly $fault: "client";
|
|
1681
|
-
constructor(
|
|
1682
|
-
opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
|
|
1683
|
-
);
|
|
1684
|
-
}
|
|
1685
1687
|
export declare const AdminAddUserToGroupRequestFilterSensitiveLog: (
|
|
1686
1688
|
obj: AdminAddUserToGroupRequest
|
|
1687
1689
|
) => any;
|
|
@@ -45,6 +45,14 @@ import {
|
|
|
45
45
|
VerificationMessageTemplateType,
|
|
46
46
|
VerifiedAttributeType,
|
|
47
47
|
} from "./models_0";
|
|
48
|
+
export interface RevokeTokenResponse {}
|
|
49
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
50
|
+
readonly name: "UnauthorizedException";
|
|
51
|
+
readonly $fault: "client";
|
|
52
|
+
constructor(
|
|
53
|
+
opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
48
56
|
export declare class UnsupportedOperationException extends __BaseException {
|
|
49
57
|
readonly name: "UnsupportedOperationException";
|
|
50
58
|
readonly $fault: "client";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity-provider",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.628.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cognito-identity-provider",
|