@aws-sdk/nested-clients 3.997.32 → 3.997.33
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/submodules/cognito-identity/index.js +11 -9
- package/dist-cjs/submodules/signin/index.js +6 -5
- package/dist-cjs/submodules/sso/index.js +6 -5
- package/dist-cjs/submodules/sso-oidc/index.js +6 -5
- package/dist-cjs/submodules/sts/index.js +1 -1
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +12 -8
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +6 -4
- package/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +7 -15
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -22
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +7 -13
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +4 -6
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -2
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -28
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +13 -30
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +12 -26
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +13 -30
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +6 -12
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +2 -4
- package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +6 -6
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +15 -25
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +8 -18
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -10
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +4 -6
- package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +1 -2
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -12
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +13 -30
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +12 -26
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +13 -30
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/sso/SSO.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +13 -20
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +10 -13
- package/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +5 -10
- package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -12
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +11 -23
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +4 -7
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +16 -29
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -5
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -34
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +11 -23
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +12 -27
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +5 -9
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +1 -5
- package/dist-types/ts3.4/submodules/sts/STS.d.ts +7 -10
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +16 -30
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +11 -16
- package/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +8 -18
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -5
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -6
- package/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +5 -7
- package/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -24
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +14 -34
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +14 -33
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +14 -34
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +6 -10
- package/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +1 -5
- package/package.json +53 -53
|
@@ -46,14 +46,16 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
46
46
|
const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
|
|
47
47
|
const options = [];
|
|
48
48
|
switch (authParameters.operation) {
|
|
49
|
-
case "GetCredentialsForIdentity":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
case "GetCredentialsForIdentity":
|
|
50
|
+
{
|
|
51
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
case "GetId":
|
|
55
|
+
{
|
|
56
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
57
59
|
default: {
|
|
58
60
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
59
61
|
}
|
|
@@ -81,7 +83,7 @@ const commonParams = {
|
|
|
81
83
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
82
84
|
};
|
|
83
85
|
|
|
84
|
-
var version = "3.997.
|
|
86
|
+
var version = "3.997.32";
|
|
85
87
|
var packageInfo = {
|
|
86
88
|
version: version};
|
|
87
89
|
|
|
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
46
46
|
const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
47
47
|
const options = [];
|
|
48
48
|
switch (authParameters.operation) {
|
|
49
|
-
case "CreateOAuth2Token":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
case "CreateOAuth2Token":
|
|
50
|
+
{
|
|
51
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
53
54
|
default: {
|
|
54
55
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
55
56
|
}
|
|
@@ -77,7 +78,7 @@ const commonParams = {
|
|
|
77
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.32";
|
|
81
82
|
var packageInfo = {
|
|
82
83
|
version: version};
|
|
83
84
|
|
|
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
46
46
|
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
47
47
|
const options = [];
|
|
48
48
|
switch (authParameters.operation) {
|
|
49
|
-
case "GetRoleCredentials":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
case "GetRoleCredentials":
|
|
50
|
+
{
|
|
51
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
53
54
|
default: {
|
|
54
55
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
55
56
|
}
|
|
@@ -77,7 +78,7 @@ const commonParams = {
|
|
|
77
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.32";
|
|
81
82
|
var packageInfo = {
|
|
82
83
|
version: version};
|
|
83
84
|
|
|
@@ -46,10 +46,11 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
46
46
|
const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
47
47
|
const options = [];
|
|
48
48
|
switch (authParameters.operation) {
|
|
49
|
-
case "CreateToken":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
case "CreateToken":
|
|
50
|
+
{
|
|
51
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
53
54
|
default: {
|
|
54
55
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
55
56
|
}
|
|
@@ -77,7 +78,7 @@ const commonParams = {
|
|
|
77
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.32";
|
|
81
82
|
var packageInfo = {
|
|
82
83
|
version: version};
|
|
83
84
|
|
|
@@ -31,14 +31,18 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
31
31
|
export const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
|
|
32
32
|
const options = [];
|
|
33
33
|
switch (authParameters.operation) {
|
|
34
|
-
case "GetCredentialsForIdentity":
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
case "GetCredentialsForIdentity":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
40
|
+
case "GetId":
|
|
41
|
+
{
|
|
42
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
;
|
|
42
46
|
default: {
|
|
43
47
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
44
48
|
}
|
|
@@ -31,10 +31,12 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
31
31
|
export const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
32
32
|
const options = [];
|
|
33
33
|
switch (authParameters.operation) {
|
|
34
|
-
case "CreateOAuth2Token":
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
case "CreateOAuth2Token":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
38
40
|
default: {
|
|
39
41
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
40
42
|
}
|
|
@@ -31,10 +31,12 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
31
31
|
export const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
32
32
|
const options = [];
|
|
33
33
|
switch (authParameters.operation) {
|
|
34
|
-
case "GetRoleCredentials":
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
case "GetRoleCredentials":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
38
40
|
default: {
|
|
39
41
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
40
42
|
}
|
|
@@ -31,10 +31,12 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
31
31
|
export const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
32
32
|
const options = [];
|
|
33
33
|
switch (authParameters.operation) {
|
|
34
|
-
case "CreateToken":
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
case "CreateToken":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
38
40
|
default: {
|
|
39
41
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
40
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers";
|
|
1
|
+
import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity, } from "./defaultStsRoleAssumers";
|
|
2
2
|
import { STSClient } from "./STSClient";
|
|
3
3
|
const getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
4
4
|
if (!customizations)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setCredentialFeature, stsRegionDefaultResolver } from "@aws-sdk/core/client";
|
|
2
2
|
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
|
3
|
-
import { AssumeRoleWithWebIdentityCommand } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
3
|
+
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
4
|
const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
5
5
|
if (typeof assumedRoleUser?.Arn === "string") {
|
|
6
6
|
const arnComponents = assumedRoleUser.Arn.split(":");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { type CognitoIdentityClientResolvedConfig } from "../CognitoIdentityClient";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { type SigninClientResolvedConfig } from "../SigninClient";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { type SSOClientResolvedConfig } from "../SSOClient";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { type SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { STSClientResolvedConfig } from "../STSClient";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Pluggable } from "@smithy/types";
|
|
2
|
+
import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity, STSRoleAssumerOptions } from "./defaultStsRoleAssumers";
|
|
3
|
+
import { ServiceInputTypes, ServiceOutputTypes } from "./STSClient";
|
|
4
4
|
/**
|
|
5
5
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { AwsCredentialIdentity, Logger, Provider } from "@smithy/types";
|
|
3
|
+
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
4
|
+
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
5
5
|
import type { STSClient, STSClientConfig } from "./STSClient";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
@@ -8,31 +8,23 @@ import { GetIdCommandInput, GetIdCommandOutput } from "./commands/GetIdCommand";
|
|
|
8
8
|
export interface CognitoIdentity {
|
|
9
9
|
getCredentialsForIdentity(
|
|
10
10
|
args: GetCredentialsForIdentityCommandInput,
|
|
11
|
-
options?: __HttpHandlerOptions
|
|
11
|
+
options?: __HttpHandlerOptions,
|
|
12
12
|
): Promise<GetCredentialsForIdentityCommandOutput>;
|
|
13
13
|
getCredentialsForIdentity(
|
|
14
14
|
args: GetCredentialsForIdentityCommandInput,
|
|
15
|
-
cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void
|
|
15
|
+
cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void,
|
|
16
16
|
): void;
|
|
17
17
|
getCredentialsForIdentity(
|
|
18
18
|
args: GetCredentialsForIdentityCommandInput,
|
|
19
19
|
options: __HttpHandlerOptions,
|
|
20
|
-
cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void
|
|
21
|
-
): void;
|
|
22
|
-
getId(
|
|
23
|
-
args: GetIdCommandInput,
|
|
24
|
-
options?: __HttpHandlerOptions
|
|
25
|
-
): Promise<GetIdCommandOutput>;
|
|
26
|
-
getId(
|
|
27
|
-
args: GetIdCommandInput,
|
|
28
|
-
cb: (err: any, data?: GetIdCommandOutput) => void
|
|
20
|
+
cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void,
|
|
29
21
|
): void;
|
|
22
|
+
getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
|
|
23
|
+
getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
30
24
|
getId(
|
|
31
25
|
args: GetIdCommandInput,
|
|
32
26
|
options: __HttpHandlerOptions,
|
|
33
|
-
cb: (err: any, data?: GetIdCommandOutput) => void
|
|
27
|
+
cb: (err: any, data?: GetIdCommandOutput) => void,
|
|
34
28
|
): void;
|
|
35
29
|
}
|
|
36
|
-
export declare class CognitoIdentity
|
|
37
|
-
extends CognitoIdentityClient
|
|
38
|
-
implements CognitoIdentity {}
|
|
30
|
+
export declare class CognitoIdentity extends CognitoIdentityClient implements CognitoIdentity {}
|
|
@@ -11,10 +11,7 @@ import {
|
|
|
11
11
|
Client as __Client,
|
|
12
12
|
} from "@smithy/core/client";
|
|
13
13
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
|
|
14
|
-
import {
|
|
15
|
-
EndpointInputConfig,
|
|
16
|
-
EndpointResolvedConfig,
|
|
17
|
-
} from "@smithy/core/endpoints";
|
|
14
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
18
15
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
19
16
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
|
|
20
17
|
import {
|
|
@@ -47,14 +44,9 @@ import {
|
|
|
47
44
|
} from "./endpoint/EndpointParameters";
|
|
48
45
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
49
46
|
export { __Client };
|
|
50
|
-
export type ServiceInputTypes =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export type ServiceOutputTypes =
|
|
54
|
-
| GetCredentialsForIdentityCommandOutput
|
|
55
|
-
| GetIdCommandOutput;
|
|
56
|
-
export interface ClientDefaults
|
|
57
|
-
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
47
|
+
export type ServiceInputTypes = GetCredentialsForIdentityCommandInput | GetIdCommandInput;
|
|
48
|
+
export type ServiceOutputTypes = GetCredentialsForIdentityCommandOutput | GetIdCommandOutput;
|
|
49
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
58
50
|
requestHandler?: __HttpHandlerUserInput;
|
|
59
51
|
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
60
52
|
urlParser?: __UrlParser;
|
|
@@ -78,9 +70,7 @@ export interface ClientDefaults
|
|
|
78
70
|
extensions?: RuntimeExtension[];
|
|
79
71
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
80
72
|
}
|
|
81
|
-
export type CognitoIdentityClientConfigType = Partial<
|
|
82
|
-
__SmithyConfiguration<__HttpHandlerOptions>
|
|
83
|
-
> &
|
|
73
|
+
export type CognitoIdentityClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
84
74
|
ClientDefaults &
|
|
85
75
|
UserAgentInputConfig &
|
|
86
76
|
RetryInputConfig &
|
|
@@ -89,8 +79,7 @@ export type CognitoIdentityClientConfigType = Partial<
|
|
|
89
79
|
EndpointInputConfig<EndpointParameters> &
|
|
90
80
|
HttpAuthSchemeInputConfig &
|
|
91
81
|
ClientInputEndpointParameters;
|
|
92
|
-
export interface CognitoIdentityClientConfig
|
|
93
|
-
extends CognitoIdentityClientConfigType {}
|
|
82
|
+
export interface CognitoIdentityClientConfig extends CognitoIdentityClientConfigType {}
|
|
94
83
|
export type CognitoIdentityClientResolvedConfigType =
|
|
95
84
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
96
85
|
Required<ClientDefaults> &
|
|
@@ -102,8 +91,7 @@ export type CognitoIdentityClientResolvedConfigType =
|
|
|
102
91
|
EndpointResolvedConfig<EndpointParameters> &
|
|
103
92
|
HttpAuthSchemeResolvedConfig &
|
|
104
93
|
ClientResolvedEndpointParameters;
|
|
105
|
-
export interface CognitoIdentityClientResolvedConfig
|
|
106
|
-
extends CognitoIdentityClientResolvedConfigType {}
|
|
94
|
+
export interface CognitoIdentityClientResolvedConfig extends CognitoIdentityClientResolvedConfigType {}
|
|
107
95
|
export declare class CognitoIdentityClient extends __Client<
|
|
108
96
|
__HttpHandlerOptions,
|
|
109
97
|
ServiceInputTypes,
|
|
@@ -111,8 +99,6 @@ export declare class CognitoIdentityClient extends __Client<
|
|
|
111
99
|
CognitoIdentityClientResolvedConfig
|
|
112
100
|
> {
|
|
113
101
|
readonly config: CognitoIdentityClientResolvedConfig;
|
|
114
|
-
constructor(
|
|
115
|
-
...[configuration]: __CheckOptionalClientConfig<CognitoIdentityClientConfig>
|
|
116
|
-
);
|
|
102
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<CognitoIdentityClientConfig>);
|
|
117
103
|
destroy(): void;
|
|
118
104
|
}
|
package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts
CHANGED
|
@@ -7,17 +7,10 @@ import { CognitoIdentityHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"
|
|
|
7
7
|
export interface HttpAuthExtensionConfiguration {
|
|
8
8
|
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
9
|
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
-
setHttpAuthSchemeProvider(
|
|
11
|
-
httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider
|
|
12
|
-
): void;
|
|
10
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider): void;
|
|
13
11
|
httpAuthSchemeProvider(): CognitoIdentityHttpAuthSchemeProvider;
|
|
14
|
-
setCredentials(
|
|
15
|
-
|
|
16
|
-
): void;
|
|
17
|
-
credentials():
|
|
18
|
-
| AwsCredentialIdentity
|
|
19
|
-
| AwsCredentialIdentityProvider
|
|
20
|
-
| undefined;
|
|
12
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
13
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
21
14
|
}
|
|
22
15
|
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
16
|
httpAuthSchemes: HttpAuthScheme[];
|
|
@@ -25,8 +18,8 @@ export type HttpAuthRuntimeConfig = Partial<{
|
|
|
25
18
|
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
19
|
}>;
|
|
27
20
|
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
-
runtimeConfig: HttpAuthRuntimeConfig
|
|
21
|
+
runtimeConfig: HttpAuthRuntimeConfig,
|
|
29
22
|
) => HttpAuthExtensionConfiguration;
|
|
30
23
|
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
-
config: HttpAuthExtensionConfiguration
|
|
24
|
+
config: HttpAuthExtensionConfiguration,
|
|
32
25
|
) => HttpAuthRuntimeConfig;
|
|
@@ -12,36 +12,32 @@ import {
|
|
|
12
12
|
Provider,
|
|
13
13
|
} from "@smithy/types";
|
|
14
14
|
import { CognitoIdentityClientResolvedConfig } from "../CognitoIdentityClient";
|
|
15
|
-
export interface CognitoIdentityHttpAuthSchemeParameters
|
|
16
|
-
extends HttpAuthSchemeParameters {
|
|
15
|
+
export interface CognitoIdentityHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
17
16
|
region?: string;
|
|
18
17
|
}
|
|
19
|
-
export interface CognitoIdentityHttpAuthSchemeParametersProvider
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
> {}
|
|
18
|
+
export interface CognitoIdentityHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<
|
|
19
|
+
CognitoIdentityClientResolvedConfig,
|
|
20
|
+
HandlerExecutionContext,
|
|
21
|
+
CognitoIdentityHttpAuthSchemeParameters,
|
|
22
|
+
object
|
|
23
|
+
> {}
|
|
26
24
|
export declare const defaultCognitoIdentityHttpAuthSchemeParametersProvider: (
|
|
27
25
|
config: CognitoIdentityClientResolvedConfig,
|
|
28
26
|
context: HandlerExecutionContext,
|
|
29
|
-
input: object
|
|
27
|
+
input: object,
|
|
30
28
|
) => Promise<CognitoIdentityHttpAuthSchemeParameters>;
|
|
31
|
-
export interface CognitoIdentityHttpAuthSchemeProvider
|
|
32
|
-
extends HttpAuthSchemeProvider<CognitoIdentityHttpAuthSchemeParameters> {}
|
|
29
|
+
export interface CognitoIdentityHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CognitoIdentityHttpAuthSchemeParameters> {}
|
|
33
30
|
export declare const defaultCognitoIdentityHttpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
|
|
34
31
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
35
32
|
authSchemePreference?: string[] | Provider<string[]>;
|
|
36
33
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
34
|
httpAuthSchemeProvider?: CognitoIdentityHttpAuthSchemeProvider;
|
|
38
35
|
}
|
|
39
|
-
export interface HttpAuthSchemeResolvedConfig
|
|
40
|
-
extends AwsSdkSigV4AuthResolvedConfig {
|
|
36
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
37
|
readonly authSchemePreference: Provider<string[]>;
|
|
42
38
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
43
39
|
readonly httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
|
|
44
40
|
}
|
|
45
41
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
46
|
-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
47
43
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -4,22 +4,21 @@ import {
|
|
|
4
4
|
ServiceInputTypes,
|
|
5
5
|
ServiceOutputTypes,
|
|
6
6
|
} from "./CognitoIdentityClient";
|
|
7
|
-
export declare const command: <
|
|
8
|
-
I extends ServiceInputTypes,
|
|
9
|
-
O extends ServiceOutputTypes
|
|
10
|
-
>(
|
|
7
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(
|
|
11
8
|
added: EndpointParameterInstructions,
|
|
12
9
|
plugins: (
|
|
13
10
|
CommandCtor: any,
|
|
14
11
|
clientStack: any,
|
|
15
12
|
config: any,
|
|
16
|
-
options: any
|
|
13
|
+
options: any,
|
|
17
14
|
) => import("@smithy/types").Pluggable<any, any>[],
|
|
18
15
|
op: string,
|
|
19
16
|
$: import("@smithy/types").StaticOperationSchema,
|
|
20
|
-
smithyContext?: Record<string, unknown
|
|
17
|
+
smithyContext?: Record<string, unknown>,
|
|
21
18
|
) => {
|
|
22
|
-
new (
|
|
19
|
+
new (
|
|
20
|
+
input: I,
|
|
21
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
22
|
I,
|
|
24
23
|
O,
|
|
25
24
|
CognitoIdentityClientResolvedConfig,
|
|
@@ -38,9 +37,4 @@ export declare const command: <
|
|
|
38
37
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
39
38
|
};
|
|
40
39
|
export declare const _ep0: EndpointParameterInstructions;
|
|
41
|
-
export declare const _mw0: (
|
|
42
|
-
Command: any,
|
|
43
|
-
cs: any,
|
|
44
|
-
config: any,
|
|
45
|
-
o: any
|
|
46
|
-
) => never[];
|
|
40
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts
CHANGED
|
@@ -4,14 +4,12 @@ import {
|
|
|
4
4
|
GetCredentialsForIdentityResponse,
|
|
5
5
|
} from "../models/models_0";
|
|
6
6
|
export { __MetadataBearer };
|
|
7
|
-
export interface GetCredentialsForIdentityCommandInput
|
|
8
|
-
extends GetCredentialsForIdentityInput {}
|
|
7
|
+
export interface GetCredentialsForIdentityCommandInput extends GetCredentialsForIdentityInput {}
|
|
9
8
|
export interface GetCredentialsForIdentityCommandOutput
|
|
10
|
-
extends GetCredentialsForIdentityResponse,
|
|
11
|
-
__MetadataBearer {}
|
|
9
|
+
extends GetCredentialsForIdentityResponse, __MetadataBearer {}
|
|
12
10
|
declare const GetCredentialsForIdentityCommand_base: {
|
|
13
11
|
new (
|
|
14
|
-
input: GetCredentialsForIdentityCommandInput
|
|
12
|
+
input: GetCredentialsForIdentityCommandInput,
|
|
15
13
|
): import("@smithy/core/client").CommandImpl<
|
|
16
14
|
GetCredentialsForIdentityCommandInput,
|
|
17
15
|
GetCredentialsForIdentityCommandOutput,
|
|
@@ -20,7 +18,7 @@ declare const GetCredentialsForIdentityCommand_base: {
|
|
|
20
18
|
import("..").ServiceOutputTypes
|
|
21
19
|
>;
|
|
22
20
|
new (
|
|
23
|
-
input: GetCredentialsForIdentityCommandInput
|
|
21
|
+
input: GetCredentialsForIdentityCommandInput,
|
|
24
22
|
): import("@smithy/core/client").CommandImpl<
|
|
25
23
|
GetCredentialsForIdentityCommandInput,
|
|
26
24
|
GetCredentialsForIdentityCommandOutput,
|
|
@@ -4,14 +4,18 @@ export { __MetadataBearer };
|
|
|
4
4
|
export interface GetIdCommandInput extends GetIdInput {}
|
|
5
5
|
export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer {}
|
|
6
6
|
declare const GetIdCommand_base: {
|
|
7
|
-
new (
|
|
7
|
+
new (
|
|
8
|
+
input: GetIdCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
8
10
|
GetIdCommandInput,
|
|
9
11
|
GetIdCommandOutput,
|
|
10
12
|
import("..").CognitoIdentityClientResolvedConfig,
|
|
11
13
|
import("..").ServiceInputTypes,
|
|
12
14
|
import("..").ServiceOutputTypes
|
|
13
15
|
>;
|
|
14
|
-
new (
|
|
16
|
+
new (
|
|
17
|
+
input: GetIdCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
15
19
|
GetIdCommandInput,
|
|
16
20
|
GetIdCommandOutput,
|
|
17
21
|
import("..").CognitoIdentityClientResolvedConfig,
|
|
@@ -23,7 +23,7 @@ export type ClientResolvedEndpointParameters = Pick<
|
|
|
23
23
|
defaultSigningName: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
-
options: T & ClientInputEndpointParameters
|
|
26
|
+
options: T & ClientInputEndpointParameters,
|
|
27
27
|
) => T & ClientResolvedEndpointParameters;
|
|
28
28
|
export declare const commonParams: {
|
|
29
29
|
readonly UseFIPS: {
|
|
@@ -3,7 +3,8 @@ import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
4
|
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
export interface CognitoIdentityExtensionConfiguration
|
|
6
|
-
extends
|
|
6
|
+
extends
|
|
7
|
+
HttpHandlerExtensionConfiguration,
|
|
7
8
|
DefaultExtensionConfiguration,
|
|
8
9
|
AwsRegionExtensionConfiguration,
|
|
9
10
|
HttpAuthExtensionConfiguration {}
|