@rharkor/caching-for-turbo 2.4.0 → 2.4.2

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.
@@ -2,24 +2,41 @@ export const id = 443;
2
2
  export const ids = [443];
3
3
  export const modules = {
4
4
 
5
- /***/ 8396:
5
+ /***/ 89443:
6
6
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
7
 
8
+ var __webpack_unused_export__;
9
+
10
+
11
+ var middlewareHostHeader = __webpack_require__(52590);
12
+ var middlewareLogger = __webpack_require__(85242);
13
+ var middlewareRecursionDetection = __webpack_require__(81568);
14
+ var middlewareUserAgent = __webpack_require__(32959);
15
+ var core = __webpack_require__(90402);
16
+ var client = __webpack_require__(92658);
17
+ var config = __webpack_require__(47291);
18
+ var endpoints = __webpack_require__(62085);
19
+ var protocols = __webpack_require__(93422);
20
+ var retry = __webpack_require__(23609);
21
+ var schema = __webpack_require__(26890);
22
+ var httpAuthSchemes = __webpack_require__(97523);
23
+ var client$1 = __webpack_require__(5152);
24
+ var utilUserAgentNode = __webpack_require__(51656);
25
+ var serde = __webpack_require__(92430);
26
+ var nodeHttpHandler = __webpack_require__(61279);
27
+ var protocols$1 = __webpack_require__(37288);
28
+ var utilEndpoints = __webpack_require__(83068);
29
+ var regionConfigResolver = __webpack_require__(36463);
8
30
 
9
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10
- exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
11
- const httpAuthSchemes_1 = __webpack_require__(97523);
12
- const util_middleware_1 = __webpack_require__(76324);
13
31
  const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
14
32
  return {
15
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
16
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
33
+ operation: client.getSmithyContext(context).operation,
34
+ region: (await client.normalizeProvider(config.region)()) ||
17
35
  (() => {
18
36
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
19
37
  })(),
20
38
  };
21
39
  };
22
- exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
23
40
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
24
41
  return {
25
42
  schemeId: "aws.auth#sigv4",
@@ -44,7 +61,7 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
44
61
  const options = [];
45
62
  switch (authParameters.operation) {
46
63
  case "CreateToken": {
47
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
64
+ options.push(createSmithyApiNoAuthHttpAuthOption());
48
65
  break;
49
66
  }
50
67
  default: {
@@ -53,25 +70,31 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
53
70
  }
54
71
  return options;
55
72
  };
56
- exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
57
73
  const resolveHttpAuthSchemeConfig = (config) => {
58
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
74
+ const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);
59
75
  return Object.assign(config_0, {
60
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
76
+ authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),
61
77
  });
62
78
  };
63
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
64
-
65
79
 
66
- /***/ }),
67
-
68
- /***/ 40855:
69
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
80
+ const resolveClientEndpointParameters = (options) => {
81
+ return Object.assign(options, {
82
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
83
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
84
+ defaultSigningName: "sso-oauth",
85
+ });
86
+ };
87
+ const commonParams = {
88
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
89
+ Endpoint: { type: "builtInParams", name: "endpoint" },
90
+ Region: { type: "builtInParams", name: "region" },
91
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
92
+ };
70
93
 
94
+ var version = "3.997.7";
95
+ var packageInfo = {
96
+ version: version};
71
97
 
72
- Object.defineProperty(exports, "__esModule", ({ value: true }));
73
- exports.bdd = void 0;
74
- const util_endpoints_1 = __webpack_require__(79674);
75
98
  const k = "ref";
76
99
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
100
  const _data = {
@@ -147,242 +170,28 @@ const nodes = new Int32Array([
147
170
  r + 2,
148
171
  r + 3,
149
172
  ]);
150
- exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
151
-
152
-
153
- /***/ }),
173
+ const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
154
174
 
