@aws-sdk/client-sso 3.36.0 → 3.39.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 +42 -0
- package/dist-cjs/SSO.js +0 -18
- package/dist-cjs/SSOClient.js +0 -23
- package/dist-cjs/commands/GetRoleCredentialsCommand.js +0 -25
- package/dist-cjs/commands/ListAccountRolesCommand.js +0 -24
- package/dist-cjs/commands/ListAccountsCommand.js +0 -26
- package/dist-cjs/commands/LogoutCommand.js +0 -24
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -9
- package/dist-cjs/models/models_0.js +0 -42
- package/dist-cjs/pagination/ListAccountRolesPaginator.js +0 -10
- package/dist-cjs/pagination/ListAccountsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -9
- package/dist-es/pagination/index.js +3 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +4 -9
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/SSO.d.ts +5 -33
- package/dist-types/ts3.4/SSOClient.d.ts +23 -100
- package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/LogoutCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/index.d.ts +4 -9
- package/dist-types/ts3.4/models/models_0.d.ts +46 -147
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +29 -29
|
@@ -1,255 +1,154 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
* <p>Provides information about your AWS account.</p>
|
|
4
|
-
*/
|
|
2
|
+
|
|
5
3
|
export interface AccountInfo {
|
|
6
|
-
|
|
7
|
-
* <p>The identifier of the AWS account that is assigned to the user.</p>
|
|
8
|
-
*/
|
|
4
|
+
|
|
9
5
|
accountId?: string;
|
|
10
|
-
|
|
11
|
-
* <p>The display name of the AWS account that is assigned to the user.</p>
|
|
12
|
-
*/
|
|
6
|
+
|
|
13
7
|
accountName?: string;
|
|
14
|
-
|
|
15
|
-
* <p>The email address of the AWS account that is assigned to the user.</p>
|
|
16
|
-
*/
|
|
8
|
+
|
|
17
9
|
emailAddress?: string;
|
|
18
10
|
}
|
|
19
11
|
export declare namespace AccountInfo {
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
12
|
+
|
|
23
13
|
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
24
14
|
}
|
|
25
15
|
export interface GetRoleCredentialsRequest {
|
|
26
|
-
|
|
27
|
-
* <p>The friendly name of the role that is assigned to the user.</p>
|
|
28
|
-
*/
|
|
16
|
+
|
|
29
17
|
roleName: string | undefined;
|
|
30
|
-
|
|
31
|
-
* <p>The identifier for the AWS account that is assigned to the user.</p>
|
|
32
|
-
*/
|
|
18
|
+
|
|
33
19
|
accountId: string | undefined;
|
|
34
|
-
|
|
35
|
-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
|
|
37
|
-
*/
|
|
20
|
+
|
|
38
21
|
accessToken: string | undefined;
|
|
39
22
|
}
|
|
40
23
|
export declare namespace GetRoleCredentialsRequest {
|
|
41
|
-
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
24
|
+
|
|
44
25
|
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
45
26
|
}
|
|
46
|
-
|
|
47
|
-
* <p>Provides information about the role credentials that are assigned to the user.</p>
|
|
48
|
-
*/
|
|
27
|
+
|
|
49
28
|
export interface RoleCredentials {
|
|
50
|
-
|
|
51
|
-
* <p>The identifier used for the temporary security credentials. For more information, see
|
|
52
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
|
|
53
|
-
* <i>AWS IAM User Guide</i>.</p>
|
|
54
|
-
*/
|
|
29
|
+
|
|
55
30
|
accessKeyId?: string;
|
|
56
|
-
|
|
57
|
-
* <p>The key that is used to sign the request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
|
|
58
|
-
* <i>AWS IAM User Guide</i>.</p>
|
|
59
|
-
*/
|
|
31
|
+
|
|
60
32
|
secretAccessKey?: string;
|
|
61
|
-
|
|
62
|
-
* <p>The token used for temporary credentials. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
|
|
63
|
-
* <i>AWS IAM User Guide</i>.</p>
|
|
64
|
-
*/
|
|
33
|
+
|
|
65
34
|
sessionToken?: string;
|
|
66
|
-
|
|
67
|
-
* <p>The date on which temporary security credentials expire.</p>
|
|
68
|
-
*/
|
|
35
|
+
|
|
69
36
|
expiration?: number;
|
|
70
37
|
}
|
|
71
38
|
export declare namespace RoleCredentials {
|
|
72
|
-
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
39
|
+
|
|
75
40
|
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
76
41
|
}
|
|
77
42
|
export interface GetRoleCredentialsResponse {
|
|
78
|
-
|
|
79
|
-
* <p>The credentials for the role that is assigned to the user.</p>
|
|
80
|
-
*/
|
|
43
|
+
|
|
81
44
|
roleCredentials?: RoleCredentials;
|
|
82
45
|
}
|
|
83
46
|
export declare namespace GetRoleCredentialsResponse {
|
|
84
|
-
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
47
|
+
|
|
87
48
|
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
88
49
|
}
|
|
89
|
-
|
|
90
|
-
* <p>Indicates that a problem occurred with the input to the request. For example, a required
|
|
91
|
-
* parameter might be missing or out of range.</p>
|
|
92
|
-
*/
|
|
50
|
+
|
|
93
51
|
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
94
52
|
name: "InvalidRequestException";
|
|
95
53
|
$fault: "client";
|
|
96
54
|
message?: string;
|
|
97
55
|
}
|
|
98
56
|
export declare namespace InvalidRequestException {
|
|
99
|
-
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
57
|
+
|
|
102
58
|
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
103
59
|
}
|
|
104
|
-
|
|
105
|
-
* <p>The specified resource doesn't exist.</p>
|
|
106
|
-
*/
|
|
60
|
+
|
|
107
61
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
108
62
|
name: "ResourceNotFoundException";
|
|
109
63
|
$fault: "client";
|
|
110
64
|
message?: string;
|
|
111
65
|
}
|
|
112
66
|
export declare namespace ResourceNotFoundException {
|
|
113
|
-
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
67
|
+
|
|
116
68
|
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
117
69
|
}
|
|
118
|
-
|
|
119
|
-
* <p>Indicates that the request is being made too frequently and is more than what the server can handle.</p>
|
|
120
|
-
*/
|
|
70
|
+
|
|
121
71
|
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
122
72
|
name: "TooManyRequestsException";
|
|
123
73
|
$fault: "client";
|
|
124
74
|
message?: string;
|
|
125
75
|
}
|
|
126
76
|
export declare namespace TooManyRequestsException {
|
|
127
|
-
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
77
|
+
|
|
130
78
|
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
131
79
|
}
|
|
132
|
-
|
|
133
|
-
* <p>Indicates that the request is not authorized. This can happen due to an invalid access token in the request.</p>
|
|
134
|
-
*/
|
|
80
|
+
|
|
135
81
|
export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
|
|
136
82
|
name: "UnauthorizedException";
|
|
137
83
|
$fault: "client";
|
|
138
84
|
message?: string;
|
|
139
85
|
}
|
|
140
86
|
export declare namespace UnauthorizedException {
|
|
141
|
-
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
87
|
+
|
|
144
88
|
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
145
89
|
}
|
|
146
90
|
export interface ListAccountRolesRequest {
|
|
147
|
-
|
|
148
|
-
* <p>The page token from the previous response output when you request subsequent pages.</p>
|
|
149
|
-
*/
|
|
91
|
+
|
|
150
92
|
nextToken?: string;
|
|
151
|
-
|
|
152
|
-
* <p>The number of items that clients can request per page.</p>
|
|
153
|
-
*/
|
|
93
|
+
|
|
154
94
|
maxResults?: number;
|
|
155
|
-
|
|
156
|
-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
157
|
-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
|
|
158
|
-
*/
|
|
95
|
+
|
|
159
96
|
accessToken: string | undefined;
|
|
160
|
-
|
|
161
|
-
* <p>The identifier for the AWS account that is assigned to the user.</p>
|
|
162
|
-
*/
|
|
97
|
+
|
|
163
98
|
accountId: string | undefined;
|
|
164
99
|
}
|
|
165
100
|
export declare namespace ListAccountRolesRequest {
|
|
166
|
-
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
101
|
+
|
|
169
102
|
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
170
103
|
}
|
|
171
|
-
|
|
172
|
-
* <p>Provides information about the role that is assigned to the user.</p>
|
|
173
|
-
*/
|
|
104
|
+
|
|
174
105
|
export interface RoleInfo {
|
|
175
|
-
|
|
176
|
-
* <p>The friendly name of the role that is assigned to the user.</p>
|
|
177
|
-
*/
|
|
106
|
+
|
|
178
107
|
roleName?: string;
|
|
179
|
-
|
|
180
|
-
* <p>The identifier of the AWS account assigned to the user.</p>
|
|
181
|
-
*/
|
|
108
|
+
|
|
182
109
|
accountId?: string;
|
|
183
110
|
}
|
|
184
111
|
export declare namespace RoleInfo {
|
|
185
|
-
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
112
|
+
|
|
188
113
|
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
189
114
|
}
|
|
190
115
|
export interface ListAccountRolesResponse {
|
|
191
|
-
|
|
192
|
-
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
193
|
-
*/
|
|
116
|
+
|
|
194
117
|
nextToken?: string;
|
|
195
|
-
|
|
196
|
-
* <p>A paginated response with the list of roles and the next token if more results are available.</p>
|
|
197
|
-
*/
|
|
118
|
+
|
|
198
119
|
roleList?: RoleInfo[];
|
|
199
120
|
}
|
|
200
121
|
export declare namespace ListAccountRolesResponse {
|
|
201
|
-
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
122
|
+
|
|
204
123
|
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
205
124
|
}
|
|
206
125
|
export interface ListAccountsRequest {
|
|
207
|
-
|
|
208
|
-
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
|
|
209
|
-
*/
|
|
126
|
+
|
|
210
127
|
nextToken?: string;
|
|
211
|
-
|
|
212
|
-
* <p>This is the number of items clients can request per page.</p>
|
|
213
|
-
*/
|
|
128
|
+
|
|
214
129
|
maxResults?: number;
|
|
215
|
-
|
|
216
|
-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
217
|
-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
|
|
218
|
-
*/
|
|
130
|
+
|
|
219
131
|
accessToken: string | undefined;
|
|
220
132
|
}
|
|
221
133
|
export declare namespace ListAccountsRequest {
|
|
222
|
-
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
134
|
+
|
|
225
135
|
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
226
136
|
}
|
|
227
137
|
export interface ListAccountsResponse {
|
|
228
|
-
|
|
229
|
-
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
230
|
-
*/
|
|
138
|
+
|
|
231
139
|
nextToken?: string;
|
|
232
|
-
|
|
233
|
-
* <p>A paginated response with the list of account information and the next token if more results are available.</p>
|
|
234
|
-
*/
|
|
140
|
+
|
|
235
141
|
accountList?: AccountInfo[];
|
|
236
142
|
}
|
|
237
143
|
export declare namespace ListAccountsResponse {
|
|
238
|
-
|
|
239
|
-
* @internal
|
|
240
|
-
*/
|
|
144
|
+
|
|
241
145
|
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
242
146
|
}
|
|
243
147
|
export interface LogoutRequest {
|
|
244
|
-
|
|
245
|
-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
246
|
-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
|
|
247
|
-
*/
|
|
148
|
+
|
|
248
149
|
accessToken: string | undefined;
|
|
249
150
|
}
|
|
250
151
|
export declare namespace LogoutRequest {
|
|
251
|
-
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
152
|
+
|
|
254
153
|
const filterSensitiveLog: (obj: LogoutRequest) => any;
|
|
255
154
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { SSOClientConfig } from "./SSOClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { SSOClientConfig } from "./SSOClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.39.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -19,37 +19,37 @@
|
|
|
19
19
|
"module": "./dist-es/index.js",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-crypto/sha256-browser": "
|
|
23
|
-
"@aws-crypto/sha256-js": "
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
46
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
48
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
22
|
+
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
|
+
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.39.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.38.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.38.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.38.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.38.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.38.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.38.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.39.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.38.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.38.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.38.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.39.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.38.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.38.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.38.0",
|
|
39
|
+
"@aws-sdk/types": "3.38.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.38.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.37.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-browser": "3.38.0",
|
|
46
|
+
"@aws-sdk/util-user-agent-node": "3.39.0",
|
|
47
|
+
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
48
|
+
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
49
49
|
"tslib": "^2.3.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
52
|
+
"@aws-sdk/service-client-documentation-generator": "3.38.0",
|
|
53
53
|
"@types/node": "^12.7.5",
|
|
54
54
|
"downlevel-dts": "0.7.0",
|
|
55
55
|
"jest": "^26.1.0",
|