@jr2804/livesync-cli 1.0.0-cli → 1.0.16-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 (33) hide show
  1. package/README.md +44 -3
  2. package/dist/AwsRestJsonProtocol-BPmCQzXa.cjs +391 -0
  3. package/dist/CredentialsProviderError-DQ_v7TCm.cjs +45 -0
  4. package/dist/XmlShapeDeserializer-B1_gcW92.cjs +2097 -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/{index.browser-DZqJcWQp.cjs → event-streams-DmrxQXpO.cjs} +3 -3
  16. package/dist/extensions-DkDzTVCO.cjs +4823 -0
  17. package/dist/externalDataInterceptor-D7DaIG7M.cjs +24 -0
  18. package/dist/getSSOTokenFromFile-D0KPH2qZ.cjs +36 -0
  19. package/dist/httpRequest-C7Ex2WeE.cjs +59 -0
  20. package/dist/index.cjs +5949 -1556
  21. package/dist/loadSharedConfigFiles-CqEQHuLW.cjs +117 -0
  22. package/dist/loadSso-Dn78jIWR.cjs +639 -0
  23. package/dist/package-BC7A0_n0.cjs +158 -0
  24. package/dist/parseKnownFiles-DLeTaAhg.cjs +21 -0
  25. package/dist/readFile-B3ey_wDD.cjs +46 -0
  26. package/dist/sdk-stream-mixin-YBLWtp6l.cjs +146 -0
  27. package/dist/{index.browser-DbH0tIYi.cjs → serde-DtADB-gG.cjs} +178 -310
  28. package/dist/setCredentialFeature-qcUbSyqa.cjs +13 -0
  29. package/dist/signin-DHnd2WFx.cjs +715 -0
  30. package/dist/sso-oidc-B4fkm2gn.cjs +901 -0
  31. package/dist/stream-collector-jwXXBEUn.cjs +584 -0
  32. package/dist/sts-C9aqjeec.cjs +1531 -0
  33. package/package.json +8 -5
