@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.
@@ -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) | FetchHttpHandler;
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) | NodeHttpHandler;
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.42.0",
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": "yarn clean:docs && typedoc ./",
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
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
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.40.0",
25
- "@aws-sdk/credential-provider-node": "3.41.0",
26
- "@aws-sdk/fetch-http-handler": "3.40.0",
27
- "@aws-sdk/hash-node": "3.40.0",
28
- "@aws-sdk/invalid-dependency": "3.40.0",
29
- "@aws-sdk/middleware-content-length": "3.40.0",
30
- "@aws-sdk/middleware-host-header": "3.40.0",
31
- "@aws-sdk/middleware-logger": "3.40.0",
32
- "@aws-sdk/middleware-retry": "3.40.0",
33
- "@aws-sdk/middleware-sdk-sts": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
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.38.0",
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": ">=10.0.0"
60
+ "node": ">=12.0.0"
68
61
  },
69
62
  "typesVersions": {
70
63
  "<4.0": {