@stacksjs/actions 0.70.10 → 0.70.11

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 (54) hide show
  1. package/dist/build/core.js +1 -1
  2. package/dist/build.js +18 -3
  3. package/dist/chunk-1hqs8kt1.js +179252 -0
  4. package/dist/{chunk-fxan91t8.js → chunk-2dvnt46s.js} +31 -31
  5. package/dist/chunk-38cnnp2b.js +3823 -0
  6. package/dist/chunk-3d7m14ee.js +212 -0
  7. package/dist/chunk-76zhb40c.js +92 -0
  8. package/dist/chunk-7s5qcjkt.js +105 -0
  9. package/dist/{chunk-v1qz355d.js → chunk-8fdqje2t.js} +4 -4
  10. package/dist/chunk-9exgwfkw.js +1283 -0
  11. package/dist/chunk-a13x0e43.js +1180 -0
  12. package/dist/chunk-a7k3cdby.js +2266 -0
  13. package/dist/chunk-b5g5w1hh.js +1482 -0
  14. package/dist/chunk-bf8bq8pc.js +205 -0
  15. package/dist/chunk-bst5srwz.js +662 -0
  16. package/dist/{chunk-6jdq6549.js → chunk-djkz87qs.js} +18 -3
  17. package/dist/chunk-f6a9g4qa.js +902 -0
  18. package/dist/chunk-frw3va9v.js +69 -0
  19. package/dist/chunk-hsak03yh.js +311 -0
  20. package/dist/{chunk-8swsxabt.js → chunk-k2wcwm7g.js} +63 -3
  21. package/dist/chunk-mdj7x1vs.js +790 -0
  22. package/dist/chunk-mdqphqep.js +438 -0
  23. package/dist/chunk-p0c688mg.js +729 -0
  24. package/dist/chunk-pjjzff0p.js +2116 -0
  25. package/dist/chunk-q81mf99q.js +169 -0
  26. package/dist/chunk-q9dmga3k.js +11 -0
  27. package/dist/chunk-qhh0v93n.js +73 -0
  28. package/dist/chunk-qkm8e752.js +51 -0
  29. package/dist/chunk-saqpg5nd.js +118 -0
  30. package/dist/chunk-t5em30ak.js +379 -0
  31. package/dist/chunk-veja9rez.js +5764 -0
  32. package/dist/chunk-zsm2c35w.js +72 -0
  33. package/dist/chunk-zzerxbrm.js +107 -0
  34. package/dist/database/seed.js +18 -3
  35. package/dist/deploy/index.js +1 -1
  36. package/dist/examples.js +1 -1
  37. package/dist/fresh.js +1 -1
  38. package/dist/generate/index.js +19 -4
  39. package/dist/helpers/component-meta.js +10 -10
  40. package/dist/helpers/lib-entries.js +1 -1
  41. package/dist/index.js +18 -3
  42. package/dist/key-generate.js +1 -1
  43. package/dist/lint/fix.js +1 -1
  44. package/dist/make.js +1 -1
  45. package/dist/prepublish.js +1 -1
  46. package/dist/release.js +18 -3
  47. package/dist/test/feature.js +1 -1
  48. package/dist/test/index.js +1 -1
  49. package/dist/test/unit.js +1 -1
  50. package/dist/types.js +1 -1
  51. package/dist/upgrade/index.js +1 -1
  52. package/dist/upgrade.js +2 -2
  53. package/package.json +17 -17
  54. package/dist/chunk-8tjc3whz.js +0 -77989
