@awsless/cli 0.0.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 (50) hide show
  1. package/README.MD +487 -0
  2. package/dist/app.json +1 -0
  3. package/dist/app.stage.json +1 -0
  4. package/dist/bin.d.ts +1 -0
  5. package/dist/bin.js +49025 -0
  6. package/dist/build-json-schema.js +1925 -0
  7. package/dist/chunk-2TBBLACH.js +37 -0
  8. package/dist/chunk-3YEPERYO.js +1021 -0
  9. package/dist/chunk-4JFIJMQ6.js +46 -0
  10. package/dist/chunk-5TWBDDXS.js +60 -0
  11. package/dist/chunk-7NRPMOO4.js +876 -0
  12. package/dist/chunk-7XIGSOF4.js +100 -0
  13. package/dist/chunk-DSXFE5X2.js +174 -0
  14. package/dist/chunk-E7FQOYML.js +12 -0
  15. package/dist/chunk-GH475CSF.js +5005 -0
  16. package/dist/chunk-JHYKYQ5P.js +163 -0
  17. package/dist/chunk-LBISIOIM.js +28 -0
  18. package/dist/chunk-RCNT4C4P.js +50 -0
  19. package/dist/chunk-SIAA4J6H.js +21 -0
  20. package/dist/chunk-XNYTWFP6.js +241 -0
  21. package/dist/chunk-Z37AK4IA.js +546 -0
  22. package/dist/chunk-ZKH7AMP3.js +42 -0
  23. package/dist/dist-es-GXHCNXAC.js +489 -0
  24. package/dist/dist-es-J7SL4PXO.js +88 -0
  25. package/dist/dist-es-LL3VAI2X.js +70 -0
  26. package/dist/dist-es-QND3CYLI.js +380 -0
  27. package/dist/dist-es-STVZUSZG.js +21 -0
  28. package/dist/dist-es-TCFHB4OF.js +324 -0
  29. package/dist/dist-es-YFQTZTNE.js +167 -0
  30. package/dist/event-streams-74K5M656.js +244 -0
  31. package/dist/layers/sharp-arm.zip +0 -0
  32. package/dist/loadSso-O7PM54HL.js +592 -0
  33. package/dist/prebuild/icon/HASH +1 -0
  34. package/dist/prebuild/icon/bundle.zip +0 -0
  35. package/dist/prebuild/image/HASH +1 -0
  36. package/dist/prebuild/image/bundle.zip +0 -0
  37. package/dist/prebuild/on-error-log/HASH +1 -0
  38. package/dist/prebuild/on-error-log/bundle.zip +0 -0
  39. package/dist/prebuild/on-failure/HASH +1 -0
  40. package/dist/prebuild/on-failure/bundle.zip +0 -0
  41. package/dist/prebuild/rpc/HASH +1 -0
  42. package/dist/prebuild/rpc/bundle.zip +0 -0
  43. package/dist/prebuild.js +159 -0
  44. package/dist/signin-6SPMGGJN.js +704 -0
  45. package/dist/sso-oidc-5IIWGKXY.js +829 -0
  46. package/dist/stack.json +1 -0
  47. package/dist/stack.stage.json +1 -0
  48. package/dist/sts-6SQWH4BL.js +3788 -0
  49. package/dist/test-global-setup.js +22 -0
  50. package/package.json +120 -0
