@aws-sdk/client-sts 3.473.0 → 3.476.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/STSClient.js +17 -3
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +67 -0
- package/dist-cjs/commands/AssumeRoleCommand.js +0 -2
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +0 -2
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +0 -2
- package/dist-cjs/commands/GetCallerIdentityCommand.js +0 -2
- package/dist-cjs/commands/GetFederationTokenCommand.js +0 -2
- package/dist-cjs/commands/GetSessionTokenCommand.js +0 -2
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/runtimeConfig.js +14 -0
- package/dist-cjs/runtimeConfig.shared.js +16 -0
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/STSClient.js +17 -3
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +60 -0
- package/dist-es/commands/AssumeRoleCommand.js +0 -2
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -2
- package/dist-es/commands/GetAccessKeyInfoCommand.js +0 -2
- package/dist-es/commands/GetCallerIdentityCommand.js +0 -2
- package/dist-es/commands/GetFederationTokenCommand.js +0 -2
- package/dist-es/commands/GetSessionTokenCommand.js +0 -2
- package/dist-es/index.js +1 -1
- package/dist-es/runtimeConfig.js +15 -1
- package/dist-es/runtimeConfig.shared.js +16 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/STSClient.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +71 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/index.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +15 -5
- package/dist-types/runtimeConfig.d.ts +13 -5
- package/dist-types/runtimeConfig.native.d.ts +16 -6
- package/dist-types/runtimeConfig.shared.d.ts +15 -2
- package/dist-types/ts3.4/STSClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +54 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/index.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +36 -9
- package/dist-types/ts3.4/runtimeConfig.d.ts +27 -9
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +39 -12
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +36 -4
- package/package.json +5 -5
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@smithy/types").
|
|
11
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
@@ -62,21 +62,49 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
62
62
|
))
|
|
63
63
|
| undefined;
|
|
64
64
|
endpointProvider: (
|
|
65
|
-
|
|
66
|
-
context?:
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
66
|
+
context?:
|
|
67
|
+
| {
|
|
68
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
69
|
+
}
|
|
70
|
+
| undefined
|
|
69
71
|
) => import("@smithy/types").EndpointV2;
|
|
70
72
|
tls?: boolean | undefined;
|
|
71
73
|
retryStrategy?:
|
|
72
74
|
| import("@smithy/types").RetryStrategy
|
|
73
75
|
| import("@smithy/types").RetryStrategyV2
|
|
74
76
|
| undefined;
|
|
77
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
78
|
+
httpAuthSchemes:
|
|
79
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
80
|
+
| (
|
|
81
|
+
| {
|
|
82
|
+
schemeId: string;
|
|
83
|
+
identityProvider: (
|
|
84
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
85
|
+
) =>
|
|
86
|
+
| import("@smithy/types").IdentityProvider<
|
|
87
|
+
import("@smithy/types").Identity
|
|
88
|
+
>
|
|
89
|
+
| undefined;
|
|
90
|
+
signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
|
|
91
|
+
}
|
|
92
|
+
| {
|
|
93
|
+
schemeId: string;
|
|
94
|
+
identityProvider: (
|
|
95
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
96
|
+
) =>
|
|
97
|
+
| import("@smithy/types").IdentityProvider<
|
|
98
|
+
import("@smithy/types").Identity
|
|
99
|
+
>
|
|
100
|
+
| (() => Promise<{}>);
|
|
101
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
102
|
+
}
|
|
103
|
+
)[];
|
|
104
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
75
105
|
credentials?:
|
|
76
106
|
| import("@smithy/types").AwsCredentialIdentity
|
|
77
|
-
| import("@smithy/types").
|
|
78
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
79
|
-
>
|
|
107
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
80
108
|
| undefined;
|
|
81
109
|
signer?:
|
|
82
110
|
| import("@smithy/types").RequestSigner
|
|
@@ -93,7 +121,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
93
121
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
94
122
|
) => import("@smithy/types").RequestSigner)
|
|
95
123
|
| undefined;
|
|
96
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
97
124
|
useGlobalEndpoint?:
|
|
98
125
|
| boolean
|
|
99
126
|
| import("@smithy/types").Provider<boolean>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
1
2
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
2
4
|
import { STSClientConfig } from "./STSClient";
|
|
3
5
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
4
6
|
runtime: string;
|
|
@@ -6,10 +8,25 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
6
8
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
9
|
>;
|
|
8
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
|
-
credentialDefaultProvider:
|
|
11
|
+
credentialDefaultProvider: (
|
|
12
|
+
input: any
|
|
13
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
10
14
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
11
15
|
import("@smithy/types").UserAgent
|
|
12
16
|
>;
|
|
17
|
+
httpAuthSchemes:
|
|
18
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
19
|
+
| {
|
|
20
|
+
schemeId: string;
|
|
21
|
+
identityProvider: (
|
|
22
|
+
ipc: IdentityProviderConfig
|
|
23
|
+
) =>
|
|
24
|
+
| import("@smithy/types").IdentityProvider<
|
|
25
|
+
import("@smithy/types").Identity
|
|
26
|
+
>
|
|
27
|
+
| (() => Promise<{}>);
|
|
28
|
+
signer: NoAuthSigner;
|
|
29
|
+
}[];
|
|
13
30
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
14
31
|
region: string | import("@smithy/types").Provider<string>;
|
|
15
32
|
requestHandler:
|
|
@@ -60,21 +77,23 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
60
77
|
))
|
|
61
78
|
| undefined;
|
|
62
79
|
endpointProvider: (
|
|
63
|
-
|
|
64
|
-
context?:
|
|
65
|
-
|
|
66
|
-
|
|
80
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
81
|
+
context?:
|
|
82
|
+
| {
|
|
83
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
84
|
+
}
|
|
85
|
+
| undefined
|
|
67
86
|
) => import("@smithy/types").EndpointV2;
|
|
68
87
|
tls?: boolean | undefined;
|
|
69
88
|
retryStrategy?:
|
|
70
89
|
| import("@smithy/types").RetryStrategy
|
|
71
90
|
| import("@smithy/types").RetryStrategyV2
|
|
72
91
|
| undefined;
|
|
92
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
93
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
73
94
|
credentials?:
|
|
74
95
|
| import("@smithy/types").AwsCredentialIdentity
|
|
75
|
-
| import("@smithy/types").
|
|
76
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
77
|
-
>
|
|
96
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
78
97
|
| undefined;
|
|
79
98
|
signer?:
|
|
80
99
|
| import("@smithy/types").RequestSigner
|
|
@@ -91,7 +110,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
91
110
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
92
111
|
) => import("@smithy/types").RequestSigner)
|
|
93
112
|
| undefined;
|
|
94
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
95
113
|
useGlobalEndpoint?:
|
|
96
114
|
| boolean
|
|
97
115
|
| import("@smithy/types").Provider<boolean>
|
|
@@ -29,13 +29,13 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
29
29
|
serviceId: string;
|
|
30
30
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
31
31
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
33
|
-
credentialDefaultProvider: (
|
|
34
|
-
input: any
|
|
35
|
-
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
36
32
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
37
33
|
import("@smithy/types").UserAgent
|
|
38
34
|
>;
|
|
35
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
36
|
+
credentialDefaultProvider: (
|
|
37
|
+
input: any
|
|
38
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
39
39
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
40
40
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
@@ -53,21 +53,49 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
53
53
|
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
54
54
|
| undefined;
|
|
55
55
|
endpointProvider: (
|
|
56
|
-
|
|
57
|
-
context?:
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
57
|
+
context?:
|
|
58
|
+
| {
|
|
59
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
60
|
+
}
|
|
61
|
+
| undefined
|
|
60
62
|
) => import("@smithy/types").EndpointV2;
|
|
61
63
|
tls?: boolean | undefined;
|
|
62
64
|
retryStrategy?:
|
|
63
65
|
| import("@smithy/types").RetryStrategy
|
|
64
66
|
| import("@smithy/types").RetryStrategyV2
|
|
65
67
|
| undefined;
|
|
68
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
69
|
+
httpAuthSchemes:
|
|
70
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
71
|
+
| (
|
|
72
|
+
| {
|
|
73
|
+
schemeId: string;
|
|
74
|
+
identityProvider: (
|
|
75
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
76
|
+
) =>
|
|
77
|
+
| import("@smithy/types").IdentityProvider<
|
|
78
|
+
import("@smithy/types").Identity
|
|
79
|
+
>
|
|
80
|
+
| undefined;
|
|
81
|
+
signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
|
|
82
|
+
}
|
|
83
|
+
| {
|
|
84
|
+
schemeId: string;
|
|
85
|
+
identityProvider: (
|
|
86
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
87
|
+
) =>
|
|
88
|
+
| import("@smithy/types").IdentityProvider<
|
|
89
|
+
import("@smithy/types").Identity
|
|
90
|
+
>
|
|
91
|
+
| (() => Promise<{}>);
|
|
92
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
93
|
+
}
|
|
94
|
+
)[];
|
|
95
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
66
96
|
credentials?:
|
|
67
97
|
| import("@smithy/types").AwsCredentialIdentity
|
|
68
|
-
| import("@smithy/types").
|
|
69
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
70
|
-
>
|
|
98
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
71
99
|
| undefined;
|
|
72
100
|
signer?:
|
|
73
101
|
| import("@smithy/types").RequestSigner
|
|
@@ -84,7 +112,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
84
112
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
85
113
|
) => import("@smithy/types").RequestSigner)
|
|
86
114
|
| undefined;
|
|
87
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
88
115
|
useGlobalEndpoint?:
|
|
89
116
|
| boolean
|
|
90
117
|
| import("@smithy/types").Provider<boolean>
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AWSSDKSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
1
4
|
import { STSClientConfig } from "./STSClient";
|
|
2
5
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
3
6
|
apiVersion: string;
|
|
@@ -5,12 +8,41 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
5
8
|
base64Encoder: import("@smithy/types").Encoder;
|
|
6
9
|
disableHostPrefix: boolean;
|
|
7
10
|
endpointProvider: (
|
|
8
|
-
|
|
9
|
-
context?:
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
12
|
+
context?:
|
|
13
|
+
| {
|
|
14
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
15
|
+
}
|
|
16
|
+
| undefined
|
|
12
17
|
) => import("@smithy/types").EndpointV2;
|
|
13
18
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
19
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
20
|
+
httpAuthSchemes:
|
|
21
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
22
|
+
| (
|
|
23
|
+
| {
|
|
24
|
+
schemeId: string;
|
|
25
|
+
identityProvider: (
|
|
26
|
+
ipc: IdentityProviderConfig
|
|
27
|
+
) =>
|
|
28
|
+
| import("@smithy/types").IdentityProvider<
|
|
29
|
+
import("@smithy/types").Identity
|
|
30
|
+
>
|
|
31
|
+
| undefined;
|
|
32
|
+
signer: AWSSDKSigV4Signer;
|
|
33
|
+
}
|
|
34
|
+
| {
|
|
35
|
+
schemeId: string;
|
|
36
|
+
identityProvider: (
|
|
37
|
+
ipc: IdentityProviderConfig
|
|
38
|
+
) =>
|
|
39
|
+
| import("@smithy/types").IdentityProvider<
|
|
40
|
+
import("@smithy/types").Identity
|
|
41
|
+
>
|
|
42
|
+
| (() => Promise<{}>);
|
|
43
|
+
signer: NoAuthSigner;
|
|
44
|
+
}
|
|
45
|
+
)[];
|
|
14
46
|
logger: import("@smithy/types").Logger;
|
|
15
47
|
serviceId: string;
|
|
16
48
|
urlParser: import("@smithy/types").UrlParser;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.476.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -22,13 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/core": "3.476.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.476.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-sdk-sts": "3.468.0",
|
|
31
|
-
"@aws-sdk/middleware-signing": "3.468.0",
|
|
32
30
|
"@aws-sdk/middleware-user-agent": "3.470.0",
|
|
33
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
34
32
|
"@aws-sdk/types": "3.468.0",
|
|
@@ -36,6 +34,7 @@
|
|
|
36
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
37
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
38
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.1.0",
|
|
39
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
40
39
|
"@smithy/hash-node": "^2.0.17",
|
|
41
40
|
"@smithy/invalid-dependency": "^2.0.15",
|
|
@@ -56,6 +55,7 @@
|
|
|
56
55
|
"@smithy/util-defaults-mode-browser": "^2.0.22",
|
|
57
56
|
"@smithy/util-defaults-mode-node": "^2.0.29",
|
|
58
57
|
"@smithy/util-endpoints": "^1.0.7",
|
|
58
|
+
"@smithy/util-middleware": "^2.0.8",
|
|
59
59
|
"@smithy/util-retry": "^2.0.8",
|
|
60
60
|
"@smithy/util-utf8": "^2.0.2",
|
|
61
61
|
"fast-xml-parser": "4.2.5",
|