@digipair/skill-s3 0.136.3 → 0.136.5

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.
@@ -1,17 +1,19 @@
1
- import { a6 as resolveAwsSdkSigV4Config, a7 as normalizeProvider, a8 as getSmithyContext, a9 as EndpointCache, aa as awsEndpointFunctions, ab as customEndpointFunctions, ac as ServiceException, ad as TypeRegistry, t as toUtf8, i as fromUtf8, ae as parseUrl, af as NoOpLogger, ag as AwsSdkSigV4Signer, Z as toBase64, Q as fromBase64, ah as emitWarningIfUnsupportedVersion, ai as resolveDefaultsModeConfig, aj as emitWarningIfUnsupportedVersion$1, ak as loadConfig, al as NODE_APP_ID_CONFIG_OPTIONS, am as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, an as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, ao as streamCollector, ap as Hash, N as NodeHttpHandler, aq as NODE_REGION_CONFIG_OPTIONS, ar as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, as as createDefaultUserAgentProvider, at as calculateBodyLength, au as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, av as loadConfigsForDefaultMode, aw as NODE_RETRY_MODE_CONFIG_OPTIONS, ax as NODE_REGION_CONFIG_FILE_OPTIONS, ay as DEFAULT_RETRY_MODE, az as getAwsRegionExtensionConfiguration, aA as getDefaultExtensionConfiguration, aB as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aD as resolveDefaultRuntimeConfig, aE as resolveHttpHandlerRuntimeConfig, aF as resolveUserAgentConfig, aG as resolveRetryConfig, aH as resolveRegionConfig, aI as resolveEndpointConfig, aJ as getSchemaSerdePlugin, aK as getUserAgentPlugin, aL as getRetryPlugin, aM as getContentLengthPlugin, aN as getHostHeaderPlugin, aO as getLoggerPlugin, aP as getRecursionDetectionPlugin, aQ as getHttpAuthSchemeEndpointRuleSetPlugin, aR as getHttpSigningPlugin, aS as resolveHostHeaderConfig, aT as Client, aU as DefaultIdentityProviderConfig, aV as Command, aW as getEndpointPlugin } from './index.esm3.js';
2
- import { B as BinaryDecisionDiagram, d as decideEndpoint, N as NoAuthSigner, p as packageInfo } from './package.esm.js';
1
+ import { a as awsEndpointFunctions, N as NODE_APP_ID_CONFIG_OPTIONS, H as Hash, c as createDefaultUserAgentProvider, p as packageInfo, D as DEFAULT_RETRY_MODE, g as getAwsRegionExtensionConfiguration, r as resolveAwsRegionExtensionConfiguration, b as resolveUserAgentConfig, d as resolveEndpointConfig, e as resolveHostHeaderConfig, f as getUserAgentPlugin, h as getContentLengthPlugin, i as getHostHeaderPlugin, j as getLoggerPlugin, k as getRecursionDetectionPlugin, l as getEndpointPlugin, m as createAggregatedClient } from './index.esm20.js';
2
+ import { u as resolveAwsSdkSigV4Config, q as normalizeProvider, m as getSmithyContext, E as EndpointCache, y as resolveEndpoint, h as customEndpointFunctions, S as ServiceException, T as TypeRegistry, t as toUtf8, f as fromUtf8, p as parseUrl, z as NoOpLogger, A as AwsSdkSigV4Signer, B as toBase64, D as fromBase64, F as emitWarningIfUnsupportedVersion, G as resolveDefaultsModeConfig, I as emitWarningIfUnsupportedVersion$1, l as loadConfig, J as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, K as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, L as streamCollector, N as NodeHttpHandler, M as NODE_REGION_CONFIG_OPTIONS, O as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Q as calculateBodyLength, R as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, U as loadConfigsForDefaultMode, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as NODE_REGION_CONFIG_FILE_OPTIONS, X as getDefaultExtensionConfiguration, Y as getHttpHandlerExtensionConfiguration, Z as resolveDefaultRuntimeConfig, _ as resolveHttpHandlerRuntimeConfig, $ as resolveRetryConfig, a0 as resolveRegionConfig, a1 as getSchemaSerdePlugin, a2 as getRetryPlugin, a3 as getHttpAuthSchemeEndpointRuleSetPlugin, a4 as getHttpSigningPlugin, a5 as Client, a6 as DefaultIdentityProviderConfig, a7 as Command } from './index.esm2.js';
3
3
  import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol.esm.js';
4
- import { c as createAggregatedClient } from './create-aggregated-client.esm.js';
5
- import 'node:crypto';
6
- import 'node:path';
7
- import 'node:os';
4
+ import { N as NoAuthSigner } from './noAuth.esm.js';
5
+ import 'os';
6
+ import 'process';
7
+ import 'buffer';
8
+ import 'crypto';
9
+ import 'path';
8
10
  import 'node:fs/promises';
11
+ import 'stream';
9
12
  import 'node:stream';
10
- import 'node:process';
11
- import 'buffer';
13
+ import 'http';
14
+ import 'https';
12
15
  import 'node:fs';
13
- import 'node:https';
14
- import 'node:zlib';
16
+ import 'zlib';
15
17
 
16
18
  function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
17
19
  try {
@@ -137,7 +139,7 @@ function _ts_generator$3(thisArg, body) {
137
139
  };
138
140
  }
139
141
  }
