@aws-sdk/client-sts 3.529.1 → 3.535.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.
Files changed (29) hide show
  1. package/dist-types/STS.d.ts +3 -1
  2. package/dist-types/STSClient.d.ts +1 -1
  3. package/dist-types/commands/AssumeRoleCommand.d.ts +2 -1
  4. package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -1
  5. package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -1
  6. package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -1
  7. package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -1
  8. package/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -1
  9. package/dist-types/commands/GetFederationTokenCommand.d.ts +2 -1
  10. package/dist-types/commands/GetSessionTokenCommand.d.ts +2 -1
  11. package/dist-types/models/models_0.d.ts +98 -98
  12. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  13. package/dist-types/runtimeConfig.d.ts +2 -2
  14. package/dist-types/runtimeConfig.native.d.ts +2 -2
  15. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  16. package/dist-types/ts3.4/STS.d.ts +2 -0
  17. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +9 -0
  18. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +9 -0
  19. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +9 -0
  20. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +9 -0
  21. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +9 -0
  22. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +9 -0
  23. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +9 -0
  24. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +9 -0
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  29. package/package.json +39 -39
@@ -20,9 +20,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
20
20
  apiVersion: string;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  base64Decoder: import("@smithy/types").Decoder;
23
- base64Encoder: import("@smithy/types").Encoder;
23
+ base64Encoder: (_input: string | Uint8Array) => string;
24
24
  utf8Decoder: import("@smithy/types").Decoder;
25
- utf8Encoder: import("@smithy/types").Encoder;
25
+ utf8Encoder: (input: string | Uint8Array) => string;
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
@@ -32,9 +32,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
32
32
  apiVersion: string;
33
33
  urlParser: import("@smithy/types").UrlParser;
34
34
  base64Decoder: import("@smithy/types").Decoder;
35
- base64Encoder: import("@smithy/types").Encoder;
35
+ base64Encoder: (_input: string | Uint8Array) => string;
36
36
  utf8Decoder: import("@smithy/types").Decoder;
37
- utf8Encoder: import("@smithy/types").Encoder;
37
+ utf8Encoder: (input: string | Uint8Array) => string;
38
38
  disableHostPrefix: boolean;
39
39
  serviceId: string;
40
40
  logger: import("@smithy/types").Logger;
@@ -11,9 +11,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
11
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
12
  streamCollector: import("@smithy/types").StreamCollector;
13
13
  base64Decoder: import("@smithy/types").Decoder;
14
- base64Encoder: import("@smithy/types").Encoder;
14
+ base64Encoder: (_input: string | Uint8Array) => string;
15
15
  utf8Decoder: import("@smithy/types").Decoder;
16
- utf8Encoder: import("@smithy/types").Encoder;
16
+ utf8Encoder: (input: string | Uint8Array) => string;
17
17
  disableHostPrefix: boolean;
18
18
  serviceId: string;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -8,7 +8,7 @@ import { STSClientConfig } from "./STSClient";
8
8
  export declare const getRuntimeConfig: (config: STSClientConfig) => {
9
9
  apiVersion: string;
10
10
  base64Decoder: import("@smithy/types").Decoder;
11
- base64Encoder: import("@smithy/types").Encoder;
11
+ base64Encoder: (_input: string | Uint8Array) => string;
12
12
  disableHostPrefix: boolean;
13
13
  endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
14
14
  logger?: import("@smithy/types").Logger | undefined;
@@ -28,5 +28,5 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
28
28
  serviceId: string;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  utf8Decoder: import("@smithy/types").Decoder;
31
- utf8Encoder: import("@smithy/types").Encoder;
31
+ utf8Encoder: (input: string | Uint8Array) => string;
32
32
  };
@@ -98,6 +98,7 @@ export interface STS {
98
98
  options: __HttpHandlerOptions,
99
99
  cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void
100
100
  ): void;
