@rharkor/caching-for-turbo 2.3.11 → 2.3.13

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.
@@ -8,7 +8,7 @@ export const modules = {
8
8
 
9
9
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10
10
  exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
11
- const core_1 = __webpack_require__(8704);
11
+ const httpAuthSchemes_1 = __webpack_require__(97523);
12
12
  const util_middleware_1 = __webpack_require__(76324);
13
13
  const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
14
14
  return {
@@ -55,7 +55,7 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
55
55
  };
56
56
  exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
57
57
  const resolveHttpAuthSchemeConfig = (config) => {
58
- const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
58
+ const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
59
59
  return Object.assign(config_0, {
60
60
  authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
61
61
  });
@@ -97,8 +97,107 @@ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunct
97
97
  Object.defineProperty(exports, "__esModule", ({ value: true }));
98
98
  exports.ruleSet = void 0;
99
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 }] };
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 = {
102
+ version: "1.0",
103
+ parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
104
+ rules: [
105
+ {
106
+ conditions: [{ [v]: b, [w]: [k] }],
107
+ rules: [
108
+ { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
109
+ { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
110
+ { endpoint: { url: k, properties: n, headers: n }, type: e },
111
+ ],
112
+ type: f,
113
+ },
114
+ {
115
+ conditions: [{ [v]: b, [w]: t }],
116
+ rules: [
117
+ {
118
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
119
+ rules: [
120
+ {
121
+ conditions: [l, m],
122
+ rules: [
123
+ {
124
+ conditions: [{ [v]: c, [w]: [a, o] }, q],
125
+ rules: [
126
+ {
127
+ endpoint: {
128
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
129
+ properties: n,
130
+ headers: n,
131
+ },
132
+ type: e,
133
+ },
134
+ ],
135
+ type: f,
136
+ },
137
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
138
+ ],
139
+ type: f,
140
+ },
141
+ {
142
+ conditions: r,
143
+ rules: [
144
+ {
145
+ conditions: [{ [v]: c, [w]: [o, a] }],
146
+ rules: [
147
+ {
148
+ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
149
+ endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
150
+ type: e,
151
+ },
152
+ {
153
+ endpoint: {
154
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
155
+ properties: n,
156
+ headers: n,
157
+ },
158
+ type: e,
159
+ },
160
+ ],
161
+ type: f,
162
+ },
163
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d },
164
+ ],
165
+ type: f,
166
+ },
167
+ {
168
+ conditions: s,
169
+ rules: [
170
+ {
171
+ conditions: [q],
172
+ rules: [
173
+ {
174
+ endpoint: {
175
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
176
+ properties: n,
177
+ headers: n,
178
+ },
179
+ type: e,
180
+ },
181
+ ],
182
+ type: f,
183
+ },
184
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d },
185
+ ],
186
+ type: f,
187
+ },
188
+ {
189
+ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
190
+ type: e,
191
+ },
192
+ ],
193
+ type: f,
194
+ },
195
+ ],
196
+ type: f,
197
+ },
198
+ { error: "Invalid Configuration: Missing Region", type: d },
199
+ ],
200
+ };
102
201
  exports.ruleSet = _data;
103
202
 
104
203
 
@@ -107,7 +206,6 @@ exports.ruleSet = _data;
107
206
  /***/ 89443:
108
207
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
109
208
 
110
- var __webpack_unused_export__;
111
209
 
112
210
 
113
211
  var middlewareHostHeader = __webpack_require__(52590);
@@ -125,6 +223,9 @@ var httpAuthSchemeProvider = __webpack_require__(8396);
125
223
  var runtimeConfig = __webpack_require__(16901);
126
224
  var regionConfigResolver = __webpack_require__(36463);
127
225
  var protocolHttp = __webpack_require__(72356);
226
+ var schemas_0 = __webpack_require__(7143);
227
+ var errors = __webpack_require__(55843);
228
+ var SSOOIDCServiceException = __webpack_require__(93952);
128
229
 