155
- /***/ 90546:
156
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
157
-
158
-
159
- Object.defineProperty(exports, "__esModule", ({ value: true }));
160
- exports.defaultEndpointResolver = void 0;
161
- const util_endpoints_1 = __webpack_require__(83068);
162
- const util_endpoints_2 = __webpack_require__(79674);
163
- const bdd_1 = __webpack_require__(40855);
164
- const cache = new util_endpoints_2.EndpointCache({
175
+ const cache = new endpoints.EndpointCache({
165
176
  size: 50,
166
177
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
167
178
  });
168
179
  const defaultEndpointResolver = (endpointParams, context = {}) => {
169
- return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
180
+ return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
170
181
  endpointParams: endpointParams,
171
182
  logger: context.logger,
172
183
  }));
173
184
  };
174
- exports.defaultEndpointResolver = defaultEndpointResolver;
175
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
176
-
177
-
178
- /***/ }),
179
-
180
- /***/ 89443:
181
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
182
-
183
-
184
-
185
- var middlewareHostHeader = __webpack_require__(52590);
186
- var middlewareLogger = __webpack_require__(85242);
187
- var middlewareRecursionDetection = __webpack_require__(81568);
188
- var middlewareUserAgent = __webpack_require__(32959);
189
- var configResolver = __webpack_require__(39316);
190
- var core = __webpack_require__(90402);
191
- var schema = __webpack_require__(26890);
192
- var middlewareContentLength = __webpack_require__(47212);
193
- var middlewareEndpoint = __webpack_require__(40099);
194
- var middlewareRetry = __webpack_require__(19618);
195
- var smithyClient = __webpack_require__(61411);
196
- var httpAuthSchemeProvider = __webpack_require__(8396);
197
- var runtimeConfig = __webpack_require__(16901);
198
- var regionConfigResolver = __webpack_require__(36463);
199
- var protocolHttp = __webpack_require__(72356);
200
- var schemas_0 = __webpack_require__(7143);
201
- var errors = __webpack_require__(55843);
202
- var SSOOIDCServiceException = __webpack_require__(93952);
203
-
204
- const resolveClientEndpointParameters = (options) => {
205
- return Object.assign(options, {
206
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
207
- useFipsEndpoint: options.useFipsEndpoint ?? false,
208
- defaultSigningName: "sso-oauth",
209
- });
210
- };
211
- const commonParams = {
212
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
213
- Endpoint: { type: "builtInParams", name: "endpoint" },
214
- Region: { type: "builtInParams", name: "region" },
215
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
216
- };
217
-
218
- const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
219
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
220
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
221
- let _credentials = runtimeConfig.credentials;
222
- return {
223
- setHttpAuthScheme(httpAuthScheme) {
224
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
225
- if (index === -1) {
226
- _httpAuthSchemes.push(httpAuthScheme);
227
- }
228
- else {
229
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
230
- }
231
- },
232
- httpAuthSchemes() {
233
- return _httpAuthSchemes;
234
- },
235
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
236
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
237
- },
238
- httpAuthSchemeProvider() {
239
- return _httpAuthSchemeProvider;
240
- },
241
- setCredentials(credentials) {
242
- _credentials = credentials;
243
- },
244
- credentials() {
245
- return _credentials;
246
- },
247
- };
248
- };
249
- const resolveHttpAuthRuntimeConfig = (config) => {
250
- return {
251
- httpAuthSchemes: config.httpAuthSchemes(),
252
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
253
- credentials: config.credentials(),
254
- };
255
- };
256
-
257
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
258
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
259
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
260
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
261
- };
262
-
263
- class SSOOIDCClient extends smithyClient.Client {
264
- config;
265
- constructor(...[configuration]) {
266
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
267
- super(_config_0);
268
- this.initConfig = _config_0;
269
- const _config_1 = resolveClientEndpointParameters(_config_0);
270
- const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
271
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
272
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
273
- const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
274
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
275
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
276
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
277
- this.config = _config_8;
278
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
279
- this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
280
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
281
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
282
- this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
283
- this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
284
- this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
285
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
286
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
287
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
288
- "aws.auth#sigv4": config.credentials,
289
- }),
290
- }));
291
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
292
- }
293
- destroy() {
294
- super.destroy();
295
- }
296
- }
297
-
298
- class CreateTokenCommand extends smithyClient.Command
299
- .classBuilder()
300
- .ep(commonParams)
301
- .m(function (Command, cs, config, o) {
302
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
303
- })
304
- .s("AWSSSOOIDCService", "CreateToken", {})
305
- .n("SSOOIDCClient", "CreateTokenCommand")
306
- .sc(schemas_0.CreateToken$)
307
- .build() {
308
- }
309
-
310
- const commands = {
311
- CreateTokenCommand,
312
- };
313
- class SSOOIDC extends SSOOIDCClient {
314
- }
315
- smithyClient.createAggregatedClient(commands, SSOOIDC);
316
-
317
- const AccessDeniedExceptionReason = {
318
- KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
319
- };
320
- const InvalidRequestExceptionReason = {
321
- KMS_DISABLED_KEY: "KMS_DisabledException",
322
- KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
323
- KMS_INVALID_STATE: "KMS_InvalidStateException",
324
- KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
325
- };
185
+ endpoints.customEndpointFunctions.aws = utilEndpoints.awsEndpointFunctions;
326
186
 