@@ -0,0 +1,639 @@
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/auth/httpAuthSchemeProvider.js
8
+ var defaultSSOHttpAuthSchemeParametersProvider = 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: "awsssoportal",
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 defaultSSOHttpAuthSchemeProvider = (authParameters) => {
33
+ const options = [];
34
+ switch (authParameters.operation) {
35
+ case "GetRoleCredentials":
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/endpoint/EndpointParameters.js
48
+ var resolveClientEndpointParameters = (options) => {
49
+ return Object.assign(options, {
50
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
51
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
52
+ defaultSigningName: "awsssoportal"
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/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://portal.sso-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://portal.sso.{Region}.amazonaws.com",
186
+ properties: n,
187
+ headers: n
188
+ },
189
+ type: e
190
+ }, {
191
+ endpoint: {
192
+ url: "https://portal.sso-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://portal.sso.{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://portal.sso.{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/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/models/SSOServiceException.js
263
+ var SSOServiceException = class SSOServiceException extends require_extensions.ServiceException {
264
+ constructor(options) {
265
+ super(options);
266
+ Object.setPrototypeOf(this, SSOServiceException.prototype);
267
+ }
268
+ };
269
+ //#endregion
270
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
271
+ var InvalidRequestException = class InvalidRequestException extends SSOServiceException {
272
+ name = "InvalidRequestException";
273
+ $fault = "client";
274
+ constructor(opts) {
275
+ super({
276
+ name: "InvalidRequestException",
277
+ $fault: "client",
278
+ ...opts
279
+ });
280
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
281
+ }
282
+ };
283
+ var ResourceNotFoundException = class ResourceNotFoundException extends SSOServiceException {
284
+ name = "ResourceNotFoundException";
285
+ $fault = "client";
286
+ constructor(opts) {
287
+ super({
288
+ name: "ResourceNotFoundException",
289
+ $fault: "client",
290
+ ...opts
291
+ });
292
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
293
+ }
294
+ };
295
+ var TooManyRequestsException = class TooManyRequestsException extends SSOServiceException {
296
+ name = "TooManyRequestsException";
297
+ $fault = "client";
298
+ constructor(opts) {
299
+ super({
300
+ name: "TooManyRequestsException",
301
+ $fault: "client",
302
+ ...opts
303
+ });
304
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
305
+ }
306
+ };
307
+ var UnauthorizedException = class UnauthorizedException extends SSOServiceException {
308
+ name = "UnauthorizedException";
309
+ $fault = "client";
310
+ constructor(opts) {
311
+ super({
312
+ name: "UnauthorizedException",
313
+ $fault: "client",
314
+ ...opts
315
+ });
316
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
317
+ }
318
+ };
319
+ //#endregion
320
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
321
+ var _ATT = "AccessTokenType";
322
+ var _GRC = "GetRoleCredentials";
323
+ var _GRCR = "GetRoleCredentialsRequest";
324
+ var _GRCRe = "GetRoleCredentialsResponse";
325
+ var _IRE = "InvalidRequestException";
326
+ var _RC = "RoleCredentials";
327
+ var _RNFE = "ResourceNotFoundException";
328
+ var _SAKT = "SecretAccessKeyType";
329
+ var _STT = "SessionTokenType";
330
+ var _TMRE = "TooManyRequestsException";
331
+ var _UE = "UnauthorizedException";
332
+ var _aI = "accountId";
333
+ var _aKI = "accessKeyId";
334
+ var _aT = "accessToken";
335
+ var _ai = "account_id";
336
+ var _c = "client";
337
+ var _e = "error";
338
+ var _ex = "expiration";
339
+ var _h = "http";
340
+ var _hE = "httpError";
341
+ var _hH = "httpHeader";
342
+ var _hQ = "httpQuery";
343
+ var _m = "message";
344
+ var _rC = "roleCredentials";
345
+ var _rN = "roleName";
346
+ var _rn = "role_name";
347
+ var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
348
+ var _sAK = "secretAccessKey";
349
+ var _sT = "sessionToken";
350
+ var _xasbt = "x-amz-sso_bearer_token";
351
+ var n0 = "com.amazonaws.sso";
352
+ var _s_registry = require_extensions.TypeRegistry.for(_s);
353
+ var SSOServiceException$ = [
354
+ -3,
355
+ _s,
356
+ "SSOServiceException",
357
+ 0,
358
+ [],
359
+ []
360
+ ];
361
+ _s_registry.registerError(SSOServiceException$, SSOServiceException);
362
+ var n0_registry = require_extensions.TypeRegistry.for(n0);
363
+ var InvalidRequestException$ = [
364
+ -3,
365
+ n0,
366
+ _IRE,
367
+ {
368
+ [_e]: _c,
369
+ [_hE]: 400
370
+ },
371
+ [_m],
372
+ [0]
373
+ ];
374
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
375
+ var ResourceNotFoundException$ = [
376
+ -3,
377
+ n0,
378
+ _RNFE,
379
+ {
380
+ [_e]: _c,
381
+ [_hE]: 404
382
+ },
383
+ [_m],
384
+ [0]
385
+ ];
386
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
387
+ var TooManyRequestsException$ = [
388
+ -3,
389
+ n0,
390
+ _TMRE,
391
+ {
392
+ [_e]: _c,
393
+ [_hE]: 429
394
+ },
395
+ [_m],
396
+ [0]
397
+ ];
398
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
399
+ var UnauthorizedException$ = [
400
+ -3,
401
+ n0,
402
+ _UE,
403
+ {
404
+ [_e]: _c,
405
+ [_hE]: 401
406
+ },
407
+ [_m],
408
+ [0]
409
+ ];
410
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
411
+ var errorTypeRegistries = [_s_registry, n0_registry];
412
+ var AccessTokenType = [
413
+ 0,
414
+ n0,
415
+ _ATT,
416
+ 8,
417
+ 0
418
+ ];
419
+ var SecretAccessKeyType = [
420
+ 0,
421
+ n0,
422
+ _SAKT,
423
+ 8,
424
+ 0
425
+ ];
426
+ var SessionTokenType = [
427
+ 0,
428
+ n0,
429
+ _STT,
430
+ 8,
431
+ 0
432
+ ];
433
+ var GetRoleCredentialsRequest$ = [
434
+ 3,
435
+ n0,
436
+ _GRCR,
437
+ 0,
438
+ [
439
+ _rN,
440
+ _aI,
441
+ _aT
442
+ ],
443
+ [
444
+ [0, { [_hQ]: _rn }],
445
+ [0, { [_hQ]: _ai }],
446
+ [() => AccessTokenType, { [_hH]: _xasbt }]
447
+ ],
448
+ 3
449
+ ];
450
+ var GetRoleCredentialsResponse$ = [
451
+ 3,
452
+ n0,
453
+ _GRCRe,
454
+ 0,
455
+ [_rC],
456
+ [[() => RoleCredentials$, 0]]
457
+ ];
458
+ var RoleCredentials$ = [
459
+ 3,
460
+ n0,
461
+ _RC,
462
+ 0,
463
+ [
464
+ _aKI,
465
+ _sAK,
466
+ _sT,
467
+ _ex
468
+ ],
469
+ [
470
+ 0,
471
+ [() => SecretAccessKeyType, 0],
472
+ [() => SessionTokenType, 0],
473
+ 1
474
+ ]
475
+ ];
476
+ var GetRoleCredentials$ = [
477
+ 9,
478
+ n0,
479
+ _GRC,
480
+ { [_h]: [
481
+ "GET",
482
+ "/federation/credentials",
483
+ 200
484
+ ] },
485
+ () => GetRoleCredentialsRequest$,
486
+ () => GetRoleCredentialsResponse$
487
+ ];
488
+ //#endregion
489
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
490
+ var getRuntimeConfig$1 = (config) => {
491
+ return {
492
+ apiVersion: "2019-06-10",
493
+ base64Decoder: config?.base64Decoder ?? require_stream_collector.fromBase64,
494
+ base64Encoder: config?.base64Encoder ?? require_stream_collector.toBase64,
495
+ disableHostPrefix: config?.disableHostPrefix ?? false,
496
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
497
+ extensions: config?.extensions ?? [],
498
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
499
+ httpAuthSchemes: config?.httpAuthSchemes ?? [{
500
+ schemeId: "aws.auth#sigv4",
501
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
502
+ signer: new require_extensions.AwsSdkSigV4Signer()
503
+ }, {
504
+ schemeId: "smithy.api#noAuth",
505
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
506
+ signer: new require_package.NoAuthSigner()
507
+ }],
508
+ logger: config?.logger ?? new require_extensions.NoOpLogger(),
509
+ protocol: config?.protocol ?? require_AwsRestJsonProtocol.AwsRestJsonProtocol,
510
+ protocolSettings: config?.protocolSettings ?? {
511
+ defaultNamespace: "com.amazonaws.sso",
512
+ errorTypeRegistries,
513
+ version: "2019-06-10",
514
+ serviceTarget: "SWBPortalService"
515
+ },
516
+ serviceId: config?.serviceId ?? "SSO",
517
+ urlParser: config?.urlParser ?? require_configLoader.parseUrl,
518
+ utf8Decoder: config?.utf8Decoder ?? require_date_utils.fromUtf8,
519
+ utf8Encoder: config?.utf8Encoder ?? require_date_utils.toUtf8
520
+ };
521
+ };
522
+ //#endregion
523
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
524
+ var getRuntimeConfig = (config) => {
525
+ require_extensions.emitWarningIfUnsupportedVersion(process.version);
526
+ const defaultsMode = require_extensions.resolveDefaultsModeConfig(config);
527
+ const defaultConfigProvider = () => defaultsMode().then(require_extensions.loadConfigsForDefaultMode);
528
+ const clientSharedValues = getRuntimeConfig$1(config);
529
+ require_extensions.emitWarningIfUnsupportedVersion$1(process.version);
530
+ const loaderConfig = {
531
+ profile: config?.profile,
532
+ logger: clientSharedValues.logger
533
+ };
534
+ return {
535
+ ...clientSharedValues,
536
+ ...config,
537
+ runtime: "node",
538
+ defaultsMode,
539
+ authSchemePreference: config?.authSchemePreference ?? require_configLoader.loadConfig(require_extensions.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
540
+ bodyLengthChecker: config?.bodyLengthChecker ?? require_extensions.calculateBodyLength,
541
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? require_extensions.createDefaultUserAgentProvider({
542
+ serviceId: clientSharedValues.serviceId,
543
+ clientVersion: require_package.package_default.version
544
+ }),
545
+ maxAttempts: config?.maxAttempts ?? require_configLoader.loadConfig(require_extensions.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
546
+ region: config?.region ?? require_configLoader.loadConfig(require_extensions.NODE_REGION_CONFIG_OPTIONS, {
547
+ ...require_extensions.NODE_REGION_CONFIG_FILE_OPTIONS,
548
+ ...loaderConfig
549
+ }),
550
+ requestHandler: require_stream_collector.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
551
+ retryMode: config?.retryMode ?? require_configLoader.loadConfig({
552
+ ...require_extensions.NODE_RETRY_MODE_CONFIG_OPTIONS,
553
+ default: async () => (await defaultConfigProvider()).retryMode || require_extensions.DEFAULT_RETRY_MODE
554
+ }, config),
555
+ sha256: config?.sha256 ?? require_extensions.Hash.bind(null, "sha256"),
556
+ streamCollector: config?.streamCollector ?? require_stream_collector.streamCollector,
557
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? require_configLoader.loadConfig(require_extensions.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
558
+ useFipsEndpoint: config?.useFipsEndpoint ?? require_configLoader.loadConfig(require_extensions.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
559
+ userAgentAppId: config?.userAgentAppId ?? require_configLoader.loadConfig(require_extensions.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
560
+ };
561
+ };
562
+ //#endregion
563
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
564
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
565
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
566
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
567
+ let _credentials = runtimeConfig.credentials;
568
+ return {
569
+ setHttpAuthScheme(httpAuthScheme) {
570
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
571
+ if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
572
+ else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
573
+ },
574
+ httpAuthSchemes() {
575
+ return _httpAuthSchemes;
576
+ },
577
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
578
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
579
+ },
580
+ httpAuthSchemeProvider() {
581
+ return _httpAuthSchemeProvider;
582
+ },
583
+ setCredentials(credentials) {
584
+ _credentials = credentials;
585
+ },
586
+ credentials() {
587
+ return _credentials;
588
+ }
589
+ };
590
+ };
591
+ var resolveHttpAuthRuntimeConfig = (config) => {
592
+ return {
593
+ httpAuthSchemes: config.httpAuthSchemes(),
594
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
595
+ credentials: config.credentials()
596
+ };
597
+ };
598
+ //#endregion
599
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
600
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
601
+ const extensionConfiguration = Object.assign(require_extensions.getAwsRegionExtensionConfiguration(runtimeConfig), require_extensions.getDefaultExtensionConfiguration(runtimeConfig), require_extensions.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
602
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
603
+ return Object.assign(runtimeConfig, require_extensions.resolveAwsRegionExtensionConfiguration(extensionConfiguration), require_extensions.resolveDefaultRuntimeConfig(extensionConfiguration), require_extensions.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
604
+ };
605
+ //#endregion
606
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
607
+ var SSOClient = class extends require_extensions.Client {
608
+ config;
609
+ constructor(...[configuration]) {
610
+ const _config_0 = getRuntimeConfig(configuration || {});
611
+ super(_config_0);
612
+ this.initConfig = _config_0;
613
+ 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 || []);
614
+ this.config = _config_8;
615
+ this.middlewareStack.use(require_extensions.getSchemaSerdePlugin(this.config));
616
+ this.middlewareStack.use(require_extensions.getUserAgentPlugin(this.config));
617
+ this.middlewareStack.use(require_extensions.getRetryPlugin(this.config));
618
+ this.middlewareStack.use(require_extensions.getContentLengthPlugin(this.config));
619
+ this.middlewareStack.use(require_extensions.getHostHeaderPlugin(this.config));
620
+ this.middlewareStack.use(require_extensions.getLoggerPlugin(this.config));
621
+ this.middlewareStack.use(require_extensions.getRecursionDetectionPlugin(this.config));
622
+ this.middlewareStack.use(require_extensions.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
623
+ httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
624
+ identityProviderConfigProvider: async (config) => new require_extensions.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
625
+ }));
626
+ this.middlewareStack.use(require_extensions.getHttpSigningPlugin(this.config));
627
+ }
628
+ destroy() {
629
+ super.destroy();
630
+ }
631
+ };
632
+ //#endregion
633
+ //#region ../../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
634
+ var GetRoleCredentialsCommand = class extends require_extensions.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
635
+ return [require_extensions.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
636
+ }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {};
637
+ //#endregion
638
+ exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
639
+ exports.SSOClient = SSOClient;