129
230
  const resolveClientEndpointParameters = (options) => {
130
231
  return Object.assign(options, {
@@ -220,14 +321,94 @@ class SSOOIDCClient extends smithyClient.Client {
220
321
  }
221
322
  }
222
323
 
223
- class SSOOIDCServiceException extends smithyClient.ServiceException {
324
+ class CreateTokenCommand extends smithyClient.Command
325
+ .classBuilder()
326
+ .ep(commonParams)
327
+ .m(function (Command, cs, config, o) {
328
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
329
+ })
330
+ .s("AWSSSOOIDCService", "CreateToken", {})
331
+ .n("SSOOIDCClient", "CreateTokenCommand")
332
+ .sc(schemas_0.CreateToken$)
333
+ .build() {
334
+ }
335
+
336
+ const commands = {
337
+ CreateTokenCommand,
338
+ };
339
+ class SSOOIDC extends SSOOIDCClient {
340
+ }
341
+ smithyClient.createAggregatedClient(commands, SSOOIDC);
342
+
343
+ const AccessDeniedExceptionReason = {
344
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
345
+ };
346
+ const InvalidRequestExceptionReason = {
347
+ KMS_DISABLED_KEY: "KMS_DisabledException",
348
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
349
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
350
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
351
+ };
352
+
353
+ exports.$Command = smithyClient.Command;
354
+ exports.__Client = smithyClient.Client;
355
+ exports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;
356
+ exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
357
+ exports.CreateTokenCommand = CreateTokenCommand;
358
+ exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
359
+ exports.SSOOIDC = SSOOIDC;
360
+ exports.SSOOIDCClient = SSOOIDCClient;
361
+ Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
362
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
363
+ Object.defineProperty(exports, '__proto__', {
364
+ enumerable: true,
365
+ value: schemas_0['__proto__']
366
+ });
367
+
368
+ Object.keys(schemas_0).forEach(function (k) {
369
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
370
+ });
371
+ Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
372
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
373
+ Object.defineProperty(exports, '__proto__', {
374
+ enumerable: true,
375
+ value: errors['__proto__']
376
+ });
377
+
378
+ Object.keys(errors).forEach(function (k) {
379
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
380
+ });
381
+
382
+
383
+ /***/ }),
384
+
385
+ /***/ 93952:
386
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
387
+
388
+
389
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
390
+ exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
391
+ const smithy_client_1 = __webpack_require__(61411);
392
+ Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
393
+ class SSOOIDCServiceException extends smithy_client_1.ServiceException {
224
394
  constructor(options) {
225
395
  super(options);
226
396
  Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
227
397
  }
228
398
  }
399
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
400
+
401
+
402
+ /***/ }),
229
403
 
230
- class AccessDeniedException extends SSOOIDCServiceException {
404
+ /***/ 55843:
405
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
406
+
407
+
408
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
409
+ exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
410
+ const SSOOIDCServiceException_1 = __webpack_require__(93952);
411
+ class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
231
412
  name = "AccessDeniedException";
232
413
  $fault = "client";
233
414
  error;
@@ -245,7 +426,8 @@ class AccessDeniedException extends SSOOIDCServiceException {
245
426
  this.error_description = opts.error_description;
246
427
  }
247
428
  }
248
- class AuthorizationPendingException extends SSOOIDCServiceException {
429
+ exports.AccessDeniedException = AccessDeniedException;
430
+ class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
249
431
  name = "AuthorizationPendingException";
250
432
  $fault = "client";
251
433
  error;
@@ -261,7 +443,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException {
261
443
  this.error_description = opts.error_description;
262
444
  }
263
445
  }
264
- class ExpiredTokenException extends SSOOIDCServiceException {
446
+ exports.AuthorizationPendingException = AuthorizationPendingException;
447
+ class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
265
448
  name = "ExpiredTokenException";
266
449
  $fault = "client";
267
450
  error;
@@ -277,7 +460,8 @@ class ExpiredTokenException extends SSOOIDCServiceException {
277
460
  this.error_description = opts.error_description;
278
461
  }
279
462
  }
280
- class InternalServerException extends SSOOIDCServiceException {
463
+ exports.ExpiredTokenException = ExpiredTokenException;
464
+ class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
281
465
  name = "InternalServerException";
282
466
  $fault = "server";
283
467
  error;
@@ -293,7 +477,8 @@ class InternalServerException extends SSOOIDCServiceException {
293
477
  this.error_description = opts.error_description;
294
478
  }
295
479
  }
296
- class InvalidClientException extends SSOOIDCServiceException {
480
+ exports.InternalServerException = InternalServerException;
481
+ class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
297
482
  name = "InvalidClientException";
298
483
  $fault = "client";
299
484
  error;
@@ -309,7 +494,8 @@ class InvalidClientException extends SSOOIDCServiceException {
309
494
  this.error_description = opts.error_description;
310
495
  }
311
496
  }
