@aws-sdk/client-signin 3.1082.0 → 3.1084.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 (39) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +194 -81
  3. package/dist-es/Signin.js +6 -0
  4. package/dist-es/commandBuilder.js +3 -0
  5. package/dist-es/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
  6. package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +2 -2
  7. package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +2 -2
  8. package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +2 -2
  9. package/dist-es/commands/GetResourcePolicyCommand.js +2 -2
  10. package/dist-es/commands/IntrospectOAuth2TokenWithIAMCommand.js +4 -0
  11. package/dist-es/commands/ListResourcePermissionStatementsCommand.js +2 -2
  12. package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +2 -2
  13. package/dist-es/commands/PutResourcePermissionStatementCommand.js +2 -2
  14. package/dist-es/commands/RevokeOAuth2TokenWithIAMCommand.js +4 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/endpoint/bdd.js +80 -70
  17. package/dist-es/endpoint/endpointResolver.js +1 -1
  18. package/dist-es/schemas/schemas_0.js +78 -2
  19. package/dist-types/Signin.d.ts +21 -0
  20. package/dist-types/SigninClient.d.ts +5 -2
  21. package/dist-types/commandBuilder.d.ts +4 -0
  22. package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
  23. package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +134 -0
  24. package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +114 -0
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  27. package/dist-types/models/models_0.d.ts +175 -3
  28. package/dist-types/schemas/schemas_0.d.ts +9 -0
  29. package/dist-types/ts3.4/Signin.d.ts +51 -0
  30. package/dist-types/ts3.4/SigninClient.d.ts +20 -2
  31. package/dist-types/ts3.4/commandBuilder.d.ts +1 -0
  32. package/dist-types/ts3.4/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
  33. package/dist-types/ts3.4/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +44 -0
  34. package/dist-types/ts3.4/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +44 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  39. package/package.json +3 -3
package/README.md CHANGED
@@ -189,6 +189,13 @@ CreateOAuth2Token
189
189
  </details>
190
190
  <details>
191
191
  <summary>
192
+ CreateOAuth2TokenWithIAM
193
+ </summary>
194
+
195
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/CreateOAuth2TokenWithIAMCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenWithIAMCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenWithIAMCommandOutput/)
196
+ </details>
197
+ <details>
198
+ <summary>
192
199
  DeleteConsoleAuthorizationConfiguration
193
200
  </summary>
194
201
 
@@ -217,6 +224,13 @@ GetResourcePolicy
217
224
  </details>
218
225
  <details>
219
226
  <summary>
227
+ IntrospectOAuth2TokenWithIAM
228
+ </summary>
229
+
230
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/IntrospectOAuth2TokenWithIAMCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/IntrospectOAuth2TokenWithIAMCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/IntrospectOAuth2TokenWithIAMCommandOutput/)
231
+ </details>
232
+ <details>
233
+ <summary>
220
234
  ListResourcePermissionStatements
221
235
  </summary>
222
236
 
@@ -236,3 +250,10 @@ PutResourcePermissionStatement
236
250
 
237
251
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/PutResourcePermissionStatementCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutResourcePermissionStatementCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutResourcePermissionStatementCommandOutput/)
238
252
  </details>
253
+ <details>
254
+ <summary>
255
+ RevokeOAuth2TokenWithIAM
256
+ </summary>
257
+
258
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/RevokeOAuth2TokenWithIAMCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/RevokeOAuth2TokenWithIAMCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/RevokeOAuth2TokenWithIAMCommandOutput/)
259
+ </details>
package/dist-cjs/index.js CHANGED
@@ -79,58 +79,61 @@ const commonParams = {
79
79
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
80
80
  };
81
81
 
82
- var version = "3.1081.0";
82
+ var version = "3.1083.0";
83
83
  var packageInfo = {
84
84
  version: version};
85
85
 
