@rharkor/caching-for-turbo 2.3.1 → 2.3.3

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.
@@ -0,0 +1,795 @@
1
+ export const id = 443;
2
+ export const ids = [443];
3
+ export const modules = {
4
+
5
+ /***/ 8396:
6
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
+
8
+
9
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10
+ exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
11
+ const core_1 = __webpack_require__(8704);
12
+ const util_middleware_1 = __webpack_require__(76324);
13
+ const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
14
+ return {
15
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
16
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
17
+ (() => {
18
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
19
+ })(),
20
+ };
21
+ };
22
+ exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
23
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
24
+ return {
25
+ schemeId: "aws.auth#sigv4",
26
+ signingProperties: {
27
+ name: "sso-oauth",
28
+ region: authParameters.region,
29
+ },
30
+ propertiesExtractor: (config, context) => ({
31
+ signingProperties: {
32
+ config,
33
+ context,
34
+ },
35
+ }),
36
+ };
37
+ }
38
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
39
+ return {
40
+ schemeId: "smithy.api#noAuth",
41
+ };
42
+ }
43
+ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
44
+ const options = [];
45
+ switch (authParameters.operation) {
46
+ case "CreateToken": {
47
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
48
+ break;
49
+ }
50
+ default: {
51
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
52
+ }
53
+ }
54
+ return options;
55
+ };
56
+ exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
57
+ const resolveHttpAuthSchemeConfig = (config) => {
58
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
59
+ return Object.assign(config_0, {
60
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
61
+ });
62
+ };
63
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
64
+
65
+
66
+ /***/ }),
67
+
68
+ /***/ 90546:
69
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
70
+
71
+
72
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
73
+ exports.defaultEndpointResolver = void 0;
74
+ const util_endpoints_1 = __webpack_require__(83068);
75
+ const util_endpoints_2 = __webpack_require__(79674);
76
+ const ruleset_1 = __webpack_require__(69947);
77
+ const cache = new util_endpoints_2.EndpointCache({
78
+ size: 50,
79
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
80
+ });
81
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
82
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
83
+ endpointParams: endpointParams,
84
+ logger: context.logger,
85
+ }));
86
+ };
87
+ exports.defaultEndpointResolver = defaultEndpointResolver;
88
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
89
+
90
+
91
+ /***/ }),
92
+
93
+ /***/ 69947:
94
+ /***/ ((__unused_webpack_module, exports) => {
95
+
96
+
97
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
98
+ exports.ruleSet = void 0;
99
+ const u = "required", v = "fn", w = "argv", x = "ref";
100
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
101
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
102
+ exports.ruleSet = _data;
103
+
104
+
105
+ /***/ }),
106
+
107
+ /***/ 89443:
108
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
109
+
110
+ var __webpack_unused_export__;
111
+
112
+
113
+ var middlewareHostHeader = __webpack_require__(52590);
114
+ var middlewareLogger = __webpack_require__(85242);
115
+ var middlewareRecursionDetection = __webpack_require__(81568);
116
+ var middlewareUserAgent = __webpack_require__(32959);
117
+ var configResolver = __webpack_require__(39316);
118
+ var core = __webpack_require__(90402);
119
+ var schema = __webpack_require__(26890);
120
+ var middlewareContentLength = __webpack_require__(47212);
121
+ var middlewareEndpoint = __webpack_require__(40099);
122
+ var middlewareRetry = __webpack_require__(19618);
123
+ var smithyClient = __webpack_require__(61411);
124
+ var httpAuthSchemeProvider = __webpack_require__(8396);
125
+ var runtimeConfig = __webpack_require__(16901);
126
+ var regionConfigResolver = __webpack_require__(36463);
127
+ var protocolHttp = __webpack_require__(72356);
128
+
129
+ const resolveClientEndpointParameters = (options) => {
130
+ return Object.assign(options, {
131
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
132
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
133
+ defaultSigningName: "sso-oauth",
134
+ });
135
+ };
136
+ const commonParams = {
137
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
138
+ Endpoint: { type: "builtInParams", name: "endpoint" },
139
+ Region: { type: "builtInParams", name: "region" },
140
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
141
+ };
142
+
143
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
144
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
145
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
146
+ let _credentials = runtimeConfig.credentials;
147
+ return {
148
+ setHttpAuthScheme(httpAuthScheme) {
149
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
150
+ if (index === -1) {
151
+ _httpAuthSchemes.push(httpAuthScheme);
152
+ }
153
+ else {
154
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
155
+ }
156
+ },
157
+ httpAuthSchemes() {
158
+ return _httpAuthSchemes;
159
+ },
160
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
161
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
162
+ },
163
+ httpAuthSchemeProvider() {
164
+ return _httpAuthSchemeProvider;
165
+ },
166
+ setCredentials(credentials) {
167
+ _credentials = credentials;
168
+ },
169
+ credentials() {
170
+ return _credentials;
171
+ },
172
+ };
173
+ };
174
+ const resolveHttpAuthRuntimeConfig = (config) => {
175
+ return {
176
+ httpAuthSchemes: config.httpAuthSchemes(),
177
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
178
+ credentials: config.credentials(),
179
+ };
180
+ };
181
+
182
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
183
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
184
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
185
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
186
+ };
187
+
188
+ class SSOOIDCClient extends smithyClient.Client {
189
+ config;
190
+ constructor(...[configuration]) {
191
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
192
+ super(_config_0);
193
+ this.initConfig = _config_0;
194
+ const _config_1 = resolveClientEndpointParameters(_config_0);
195
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
196
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
197
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
198
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
199
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
200
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
201
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
202
+ this.config = _config_8;
203
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
204
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
205
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
206
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
207
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
208
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
209
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
210
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
211
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
212
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
213
+ "aws.auth#sigv4": config.credentials,
214
+ }),
215
+ }));
216
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
217
+ }
218
+ destroy() {
219
+ super.destroy();
220
+ }
221
+ }
222
+
223
+ let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException {
224
+ constructor(options) {
225
+ super(options);
226
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
227
+ }
228
+ };
229
+
230
+ let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
231
+ name = "AccessDeniedException";
232
+ $fault = "client";
233
+ error;
234
+ reason;
235
+ error_description;
236
+ constructor(opts) {
237
+ super({
238
+ name: "AccessDeniedException",
239
+ $fault: "client",
240
+ ...opts,
241
+ });
242
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
243
+ this.error = opts.error;
244
+ this.reason = opts.reason;
245
+ this.error_description = opts.error_description;
246
+ }
247
+ };
248
+ let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 {
249
+ name = "AuthorizationPendingException";
250
+ $fault = "client";
251
+ error;
252
+ error_description;
253
+ constructor(opts) {
254
+ super({
255
+ name: "AuthorizationPendingException",
256
+ $fault: "client",
257
+ ...opts,
258
+ });
259
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
260
+ this.error = opts.error;
261
+ this.error_description = opts.error_description;
262
+ }
263
+ };
264
+ let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 {
265
+ name = "ExpiredTokenException";
266
+ $fault = "client";
267
+ error;
268
+ error_description;
269
+ constructor(opts) {
270
+ super({
271
+ name: "ExpiredTokenException",
272
+ $fault: "client",
273
+ ...opts,
274
+ });
275
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
276
+ this.error = opts.error;
277
+ this.error_description = opts.error_description;
278
+ }
279
+ };
280
+ let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 {
281
+ name = "InternalServerException";
282
+ $fault = "server";
283
+ error;
284
+ error_description;
285
+ constructor(opts) {
286
+ super({
287
+ name: "InternalServerException",
288
+ $fault: "server",
289
+ ...opts,
290
+ });
291
+ Object.setPrototypeOf(this, InternalServerException.prototype);
292
+ this.error = opts.error;
293
+ this.error_description = opts.error_description;
294
+ }
295
+ };
296
+ let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 {
297
+ name = "InvalidClientException";
298
+ $fault = "client";
299
+ error;
300
+ error_description;
301
+ constructor(opts) {
302
+ super({
303
+ name: "InvalidClientException",
304
+ $fault: "client",
305
+ ...opts,
306
+ });
307
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
308
+ this.error = opts.error;
309
+ this.error_description = opts.error_description;
310
+ }
311
+ };
312
+ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 {
313
+ name = "InvalidGrantException";
314
+ $fault = "client";
315
+ error;
316
+ error_description;
317
+ constructor(opts) {
318
+ super({
319
+ name: "InvalidGrantException",
320
+ $fault: "client",
321
+ ...opts,
322
+ });
323
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
324
+ this.error = opts.error;
325
+ this.error_description = opts.error_description;
326
+ }
327
+ };
328
+ let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
329
+ name = "InvalidRequestException";
330
+ $fault = "client";
331
+ error;
332
+ reason;
333
+ error_description;
334
+ constructor(opts) {
335
+ super({
336
+ name: "InvalidRequestException",
337
+ $fault: "client",
338
+ ...opts,
339
+ });
340
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
341
+ this.error = opts.error;
342
+ this.reason = opts.reason;
343
+ this.error_description = opts.error_description;
344
+ }
345
+ };
346
+ let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 {
347
+ name = "InvalidScopeException";
348
+ $fault = "client";
349
+ error;
350
+ error_description;
351
+ constructor(opts) {
352
+ super({
353
+ name: "InvalidScopeException",
354
+ $fault: "client",
355
+ ...opts,
356
+ });
357
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
358
+ this.error = opts.error;
359
+ this.error_description = opts.error_description;
360
+ }
361
+ };
362
+ let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 {
363
+ name = "SlowDownException";
364
+ $fault = "client";
365
+ error;
366
+ error_description;
367
+ constructor(opts) {
368
+ super({
369
+ name: "SlowDownException",
370
+ $fault: "client",
371
+ ...opts,
372
+ });
373
+ Object.setPrototypeOf(this, SlowDownException.prototype);
374
+ this.error = opts.error;
375
+ this.error_description = opts.error_description;
376
+ }
377
+ };
378
+ let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 {
379
+ name = "UnauthorizedClientException";
380
+ $fault = "client";
381
+ error;
382
+ error_description;
383
+ constructor(opts) {
384
+ super({
385
+ name: "UnauthorizedClientException",
386
+ $fault: "client",
387
+ ...opts,
388
+ });
389
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
390
+ this.error = opts.error;
391
+ this.error_description = opts.error_description;
392
+ }
393
+ };
394
+ let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 {
395
+ name = "UnsupportedGrantTypeException";
396
+ $fault = "client";
397
+ error;
398
+ error_description;
399
+ constructor(opts) {
400
+ super({
401
+ name: "UnsupportedGrantTypeException",
402
+ $fault: "client",
403
+ ...opts,
404
+ });
405
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
406
+ this.error = opts.error;
407
+ this.error_description = opts.error_description;
408
+ }
409
+ };
410
+
411
+ const _ADE = "AccessDeniedException";
412
+ const _APE = "AuthorizationPendingException";
413
+ const _AT = "AccessToken";
414
+ const _CS = "ClientSecret";
415
+ const _CT = "CreateToken";
416
+ const _CTR = "CreateTokenRequest";
417
+ const _CTRr = "CreateTokenResponse";
418
+ const _CV = "CodeVerifier";
419
+ const _ETE = "ExpiredTokenException";
420
+ const _ICE = "InvalidClientException";
421
+ const _IGE = "InvalidGrantException";
422
+ const _IRE = "InvalidRequestException";
423
+ const _ISE = "InternalServerException";
424
+ const _ISEn = "InvalidScopeException";
425
+ const _IT = "IdToken";
426
+ const _RT = "RefreshToken";
427
+ const _SDE = "SlowDownException";
428
+ const _UCE = "UnauthorizedClientException";
429
+ const _UGTE = "UnsupportedGrantTypeException";
430
+ const _aT = "accessToken";
431
+ const _c = "client";
432
+ const _cI = "clientId";
433
+ const _cS = "clientSecret";
434
+ const _cV = "codeVerifier";
435
+ const _co = "code";
436
+ const _dC = "deviceCode";
437
+ const _e = "error";
438
+ const _eI = "expiresIn";
439
+ const _ed = "error_description";
440
+ const _gT = "grantType";
441
+ const _h = "http";
442
+ const _hE = "httpError";
443
+ const _iT = "idToken";
444
+ const _r = "reason";
445
+ const _rT = "refreshToken";
446
+ const _rU = "redirectUri";
447
+ const _s = "scope";
448
+ const _se = "server";
449
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
450
+ const _tT = "tokenType";
451
+ const n0 = "com.amazonaws.ssooidc";
452
+ var AccessToken = [0, n0, _AT, 8, 0];
453
+ var ClientSecret = [0, n0, _CS, 8, 0];
454
+ var CodeVerifier = [0, n0, _CV, 8, 0];
455
+ var IdToken = [0, n0, _IT, 8, 0];
456
+ var RefreshToken = [0, n0, _RT, 8, 0];
457
+ var AccessDeniedException = [
458
+ -3,
459
+ n0,
460
+ _ADE,
461
+ {
462
+ [_e]: _c,
463
+ [_hE]: 400,
464
+ },
465
+ [_e, _r, _ed],
466
+ [0, 0, 0],
467
+ ];
468
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
469
+ var AuthorizationPendingException = [
470
+ -3,
471
+ n0,
472
+ _APE,
473
+ {
474
+ [_e]: _c,
475
+ [_hE]: 400,
476
+ },
477
+ [_e, _ed],
478
+ [0, 0],
479
+ ];
480
+ schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1);
481
+ var CreateTokenRequest = [
482
+ 3,
483
+ n0,
484
+ _CTR,
485
+ 0,
486
+ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
487
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
488
+ ];
489
+ var CreateTokenResponse = [
490
+ 3,
491
+ n0,
492
+ _CTRr,
493
+ 0,
494
+ [_aT, _tT, _eI, _rT, _iT],
495
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
496
+ ];
497
+ var ExpiredTokenException = [
498
+ -3,
499
+ n0,
500
+ _ETE,
501
+ {
502
+ [_e]: _c,
503
+ [_hE]: 400,
504
+ },
505
+ [_e, _ed],
506
+ [0, 0],
507
+ ];
508
+ schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
509
+ var InternalServerException = [
510
+ -3,
511
+ n0,
512
+ _ISE,
513
+ {
514
+ [_e]: _se,
515
+ [_hE]: 500,
516
+ },
517
+ [_e, _ed],
518
+ [0, 0],
519
+ ];
520
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
521
+ var InvalidClientException = [
522
+ -3,
523
+ n0,
524
+ _ICE,
525
+ {
526
+ [_e]: _c,
527
+ [_hE]: 401,
528
+ },
529
+ [_e, _ed],
530
+ [0, 0],
531
+ ];
532
+ schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
533
+ var InvalidGrantException = [
534
+ -3,
535
+ n0,
536
+ _IGE,
537
+ {
538
+ [_e]: _c,
539
+ [_hE]: 400,
540
+ },
541
+ [_e, _ed],
542
+ [0, 0],
543
+ ];
544
+ schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1);
545
+ var InvalidRequestException = [
546
+ -3,
547
+ n0,
548
+ _IRE,
549
+ {
550
+ [_e]: _c,
551
+ [_hE]: 400,
552
+ },
553
+ [_e, _r, _ed],
554
+ [0, 0, 0],
555
+ ];
556
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
557
+ var InvalidScopeException = [
558
+ -3,
559
+ n0,
560
+ _ISEn,
561
+ {
562
+ [_e]: _c,
563
+ [_hE]: 400,
564
+ },
565
+ [_e, _ed],
566
+ [0, 0],
567
+ ];
568
+ schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1);
569
+ var SlowDownException = [
570
+ -3,
571
+ n0,
572
+ _SDE,
573
+ {
574
+ [_e]: _c,
575
+ [_hE]: 400,
576
+ },
577
+ [_e, _ed],
578
+ [0, 0],
579
+ ];
580
+ schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1);
581
+ var UnauthorizedClientException = [
582
+ -3,
583
+ n0,
584
+ _UCE,
585
+ {
586
+ [_e]: _c,
587
+ [_hE]: 400,
588
+ },
589
+ [_e, _ed],
590
+ [0, 0],
591
+ ];
592
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1);
593
+ var UnsupportedGrantTypeException = [
594
+ -3,
595
+ n0,
596
+ _UGTE,
597
+ {
598
+ [_e]: _c,
599
+ [_hE]: 400,
600
+ },
601
+ [_e, _ed],
602
+ [0, 0],
603
+ ];
604
+ schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1);
605
+ var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
606
+ schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1);
607
+ var CreateToken = [
608
+ 9,
609
+ n0,
610
+ _CT,
611
+ {
612
+ [_h]: ["POST", "/token", 200],
613
+ },
614
+ () => CreateTokenRequest,
615
+ () => CreateTokenResponse,
616
+ ];
617
+
618
+ class CreateTokenCommand extends smithyClient.Command
619
+ .classBuilder()
620
+ .ep(commonParams)
621
+ .m(function (Command, cs, config, o) {
622
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
623
+ })
624
+ .s("AWSSSOOIDCService", "CreateToken", {})
625
+ .n("SSOOIDCClient", "CreateTokenCommand")
626
+ .sc(CreateToken)
627
+ .build() {
628
+ }
629
+
630
+ const commands = {
631
+ CreateTokenCommand,
632
+ };
633
+ class SSOOIDC extends SSOOIDCClient {
634
+ }
635
+ smithyClient.createAggregatedClient(commands, SSOOIDC);
636
+
637
+ const AccessDeniedExceptionReason = {
638
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
639
+ };
640
+ const InvalidRequestExceptionReason = {
641
+ KMS_DISABLED_KEY: "KMS_DisabledException",
642
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
643
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
644
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
645
+ };
646
+
647
+ __webpack_unused_export__ = ({
648
+ enumerable: true,
649
+ get: function () { return smithyClient.Command; }
650
+ });
651
+ __webpack_unused_export__ = ({
652
+ enumerable: true,
653
+ get: function () { return smithyClient.Client; }
654
+ });
655
+ __webpack_unused_export__ = AccessDeniedException$1;
656
+ __webpack_unused_export__ = AccessDeniedExceptionReason;
657
+ __webpack_unused_export__ = AuthorizationPendingException$1;
658
+ exports.CreateTokenCommand = CreateTokenCommand;
659
+ __webpack_unused_export__ = ExpiredTokenException$1;
660
+ __webpack_unused_export__ = InternalServerException$1;
661
+ __webpack_unused_export__ = InvalidClientException$1;
662
+ __webpack_unused_export__ = InvalidGrantException$1;
663
+ __webpack_unused_export__ = InvalidRequestException$1;
664
+ __webpack_unused_export__ = InvalidRequestExceptionReason;
665
+ __webpack_unused_export__ = InvalidScopeException$1;
666
+ __webpack_unused_export__ = SSOOIDC;
667
+ exports.SSOOIDCClient = SSOOIDCClient;
668
+ __webpack_unused_export__ = SSOOIDCServiceException$1;
669
+ __webpack_unused_export__ = SlowDownException$1;
670
+ __webpack_unused_export__ = UnauthorizedClientException$1;
671
+ __webpack_unused_export__ = UnsupportedGrantTypeException$1;
672
+
673
+
674
+ /***/ }),
675
+
676
+ /***/ 16901:
677
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
678
+
679
+
680
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
681
+ exports.getRuntimeConfig = void 0;
682
+ const tslib_1 = __webpack_require__(61860);
683
+ const package_json_1 = tslib_1.__importDefault(__webpack_require__(39955));
684
+ const core_1 = __webpack_require__(8704);
685
+ const util_user_agent_node_1 = __webpack_require__(51656);
686
+ const config_resolver_1 = __webpack_require__(39316);
687
+ const hash_node_1 = __webpack_require__(5092);
688
+ const middleware_retry_1 = __webpack_require__(19618);
689
+ const node_config_provider_1 = __webpack_require__(55704);
690
+ const node_http_handler_1 = __webpack_require__(61279);
691
+ const util_body_length_node_1 = __webpack_require__(13638);
692
+ const util_retry_1 = __webpack_require__(15518);
693
+ const runtimeConfig_shared_1 = __webpack_require__(1546);
694
+ const smithy_client_1 = __webpack_require__(61411);
695
+ const util_defaults_mode_node_1 = __webpack_require__(15435);
696
+ const smithy_client_2 = __webpack_require__(61411);
697
+ const getRuntimeConfig = (config) => {
698
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
699
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
700
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
701
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
702
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
703
+ const loaderConfig = {
704
+ profile: config?.profile,
705
+ logger: clientSharedValues.logger,
706
+ };
707
+ return {
708
+ ...clientSharedValues,
709
+ ...config,
710
+ runtime: "node",
711
+ defaultsMode,
712
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
713
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
714
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
715
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
716
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
717
+ region: config?.region ??
718
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
719
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
720
+ retryMode: config?.retryMode ??
721
+ (0, node_config_provider_1.loadConfig)({
722
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
723
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
724
+ }, config),
725
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
726
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
727
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
728
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
729
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
730
+ };
731
+ };
732
+ exports.getRuntimeConfig = getRuntimeConfig;
733
+
734
+
735
+ /***/ }),
736
+
737
+ /***/ 1546:
738
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
739
+
740
+
741
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
742
+ exports.getRuntimeConfig = void 0;
743
+ const core_1 = __webpack_require__(8704);
744
+ const protocols_1 = __webpack_require__(37288);
745
+ const core_2 = __webpack_require__(90402);
746
+ const smithy_client_1 = __webpack_require__(61411);
747
+ const url_parser_1 = __webpack_require__(14494);
748
+ const util_base64_1 = __webpack_require__(68385);
749
+ const util_utf8_1 = __webpack_require__(71577);
750
+ const httpAuthSchemeProvider_1 = __webpack_require__(8396);
751
+ const endpointResolver_1 = __webpack_require__(90546);
752
+ const getRuntimeConfig = (config) => {
753
+ return {
754
+ apiVersion: "2019-06-10",
755
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
756
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
757
+ disableHostPrefix: config?.disableHostPrefix ?? false,
758
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
759
+ extensions: config?.extensions ?? [],
760
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
761
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
762
+ {
763
+ schemeId: "aws.auth#sigv4",
764
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
765
+ signer: new core_1.AwsSdkSigV4Signer(),
766
+ },
767
+ {
768
+ schemeId: "smithy.api#noAuth",
769
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
770
+ signer: new core_2.NoAuthSigner(),
771
+ },
772
+ ],
773
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
774
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
775
+ serviceId: config?.serviceId ?? "SSO OIDC",
776
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
777
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
778
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
779
+ };
780
+ };
781
+ exports.getRuntimeConfig = getRuntimeConfig;
782
+
783
+
784
+ /***/ }),
785
+
786
+ /***/ 39955:
787
+ /***/ ((module) => {
788
+
789
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.940.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.940.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.940.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.940.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
790
+
791
+ /***/ })
792
+
793
+ };
794
+
795
+ //# sourceMappingURL=443.index.js.map