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