327
- exports.$Command = smithyClient.Command;
328
- exports.__Client = smithyClient.Client;
329
- exports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;
330
- exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
331
- exports.CreateTokenCommand = CreateTokenCommand;
332
- exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
333
- exports.SSOOIDC = SSOOIDC;
334
- exports.SSOOIDCClient = SSOOIDCClient;
335
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
336
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
337
- Object.defineProperty(exports, '__proto__', {
338
- enumerable: true,
339
- value: schemas_0['__proto__']
340
- });
341
-
342
- Object.keys(schemas_0).forEach(function (k) {
343
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
344
- });
345
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
346
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
347
- Object.defineProperty(exports, '__proto__', {
348
- enumerable: true,
349
- value: errors['__proto__']
350
- });
351
-
352
- Object.keys(errors).forEach(function (k) {
353
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
354
- });
355
-
356
-
357
- /***/ }),
358
-
359
- /***/ 93952:
360
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
361
-
362
-
363
- Object.defineProperty(exports, "__esModule", ({ value: true }));
364
- exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
365
- const smithy_client_1 = __webpack_require__(61411);
366
- Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
367
- class SSOOIDCServiceException extends smithy_client_1.ServiceException {
187
+ class SSOOIDCServiceException extends client.ServiceException {
368
188
  constructor(options) {
369
189
  super(options);
370
190
  Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
371
191
  }
372
192
  }
373
- exports.SSOOIDCServiceException = SSOOIDCServiceException;
374
193
 
375
-
376
- /***/ }),
377
-
378
- /***/ 55843:
379
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
380
-
381
-
382
- Object.defineProperty(exports, "__esModule", ({ value: true }));
383
- exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
384
- const SSOOIDCServiceException_1 = __webpack_require__(93952);
385
- class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
194
+ class AccessDeniedException extends SSOOIDCServiceException {
386
195
  name = "AccessDeniedException";
387
196
  $fault = "client";
388
197
  error;
@@ -400,8 +209,7 @@ class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
400
209
  this.error_description = opts.error_description;
401
210
  }
402
211
  }
403
- exports.AccessDeniedException = AccessDeniedException;
404
- class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
212
+ class AuthorizationPendingException extends SSOOIDCServiceException {
405
213
  name = "AuthorizationPendingException";
406
214
  $fault = "client";
407
215
  error;
@@ -417,8 +225,7 @@ class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCSer
417
225
  this.error_description = opts.error_description;
418
226
  }
419
227
  }
420
- exports.AuthorizationPendingException = AuthorizationPendingException;
421
- class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
228
+ class ExpiredTokenException extends SSOOIDCServiceException {
422
229
  name = "ExpiredTokenException";
423
230
  $fault = "client";
424
231
  error;
@@ -434,8 +241,7 @@ class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
434
241
  this.error_description = opts.error_description;
435
242
  }
436
243
  }