@@ -0,0 +1,592 @@
1
+ import {
2
+ Command,
3
+ NoAuthSigner,
4
+ getEndpointPlugin,
5
+ package_default
6
+ } from "./chunk-Z37AK4IA.js";
7
+ import {
8
+ AwsRestJsonProtocol
9
+ } from "./chunk-3YEPERYO.js";
10
+ import {
11
+ AwsSdkSigV4Signer,
12
+ Client,
13
+ DEFAULT_RETRY_MODE,
14
+ DefaultIdentityProviderConfig,
15
+ EndpointCache,
16
+ Hash,
17
+ NODE_APP_ID_CONFIG_OPTIONS,
18
+ NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
19
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
20
+ NODE_REGION_CONFIG_FILE_OPTIONS,
21
+ NODE_REGION_CONFIG_OPTIONS,
22
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
23
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
24
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
25
+ NoOpLogger,
26
+ ServiceException,
27
+ TypeRegistry,
28
+ awsEndpointFunctions,
29
+ calculateBodyLength,
30
+ createDefaultUserAgentProvider,
31
+ customEndpointFunctions,
32
+ emitWarningIfUnsupportedVersion,
33
+ emitWarningIfUnsupportedVersion2,
34
+ getAwsRegionExtensionConfiguration,
35
+ getContentLengthPlugin,
36
+ getDefaultExtensionConfiguration,
37
+ getHostHeaderPlugin,
38
+ getHttpAuthSchemeEndpointRuleSetPlugin,
39
+ getHttpHandlerExtensionConfiguration,
40
+ getHttpSigningPlugin,
41
+ getLoggerPlugin,
42
+ getRecursionDetectionPlugin,
43
+ getRetryPlugin,
44
+ getSchemaSerdePlugin,
45
+ getSmithyContext,
46
+ getUserAgentPlugin,
47
+ loadConfigsForDefaultMode,
48
+ normalizeProvider,
49
+ resolveAwsRegionExtensionConfiguration,
50
+ resolveAwsSdkSigV4Config,
51
+ resolveDefaultRuntimeConfig,
52
+ resolveDefaultsModeConfig,
53
+ resolveEndpoint,
54
+ resolveEndpointConfig,
55
+ resolveHostHeaderConfig,
56
+ resolveHttpHandlerRuntimeConfig,
57
+ resolveRegionConfig,
58
+ resolveRetryConfig,
59
+ resolveUserAgentConfig
60
+ } from "./chunk-GH475CSF.js";
61
+ import {
62
+ loadConfig,
63
+ parseUrl
64
+ } from "./chunk-JHYKYQ5P.js";
65
+ import "./chunk-LBISIOIM.js";
66
+ import "./chunk-DSXFE5X2.js";
67
+ import {
68
+ NodeHttpHandler,
69
+ fromBase64,
70
+ streamCollector,
71
+ toBase64
72
+ } from "./chunk-7NRPMOO4.js";
73
+ import "./chunk-5TWBDDXS.js";
74
+ import {
75
+ fromUtf8,
76
+ toUtf8
77
+ } from "./chunk-ZKH7AMP3.js";
78
+ import "./chunk-XNYTWFP6.js";
79
+ import "./chunk-E7FQOYML.js";
80
+ import "./chunk-2TBBLACH.js";
81
+ import "./chunk-SIAA4J6H.js";
82
+
83
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
84
+ var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
85
+ return {
86
+ operation: getSmithyContext(context).operation,
87
+ region: await normalizeProvider(config.region)() || (() => {
88
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
89
+ })()
90
+ };
91
+ };
92
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
93
+ return {
94
+ schemeId: "aws.auth#sigv4",
95
+ signingProperties: {
96
+ name: "awsssoportal",
97
+ region: authParameters.region
98
+ },
99
+ propertiesExtractor: (config, context) => ({
100
+ signingProperties: {
101
+ config,
102
+ context
103
+ }
104
+ })
105
+ };
106
+ }
107
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
108
+ return {
109
+ schemeId: "smithy.api#noAuth"
110
+ };
111
+ }
112
+ var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
113
+ const options = [];
114
+ switch (authParameters.operation) {
115
+ case "GetRoleCredentials": {
116
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
117
+ break;
118
+ }
119
+ default: {
120
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
121
+ }
122
+ }
123
+ return options;
124
+ };
125
+ var resolveHttpAuthSchemeConfig = (config) => {
126
+ const config_0 = resolveAwsSdkSigV4Config(config);
127
+ return Object.assign(config_0, {
128
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
129
+ });
130
+ };
131
+
132
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
133
+ var resolveClientEndpointParameters = (options) => {
134
+ return Object.assign(options, {
135
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
136
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
137
+ defaultSigningName: "awsssoportal"
138
+ });
139
+ };
140
+ var commonParams = {
141
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
142
+ Endpoint: { type: "builtInParams", name: "endpoint" },
143
+ Region: { type: "builtInParams", name: "region" },
144
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
145
+ };
146
+
147
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js
148
+ var u = "required";
149
+ var v = "fn";
150
+ var w = "argv";
151
+ var x = "ref";
152
+ var a = true;
153
+ var b = "isSet";
154
+ var c = "booleanEquals";
155
+ var d = "error";
156
+ var e = "endpoint";
157
+ var f = "tree";
158
+ var g = "PartitionResult";
159
+ var h = "getAttr";
160
+ var i = { [u]: false, type: "string" };
161
+ var j = { [u]: true, default: false, type: "boolean" };
162
+ var k = { [x]: "Endpoint" };
163
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
164
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
165
+ var n = {};
166
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
167
+ var p = { [x]: g };
168
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
169
+ var r = [l];
170
+ var s = [m];
171
+ var t = [{ [x]: "Region" }];
172
+ var _data = {
173
+ version: "1.0",
174
+ parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
175
+ rules: [
176
+ {
177
+ conditions: [{ [v]: b, [w]: [k] }],
178
+ rules: [
179
+ { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
180
+ { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
181
+ { endpoint: { url: k, properties: n, headers: n }, type: e }
182
+ ],
183
+ type: f
184
+ },
185
+ {
186
+ conditions: [{ [v]: b, [w]: t }],
187
+ rules: [
188
+ {
189
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
190
+ rules: [
191
+ {
192
+ conditions: [l, m],
193
+ rules: [
194
+ {
195
+ conditions: [{ [v]: c, [w]: [a, o] }, q],
196
+ rules: [
197
+ {
198
+ endpoint: {
199
+ url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
200
+ properties: n,
201
+ headers: n
202
+ },
203
+ type: e
204
+ }
205
+ ],
206
+ type: f
207
+ },
208
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }
209
+ ],
210
+ type: f
211
+ },
212
+ {
213
+ conditions: r,
214
+ rules: [
215
+ {
216
+ conditions: [{ [v]: c, [w]: [o, a] }],
217
+ rules: [
218
+ {
219
+ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
220
+ endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
221
+ type: e
222
+ },
223
+ {
224
+ endpoint: {
225
+ url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
226
+ properties: n,
227
+ headers: n
228
+ },
229
+ type: e
230
+ }
231
+ ],
232
+ type: f
233
+ },
234
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d }
235
+ ],
236
+ type: f
237
+ },
238
+ {
239
+ conditions: s,
240
+ rules: [
241
+ {
242
+ conditions: [q],
243
+ rules: [
244
+ {
245
+ endpoint: {
246
+ url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
247
+ properties: n,
248
+ headers: n
249
+ },
250
+ type: e
251
+ }
252
+ ],
253
+ type: f
254
+ },
255
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d }
256
+ ],
257
+ type: f
258
+ },
259
+ {
260
+ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
261
+ type: e
262
+ }
263
+ ],
264
+ type: f
265
+ }
266
+ ],
267
+ type: f
268
+ },
269
+ { error: "Invalid Configuration: Missing Region", type: d }
270
+ ]
271
+ };
272
+ var ruleSet = _data;
273
+
274
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
275
+ var cache = new EndpointCache({
276
+ size: 50,
277
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
278
+ });
279
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
280
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
281
+ endpointParams,
282
+ logger: context.logger
283
+ }));
284
+ };
285
+ customEndpointFunctions.aws = awsEndpointFunctions;
286
+
287
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
288
+ var SSOServiceException = class _SSOServiceException extends ServiceException {
289
+ constructor(options) {
290
+ super(options);
291
+ Object.setPrototypeOf(this, _SSOServiceException.prototype);
292
+ }
293
+ };
294
+
295
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
296
+ var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
297
+ name = "InvalidRequestException";
298
+ $fault = "client";
299
+ constructor(opts) {
300
+ super({
301
+ name: "InvalidRequestException",
302
+ $fault: "client",
303
+ ...opts
304
+ });
305
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
306
+ }
307
+ };
308
+ var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
309
+ name = "ResourceNotFoundException";
310
+ $fault = "client";
311
+ constructor(opts) {
312
+ super({
313
+ name: "ResourceNotFoundException",
314
+ $fault: "client",
315
+ ...opts
316
+ });
317
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
318
+ }
319
+ };
320
+ var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
321
+ name = "TooManyRequestsException";
322
+ $fault = "client";
323
+ constructor(opts) {
324
+ super({
325
+ name: "TooManyRequestsException",
326
+ $fault: "client",
327
+ ...opts
328
+ });
329
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
330
+ }
331
+ };
332
+ var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
333
+ name = "UnauthorizedException";
334
+ $fault = "client";
335
+ constructor(opts) {
336
+ super({
337
+ name: "UnauthorizedException",
338
+ $fault: "client",
339
+ ...opts
340
+ });
341
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
342
+ }
343
+ };
344
+
345
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
346
+ var _ATT = "AccessTokenType";
347
+ var _GRC = "GetRoleCredentials";
348
+ var _GRCR = "GetRoleCredentialsRequest";
349
+ var _GRCRe = "GetRoleCredentialsResponse";
350
+ var _IRE = "InvalidRequestException";
351
+ var _RC = "RoleCredentials";
352
+ var _RNFE = "ResourceNotFoundException";
353
+ var _SAKT = "SecretAccessKeyType";
354
+ var _STT = "SessionTokenType";
355
+ var _TMRE = "TooManyRequestsException";
356
+ var _UE = "UnauthorizedException";
357
+ var _aI = "accountId";
358
+ var _aKI = "accessKeyId";
359
+ var _aT = "accessToken";
360
+ var _ai = "account_id";
361
+ var _c = "client";
362
+ var _e = "error";
363
+ var _ex = "expiration";
364
+ var _h = "http";
365
+ var _hE = "httpError";
366
+ var _hH = "httpHeader";
367
+ var _hQ = "httpQuery";
368
+ var _m = "message";
369
+ var _rC = "roleCredentials";
370
+ var _rN = "roleName";
371
+ var _rn = "role_name";
372
+ var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
373
+ var _sAK = "secretAccessKey";
374
+ var _sT = "sessionToken";
375
+ var _xasbt = "x-amz-sso_bearer_token";
376
+ var n0 = "com.amazonaws.sso";
377
+ var _s_registry = TypeRegistry.for(_s);
378
+ var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
379
+ _s_registry.registerError(SSOServiceException$, SSOServiceException);
380
+ var n0_registry = TypeRegistry.for(n0);
381
+ var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
382
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
383
+ var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
384
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
385
+ var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
386
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
387
+ var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
388
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
389
+ var errorTypeRegistries = [_s_registry, n0_registry];
390
+ var AccessTokenType = [0, n0, _ATT, 8, 0];
391
+ var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
392
+ var SessionTokenType = [0, n0, _STT, 8, 0];
393
+ var GetRoleCredentialsRequest$ = [
394
+ 3,
395
+ n0,
396
+ _GRCR,
397
+ 0,
398
+ [_rN, _aI, _aT],
399
+ [
400
+ [0, { [_hQ]: _rn }],
401
+ [0, { [_hQ]: _ai }],
402
+ [() => AccessTokenType, { [_hH]: _xasbt }]
403
+ ],
404
+ 3
405
+ ];
406
+ var GetRoleCredentialsResponse$ = [
407
+ 3,
408
+ n0,
409
+ _GRCRe,
410
+ 0,
411
+ [_rC],
412
+ [[() => RoleCredentials$, 0]]
413
+ ];
414
+ var RoleCredentials$ = [
415
+ 3,
416
+ n0,
417
+ _RC,
418
+ 0,
419
+ [_aKI, _sAK, _sT, _ex],
420
+ [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
421
+ ];
422
+ var GetRoleCredentials$ = [
423
+ 9,
424
+ n0,
425
+ _GRC,
426
+ { [_h]: ["GET", "/federation/credentials", 200] },
427
+ () => GetRoleCredentialsRequest$,
428
+ () => GetRoleCredentialsResponse$
429
+ ];
430
+
431
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
432
+ var getRuntimeConfig = (config) => {
433
+ return {
434
+ apiVersion: "2019-06-10",
435
+ base64Decoder: config?.base64Decoder ?? fromBase64,
436
+ base64Encoder: config?.base64Encoder ?? toBase64,
437
+ disableHostPrefix: config?.disableHostPrefix ?? false,
438
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
439
+ extensions: config?.extensions ?? [],
440
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
441
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
442
+ {
443
+ schemeId: "aws.auth#sigv4",
444
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
445
+ signer: new AwsSdkSigV4Signer()
446
+ },
447
+ {
448
+ schemeId: "smithy.api#noAuth",
449
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
450
+ signer: new NoAuthSigner()
451
+ }
452
+ ],
453
+ logger: config?.logger ?? new NoOpLogger(),
454
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
455
+ protocolSettings: config?.protocolSettings ?? {
456
+ defaultNamespace: "com.amazonaws.sso",
457
+ errorTypeRegistries,
458
+ version: "2019-06-10",
459
+ serviceTarget: "SWBPortalService"
460
+ },
461
+ serviceId: config?.serviceId ?? "SSO",
462
+ urlParser: config?.urlParser ?? parseUrl,
463
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
464
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
465
+ };
466
+ };
467
+
468
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
469
+ var getRuntimeConfig2 = (config) => {
470
+ emitWarningIfUnsupportedVersion2(process.version);
471
+ const defaultsMode = resolveDefaultsModeConfig(config);
472
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
473
+ const clientSharedValues = getRuntimeConfig(config);
474
+ emitWarningIfUnsupportedVersion(process.version);
475
+ const loaderConfig = {
476
+ profile: config?.profile,
477
+ logger: clientSharedValues.logger
478
+ };
479
+ return {
480
+ ...clientSharedValues,
481
+ ...config,
482
+ runtime: "node",
483
+ defaultsMode,
484
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
485
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
486
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
487
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
488
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
489
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
490
+ retryMode: config?.retryMode ?? loadConfig({
491
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
492
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
493
+ }, config),
494
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
495
+ streamCollector: config?.streamCollector ?? streamCollector,
496
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
497
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
498
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
499
+ };
500
+ };
501
+
502
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
503
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
504
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
505
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
506
+ let _credentials = runtimeConfig.credentials;
507
+ return {
508
+ setHttpAuthScheme(httpAuthScheme) {
509
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
510
+ if (index === -1) {
511
+ _httpAuthSchemes.push(httpAuthScheme);
512
+ } else {
513
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
514
+ }
515
+ },
516
+ httpAuthSchemes() {
517
+ return _httpAuthSchemes;
518
+ },
519
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
520
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
521
+ },
522
+ httpAuthSchemeProvider() {
523
+ return _httpAuthSchemeProvider;
524
+ },
525
+ setCredentials(credentials) {
526
+ _credentials = credentials;
527
+ },
528
+ credentials() {
529
+ return _credentials;
530
+ }
531
+ };
532
+ };
533
+ var resolveHttpAuthRuntimeConfig = (config) => {
534
+ return {
535
+ httpAuthSchemes: config.httpAuthSchemes(),
536
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
537
+ credentials: config.credentials()
538
+ };
539
+ };
540
+
541
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
542
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
543
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
544
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
545
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
546
+ };
547
+
548
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
549
+ var SSOClient = class extends Client {
550
+ config;
551
+ constructor(...[configuration]) {
552
+ const _config_0 = getRuntimeConfig2(configuration || {});
553
+ super(_config_0);
554
+ this.initConfig = _config_0;
555
+ const _config_1 = resolveClientEndpointParameters(_config_0);
556
+ const _config_2 = resolveUserAgentConfig(_config_1);
557
+ const _config_3 = resolveRetryConfig(_config_2);
558
+ const _config_4 = resolveRegionConfig(_config_3);
559
+ const _config_5 = resolveHostHeaderConfig(_config_4);
560
+ const _config_6 = resolveEndpointConfig(_config_5);
561
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
562
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
563
+ this.config = _config_8;
564
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
565
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
566
+ this.middlewareStack.use(getRetryPlugin(this.config));
567
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
568
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
569
+ this.middlewareStack.use(getLoggerPlugin(this.config));
570
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
571
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
572
+ httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
573
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
574
+ "aws.auth#sigv4": config.credentials
575
+ })
576
+ }));
577
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
578
+ }
579
+ destroy() {
580
+ super.destroy();
581
+ }
582
+ };
583
+
584
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
585
+ var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
586
+ return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
587
+ }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").sc(GetRoleCredentials$).build() {
588
+ };
589
+ export {
590
+ GetRoleCredentialsCommand,
591
+ SSOClient
592
+ };
@@ -0,0 +1 @@
1
+ 393cbb18dc43b06c1a571bcc41442f5990664b22
Binary file
@@ -0,0 +1 @@
1
+ 6d8d159d5802c724181129fc185c3a21adc9dbd7
Binary file
@@ -0,0 +1 @@
1
+ 0ed1d81c4a399fd6342c6a57e1f34e00559f5950
@@ -0,0 +1 @@
1
+ 79c41997ced733d15c6c862eb92d8aad3d38f83c
@@ -0,0 +1 @@
1
+ a6e1dc853d7f87f85caae5c7399b05d6d9ebe776
Binary file