312
- class InvalidGrantException extends SSOOIDCServiceException {
497
+ exports.InvalidClientException = InvalidClientException;
498
+ class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
313
499
  name = "InvalidGrantException";
314
500
  $fault = "client";
315
501
  error;
@@ -325,7 +511,8 @@ class InvalidGrantException extends SSOOIDCServiceException {
325
511
  this.error_description = opts.error_description;
326
512
  }
327
513
  }
328
- class InvalidRequestException extends SSOOIDCServiceException {
514
+ exports.InvalidGrantException = InvalidGrantException;
515
+ class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
329
516
  name = "InvalidRequestException";
330
517
  $fault = "client";
331
518
  error;
@@ -343,7 +530,8 @@ class InvalidRequestException extends SSOOIDCServiceException {
343
530
  this.error_description = opts.error_description;
344
531
  }
345
532
  }
346
- class InvalidScopeException extends SSOOIDCServiceException {
533
+ exports.InvalidRequestException = InvalidRequestException;
534
+ class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
347
535
  name = "InvalidScopeException";
348
536
  $fault = "client";
349
537
  error;
@@ -359,7 +547,8 @@ class InvalidScopeException extends SSOOIDCServiceException {
359
547
  this.error_description = opts.error_description;
360
548
  }
361
549
  }
362
- class SlowDownException extends SSOOIDCServiceException {
550
+ exports.InvalidScopeException = InvalidScopeException;
551
+ class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
363
552
  name = "SlowDownException";
364
553
  $fault = "client";
365
554
  error;
@@ -375,7 +564,8 @@ class SlowDownException extends SSOOIDCServiceException {
375
564
  this.error_description = opts.error_description;
376
565
  }
377
566
  }
378
- class UnauthorizedClientException extends SSOOIDCServiceException {
567
+ exports.SlowDownException = SlowDownException;
568
+ class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
379
569
  name = "UnauthorizedClientException";
380
570
  $fault = "client";
381
571
  error;
@@ -391,7 +581,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException {
391
581
  this.error_description = opts.error_description;
392
582
  }
393
583
  }
394
- class UnsupportedGrantTypeException extends SSOOIDCServiceException {
584
+ exports.UnauthorizedClientException = UnauthorizedClientException;
585
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
395
586
  name = "UnsupportedGrantTypeException";
396
587
  $fault = "client";
397
588
  error;
@@ -407,207 +598,7 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
407
598
  this.error_description = opts.error_description;
408
599
  }
