@aws-sdk/client-sts 3.691.0 → 3.693.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/README.md +8 -0
- package/dist-cjs/index.js +89 -12
- package/dist-es/STS.js +2 -0
- package/dist-es/commands/AssumeRootCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_query.js +53 -0
- package/dist-types/STS.d.ts +7 -0
- package/dist-types/STSClient.d.ts +3 -2
- package/dist-types/commands/AssumeRoleCommand.d.ts +13 -13
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +8 -8
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +15 -30
- package/dist-types/commands/AssumeRootCommand.d.ts +129 -0
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -2
- package/dist-types/commands/GetFederationTokenCommand.d.ts +8 -8
- package/dist-types/commands/GetSessionTokenCommand.d.ts +6 -6
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +146 -32
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/STS.d.ts +17 -0
- package/dist-types/ts3.4/STSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +36 -36
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AssumeRootRequest, AssumeRootResponse } from "../models/models_0";
|
|
4
|
+
import {
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
STSClientResolvedConfig,
|
|
8
|
+
} from "../STSClient";
|
|
9
|
+
export { __MetadataBearer };
|
|
10
|
+
export { $Command };
|
|
11
|
+
export interface AssumeRootCommandInput extends AssumeRootRequest {}
|
|
12
|
+
export interface AssumeRootCommandOutput
|
|
13
|
+
extends AssumeRootResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const AssumeRootCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: AssumeRootCommandInput
|
|
18
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
19
|
+
AssumeRootCommandInput,
|
|
20
|
+
AssumeRootCommandOutput,
|
|
21
|
+
STSClientResolvedConfig,
|
|
22
|
+
ServiceInputTypes,
|
|
23
|
+
ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
__0_0: AssumeRootCommandInput
|
|
27
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
28
|
+
AssumeRootCommandInput,
|
|
29
|
+
AssumeRootCommandOutput,
|
|
30
|
+
STSClientResolvedConfig,
|
|
31
|
+
ServiceInputTypes,
|
|
32
|
+
ServiceOutputTypes
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
|
+
};
|
|
36
|
+
export declare class AssumeRootCommand extends AssumeRootCommand_base {
|
|
37
|
+
protected static __types: {
|
|
38
|
+
api: {
|
|
39
|
+
input: AssumeRootRequest;
|
|
40
|
+
output: AssumeRootResponse;
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
input: AssumeRootCommandInput;
|
|
44
|
+
output: AssumeRootCommandOutput;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssumeRoleCommand";
|
|
2
2
|
export * from "./AssumeRoleWithSAMLCommand";
|
|
3
3
|
export * from "./AssumeRoleWithWebIdentityCommand";
|
|
4
|
+
export * from "./AssumeRootCommand";
|
|
4
5
|
export * from "./DecodeAuthorizationMessageCommand";
|
|
5
6
|
export * from "./GetAccessKeyInfoCommand";
|
|
6
7
|
export * from "./GetCallerIdentityCommand";
|
|
@@ -130,6 +130,15 @@ export declare class IDPCommunicationErrorException extends __BaseException {
|
|
|
130
130
|
opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
+
export interface AssumeRootRequest {
|
|
134
|
+
TargetPrincipal: string | undefined;
|
|
135
|
+
TaskPolicyArn: PolicyDescriptorType | undefined;
|
|
136
|
+
DurationSeconds?: number | undefined;
|
|
137
|
+
}
|
|
138
|
+
export interface AssumeRootResponse {
|
|
139
|
+
Credentials?: Credentials | undefined;
|
|
140
|
+
SourceIdentity?: string | undefined;
|
|
141
|
+
}
|
|
133
142
|
export interface DecodeAuthorizationMessageRequest {
|
|
134
143
|
EncodedMessage: string | undefined;
|
|
135
144
|
}
|
|
@@ -198,6 +207,9 @@ export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (
|
|
|
198
207
|
export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (
|
|
199
208
|
obj: AssumeRoleWithWebIdentityResponse
|
|
200
209
|
) => any;
|
|
210
|
+
export declare const AssumeRootResponseFilterSensitiveLog: (
|
|
211
|
+
obj: AssumeRootResponse
|
|
212
|
+
) => any;
|
|
201
213
|
export declare const GetFederationTokenResponseFilterSensitiveLog: (
|
|
202
214
|
obj: GetFederationTokenResponse
|
|
203
215
|
) => any;
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
AssumeRoleWithWebIdentityCommandInput,
|
|
16
16
|
AssumeRoleWithWebIdentityCommandOutput,
|
|
17
17
|
} from "../commands/AssumeRoleWithWebIdentityCommand";
|
|
18
|
+
import {
|
|
19
|
+
AssumeRootCommandInput,
|
|
20
|
+
AssumeRootCommandOutput,
|
|
21
|
+
} from "../commands/AssumeRootCommand";
|
|
18
22
|
import {
|
|
19
23
|
DecodeAuthorizationMessageCommandInput,
|
|
20
24
|
DecodeAuthorizationMessageCommandOutput,
|
|
@@ -47,6 +51,10 @@ export declare const se_AssumeRoleWithWebIdentityCommand: (
|
|
|
47
51
|
input: AssumeRoleWithWebIdentityCommandInput,
|
|
48
52
|
context: __SerdeContext
|
|
49
53
|
) => Promise<__HttpRequest>;
|
|
54
|
+
export declare const se_AssumeRootCommand: (
|
|
55
|
+
input: AssumeRootCommandInput,
|
|
56
|
+
context: __SerdeContext
|
|
57
|
+
) => Promise<__HttpRequest>;
|
|
50
58
|
export declare const se_DecodeAuthorizationMessageCommand: (
|
|
51
59
|
input: DecodeAuthorizationMessageCommandInput,
|
|
52
60
|
context: __SerdeContext
|
|
@@ -79,6 +87,10 @@ export declare const de_AssumeRoleWithWebIdentityCommand: (
|
|
|
79
87
|
output: __HttpResponse,
|
|
80
88
|
context: __SerdeContext
|
|
81
89
|
) => Promise<AssumeRoleWithWebIdentityCommandOutput>;
|
|
90
|
+
export declare const de_AssumeRootCommand: (
|
|
91
|
+
output: __HttpResponse,
|
|
92
|
+
context: __SerdeContext
|
|
93
|
+
) => Promise<AssumeRootCommandOutput>;
|
|
82
94
|
export declare const de_DecodeAuthorizationMessageCommand: (
|
|
83
95
|
output: __HttpResponse,
|
|
84
96
|
context: __SerdeContext
|
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.693.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",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo sts",
|
|
15
|
-
"test": "vitest run",
|
|
16
|
-
"test:watch": "vitest watch"
|
|
15
|
+
"test": "yarn g:vitest run",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist-cjs/index.js",
|
|
19
19
|
"types": "./dist-types/index.d.ts",
|
|
@@ -22,42 +22,42 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^3.0.
|
|
38
|
-
"@smithy/core": "^2.5.
|
|
39
|
-
"@smithy/fetch-http-handler": "^4.
|
|
40
|
-
"@smithy/hash-node": "^3.0.
|
|
41
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
42
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
43
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
44
|
-
"@smithy/middleware-retry": "^3.0.
|
|
45
|
-
"@smithy/middleware-serde": "^3.0.
|
|
46
|
-
"@smithy/middleware-stack": "^3.0.
|
|
47
|
-
"@smithy/node-config-provider": "^3.1.
|
|
48
|
-
"@smithy/node-http-handler": "^3.
|
|
49
|
-
"@smithy/protocol-http": "^4.1.
|
|
50
|
-
"@smithy/smithy-client": "^3.4.
|
|
51
|
-
"@smithy/types": "^3.
|
|
52
|
-
"@smithy/url-parser": "^3.0.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.693.0",
|
|
26
|
+
"@aws-sdk/core": "3.693.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.693.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.693.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.693.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.693.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.693.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.693.0",
|
|
33
|
+
"@aws-sdk/types": "3.692.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.693.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.693.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.693.0",
|
|
37
|
+
"@smithy/config-resolver": "^3.0.11",
|
|
38
|
+
"@smithy/core": "^2.5.2",
|
|
39
|
+
"@smithy/fetch-http-handler": "^4.1.0",
|
|
40
|
+
"@smithy/hash-node": "^3.0.9",
|
|
41
|
+
"@smithy/invalid-dependency": "^3.0.9",
|
|
42
|
+
"@smithy/middleware-content-length": "^3.0.11",
|
|
43
|
+
"@smithy/middleware-endpoint": "^3.2.2",
|
|
44
|
+
"@smithy/middleware-retry": "^3.0.26",
|
|
45
|
+
"@smithy/middleware-serde": "^3.0.9",
|
|
46
|
+
"@smithy/middleware-stack": "^3.0.9",
|
|
47
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
48
|
+
"@smithy/node-http-handler": "^3.3.0",
|
|
49
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
50
|
+
"@smithy/smithy-client": "^3.4.3",
|
|
51
|
+
"@smithy/types": "^3.7.0",
|
|
52
|
+
"@smithy/url-parser": "^3.0.9",
|
|
53
53
|
"@smithy/util-base64": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
58
|
-
"@smithy/util-endpoints": "^2.1.
|
|
59
|
-
"@smithy/util-middleware": "^3.0.
|
|
60
|
-
"@smithy/util-retry": "^3.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^3.0.26",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^3.0.26",
|
|
58
|
+
"@smithy/util-endpoints": "^2.1.5",
|
|
59
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
60
|
+
"@smithy/util-retry": "^3.0.9",
|
|
61
61
|
"@smithy/util-utf8": "^3.0.0",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|