nowbackup 1.0.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,783 @@
1
+ import {
2
+ AwsRestJsonProtocol
3
+ } from "./chunk-6QIWSQ6Y.js";
4
+ import {
5
+ NoAuthSigner,
6
+ package_default
7
+ } from "./chunk-SSPSJLWK.js";
8
+ import "./chunk-FLLLYAHH.js";
9
+ import {
10
+ AwsSdkSigV4Signer,
11
+ DEFAULT_RETRY_MODE,
12
+ DefaultIdentityProviderConfig,
13
+ NODE_APP_ID_CONFIG_OPTIONS,
14
+ NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
15
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
16
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
17
+ awsEndpointFunctions,
18
+ createDefaultUserAgentProvider,
19
+ emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
20
+ getAwsRegionExtensionConfiguration,
21
+ getHostHeaderPlugin,
22
+ getHttpAuthSchemeEndpointRuleSetPlugin,
23
+ getHttpSigningPlugin,
24
+ getLoggerPlugin,
25
+ getRecursionDetectionPlugin,
26
+ getRetryPlugin,
27
+ getSchemaSerdePlugin,
28
+ getUserAgentPlugin,
29
+ resolveAwsRegionExtensionConfiguration,
30
+ resolveAwsSdkSigV4Config,
31
+ resolveHostHeaderConfig,
32
+ resolveRetryConfig,
33
+ resolveUserAgentConfig,
34
+ streamCollector
35
+ } from "./chunk-57ZU5VQ4.js";
36
+ import {
37
+ NodeHttpHandler
38
+ } from "./chunk-KKIIHNPF.js";
39
+ import "./chunk-V5IHRGZ2.js";
40
+ import {
41
+ BinaryDecisionDiagram,
42
+ Client,
43
+ Command,
44
+ EndpointCache,
45
+ NODE_REGION_CONFIG_FILE_OPTIONS,
46
+ NODE_REGION_CONFIG_OPTIONS,
47
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
48
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
49
+ NoOpLogger,
50
+ ServiceException,
51
+ TypeRegistry,
52
+ createAggregatedClient,
53
+ customEndpointFunctions,
54
+ decideEndpoint,
55
+ emitWarningIfUnsupportedVersion,
56
+ getContentLengthPlugin,
57
+ getDefaultExtensionConfiguration,
58
+ getEndpointPlugin,
59
+ getHttpHandlerExtensionConfiguration,
60
+ getSmithyContext,
61
+ loadConfig,
62
+ loadConfigsForDefaultMode,
63
+ normalizeProvider,
64
+ parseUrl,
65
+ resolveDefaultRuntimeConfig,
66
+ resolveDefaultsModeConfig,
67
+ resolveEndpointConfig,
68
+ resolveHttpHandlerRuntimeConfig,
69
+ resolveRegionConfig
70
+ } from "./chunk-YMVDJI7O.js";
71
+ import {
72
+ Hash,
73
+ calculateBodyLength,
74
+ fromBase64,
75
+ fromUtf8,
76
+ toBase64,
77
+ toUtf8
78
+ } from "./chunk-APZ4HNNC.js";
79
+
80
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
81
+ var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
82
+ return {
83
+ operation: getSmithyContext(context).operation,
84
+ region: await normalizeProvider(config.region)() || (() => {
85
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
86
+ })()
87
+ };
88
+ };
89
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
90
+ return {
91
+ schemeId: "aws.auth#sigv4",
92
+ signingProperties: {
93
+ name: "sso-oauth",
94
+ region: authParameters.region
95
+ },
96
+ propertiesExtractor: (config, context) => ({
97
+ signingProperties: {
98
+ config,
99
+ context
100
+ }
101
+ })
102
+ };
103
+ }
104
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
105
+ return {
106
+ schemeId: "smithy.api#noAuth"
107
+ };
108
+ }
109
+ var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
110
+ const options = [];
111
+ switch (authParameters.operation) {
112
+ case "CreateToken": {
113
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
114
+ break;
115
+ }
116
+ default: {
117
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
118
+ }
119
+ }
120
+ return options;
121
+ };
122
+ var resolveHttpAuthSchemeConfig = (config) => {
123
+ const config_0 = resolveAwsSdkSigV4Config(config);
124
+ return Object.assign(config_0, {
125
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
126
+ });
127
+ };
128
+
129
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js
130
+ var resolveClientEndpointParameters = (options) => {
131
+ return Object.assign(options, {
132
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
133
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
134
+ defaultSigningName: "sso-oauth"
135
+ });
136
+ };
137
+ var commonParams = {
138
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
139
+ Endpoint: { type: "builtInParams", name: "endpoint" },
140
+ Region: { type: "builtInParams", name: "region" },
141
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
142
+ };
143
+
144
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js
145
+ var k = "ref";
146
+ var a = -1;
147
+ var b = true;
148
+ var c = "isSet";
149
+ var d = "PartitionResult";
150
+ var e = "booleanEquals";
151
+ var f = "getAttr";
152
+ var g = { [k]: "Endpoint" };
153
+ var h = { [k]: d };
154
+ var i = {};
155
+ var j = [{ [k]: "Region" }];
156
+ var _data = {
157
+ conditions: [
158
+ [c, [g]],
159
+ [c, j],
160
+ ["aws.partition", j, d],
161
+ [e, [{ [k]: "UseFIPS" }, b]],
162
+ [e, [{ [k]: "UseDualStack" }, b]],
163
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
164
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
165
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
166
+ ],
167
+ results: [
168
+ [a],
169
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
170
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
171
+ [g, i],
172
+ ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
173
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
174
+ ["https://oidc.{Region}.amazonaws.com", i],
175
+ ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
176
+ [a, "FIPS is enabled but this partition does not support FIPS"],
177
+ ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
178
+ [a, "DualStack is enabled but this partition does not support DualStack"],
179
+ ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
180
+ [a, "Invalid Configuration: Missing Region"]
181
+ ]
182
+ };
183
+ var root = 2;
184
+ var r = 1e8;
185
+ var nodes = new Int32Array([
186
+ -1,
187
+ 1,
188
+ -1,
189
+ 0,
190
+ 13,
191
+ 3,
192
+ 1,
193
+ 4,
194
+ r + 12,
195
+ 2,
196
+ 5,
197
+ r + 12,
198
+ 3,
199
+ 8,
200
+ 6,
201
+ 4,
202
+ 7,
203
+ r + 11,
204
+ 5,
205
+ r + 9,
206
+ r + 10,
207
+ 4,
208
+ 11,
209
+ 9,
210
+ 6,
211
+ 10,
212
+ r + 8,
213
+ 7,
214
+ r + 6,
215
+ r + 7,
216
+ 5,
217
+ 12,
218
+ r + 5,
219
+ 6,
220
+ r + 4,
221
+ r + 5,
222
+ 3,
223
+ r + 1,
224
+ 14,
225
+ 4,
226
+ r + 2,
227
+ r + 3
228
+ ]);
229
+ var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
230
+
231
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js
232
+ var cache = new EndpointCache({
233
+ size: 50,
234
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
235
+ });
236
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
237
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
238
+ endpointParams,
239
+ logger: context.logger
240
+ }));
241
+ };
242
+ customEndpointFunctions.aws = awsEndpointFunctions;
243
+
244
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js
245
+ var SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
246
+ constructor(options) {
247
+ super(options);
248
+ Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);
249
+ }
250
+ };
251
+
252
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js
253
+ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
254
+ name = "AccessDeniedException";
255
+ $fault = "client";
256
+ error;
257
+ reason;
258
+ error_description;
259
+ constructor(opts) {
260
+ super({
261
+ name: "AccessDeniedException",
262
+ $fault: "client",
263
+ ...opts
264
+ });
265
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
266
+ this.error = opts.error;
267
+ this.reason = opts.reason;
268
+ this.error_description = opts.error_description;
269
+ }
270
+ };
271
+ var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {
272
+ name = "AuthorizationPendingException";
273
+ $fault = "client";
274
+ error;
275
+ error_description;
276
+ constructor(opts) {
277
+ super({
278
+ name: "AuthorizationPendingException",
279
+ $fault: "client",
280
+ ...opts
281
+ });
282
+ Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);
283
+ this.error = opts.error;
284
+ this.error_description = opts.error_description;
285
+ }
286
+ };
287
+ var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {
288
+ name = "ExpiredTokenException";
289
+ $fault = "client";
290
+ error;
291
+ error_description;
292
+ constructor(opts) {
293
+ super({
294
+ name: "ExpiredTokenException",
295
+ $fault: "client",
296
+ ...opts
297
+ });
298
+ Object.setPrototypeOf(this, _ExpiredTokenException.prototype);
299
+ this.error = opts.error;
300
+ this.error_description = opts.error_description;
301
+ }
302
+ };
303
+ var InternalServerException = class _InternalServerException extends SSOOIDCServiceException {
304
+ name = "InternalServerException";
305
+ $fault = "server";
306
+ error;
307
+ error_description;
308
+ constructor(opts) {
309
+ super({
310
+ name: "InternalServerException",
311
+ $fault: "server",
312
+ ...opts
313
+ });
314
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
315
+ this.error = opts.error;
316
+ this.error_description = opts.error_description;
317
+ }
318
+ };
319
+ var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {
320
+ name = "InvalidClientException";
321
+ $fault = "client";
322
+ error;
323
+ error_description;
324
+ constructor(opts) {
325
+ super({
326
+ name: "InvalidClientException",
327
+ $fault: "client",
328
+ ...opts
329
+ });
330
+ Object.setPrototypeOf(this, _InvalidClientException.prototype);
331
+ this.error = opts.error;
332
+ this.error_description = opts.error_description;
333
+ }
334
+ };
335
+ var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {
336
+ name = "InvalidGrantException";
337
+ $fault = "client";
338
+ error;
339
+ error_description;
340
+ constructor(opts) {
341
+ super({
342
+ name: "InvalidGrantException",
343
+ $fault: "client",
344
+ ...opts
345
+ });
346
+ Object.setPrototypeOf(this, _InvalidGrantException.prototype);
347
+ this.error = opts.error;
348
+ this.error_description = opts.error_description;
349
+ }
350
+ };
351
+ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
352
+ name = "InvalidRequestException";
353
+ $fault = "client";
354
+ error;
355
+ reason;
356
+ error_description;
357
+ constructor(opts) {
358
+ super({
359
+ name: "InvalidRequestException",
360
+ $fault: "client",
361
+ ...opts
362
+ });
363
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
364
+ this.error = opts.error;
365
+ this.reason = opts.reason;
366
+ this.error_description = opts.error_description;
367
+ }
368
+ };
369
+ var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {
370
+ name = "InvalidScopeException";
371
+ $fault = "client";
372
+ error;
373
+ error_description;
374
+ constructor(opts) {
375
+ super({
376
+ name: "InvalidScopeException",
377
+ $fault: "client",
378
+ ...opts
379
+ });
380
+ Object.setPrototypeOf(this, _InvalidScopeException.prototype);
381
+ this.error = opts.error;
382
+ this.error_description = opts.error_description;
383
+ }
384
+ };
385
+ var SlowDownException = class _SlowDownException extends SSOOIDCServiceException {
386
+ name = "SlowDownException";
387
+ $fault = "client";
388
+ error;
389
+ error_description;
390
+ constructor(opts) {
391
+ super({
392
+ name: "SlowDownException",
393
+ $fault: "client",
394
+ ...opts
395
+ });
396
+ Object.setPrototypeOf(this, _SlowDownException.prototype);
397
+ this.error = opts.error;
398
+ this.error_description = opts.error_description;
399
+ }
400
+ };
401
+ var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {
402
+ name = "UnauthorizedClientException";
403
+ $fault = "client";
404
+ error;
405
+ error_description;
406
+ constructor(opts) {
407
+ super({
408
+ name: "UnauthorizedClientException",
409
+ $fault: "client",
410
+ ...opts
411
+ });
412
+ Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);
413
+ this.error = opts.error;
414
+ this.error_description = opts.error_description;
415
+ }
416
+ };
417
+ var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {
418
+ name = "UnsupportedGrantTypeException";
419
+ $fault = "client";
420
+ error;
421
+ error_description;
422
+ constructor(opts) {
423
+ super({
424
+ name: "UnsupportedGrantTypeException",
425
+ $fault: "client",
426
+ ...opts
427
+ });
428
+ Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);
429
+ this.error = opts.error;
430
+ this.error_description = opts.error_description;
431
+ }
432
+ };
433
+
434
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js
435
+ var _ADE = "AccessDeniedException";
436
+ var _APE = "AuthorizationPendingException";
437
+ var _AT = "AccessToken";
438
+ var _CS = "ClientSecret";
439
+ var _CT = "CreateToken";
440
+ var _CTR = "CreateTokenRequest";
441
+ var _CTRr = "CreateTokenResponse";
442
+ var _CV = "CodeVerifier";
443
+ var _ETE = "ExpiredTokenException";
444
+ var _ICE = "InvalidClientException";
445
+ var _IGE = "InvalidGrantException";
446
+ var _IRE = "InvalidRequestException";
447
+ var _ISE = "InternalServerException";
448
+ var _ISEn = "InvalidScopeException";
449
+ var _IT = "IdToken";
450
+ var _RT = "RefreshToken";
451
+ var _SDE = "SlowDownException";
452
+ var _UCE = "UnauthorizedClientException";
453
+ var _UGTE = "UnsupportedGrantTypeException";
454
+ var _aT = "accessToken";
455
+ var _c = "client";
456
+ var _cI = "clientId";
457
+ var _cS = "clientSecret";
458
+ var _cV = "codeVerifier";
459
+ var _co = "code";
460
+ var _dC = "deviceCode";
461
+ var _e = "error";
462
+ var _eI = "expiresIn";
463
+ var _ed = "error_description";
464
+ var _gT = "grantType";
465
+ var _h = "http";
466
+ var _hE = "httpError";
467
+ var _iT = "idToken";
468
+ var _r = "reason";
469
+ var _rT = "refreshToken";
470
+ var _rU = "redirectUri";
471
+ var _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
472
+ var _sc = "scope";
473
+ var _se = "server";
474
+ var _tT = "tokenType";
475
+ var n0 = "com.amazonaws.ssooidc";
476
+ var _s_registry = TypeRegistry.for(_s);
477
+ var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
478
+ _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
479
+ var n0_registry = TypeRegistry.for(n0);
480
+ var AccessDeniedException$ = [
481
+ -3,
482
+ n0,
483
+ _ADE,
484
+ { [_e]: _c, [_hE]: 400 },
485
+ [_e, _r, _ed],
486
+ [0, 0, 0]
487
+ ];
488
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
489
+ var AuthorizationPendingException$ = [
490
+ -3,
491
+ n0,
492
+ _APE,
493
+ { [_e]: _c, [_hE]: 400 },
494
+ [_e, _ed],
495
+ [0, 0]
496
+ ];
497
+ n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
498
+ var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
499
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
500
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
501
+ n0_registry.registerError(InternalServerException$, InternalServerException);
502
+ var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
503
+ n0_registry.registerError(InvalidClientException$, InvalidClientException);
504
+ var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
505
+ n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
506
+ var InvalidRequestException$ = [
507
+ -3,
508
+ n0,
509
+ _IRE,
510
+ { [_e]: _c, [_hE]: 400 },
511
+ [_e, _r, _ed],
512
+ [0, 0, 0]
513
+ ];
514
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
515
+ var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
516
+ n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
517
+ var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
518
+ n0_registry.registerError(SlowDownException$, SlowDownException);
519
+ var UnauthorizedClientException$ = [
520
+ -3,
521
+ n0,
522
+ _UCE,
523
+ { [_e]: _c, [_hE]: 400 },
524
+ [_e, _ed],
525
+ [0, 0]
526
+ ];
527
+ n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
528
+ var UnsupportedGrantTypeException$ = [
529
+ -3,
530
+ n0,
531
+ _UGTE,
532
+ { [_e]: _c, [_hE]: 400 },
533
+ [_e, _ed],
534
+ [0, 0]
535
+ ];
536
+ n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
537
+ var errorTypeRegistries = [_s_registry, n0_registry];
538
+ var AccessToken = [0, n0, _AT, 8, 0];
539
+ var ClientSecret = [0, n0, _CS, 8, 0];
540
+ var CodeVerifier = [0, n0, _CV, 8, 0];
541
+ var IdToken = [0, n0, _IT, 8, 0];
542
+ var RefreshToken = [0, n0, _RT, 8, 0];
543
+ var CreateTokenRequest$ = [
544
+ 3,
545
+ n0,
546
+ _CTR,
547
+ 0,
548
+ [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
549
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
550
+ 3
551
+ ];
552
+ var CreateTokenResponse$ = [
553
+ 3,
554
+ n0,
555
+ _CTRr,
556
+ 0,
557
+ [_aT, _tT, _eI, _rT, _iT],
558
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
559
+ ];
560
+ var Scopes = 64 | 0;
561
+ var CreateToken$ = [
562
+ 9,
563
+ n0,
564
+ _CT,
565
+ { [_h]: ["POST", "/token", 200] },
566
+ () => CreateTokenRequest$,
567
+ () => CreateTokenResponse$
568
+ ];
569
+
570
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js
571
+ var getRuntimeConfig = (config) => {
572
+ return {
573
+ apiVersion: "2019-06-10",
574
+ base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? fromBase64,
575
+ base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? toBase64,
576
+ disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
577
+ endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? defaultEndpointResolver,
578
+ extensions: (config == null ? void 0 : config.extensions) ?? [],
579
+ httpAuthSchemeProvider: (config == null ? void 0 : config.httpAuthSchemeProvider) ?? defaultSSOOIDCHttpAuthSchemeProvider,
580
+ httpAuthSchemes: (config == null ? void 0 : config.httpAuthSchemes) ?? [
581
+ {
582
+ schemeId: "aws.auth#sigv4",
583
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
584
+ signer: new AwsSdkSigV4Signer()
585
+ },
586
+ {
587
+ schemeId: "smithy.api#noAuth",
588
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
589
+ signer: new NoAuthSigner()
590
+ }
591
+ ],
592
+ logger: (config == null ? void 0 : config.logger) ?? new NoOpLogger(),
593
+ protocol: (config == null ? void 0 : config.protocol) ?? AwsRestJsonProtocol,
594
+ protocolSettings: (config == null ? void 0 : config.protocolSettings) ?? {
595
+ defaultNamespace: "com.amazonaws.ssooidc",
596
+ errorTypeRegistries,
597
+ version: "2019-06-10",
598
+ serviceTarget: "AWSSSOOIDCService"
599
+ },
600
+ serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO OIDC",
601
+ urlParser: (config == null ? void 0 : config.urlParser) ?? parseUrl,
602
+ utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? fromUtf8,
603
+ utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? toUtf8
604
+ };
605
+ };
606
+
607
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js
608
+ var getRuntimeConfig2 = (config) => {
609
+ emitWarningIfUnsupportedVersion(process.version);
610
+ const defaultsMode = resolveDefaultsModeConfig(config);
611
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
612
+ const clientSharedValues = getRuntimeConfig(config);
613
+ emitWarningIfUnsupportedVersion2(process.version);
614
+ const loaderConfig = {
615
+ profile: config == null ? void 0 : config.profile,
616
+ logger: clientSharedValues.logger
617
+ };
618
+ return {
619
+ ...clientSharedValues,
620
+ ...config,
621
+ runtime: "node",
622
+ defaultsMode,
623
+ authSchemePreference: (config == null ? void 0 : config.authSchemePreference) ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
624
+ bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? calculateBodyLength,
625
+ defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
626
+ maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
627
+ region: (config == null ? void 0 : config.region) ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
628
+ requestHandler: NodeHttpHandler.create((config == null ? void 0 : config.requestHandler) ?? defaultConfigProvider),
629
+ retryMode: (config == null ? void 0 : config.retryMode) ?? loadConfig({
630
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
631
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
632
+ }, config),
633
+ sha256: (config == null ? void 0 : config.sha256) ?? Hash.bind(null, "sha256"),
634
+ streamCollector: (config == null ? void 0 : config.streamCollector) ?? streamCollector,
635
+ useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
636
+ useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
637
+ userAgentAppId: (config == null ? void 0 : config.userAgentAppId) ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
638
+ };
639
+ };
640
+
641
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js
642
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
643
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
644
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
645
+ let _credentials = runtimeConfig.credentials;
646
+ return {
647
+ setHttpAuthScheme(httpAuthScheme) {
648
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
649
+ if (index === -1) {
650
+ _httpAuthSchemes.push(httpAuthScheme);
651
+ } else {
652
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
653
+ }
654
+ },
655
+ httpAuthSchemes() {
656
+ return _httpAuthSchemes;
657
+ },
658
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
659
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
660
+ },
661
+ httpAuthSchemeProvider() {
662
+ return _httpAuthSchemeProvider;
663
+ },
664
+ setCredentials(credentials) {
665
+ _credentials = credentials;
666
+ },
667
+ credentials() {
668
+ return _credentials;
669
+ }
670
+ };
671
+ };
672
+ var resolveHttpAuthRuntimeConfig = (config) => {
673
+ return {
674
+ httpAuthSchemes: config.httpAuthSchemes(),
675
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
676
+ credentials: config.credentials()
677
+ };
678
+ };
679
+
680
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
681
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
682
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
683
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
684
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
685
+ };
686
+
687
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js
688
+ var SSOOIDCClient = class extends Client {
689
+ config;
690
+ constructor(...[configuration]) {
691
+ const _config_0 = getRuntimeConfig2(configuration || {});
692
+ super(_config_0);
693
+ this.initConfig = _config_0;
694
+ const _config_1 = resolveClientEndpointParameters(_config_0);
695
+ const _config_2 = resolveUserAgentConfig(_config_1);
696
+ const _config_3 = resolveRetryConfig(_config_2);
697
+ const _config_4 = resolveRegionConfig(_config_3);
698
+ const _config_5 = resolveHostHeaderConfig(_config_4);
699
+ const _config_6 = resolveEndpointConfig(_config_5);
700
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
701
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
702
+ this.config = _config_8;
703
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
704
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
705
+ this.middlewareStack.use(getRetryPlugin(this.config));
706
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
707
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
708
+ this.middlewareStack.use(getLoggerPlugin(this.config));
709
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
710
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
711
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
712
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
713
+ "aws.auth#sigv4": config.credentials
714
+ })
715
+ }));
716
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
717
+ }
718
+ destroy() {
719
+ super.destroy();
720
+ }
721
+ };
722
+
723
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js
724
+ var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o) {
725
+ return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
726
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {
727
+ };
728
+
729
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js
730
+ var commands = {
731
+ CreateTokenCommand
732
+ };
733
+ var SSOOIDC = class extends SSOOIDCClient {
734
+ };
735
+ createAggregatedClient(commands, SSOOIDC);
736
+
737
+ // ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js
738
+ var AccessDeniedExceptionReason = {
739
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
740
+ };
741
+ var InvalidRequestExceptionReason = {
742
+ KMS_DISABLED_KEY: "KMS_DisabledException",
743
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
744
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
745
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
746
+ };
747
+ export {
748
+ Command as $Command,
749
+ AccessDeniedException,
750
+ AccessDeniedException$,
751
+ AccessDeniedExceptionReason,
752
+ AuthorizationPendingException,
753
+ AuthorizationPendingException$,
754
+ CreateToken$,
755
+ CreateTokenCommand,
756
+ CreateTokenRequest$,
757
+ CreateTokenResponse$,
758
+ ExpiredTokenException,
759
+ ExpiredTokenException$,
760
+ InternalServerException,
761
+ InternalServerException$,
762
+ InvalidClientException,
763
+ InvalidClientException$,
764
+ InvalidGrantException,
765
+ InvalidGrantException$,
766
+ InvalidRequestException,
767
+ InvalidRequestException$,
768
+ InvalidRequestExceptionReason,
769
+ InvalidScopeException,
770
+ InvalidScopeException$,
771
+ SSOOIDC,
772
+ SSOOIDCClient,
773
+ SSOOIDCServiceException,
774
+ SSOOIDCServiceException$,
775
+ SlowDownException,
776
+ SlowDownException$,
777
+ UnauthorizedClientException,
778
+ UnauthorizedClientException$,
779
+ UnsupportedGrantTypeException,
780
+ UnsupportedGrantTypeException$,
781
+ Client as __Client,
782
+ errorTypeRegistries
783
+ };