@@ -0,0 +1,662 @@
1
+ // @bun
2
+ import {
3
+ DEFAULT_RETRY_MODE,
4
+ EndpointCache,
5
+ Hash,
6
+ NODE_APP_ID_CONFIG_OPTIONS,
7
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
8
+ NODE_REGION_CONFIG_FILE_OPTIONS,
9
+ NODE_REGION_CONFIG_OPTIONS,
10
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
11
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
12
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
13
+ awsEndpointFunctions,
14
+ calculateBodyLength,
15
+ createDefaultUserAgentProvider,
16
+ customEndpointFunctions,
17
+ getAwsRegionExtensionConfiguration,
18
+ getContentLengthPlugin,
19
+ getEndpointPlugin,
20
+ getHostHeaderPlugin,
21
+ getLoggerPlugin,
22
+ getRecursionDetectionPlugin,
23
+ getRetryPlugin,
24
+ getSmithyContext,
25
+ getUserAgentPlugin,
26
+ normalizeProvider,
27
+ resolveAwsRegionExtensionConfiguration,
28
+ resolveDefaultsModeConfig,
29
+ resolveEndpoint,
30
+ resolveEndpointConfig,
31
+ resolveHostHeaderConfig,
32
+ resolveRegionConfig,
33
+ resolveRetryConfig,
34
+ resolveUserAgentConfig
35
+ } from "./chunk-pjjzff0p.js";
36
+ import {
37
+ loadConfig,
38
+ parseUrl
39
+ } from "./chunk-7s5qcjkt.js";
40
+ import"./chunk-bf8bq8pc.js";
41
+ import {
42
+ Client,
43
+ Command,
44
+ NoOpLogger,
45
+ NodeHttpHandler,
46
+ SENSITIVE_STRING,
47
+ ServiceException,
48
+ _json,
49
+ decorateServiceException,
50
+ emitWarningIfUnsupportedVersion,
51
+ expectNonNull,
52
+ expectObject,
53
+ expectString,
54
+ getDefaultExtensionConfiguration,
55
+ getHttpHandlerExtensionConfiguration,
56
+ isSerializableHeaderValue,
57
+ loadConfigsForDefaultMode,
58
+ map,
59
+ resolveDefaultRuntimeConfig,
60
+ resolveHttpHandlerRuntimeConfig,
61
+ streamCollector,
62
+ take,
63
+ withBaseException
64
+ } from "./chunk-b5g5w1hh.js";
65
+ import"./chunk-zzerxbrm.js";
66
+ import {
67
+ require_dist_cjs1 as require_dist_cjs,
68
+ require_dist_cjs2 as require_dist_cjs4,
69
+ require_dist_cjs5
70
+ } from "./chunk-veja9rez.js";
71
+ import {
72
+ require_dist_cjs3 as require_dist_cjs2,
73
+ require_dist_cjs4 as require_dist_cjs3
74
+ } from "./chunk-a7k3cdby.js";
75
+ import"./chunk-frw3va9v.js";
76
+ import"./chunk-saqpg5nd.js";
77
+ import {
78
+ __toESM
79
+ } from "./chunk-9v6qtbez.js";
80
+
81
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
82
+ var import_core5 = __toESM(require_dist_cjs4(), 1);
83
+
84
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
85
+ var import_core = __toESM(require_dist_cjs5(), 1);
86
+ var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
87
+ return {
88
+ operation: getSmithyContext(context).operation,
89
+ region: await normalizeProvider(config.region)() || (() => {
90
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
91
+ })()
92
+ };
93
+ };
94
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
95
+ return {
96
+ schemeId: "aws.auth#sigv4",
97
+ signingProperties: {
98
+ name: "awsssoportal",
99
+ region: authParameters.region
100
+ },
101
+ propertiesExtractor: (config, context) => ({
102
+ signingProperties: {
103
+ config,
104
+ context
105
+ }
106
+ })
107
+ };
108
+ }
109
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
110
+ return {
111
+ schemeId: "smithy.api#noAuth"
112
+ };
113
+ }
114
+ var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
115
+ const options = [];
116
+ switch (authParameters.operation) {
117
+ case "GetRoleCredentials": {
118
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
119
+ break;
120
+ }
121
+ case "ListAccountRoles": {
122
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
123
+ break;
124
+ }
125
+ case "ListAccounts": {
126
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
127
+ break;
128
+ }
129
+ case "Logout": {
130
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
131
+ break;
132
+ }
133
+ default: {
134
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
135
+ }
136
+ }
137
+ return options;
138
+ };
139
+ var resolveHttpAuthSchemeConfig = (config) => {
140
+ const config_0 = import_core.resolveAwsSdkSigV4Config(config);
141
+ return Object.assign(config_0, {});
142
+ };
143
+
144
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js
145
+ var resolveClientEndpointParameters = (options) => {
146
+ return Object.assign(options, {
147
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
148
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
149
+ defaultSigningName: "awsssoportal"
150
+ });
151
+ };
152
+ var commonParams = {
153
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
154
+ Endpoint: { type: "builtInParams", name: "endpoint" },
155
+ Region: { type: "builtInParams", name: "region" },
156
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
157
+ };
158
+ // ../../../../node_modules/@aws-sdk/client-sso/package.json
159
+ var package_default = {
160
+ name: "@aws-sdk/client-sso",
161
+ description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
162
+ version: "3.775.0",
163
+ scripts: {
164
+ build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
165
+ "build:cjs": "node ../../scripts/compilation/inline client-sso",
166
+ "build:es": "tsc -p tsconfig.es.json",
167
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
168
+ "build:types": "tsc -p tsconfig.types.json",
169
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
170
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
171
+ "extract:docs": "api-extractor run --local",
172
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo sso"
173
+ },
174
+ main: "./dist-cjs/index.js",
175
+ types: "./dist-types/index.d.ts",
176
+ module: "./dist-es/index.js",
177
+ sideEffects: false,
178
+ dependencies: {
179
+ "@aws-crypto/sha256-browser": "5.2.0",
180
+ "@aws-crypto/sha256-js": "5.2.0",
181
+ "@aws-sdk/core": "3.775.0",
182
+ "@aws-sdk/middleware-host-header": "3.775.0",
183
+ "@aws-sdk/middleware-logger": "3.775.0",
184
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
185
+ "@aws-sdk/middleware-user-agent": "3.775.0",
186
+ "@aws-sdk/region-config-resolver": "3.775.0",
187
+ "@aws-sdk/types": "3.775.0",
188
+ "@aws-sdk/util-endpoints": "3.775.0",
189
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
190
+ "@aws-sdk/util-user-agent-node": "3.775.0",
191
+ "@smithy/config-resolver": "^4.1.0",
192
+ "@smithy/core": "^3.2.0",
193
+ "@smithy/fetch-http-handler": "^5.0.2",
194
+ "@smithy/hash-node": "^4.0.2",
195
+ "@smithy/invalid-dependency": "^4.0.2",
196
+ "@smithy/middleware-content-length": "^4.0.2",
197
+ "@smithy/middleware-endpoint": "^4.1.0",
198
+ "@smithy/middleware-retry": "^4.1.0",
199
+ "@smithy/middleware-serde": "^4.0.3",
200
+ "@smithy/middleware-stack": "^4.0.2",
201
+ "@smithy/node-config-provider": "^4.0.2",
202
+ "@smithy/node-http-handler": "^4.0.4",
203
+ "@smithy/protocol-http": "^5.1.0",
204
+ "@smithy/smithy-client": "^4.2.0",
205
+ "@smithy/types": "^4.2.0",
206
+ "@smithy/url-parser": "^4.0.2",
207
+ "@smithy/util-base64": "^4.0.0",
208
+ "@smithy/util-body-length-browser": "^4.0.0",
209
+ "@smithy/util-body-length-node": "^4.0.0",
210
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
211
+ "@smithy/util-defaults-mode-node": "^4.0.8",
212
+ "@smithy/util-endpoints": "^3.0.2",
213
+ "@smithy/util-middleware": "^4.0.2",
214
+ "@smithy/util-retry": "^4.0.2",
215
+ "@smithy/util-utf8": "^4.0.0",
216
+ tslib: "^2.6.2"
217
+ },
218
+ devDependencies: {
219
+ "@tsconfig/node18": "18.2.4",
220
+ "@types/node": "^18.19.69",
221
+ concurrently: "7.0.0",
222
+ "downlevel-dts": "0.10.1",
223
+ rimraf: "3.0.2",
224
+ typescript: "~5.2.2"
225
+ },
226
+ engines: {
227
+ node: ">=18.0.0"
228
+ },
229
+ typesVersions: {
230
+ "<4.0": {
231
+ "dist-types/*": [
232
+ "dist-types/ts3.4/*"
233
+ ]
234
+ }
235
+ },
236
+ files: [
237
+ "dist-*/**"
238
+ ],
239
+ author: {
240
+ name: "AWS SDK for JavaScript Team",
241
+ url: "https://aws.amazon.com/javascript/"
242
+ },
243
+ license: "Apache-2.0",
244
+ browser: {
245
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
246
+ },
247
+ "react-native": {
248
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
249
+ },
250
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
251
+ repository: {
252
+ type: "git",
253
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
254
+ directory: "clients/client-sso"
255
+ }
256
+ };
257
+
258
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
259
+ var import_core4 = __toESM(require_dist_cjs5(), 1);
260
+
261
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
262
+ var import_core2 = __toESM(require_dist_cjs5(), 1);
263
+ var import_core3 = __toESM(require_dist_cjs4(), 1);
264
+ var import_util_base64 = __toESM(require_dist_cjs3(), 1);
265
+ var import_util_utf8 = __toESM(require_dist_cjs2(), 1);
266
+
267
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
268
+ var u = "required";
269
+ var v = "fn";
270
+ var w = "argv";
271
+ var x = "ref";
272
+ var a = true;
273
+ var b = "isSet";
274
+ var c = "booleanEquals";
275
+ var d = "error";
276
+ var e = "endpoint";
277
+ var f = "tree";
278
+ var g = "PartitionResult";
279
+ var h = "getAttr";
280
+ var i = { [u]: false, type: "String" };
281
+ var j = { [u]: true, default: false, type: "Boolean" };
282
+ var k = { [x]: "Endpoint" };
283
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
284
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
285
+ var n = {};
286
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
287
+ var p = { [x]: g };
288
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
289
+ var r = [l];
290
+ var s = [m];
291
+ var t = [{ [x]: "Region" }];
292
+ var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
293
+ var ruleSet = _data;
294
+
295
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js
296
+ var cache = new EndpointCache({
297
+ size: 50,
298
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
299
+ });
300
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
301
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
302
+ endpointParams,
303
+ logger: context.logger
304
+ }));
305
+ };
306
+ customEndpointFunctions.aws = awsEndpointFunctions;
307
+
308
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
309
+ var getRuntimeConfig = (config) => {
310
+ return {
311
+ apiVersion: "2019-06-10",
312
+ base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64,
313
+ base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64,
314
+ disableHostPrefix: config?.disableHostPrefix ?? false,
315
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
316
+ extensions: config?.extensions ?? [],
317
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
318
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
319
+ {
320
+ schemeId: "aws.auth#sigv4",
321
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
322
+ signer: new import_core2.AwsSdkSigV4Signer
323
+ },
324
+ {
325
+ schemeId: "smithy.api#noAuth",
326
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
327
+ signer: new import_core3.NoAuthSigner
328
+ }
329
+ ],
330
+ logger: config?.logger ?? new NoOpLogger,
331
+ serviceId: config?.serviceId ?? "SSO",
332
+ urlParser: config?.urlParser ?? parseUrl,
333
+ utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8,
334
+ utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8
335
+ };
336
+ };
337
+
338
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
339
+ var getRuntimeConfig2 = (config) => {
340
+ emitWarningIfUnsupportedVersion(process.version);
341
+ const defaultsMode = resolveDefaultsModeConfig(config);
342
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
343
+ const clientSharedValues = getRuntimeConfig(config);
344
+ import_core4.emitWarningIfUnsupportedVersion(process.version);
345
+ const profileConfig = { profile: config?.profile };
346
+ return {
347
+ ...clientSharedValues,
348
+ ...config,
349
+ runtime: "node",
350
+ defaultsMode,
351
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
352
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
353
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
354
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
355
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
356
+ retryMode: config?.retryMode ?? loadConfig({
357
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
358
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
359
+ }, config),
360
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
361
+ streamCollector: config?.streamCollector ?? streamCollector,
362
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
363
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
364
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig)
365
+ };
366
+ };
367
+
368
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js
369
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
370
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
371
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
372
+ let _credentials = runtimeConfig.credentials;
373
+ return {
374
+ setHttpAuthScheme(httpAuthScheme) {
375
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
376
+ if (index === -1) {
377
+ _httpAuthSchemes.push(httpAuthScheme);
378
+ } else {
379
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
380
+ }
381
+ },
382
+ httpAuthSchemes() {
383
+ return _httpAuthSchemes;
384
+ },
385
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
386
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
387
+ },
388
+ httpAuthSchemeProvider() {
389
+ return _httpAuthSchemeProvider;
390
+ },
391
+ setCredentials(credentials) {
392
+ _credentials = credentials;
393
+ },
394
+ credentials() {
395
+ return _credentials;
396
+ }
397
+ };
398
+ };
399
+ var resolveHttpAuthRuntimeConfig = (config) => {
400
+ return {
401
+ httpAuthSchemes: config.httpAuthSchemes(),
402
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
403
+ credentials: config.credentials()
404
+ };
405
+ };
406
+
407
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
408
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
409
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
410
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
411
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
412
+ };
413
+
414
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
415
+ class SSOClient extends Client {
416
+ config;
417
+ constructor(...[configuration]) {
418
+ const _config_0 = getRuntimeConfig2(configuration || {});
419
+ super(_config_0);
420
+ this.initConfig = _config_0;
421
+ const _config_1 = resolveClientEndpointParameters(_config_0);
422
+ const _config_2 = resolveUserAgentConfig(_config_1);
423
+ const _config_3 = resolveRetryConfig(_config_2);
424
+ const _config_4 = resolveRegionConfig(_config_3);
425
+ const _config_5 = resolveHostHeaderConfig(_config_4);
426
+ const _config_6 = resolveEndpointConfig(_config_5);
427
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
428
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
429
+ this.config = _config_8;
430
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
431
+ this.middlewareStack.use(getRetryPlugin(this.config));
432
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
433
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
434
+ this.middlewareStack.use(getLoggerPlugin(this.config));
435
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
436
+ this.middlewareStack.use(import_core5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
437
+ httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
438
+ identityProviderConfigProvider: async (config) => new import_core5.DefaultIdentityProviderConfig({
439
+ "aws.auth#sigv4": config.credentials
440
+ })
441
+ }));
442
+ this.middlewareStack.use(import_core5.getHttpSigningPlugin(this.config));
443
+ }
444
+ destroy() {
445
+ super.destroy();
446
+ }
447
+ }
448
+
449
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
450
+ var import_middleware_serde = __toESM(require_dist_cjs(), 1);
451
+
452
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js
453
+ class SSOServiceException extends ServiceException {
454
+ constructor(options) {
455
+ super(options);
456
+ Object.setPrototypeOf(this, SSOServiceException.prototype);
457
+ }
458
+ }
459
+
460
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js
461
+ class InvalidRequestException extends SSOServiceException {
462
+ name = "InvalidRequestException";
463
+ $fault = "client";
464
+ constructor(opts) {
465
+ super({
466
+ name: "InvalidRequestException",
467
+ $fault: "client",
468
+ ...opts
469
+ });
470
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
471
+ }
472
+ }
473
+
474
+ class ResourceNotFoundException extends SSOServiceException {
475
+ name = "ResourceNotFoundException";
476
+ $fault = "client";
477
+ constructor(opts) {
478
+ super({
479
+ name: "ResourceNotFoundException",
480
+ $fault: "client",
481
+ ...opts
482
+ });
483
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
484
+ }
485
+ }
486
+
487
+ class TooManyRequestsException extends SSOServiceException {
488
+ name = "TooManyRequestsException";
489
+ $fault = "client";
490
+ constructor(opts) {
491
+ super({
492
+ name: "TooManyRequestsException",
493
+ $fault: "client",
494
+ ...opts
495
+ });
496
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
497
+ }
498
+ }
499
+
500
+ class UnauthorizedException extends SSOServiceException {
501
+ name = "UnauthorizedException";
502
+ $fault = "client";
503
+ constructor(opts) {
504
+ super({
505
+ name: "UnauthorizedException",
506
+ $fault: "client",
507
+ ...opts
508
+ });
509
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
510
+ }
511
+ }
512
+ var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
513
+ ...obj,
514
+ ...obj.accessToken && { accessToken: SENSITIVE_STRING }
515
+ });
516
+ var RoleCredentialsFilterSensitiveLog = (obj) => ({
517
+ ...obj,
518
+ ...obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING },
519
+ ...obj.sessionToken && { sessionToken: SENSITIVE_STRING }
520
+ });
521
+ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
522
+ ...obj,
523
+ ...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
524
+ });
525
+
526
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
527
+ var import_core6 = __toESM(require_dist_cjs5(), 1);
528
+ var import_core7 = __toESM(require_dist_cjs4(), 1);
529
+ var se_GetRoleCredentialsCommand = async (input, context) => {
530
+ const b2 = import_core7.requestBuilder(input, context);
531
+ const headers = map({}, isSerializableHeaderValue, {
532
+ [_xasbt]: input[_aT]
533
+ });
534
+ b2.bp("/federation/credentials");
535
+ const query = map({
536
+ [_rn]: [, expectNonNull(input[_rN], `roleName`)],
537
+ [_ai]: [, expectNonNull(input[_aI], `accountId`)]
538
+ });
539
+ let body;
540
+ b2.m("GET").h(headers).q(query).b(body);
541
+ return b2.build();
542
+ };
543
+ var de_GetRoleCredentialsCommand = async (output, context) => {
544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
545
+ return de_CommandError(output, context);
546
+ }
547
+ const contents = map({
548
+ $metadata: deserializeMetadata(output)
549
+ });
550
+ const data = expectNonNull(expectObject(await import_core6.parseJsonBody(output.body, context)), "body");
551
+ const doc = take(data, {
552
+ roleCredentials: _json
553
+ });
554
+ Object.assign(contents, doc);
555
+ return contents;
556
+ };
557
+ var de_CommandError = async (output, context) => {
558
+ const parsedOutput = {
559
+ ...output,
560
+ body: await import_core6.parseJsonErrorBody(output.body, context)
561
+ };
562
+ const errorCode = import_core6.loadRestJsonErrorCode(output, parsedOutput.body);
563
+ switch (errorCode) {
564
+ case "InvalidRequestException":
565
+ case "com.amazonaws.sso#InvalidRequestException":
566
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
567
+ case "ResourceNotFoundException":
568
+ case "com.amazonaws.sso#ResourceNotFoundException":
569
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
570
+ case "TooManyRequestsException":
571
+ case "com.amazonaws.sso#TooManyRequestsException":
572
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
573
+ case "UnauthorizedException":
574
+ case "com.amazonaws.sso#UnauthorizedException":
575
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
576
+ default:
577
+ const parsedBody = parsedOutput.body;
578
+ return throwDefaultError({
579
+ output,
580
+ parsedBody,
581
+ errorCode
582
+ });
583
+ }
584
+ };
585
+ var throwDefaultError = withBaseException(SSOServiceException);
586
+ var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
587
+ const contents = map({});
588
+ const data = parsedOutput.body;
589
+ const doc = take(data, {
590
+ message: expectString
591
+ });
592
+ Object.assign(contents, doc);
593
+ const exception = new InvalidRequestException({
594
+ $metadata: deserializeMetadata(parsedOutput),
595
+ ...contents
596
+ });
597
+ return decorateServiceException(exception, parsedOutput.body);
598
+ };
599
+ var de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
600
+ const contents = map({});
601
+ const data = parsedOutput.body;
602
+ const doc = take(data, {
603
+ message: expectString
604
+ });
605
+ Object.assign(contents, doc);
606
+ const exception = new ResourceNotFoundException({
607
+ $metadata: deserializeMetadata(parsedOutput),
608
+ ...contents
609
+ });
610
+ return decorateServiceException(exception, parsedOutput.body);
611
+ };
612
+ var de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
613
+ const contents = map({});
614
+ const data = parsedOutput.body;
615
+ const doc = take(data, {
616
+ message: expectString
617
+ });
618
+ Object.assign(contents, doc);
619
+ const exception = new TooManyRequestsException({
620
+ $metadata: deserializeMetadata(parsedOutput),
621
+ ...contents
622
+ });
623
+ return decorateServiceException(exception, parsedOutput.body);
624
+ };
625
+ var de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
626
+ const contents = map({});
627
+ const data = parsedOutput.body;
628
+ const doc = take(data, {
629
+ message: expectString
630
+ });
631
+ Object.assign(contents, doc);
632
+ const exception = new UnauthorizedException({
633
+ $metadata: deserializeMetadata(parsedOutput),
634
+ ...contents
635
+ });
636
+ return decorateServiceException(exception, parsedOutput.body);
637
+ };
638
+ var deserializeMetadata = (output) => ({
639
+ httpStatusCode: output.statusCode,
640
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
641
+ extendedRequestId: output.headers["x-amz-id-2"],
642
+ cfId: output.headers["x-amz-cf-id"]
643
+ });
644
+ var _aI = "accountId";
645
+ var _aT = "accessToken";
646
+ var _ai = "account_id";
647
+ var _rN = "roleName";
648
+ var _rn = "role_name";
649
+ var _xasbt = "x-amz-sso_bearer_token";
650
+
651
+ // ../../../../node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
652
+ class GetRoleCredentialsCommand extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
653
+ return [
654
+ import_middleware_serde.getSerdePlugin(config, this.serialize, this.deserialize),
655
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
656
+ ];
657
+ }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
658
+ }
659
+ export {
660
+ SSOClient,
661
+ GetRoleCredentialsCommand
662
+ };
@@ -1,9 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-v1qz355d.js";
5
- import"./chunk-8tjc3whz.js";
6
- import"./chunk-fxan91t8.js";
4
+ } from "./chunk-8fdqje2t.js";
5
+ import"./chunk-1hqs8kt1.js";
6
+ import"./chunk-mdj7x1vs.js";
7
+ import"./chunk-p0c688mg.js";
8
+ import"./chunk-qkm8e752.js";
9
+ import"./chunk-a13x0e43.js";
10
+ import"./chunk-mdqphqep.js";
11
+ import"./chunk-qhh0v93n.js";
12
+ import"./chunk-pjjzff0p.js";
13
+ import"./chunk-7s5qcjkt.js";
14
+ import"./chunk-bf8bq8pc.js";
15
+ import"./chunk-b5g5w1hh.js";
16
+ import"./chunk-zzerxbrm.js";
17
+ import"./chunk-veja9rez.js";
18
+ import"./chunk-a7k3cdby.js";
19
+ import"./chunk-frw3va9v.js";
20
+ import"./chunk-saqpg5nd.js";
21
+ import"./chunk-2dvnt46s.js";
7
22
  import"./chunk-w6fdq4hk.js";
8
23
  import"./chunk-wkwtsvym.js";
9
24
  import"./chunk-9v6qtbez.js";