437
- exports.ExpiredTokenException = ExpiredTokenException;
438
- class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
244
+ class InternalServerException extends SSOOIDCServiceException {
439
245
  name = "InternalServerException";
440
246
  $fault = "server";
441
247
  error;
@@ -451,8 +257,7 @@ class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceEx
451
257
  this.error_description = opts.error_description;
452
258
  }
453
259
  }
454
- exports.InternalServerException = InternalServerException;
455
- class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
260
+ class InvalidClientException extends SSOOIDCServiceException {
456
261
  name = "InvalidClientException";
457
262
  $fault = "client";
458
263
  error;
@@ -468,8 +273,7 @@ class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceExc
468
273
  this.error_description = opts.error_description;
469
274
  }
470
275
  }
471
- exports.InvalidClientException = InvalidClientException;
472
- class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
276
+ class InvalidGrantException extends SSOOIDCServiceException {
473
277
  name = "InvalidGrantException";
474
278
  $fault = "client";
475
279
  error;
@@ -485,8 +289,7 @@ class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
485
289
  this.error_description = opts.error_description;
486
290
  }
487
291
  }
488
- exports.InvalidGrantException = InvalidGrantException;
489
- class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
292
+ class InvalidRequestException extends SSOOIDCServiceException {
490
293
  name = "InvalidRequestException";
491
294
  $fault = "client";
492
295
  error;
@@ -504,8 +307,7 @@ class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceEx
504
307
  this.error_description = opts.error_description;
505
308
  }
506
309
  }
507
- exports.InvalidRequestException = InvalidRequestException;
508
- class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
310
+ class InvalidScopeException extends SSOOIDCServiceException {
509
311
  name = "InvalidScopeException";
510
312
  $fault = "client";
511
313
  error;
@@ -521,8 +323,7 @@ class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
521
323
  this.error_description = opts.error_description;
522
324
  }
523
325
  }
524
- exports.InvalidScopeException = InvalidScopeException;
525
- class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
326
+ class SlowDownException extends SSOOIDCServiceException {
526
327
  name = "SlowDownException";
527
328
  $fault = "client";
528
329
  error;
@@ -538,8 +339,7 @@ class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceExceptio
538
339
  this.error_description = opts.error_description;
539
340
  }
540
341
  }
541
- exports.SlowDownException = SlowDownException;
542
- class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
342
+ class UnauthorizedClientException extends SSOOIDCServiceException {
543
343
  name = "UnauthorizedClientException";
544
344
  $fault = "client";
545
345
  error;
@@ -555,8 +355,7 @@ class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServi
555
355
  this.error_description = opts.error_description;
556
356
  }
557
357
  }
558
- exports.UnauthorizedClientException = UnauthorizedClientException;
559
- class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
358
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
560
359
  name = "UnsupportedGrantTypeException";
561
360
  $fault = "client";
562
361
  error;
@@ -572,134 +371,7 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCSer
572
371
  this.error_description = opts.error_description;
573
372
  }
574
373
  }
575
- exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
576
-
577
374
 