86
- const p = "ref";
87
- const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
86
+ const s = "ref";
87
+ const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
88
88
  const _data = {
89
89
  conditions: [
90
- [c, o],
91
- [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
92
- [c, [i]],
93
- ["aws.partition", o, e],
94
- [d, [{ [p]: "UseFIPS" }, b]],
95
- [d, [{ [p]: "UseDualStack" }, b]],
96
- [f, [j, "aws"]],
97
- [f, [j, "aws-cn"]],
98
- [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
99
- [f, [l, "us-gov-west-1"]],
100
- [f, [j, "aws-us-gov"]],
101
- [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
102
- [f, [j, "aws-iso"]],
103
- [f, [j, "aws-iso-b"]],
104
- [f, [j, "aws-iso-f"]],
105
- [f, [j, "aws-iso-e"]],
106
- [f, [j, "aws-eusc"]]
90
+ [d, q],
91
+ [e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
92
+ [d, [k]],
93
+ ["aws.partition", q, g],
94
+ [e, [{ [s]: "UseFIPS" }, c]],
95
+ [h, [l, "aws"]],
96
+ [e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
97
+ [e, [{ [s]: "UseDualStack" }, c]],
98
+ [h, [l, "aws-cn"]],
99
+ [h, [m, "us-gov-west-1"]],
100
+ [h, [l, "aws-us-gov"]],
101
+ [e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
102
+ [h, [l, "aws-iso"]],
103
+ [h, [l, "aws-iso-b"]],
104
+ [h, [l, "aws-iso-f"]],
105
+ [h, [l, "aws-iso-e"]],
106
+ [h, [l, "aws-eusc"]],
107
+ [e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
107
108
  ],
108
109
  results: [
109
110
  [a],
110
- ["https://signin.{Region}.api.aws", m],
111
- ["https://signin.{Region}.api.amazonwebservices.com.cn", m],
112
- [h, m],
113
- ["https://{Region}.signin.aws.amazon.com", n],
114
- ["https://{Region}.signin.amazonaws.cn", n],
115
- ["https://{Region}.signin.amazonaws-us-gov.com", n],
116
- ["https://{Region}.signin.c2shome.ic.gov", n],
117
- ["https://{Region}.signin.sc2shome.sgov.gov", n],
118
- ["https://{Region}.signin.csphome.hci.ic.gov", n],
119
- ["https://{Region}.signin.csphome.adc-e.uk", n],
120
- ["https://{Region}.signin.amazonaws-eusc.eu", n],
121
- ["https://signin-fips.amazonaws-us-gov.com", n],
122
- ["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
123
- ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
111
+ ["https://signin.{Region}.api.aws", o],
112
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", o],
113
+ [j, o],
114
+ [a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
115
+ ["https://{Region}.oauth.signin.aws", o],
116
+ ["https://{Region}.signin.aws.amazon.com", p],
117
+ ["https://{Region}.signin.amazonaws.cn", p],
118
+ ["https://{Region}.signin.amazonaws-us-gov.com", p],
119
+ ["https://{Region}.signin.c2shome.ic.gov", p],
120
+ ["https://{Region}.signin.sc2shome.sgov.gov", p],
121
+ ["https://{Region}.signin.csphome.hci.ic.gov", p],
122
+ ["https://{Region}.signin.csphome.adc-e.uk", p],
123
+ ["https://{Region}.signin.amazonaws-eusc.eu", p],
124
+ ["https://signin-fips.amazonaws-us-gov.com", p],
125
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
126
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
124
127
  [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
125
128
  [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
126
- [i, n],
127
- ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
129
+ [k, p],
130
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
128
131
  [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
129
- ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
132
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
130
133
  [a, "FIPS is enabled but this partition does not support FIPS"],
131
- [h, n],
134
+ [j, p],
132
135
  [a, "DualStack is enabled but this partition does not support DualStack"],
133
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
136
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
134
137
  [a, "Invalid Configuration: Missing Region"]
135
138
  ]
136
139
  };
@@ -138,44 +141,51 @@ const root = 2;
138
141
  const r = 100_000_000;
139
142
  const nodes = new Int32Array([
140
143
  -1, 1, -1,
141
- 0, 4, 3,
142
- 2, 30, r + 25,
143
- 1, 24, 5,
144
- 2, 30, 6,
145
- 3, 7, 26,
146
- 4, 18, 8,
147
- 5, 17, 9,
148
- 6, r + 4, 10,
149
- 7, r + 5, 11,
150
- 10, r + 6, 12,
151
- 12, r + 7, 13,
152
- 13, r + 8, 14,
153
- 14, r + 9, 15,
154
- 15, r + 10, 16,
155
- 16, r + 11, r + 14,
156
- 8, r + 22, r + 23,
157
- 5, 22, 19,
158
- 9, r + 12, 20,
159
- 10, r + 13, 21,
160
- 11, r + 20, r + 21,
161
- 8, 23, r + 19,
162
- 11, r + 18, r + 19,
163
- 2, 29, 25,
164
- 3, 32, 26,
165
- 4, 27, r + 25,
166
- 5, r + 25, 28,
167
- 9, r + 12, r + 25,
168
- 3, 32, 30,
169
- 4, r + 15, 31,
170
- 5, r + 16, r + 17,
171
- 6, r + 1, 33,
172
- 7, r + 2, r + 3,
144
+ 0, 6, 3,
145
+ 2, 36, 4,
146
+ 4, 5, r + 27,
147
+ 6, r + 4, r + 27,
148
+ 1, 29, 7,
149
+ 2, 36, 8,
150
+ 3, 9, 31,
151
+ 4, 22, 10,
152
+ 5, 19, 11,
153
+ 7, 21, 12,
154
+ 8, r + 7, 13,
155
+ 10, r + 8, 14,
156
+ 12, r + 9, 15,
157
+ 13, r + 10, 16,
158
+ 14, r + 11, 17,
159
+ 15, r + 12, 18,
160
+ 16, r + 13, r + 16,
161
+ 6, r + 5, 20,
162
+ 7, 21, r + 6,
163
+ 17, r + 24, r + 25,
164
+ 6, r + 4, 23,
165
+ 7, 27, 24,
166
+ 9, r + 14, 25,
167
+ 10, r + 15, 26,
168
+ 11, r + 22, r + 23,
169
+ 11, 28, r + 21,
170
+ 17, r + 20, r + 21,
171
+ 2, 35, 30,
172
+ 3, 39, 31,
173
+ 4, 32, r + 27,
174
+ 6, r + 4, 33,
175
+ 7, r + 27, 34,
176
+ 9, r + 14, r + 27,
177
+ 3, 39, 36,
178
+ 4, 38, 37,
179
+ 7, r + 18, r + 19,
180
+ 6, r + 4, r + 17,
181
+ 5, r + 1, 40,
182
+ 8, r + 2, r + 3,
173
183
  ]);
174
184
  const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
175
185
 
176
186
  const cache = new EndpointCache({
177
187
  size: 50,
178
- params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
188
+ params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
179
189
  });
180
190
  const defaultEndpointResolver = (endpointParams, context = {}) => {
181
191
  return cache.get(endpointParams, () => decideEndpoint(bdd, {
@@ -302,6 +312,9 @@ const _COATR = "CreateOAuth2TokenRequest";
302
312
  const _COATRB = "CreateOAuth2TokenRequestBody";
303
313
  const _COATRBr = "CreateOAuth2TokenResponseBody";
304
314
  const _COATRr = "CreateOAuth2TokenResponse";
315
+ const _COATWIAM = "CreateOAuth2TokenWithIAM";
316
+ const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
317
+ const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
305
318
  const _DCAC = "DeleteConsoleAuthorizationConfiguration";
306
319
  const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
307
320
  const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
@@ -315,10 +328,15 @@ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
315
328
  const _GRP = "GetResourcePolicy";
316
329
  const _GRPI = "GetResourcePolicyInput";
317
330
  const _GRPO = "GetResourcePolicyOutput";
331
+ const _IOATWIAM = "IntrospectOAuth2TokenWithIAM";
332
+ const _IOATWIAMR = "IntrospectOAuth2TokenWithIAMRequest";
333
+ const _IOATWIAMRn = "IntrospectOAuth2TokenWithIAMResponse";
318
334
  const _ISE = "InternalServerException";
335
+ const _IT = "IntrospectionToken";
319
336
  const _LRPS = "ListResourcePermissionStatements";
320
337
  const _LRPSI = "ListResourcePermissionStatementsInput";
321
338
  const _LRPSO = "ListResourcePermissionStatementsOutput";
339
+ const _OAAT = "OAuthAccessToken";
322
340
  const _P = "Principal";
323
341
  const _PCAC = "PutConsoleAuthorizationConfiguration";
324
342
  const _PCACI = "PutConsoleAuthorizationConfigurationInput";
@@ -332,35 +350,52 @@ const _PSSe = "PermissionStatementSummaries";
332
350
  const _PSo = "PolicyStatements";
333
351
  const _R = "Resource";
334
352
  const _RNFE = "ResourceNotFoundException";
353
+ const _ROATWIAM = "RevokeOAuth2TokenWithIAM";
354
+ const _ROATWIAMR = "RevokeOAuth2TokenWithIAMRequest";
355
+ const _ROATWIAMRe = "RevokeOAuth2TokenWithIAMResponse";
335
356
  const _RT = "RefreshToken";
357
+ const _RTe = "RevocationToken";
336
358
  const _S = "Statement";
337
359
  const _SQEE = "ServiceQuotaExceededException";
338
360
  const _SRBP = "SigninResourceBasedPolicy";
339
361
  const _TMRE = "TooManyRequestsError";
340
362
  const _V = "Version";
341
363
  const _VE = "ValidationException";
342
- const _a = "action";
364
+ const _a = "active";
365
+ const _aI = "accountId";
343
366
  const _aKI = "accessKeyId";
344
367
  const _aT = "accessToken";
368
+ const _ac = "action";
369
+ const _ai = "account_id";
370
+ const _at = "access_token";
371
+ const _au = "aud";
345
372
  const _c = "client";
346
373
  const _cAE = "consoleAuthorizationEnabled";
347
374
  const _cI = "clientId";
348
375
  const _cSV = "consoleSourceVpce";
349
376
  const _cT = "clientToken";
350
377
  const _cV = "codeVerifier";
378
+ const _ci = "client_id";
351
379
  const _co = "code";
352
380
  const _con = "condition";
353
381
  const _e = "error";
354
382
  const _eI = "expiresIn";
355
383
  const _eP = "excludedPrincipal";
356
384
  const _ef = "effect";
385
+ const _ei = "expires_in";
386
+ const _ex = "exp";
357
387
  const _gT = "grantType";
388
+ const _gt = "grant_type";
358
389
  const _h = "http";
359
390
  const _hE = "httpError";
391
+ const _i = "iat";
360
392
  const _iT = "idToken";
393
+ const _is = "iss";
394
+ const _j = "jti";
361
395
  const _jN = "jsonName";
362
396
  const _m = "message";
363
397
  const _mR = "maxResults";
398
+ const _n = "nbf";
364
399
  const _nT = "nextToken";
365
400
  const _p = "principal";
366
401
  const _pS = "permissionStatements";
@@ -373,17 +408,26 @@ const _sAK = "secretAccessKey";
373
408
  const _sI = "statementId";
374
409
  const _sIo = "sourceIp";
375
410
  const _sRBP = "signinResourceBasedPolicy";
411
+ const _sS = "signinSession";
376
412
  const _sSV = "signinSourceVpce";
377
413
  const _sT = "sessionToken";
378
414
  const _sV = "sourceVpc";
379
415
  const _sc = "scope";
380
416
  const _se = "server";
381
417
  const _si = "sid";
418
+ const _ss = "signin_session";
382
419
  const _st = "statement";
420
+ const _su = "sub";
421
+ const _t = "token";
383
422
  const _tI = "tokenInput";
384
423
  const _tIa = "targetId";
385
424
  const _tO = "tokenOutput";
386
425
  const _tT = "tokenType";
426
+ const _tTH = "tokenTypeHint";
427
+ const _tt = "token_type";
428
+ const _tth = "token_type_hint";
429
+ const _uI = "userId";
430
+ const _ui = "user_id";
387
431
  const _v = "version";
388
432
  const _vSI = "vpcSourceIp";
389
433
  const n0 = "com.amazonaws.signin";
@@ -437,7 +481,10 @@ const errorTypeRegistries = [
437
481
  _s_registry,
438
482
  n0_registry,
439
483
  ];
484
+ var IntrospectionToken = [0, n0, _IT, 8, 0];
485
+ var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
440
486
  var RefreshToken = [0, n0, _RT, 8, 0];
487
+ var RevocationToken = [0, n0, _RTe, 8, 0];
441
488
  var AccessToken$ = [3, n0, _AT,
442
489
  8,
443
490
  [_aKI, _sAK, _sT],
@@ -463,6 +510,16 @@ var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
463
510
  [_aT, _tT, _eI, _rT, _iT],
464
511
  [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
465
512
  ];
513
+ var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
514
+ 0,
515
+ [_gT, _r],
516
+ [[0, { [_jN]: _gt }], 0], 2
517
+ ];
518
+ var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
519
+ 0,
520
+ [_aT, _tT, _eI],
521
+ [[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
522
+ ];
466
523
  var DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
467
524
  0,
468
525
  [_tIa],
@@ -503,6 +560,16 @@ var GetResourcePolicyOutput$ = [3, n0, _GRPO,
503
560
  [_sRBP],
504
561
  [[() => SigninResourceBasedPolicy$, 0]], 1
505
562
  ];
563
+ var IntrospectOAuth2TokenWithIAMRequest$ = [3, n0, _IOATWIAMR,
564
+ 0,
565
+ [_t, _tTH],
566
+ [[() => IntrospectionToken, { [_jN]: _t }], [0, { [_jN]: _tth }]], 1
567
+ ];
568
+ var IntrospectOAuth2TokenWithIAMResponse$ = [3, n0, _IOATWIAMRn,
569
+ 0,
570
+ [_a, _cI, _uI, _tT, _ex, _i, _n, _su, _au, _is, _j, _aI, _sS, _r],
571
+ [2, [0, { [_jN]: _ci }], [0, { [_jN]: _ui }], [0, { [_jN]: _tt }], [1, { [_jN]: _ex }], [1, { [_jN]: _i }], [1, { [_jN]: _n }], [0, { [_jN]: _su }], [0, { [_jN]: _au }], [0, { [_jN]: _is }], [0, { [_jN]: _j }], [0, { [_jN]: _ai }], [0, { [_jN]: _ss }], [0, { [_jN]: _r }]], 1
572
+ ];
506
573
  var ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
507
574
  0,
508
575
  [_mR, _nT],
@@ -520,7 +587,7 @@ var PermissionStatementSummary$ = [3, n0, _PSS,
520
587
  ];
521
588
  var PolicyStatement$ = [3, n0, _PS,
522
589
  0,
523
- [_ef, _p, _a, _r, _con],
590
+ [_ef, _p, _ac, _r, _con],
524
591
  [[0, { [_jN]: _E }], [128 | 0, { [_jN]: _P }], [64 | 0, { [_jN]: _A }], [0, { [_jN]: _R }], [[2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]], { [_jN]: _C }]]
525
592
  ];
526
593
  var PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
@@ -543,6 +610,16 @@ var PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
543
610
  [_sI],
544
611
  [0], 1
545
612
  ];
613
+ var RevokeOAuth2TokenWithIAMRequest$ = [3, n0, _ROATWIAMR,
614
+ 0,
615
+ [_t],
616
+ [[() => RevocationToken, { [_jN]: _t }]], 1
617
+ ];
618
+ var RevokeOAuth2TokenWithIAMResponse$ = [3, n0, _ROATWIAMRe,
619
+ 0,
620
+ [],
621
+ []
622
+ ];
546
623
  var SigninResourceBasedPolicy$ = [3, n0, _SRBP,
547
624
  0,
548
625
  [_v, _st],
@@ -558,6 +635,9 @@ var PolicyStatements = [1, n0, _PSo,
558
635
  var CreateOAuth2Token$ = [9, n0, _COAT,
559
636
  { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
560
637
  ];
638
+ var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
639
+ { [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
640
+ ];
561
641
  var DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
562
642
  { [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
563
643
  ];
@@ -570,6 +650,9 @@ var GetConsoleAuthorizationConfiguration$ = [9, n0, _GCAC,
570
650
  var GetResourcePolicy$ = [9, n0, _GRP,
571
651
  { [_h]: ["POST", "/get-resource-policy", 200] }, () => GetResourcePolicyInput$, () => GetResourcePolicyOutput$
572
652
  ];
653
+ var IntrospectOAuth2TokenWithIAM$ = [9, n0, _IOATWIAM,
654
+ { [_h]: ["POST", "/v1/introspect?x-amz-client-auth-method=iam", 200] }, () => IntrospectOAuth2TokenWithIAMRequest$, () => IntrospectOAuth2TokenWithIAMResponse$
655
+ ];
573
656
  var ListResourcePermissionStatements$ = [9, n0, _LRPS,
574
657
  { [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => ListResourcePermissionStatementsInput$, () => ListResourcePermissionStatementsOutput$
575
658
  ];
@@ -579,6 +662,9 @@ var PutConsoleAuthorizationConfiguration$ = [9, n0, _PCAC,
579
662
  var PutResourcePermissionStatement$ = [9, n0, _PRPS,
580
663
  { [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => PutResourcePermissionStatementInput$, () => PutResourcePermissionStatementOutput$
581
664
  ];
665
+ var RevokeOAuth2TokenWithIAM$ = [9, n0, _ROATWIAM,
666
+ { [_h]: ["POST", "/v1/revoke?x-amz-client-auth-method=iam", 200] }, () => RevokeOAuth2TokenWithIAMRequest$, () => RevokeOAuth2TokenWithIAMResponse$
667
+ ];
582
668
 
583
669
  const getRuntimeConfig$1 = (config) => {
584
670
  return {
@@ -736,6 +822,9 @@ const _ep0 = {
736
822
  IsControlPlane: { type: "staticContextParams", value: false },
737
823
  };
738
824
  const _ep1 = {
825
+ IsOAuthEndpoint: { type: "staticContextParams", value: true },
826
+ };
827
+ const _ep2 = {
739
828
  IsControlPlane: { type: "staticContextParams", value: true },
740
829
  };
741
830
  const _mw0 = (Command, cs, config, o) => [];
@@ -743,38 +832,50 @@ const _mw0 = (Command, cs, config, o) => [];
743
832
  class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
744
833
  }
745
834
 
746
- class DeleteConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "DeleteConsoleAuthorizationConfiguration", DeleteConsoleAuthorizationConfiguration$) {
835
+ class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
836
+ }
837
+
838
+ class DeleteConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "DeleteConsoleAuthorizationConfiguration", DeleteConsoleAuthorizationConfiguration$) {
839
+ }
840
+
841
+ class DeleteResourcePermissionStatementCommand extends command(_ep2, _mw0, "DeleteResourcePermissionStatement", DeleteResourcePermissionStatement$) {
842
+ }
843
+
844
+ class GetConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "GetConsoleAuthorizationConfiguration", GetConsoleAuthorizationConfiguration$) {
747
845
  }
748
846
 
749
- class DeleteResourcePermissionStatementCommand extends command(_ep1, _mw0, "DeleteResourcePermissionStatement", DeleteResourcePermissionStatement$) {
847
+ class GetResourcePolicyCommand extends command(_ep2, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
750
848
  }
751
849
 
752
- class GetConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "GetConsoleAuthorizationConfiguration", GetConsoleAuthorizationConfiguration$) {
850
+ class IntrospectOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "IntrospectOAuth2TokenWithIAM", IntrospectOAuth2TokenWithIAM$) {
753
851
  }
754
852
 
755
- class GetResourcePolicyCommand extends command(_ep1, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
853
+ class ListResourcePermissionStatementsCommand extends command(_ep2, _mw0, "ListResourcePermissionStatements", ListResourcePermissionStatements$) {
756
854
  }
757
855
 
758
- class ListResourcePermissionStatementsCommand extends command(_ep1, _mw0, "ListResourcePermissionStatements", ListResourcePermissionStatements$) {
856
+ class PutConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "PutConsoleAuthorizationConfiguration", PutConsoleAuthorizationConfiguration$) {
759
857
  }
760
858
 
761
- class PutConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "PutConsoleAuthorizationConfiguration", PutConsoleAuthorizationConfiguration$) {
859
+ class PutResourcePermissionStatementCommand extends command(_ep2, _mw0, "PutResourcePermissionStatement", PutResourcePermissionStatement$) {
762
860
  }
763
861
 
764
- class PutResourcePermissionStatementCommand extends command(_ep1, _mw0, "PutResourcePermissionStatement", PutResourcePermissionStatement$) {
862
+ class RevokeOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "RevokeOAuth2TokenWithIAM", RevokeOAuth2TokenWithIAM$) {
765
863
  }
766
864
 
767
865
  const paginateListResourcePermissionStatements = createPaginator(SigninClient, ListResourcePermissionStatementsCommand, "nextToken", "nextToken", "maxResults");
768
866
 
769
867
  const commands = {
770
868
  CreateOAuth2TokenCommand,
869
+ CreateOAuth2TokenWithIAMCommand,
771
870
  DeleteConsoleAuthorizationConfigurationCommand,
772
871
  DeleteResourcePermissionStatementCommand,
773
872
  GetConsoleAuthorizationConfigurationCommand,
774
873
  GetResourcePolicyCommand,
874
+ IntrospectOAuth2TokenWithIAMCommand,
775
875
  ListResourcePermissionStatementsCommand,
776
876
  PutConsoleAuthorizationConfigurationCommand,
777
877
  PutResourcePermissionStatementCommand,
878
+ RevokeOAuth2TokenWithIAMCommand,
778
879
  };
779
880
  const paginators = {
780
881
  paginateListResourcePermissionStatements,
@@ -806,6 +907,10 @@ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
806
907
  exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
807
908
  exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
808
909
  exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
910
+ exports.CreateOAuth2TokenWithIAM$ = CreateOAuth2TokenWithIAM$;
911
+ exports.CreateOAuth2TokenWithIAMCommand = CreateOAuth2TokenWithIAMCommand;
912
+ exports.CreateOAuth2TokenWithIAMRequest$ = CreateOAuth2TokenWithIAMRequest$;
913
+ exports.CreateOAuth2TokenWithIAMResponse$ = CreateOAuth2TokenWithIAMResponse$;
809
914
  exports.DeleteConsoleAuthorizationConfiguration$ = DeleteConsoleAuthorizationConfiguration$;
810
915
  exports.DeleteConsoleAuthorizationConfigurationCommand = DeleteConsoleAuthorizationConfigurationCommand;
811
916
  exports.DeleteConsoleAuthorizationConfigurationInput$ = DeleteConsoleAuthorizationConfigurationInput$;
@@ -824,6 +929,10 @@ exports.GetResourcePolicyInput$ = GetResourcePolicyInput$;
824
929
  exports.GetResourcePolicyOutput$ = GetResourcePolicyOutput$;
825
930
  exports.InternalServerException = InternalServerException;
826
931
  exports.InternalServerException$ = InternalServerException$;
932
+ exports.IntrospectOAuth2TokenWithIAM$ = IntrospectOAuth2TokenWithIAM$;
933
+ exports.IntrospectOAuth2TokenWithIAMCommand = IntrospectOAuth2TokenWithIAMCommand;
934
+ exports.IntrospectOAuth2TokenWithIAMRequest$ = IntrospectOAuth2TokenWithIAMRequest$;
935
+ exports.IntrospectOAuth2TokenWithIAMResponse$ = IntrospectOAuth2TokenWithIAMResponse$;
827
936
  exports.ListResourcePermissionStatements$ = ListResourcePermissionStatements$;
828
937
  exports.ListResourcePermissionStatementsCommand = ListResourcePermissionStatementsCommand;
829
938
  exports.ListResourcePermissionStatementsInput$ = ListResourcePermissionStatementsInput$;
@@ -841,6 +950,10 @@ exports.PutResourcePermissionStatementInput$ = PutResourcePermissionStatementInp
841
950
  exports.PutResourcePermissionStatementOutput$ = PutResourcePermissionStatementOutput$;
842
951
  exports.ResourceNotFoundException = ResourceNotFoundException;
843
952
  exports.ResourceNotFoundException$ = ResourceNotFoundException$;
953
+ exports.RevokeOAuth2TokenWithIAM$ = RevokeOAuth2TokenWithIAM$;
954
+ exports.RevokeOAuth2TokenWithIAMCommand = RevokeOAuth2TokenWithIAMCommand;
955
+ exports.RevokeOAuth2TokenWithIAMRequest$ = RevokeOAuth2TokenWithIAMRequest$;
956
+ exports.RevokeOAuth2TokenWithIAMResponse$ = RevokeOAuth2TokenWithIAMResponse$;
844
957
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
845
958
  exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
846
959
  exports.Signin = Signin;
package/dist-es/Signin.js CHANGED
@@ -1,23 +1,29 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { CreateOAuth2TokenCommand, } from "./commands/CreateOAuth2TokenCommand";
3
+ import { CreateOAuth2TokenWithIAMCommand, } from "./commands/CreateOAuth2TokenWithIAMCommand";
3
4
  import { DeleteConsoleAuthorizationConfigurationCommand, } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
4
5
  import { DeleteResourcePermissionStatementCommand, } from "./commands/DeleteResourcePermissionStatementCommand";
5
6
  import { GetConsoleAuthorizationConfigurationCommand, } from "./commands/GetConsoleAuthorizationConfigurationCommand";
6
7
  import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
8
+ import { IntrospectOAuth2TokenWithIAMCommand, } from "./commands/IntrospectOAuth2TokenWithIAMCommand";
7
9
  import { ListResourcePermissionStatementsCommand, } from "./commands/ListResourcePermissionStatementsCommand";
8
10
  import { PutConsoleAuthorizationConfigurationCommand, } from "./commands/PutConsoleAuthorizationConfigurationCommand";
9
11
  import { PutResourcePermissionStatementCommand, } from "./commands/PutResourcePermissionStatementCommand";
12
+ import { RevokeOAuth2TokenWithIAMCommand, } from "./commands/RevokeOAuth2TokenWithIAMCommand";
10
13
  import { paginateListResourcePermissionStatements } from "./pagination/ListResourcePermissionStatementsPaginator";
11
14
  import { SigninClient } from "./SigninClient";
12
15
  const commands = {
13
16
  CreateOAuth2TokenCommand,
17
+ CreateOAuth2TokenWithIAMCommand,
14
18
  DeleteConsoleAuthorizationConfigurationCommand,
15
19
  DeleteResourcePermissionStatementCommand,
16
20
  GetConsoleAuthorizationConfigurationCommand,
17
21
  GetResourcePolicyCommand,
22
+ IntrospectOAuth2TokenWithIAMCommand,
18
23
  ListResourcePermissionStatementsCommand,
19
24
  PutConsoleAuthorizationConfigurationCommand,
20
25
  PutResourcePermissionStatementCommand,
26
+ RevokeOAuth2TokenWithIAMCommand,
21
27
  };
22
28
  const paginators = {
23
29
  paginateListResourcePermissionStatements,
@@ -6,6 +6,9 @@ export const _ep0 = {
6
6
  IsControlPlane: { type: "staticContextParams", value: false },
7
7
  };
8
8
  export const _ep1 = {
9
+ IsOAuthEndpoint: { type: "staticContextParams", value: true },
10
+ };
11
+ export const _ep2 = {
9
12
  IsControlPlane: { type: "staticContextParams", value: true },
10
13
  };
11
14
  export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { CreateOAuth2TokenWithIAM$ } from "../schemas/schemas_0";
3
+ export class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
4
+ }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { DeleteConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
3
- export class DeleteConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "DeleteConsoleAuthorizationConfiguration", DeleteConsoleAuthorizationConfiguration$) {
3
+ export class DeleteConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "DeleteConsoleAuthorizationConfiguration", DeleteConsoleAuthorizationConfiguration$) {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { DeleteResourcePermissionStatement$ } from "../schemas/schemas_0";
3
- export class DeleteResourcePermissionStatementCommand extends command(_ep1, _mw0, "DeleteResourcePermissionStatement", DeleteResourcePermissionStatement$) {
3
+ export class DeleteResourcePermissionStatementCommand extends command(_ep2, _mw0, "DeleteResourcePermissionStatement", DeleteResourcePermissionStatement$) {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { GetConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
3
- export class GetConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "GetConsoleAuthorizationConfiguration", GetConsoleAuthorizationConfiguration$) {
3
+ export class GetConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "GetConsoleAuthorizationConfiguration", GetConsoleAuthorizationConfiguration$) {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { GetResourcePolicy$ } from "../schemas/schemas_0";
3
- export class GetResourcePolicyCommand extends command(_ep1, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
3
+ export class GetResourcePolicyCommand extends command(_ep2, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
4
4
  }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { IntrospectOAuth2TokenWithIAM$ } from "../schemas/schemas_0";
3
+ export class IntrospectOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "IntrospectOAuth2TokenWithIAM", IntrospectOAuth2TokenWithIAM$) {
4
+ }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { ListResourcePermissionStatements$ } from "../schemas/schemas_0";
3
- export class ListResourcePermissionStatementsCommand extends command(_ep1, _mw0, "ListResourcePermissionStatements", ListResourcePermissionStatements$) {
3
+ export class ListResourcePermissionStatementsCommand extends command(_ep2, _mw0, "ListResourcePermissionStatements", ListResourcePermissionStatements$) {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { PutConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
3
- export class PutConsoleAuthorizationConfigurationCommand extends command(_ep1, _mw0, "PutConsoleAuthorizationConfiguration", PutConsoleAuthorizationConfiguration$) {
3
+ export class PutConsoleAuthorizationConfigurationCommand extends command(_ep2, _mw0, "PutConsoleAuthorizationConfiguration", PutConsoleAuthorizationConfiguration$) {
4
4
  }
@@ -1,4 +1,4 @@
1
- import { _ep1, _mw0, command } from "../commandBuilder";
1
+ import { _ep2, _mw0, command } from "../commandBuilder";
2
2
  import { PutResourcePermissionStatement$ } from "../schemas/schemas_0";
3
- export class PutResourcePermissionStatementCommand extends command(_ep1, _mw0, "PutResourcePermissionStatement", PutResourcePermissionStatement$) {
3
+ export class PutResourcePermissionStatementCommand extends command(_ep2, _mw0, "PutResourcePermissionStatement", PutResourcePermissionStatement$) {
4
4
  }