409
600
  }
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
- { [_e]: _c, [_hE]: 400 },
462
- [_e, _r, _ed],
463
- [0, 0, 0],
464
- ];
465
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
466
- var AuthorizationPendingException$ = [
467
- -3,
468
- n0,
469
- _APE,
470
- { [_e]: _c, [_hE]: 400 },
471
- [_e, _ed],
472
- [0, 0],
473
- ];
474
- schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
475
- var CreateTokenRequest$ = [
476
- 3,
477
- n0,
478
- _CTR,
479
- 0,
480
- [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
481
- [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
482
- 3,
483
- ];
484
- var CreateTokenResponse$ = [
485
- 3,
486
- n0,
487
- _CTRr,
488
- 0,
489
- [_aT, _tT, _eI, _rT, _iT],
490
- [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
491
- ];
492
- var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
493
- schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
494
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
495
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
496
- var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
497
- schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
498
- var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
499
- schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
500
- var InvalidRequestException$ = [
501
- -3,
502
- n0,
503
- _IRE,
504
- { [_e]: _c, [_hE]: 400 },
505
- [_e, _r, _ed],
506
- [0, 0, 0],
507
- ];
508
- schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
509
- var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
510
- schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
511
- var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
512
- schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
513
- var UnauthorizedClientException$ = [
514
- -3,
515
- n0,
516
- _UCE,
517
- { [_e]: _c, [_hE]: 400 },
518
- [_e, _ed],
519
- [0, 0],
520
- ];
521
- schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
522
- var UnsupportedGrantTypeException$ = [
523
- -3,
524
- n0,
525
- _UGTE,
526
- { [_e]: _c, [_hE]: 400 },
527
- [_e, _ed],
528
- [0, 0],
529
- ];
530
- schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
531
- var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
532
- schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
533
- var CreateToken$ = [
534
- 9,
535
- n0,
536
- _CT,
537
- { [_h]: ["POST", "/token", 200] },
538
- () => CreateTokenRequest$,
539
- () => CreateTokenResponse$,
540
- ];
541
-
542
- class CreateTokenCommand extends smithyClient.Command
543
- .classBuilder()
544
- .ep(commonParams)
545
- .m(function (Command, cs, config, o) {
546
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
547
- })
548
- .s("AWSSSOOIDCService", "CreateToken", {})
549
- .n("SSOOIDCClient", "CreateTokenCommand")
550
- .sc(CreateToken$)
551
- .build() {
552
- }
553
-
554
- const commands = {
555
- CreateTokenCommand,
556
- };
557
- class SSOOIDC extends SSOOIDCClient {
558
- }
559
- smithyClient.createAggregatedClient(commands, SSOOIDC);
560
-
561
- const AccessDeniedExceptionReason = {
562
- KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
563
- };
564
- const InvalidRequestExceptionReason = {
565
- KMS_DISABLED_KEY: "KMS_DisabledException",
566
- KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
567
- KMS_INVALID_STATE: "KMS_InvalidStateException",
568
- KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
569
- };
570
-
571
- __webpack_unused_export__ = ({
572
- enumerable: true,
573
- get: function () { return smithyClient.Command; }
574
- });
575
- __webpack_unused_export__ = ({
576
- enumerable: true,
577
- get: function () { return smithyClient.Client; }
578
- });
579
- __webpack_unused_export__ = AccessDeniedException;
580
- __webpack_unused_export__ = AccessDeniedException$;
581
- __webpack_unused_export__ = AccessDeniedExceptionReason;
582
- __webpack_unused_export__ = AuthorizationPendingException;
583
- __webpack_unused_export__ = AuthorizationPendingException$;
584
- __webpack_unused_export__ = CreateToken$;
585
- exports.CreateTokenCommand = CreateTokenCommand;
586
- __webpack_unused_export__ = CreateTokenRequest$;
587
- __webpack_unused_export__ = CreateTokenResponse$;
588
- __webpack_unused_export__ = ExpiredTokenException;
589
- __webpack_unused_export__ = ExpiredTokenException$;
590
- __webpack_unused_export__ = InternalServerException;
591
- __webpack_unused_export__ = InternalServerException$;
592
- __webpack_unused_export__ = InvalidClientException;
593
- __webpack_unused_export__ = InvalidClientException$;
594
- __webpack_unused_export__ = InvalidGrantException;
595
- __webpack_unused_export__ = InvalidGrantException$;
596
- __webpack_unused_export__ = InvalidRequestException;
597
- __webpack_unused_export__ = InvalidRequestException$;
598
- __webpack_unused_export__ = InvalidRequestExceptionReason;
599
- __webpack_unused_export__ = InvalidScopeException;
600
- __webpack_unused_export__ = InvalidScopeException$;
601
- __webpack_unused_export__ = SSOOIDC;
602
- exports.SSOOIDCClient = SSOOIDCClient;
603
- __webpack_unused_export__ = SSOOIDCServiceException;
604
- __webpack_unused_export__ = SSOOIDCServiceException$;
605
- __webpack_unused_export__ = SlowDownException;
606
- __webpack_unused_export__ = SlowDownException$;
607
- __webpack_unused_export__ = UnauthorizedClientException;
608
- __webpack_unused_export__ = UnauthorizedClientException$;
609
- __webpack_unused_export__ = UnsupportedGrantTypeException;
610
- __webpack_unused_export__ = UnsupportedGrantTypeException$;
601
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
611
602
 
612
603
 
613
604
  /***/ }),
@@ -620,7 +611,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
620
611
  exports.getRuntimeConfig = void 0;
621
612
  const tslib_1 = __webpack_require__(61860);
622
613
  const package_json_1 = tslib_1.__importDefault(__webpack_require__(39955));
623
- const core_1 = __webpack_require__(8704);
614
+ const client_1 = __webpack_require__(5152);
615
+ const httpAuthSchemes_1 = __webpack_require__(97523);
624
616
  const util_user_agent_node_1 = __webpack_require__(51656);
625
617
  const config_resolver_1 = __webpack_require__(39316);
626
618
  const hash_node_1 = __webpack_require__(5092);
@@ -637,7 +629,7 @@ const getRuntimeConfig = (config) => {
637
629
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
638
630
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
639
631
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
640
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
632
+ (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
641
633
  const loaderConfig = {
642
634
  profile: config?.profile,
643
635
  logger: clientSharedValues.logger,
@@ -647,7 +639,7 @@ const getRuntimeConfig = (config) => {
647
639
  ...config,
648
640
  runtime: "node",
649
641
  defaultsMode,
650
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
642
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
651
643
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
652
644
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
653
645
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
@@ -678,15 +670,16 @@ exports.getRuntimeConfig = getRuntimeConfig;
678
670
 
679
671
  Object.defineProperty(exports, "__esModule", ({ value: true }));
680
672
  exports.getRuntimeConfig = void 0;
681
- const core_1 = __webpack_require__(8704);
673
+ const httpAuthSchemes_1 = __webpack_require__(97523);
682
674
  const protocols_1 = __webpack_require__(37288);
683
- const core_2 = __webpack_require__(90402);
675
+ const core_1 = __webpack_require__(90402);
684
676
  const smithy_client_1 = __webpack_require__(61411);
685
677
  const url_parser_1 = __webpack_require__(14494);
686
678
  const util_base64_1 = __webpack_require__(68385);
687
679
  const util_utf8_1 = __webpack_require__(71577);
688
680
  const httpAuthSchemeProvider_1 = __webpack_require__(8396);
689
681
  const endpointResolver_1 = __webpack_require__(90546);
682
+ const schemas_0_1 = __webpack_require__(7143);
690
683
  const getRuntimeConfig = (config) => {
691
684
  return {
692
685
  apiVersion: "2019-06-10",
@@ -700,18 +693,19 @@ const getRuntimeConfig = (config) => {
700
693
  {
701
694
  schemeId: "aws.auth#sigv4",
702
695
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
703
- signer: new core_1.AwsSdkSigV4Signer(),
696
+ signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
704
697
  },
705
698
  {
706
699
  schemeId: "smithy.api#noAuth",
707
700
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
708
- signer: new core_2.NoAuthSigner(),
701
+ signer: new core_1.NoAuthSigner(),
709
702
  },
710
703
  ],
711
704
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
712
705
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
713
706
  protocolSettings: config?.protocolSettings ?? {
714
707
  defaultNamespace: "com.amazonaws.ssooidc",
708
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
715
709
  version: "2019-06-10",
716
710
  serviceTarget: "AWSSSOOIDCService",
717
711
  },
@@ -726,10 +720,150 @@ exports.getRuntimeConfig = getRuntimeConfig;
726
720
 
727
721
  /***/ }),
728
722
 
729
- /***/ 39955:
730
- /***/ ((module) => {
723
+ /***/ 7143:
724
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
725
+
726
+
727
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
728
+ 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;
729
+ const _ADE = "AccessDeniedException";
730
+ const _APE = "AuthorizationPendingException";
731
+ const _AT = "AccessToken";
732
+ const _CS = "ClientSecret";
733
+ const _CT = "CreateToken";
734
+ const _CTR = "CreateTokenRequest";
735
+ const _CTRr = "CreateTokenResponse";
736
+ const _CV = "CodeVerifier";
737
+ const _ETE = "ExpiredTokenException";
738
+ const _ICE = "InvalidClientException";
739
+ const _IGE = "InvalidGrantException";
740
+ const _IRE = "InvalidRequestException";
741
+ const _ISE = "InternalServerException";
742
+ const _ISEn = "InvalidScopeException";
743
+ const _IT = "IdToken";
744
+ const _RT = "RefreshToken";
745
+ const _SDE = "SlowDownException";
746
+ const _UCE = "UnauthorizedClientException";
747
+ const _UGTE = "UnsupportedGrantTypeException";
748
+ const _aT = "accessToken";
749
+ const _c = "client";
750
+ const _cI = "clientId";
751
+ const _cS = "clientSecret";
752
+ const _cV = "codeVerifier";
753
+ const _co = "code";
754
+ const _dC = "deviceCode";
755
+ const _e = "error";
756
+ const _eI = "expiresIn";
757
+ const _ed = "error_description";
758
+ const _gT = "grantType";
759
+ const _h = "http";
760
+ const _hE = "httpError";
761
+ const _iT = "idToken";
762
+ const _r = "reason";
763
+ const _rT = "refreshToken";
764
+ const _rU = "redirectUri";
765
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
766
+ const _sc = "scope";
767
+ const _se = "server";
768
+ const _tT = "tokenType";
769
+ const n0 = "com.amazonaws.ssooidc";
770
+ const schema_1 = __webpack_require__(26890);
771
+ const errors_1 = __webpack_require__(55843);
772
+ const SSOOIDCServiceException_1 = __webpack_require__(93952);
773
+ const _s_registry = schema_1.TypeRegistry.for(_s);
774
+ exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
775
+ _s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
776
+ const n0_registry = schema_1.TypeRegistry.for(n0);
777
+ exports.AccessDeniedException$ = [
778
+ -3,
779
+ n0,
780
+ _ADE,
781
+ { [_e]: _c, [_hE]: 400 },
782
+ [_e, _r, _ed],
783
+ [0, 0, 0],
784
+ ];
785
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
786
+ exports.AuthorizationPendingException$ = [
787
+ -3,
788
+ n0,
789
+ _APE,
790
+ { [_e]: _c, [_hE]: 400 },
791
+ [_e, _ed],
792
+ [0, 0],
793
+ ];
794
+ n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
795
+ exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
796
+ n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
797
+ exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
798
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
799
+ exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
800
+ n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
801
+ exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
802
+ n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
803
+ exports.InvalidRequestException$ = [
804
+ -3,
805
+ n0,
806
+ _IRE,
807
+ { [_e]: _c, [_hE]: 400 },
808
+ [_e, _r, _ed],
809
+ [0, 0, 0],
810
+ ];
811
+ n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
812
+ exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
813
+ n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
814
+ exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
815
+ n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
816
+ exports.UnauthorizedClientException$ = [
817
+ -3,
818
+ n0,
819
+ _UCE,
820
+ { [_e]: _c, [_hE]: 400 },
821
+ [_e, _ed],
822
+ [0, 0],
823
+ ];
824
+ n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
825
+ exports.UnsupportedGrantTypeException$ = [
826
+ -3,
827
+ n0,
828
+ _UGTE,
829
+ { [_e]: _c, [_hE]: 400 },
830
+ [_e, _ed],
831
+ [0, 0],
832
+ ];
833
+ n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
834
+ exports.errorTypeRegistries = [_s_registry, n0_registry];
835
+ var AccessToken = [0, n0, _AT, 8, 0];
836
+ var ClientSecret = [0, n0, _CS, 8, 0];
837
+ var CodeVerifier = [0, n0, _CV, 8, 0];
838
+ var IdToken = [0, n0, _IT, 8, 0];
839
+ var RefreshToken = [0, n0, _RT, 8, 0];
840
+ exports.CreateTokenRequest$ = [
841
+ 3,
842
+ n0,
843
+ _CTR,
844
+ 0,
845
+ [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
846
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
847
+ 3,
848
+ ];
849
+ exports.CreateTokenResponse$ = [
850
+ 3,
851
+ n0,
852
+ _CTRr,
853
+ 0,
854
+ [_aT, _tT, _eI, _rT, _iT],
855
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
856
+ ];
857
+ var Scopes = (/* unused pure expression or super */ null && (64 | 0));
858
+ exports.CreateToken$ = [
859
+ 9,
860
+ n0,
861
+ _CT,
862
+ { [_h]: ["POST", "/token", 200] },
863
+ () => exports.CreateTokenRequest$,
864
+ () => exports.CreateTokenResponse$,
865
+ ];
731
866
 
732
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.971.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:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","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":">=20.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.970.0","@aws-sdk/middleware-host-header":"3.969.0","@aws-sdk/middleware-logger":"3.969.0","@aws-sdk/middleware-recursion-detection":"3.969.0","@aws-sdk/middleware-user-agent":"3.970.0","@aws-sdk/region-config-resolver":"3.969.0","@aws-sdk/types":"3.969.0","@aws-sdk/util-endpoints":"3.970.0","@aws-sdk/util-user-agent-browser":"3.969.0","@aws-sdk/util-user-agent-node":"3.971.0","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.20.6","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.7","@smithy/middleware-retry":"^4.4.23","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.8","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@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.22","@smithy/util-defaults-mode-node":"^4.2.25","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"5.0.10","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"}}}');
733
867
 
734
868
  /***/ })
735
869