101
+ getCallerIdentity(): Promise<GetCallerIdentityCommandOutput>;
101
102
  getCallerIdentity(
102
103
  args: GetCallerIdentityCommandInput,
103
104
  options?: __HttpHandlerOptions
@@ -124,6 +125,7 @@ export interface STS {
124
125
  options: __HttpHandlerOptions,
125
126
  cb: (err: any, data?: GetFederationTokenCommandOutput) => void
126
127
  ): void;
128
+ getSessionToken(): Promise<GetSessionTokenCommandOutput>;
127
129
  getSessionToken(
128
130
  args: GetSessionTokenCommandInput,
129
131
  options?: __HttpHandlerOptions
@@ -21,6 +21,15 @@ declare const AssumeRoleCommand_base: {
21
21
  ServiceInputTypes,
22
22
  ServiceOutputTypes
23
23
  >;
24
+ new (
25
+ __0_0: AssumeRoleCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ AssumeRoleCommandInput,
28
+ AssumeRoleCommandOutput,
29
+ STSClientResolvedConfig,
30
+ ServiceInputTypes,
31
+ ServiceOutputTypes
32
+ >;
24
33
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
34
  };
26
35
  export declare class AssumeRoleCommand extends AssumeRoleCommand_base {}
@@ -25,6 +25,15 @@ declare const AssumeRoleWithSAMLCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ __0_0: AssumeRoleWithSAMLCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ AssumeRoleWithSAMLCommandInput,
32
+ AssumeRoleWithSAMLCommandOutput,
33
+ STSClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class AssumeRoleWithSAMLCommand extends AssumeRoleWithSAMLCommand_base {}
@@ -25,6 +25,15 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ __0_0: AssumeRoleWithWebIdentityCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ AssumeRoleWithWebIdentityCommandInput,
32
+ AssumeRoleWithWebIdentityCommandOutput,
33
+ STSClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class AssumeRoleWithWebIdentityCommand extends AssumeRoleWithWebIdentityCommand_base {}
@@ -25,6 +25,15 @@ declare const DecodeAuthorizationMessageCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ __0_0: DecodeAuthorizationMessageCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ DecodeAuthorizationMessageCommandInput,
32
+ DecodeAuthorizationMessageCommandOutput,
33
+ STSClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class DecodeAuthorizationMessageCommand extends DecodeAuthorizationMessageCommand_base {}
@@ -24,6 +24,15 @@ declare const GetAccessKeyInfoCommand_base: {
24
24
  ServiceInputTypes,
25
25
  ServiceOutputTypes
26
26
  >;
27
+ new (
28
+ __0_0: GetAccessKeyInfoCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ GetAccessKeyInfoCommandInput,
31
+ GetAccessKeyInfoCommandOutput,
32
+ STSClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
27
36
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
37
  };
29
38
  export declare class GetAccessKeyInfoCommand extends GetAccessKeyInfoCommand_base {}
@@ -25,6 +25,15 @@ declare const GetCallerIdentityCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ ...[input]: [] | [GetCallerIdentityCommandInput]
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetCallerIdentityCommandInput,
32
+ GetCallerIdentityCommandOutput,
33
+ STSClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class GetCallerIdentityCommand extends GetCallerIdentityCommand_base {}
@@ -25,6 +25,15 @@ declare const GetFederationTokenCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ __0_0: GetFederationTokenCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetFederationTokenCommandInput,
32
+ GetFederationTokenCommandOutput,
33
+ STSClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class GetFederationTokenCommand extends GetFederationTokenCommand_base {}
@@ -24,6 +24,15 @@ declare const GetSessionTokenCommand_base: {
24
24
  ServiceInputTypes,
25
25
  ServiceOutputTypes
26
26
  >;
27
+ new (
28
+ ...[input]: [] | [GetSessionTokenCommandInput]
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ GetSessionTokenCommandInput,
31
+ GetSessionTokenCommandOutput,
32
+ STSClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
27
36
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
37
  };
29
38
  export declare class GetSessionTokenCommand extends GetSessionTokenCommand_base {}
@@ -25,9 +25,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
25
25
  apiVersion: string;
26
26
  urlParser: import("@smithy/types").UrlParser;
27
27
  base64Decoder: import("@smithy/types").Decoder;
28
- base64Encoder: import("@smithy/types").Encoder;
28
+ base64Encoder: (_input: string | Uint8Array) => string;
29
29
  utf8Decoder: import("@smithy/types").Decoder;
30
- utf8Encoder: import("@smithy/types").Encoder;
30
+ utf8Encoder: (input: string | Uint8Array) => string;
31
31
  disableHostPrefix: boolean;
32
32
  serviceId: string;
33
33
  logger: import("@smithy/types").Logger;
@@ -52,9 +52,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
52
52
  apiVersion: string;
53
53
  urlParser: import("@smithy/types").UrlParser;
54
54
  base64Decoder: import("@smithy/types").Decoder;
55
- base64Encoder: import("@smithy/types").Encoder;
55
+ base64Encoder: (_input: string | Uint8Array) => string;
56
56
  utf8Decoder: import("@smithy/types").Decoder;
57
- utf8Encoder: import("@smithy/types").Encoder;
57
+ utf8Encoder: (input: string | Uint8Array) => string;
58
58
  disableHostPrefix: boolean;
59
59
  serviceId: string;
60
60
  logger: import("@smithy/types").Logger;
@@ -13,9 +13,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
14
  streamCollector: import("@smithy/types").StreamCollector;
15
15
  base64Decoder: import("@smithy/types").Decoder;
16
- base64Encoder: import("@smithy/types").Encoder;
16
+ base64Encoder: (_input: string | Uint8Array) => string;
17
17
  utf8Decoder: import("@smithy/types").Decoder;
18
- utf8Encoder: import("@smithy/types").Encoder;
18
+ utf8Encoder: (input: string | Uint8Array) => string;
19
19
  disableHostPrefix: boolean;
20
20
  serviceId: string;
21
21
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -5,7 +5,7 @@ import { STSClientConfig } from "./STSClient";
5
5
  export declare const getRuntimeConfig: (config: STSClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: import("@smithy/types").Encoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
9
  disableHostPrefix: boolean;
10
10
  endpointProvider: (
11
11
  params: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -47,5 +47,5 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
47
47
  serviceId: string;
48
48
  urlParser: import("@smithy/types").UrlParser;
49
49
  utf8Decoder: import("@smithy/types").Decoder;
50
- utf8Encoder: import("@smithy/types").Encoder;
50
+ utf8Encoder: (input: string | Uint8Array) => string;
51
51
  };
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.529.1",
4
+ "version": "3.535.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -22,45 +22,45 @@
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.529.1",
26
- "@aws-sdk/middleware-host-header": "3.523.0",
27
- "@aws-sdk/middleware-logger": "3.523.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.525.0",
30
- "@aws-sdk/region-config-resolver": "3.525.0",
31
- "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.525.0",
33
- "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.525.0",
35
- "@smithy/config-resolver": "^2.1.4",
36
- "@smithy/core": "^1.3.5",
37
- "@smithy/fetch-http-handler": "^2.4.3",
38
- "@smithy/hash-node": "^2.1.3",
39
- "@smithy/invalid-dependency": "^2.1.3",
40
- "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.4",
42
- "@smithy/middleware-retry": "^2.1.4",
43
- "@smithy/middleware-serde": "^2.1.3",
44
- "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.4",
46
- "@smithy/node-http-handler": "^2.4.1",
47
- "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.2",
49
- "@smithy/types": "^2.10.1",
50
- "@smithy/url-parser": "^2.1.3",
51
- "@smithy/util-base64": "^2.1.1",
52
- "@smithy/util-body-length-browser": "^2.1.1",
53
- "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.4",
55
- "@smithy/util-defaults-mode-node": "^2.2.3",
56
- "@smithy/util-endpoints": "^1.1.4",
57
- "@smithy/util-middleware": "^2.1.3",
58
- "@smithy/util-retry": "^2.1.3",
59
- "@smithy/util-utf8": "^2.1.1",
60
- "tslib": "^2.5.0"
25
+ "@aws-sdk/core": "3.535.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.535.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.535.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/fetch-http-handler": "^2.5.0",
38
+ "@smithy/hash-node": "^2.2.0",
39
+ "@smithy/invalid-dependency": "^2.2.0",
40
+ "@smithy/middleware-content-length": "^2.2.0",
41
+ "@smithy/middleware-endpoint": "^2.5.0",
42
+ "@smithy/middleware-retry": "^2.2.0",
43
+ "@smithy/middleware-serde": "^2.3.0",
44
+ "@smithy/middleware-stack": "^2.2.0",
45
+ "@smithy/node-config-provider": "^2.3.0",
46
+ "@smithy/node-http-handler": "^2.5.0",
47
+ "@smithy/protocol-http": "^3.3.0",
48
+ "@smithy/smithy-client": "^2.5.0",
49
+ "@smithy/types": "^2.12.0",
50
+ "@smithy/url-parser": "^2.2.0",
51
+ "@smithy/util-base64": "^2.3.0",
52
+ "@smithy/util-body-length-browser": "^2.2.0",
53
+ "@smithy/util-body-length-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
55
+ "@smithy/util-defaults-mode-node": "^2.3.0",
56
+ "@smithy/util-endpoints": "^1.2.0",
57
+ "@smithy/util-middleware": "^2.2.0",
58
+ "@smithy/util-retry": "^2.2.0",
59
+ "@smithy/util-utf8": "^2.3.0",
60
+ "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.1.1",
63
+ "@smithy/service-client-documentation-generator": "^2.2.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "license": "Apache-2.0",
89
89
  "peerDependencies": {
90
- "@aws-sdk/credential-provider-node": "^3.529.1"
90
+ "@aws-sdk/credential-provider-node": "^3.535.0"
91
91
  },
92
92
  "browser": {
93
93
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"