@aws-sdk/client-signin 3.1155.0 → 3.1157.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 -2
- package/dist-cjs/index.js +120 -3
- package/dist-es/Signin.js +2 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +6 -0
- package/dist-es/commands/CreateOAuth2TokenWithTokenExchangeCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +7 -0
- package/dist-es/models/errors.js +46 -0
- package/dist-es/schemas/schemas_0.js +48 -3
- package/dist-types/Signin.d.ts +8 -2
- package/dist-types/SigninClient.d.ts +4 -4
- package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/dist-types/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +96 -0
- package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -25
- package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +6 -40
- package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +4 -31
- package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +5 -38
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -2
- package/dist-types/models/enums.d.ts +16 -9
- package/dist-types/models/errors.d.ts +63 -39
- package/dist-types/models/models_0.d.ts +113 -68
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/Signin.d.ts +17 -0
- package/dist-types/ts3.4/SigninClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +7 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +6 -6
|
@@ -1,68 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AWS credentials
|
|
3
|
-
*
|
|
4
|
-
* Scoped, temporary AWS credentials with a 15-minute duration.
|
|
2
|
+
* Contains the scoped, temporary AWS credentials used to sign requests with SigV4. Valid for 15 minutes.
|
|
5
3
|
* @public
|
|
6
4
|
*/
|
|
7
5
|
export interface AccessToken {
|
|
8
6
|
/**
|
|
9
|
-
* AWS access key ID for temporary credentials
|
|
7
|
+
* The AWS access key ID for the temporary credentials.
|
|
10
8
|
* @public
|
|
11
9
|
*/
|
|
12
10
|
accessKeyId: string | undefined;
|
|
13
11
|
/**
|
|
14
|
-
* AWS secret access key
|
|
12
|
+
* The AWS secret access key used to sign requests.
|
|
15
13
|
* @public
|
|
16
14
|
*/
|
|
17
15
|
secretAccessKey: string | undefined;
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
17
|
+
* The session token that validates the temporary security credentials.
|
|
20
18
|
* @public
|
|
21
19
|
*/
|
|
22
20
|
sessionToken: string | undefined;
|
|
23
21
|
}
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* The operation type is determined by the grant_type parameter:
|
|
28
|
-
* - grant_type=authorization_code: Requires code, redirect_uri, code_verifier
|
|
29
|
-
* - grant_type=refresh_token: Requires refresh_token
|
|
23
|
+
* The request body for creating an OAuth 2.0 token. Supports both the authorization code and
|
|
24
|
+
* refresh token flows, selected by the "grant_type" parameter.
|
|
30
25
|
* @public
|
|
31
26
|
*/
|
|
32
27
|
export interface CreateOAuth2TokenRequestBody {
|
|
33
28
|
/**
|
|
34
|
-
* The client identifier
|
|
35
|
-
*
|
|
29
|
+
* The OAuth 2.0 client identifier. Expected values: "arn:aws:signin:::devtools/same-device"
|
|
30
|
+
* or "arn:aws:signin:::devtools/cross-device".
|
|
36
31
|
* @public
|
|
37
32
|
*/
|
|
38
33
|
clientId: string | undefined;
|
|
39
34
|
/**
|
|
40
|
-
* OAuth 2.0 grant type
|
|
41
|
-
*
|
|
35
|
+
* The OAuth 2.0 grant type. Supported values:
|
|
36
|
+
* - "authorization_code" - Exchange an authorization code for tokens.
|
|
37
|
+
* - "refresh_token" - Use a refresh token to obtain a new access token.
|
|
42
38
|
* @public
|
|
43
39
|
*/
|
|
44
40
|
grantType: string | undefined;
|
|
45
41
|
/**
|
|
46
|
-
* The authorization code received from /v1/authorize
|
|
47
|
-
* Required
|
|
42
|
+
* The authorization code received from the "/v1/authorize" endpoint.
|
|
43
|
+
* Required when "grant_type=authorization_code".
|
|
48
44
|
* @public
|
|
49
45
|
*/
|
|
50
46
|
code?: string | undefined;
|
|
51
47
|
/**
|
|
52
|
-
* The redirect URI that
|
|
53
|
-
* Required
|
|
48
|
+
* The redirect URI that was used in the original authorization request. Must match exactly.
|
|
49
|
+
* Required when "grant_type=authorization_code".
|
|
54
50
|
* @public
|
|
55
51
|
*/
|
|
56
52
|
redirectUri?: string | undefined;
|
|
57
53
|
/**
|
|
58
|
-
* PKCE code verifier
|
|
59
|
-
* Required
|
|
54
|
+
* The PKCE code verifier that proves possession of the original code challenge.
|
|
55
|
+
* Required when "grant_type=authorization_code".
|
|
60
56
|
* @public
|
|
61
57
|
*/
|
|
62
58
|
codeVerifier?: string | undefined;
|
|
63
59
|
/**
|
|
64
|
-
* The refresh token
|
|
65
|
-
* Required
|
|
60
|
+
* The refresh token issued by a previous token response.
|
|
61
|
+
* Required when "grant_type=refresh_token".
|
|
66
62
|
* @public
|
|
67
63
|
*/
|
|
68
64
|
refreshToken?: string | undefined;
|
|
@@ -76,49 +72,41 @@ export interface CreateOAuth2TokenRequestBody {
|
|
|
76
72
|
*/
|
|
77
73
|
export interface CreateOAuth2TokenRequest {
|
|
78
74
|
/**
|
|
79
|
-
* Flattened token operation inputs
|
|
80
|
-
* The specific operation is determined by grant_type in the request body
|
|
75
|
+
* Flattened token operation inputs. The "grant_type" in the request body determines the specific operation.
|
|
81
76
|
* @public
|
|
82
77
|
*/
|
|
83
78
|
tokenInput: CreateOAuth2TokenRequestBody | undefined;
|
|
84
79
|
}
|
|
85
80
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* The response content depends on the grant_type from the request:
|
|
89
|
-
* - grant_type=authorization_code: Returns all fields including refresh_token and id_token
|
|
90
|
-
* - grant_type=refresh_token: Returns access_token, token_type, expires_in, refresh_token (no id_token)
|
|
81
|
+
* The response body for an OAuth 2.0 token request. The fields returned depend on the "grant_type".
|
|
82
|
+
* The authorization code flow returns "refresh_token" and "id_token". The refresh token flow omits "id_token".
|
|
91
83
|
* @public
|
|
92
84
|
*/
|
|
93
85
|
export interface CreateOAuth2TokenResponseBody {
|
|
94
86
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
87
|
+
* The access token issued by the authorization server. The token contains temporary
|
|
88
|
+
* AWS security credentials that you use to sign requests with SigV4.
|
|
97
89
|
* @public
|
|
98
90
|
*/
|
|
99
91
|
accessToken: AccessToken | undefined;
|
|
100
92
|
/**
|
|
101
|
-
*
|
|
102
|
-
* Value is "aws_sigv4" for both flows
|
|
93
|
+
* The type of token issued. Value is "aws_sigv4".
|
|
103
94
|
* @public
|
|
104
95
|
*/
|
|
105
96
|
tokenType: string | undefined;
|
|
106
97
|
/**
|
|
107
|
-
*
|
|
108
|
-
* Present for both authorization code redemption and token refresh
|
|
98
|
+
* The number of seconds until the access token expires. Maximum value is 900 seconds (15 minutes).
|
|
109
99
|
* @public
|
|
110
100
|
*/
|
|
111
101
|
expiresIn: number | undefined;
|
|
112
102
|
/**
|
|
113
|
-
*
|
|
114
|
-
* Always present in responses (required for both flows)
|
|
103
|
+
* A refresh token that can be used to obtain new access tokens without re-authenticating.
|
|
115
104
|
* @public
|
|
116
105
|
*/
|
|
117
106
|
refreshToken: string | undefined;
|
|
118
107
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* Not included in token refresh responses
|
|
108
|
+
* A JSON Web Token (JWT) containing user identity claims. Present only when
|
|
109
|
+
* "grant_type=authorization_code". Not included in refresh token responses.
|
|
122
110
|
* @public
|
|
123
111
|
*/
|
|
124
112
|
idToken?: string | undefined;
|
|
@@ -132,8 +120,8 @@ export interface CreateOAuth2TokenResponseBody {
|
|
|
132
120
|
*/
|
|
133
121
|
export interface CreateOAuth2TokenResponse {
|
|
134
122
|
/**
|
|
135
|
-
* Flattened token operation outputs
|
|
136
|
-
* The specific response fields depend on the grant_type used in the request
|
|
123
|
+
* Flattened token operation outputs.
|
|
124
|
+
* The specific response fields depend on the grant_type used in the request.
|
|
137
125
|
* @public
|
|
138
126
|
*/
|
|
139
127
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
@@ -144,7 +132,7 @@ export interface CreateOAuth2TokenResponse {
|
|
|
144
132
|
*/
|
|
145
133
|
export interface CreateOAuth2TokenWithIAMRequest {
|
|
146
134
|
/**
|
|
147
|
-
* OAuth 2.0 grant type. Must be "client_credentials".
|
|
135
|
+
* The OAuth 2.0 grant type. Must be "client_credentials".
|
|
148
136
|
* @public
|
|
149
137
|
*/
|
|
150
138
|
grantType: string | undefined;
|
|
@@ -158,22 +146,87 @@ export interface CreateOAuth2TokenWithIAMRequest {
|
|
|
158
146
|
/**
|
|
159
147
|
* Output structure for CreateOAuth2TokenWithIAM operation
|
|
160
148
|
*
|
|
161
|
-
* Contains the
|
|
149
|
+
* Contains the access token, token type, and expiration as defined in RFC 6749 §5.1.
|
|
162
150
|
* @public
|
|
163
151
|
*/
|
|
164
152
|
export interface CreateOAuth2TokenWithIAMResponse {
|
|
165
153
|
/**
|
|
166
|
-
*
|
|
154
|
+
* Access token containing principal identity, resource scope, and session metadata.
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
accessToken: string | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* The token type. Always "Bearer" as defined in RFC 6749.
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
tokenType: string | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Token lifetime in seconds. Value is the minimum of the caller's session validity and 1 hour (3600 seconds).
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
expiresIn: number | undefined;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Input structure for CreateOAuth2TokenWithTokenExchange operation
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
export interface CreateOAuth2TokenWithTokenExchangeRequest {
|
|
174
|
+
/**
|
|
175
|
+
* The OAuth 2.0 grant type. Currently only supports "urn:ietf:params:oauth:grant-type:token-exchange".
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
grantType: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* The subject token that represents the identity of the party on whose behalf the request is made.
|
|
181
|
+
* Required when "grant_type=urn:ietf:params:oauth:grant-type:token-exchange".
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
subjectToken?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* The token type of the subject token. Currently only supports "urn:ietf:params:oauth:token-type:jwt".
|
|
187
|
+
* Required when "grant_type=urn:ietf:params:oauth:grant-type:token-exchange".
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
subjectTokenType?: string | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* The OAuth resource for which the access token is requested.
|
|
193
|
+
* Required when "grant_type=urn:ietf:params:oauth:grant-type:token-exchange".
|
|
194
|
+
* Example: "glue.amazonaws.com".
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
resource?: string | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* IAM managed policy Amazon Resource Names (ARNs) to apply as session policies that further
|
|
200
|
+
* scope down the permissions of the issued access token, provided as a space-delimited list.
|
|
201
|
+
* Example: "arn:aws:iam::444455556666:policy/MyPolicy".
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
scope?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Output structure for CreateOAuth2TokenWithTokenExchange operation.
|
|
208
|
+
*
|
|
209
|
+
* Contains the access token, issued token type, token type, and expiration as defined in RFC 6749 §5.1 and RFC 8693 §2.2.1.
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export interface CreateOAuth2TokenWithTokenExchangeResponse {
|
|
213
|
+
/**
|
|
214
|
+
* Access token containing principal identity, resource scope, and session metadata.
|
|
167
215
|
* @public
|
|
168
216
|
*/
|
|
169
217
|
accessToken: string | undefined;
|
|
170
218
|
/**
|
|
171
|
-
* Always "
|
|
219
|
+
* The token type of the issued token. Always "urn:ietf:params:oauth:token-type:access_token" as defined in RFC 8693 §2.2.1.
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
issuedTokenType?: string | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* The token type. Currently only supports "Bearer" as defined in RFC 6749.
|
|
172
225
|
* @public
|
|
173
226
|
*/
|
|
174
227
|
tokenType: string | undefined;
|
|
175
228
|
/**
|
|
176
|
-
* Token lifetime in seconds. Value is the minimum of
|
|
229
|
+
* Token lifetime in seconds. Value is the minimum of the subject token's validity and 1 hour (3600 seconds).
|
|
177
230
|
* @public
|
|
178
231
|
*/
|
|
179
232
|
expiresIn: number | undefined;
|
|
@@ -337,15 +390,13 @@ export interface GetResourcePolicyOutput {
|
|
|
337
390
|
*/
|
|
338
391
|
export interface IntrospectOAuth2TokenWithIAMRequest {
|
|
339
392
|
/**
|
|
340
|
-
* The
|
|
341
|
-
* May be either an access_token or a refresh_token issued by AWS Sign-In.
|
|
393
|
+
* The access token or refresh token issued by AWS Sign-In.
|
|
342
394
|
* @public
|
|
343
395
|
*/
|
|
344
396
|
token: string | undefined;
|
|
345
397
|
/**
|
|
346
|
-
*
|
|
347
|
-
* The server
|
|
348
|
-
* the other token type on miss. Allowed values: access_token, refresh_token.
|
|
398
|
+
* An optional hint about the type of the token submitted for introspection, as defined in RFC 7662 §2.1.
|
|
399
|
+
* The server checks both token types regardless of the hint. Allowed values: "access_token", "refresh_token".
|
|
349
400
|
* @public
|
|
350
401
|
*/
|
|
351
402
|
tokenTypeHint?: string | undefined;
|
|
@@ -359,9 +410,8 @@ export interface IntrospectOAuth2TokenWithIAMRequest {
|
|
|
359
410
|
*/
|
|
360
411
|
export interface IntrospectOAuth2TokenWithIAMResponse {
|
|
361
412
|
/**
|
|
362
|
-
* Indicates whether the token is currently active.
|
|
363
|
-
*
|
|
364
|
-
* the caller's account.
|
|
413
|
+
* Indicates whether the token is currently active. Returns "true" only when the token is valid,
|
|
414
|
+
* has not expired, has not been revoked, and belongs to the caller's account.
|
|
365
415
|
* @public
|
|
366
416
|
*/
|
|
367
417
|
active: boolean | undefined;
|
|
@@ -371,9 +421,7 @@ export interface IntrospectOAuth2TokenWithIAMResponse {
|
|
|
371
421
|
*/
|
|
372
422
|
clientId?: string | undefined;
|
|
373
423
|
/**
|
|
374
|
-
* User identifier matching
|
|
375
|
-
* token's subject principal (e.g. "AIDAEXAMPLE" for an IAM user, or
|
|
376
|
-
* "AROAEXAMPLE:session-name" for an assumed role).
|
|
424
|
+
* User identifier matching the "UserId" field from "sts:GetCallerIdentity" for the token's subject principal.
|
|
377
425
|
* @public
|
|
378
426
|
*/
|
|
379
427
|
userId?: string | undefined;
|
|
@@ -399,15 +447,13 @@ export interface IntrospectOAuth2TokenWithIAMResponse {
|
|
|
399
447
|
*/
|
|
400
448
|
nbf?: number | undefined;
|
|
401
449
|
/**
|
|
402
|
-
*
|
|
403
|
-
* this is the session ARN (matches sts:GetCallerIdentity's `Arn` field),
|
|
404
|
-
* e.g. arn:aws:sts::123456789012:assumed-role/MyRole/session-name.
|
|
450
|
+
* The IAM principal Amazon Resource Name (ARN). For assumed-role sessions, this is the session ARN.
|
|
405
451
|
* @public
|
|
406
452
|
*/
|
|
407
453
|
sub?: string | undefined;
|
|
408
454
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
455
|
+
* The OAuth resource the token is scoped to. Omitted for refresh tokens.
|
|
456
|
+
* Example: "aws-mcp.amazonaws.com".
|
|
411
457
|
* @public
|
|
412
458
|
*/
|
|
413
459
|
aud?: string | undefined;
|
|
@@ -433,8 +479,7 @@ export interface IntrospectOAuth2TokenWithIAMResponse {
|
|
|
433
479
|
*/
|
|
434
480
|
signinSession?: string | undefined;
|
|
435
481
|
/**
|
|
436
|
-
* The OAuth resource the token is scoped to
|
|
437
|
-
* Only present for refresh token introspection.
|
|
482
|
+
* The OAuth resource the token is scoped to. Only present for refresh token introspection.
|
|
438
483
|
* @public
|
|
439
484
|
*/
|
|
440
485
|
resource?: string | undefined;
|
|
@@ -585,8 +630,8 @@ export interface PutResourcePermissionStatementOutput {
|
|
|
585
630
|
*/
|
|
586
631
|
export interface RevokeOAuth2TokenWithIAMRequest {
|
|
587
632
|
/**
|
|
588
|
-
* The
|
|
589
|
-
*
|
|
633
|
+
* The refresh token to revoke. Must be a refresh token issued by AWS Sign-In.
|
|
634
|
+
* Access tokens are not accepted for revocation.
|
|
590
635
|
* @public
|
|
591
636
|
*/
|
|
592
637
|
token: string | undefined;
|
|
@@ -4,8 +4,11 @@ export declare var SigninServiceException$: StaticErrorSchema;
|
|
|
4
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
5
|
export declare var ConflictException$: StaticErrorSchema;
|
|
6
6
|
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidGrantException$: StaticErrorSchema;
|
|
8
|
+
export declare var InvalidScopeException$: StaticErrorSchema;
|
|
7
9
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
10
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
11
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
9
12
|
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
10
13
|
export declare var ValidationException$: StaticErrorSchema;
|
|
11
14
|
/**
|
|
@@ -21,6 +24,8 @@ export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
|
21
24
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
22
25
|
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
|
|
23
26
|
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
27
|
+
export declare var CreateOAuth2TokenWithTokenExchangeRequest$: StaticStructureSchema;
|
|
28
|
+
export declare var CreateOAuth2TokenWithTokenExchangeResponse$: StaticStructureSchema;
|
|
24
29
|
export declare var DeleteConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
|
|
25
30
|
export declare var DeleteConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
|
|
26
31
|
export declare var DeleteResourcePermissionStatementInput$: StaticStructureSchema;
|
|
@@ -44,6 +49,7 @@ export declare var RevokeOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
|
44
49
|
export declare var SigninResourceBasedPolicy$: StaticStructureSchema;
|
|
45
50
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
46
51
|
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
|
|
52
|
+
export declare var CreateOAuth2TokenWithTokenExchange$: StaticOperationSchema;
|
|
47
53
|
export declare var DeleteConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
48
54
|
export declare var DeleteResourcePermissionStatement$: StaticOperationSchema;
|
|
49
55
|
export declare var GetConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
CreateOAuth2TokenWithIAMCommandInput,
|
|
13
13
|
CreateOAuth2TokenWithIAMCommandOutput,
|
|
14
14
|
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
15
|
+
import {
|
|
16
|
+
CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
17
|
+
CreateOAuth2TokenWithTokenExchangeCommandOutput,
|
|
18
|
+
} from "./commands/CreateOAuth2TokenWithTokenExchangeCommand";
|
|
15
19
|
import {
|
|
16
20
|
DeleteConsoleAuthorizationConfigurationCommandInput,
|
|
17
21
|
DeleteConsoleAuthorizationConfigurationCommandOutput,
|
|
@@ -79,6 +83,19 @@ export interface Signin {
|
|
|
79
83
|
options: SigninRequestOptions,
|
|
80
84
|
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void,
|
|
81
85
|
): void;
|
|
86
|
+
createOAuth2TokenWithTokenExchange(
|
|
87
|
+
args: CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
88
|
+
options?: SigninRequestOptions,
|
|
89
|
+
): Promise<CreateOAuth2TokenWithTokenExchangeCommandOutput>;
|
|
90
|
+
createOAuth2TokenWithTokenExchange(
|
|
91
|
+
args: CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
92
|
+
cb: (err: any, data?: CreateOAuth2TokenWithTokenExchangeCommandOutput) => void,
|
|
93
|
+
): void;
|
|
94
|
+
createOAuth2TokenWithTokenExchange(
|
|
95
|
+
args: CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
96
|
+
options: SigninRequestOptions,
|
|
97
|
+
cb: (err: any, data?: CreateOAuth2TokenWithTokenExchangeCommandOutput) => void,
|
|
98
|
+
): void;
|
|
82
99
|
deleteConsoleAuthorizationConfiguration(): Promise<DeleteConsoleAuthorizationConfigurationCommandOutput>;
|
|
83
100
|
deleteConsoleAuthorizationConfiguration(
|
|
84
101
|
args: DeleteConsoleAuthorizationConfigurationCommandInput,
|
|
@@ -41,6 +41,10 @@ import {
|
|
|
41
41
|
CreateOAuth2TokenWithIAMCommandInput,
|
|
42
42
|
CreateOAuth2TokenWithIAMCommandOutput,
|
|
43
43
|
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
44
|
+
import {
|
|
45
|
+
CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
46
|
+
CreateOAuth2TokenWithTokenExchangeCommandOutput,
|
|
47
|
+
} from "./commands/CreateOAuth2TokenWithTokenExchangeCommand";
|
|
44
48
|
import {
|
|
45
49
|
DeleteConsoleAuthorizationConfigurationCommandInput,
|
|
46
50
|
DeleteConsoleAuthorizationConfigurationCommandOutput,
|
|
@@ -87,6 +91,7 @@ export { __Client };
|
|
|
87
91
|
export type ServiceInputTypes =
|
|
88
92
|
| CreateOAuth2TokenCommandInput
|
|
89
93
|
| CreateOAuth2TokenWithIAMCommandInput
|
|
94
|
+
| CreateOAuth2TokenWithTokenExchangeCommandInput
|
|
90
95
|
| DeleteConsoleAuthorizationConfigurationCommandInput
|
|
91
96
|
| DeleteResourcePermissionStatementCommandInput
|
|
92
97
|
| GetConsoleAuthorizationConfigurationCommandInput
|
|
@@ -99,6 +104,7 @@ export type ServiceInputTypes =
|
|
|
99
104
|
export type ServiceOutputTypes =
|
|
100
105
|
| CreateOAuth2TokenCommandOutput
|
|
101
106
|
| CreateOAuth2TokenWithIAMCommandOutput
|
|
107
|
+
| CreateOAuth2TokenWithTokenExchangeCommandOutput
|
|
102
108
|
| DeleteConsoleAuthorizationConfigurationCommandOutput
|
|
103
109
|
| DeleteResourcePermissionStatementCommandOutput
|
|
104
110
|
| GetConsoleAuthorizationConfigurationCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
CreateOAuth2TokenWithTokenExchangeRequest,
|
|
4
|
+
CreateOAuth2TokenWithTokenExchangeResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface CreateOAuth2TokenWithTokenExchangeCommandInput extends CreateOAuth2TokenWithTokenExchangeRequest {}
|
|
8
|
+
export interface CreateOAuth2TokenWithTokenExchangeCommandOutput
|
|
9
|
+
extends CreateOAuth2TokenWithTokenExchangeResponse, __MetadataBearer {}
|
|
10
|
+
declare const CreateOAuth2TokenWithTokenExchangeCommand_base: {
|
|
11
|
+
new (
|
|
12
|
+
input: CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
13
|
+
): import("@smithy/core/client").CommandImpl<
|
|
14
|
+
CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
15
|
+
CreateOAuth2TokenWithTokenExchangeCommandOutput,
|
|
16
|
+
import("..").SigninClientResolvedConfig,
|
|
17
|
+
import("..").ServiceInputTypes,
|
|
18
|
+
import("..").ServiceOutputTypes
|
|
19
|
+
>;
|
|
20
|
+
new (
|
|
21
|
+
input: CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
22
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
CreateOAuth2TokenWithTokenExchangeCommandInput,
|
|
24
|
+
CreateOAuth2TokenWithTokenExchangeCommandOutput,
|
|
25
|
+
import("..").SigninClientResolvedConfig,
|
|
26
|
+
import("..").ServiceInputTypes,
|
|
27
|
+
import("..").ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
|
+
};
|
|
31
|
+
export declare class CreateOAuth2TokenWithTokenExchangeCommand extends CreateOAuth2TokenWithTokenExchangeCommand_base {
|
|
32
|
+
protected static __types: {
|
|
33
|
+
api: {
|
|
34
|
+
input: CreateOAuth2TokenWithTokenExchangeRequest;
|
|
35
|
+
output: CreateOAuth2TokenWithTokenExchangeResponse;
|
|
36
|
+
};
|
|
37
|
+
sdk: {
|
|
38
|
+
input: CreateOAuth2TokenWithTokenExchangeCommandInput;
|
|
39
|
+
output: CreateOAuth2TokenWithTokenExchangeCommandOutput;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./CreateOAuth2TokenCommand";
|
|
2
2
|
export * from "./CreateOAuth2TokenWithIAMCommand";
|
|
3
|
+
export * from "./CreateOAuth2TokenWithTokenExchangeCommand";
|
|
3
4
|
export * from "./DeleteConsoleAuthorizationConfigurationCommand";
|
|
4
5
|
export * from "./DeleteResourcePermissionStatementCommand";
|
|
5
6
|
export * from "./GetConsoleAuthorizationConfigurationCommand";
|
|
@@ -3,6 +3,13 @@ export declare const OAuth2ErrorCode: {
|
|
|
3
3
|
readonly CONFLICT: "CONFLICT";
|
|
4
4
|
readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS";
|
|
5
5
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
6
|
+
readonly OAUTH_INVALID_GRANT: "invalid_grant";
|
|
7
|
+
readonly OAUTH_INVALID_REQUEST: "invalid_request";
|
|
8
|
+
readonly OAUTH_INVALID_SCOPE: "invalid_scope";
|
|
9
|
+
readonly OAUTH_INVALID_TARGET: "invalid_target";
|
|
10
|
+
readonly OAUTH_RATE_EXCEEDED: "rate_exceeded";
|
|
11
|
+
readonly OAUTH_SERVICE_UNAVAILABLE: "service_unavailable";
|
|
12
|
+
readonly OAUTH_UNSUPPORTED_GRANT_TYPE: "unsupported_grant_type";
|
|
6
13
|
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
7
14
|
readonly SERVER_ERROR: "server_error";
|
|
8
15
|
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
@@ -36,6 +36,28 @@ export declare class ValidationException extends __BaseException {
|
|
|
36
36
|
error: OAuth2ErrorCode | undefined;
|
|
37
37
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
38
38
|
}
|
|
39
|
+
export declare class InvalidGrantException extends __BaseException {
|
|
40
|
+
static readonly shapeId: string;
|
|
41
|
+
readonly name: "InvalidGrantException";
|
|
42
|
+
readonly $fault: "client";
|
|
43
|
+
error: OAuth2ErrorCode | undefined;
|
|
44
|
+
constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
|
|
45
|
+
}
|
|
46
|
+
export declare class InvalidScopeException extends __BaseException {
|
|
47
|
+
static readonly shapeId: string;
|
|
48
|
+
readonly name: "InvalidScopeException";
|
|
49
|
+
readonly $fault: "client";
|
|
50
|
+
error: OAuth2ErrorCode | undefined;
|
|
51
|
+
constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
|
|
52
|
+
}
|
|
53
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
54
|
+
static readonly shapeId: string;
|
|
55
|
+
readonly name: "ServiceUnavailableException";
|
|
56
|
+
readonly $fault: "server";
|
|
57
|
+
$retryable: {};
|
|
58
|
+
error: OAuth2ErrorCode | undefined;
|
|
59
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
60
|
+
}
|
|
39
61
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
40
62
|
static readonly shapeId: string;
|
|
41
63
|
readonly name: "ResourceNotFoundException";
|
|
@@ -33,6 +33,19 @@ export interface CreateOAuth2TokenWithIAMResponse {
|
|
|
33
33
|
tokenType: string | undefined;
|
|
34
34
|
expiresIn: number | undefined;
|
|
35
35
|
}
|
|
36
|
+
export interface CreateOAuth2TokenWithTokenExchangeRequest {
|
|
37
|
+
grantType: string | undefined;
|
|
38
|
+
subjectToken?: string | undefined;
|
|
39
|
+
subjectTokenType?: string | undefined;
|
|
40
|
+
resource?: string | undefined;
|
|
41
|
+
scope?: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateOAuth2TokenWithTokenExchangeResponse {
|
|
44
|
+
accessToken: string | undefined;
|
|
45
|
+
issuedTokenType?: string | undefined;
|
|
46
|
+
tokenType: string | undefined;
|
|
47
|
+
expiresIn: number | undefined;
|
|
48
|
+
}
|
|
36
49
|
export interface DeleteConsoleAuthorizationConfigurationInput {
|
|
37
50
|
targetId?: string | undefined;
|
|
38
51
|
}
|
|
@@ -4,8 +4,11 @@ export declare var SigninServiceException$: StaticErrorSchema;
|
|
|
4
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
5
|
export declare var ConflictException$: StaticErrorSchema;
|
|
6
6
|
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidGrantException$: StaticErrorSchema;
|
|
8
|
+
export declare var InvalidScopeException$: StaticErrorSchema;
|
|
7
9
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
10
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
11
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
9
12
|
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
10
13
|
export declare var ValidationException$: StaticErrorSchema;
|
|
11
14
|
export declare const errorTypeRegistries: TypeRegistry[];
|
|
@@ -16,6 +19,8 @@ export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
|
16
19
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
17
20
|
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
|
|
18
21
|
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
22
|
+
export declare var CreateOAuth2TokenWithTokenExchangeRequest$: StaticStructureSchema;
|
|
23
|
+
export declare var CreateOAuth2TokenWithTokenExchangeResponse$: StaticStructureSchema;
|
|
19
24
|
export declare var DeleteConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
|
|
20
25
|
export declare var DeleteConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
|
|
21
26
|
export declare var DeleteResourcePermissionStatementInput$: StaticStructureSchema;
|
|
@@ -39,6 +44,7 @@ export declare var RevokeOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
|
39
44
|
export declare var SigninResourceBasedPolicy$: StaticStructureSchema;
|
|
40
45
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
41
46
|
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
|
|
47
|
+
export declare var CreateOAuth2TokenWithTokenExchange$: StaticOperationSchema;
|
|
42
48
|
export declare var DeleteConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
43
49
|
export declare var DeleteResourcePermissionStatement$: StaticOperationSchema;
|
|
44
50
|
export declare var GetConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-signin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1157.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Signin Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-signin",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/core": "^3.978.
|
|
54
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
53
|
+
"@aws-sdk/core": "^3.978.6",
|
|
54
|
+
"@aws-sdk/credential-provider-node": "^3.972.89",
|
|
55
55
|
"@aws-sdk/types": "^3.975.0",
|
|
56
|
-
"@smithy/core": "^3.
|
|
56
|
+
"@smithy/core": "^3.37.0",
|
|
57
57
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
58
|
-
"@smithy/node-http-handler": "^4.
|
|
58
|
+
"@smithy/node-http-handler": "^4.13.0",
|
|
59
59
|
"@smithy/types": "^4.19.0",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/snapshot-testing": "^2.
|
|
63
|
+
"@smithy/snapshot-testing": "^2.4.0",
|
|
64
64
|
"@tsconfig/node20": "20.1.8",
|
|
65
65
|
"@types/node": "^20.14.8",
|
|
66
66
|
"concurrently": "7.0.0",
|