@jr2804/livesync-cli 0.25.82-cli → 1.0.0-cli.1

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