140
- var defaultSigninHttpAuthSchemeParametersProvider = function() {
142
+ var defaultSSOOIDCHttpAuthSchemeParametersProvider = function() {
141
143
  var _ref = _async_to_generator$3(function(config, context, input) {
142
144
  var _tmp;
143
145
  return _ts_generator$3(this, function(_state) {
@@ -160,7 +162,7 @@ var defaultSigninHttpAuthSchemeParametersProvider = function() {
160
162
  }
161
163
  });
162
164
  });
163
- return function defaultSigninHttpAuthSchemeParametersProvider(config, context, input) {
165
+ return function defaultSSOOIDCHttpAuthSchemeParametersProvider(config, context, input) {
164
166
  return _ref.apply(this, arguments);
165
167
  };
166
168
  }();
@@ -168,7 +170,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
168
170
  return {
169
171
  schemeId: "aws.auth#sigv4",
170
172
  signingProperties: {
171
- name: "signin",
173
+ name: "sso-oauth",
172
174
  region: authParameters.region
173
175
  },
174
176
  propertiesExtractor: function(config, context) {
@@ -186,10 +188,10 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
186
188
  schemeId: "smithy.api#noAuth"
187
189
  };
188
190
  }
189
- var defaultSigninHttpAuthSchemeProvider = function(authParameters) {
191
+ var defaultSSOOIDCHttpAuthSchemeProvider = function(authParameters) {
190
192
  var options = [];
191
193
  switch(authParameters.operation){
192
- case "CreateOAuth2Token":
194
+ case "CreateToken":
193
195
  {
194
196
  options.push(createSmithyApiNoAuthHttpAuthOption());
195
197
  break;
@@ -214,7 +216,7 @@ var resolveClientEndpointParameters = function(options) {
214
216
  return Object.assign(options, {
215
217
  useDualstackEndpoint: (_options_useDualstackEndpoint = options.useDualstackEndpoint) !== null && _options_useDualstackEndpoint !== void 0 ? _options_useDualstackEndpoint : false,
216
218
  useFipsEndpoint: (_options_useFipsEndpoint = options.useFipsEndpoint) !== null && _options_useFipsEndpoint !== void 0 ? _options_useFipsEndpoint : false,
217
- defaultSigningName: "signin"
219
+ defaultSigningName: "sso-oauth"
218
220
  });
219
221
  };
220
222
  var commonParams = {
@@ -249,210 +251,203 @@ function _define_property$4(obj, key, value) {
249
251
  }
250
252
  return obj;
251
253
  }
252
- var m = "ref";
253
- var a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = _define_property$4({}, m, "Endpoint"), i = _define_property$4({}, m, d), j = {
254
- "fn": f,
255
- "argv": [
256
- i,
257
- "name"
258
- ]
259
- }, k = {}, l = [
260
- _define_property$4({}, m, "Region")
254
+ var u = "required", v = "fn", w = "argv", x = "ref";
255
+ var _obj$1, _obj1$1, _obj2$1, _obj3$1, _obj4$1, _obj5$1, _obj6$1;
256
+ var a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = (_obj$1 = {}, _define_property$4(_obj$1, u, false), _define_property$4(_obj$1, "type", "string"), _obj$1), j = (_obj1$1 = {}, _define_property$4(_obj1$1, u, true), _define_property$4(_obj1$1, "default", false), _define_property$4(_obj1$1, "type", "boolean"), _obj1$1), k = _define_property$4({}, x, "Endpoint"), l = (_obj2$1 = {}, _define_property$4(_obj2$1, v, c), _define_property$4(_obj2$1, w, [
257
+ _define_property$4({}, x, "UseFIPS"),
258
+ true
259
+ ]), _obj2$1), m = (_obj3$1 = {}, _define_property$4(_obj3$1, v, c), _define_property$4(_obj3$1, w, [
260
+ _define_property$4({}, x, "UseDualStack"),
261
+ true
262
+ ]), _obj3$1), n = {}, o = (_obj4$1 = {}, _define_property$4(_obj4$1, v, h), _define_property$4(_obj4$1, w, [
263
+ _define_property$4({}, x, g),
264
+ "supportsFIPS"
265
+ ]), _obj4$1), p = _define_property$4({}, x, g), q = (_obj6$1 = {}, _define_property$4(_obj6$1, v, c), _define_property$4(_obj6$1, w, [
266
+ true,
267
+ (_obj5$1 = {}, _define_property$4(_obj5$1, v, h), _define_property$4(_obj5$1, w, [
268
+ p,
269
+ "supportsDualStack"
270
+ ]), _obj5$1)
271
+ ]), _obj6$1), r = [
272
+ l
273
+ ], s = [
274
+ m
275
+ ], t = [
276
+ _define_property$4({}, x, "Region")
261
277
  ];
278
+ var _obj7$1, _obj8$1, _obj9$1, _obj10$1, _obj11, _obj12, _obj13;
262
279
  var _data = {
263
- conditions: [
264
- [
265
- c,
266
- [
267
- h
268
- ]
269
- ],
270
- [
271
- c,
272
- l
273
- ],
274
- [
275
- "aws.partition",
276
- l,
277
- d
278
- ],
279
- [
280
- e,
281
- [
282
- _define_property$4({}, m, "UseFIPS"),
283
- b
284
- ]
285
- ],
286
- [
287
- e,
288
- [
289
- _define_property$4({}, m, "UseDualStack"),
290
- b
291
- ]
292
- ],
293
- [
294
- e,
295
- [
280
+ parameters: {
281
+ Region: i,
282
+ UseDualStack: j,
283
+ UseFIPS: j,
284
+ Endpoint: i
285
+ },
286
+ rules: [
287
+ {
288
+ conditions: [
289
+ (_obj7$1 = {}, _define_property$4(_obj7$1, v, b), _define_property$4(_obj7$1, w, [
290
+ k
291
+ ]), _obj7$1)
292
+ ],
293
+ rules: [
296
294
  {
297
- fn: f,
298
- argv: [
299
- i,
300
- "supportsDualStack"
301
- ]
295
+ conditions: r,
296
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
297
+ type: d
302
298
  },
303
- b
304
- ]
305
- ],
306
- [
307
- e,
308
- [
309
299
  {
310
- fn: f,
311
- argv: [
312
- i,
313
- "supportsFIPS"
314
- ]
300
+ conditions: s,
301
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
302
+ type: d
315
303
  },
316
- b
317
- ]
318
- ],
319
- [
320
- g,
321
- [
322
- j,
323
- "aws"
324
- ]
325
- ],
326
- [
327
- g,
328
- [
329
- j,
330
- "aws-cn"
331
- ]
332
- ],
333
- [
334
- g,
335
- [
336
- j,
337
- "aws-us-gov"
338
- ]
339
- ]
340
- ],
341
- results: [
342
- [
343
- a
344
- ],
345
- [
346
- a,
347
- "Invalid Configuration: FIPS and custom endpoint are not supported"
348
- ],
349
- [
350
- a,
351
- "Invalid Configuration: Dualstack and custom endpoint are not supported"
352
- ],
353
- [
354
- h,
355
- k
356
- ],
357
- [
358
- "https://{Region}.signin.aws.amazon.com",
359
- k
360
- ],
361
- [
362
- "https://{Region}.signin.amazonaws.cn",
363
- k
364
- ],
365
- [
366
- "https://{Region}.signin.amazonaws-us-gov.com",
367
- k
368
- ],
369
- [
370
- "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
371
- k
372
- ],
373
- [
374
- a,
375
- "FIPS and DualStack are enabled, but this partition does not support one or both"
376
- ],
377
- [
378
- "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
379
- k
380
- ],
381
- [
382
- a,
383
- "FIPS is enabled but this partition does not support FIPS"
384
- ],
385
- [
386
- "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
387
- k
388
- ],
389
- [
390
- a,
391
- "DualStack is enabled but this partition does not support DualStack"
392
- ],
393
- [
394
- "https://signin.{Region}.{PartitionResult#dnsSuffix}",
395
- k
396
- ],
397
- [
398
- a,
399
- "Invalid Configuration: Missing Region"
400
- ]
304
+ {
305
+ endpoint: {
306
+ url: k,
307
+ properties: n,
308
+ headers: n
309
+ },
310
+ type: e
311
+ }
312
+ ],
313
+ type: f
314
+ },
315
+ {
316
+ conditions: [
317
+ (_obj8$1 = {}, _define_property$4(_obj8$1, v, b), _define_property$4(_obj8$1, w, t), _obj8$1)
318
+ ],
319
+ rules: [
320
+ {
321
+ conditions: [
322
+ (_obj9$1 = {}, _define_property$4(_obj9$1, v, "aws.partition"), _define_property$4(_obj9$1, w, t), _define_property$4(_obj9$1, "assign", g), _obj9$1)
323
+ ],
324
+ rules: [
325
+ {
326
+ conditions: [
327
+ l,
328
+ m
329
+ ],
330
+ rules: [
331
+ {
332
+ conditions: [
333
+ (_obj10$1 = {}, _define_property$4(_obj10$1, v, c), _define_property$4(_obj10$1, w, [
334
+ a,
335
+ o
336
+ ]), _obj10$1),
337
+ q
338
+ ],
339
+ rules: [
340
+ {
341
+ endpoint: {
342
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
343
+ properties: n,
344
+ headers: n
345
+ },
346
+ type: e
347
+ }
348
+ ],
349
+ type: f
350
+ },
351
+ {
352
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
353
+ type: d
354
+ }
355
+ ],
356
+ type: f
357
+ },
358
+ {
359
+ conditions: r,
360
+ rules: [
361
+ {
362
+ conditions: [
363
+ (_obj11 = {}, _define_property$4(_obj11, v, c), _define_property$4(_obj11, w, [
364
+ o,
365
+ a
366
+ ]), _obj11)
367
+ ],
368
+ rules: [
369
+ {
370
+ conditions: [
371
+ (_obj13 = {}, _define_property$4(_obj13, v, "stringEquals"), _define_property$4(_obj13, w, [
372
+ (_obj12 = {}, _define_property$4(_obj12, v, h), _define_property$4(_obj12, w, [
373
+ p,
374
+ "name"
375
+ ]), _obj12),
376
+ "aws-us-gov"
377
+ ]), _obj13)
378
+ ],
379
+ endpoint: {
380
+ url: "https://oidc.{Region}.amazonaws.com",
381
+ properties: n,
382
+ headers: n
383
+ },
384
+ type: e
385
+ },
386
+ {
387
+ endpoint: {
388
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
389
+ properties: n,
390
+ headers: n
391
+ },
392
+ type: e
393
+ }
394
+ ],
395
+ type: f
396
+ },
397
+ {
398
+ error: "FIPS is enabled but this partition does not support FIPS",
399
+ type: d
400
+ }
401
+ ],
402
+ type: f
403
+ },
404
+ {
405
+ conditions: s,
406
+ rules: [
407
+ {
408
+ conditions: [
409
+ q
410
+ ],
411
+ rules: [
412
+ {
413
+ endpoint: {
414
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
415
+ properties: n,
416
+ headers: n
417
+ },
418
+ type: e
419
+ }
420
+ ],
421
+ type: f
422
+ },
423
+ {
424
+ error: "DualStack is enabled but this partition does not support DualStack",
425
+ type: d
426
+ }
427
+ ],
428
+ type: f
429
+ },
430
+ {
431
+ endpoint: {
432
+ url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}",
433
+ properties: n,
434
+ headers: n
435
+ },
436
+ type: e
437
+ }
438
+ ],
439
+ type: f
440
+ }
441
+ ],
442
+ type: f
443
+ },
444
+ {
445
+ error: "Invalid Configuration: Missing Region",
446
+ type: d
447
+ }
401
448
  ]
402
449
  };
403
- var root = 2;
404
- var r = 100000000;
405
- var nodes = new Int32Array([
406
- -1,
407
- 1,
408
- -1,
409
- 0,
410
- 15,
411
- 3,
412
- 1,
413
- 4,
414
- r + 14,
415
- 2,
416
- 5,
417
- r + 14,
418
- 3,
419
- 11,
420
- 6,
421
- 4,
422
- 10,
423
- 7,
424
- 7,
425
- r + 4,
426
- 8,
427
- 8,
428
- r + 5,
429
- 9,
430
- 9,
431
- r + 6,
432
- r + 13,
433
- 5,
434
- r + 11,
435
- r + 12,
436
- 4,
437
- 13,
438
- 12,
439
- 6,
440
- r + 9,
441
- r + 10,
442
- 5,
443
- 14,
444
- r + 8,
445
- 6,
446
- r + 7,
447
- r + 8,
448
- 3,
449
- r + 1,
450
- 16,
451
- 4,
452
- r + 2,
453
- r + 3
454
- ]);
455
- var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
450
+ var ruleSet = _data;
456
451
 
457
452
  var cache = new EndpointCache({
458
453
  size: 50,
@@ -466,7 +461,7 @@ var cache = new EndpointCache({
466
461
  var defaultEndpointResolver = function(endpointParams) {
467
462
  var context = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
468
463
  return cache.get(endpointParams, function() {
469
- return decideEndpoint(bdd, {
464
+ return resolveEndpoint(ruleSet, {
470
465
  endpointParams: endpointParams,
471
466
  logger: context.logger
472
467
  });
@@ -545,17 +540,17 @@ function _create_super$4(Derived) {
545
540
  return _possible_constructor_return$4(this, result);
546
541
  };
547
542
  }
548
- var SigninServiceException = /*#__PURE__*/ function(__ServiceException) {
549
- _inherits$4(SigninServiceException, __ServiceException);
550
- var _super = _create_super$4(SigninServiceException);
551
- function SigninServiceException(options) {
552
- _class_call_check$4(this, SigninServiceException);
543
+ var SSOOIDCServiceException = /*#__PURE__*/ function(__ServiceException) {
544
+ _inherits$4(SSOOIDCServiceException, __ServiceException);
545
+ var _super = _create_super$4(SSOOIDCServiceException);
546
+ function SSOOIDCServiceException(options) {
547
+ _class_call_check$4(this, SSOOIDCServiceException);
553
548
  var _this;
554
549
  _this = _super.call(this, options);
555
- Object.setPrototypeOf(_assert_this_initialized$4(_this), SigninServiceException.prototype);
550
+ Object.setPrototypeOf(_assert_this_initialized$4(_this), SSOOIDCServiceException.prototype);
556
551
  return _this;
557
552
  }
558
- return SigninServiceException;
553
+ return SSOOIDCServiceException;
559
554
  }(ServiceException);
560
555
 
561
556
  function _assert_this_initialized$3(self) {
@@ -670,12 +665,58 @@ var AccessDeniedException = /*#__PURE__*/ function(__BaseException) {
670
665
  _define_property$3(_assert_this_initialized$3(_this), "name", "AccessDeniedException");
671
666
  _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
672
667
  _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
668
+ _define_property$3(_assert_this_initialized$3(_this), "reason", void 0);
669
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
673
670
  Object.setPrototypeOf(_assert_this_initialized$3(_this), AccessDeniedException.prototype);
674
671
  _this.error = opts.error;
672
+ _this.reason = opts.reason;
673
+ _this.error_description = opts.error_description;
675
674
  return _this;
676
675
  }
677
676
  return AccessDeniedException;
678
- }(SigninServiceException);
677
+ }(SSOOIDCServiceException);
678
+ var AuthorizationPendingException = /*#__PURE__*/ function(__BaseException) {
679
+ _inherits$3(AuthorizationPendingException, __BaseException);
680
+ var _super = _create_super$3(AuthorizationPendingException);
681
+ function AuthorizationPendingException(opts) {
682
+ _class_call_check$3(this, AuthorizationPendingException);
683
+ var _this;
684
+ _this = _super.call(this, _object_spread$1({
685
+ name: "AuthorizationPendingException",
686
+ $fault: "client"
687
+ }, opts));
688
+ _define_property$3(_assert_this_initialized$3(_this), "name", "AuthorizationPendingException");
689
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
690
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
691
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
692
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), AuthorizationPendingException.prototype);
693
+ _this.error = opts.error;
694
+ _this.error_description = opts.error_description;
695
+ return _this;
696
+ }
697
+ return AuthorizationPendingException;
698
+ }(SSOOIDCServiceException);
699
+ var ExpiredTokenException = /*#__PURE__*/ function(__BaseException) {
700
+ _inherits$3(ExpiredTokenException, __BaseException);
701
+ var _super = _create_super$3(ExpiredTokenException);
702
+ function ExpiredTokenException(opts) {
703
+ _class_call_check$3(this, ExpiredTokenException);
704
+ var _this;
705
+ _this = _super.call(this, _object_spread$1({
706
+ name: "ExpiredTokenException",
707
+ $fault: "client"
708
+ }, opts));
709
+ _define_property$3(_assert_this_initialized$3(_this), "name", "ExpiredTokenException");
710
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
711
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
712
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
713
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), ExpiredTokenException.prototype);
714
+ _this.error = opts.error;
715
+ _this.error_description = opts.error_description;
716
+ return _this;
717
+ }
718
+ return ExpiredTokenException;
719
+ }(SSOOIDCServiceException);
679
720
  var InternalServerException = /*#__PURE__*/ function(__BaseException) {
680
721
  _inherits$3(InternalServerException, __BaseException);
681
722
  var _super = _create_super$3(InternalServerException);
@@ -689,50 +730,163 @@ var InternalServerException = /*#__PURE__*/ function(__BaseException) {
689
730
  _define_property$3(_assert_this_initialized$3(_this), "name", "InternalServerException");
690
731
  _define_property$3(_assert_this_initialized$3(_this), "$fault", "server");
691
732
  _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
733
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
692
734
  Object.setPrototypeOf(_assert_this_initialized$3(_this), InternalServerException.prototype);
693
735
  _this.error = opts.error;
736
+ _this.error_description = opts.error_description;
694
737
  return _this;
695
738
  }
696
739
  return InternalServerException;
697
- }(SigninServiceException);
698
- var TooManyRequestsError = /*#__PURE__*/ function(__BaseException) {
699
- _inherits$3(TooManyRequestsError, __BaseException);
700
- var _super = _create_super$3(TooManyRequestsError);
701
- function TooManyRequestsError(opts) {
702
- _class_call_check$3(this, TooManyRequestsError);
740
+ }(SSOOIDCServiceException);
741
+ var InvalidClientException = /*#__PURE__*/ function(__BaseException) {
742
+ _inherits$3(InvalidClientException, __BaseException);
743
+ var _super = _create_super$3(InvalidClientException);
744
+ function InvalidClientException(opts) {
745
+ _class_call_check$3(this, InvalidClientException);
746
+ var _this;
747
+ _this = _super.call(this, _object_spread$1({
748
+ name: "InvalidClientException",
749
+ $fault: "client"
750
+ }, opts));
751
+ _define_property$3(_assert_this_initialized$3(_this), "name", "InvalidClientException");
752
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
753
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
754
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
755
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), InvalidClientException.prototype);
756
+ _this.error = opts.error;
757
+ _this.error_description = opts.error_description;
758
+ return _this;
759
+ }
760
+ return InvalidClientException;
761
+ }(SSOOIDCServiceException);
762
+ var InvalidGrantException = /*#__PURE__*/ function(__BaseException) {
763
+ _inherits$3(InvalidGrantException, __BaseException);
764
+ var _super = _create_super$3(InvalidGrantException);
765
+ function InvalidGrantException(opts) {
766
+ _class_call_check$3(this, InvalidGrantException);
767
+ var _this;
768
+ _this = _super.call(this, _object_spread$1({
769
+ name: "InvalidGrantException",
770
+ $fault: "client"
771
+ }, opts));
772
+ _define_property$3(_assert_this_initialized$3(_this), "name", "InvalidGrantException");
773
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
774
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
775
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
776
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), InvalidGrantException.prototype);
777
+ _this.error = opts.error;
778
+ _this.error_description = opts.error_description;
779
+ return _this;
780
+ }
781
+ return InvalidGrantException;
782
+ }(SSOOIDCServiceException);
783
+ var InvalidRequestException = /*#__PURE__*/ function(__BaseException) {
784
+ _inherits$3(InvalidRequestException, __BaseException);
785
+ var _super = _create_super$3(InvalidRequestException);
786
+ function InvalidRequestException(opts) {
787
+ _class_call_check$3(this, InvalidRequestException);
788
+ var _this;
789
+ _this = _super.call(this, _object_spread$1({
790
+ name: "InvalidRequestException",
791
+ $fault: "client"
792
+ }, opts));
793
+ _define_property$3(_assert_this_initialized$3(_this), "name", "InvalidRequestException");
794
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
795
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
796
+ _define_property$3(_assert_this_initialized$3(_this), "reason", void 0);
797
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
798
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), InvalidRequestException.prototype);
799
+ _this.error = opts.error;
800
+ _this.reason = opts.reason;
801
+ _this.error_description = opts.error_description;
802
+ return _this;
803
+ }
804
+ return InvalidRequestException;
805
+ }(SSOOIDCServiceException);
806
+ var InvalidScopeException = /*#__PURE__*/ function(__BaseException) {
807
+ _inherits$3(InvalidScopeException, __BaseException);
808
+ var _super = _create_super$3(InvalidScopeException);
809
+ function InvalidScopeException(opts) {
810
+ _class_call_check$3(this, InvalidScopeException);
703
811
  var _this;
704
812
  _this = _super.call(this, _object_spread$1({
705
- name: "TooManyRequestsError",
813
+ name: "InvalidScopeException",
706
814
  $fault: "client"
707
815
  }, opts));
708
- _define_property$3(_assert_this_initialized$3(_this), "name", "TooManyRequestsError");
816
+ _define_property$3(_assert_this_initialized$3(_this), "name", "InvalidScopeException");
709
817
  _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
710
818
  _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
711
- Object.setPrototypeOf(_assert_this_initialized$3(_this), TooManyRequestsError.prototype);
819
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
820
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), InvalidScopeException.prototype);
712
821
  _this.error = opts.error;
822
+ _this.error_description = opts.error_description;
713
823
  return _this;
714
824
  }
715
- return TooManyRequestsError;
716
- }(SigninServiceException);
717
- var ValidationException = /*#__PURE__*/ function(__BaseException) {
718
- _inherits$3(ValidationException, __BaseException);
719
- var _super = _create_super$3(ValidationException);
720
- function ValidationException(opts) {
721
- _class_call_check$3(this, ValidationException);
825
+ return InvalidScopeException;
826
+ }(SSOOIDCServiceException);
827
+ var SlowDownException = /*#__PURE__*/ function(__BaseException) {
828
+ _inherits$3(SlowDownException, __BaseException);
829
+ var _super = _create_super$3(SlowDownException);
830
+ function SlowDownException(opts) {
831
+ _class_call_check$3(this, SlowDownException);
722
832
  var _this;
723
833
  _this = _super.call(this, _object_spread$1({
724
- name: "ValidationException",
834
+ name: "SlowDownException",
725
835
  $fault: "client"
726
836
  }, opts));
727
- _define_property$3(_assert_this_initialized$3(_this), "name", "ValidationException");
837
+ _define_property$3(_assert_this_initialized$3(_this), "name", "SlowDownException");
728
838
  _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
729
839
  _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
730
- Object.setPrototypeOf(_assert_this_initialized$3(_this), ValidationException.prototype);
840
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
841
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), SlowDownException.prototype);
731
842
  _this.error = opts.error;
843
+ _this.error_description = opts.error_description;
732
844
  return _this;
733
845
  }
734
- return ValidationException;
735
- }(SigninServiceException);
846
+ return SlowDownException;
847
+ }(SSOOIDCServiceException);
848
+ var UnauthorizedClientException = /*#__PURE__*/ function(__BaseException) {
849
+ _inherits$3(UnauthorizedClientException, __BaseException);
850
+ var _super = _create_super$3(UnauthorizedClientException);
851
+ function UnauthorizedClientException(opts) {
852
+ _class_call_check$3(this, UnauthorizedClientException);
853
+ var _this;
854
+ _this = _super.call(this, _object_spread$1({
855
+ name: "UnauthorizedClientException",
856
+ $fault: "client"
857
+ }, opts));
858
+ _define_property$3(_assert_this_initialized$3(_this), "name", "UnauthorizedClientException");
859
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
860
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
861
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
862
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), UnauthorizedClientException.prototype);
863
+ _this.error = opts.error;
864
+ _this.error_description = opts.error_description;
865
+ return _this;
866
+ }
867
+ return UnauthorizedClientException;
868
+ }(SSOOIDCServiceException);
869
+ var UnsupportedGrantTypeException = /*#__PURE__*/ function(__BaseException) {
870
+ _inherits$3(UnsupportedGrantTypeException, __BaseException);
871
+ var _super = _create_super$3(UnsupportedGrantTypeException);
872
+ function UnsupportedGrantTypeException(opts) {
873
+ _class_call_check$3(this, UnsupportedGrantTypeException);
874
+ var _this;
875
+ _this = _super.call(this, _object_spread$1({
876
+ name: "UnsupportedGrantTypeException",
877
+ $fault: "client"
878
+ }, opts));
879
+ _define_property$3(_assert_this_initialized$3(_this), "name", "UnsupportedGrantTypeException");
880
+ _define_property$3(_assert_this_initialized$3(_this), "$fault", "client");
881
+ _define_property$3(_assert_this_initialized$3(_this), "error", void 0);
882
+ _define_property$3(_assert_this_initialized$3(_this), "error_description", void 0);
883
+ Object.setPrototypeOf(_assert_this_initialized$3(_this), UnsupportedGrantTypeException.prototype);
884
+ _this.error = opts.error;
885
+ _this.error_description = opts.error_description;
886
+ return _this;
887
+ }
888
+ return UnsupportedGrantTypeException;
889
+ }(SSOOIDCServiceException);
736
890
 
737
891
  function _define_property$2(obj, key, value) {
738
892
  if (key in obj) {
@@ -748,235 +902,324 @@ function _define_property$2(obj, key, value) {
748
902
  return obj;
749
903
  }
750
904
  var _ADE = "AccessDeniedException";
905
+ var _APE = "AuthorizationPendingException";
751
906
  var _AT = "AccessToken";
752
- var _COAT = "CreateOAuth2Token";
753
- var _COATR = "CreateOAuth2TokenRequest";
754
- var _COATRB = "CreateOAuth2TokenRequestBody";
755
- var _COATRBr = "CreateOAuth2TokenResponseBody";
756
- var _COATRr = "CreateOAuth2TokenResponse";
907
+ var _CS = "ClientSecret";
908
+ var _CT = "CreateToken";
909
+ var _CTR = "CreateTokenRequest";
910
+ var _CTRr = "CreateTokenResponse";
911
+ var _CV = "CodeVerifier";
912
+ var _ETE = "ExpiredTokenException";
913
+ var _ICE = "InvalidClientException";
914
+ var _IGE = "InvalidGrantException";
915
+ var _IRE = "InvalidRequestException";
757
916
  var _ISE = "InternalServerException";
917
+ var _ISEn = "InvalidScopeException";
918
+ var _IT = "IdToken";
758
919
  var _RT = "RefreshToken";
759
- var _TMRE = "TooManyRequestsError";
760
- var _VE = "ValidationException";
761
- var _aKI = "accessKeyId";
920
+ var _SDE = "SlowDownException";
921
+ var _UCE = "UnauthorizedClientException";
922
+ var _UGTE = "UnsupportedGrantTypeException";
762
923
  var _aT = "accessToken";
763
924
  var _c = "client";
764
925
  var _cI = "clientId";
926
+ var _cS = "clientSecret";
765
927
  var _cV = "codeVerifier";
766
928
  var _co = "code";
929
+ var _dC = "deviceCode";
767
930
  var _e = "error";
768
931
  var _eI = "expiresIn";
932
+ var _ed = "error_description";
769
933
  var _gT = "grantType";
770
934
  var _h = "http";
771
935
  var _hE = "httpError";
772
936
  var _iT = "idToken";
773
- var _jN = "jsonName";
774
- var _m = "message";
937
+ var _r = "reason";
775
938
  var _rT = "refreshToken";
776
939
  var _rU = "redirectUri";
777
- var _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
778
- var _sAK = "secretAccessKey";
779
- var _sT = "sessionToken";
940
+ var _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
941
+ var _sc = "scope";
780
942
  var _se = "server";
781
- var _tI = "tokenInput";
782
- var _tO = "tokenOutput";
783
943
  var _tT = "tokenType";
784
- var n0 = "com.amazonaws.signin";
944
+ var n0 = "com.amazonaws.ssooidc";
785
945
  var _s_registry = TypeRegistry.for(_s);
786
- var SigninServiceException$ = [
946
+ var SSOOIDCServiceException$ = [
787
947
  -3,
788
948
  _s,
789
- "SigninServiceException",
949
+ "SSOOIDCServiceException",
790
950
  0,
791
951
  [],
792
952
  []
793
953
  ];
794
- _s_registry.registerError(SigninServiceException$, SigninServiceException);
954
+ _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
795
955
  var n0_registry = TypeRegistry.for(n0);
956
+ var _obj;
796
957
  var AccessDeniedException$ = [
797
958
  -3,
798
959
  n0,
799
960
  _ADE,
800
- _define_property$2({}, _e, _c),
961
+ (_obj = {}, _define_property$2(_obj, _e, _c), _define_property$2(_obj, _hE, 400), _obj),
801
962
  [
802
963
  _e,
803
- _m
964
+ _r,
965
+ _ed
804
966
  ],
805
967
  [
968
+ 0,
806
969
  0,
807
970
  0
808
- ],
809
- 2
971
+ ]
810
972
  ];
811
973
  n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
812
- var _obj;
974
+ var _obj1;
975
+ var AuthorizationPendingException$ = [
976
+ -3,
977
+ n0,
978
+ _APE,
979
+ (_obj1 = {}, _define_property$2(_obj1, _e, _c), _define_property$2(_obj1, _hE, 400), _obj1),
980
+ [
981
+ _e,
982
+ _ed
983
+ ],
984
+ [
985
+ 0,
986
+ 0
987
+ ]
988
+ ];
989
+ n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
990
+ var _obj2;
991
+ var ExpiredTokenException$ = [
992
+ -3,
993
+ n0,
994
+ _ETE,
995
+ (_obj2 = {}, _define_property$2(_obj2, _e, _c), _define_property$2(_obj2, _hE, 400), _obj2),
996
+ [
997
+ _e,
998
+ _ed
999
+ ],
1000
+ [
1001
+ 0,
1002
+ 0
1003
+ ]
1004
+ ];
1005
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
1006
+ var _obj3;
813
1007
  var InternalServerException$ = [
814
1008
  -3,
815
1009
  n0,
816
1010
  _ISE,
817
- (_obj = {}, _define_property$2(_obj, _e, _se), _define_property$2(_obj, _hE, 500), _obj),
1011
+ (_obj3 = {}, _define_property$2(_obj3, _e, _se), _define_property$2(_obj3, _hE, 500), _obj3),
818
1012
  [
819
1013
  _e,
820
- _m
1014
+ _ed
821
1015
  ],
822
1016
  [
823
1017
  0,
824
1018
  0
825
- ],
826
- 2
1019
+ ]
827
1020
  ];
828
1021
  n0_registry.registerError(InternalServerException$, InternalServerException);
829
- var _obj1;
830
- var TooManyRequestsError$ = [
1022
+ var _obj4;
1023
+ var InvalidClientException$ = [
831
1024
  -3,
832
1025
  n0,
833
- _TMRE,
834
- (_obj1 = {}, _define_property$2(_obj1, _e, _c), _define_property$2(_obj1, _hE, 429), _obj1),
1026
+ _ICE,
1027
+ (_obj4 = {}, _define_property$2(_obj4, _e, _c), _define_property$2(_obj4, _hE, 401), _obj4),
835
1028
  [
836
1029
  _e,
837
- _m
1030
+ _ed
838
1031
  ],
839
1032
  [
840
1033
  0,
841
1034
  0
1035
+ ]
1036
+ ];
1037
+ n0_registry.registerError(InvalidClientException$, InvalidClientException);
1038
+ var _obj5;
1039
+ var InvalidGrantException$ = [
1040
+ -3,
1041
+ n0,
1042
+ _IGE,
1043
+ (_obj5 = {}, _define_property$2(_obj5, _e, _c), _define_property$2(_obj5, _hE, 400), _obj5),
1044
+ [
1045
+ _e,
1046
+ _ed
842
1047
  ],
843
- 2
1048
+ [
1049
+ 0,
1050
+ 0
1051
+ ]
844
1052
  ];
845
- n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
846
- var _obj2;
847
- var ValidationException$ = [
1053
+ n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
1054
+ var _obj6;
1055
+ var InvalidRequestException$ = [
848
1056
  -3,
849
1057
  n0,
850
- _VE,
851
- (_obj2 = {}, _define_property$2(_obj2, _e, _c), _define_property$2(_obj2, _hE, 400), _obj2),
1058
+ _IRE,
1059
+ (_obj6 = {}, _define_property$2(_obj6, _e, _c), _define_property$2(_obj6, _hE, 400), _obj6),
1060
+ [
1061
+ _e,
1062
+ _r,
1063
+ _ed
1064
+ ],
1065
+ [
1066
+ 0,
1067
+ 0,
1068
+ 0
1069
+ ]
1070
+ ];
1071
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
1072
+ var _obj7;
1073
+ var InvalidScopeException$ = [
1074
+ -3,
1075
+ n0,
1076
+ _ISEn,
1077
+ (_obj7 = {}, _define_property$2(_obj7, _e, _c), _define_property$2(_obj7, _hE, 400), _obj7),
852
1078
  [
853
1079
  _e,
854
- _m
1080
+ _ed
855
1081
  ],
856
1082
  [
857
1083
  0,
858
1084
  0
1085
+ ]
1086
+ ];
1087
+ n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
1088
+ var _obj8;
1089
+ var SlowDownException$ = [
1090
+ -3,
1091
+ n0,
1092
+ _SDE,
1093
+ (_obj8 = {}, _define_property$2(_obj8, _e, _c), _define_property$2(_obj8, _hE, 400), _obj8),
1094
+ [
1095
+ _e,
1096
+ _ed
859
1097
  ],
860
- 2
1098
+ [
1099
+ 0,
1100
+ 0
1101
+ ]
861
1102
  ];
862
- n0_registry.registerError(ValidationException$, ValidationException);
1103
+ n0_registry.registerError(SlowDownException$, SlowDownException);
1104
+ var _obj9;
1105
+ var UnauthorizedClientException$ = [
1106
+ -3,
1107
+ n0,
1108
+ _UCE,
1109
+ (_obj9 = {}, _define_property$2(_obj9, _e, _c), _define_property$2(_obj9, _hE, 400), _obj9),
1110
+ [
1111
+ _e,
1112
+ _ed
1113
+ ],
1114
+ [
1115
+ 0,
1116
+ 0
1117
+ ]
1118
+ ];
1119
+ n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
1120
+ var _obj10;
1121
+ var UnsupportedGrantTypeException$ = [
1122
+ -3,
1123
+ n0,
1124
+ _UGTE,
1125
+ (_obj10 = {}, _define_property$2(_obj10, _e, _c), _define_property$2(_obj10, _hE, 400), _obj10),
1126
+ [
1127
+ _e,
1128
+ _ed
1129
+ ],
1130
+ [
1131
+ 0,
1132
+ 0
1133
+ ]
1134
+ ];
1135
+ n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
863
1136
  var errorTypeRegistries = [
864
1137
  _s_registry,
865
1138
  n0_registry
866
1139
  ];
867
- var RefreshToken = [
1140
+ var AccessToken = [
868
1141
  0,
869
1142
  n0,
870
- _RT,
1143
+ _AT,
871
1144
  8,
872
1145
  0
873
1146
  ];
874
- var AccessToken$ = [
875
- 3,
1147
+ var ClientSecret = [
1148
+ 0,
876
1149
  n0,
877
- _AT,
1150
+ _CS,
878
1151
  8,
879
- [
880
- _aKI,
881
- _sAK,
882
- _sT
883
- ],
884
- [
885
- [
886
- 0,
887
- _define_property$2({}, _jN, _aKI)
888
- ],
889
- [
890
- 0,
891
- _define_property$2({}, _jN, _sAK)
892
- ],
893
- [
894
- 0,
895
- _define_property$2({}, _jN, _sT)
896
- ]
897
- ],
898
- 3
1152
+ 0
899
1153
  ];
900
- var CreateOAuth2TokenRequest$ = [
901
- 3,
1154
+ var CodeVerifier = [
1155
+ 0,
902
1156
  n0,
903
- _COATR,
1157
+ _CV,
1158
+ 8,
1159
+ 0
1160
+ ];
1161
+ var IdToken = [
904
1162
  0,
905
- [
906
- _tI
907
- ],
908
- [
909
- [
910
- function() {
911
- return CreateOAuth2TokenRequestBody$;
912
- },
913
- 16
914
- ]
915
- ],
916
- 1
1163
+ n0,
1164
+ _IT,
1165
+ 8,
1166
+ 0
917
1167
  ];
918
- var CreateOAuth2TokenRequestBody$ = [
1168
+ var RefreshToken = [
1169
+ 0,
1170
+ n0,
1171
+ _RT,
1172
+ 8,
1173
+ 0
1174
+ ];
1175
+ var CreateTokenRequest$ = [
919
1176
  3,
920
1177
  n0,
921
- _COATRB,
1178
+ _CTR,
922
1179
  0,
923
1180
  [
924
1181
  _cI,
1182
+ _cS,
925
1183
  _gT,
1184
+ _dC,
926
1185
  _co,
1186
+ _rT,
1187
+ _sc,
927
1188
  _rU,
928
- _cV,
929
- _rT
1189
+ _cV
930
1190
  ],
931
1191
  [
932
- [
933
- 0,
934
- _define_property$2({}, _jN, _cI)
935
- ],
936
- [
937
- 0,
938
- _define_property$2({}, _jN, _gT)
939
- ],
940
1192
  0,
941
1193
  [
942
- 0,
943
- _define_property$2({}, _jN, _rU)
944
- ],
945
- [
946
- 0,
947
- _define_property$2({}, _jN, _cV)
1194
+ function() {
1195
+ return ClientSecret;
1196
+ },
1197
+ 0
948
1198
  ],
1199
+ 0,
1200
+ 0,
1201
+ 0,
949
1202
  [
950
1203
  function() {
951
1204
  return RefreshToken;
952
1205
  },
953
- _define_property$2({}, _jN, _rT)
954
- ]
955
- ],
956
- 2
957
- ];
958
- var CreateOAuth2TokenResponse$ = [
959
- 3,
960
- n0,
961
- _COATRr,
962
- 0,
963
- [
964
- _tO
965
- ],
966
- [
1206
+ 0
1207
+ ],
1208
+ 64 | 0,
1209
+ 0,
967
1210
  [
968
1211
  function() {
969
- return CreateOAuth2TokenResponseBody$;
1212
+ return CodeVerifier;
970
1213
  },
971
- 16
1214
+ 0
972
1215
  ]
973
1216
  ],
974
- 1
1217
+ 3
975
1218
  ];
976
- var CreateOAuth2TokenResponseBody$ = [
1219
+ var CreateTokenResponse$ = [
977
1220
  3,
978
1221
  n0,
979
- _COATRBr,
1222
+ _CTRr,
980
1223
  0,
981
1224
  [
982
1225
  _aT,
@@ -988,45 +1231,40 @@ var CreateOAuth2TokenResponseBody$ = [
988
1231
  [
989
1232
  [
990
1233
  function() {
991
- return AccessToken$;
1234
+ return AccessToken;
992
1235
  },
993
- _define_property$2({}, _jN, _aT)
994
- ],
995
- [
996
- 0,
997
- _define_property$2({}, _jN, _tT)
998
- ],
999
- [
1000
- 1,
1001
- _define_property$2({}, _jN, _eI)
1236
+ 0
1002
1237
  ],
1238
+ 0,
1239
+ 1,
1003
1240
  [
1004
1241
  function() {
1005
1242
  return RefreshToken;
1006
1243
  },
1007
- _define_property$2({}, _jN, _rT)
1244
+ 0
1008
1245
  ],
1009
1246
  [
1010
- 0,
1011
- _define_property$2({}, _jN, _iT)
1247
+ function() {
1248
+ return IdToken;
1249
+ },
1250
+ 0
1012
1251
  ]
1013
- ],
1014
- 4
1252
+ ]
1015
1253
  ];
1016
- var CreateOAuth2Token$ = [
1254
+ var CreateToken$ = [
1017
1255
  9,
1018
1256
  n0,
1019
- _COAT,
1257
+ _CT,
1020
1258
  _define_property$2({}, _h, [
1021
1259
  "POST",
1022
- "/v1/token",
1260
+ "/token",
1023
1261
  200
1024
1262
  ]),
1025
1263
  function() {
1026
- return CreateOAuth2TokenRequest$;
1264
+ return CreateTokenRequest$;
1027
1265
  },
1028
1266
  function() {
1029
- return CreateOAuth2TokenResponse$;
1267
+ return CreateTokenResponse$;
1030
1268
  }
1031
1269
  ];
1032
1270
 
@@ -1157,13 +1395,13 @@ function _ts_generator$2(thisArg, body) {
1157
1395
  var getRuntimeConfig$1 = function(config) {
1158
1396
  var _config_base64Decoder, _config_base64Encoder, _config_disableHostPrefix, _config_endpointProvider, _config_extensions, _config_httpAuthSchemeProvider, _config_httpAuthSchemes, _config_logger, _config_protocol, _config_protocolSettings, _config_serviceId, _config_urlParser, _config_utf8Decoder, _config_utf8Encoder;
1159
1397
  return {
1160
- apiVersion: "2023-01-01",
1398
+ apiVersion: "2019-06-10",
1161
1399
  base64Decoder: (_config_base64Decoder = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _config_base64Decoder !== void 0 ? _config_base64Decoder : fromBase64,
1162
1400
  base64Encoder: (_config_base64Encoder = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _config_base64Encoder !== void 0 ? _config_base64Encoder : toBase64,
1163
1401
  disableHostPrefix: (_config_disableHostPrefix = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _config_disableHostPrefix !== void 0 ? _config_disableHostPrefix : false,
1164
1402
  endpointProvider: (_config_endpointProvider = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _config_endpointProvider !== void 0 ? _config_endpointProvider : defaultEndpointResolver,
1165
1403
  extensions: (_config_extensions = config === null || config === void 0 ? void 0 : config.extensions) !== null && _config_extensions !== void 0 ? _config_extensions : [],
1166
- httpAuthSchemeProvider: (_config_httpAuthSchemeProvider = config === null || config === void 0 ? void 0 : config.httpAuthSchemeProvider) !== null && _config_httpAuthSchemeProvider !== void 0 ? _config_httpAuthSchemeProvider : defaultSigninHttpAuthSchemeProvider,
1404
+ httpAuthSchemeProvider: (_config_httpAuthSchemeProvider = config === null || config === void 0 ? void 0 : config.httpAuthSchemeProvider) !== null && _config_httpAuthSchemeProvider !== void 0 ? _config_httpAuthSchemeProvider : defaultSSOOIDCHttpAuthSchemeProvider,
1167
1405
  httpAuthSchemes: (_config_httpAuthSchemes = config === null || config === void 0 ? void 0 : config.httpAuthSchemes) !== null && _config_httpAuthSchemes !== void 0 ? _config_httpAuthSchemes : [
1168
1406
  {
1169
1407
  schemeId: "aws.auth#sigv4",
@@ -1190,12 +1428,12 @@ var getRuntimeConfig$1 = function(config) {
1190
1428
  logger: (_config_logger = config === null || config === void 0 ? void 0 : config.logger) !== null && _config_logger !== void 0 ? _config_logger : new NoOpLogger(),
1191
1429
  protocol: (_config_protocol = config === null || config === void 0 ? void 0 : config.protocol) !== null && _config_protocol !== void 0 ? _config_protocol : AwsRestJsonProtocol,
1192
1430
  protocolSettings: (_config_protocolSettings = config === null || config === void 0 ? void 0 : config.protocolSettings) !== null && _config_protocolSettings !== void 0 ? _config_protocolSettings : {
1193
- defaultNamespace: "com.amazonaws.signin",
1431
+ defaultNamespace: "com.amazonaws.ssooidc",
1194
1432
  errorTypeRegistries: errorTypeRegistries,
1195
- version: "2023-01-01",
1196
- serviceTarget: "Signin"
1433
+ version: "2019-06-10",
1434
+ serviceTarget: "AWSSSOOIDCService"
1197
1435
  },
1198
- serviceId: (_config_serviceId = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _config_serviceId !== void 0 ? _config_serviceId : "Signin",
1436
+ serviceId: (_config_serviceId = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _config_serviceId !== void 0 ? _config_serviceId : "SSO OIDC",
1199
1437
  urlParser: (_config_urlParser = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _config_urlParser !== void 0 ? _config_urlParser : parseUrl,
1200
1438
  utf8Decoder: (_config_utf8Decoder = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _config_utf8Decoder !== void 0 ? _config_utf8Decoder : fromUtf8,
1201
1439
  utf8Encoder: (_config_utf8Encoder = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _config_utf8Encoder !== void 0 ? _config_utf8Encoder : toUtf8
@@ -1762,15 +2000,15 @@ function _ts_generator(thisArg, body) {
1762
2000
  };
1763
2001
  }
1764
2002
  }
1765
- var SigninClient = /*#__PURE__*/ function(__Client) {
1766
- _inherits$2(SigninClient, __Client);
1767
- var _super = _create_super$2(SigninClient);
1768
- function SigninClient() {
2003
+ var SSOOIDCClient = /*#__PURE__*/ function(__Client) {
2004
+ _inherits$2(SSOOIDCClient, __Client);
2005
+ var _super = _create_super$2(SSOOIDCClient);
2006
+ function SSOOIDCClient() {
1769
2007
  for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){
1770
2008
  _tmp[_key] = arguments[_key];
1771
2009
  }
1772
2010
  var _tmp1 = _sliced_to_array(_tmp, 1), configuration = _tmp1[0];
1773
- _class_call_check$2(this, SigninClient);
2011
+ _class_call_check$2(this, SSOOIDCClient);
1774
2012
  var _this;
1775
2013
  var _config_0 = getRuntimeConfig(configuration || {});
1776
2014
  _this = _super.call(this, _config_0);
@@ -1793,7 +2031,7 @@ var SigninClient = /*#__PURE__*/ function(__Client) {
1793
2031
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
1794
2032
  _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
1795
2033
  _this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(_this.config, {
1796
- httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
2034
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
1797
2035
  identityProviderConfigProvider: function() {
1798
2036
  var _ref = _async_to_generator(function(config) {
1799
2037
  return _ts_generator(this, function(_state) {
@@ -1813,15 +2051,15 @@ var SigninClient = /*#__PURE__*/ function(__Client) {
1813
2051
  _this.middlewareStack.use(getHttpSigningPlugin(_this.config));
1814
2052
  return _this;
1815
2053
  }
1816
- _create_class(SigninClient, [
2054
+ _create_class(SSOOIDCClient, [
1817
2055
  {
1818
2056
  key: "destroy",
1819
2057
  value: function destroy() {
1820
- _get(_get_prototype_of$2(SigninClient.prototype), "destroy", this).call(this);
2058
+ _get(_get_prototype_of$2(SSOOIDCClient.prototype), "destroy", this).call(this);
1821
2059
  }
1822
2060
  }
1823
2061
  ]);
1824
- return SigninClient;
2062
+ return SSOOIDCClient;
1825
2063
  }(Client);
1826
2064
 
1827
2065
  function _assert_this_initialized$1(self) {
@@ -1895,19 +2133,19 @@ function _create_super$1(Derived) {
1895
2133
  return _possible_constructor_return$1(this, result);
1896
2134
  };
1897
2135
  }
1898
- var CreateOAuth2TokenCommand = /*#__PURE__*/ function(_$Command_classBuilder_ep_m_s_n_sc_build) {
1899
- _inherits$1(CreateOAuth2TokenCommand, _$Command_classBuilder_ep_m_s_n_sc_build);
1900
- var _super = _create_super$1(CreateOAuth2TokenCommand);
1901
- function CreateOAuth2TokenCommand() {
1902
- _class_call_check$1(this, CreateOAuth2TokenCommand);
2136
+ var CreateTokenCommand = /*#__PURE__*/ function(_$Command_classBuilder_ep_m_s_n_sc_build) {
2137
+ _inherits$1(CreateTokenCommand, _$Command_classBuilder_ep_m_s_n_sc_build);
2138
+ var _super = _create_super$1(CreateTokenCommand);
2139
+ function CreateTokenCommand() {
2140
+ _class_call_check$1(this, CreateTokenCommand);
1903
2141
  return _super.apply(this, arguments);
1904
2142
  }
1905
- return CreateOAuth2TokenCommand;
2143
+ return CreateTokenCommand;
1906
2144
  }(Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1907
2145
  return [
1908
2146
  getEndpointPlugin(config, Command.getEndpointParameterInstructions())
1909
2147
  ];
1910
- }).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build());
2148
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build());
1911
2149
 
1912
2150
  function _assert_this_initialized(self) {
1913
2151
  if (self === void 0) {
@@ -1981,26 +2219,27 @@ function _create_super(Derived) {
1981
2219
  };
1982
2220
  }
1983
2221
  var commands = {
1984
- CreateOAuth2TokenCommand: CreateOAuth2TokenCommand
2222
+ CreateTokenCommand: CreateTokenCommand
1985
2223
  };
1986
- var Signin = /*#__PURE__*/ function(SigninClient) {
1987
- _inherits(Signin, SigninClient);
1988
- var _super = _create_super(Signin);
1989
- function Signin() {
1990
- _class_call_check(this, Signin);
2224
+ var SSOOIDC = /*#__PURE__*/ function(SSOOIDCClient) {
2225
+ _inherits(SSOOIDC, SSOOIDCClient);
2226
+ var _super = _create_super(SSOOIDC);
2227
+ function SSOOIDC() {
2228
+ _class_call_check(this, SSOOIDC);
1991
2229
  return _super.apply(this, arguments);
1992
2230
  }
1993
- return Signin;
1994
- }(SigninClient);
1995
- createAggregatedClient(commands, Signin);
2231
+ return SSOOIDC;
2232
+ }(SSOOIDCClient);
2233
+ createAggregatedClient(commands, SSOOIDC);
1996
2234
 
1997
- var OAuth2ErrorCode = {
1998
- AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
1999
- INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
2000
- INVALID_REQUEST: "INVALID_REQUEST",
2001
- SERVER_ERROR: "server_error",
2002
- TOKEN_EXPIRED: "TOKEN_EXPIRED",
2003
- USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
2235
+ var AccessDeniedExceptionReason = {
2236
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
2237
+ };
2238
+ var InvalidRequestExceptionReason = {
2239
+ KMS_DISABLED_KEY: "KMS_DisabledException",
2240
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
2241
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
2242
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
2004
2243
  };
2005
2244
 
2006
- export { Command as $Command, AccessDeniedException, AccessDeniedException$, AccessToken$, CreateOAuth2Token$, CreateOAuth2TokenCommand, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, InternalServerException, InternalServerException$, OAuth2ErrorCode, Signin, SigninClient, SigninServiceException, SigninServiceException$, TooManyRequestsError, TooManyRequestsError$, ValidationException, ValidationException$, Client as __Client, errorTypeRegistries };
2245
+ export { Command as $Command, AccessDeniedException, AccessDeniedException$, AccessDeniedExceptionReason, AuthorizationPendingException, AuthorizationPendingException$, CreateToken$, CreateTokenCommand, CreateTokenRequest$, CreateTokenResponse$, ExpiredTokenException, ExpiredTokenException$, InternalServerException, InternalServerException$, InvalidClientException, InvalidClientException$, InvalidGrantException, InvalidGrantException$, InvalidRequestException, InvalidRequestException$, InvalidRequestExceptionReason, InvalidScopeException, InvalidScopeException$, SSOOIDC, SSOOIDCClient, SSOOIDCServiceException, SSOOIDCServiceException$, SlowDownException, SlowDownException$, UnauthorizedClientException, UnauthorizedClientException$, UnsupportedGrantTypeException, UnsupportedGrantTypeException$, Client as __Client, errorTypeRegistries };