578
- /***/ }),
579
-
580
- /***/ 16901:
581
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
582
-
583
-
584
- Object.defineProperty(exports, "__esModule", ({ value: true }));
585
- exports.getRuntimeConfig = void 0;
586
- const tslib_1 = __webpack_require__(61860);
587
- const package_json_1 = tslib_1.__importDefault(__webpack_require__(39955));
588
- const client_1 = __webpack_require__(5152);
589
- const httpAuthSchemes_1 = __webpack_require__(97523);
590
- const util_user_agent_node_1 = __webpack_require__(51656);
591
- const config_resolver_1 = __webpack_require__(39316);
592
- const hash_node_1 = __webpack_require__(5092);
593
- const middleware_retry_1 = __webpack_require__(19618);
594
- const node_config_provider_1 = __webpack_require__(55704);
595
- const node_http_handler_1 = __webpack_require__(61279);
596
- const smithy_client_1 = __webpack_require__(61411);
597
- const util_body_length_node_1 = __webpack_require__(13638);
598
- const util_defaults_mode_node_1 = __webpack_require__(15435);
599
- const util_retry_1 = __webpack_require__(15518);
600
- const runtimeConfig_shared_1 = __webpack_require__(1546);
601
- const getRuntimeConfig = (config) => {
602
- (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
603
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
604
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
605
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
606
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
607
- const loaderConfig = {
608
- profile: config?.profile,
609
- logger: clientSharedValues.logger,
610
- };
611
- return {
612
- ...clientSharedValues,
613
- ...config,
614
- runtime: "node",
615
- defaultsMode,
616
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
617
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
618
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
619
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
620
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
621
- region: config?.region ??
622
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
623
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
624
- retryMode: config?.retryMode ??
625
- (0, node_config_provider_1.loadConfig)({
626
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
627
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
628
- }, config),
629
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
630
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
631
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
632
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
633
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
634
- };
635
- };
636
- exports.getRuntimeConfig = getRuntimeConfig;
637
-
638
-
639
- /***/ }),
640
-
641
- /***/ 1546:
642
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
643
-
644
-
645
- Object.defineProperty(exports, "__esModule", ({ value: true }));
646
- exports.getRuntimeConfig = void 0;
647
- const httpAuthSchemes_1 = __webpack_require__(97523);
648
- const protocols_1 = __webpack_require__(37288);
649
- const core_1 = __webpack_require__(90402);
650
- const smithy_client_1 = __webpack_require__(61411);
651
- const url_parser_1 = __webpack_require__(14494);
652
- const util_base64_1 = __webpack_require__(68385);
653
- const util_utf8_1 = __webpack_require__(71577);
654
- const httpAuthSchemeProvider_1 = __webpack_require__(8396);
655
- const endpointResolver_1 = __webpack_require__(90546);
656
- const schemas_0_1 = __webpack_require__(7143);
657
- const getRuntimeConfig = (config) => {
658
- return {
659
- apiVersion: "2019-06-10",
660
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
661
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
662
- disableHostPrefix: config?.disableHostPrefix ?? false,
663
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
664
- extensions: config?.extensions ?? [],
665
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
666
- httpAuthSchemes: config?.httpAuthSchemes ?? [
667
- {
668
- schemeId: "aws.auth#sigv4",
669
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
670
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
671
- },
672
- {
673
- schemeId: "smithy.api#noAuth",
674
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
675
- signer: new core_1.NoAuthSigner(),
676
- },
677
- ],
678
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
679
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
680
- protocolSettings: config?.protocolSettings ?? {
681
- defaultNamespace: "com.amazonaws.ssooidc",
682
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
683
- version: "2019-06-10",
684
- serviceTarget: "AWSSSOOIDCService",
685
- },
686
- serviceId: config?.serviceId ?? "SSO OIDC",
687
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
688
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
689
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
690
- };
691
- };
692
- exports.getRuntimeConfig = getRuntimeConfig;
693
-
694
-
695
- /***/ }),
696
-
697
- /***/ 7143:
698
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
699
-
700
-
701
- Object.defineProperty(exports, "__esModule", ({ value: true }));
702
- exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
703
375
  const _ADE = "AccessDeniedException";
704
376
  const _APE = "AuthorizationPendingException";
705
377
  const _AT = "AccessToken";
@@ -741,14 +413,11 @@ const _sc = "scope";
741
413
  const _se = "server";
742
414
  const _tT = "tokenType";
743
415
  const n0 = "com.amazonaws.ssooidc";
