@aws-sdk/client-sts 3.42.0 → 3.47.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/CHANGELOG.md +51 -0
- package/dist-cjs/endpoints.js +1 -24
- package/dist-cjs/models/models_0.js +1 -49
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -24
- package/dist-es/models/models_0.js +0 -32
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/STS.d.ts +90 -137
- package/dist-types/STSClient.d.ts +5 -1
- package/dist-types/commands/AssumeRoleCommand.d.ts +23 -17
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +13 -13
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -4
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -2
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +17 -17
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +8 -8
- package/dist-types/commands/GetFederationTokenCommand.d.ts +22 -75
- package/dist-types/commands/GetSessionTokenCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +63 -92
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/STSClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -32
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
10
10
|
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
@@ -59,6 +59,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
59
59
|
regionInfoProvider?: RegionInfoProvider;
|
|
60
60
|
|
|
61
61
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
62
|
+
|
|
63
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
62
64
|
}
|
|
63
65
|
declare type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & StsAuthInputConfig & UserAgentInputConfig;
|
|
64
66
|
|
|
@@ -94,40 +94,24 @@ export interface ExpiredTokenException extends __SmithyException, $MetadataBeare
|
|
|
94
94
|
$fault: "client";
|
|
95
95
|
message?: string;
|
|
96
96
|
}
|
|
97
|
-
export declare namespace ExpiredTokenException {
|
|
98
|
-
|
|
99
|
-
const filterSensitiveLog: (obj: ExpiredTokenException) => any;
|
|
100
|
-
}
|
|
101
97
|
|
|
102
98
|
export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
|
|
103
99
|
name: "MalformedPolicyDocumentException";
|
|
104
100
|
$fault: "client";
|
|
105
101
|
message?: string;
|
|
106
102
|
}
|
|
107
|
-
export declare namespace MalformedPolicyDocumentException {
|
|
108
|
-
|
|
109
|
-
const filterSensitiveLog: (obj: MalformedPolicyDocumentException) => any;
|
|
110
|
-
}
|
|
111
103
|
|
|
112
104
|
export interface PackedPolicyTooLargeException extends __SmithyException, $MetadataBearer {
|
|
113
105
|
name: "PackedPolicyTooLargeException";
|
|
114
106
|
$fault: "client";
|
|
115
107
|
message?: string;
|
|
116
108
|
}
|
|
117
|
-
export declare namespace PackedPolicyTooLargeException {
|
|
118
|
-
|
|
119
|
-
const filterSensitiveLog: (obj: PackedPolicyTooLargeException) => any;
|
|
120
|
-
}
|
|
121
109
|
|
|
122
110
|
export interface RegionDisabledException extends __SmithyException, $MetadataBearer {
|
|
123
111
|
name: "RegionDisabledException";
|
|
124
112
|
$fault: "client";
|
|
125
113
|
message?: string;
|
|
126
114
|
}
|
|
127
|
-
export declare namespace RegionDisabledException {
|
|
128
|
-
|
|
129
|
-
const filterSensitiveLog: (obj: RegionDisabledException) => any;
|
|
130
|
-
}
|
|
131
115
|
export interface AssumeRoleWithSAMLRequest {
|
|
132
116
|
|
|
133
117
|
RoleArn: string | undefined;
|
|
@@ -177,20 +161,12 @@ export interface IDPRejectedClaimException extends __SmithyException, $MetadataB
|
|
|
177
161
|
$fault: "client";
|
|
178
162
|
message?: string;
|
|
179
163
|
}
|
|
180
|
-
export declare namespace IDPRejectedClaimException {
|
|
181
|
-
|
|
182
|
-
const filterSensitiveLog: (obj: IDPRejectedClaimException) => any;
|
|
183
|
-
}
|
|
184
164
|
|
|
185
165
|
export interface InvalidIdentityTokenException extends __SmithyException, $MetadataBearer {
|
|
186
166
|
name: "InvalidIdentityTokenException";
|
|
187
167
|
$fault: "client";
|
|
188
168
|
message?: string;
|
|
189
169
|
}
|
|
190
|
-
export declare namespace InvalidIdentityTokenException {
|
|
191
|
-
|
|
192
|
-
const filterSensitiveLog: (obj: InvalidIdentityTokenException) => any;
|
|
193
|
-
}
|
|
194
170
|
export interface AssumeRoleWithWebIdentityRequest {
|
|
195
171
|
|
|
196
172
|
RoleArn: string | undefined;
|
|
@@ -238,10 +214,6 @@ export interface IDPCommunicationErrorException extends __SmithyException, $Meta
|
|
|
238
214
|
$fault: "client";
|
|
239
215
|
message?: string;
|
|
240
216
|
}
|
|
241
|
-
export declare namespace IDPCommunicationErrorException {
|
|
242
|
-
|
|
243
|
-
const filterSensitiveLog: (obj: IDPCommunicationErrorException) => any;
|
|
244
|
-
}
|
|
245
217
|
export interface DecodeAuthorizationMessageRequest {
|
|
246
218
|
|
|
247
219
|
EncodedMessage: string | undefined;
|
|
@@ -265,10 +237,6 @@ export interface InvalidAuthorizationMessageException extends __SmithyException,
|
|
|
265
237
|
$fault: "client";
|
|
266
238
|
message?: string;
|
|
267
239
|
}
|
|
268
|
-
export declare namespace InvalidAuthorizationMessageException {
|
|
269
|
-
|
|
270
|
-
const filterSensitiveLog: (obj: InvalidAuthorizationMessageException) => any;
|
|
271
|
-
}
|
|
272
240
|
export interface GetAccessKeyInfoRequest {
|
|
273
241
|
|
|
274
242
|
AccessKeyId: string | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { STSClientConfig } from "./STSClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { STSClientConfig } from "./STSClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
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.47.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,50 +18,46 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/config-resolver": "3.47.0",
|
|
22
|
+
"@aws-sdk/credential-provider-node": "3.47.0",
|
|
23
|
+
"@aws-sdk/fetch-http-handler": "3.47.0",
|
|
24
|
+
"@aws-sdk/hash-node": "3.47.0",
|
|
25
|
+
"@aws-sdk/invalid-dependency": "3.47.0",
|
|
26
|
+
"@aws-sdk/middleware-content-length": "3.47.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.47.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.47.0",
|
|
29
|
+
"@aws-sdk/middleware-retry": "3.47.0",
|
|
30
|
+
"@aws-sdk/middleware-sdk-sts": "3.47.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.0",
|
|
39
|
+
"@aws-sdk/types": "3.47.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.0",
|
|
52
51
|
"entities": "2.2.0",
|
|
53
52
|
"fast-xml-parser": "3.19.0",
|
|
54
53
|
"tslib": "^2.3.0"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
58
|
-
"@types/node": "^12.7.5"
|
|
59
|
-
"downlevel-dts": "0.7.0",
|
|
60
|
-
"jest": "^26.1.0",
|
|
61
|
-
"rimraf": "^3.0.0",
|
|
62
|
-
"ts-jest": "^26.4.1",
|
|
63
|
-
"typedoc": "^0.19.2",
|
|
64
|
-
"typescript": "~4.3.5"
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.0",
|
|
57
|
+
"@types/node": "^12.7.5"
|
|
65
58
|
},
|
|
66
59
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
60
|
+
"node": ">=12.0.0"
|
|
68
61
|
},
|
|
69
62
|
"typesVersions": {
|
|
70
63
|
"<4.0": {
|