@aws-sdk/client-cognito-identity-provider 3.787.0 → 3.794.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +124 -32
- package/dist-es/CognitoIdentityProvider.js +2 -0
- package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +23 -0
- package/dist-es/commands/GetUserAuthFactorsCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +40 -8
- package/dist-es/models/models_1.js +8 -12
- package/dist-es/protocols/Aws_json1_1.js +37 -5
- package/dist-types/CognitoIdentityProvider.d.ts +7 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +3 -2
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +4 -0
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +12 -0
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +4 -0
- package/dist-types/commands/DeleteUserPoolDomainCommand.d.ts +4 -0
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +4 -0
- package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +132 -0
- package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +1 -1
- package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +1 -2
- package/dist-types/commands/InitiateAuthCommand.d.ts +4 -0
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +12 -0
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +198 -149
- package/dist-types/models/models_1.d.ts +127 -14
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +17 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +41 -29
- package/dist-types/ts3.4/models/models_1.d.ts +32 -10
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -776,6 +776,14 @@ GetSigningCertificate
|
|
|
776
776
|
|
|
777
777
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/GetSigningCertificateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/GetSigningCertificateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/GetSigningCertificateCommandOutput/)
|
|
778
778
|
|
|
779
|
+
</details>
|
|
780
|
+
<details>
|
|
781
|
+
<summary>
|
|
782
|
+
GetTokensFromRefreshToken
|
|
783
|
+
</summary>
|
|
784
|
+
|
|
785
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/GetTokensFromRefreshTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/GetTokensFromRefreshTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/GetTokensFromRefreshTokenCommandOutput/)
|
|
786
|
+
|
|
779
787
|
</details>
|
|
780
788
|
<details>
|
|
781
789
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -171,6 +171,7 @@ __export(index_exports, {
|
|
|
171
171
|
EventType: () => EventType,
|
|
172
172
|
ExpiredCodeException: () => ExpiredCodeException,
|
|
173
173
|
ExplicitAuthFlowsType: () => ExplicitAuthFlowsType,
|
|
174
|
+
FeatureType: () => FeatureType,
|
|
174
175
|
FeatureUnavailableInTierException: () => FeatureUnavailableInTierException,
|
|
175
176
|
FeedbackValueType: () => FeedbackValueType,
|
|
176
177
|
ForbiddenException: () => ForbiddenException,
|
|
@@ -186,6 +187,9 @@ __export(index_exports, {
|
|
|
186
187
|
GetIdentityProviderByIdentifierCommand: () => GetIdentityProviderByIdentifierCommand,
|
|
187
188
|
GetLogDeliveryConfigurationCommand: () => GetLogDeliveryConfigurationCommand,
|
|
188
189
|
GetSigningCertificateCommand: () => GetSigningCertificateCommand,
|
|
190
|
+
GetTokensFromRefreshTokenCommand: () => GetTokensFromRefreshTokenCommand,
|
|
191
|
+
GetTokensFromRefreshTokenRequestFilterSensitiveLog: () => GetTokensFromRefreshTokenRequestFilterSensitiveLog,
|
|
192
|
+
GetTokensFromRefreshTokenResponseFilterSensitiveLog: () => GetTokensFromRefreshTokenResponseFilterSensitiveLog,
|
|
189
193
|
GetUICustomizationCommand: () => GetUICustomizationCommand,
|
|
190
194
|
GetUICustomizationRequestFilterSensitiveLog: () => GetUICustomizationRequestFilterSensitiveLog,
|
|
191
195
|
GetUICustomizationResponseFilterSensitiveLog: () => GetUICustomizationResponseFilterSensitiveLog,
|
|
@@ -244,6 +248,7 @@ __export(index_exports, {
|
|
|
244
248
|
PreconditionNotMetException: () => PreconditionNotMetException,
|
|
245
249
|
PreventUserExistenceErrorTypes: () => PreventUserExistenceErrorTypes,
|
|
246
250
|
RecoveryOptionNameType: () => RecoveryOptionNameType,
|
|
251
|
+
RefreshTokenReuseException: () => RefreshTokenReuseException,
|
|
247
252
|
ResendConfirmationCodeCommand: () => ResendConfirmationCodeCommand,
|
|
248
253
|
ResendConfirmationCodeRequestFilterSensitiveLog: () => ResendConfirmationCodeRequestFilterSensitiveLog,
|
|
249
254
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
@@ -1021,6 +1026,24 @@ var PasswordResetRequiredException = class _PasswordResetRequiredException exten
|
|
|
1021
1026
|
Object.setPrototypeOf(this, _PasswordResetRequiredException.prototype);
|
|
1022
1027
|
}
|
|
1023
1028
|
};
|
|
1029
|
+
var UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
|
|
1030
|
+
static {
|
|
1031
|
+
__name(this, "UnsupportedOperationException");
|
|
1032
|
+
}
|
|
1033
|
+
name = "UnsupportedOperationException";
|
|
1034
|
+
$fault = "client";
|
|
1035
|
+
/**
|
|
1036
|
+
* @internal
|
|
1037
|
+
*/
|
|
1038
|
+
constructor(opts) {
|
|
1039
|
+
super({
|
|
1040
|
+
name: "UnsupportedOperationException",
|
|
1041
|
+
$fault: "client",
|
|
1042
|
+
...opts
|
|
1043
|
+
});
|
|
1044
|
+
Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1024
1047
|
var UserNotConfirmedException = class _UserNotConfirmedException extends CognitoIdentityProviderServiceException {
|
|
1025
1048
|
static {
|
|
1026
1049
|
__name(this, "UserNotConfirmedException");
|
|
@@ -1569,6 +1592,10 @@ var PreventUserExistenceErrorTypes = {
|
|
|
1569
1592
|
ENABLED: "ENABLED",
|
|
1570
1593
|
LEGACY: "LEGACY"
|
|
1571
1594
|
};
|
|
1595
|
+
var FeatureType = {
|
|
1596
|
+
DISABLED: "DISABLED",
|
|
1597
|
+
ENABLED: "ENABLED"
|
|
1598
|
+
};
|
|
1572
1599
|
var TimeUnitsType = {
|
|
1573
1600
|
DAYS: "days",
|
|
1574
1601
|
HOURS: "hours",
|
|
@@ -1653,6 +1680,24 @@ var LogLevel = {
|
|
|
1653
1680
|
ERROR: "ERROR",
|
|
1654
1681
|
INFO: "INFO"
|
|
1655
1682
|
};
|
|
1683
|
+
var RefreshTokenReuseException = class _RefreshTokenReuseException extends CognitoIdentityProviderServiceException {
|
|
1684
|
+
static {
|
|
1685
|
+
__name(this, "RefreshTokenReuseException");
|
|
1686
|
+
}
|
|
1687
|
+
name = "RefreshTokenReuseException";
|
|
1688
|
+
$fault = "client";
|
|
1689
|
+
/**
|
|
1690
|
+
* @internal
|
|
1691
|
+
*/
|
|
1692
|
+
constructor(opts) {
|
|
1693
|
+
super({
|
|
1694
|
+
name: "RefreshTokenReuseException",
|
|
1695
|
+
$fault: "client",
|
|
1696
|
+
...opts
|
|
1697
|
+
});
|
|
1698
|
+
Object.setPrototypeOf(this, _RefreshTokenReuseException.prototype);
|
|
1699
|
+
}
|
|
1700
|
+
};
|
|
1656
1701
|
var AdminAddUserToGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1657
1702
|
...obj,
|
|
1658
1703
|
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1936,6 +1981,18 @@ var GetDeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1936
1981
|
...obj,
|
|
1937
1982
|
...obj.Device && { Device: DeviceTypeFilterSensitiveLog(obj.Device) }
|
|
1938
1983
|
}), "GetDeviceResponseFilterSensitiveLog");
|
|
1984
|
+
var GetTokensFromRefreshTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1985
|
+
...obj,
|
|
1986
|
+
...obj.RefreshToken && { RefreshToken: import_smithy_client.SENSITIVE_STRING },
|
|
1987
|
+
...obj.ClientId && { ClientId: import_smithy_client.SENSITIVE_STRING },
|
|
1988
|
+
...obj.ClientSecret && { ClientSecret: import_smithy_client.SENSITIVE_STRING }
|
|
1989
|
+
}), "GetTokensFromRefreshTokenRequestFilterSensitiveLog");
|
|
1990
|
+
var GetTokensFromRefreshTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1991
|
+
...obj,
|
|
1992
|
+
...obj.AuthenticationResult && {
|
|
1993
|
+
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult)
|
|
1994
|
+
}
|
|
1995
|
+
}), "GetTokensFromRefreshTokenResponseFilterSensitiveLog");
|
|
1939
1996
|
var GetUICustomizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1940
1997
|
...obj,
|
|
1941
1998
|
...obj.ClientId && { ClientId: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1963,14 +2020,6 @@ var GetUserAttributeVerificationCodeRequestFilterSensitiveLog = /* @__PURE__ */
|
|
|
1963
2020
|
...obj,
|
|
1964
2021
|
...obj.AccessToken && { AccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
1965
2022
|
}), "GetUserAttributeVerificationCodeRequestFilterSensitiveLog");
|
|
1966
|
-
var GetUserAuthFactorsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1967
|
-
...obj,
|
|
1968
|
-
...obj.AccessToken && { AccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
1969
|
-
}), "GetUserAuthFactorsRequestFilterSensitiveLog");
|
|
1970
|
-
var GetUserAuthFactorsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1971
|
-
...obj,
|
|
1972
|
-
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
|
|
1973
|
-
}), "GetUserAuthFactorsResponseFilterSensitiveLog");
|
|
1974
2023
|
|
|
1975
2024
|
// src/models/models_1.ts
|
|
1976
2025
|
|
|
@@ -1996,24 +2045,6 @@ var UnauthorizedException = class _UnauthorizedException extends CognitoIdentity
|
|
|
1996
2045
|
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
1997
2046
|
}
|
|
1998
2047
|
};
|
|
1999
|
-
var UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
|
|
2000
|
-
static {
|
|
2001
|
-
__name(this, "UnsupportedOperationException");
|
|
2002
|
-
}
|
|
2003
|
-
name = "UnsupportedOperationException";
|
|
2004
|
-
$fault = "client";
|
|
2005
|
-
/**
|
|
2006
|
-
* @internal
|
|
2007
|
-
*/
|
|
2008
|
-
constructor(opts) {
|
|
2009
|
-
super({
|
|
2010
|
-
name: "UnsupportedOperationException",
|
|
2011
|
-
$fault: "client",
|
|
2012
|
-
...opts
|
|
2013
|
-
});
|
|
2014
|
-
Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
|
|
2015
|
-
}
|
|
2016
|
-
};
|
|
2017
2048
|
var UnsupportedTokenTypeException = class _UnsupportedTokenTypeException extends CognitoIdentityProviderServiceException {
|
|
2018
2049
|
static {
|
|
2019
2050
|
__name(this, "UnsupportedTokenTypeException");
|
|
@@ -2072,6 +2103,14 @@ var VerifySoftwareTokenResponseType = {
|
|
|
2072
2103
|
ERROR: "ERROR",
|
|
2073
2104
|
SUCCESS: "SUCCESS"
|
|
2074
2105
|
};
|
|
2106
|
+
var GetUserAuthFactorsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2107
|
+
...obj,
|
|
2108
|
+
...obj.AccessToken && { AccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
2109
|
+
}), "GetUserAuthFactorsRequestFilterSensitiveLog");
|
|
2110
|
+
var GetUserAuthFactorsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2111
|
+
...obj,
|
|
2112
|
+
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
|
|
2113
|
+
}), "GetUserAuthFactorsResponseFilterSensitiveLog");
|
|
2075
2114
|
var GlobalSignOutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2076
2115
|
...obj,
|
|
2077
2116
|
...obj.AccessToken && { AccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -2640,6 +2679,12 @@ var se_GetSigningCertificateCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
2640
2679
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2641
2680
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2642
2681
|
}, "se_GetSigningCertificateCommand");
|
|
2682
|
+
var se_GetTokensFromRefreshTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2683
|
+
const headers = sharedHeaders("GetTokensFromRefreshToken");
|
|
2684
|
+
let body;
|
|
2685
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2686
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2687
|
+
}, "se_GetTokensFromRefreshTokenCommand");
|
|
2643
2688
|
var se_GetUICustomizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2644
2689
|
const headers = sharedHeaders("GetUICustomization");
|
|
2645
2690
|
let body;
|
|
@@ -3758,6 +3803,19 @@ var de_GetSigningCertificateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3758
3803
|
};
|
|
3759
3804
|
return response;
|
|
3760
3805
|
}, "de_GetSigningCertificateCommand");
|
|
3806
|
+
var de_GetTokensFromRefreshTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3807
|
+
if (output.statusCode >= 300) {
|
|
3808
|
+
return de_CommandError(output, context);
|
|
3809
|
+
}
|
|
3810
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3811
|
+
let contents = {};
|
|
3812
|
+
contents = (0, import_smithy_client._json)(data);
|
|
3813
|
+
const response = {
|
|
3814
|
+
$metadata: deserializeMetadata(output),
|
|
3815
|
+
...contents
|
|
3816
|
+
};
|
|
3817
|
+
return response;
|
|
3818
|
+
}, "de_GetTokensFromRefreshTokenCommand");
|
|
3761
3819
|
var de_GetUICustomizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3762
3820
|
if (output.statusCode >= 300) {
|
|
3763
3821
|
return de_CommandError(output, context);
|
|
@@ -4422,6 +4480,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4422
4480
|
case "PasswordResetRequiredException":
|
|
4423
4481
|
case "com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":
|
|
4424
4482
|
throw await de_PasswordResetRequiredExceptionRes(parsedOutput, context);
|
|
4483
|
+
case "UnsupportedOperationException":
|
|
4484
|
+
case "com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":
|
|
4485
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4425
4486
|
case "UserNotConfirmedException":
|
|
4426
4487
|
case "com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":
|
|
4427
4488
|
throw await de_UserNotConfirmedExceptionRes(parsedOutput, context);
|
|
@@ -4494,12 +4555,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4494
4555
|
case "UnsupportedIdentityProviderException":
|
|
4495
4556
|
case "com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":
|
|
4496
4557
|
throw await de_UnsupportedIdentityProviderExceptionRes(parsedOutput, context);
|
|
4558
|
+
case "RefreshTokenReuseException":
|
|
4559
|
+
case "com.amazonaws.cognitoidentityprovider#RefreshTokenReuseException":
|
|
4560
|
+
throw await de_RefreshTokenReuseExceptionRes(parsedOutput, context);
|
|
4497
4561
|
case "UnauthorizedException":
|
|
4498
4562
|
case "com.amazonaws.cognitoidentityprovider#UnauthorizedException":
|
|
4499
4563
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4500
|
-
case "UnsupportedOperationException":
|
|
4501
|
-
case "com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":
|
|
4502
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4503
4564
|
case "UnsupportedTokenTypeException":
|
|
4504
4565
|
case "com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":
|
|
4505
4566
|
throw await de_UnsupportedTokenTypeExceptionRes(parsedOutput, context);
|
|
@@ -4761,6 +4822,15 @@ var de_PreconditionNotMetExceptionRes = /* @__PURE__ */ __name(async (parsedOutp
|
|
|
4761
4822
|
});
|
|
4762
4823
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4763
4824
|
}, "de_PreconditionNotMetExceptionRes");
|
|
4825
|
+
var de_RefreshTokenReuseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4826
|
+
const body = parsedOutput.body;
|
|
4827
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
4828
|
+
const exception = new RefreshTokenReuseException({
|
|
4829
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4830
|
+
...deserialized
|
|
4831
|
+
});
|
|
4832
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4833
|
+
}, "de_RefreshTokenReuseExceptionRes");
|
|
4764
4834
|
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4765
4835
|
const body = parsedOutput.body;
|
|
4766
4836
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -5441,6 +5511,7 @@ var de_UserPoolClientType = /* @__PURE__ */ __name((output, context) => {
|
|
|
5441
5511
|
LogoutURLs: import_smithy_client._json,
|
|
5442
5512
|
PreventUserExistenceErrors: import_smithy_client.expectString,
|
|
5443
5513
|
ReadAttributes: import_smithy_client._json,
|
|
5514
|
+
RefreshTokenRotation: import_smithy_client._json,
|
|
5444
5515
|
RefreshTokenValidity: import_smithy_client.expectInt32,
|
|
5445
5516
|
SupportedIdentityProviders: import_smithy_client._json,
|
|
5446
5517
|
TokenValidityUnits: import_smithy_client._json,
|
|
@@ -6585,6 +6656,21 @@ var GetSigningCertificateCommand = class extends import_smithy_client.Command.cl
|
|
|
6585
6656
|
}
|
|
6586
6657
|
};
|
|
6587
6658
|
|
|
6659
|
+
// src/commands/GetTokensFromRefreshTokenCommand.ts
|
|
6660
|
+
|
|
6661
|
+
|
|
6662
|
+
|
|
6663
|
+
var GetTokensFromRefreshTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
6664
|
+
return [
|
|
6665
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
6666
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
6667
|
+
];
|
|
6668
|
+
}).s("AWSCognitoIdentityProviderService", "GetTokensFromRefreshToken", {}).n("CognitoIdentityProviderClient", "GetTokensFromRefreshTokenCommand").f(GetTokensFromRefreshTokenRequestFilterSensitiveLog, GetTokensFromRefreshTokenResponseFilterSensitiveLog).ser(se_GetTokensFromRefreshTokenCommand).de(de_GetTokensFromRefreshTokenCommand).build() {
|
|
6669
|
+
static {
|
|
6670
|
+
__name(this, "GetTokensFromRefreshTokenCommand");
|
|
6671
|
+
}
|
|
6672
|
+
};
|
|
6673
|
+
|
|
6588
6674
|
// src/commands/GetUICustomizationCommand.ts
|
|
6589
6675
|
|
|
6590
6676
|
|
|
@@ -7330,6 +7416,7 @@ var commands = {
|
|
|
7330
7416
|
GetIdentityProviderByIdentifierCommand,
|
|
7331
7417
|
GetLogDeliveryConfigurationCommand,
|
|
7332
7418
|
GetSigningCertificateCommand,
|
|
7419
|
+
GetTokensFromRefreshTokenCommand,
|
|
7333
7420
|
GetUICustomizationCommand,
|
|
7334
7421
|
GetUserCommand,
|
|
7335
7422
|
GetUserAttributeVerificationCodeCommand,
|
|
@@ -7494,6 +7581,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
7494
7581
|
GetIdentityProviderByIdentifierCommand,
|
|
7495
7582
|
GetLogDeliveryConfigurationCommand,
|
|
7496
7583
|
GetSigningCertificateCommand,
|
|
7584
|
+
GetTokensFromRefreshTokenCommand,
|
|
7497
7585
|
GetUICustomizationCommand,
|
|
7498
7586
|
GetUserAttributeVerificationCodeCommand,
|
|
7499
7587
|
GetUserAuthFactorsCommand,
|
|
@@ -7580,6 +7668,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
7580
7668
|
InvalidEmailRoleAccessPolicyException,
|
|
7581
7669
|
MFAMethodNotFoundException,
|
|
7582
7670
|
PasswordResetRequiredException,
|
|
7671
|
+
UnsupportedOperationException,
|
|
7583
7672
|
UserNotConfirmedException,
|
|
7584
7673
|
ChallengeName,
|
|
7585
7674
|
ChallengeResponse,
|
|
@@ -7632,6 +7721,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
7632
7721
|
OAuthFlowType,
|
|
7633
7722
|
ExplicitAuthFlowsType,
|
|
7634
7723
|
PreventUserExistenceErrorTypes,
|
|
7724
|
+
FeatureType,
|
|
7635
7725
|
TimeUnitsType,
|
|
7636
7726
|
InvalidOAuthFlowException,
|
|
7637
7727
|
ScopeDoesNotExistException,
|
|
@@ -7641,6 +7731,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
7641
7731
|
DomainStatusType,
|
|
7642
7732
|
EventSourceName,
|
|
7643
7733
|
LogLevel,
|
|
7734
|
+
RefreshTokenReuseException,
|
|
7644
7735
|
AdminAddUserToGroupRequestFilterSensitiveLog,
|
|
7645
7736
|
AdminConfirmSignUpRequestFilterSensitiveLog,
|
|
7646
7737
|
AttributeTypeFilterSensitiveLog,
|
|
@@ -7701,21 +7792,22 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
7701
7792
|
ForgotPasswordRequestFilterSensitiveLog,
|
|
7702
7793
|
GetDeviceRequestFilterSensitiveLog,
|
|
7703
7794
|
GetDeviceResponseFilterSensitiveLog,
|
|
7795
|
+
GetTokensFromRefreshTokenRequestFilterSensitiveLog,
|
|
7796
|
+
GetTokensFromRefreshTokenResponseFilterSensitiveLog,
|
|
7704
7797
|
GetUICustomizationRequestFilterSensitiveLog,
|
|
7705
7798
|
UICustomizationTypeFilterSensitiveLog,
|
|
7706
7799
|
GetUICustomizationResponseFilterSensitiveLog,
|
|
7707
7800
|
GetUserRequestFilterSensitiveLog,
|
|
7708
7801
|
GetUserResponseFilterSensitiveLog,
|
|
7709
7802
|
GetUserAttributeVerificationCodeRequestFilterSensitiveLog,
|
|
7710
|
-
GetUserAuthFactorsRequestFilterSensitiveLog,
|
|
7711
|
-
GetUserAuthFactorsResponseFilterSensitiveLog,
|
|
7712
7803
|
UserVerificationType,
|
|
7713
7804
|
UnauthorizedException,
|
|
7714
|
-
UnsupportedOperationException,
|
|
7715
7805
|
UnsupportedTokenTypeException,
|
|
7716
7806
|
WebAuthnConfigurationMissingException,
|
|
7717
7807
|
EnableSoftwareTokenMFAException,
|
|
7718
7808
|
VerifySoftwareTokenResponseType,
|
|
7809
|
+
GetUserAuthFactorsRequestFilterSensitiveLog,
|
|
7810
|
+
GetUserAuthFactorsResponseFilterSensitiveLog,
|
|
7719
7811
|
GlobalSignOutRequestFilterSensitiveLog,
|
|
7720
7812
|
InitiateAuthRequestFilterSensitiveLog,
|
|
7721
7813
|
InitiateAuthResponseFilterSensitiveLog,
|
|
@@ -68,6 +68,7 @@ import { GetGroupCommand } from "./commands/GetGroupCommand";
|
|
|
68
68
|
import { GetIdentityProviderByIdentifierCommand, } from "./commands/GetIdentityProviderByIdentifierCommand";
|
|
69
69
|
import { GetLogDeliveryConfigurationCommand, } from "./commands/GetLogDeliveryConfigurationCommand";
|
|
70
70
|
import { GetSigningCertificateCommand, } from "./commands/GetSigningCertificateCommand";
|
|
71
|
+
import { GetTokensFromRefreshTokenCommand, } from "./commands/GetTokensFromRefreshTokenCommand";
|
|
71
72
|
import { GetUICustomizationCommand, } from "./commands/GetUICustomizationCommand";
|
|
72
73
|
import { GetUserAttributeVerificationCodeCommand, } from "./commands/GetUserAttributeVerificationCodeCommand";
|
|
73
74
|
import { GetUserAuthFactorsCommand, } from "./commands/GetUserAuthFactorsCommand";
|
|
@@ -182,6 +183,7 @@ const commands = {
|
|
|
182
183
|
GetIdentityProviderByIdentifierCommand,
|
|
183
184
|
GetLogDeliveryConfigurationCommand,
|
|
184
185
|
GetSigningCertificateCommand,
|
|
186
|
+
GetTokensFromRefreshTokenCommand,
|
|
185
187
|
GetUICustomizationCommand,
|
|
186
188
|
GetUserCommand,
|
|
187
189
|
GetUserAttributeVerificationCodeCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetTokensFromRefreshTokenRequestFilterSensitiveLog, GetTokensFromRefreshTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GetTokensFromRefreshTokenCommand, se_GetTokensFromRefreshTokenCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GetTokensFromRefreshTokenCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AWSCognitoIdentityProviderService", "GetTokensFromRefreshToken", {})
|
|
18
|
+
.n("CognitoIdentityProviderClient", "GetTokensFromRefreshTokenCommand")
|
|
19
|
+
.f(GetTokensFromRefreshTokenRequestFilterSensitiveLog, GetTokensFromRefreshTokenResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_GetTokensFromRefreshTokenCommand)
|
|
21
|
+
.de(de_GetTokensFromRefreshTokenCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { GetUserAuthFactorsRequestFilterSensitiveLog, GetUserAuthFactorsResponseFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { GetUserAuthFactorsRequestFilterSensitiveLog, GetUserAuthFactorsResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_GetUserAuthFactorsCommand, se_GetUserAuthFactorsCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class GetUserAuthFactorsCommand extends $Command
|
|
@@ -66,6 +66,7 @@ export * from "./GetGroupCommand";
|
|
|
66
66
|
export * from "./GetIdentityProviderByIdentifierCommand";
|
|
67
67
|
export * from "./GetLogDeliveryConfigurationCommand";
|
|
68
68
|
export * from "./GetSigningCertificateCommand";
|
|
69
|
+
export * from "./GetTokensFromRefreshTokenCommand";
|
|
69
70
|
export * from "./GetUICustomizationCommand";
|
|
70
71
|
export * from "./GetUserAttributeVerificationCodeCommand";
|
|
71
72
|
export * from "./GetUserAuthFactorsCommand";
|
|
@@ -353,6 +353,18 @@ export class PasswordResetRequiredException extends __BaseException {
|
|
|
353
353
|
Object.setPrototypeOf(this, PasswordResetRequiredException.prototype);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
+
export class UnsupportedOperationException extends __BaseException {
|
|
357
|
+
name = "UnsupportedOperationException";
|
|
358
|
+
$fault = "client";
|
|
359
|
+
constructor(opts) {
|
|
360
|
+
super({
|
|
361
|
+
name: "UnsupportedOperationException",
|
|
362
|
+
$fault: "client",
|
|
363
|
+
...opts,
|
|
364
|
+
});
|
|
365
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
356
368
|
export class UserNotConfirmedException extends __BaseException {
|
|
357
369
|
name = "UserNotConfirmedException";
|
|
358
370
|
$fault = "client";
|
|
@@ -775,6 +787,10 @@ export const PreventUserExistenceErrorTypes = {
|
|
|
775
787
|
ENABLED: "ENABLED",
|
|
776
788
|
LEGACY: "LEGACY",
|
|
777
789
|
};
|
|
790
|
+
export const FeatureType = {
|
|
791
|
+
DISABLED: "DISABLED",
|
|
792
|
+
ENABLED: "ENABLED",
|
|
793
|
+
};
|
|
778
794
|
export const TimeUnitsType = {
|
|
779
795
|
DAYS: "days",
|
|
780
796
|
HOURS: "hours",
|
|
@@ -841,6 +857,18 @@ export const LogLevel = {
|
|
|
841
857
|
ERROR: "ERROR",
|
|
842
858
|
INFO: "INFO",
|
|
843
859
|
};
|
|
860
|
+
export class RefreshTokenReuseException extends __BaseException {
|
|
861
|
+
name = "RefreshTokenReuseException";
|
|
862
|
+
$fault = "client";
|
|
863
|
+
constructor(opts) {
|
|
864
|
+
super({
|
|
865
|
+
name: "RefreshTokenReuseException",
|
|
866
|
+
$fault: "client",
|
|
867
|
+
...opts,
|
|
868
|
+
});
|
|
869
|
+
Object.setPrototypeOf(this, RefreshTokenReuseException.prototype);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
844
872
|
export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
|
|
845
873
|
...obj,
|
|
846
874
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
@@ -1124,6 +1152,18 @@ export const GetDeviceResponseFilterSensitiveLog = (obj) => ({
|
|
|
1124
1152
|
...obj,
|
|
1125
1153
|
...(obj.Device && { Device: DeviceTypeFilterSensitiveLog(obj.Device) }),
|
|
1126
1154
|
});
|
|
1155
|
+
export const GetTokensFromRefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
1156
|
+
...obj,
|
|
1157
|
+
...(obj.RefreshToken && { RefreshToken: SENSITIVE_STRING }),
|
|
1158
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1159
|
+
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
1160
|
+
});
|
|
1161
|
+
export const GetTokensFromRefreshTokenResponseFilterSensitiveLog = (obj) => ({
|
|
1162
|
+
...obj,
|
|
1163
|
+
...(obj.AuthenticationResult && {
|
|
1164
|
+
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
1165
|
+
}),
|
|
1166
|
+
});
|
|
1127
1167
|
export const GetUICustomizationRequestFilterSensitiveLog = (obj) => ({
|
|
1128
1168
|
...obj,
|
|
1129
1169
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -1151,11 +1191,3 @@ export const GetUserAttributeVerificationCodeRequestFilterSensitiveLog = (obj) =
|
|
|
1151
1191
|
...obj,
|
|
1152
1192
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1153
1193
|
});
|
|
1154
|
-
export const GetUserAuthFactorsRequestFilterSensitiveLog = (obj) => ({
|
|
1155
|
-
...obj,
|
|
1156
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1157
|
-
});
|
|
1158
|
-
export const GetUserAuthFactorsResponseFilterSensitiveLog = (obj) => ({
|
|
1159
|
-
...obj,
|
|
1160
|
-
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
1161
|
-
});
|
|
@@ -17,18 +17,6 @@ export class UnauthorizedException extends __BaseException {
|
|
|
17
17
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
export class UnsupportedOperationException extends __BaseException {
|
|
21
|
-
name = "UnsupportedOperationException";
|
|
22
|
-
$fault = "client";
|
|
23
|
-
constructor(opts) {
|
|
24
|
-
super({
|
|
25
|
-
name: "UnsupportedOperationException",
|
|
26
|
-
$fault: "client",
|
|
27
|
-
...opts,
|
|
28
|
-
});
|
|
29
|
-
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
20
|
export class UnsupportedTokenTypeException extends __BaseException {
|
|
33
21
|
name = "UnsupportedTokenTypeException";
|
|
34
22
|
$fault = "client";
|
|
@@ -69,6 +57,14 @@ export const VerifySoftwareTokenResponseType = {
|
|
|
69
57
|
ERROR: "ERROR",
|
|
70
58
|
SUCCESS: "SUCCESS",
|
|
71
59
|
};
|
|
60
|
+
export const GetUserAuthFactorsRequestFilterSensitiveLog = (obj) => ({
|
|
61
|
+
...obj,
|
|
62
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
63
|
+
});
|
|
64
|
+
export const GetUserAuthFactorsResponseFilterSensitiveLog = (obj) => ({
|
|
65
|
+
...obj,
|
|
66
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
67
|
+
});
|
|
72
68
|
export const GlobalSignOutRequestFilterSensitiveLog = (obj) => ({
|
|
73
69
|
...obj,
|
|
74
70
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
@@ -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, DeviceKeyExistsException, DuplicateProviderException, ExpiredCodeException, FeatureUnavailableInTierException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, ManagedLoginBrandingExistsException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TierChangeNotAllowedException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, WebAuthnChallengeNotFoundException, WebAuthnClientMismatchException, WebAuthnCredentialNotSupportedException, WebAuthnNotEnabledException, WebAuthnOriginNotAllowedException, WebAuthnRelyingPartyMismatchException, } from "../models/models_0";
|
|
6
|
-
import { EnableSoftwareTokenMFAException, UnauthorizedException,
|
|
5
|
+
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DeviceKeyExistsException, DuplicateProviderException, ExpiredCodeException, FeatureUnavailableInTierException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, ManagedLoginBrandingExistsException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, RefreshTokenReuseException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TierChangeNotAllowedException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedOperationException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, WebAuthnChallengeNotFoundException, WebAuthnClientMismatchException, WebAuthnCredentialNotSupportedException, WebAuthnNotEnabledException, WebAuthnOriginNotAllowedException, WebAuthnRelyingPartyMismatchException, } from "../models/models_0";
|
|
6
|
+
import { EnableSoftwareTokenMFAException, UnauthorizedException, UnsupportedTokenTypeException, WebAuthnConfigurationMissingException, } from "../models/models_1";
|
|
7
7
|
export const se_AddCustomAttributesCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("AddCustomAttributes");
|
|
9
9
|
let body;
|
|
@@ -412,6 +412,12 @@ export const se_GetSigningCertificateCommand = async (input, context) => {
|
|
|
412
412
|
body = JSON.stringify(_json(input));
|
|
413
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
414
|
};
|
|
415
|
+
export const se_GetTokensFromRefreshTokenCommand = async (input, context) => {
|
|
416
|
+
const headers = sharedHeaders("GetTokensFromRefreshToken");
|
|
417
|
+
let body;
|
|
418
|
+
body = JSON.stringify(_json(input));
|
|
419
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
|
+
};
|
|
415
421
|
export const se_GetUICustomizationCommand = async (input, context) => {
|
|
416
422
|
const headers = sharedHeaders("GetUICustomization");
|
|
417
423
|
let body;
|
|
@@ -1530,6 +1536,19 @@ export const de_GetSigningCertificateCommand = async (output, context) => {
|
|
|
1530
1536
|
};
|
|
1531
1537
|
return response;
|
|
1532
1538
|
};
|
|
1539
|
+
export const de_GetTokensFromRefreshTokenCommand = async (output, context) => {
|
|
1540
|
+
if (output.statusCode >= 300) {
|
|
1541
|
+
return de_CommandError(output, context);
|
|
1542
|
+
}
|
|
1543
|
+
const data = await parseBody(output.body, context);
|
|
1544
|
+
let contents = {};
|
|
1545
|
+
contents = _json(data);
|
|
1546
|
+
const response = {
|
|
1547
|
+
$metadata: deserializeMetadata(output),
|
|
1548
|
+
...contents,
|
|
1549
|
+
};
|
|
1550
|
+
return response;
|
|
1551
|
+
};
|
|
1533
1552
|
export const de_GetUICustomizationCommand = async (output, context) => {
|
|
1534
1553
|
if (output.statusCode >= 300) {
|
|
1535
1554
|
return de_CommandError(output, context);
|
|
@@ -2194,6 +2213,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2194
2213
|
case "PasswordResetRequiredException":
|
|
2195
2214
|
case "com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":
|
|
2196
2215
|
throw await de_PasswordResetRequiredExceptionRes(parsedOutput, context);
|
|
2216
|
+
case "UnsupportedOperationException":
|
|
2217
|
+
case "com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":
|
|
2218
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2197
2219
|
case "UserNotConfirmedException":
|
|
2198
2220
|
case "com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":
|
|
2199
2221
|
throw await de_UserNotConfirmedExceptionRes(parsedOutput, context);
|
|
@@ -2266,12 +2288,12 @@ const de_CommandError = async (output, context) => {
|
|
|
2266
2288
|
case "UnsupportedIdentityProviderException":
|
|
2267
2289
|
case "com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":
|
|
2268
2290
|
throw await de_UnsupportedIdentityProviderExceptionRes(parsedOutput, context);
|
|
2291
|
+
case "RefreshTokenReuseException":
|
|
2292
|
+
case "com.amazonaws.cognitoidentityprovider#RefreshTokenReuseException":
|
|
2293
|
+
throw await de_RefreshTokenReuseExceptionRes(parsedOutput, context);
|
|
2269
2294
|
case "UnauthorizedException":
|
|
2270
2295
|
case "com.amazonaws.cognitoidentityprovider#UnauthorizedException":
|
|
2271
2296
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "UnsupportedOperationException":
|
|
2273
|
-
case "com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":
|
|
2274
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2275
2297
|
case "UnsupportedTokenTypeException":
|
|
2276
2298
|
case "com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":
|
|
2277
2299
|
throw await de_UnsupportedTokenTypeExceptionRes(parsedOutput, context);
|
|
@@ -2533,6 +2555,15 @@ const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
|
2533
2555
|
});
|
|
2534
2556
|
return __decorateServiceException(exception, body);
|
|
2535
2557
|
};
|
|
2558
|
+
const de_RefreshTokenReuseExceptionRes = async (parsedOutput, context) => {
|
|
2559
|
+
const body = parsedOutput.body;
|
|
2560
|
+
const deserialized = _json(body);
|
|
2561
|
+
const exception = new RefreshTokenReuseException({
|
|
2562
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2563
|
+
...deserialized,
|
|
2564
|
+
});
|
|
2565
|
+
return __decorateServiceException(exception, body);
|
|
2566
|
+
};
|
|
2536
2567
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2537
2568
|
const body = parsedOutput.body;
|
|
2538
2569
|
const deserialized = _json(body);
|
|
@@ -3227,6 +3258,7 @@ const de_UserPoolClientType = (output, context) => {
|
|
|
3227
3258
|
LogoutURLs: _json,
|
|
3228
3259
|
PreventUserExistenceErrors: __expectString,
|
|
3229
3260
|
ReadAttributes: _json,
|
|
3261
|
+
RefreshTokenRotation: _json,
|
|
3230
3262
|
RefreshTokenValidity: __expectInt32,
|
|
3231
3263
|
SupportedIdentityProviders: _json,
|
|
3232
3264
|
TokenValidityUnits: _json,
|
|
@@ -68,6 +68,7 @@ import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroup
|
|
|
68
68
|
import { GetIdentityProviderByIdentifierCommandInput, GetIdentityProviderByIdentifierCommandOutput } from "./commands/GetIdentityProviderByIdentifierCommand";
|
|
69
69
|
import { GetLogDeliveryConfigurationCommandInput, GetLogDeliveryConfigurationCommandOutput } from "./commands/GetLogDeliveryConfigurationCommand";
|
|
70
70
|
import { GetSigningCertificateCommandInput, GetSigningCertificateCommandOutput } from "./commands/GetSigningCertificateCommand";
|
|
71
|
+
import { GetTokensFromRefreshTokenCommandInput, GetTokensFromRefreshTokenCommandOutput } from "./commands/GetTokensFromRefreshTokenCommand";
|
|
71
72
|
import { GetUICustomizationCommandInput, GetUICustomizationCommandOutput } from "./commands/GetUICustomizationCommand";
|
|
72
73
|
import { GetUserAttributeVerificationCodeCommandInput, GetUserAttributeVerificationCodeCommandOutput } from "./commands/GetUserAttributeVerificationCodeCommand";
|
|
73
74
|
import { GetUserAuthFactorsCommandInput, GetUserAuthFactorsCommandOutput } from "./commands/GetUserAuthFactorsCommand";
|
|
@@ -523,6 +524,12 @@ export interface CognitoIdentityProvider {
|
|
|
523
524
|
getSigningCertificate(args: GetSigningCertificateCommandInput, options?: __HttpHandlerOptions): Promise<GetSigningCertificateCommandOutput>;
|
|
524
525
|
getSigningCertificate(args: GetSigningCertificateCommandInput, cb: (err: any, data?: GetSigningCertificateCommandOutput) => void): void;
|
|
525
526
|
getSigningCertificate(args: GetSigningCertificateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSigningCertificateCommandOutput) => void): void;
|
|
527
|
+
/**
|
|
528
|
+
* @see {@link GetTokensFromRefreshTokenCommand}
|
|
529
|
+
*/
|
|
530
|
+
getTokensFromRefreshToken(args: GetTokensFromRefreshTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetTokensFromRefreshTokenCommandOutput>;
|
|
531
|
+
getTokensFromRefreshToken(args: GetTokensFromRefreshTokenCommandInput, cb: (err: any, data?: GetTokensFromRefreshTokenCommandOutput) => void): void;
|
|
532
|
+
getTokensFromRefreshToken(args: GetTokensFromRefreshTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTokensFromRefreshTokenCommandOutput) => void): void;
|
|
526
533
|
/**
|
|
527
534
|
* @see {@link GetUICustomizationCommand}
|
|
528
535
|
*/
|