@junando/core 0.11.0 → 0.12.0

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