744
- const schema_1 = __webpack_require__(26890);
745
- const errors_1 = __webpack_require__(55843);
746
- const SSOOIDCServiceException_1 = __webpack_require__(93952);
747
- const _s_registry = schema_1.TypeRegistry.for(_s);
748
- exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
749
- _s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
750
- const n0_registry = schema_1.TypeRegistry.for(n0);
751
- exports.AccessDeniedException$ = [
416
+ const _s_registry = schema.TypeRegistry.for(_s);
417
+ var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
418
+ _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
419
+ const n0_registry = schema.TypeRegistry.for(n0);
420
+ var AccessDeniedException$ = [
752
421
  -3,
753
422
  n0,
754
423
  _ADE,
@@ -756,8 +425,8 @@ exports.AccessDeniedException$ = [
756
425
  [_e, _r, _ed],
757
426
  [0, 0, 0],
758
427
  ];
759
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
760
- exports.AuthorizationPendingException$ = [
428
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
429
+ var AuthorizationPendingException$ = [
761
430
  -3,
762
431
  n0,
763
432
  _APE,
@@ -765,16 +434,16 @@ exports.AuthorizationPendingException$ = [
765
434
  [_e, _ed],
766
435
  [0, 0],
767
436
  ];
768
- n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
769
- exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
770
- n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
771
- exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
772
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
773
- exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
774
- n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
775
- exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
776
- n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
777
- exports.InvalidRequestException$ = [
437
+ n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
438
+ var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
439
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
440
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
441
+ n0_registry.registerError(InternalServerException$, InternalServerException);
442
+ var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
443
+ n0_registry.registerError(InvalidClientException$, InvalidClientException);
444
+ var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
445
+ n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
446
+ var InvalidRequestException$ = [
778
447
  -3,
779
448
  n0,
780
449
  _IRE,
@@ -782,12 +451,12 @@ exports.InvalidRequestException$ = [
782
451
  [_e, _r, _ed],
783
452
  [0, 0, 0],
784
453
  ];
785
- n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
786
- exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
787
- n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
788
- exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
789
- n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
790
- exports.UnauthorizedClientException$ = [
454
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
455
+ var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
456
+ n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
457
+ var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
458
+ n0_registry.registerError(SlowDownException$, SlowDownException);
459
+ var UnauthorizedClientException$ = [
791
460
  -3,
792
461
  n0,
793
462
  _UCE,
@@ -795,8 +464,8 @@ exports.UnauthorizedClientException$ = [
795
464
  [_e, _ed],
796
465
  [0, 0],
797
466
  ];
798
- n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
799
- exports.UnsupportedGrantTypeException$ = [
467
+ n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
468
+ var UnsupportedGrantTypeException$ = [
800
469
  -3,
801
470
  n0,
802
471
  _UGTE,
@@ -804,14 +473,14 @@ exports.UnsupportedGrantTypeException$ = [
804
473
  [_e, _ed],
805
474
  [0, 0],
806
475
  ];
807
- n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
808
- exports.errorTypeRegistries = [_s_registry, n0_registry];
476
+ n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
477
+ const errorTypeRegistries = [_s_registry, n0_registry];
809
478
  var AccessToken = [0, n0, _AT, 8, 0];
810
479
  var ClientSecret = [0, n0, _CS, 8, 0];
811
480
  var CodeVerifier = [0, n0, _CV, 8, 0];
812
481
  var IdToken = [0, n0, _IT, 8, 0];
813
482
  var RefreshToken = [0, n0, _RT, 8, 0];
814
- exports.CreateTokenRequest$ = [
483
+ var CreateTokenRequest$ = [
815
484
  3,
816
485
  n0,
817
486
  _CTR,
@@ -820,7 +489,7 @@ exports.CreateTokenRequest$ = [
820
489
  [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
821
490
  3,
822
491
  ];
823
- exports.CreateTokenResponse$ = [
492
+ var CreateTokenResponse$ = [
824
493
  3,
825
494
  n0,
826
495
  _CTRr,
@@ -828,16 +497,232 @@ exports.CreateTokenResponse$ = [
828
497
  [_aT, _tT, _eI, _rT, _iT],
829
498
  [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
830
499
  ];
831
- var Scopes = (/* unused pure expression or super */ null && (64 | 0));
832
- exports.CreateToken$ = [
500
+ var CreateToken$ = [
833
501
  9,
834
502
  n0,
835
503
  _CT,
836
504
  { [_h]: ["POST", "/token", 200] },
837
- () => exports.CreateTokenRequest$,
838
- () => exports.CreateTokenResponse$,
505
+ () => CreateTokenRequest$,
506
+ () => CreateTokenResponse$,
839
507
  ];
840
508
 
509
+ const getRuntimeConfig$1 = (config) => {
510
+ return {
511
+ apiVersion: "2019-06-10",
512
+ base64Decoder: config?.base64Decoder ?? serde.fromBase64,
513
+ base64Encoder: config?.base64Encoder ?? serde.toBase64,
514
+ disableHostPrefix: config?.disableHostPrefix ?? false,
515
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
516
+ extensions: config?.extensions ?? [],
517
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
518
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
519
+ {
520
+ schemeId: "aws.auth#sigv4",
521
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
522
+ signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
523
+ },
524
+ {
525
+ schemeId: "smithy.api#noAuth",
526
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
527
+ signer: new core.NoAuthSigner(),
528
+ },
529
+ ],
530
+ logger: config?.logger ?? new client.NoOpLogger(),
531
+ protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol,
532
+ protocolSettings: config?.protocolSettings ?? {
533
+ defaultNamespace: "com.amazonaws.ssooidc",
534
+ errorTypeRegistries,
535
+ version: "2019-06-10",
536
+ serviceTarget: "AWSSSOOIDCService",
537
+ },
538
+ serviceId: config?.serviceId ?? "SSO OIDC",
539
+ urlParser: config?.urlParser ?? protocols.parseUrl,
540
+ utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
541
+ utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
542
+ };
543
+ };
544
+
545
+ const getRuntimeConfig = (config$1) => {
546
+ client.emitWarningIfUnsupportedVersion(process.version);
547
+ const defaultsMode = config.resolveDefaultsModeConfig(config$1);
548
+ const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
549
+ const clientSharedValues = getRuntimeConfig$1(config$1);
550
+ client$1.emitWarningIfUnsupportedVersion(process.version);
551
+ const loaderConfig = {
552
+ profile: config$1?.profile,
553
+ logger: clientSharedValues.logger,
554
+ };
555
+ return {
556
+ ...clientSharedValues,
557
+ ...config$1,
558
+ runtime: "node",
559
+ defaultsMode,
560
+ authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
561
+ bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
562
+ defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??
563
+ utilUserAgentNode.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
564
+ maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
565
+ region: config$1?.region ??
566
+ config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
567
+ requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
568
+ retryMode: config$1?.retryMode ??
569
+ config.loadConfig({
570
+ ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
571
+ default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
572
+ }, config$1),
573
+ sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
574
+ streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
575
+ useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
576
+ useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
577
+ userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(utilUserAgentNode.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
578
+ };
579
+ };
580
+
581
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
582
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
583
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
584
+ let _credentials = runtimeConfig.credentials;
585
+ return {
586
+ setHttpAuthScheme(httpAuthScheme) {
587
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
588
+ if (index === -1) {
589
+ _httpAuthSchemes.push(httpAuthScheme);
590
+ }
591
+ else {
592
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
593
+ }
594
+ },
595
+ httpAuthSchemes() {
596
+ return _httpAuthSchemes;
597
+ },
598
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
599
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
600
+ },
601
+ httpAuthSchemeProvider() {
602
+ return _httpAuthSchemeProvider;
603
+ },
604
+ setCredentials(credentials) {
605
+ _credentials = credentials;
606
+ },
607
+ credentials() {
608
+ return _credentials;
609
+ },
610
+ };
611
+ };
612
+ const resolveHttpAuthRuntimeConfig = (config) => {
613
+ return {
614
+ httpAuthSchemes: config.httpAuthSchemes(),
615
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
616
+ credentials: config.credentials(),
617
+ };
618
+ };
619
+
620
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
621
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
622
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
623
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
624
+ };
625
+
626
+ class SSOOIDCClient extends client.Client {
627
+ config;
628
+ constructor(...[configuration]) {
629
+ const _config_0 = getRuntimeConfig(configuration || {});
630
+ super(_config_0);
631
+ this.initConfig = _config_0;
632
+ const _config_1 = resolveClientEndpointParameters(_config_0);
633
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
634
+ const _config_3 = retry.resolveRetryConfig(_config_2);
635
+ const _config_4 = config.resolveRegionConfig(_config_3);
636
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
637
+ const _config_6 = endpoints.resolveEndpointConfig(_config_5);
638
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
639
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
640
+ this.config = _config_8;
641
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
642
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
643
+ this.middlewareStack.use(retry.getRetryPlugin(this.config));
644
+ this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
645
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
646
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
647
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
648
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
649
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
650
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
651
+ "aws.auth#sigv4": config.credentials,
652
+ }),
653
+ }));
654
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
655
+ }
656
+ destroy() {
657
+ super.destroy();
658
+ }
659
+ }
660
+
661
+ class CreateTokenCommand extends client.Command
662
+ .classBuilder()
663
+ .ep(commonParams)
664
+ .m(function (Command, cs, config, o) {
665
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
666
+ })
667
+ .s("AWSSSOOIDCService", "CreateToken", {})
668
+ .n("SSOOIDCClient", "CreateTokenCommand")
669
+ .sc(CreateToken$)
670
+ .build() {
671
+ }
672
+
673
+ const commands = {
674
+ CreateTokenCommand,
675
+ };
676
+ class SSOOIDC extends SSOOIDCClient {
677
+ }
678
+ client.createAggregatedClient(commands, SSOOIDC);
679
+
680
+ const AccessDeniedExceptionReason = {
681
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
682
+ };
683
+ const InvalidRequestExceptionReason = {
684
+ KMS_DISABLED_KEY: "KMS_DisabledException",
685
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
686
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
687
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
688
+ };
689
+
690
+ __webpack_unused_export__ = client.Command;
691
+ __webpack_unused_export__ = client.Client;
692
+ __webpack_unused_export__ = AccessDeniedException;
693
+ __webpack_unused_export__ = AccessDeniedException$;
694
+ __webpack_unused_export__ = AccessDeniedExceptionReason;
695
+ __webpack_unused_export__ = AuthorizationPendingException;
696
+ __webpack_unused_export__ = AuthorizationPendingException$;
697
+ __webpack_unused_export__ = CreateToken$;
698
+ exports.CreateTokenCommand = CreateTokenCommand;
699
+ __webpack_unused_export__ = CreateTokenRequest$;
700
+ __webpack_unused_export__ = CreateTokenResponse$;
701
+ __webpack_unused_export__ = ExpiredTokenException;
702
+ __webpack_unused_export__ = ExpiredTokenException$;
703
+ __webpack_unused_export__ = InternalServerException;
704
+ __webpack_unused_export__ = InternalServerException$;
705
+ __webpack_unused_export__ = InvalidClientException;
706
+ __webpack_unused_export__ = InvalidClientException$;
707
+ __webpack_unused_export__ = InvalidGrantException;
708
+ __webpack_unused_export__ = InvalidGrantException$;
709
+ __webpack_unused_export__ = InvalidRequestException;
710
+ __webpack_unused_export__ = InvalidRequestException$;
711
+ __webpack_unused_export__ = InvalidRequestExceptionReason;
712
+ __webpack_unused_export__ = InvalidScopeException;
713
+ __webpack_unused_export__ = InvalidScopeException$;
714
+ __webpack_unused_export__ = SSOOIDC;
715
+ exports.SSOOIDCClient = SSOOIDCClient;
716
+ __webpack_unused_export__ = SSOOIDCServiceException;
717
+ __webpack_unused_export__ = SSOOIDCServiceException$;
718
+ __webpack_unused_export__ = SlowDownException;
719
+ __webpack_unused_export__ = SlowDownException$;
720
+ __webpack_unused_export__ = UnauthorizedClientException;
721
+ __webpack_unused_export__ = UnauthorizedClientException$;
722
+ __webpack_unused_export__ = UnsupportedGrantTypeException;
723
+ __webpack_unused_export__ = UnsupportedGrantTypeException$;
724
+ __webpack_unused_export__ = errorTypeRegistries;
725
+
841
726
 
842
727
  /***/ })
843
728