@stacksjs/buddy 0.62.0 → 0.63.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 (53) hide show
  1. package/dist/chunk-03ckp0m6.js +1222 -0
  2. package/dist/chunk-03ckp0m6.js.map +26 -0
  3. package/dist/{chunk-d489210ea37079cc.js → chunk-1f1xhs02.js} +114 -114
  4. package/dist/chunk-1f1xhs02.js.map +46 -0
  5. package/dist/chunk-582dnm6a.js +664 -0
  6. package/dist/chunk-582dnm6a.js.map +22 -0
  7. package/dist/chunk-6pac0yn5.js +126 -0
  8. package/dist/chunk-6pac0yn5.js.map +10 -0
  9. package/dist/chunk-7jmyxm7k.js +85 -0
  10. package/dist/chunk-7jmyxm7k.js.map +12 -0
  11. package/dist/chunk-8217wvpy.js +108 -0
  12. package/dist/chunk-8217wvpy.js.map +16 -0
  13. package/dist/chunk-8420n19j.js +7417 -0
  14. package/dist/chunk-8420n19j.js.map +59 -0
  15. package/dist/chunk-afhgv4v9.js +164 -0
  16. package/dist/chunk-afhgv4v9.js.map +13 -0
  17. package/dist/chunk-as72s87r.js +61 -0
  18. package/dist/chunk-as72s87r.js.map +11 -0
  19. package/dist/{chunk-970e033f764e29fc.js → chunk-cnvp47g4.js} +4 -1
  20. package/dist/chunk-cnvp47g4.js.map +9 -0
  21. package/dist/chunk-mmbfc5ft.js +287 -0
  22. package/dist/chunk-mmbfc5ft.js.map +20 -0
  23. package/dist/chunk-nr24kzd1.js +178 -0
  24. package/dist/chunk-nr24kzd1.js.map +17 -0
  25. package/dist/chunk-q2vnqdcs.js +1696 -0
  26. package/dist/chunk-q2vnqdcs.js.map +56 -0
  27. package/dist/chunk-qx96ff3m.js +95 -0
  28. package/dist/chunk-qx96ff3m.js.map +11 -0
  29. package/dist/chunk-rt463pw6.js +46 -0
  30. package/dist/chunk-rt463pw6.js.map +10 -0
  31. package/dist/chunk-sc3etgb7.js +208 -0
  32. package/dist/chunk-sc3etgb7.js.map +23 -0
  33. package/dist/chunk-tegm7yex.js +10767 -0
  34. package/dist/chunk-tegm7yex.js.map +171 -0
  35. package/dist/chunk-xhsvfzz8.js +381 -0
  36. package/dist/chunk-xhsvfzz8.js.map +23 -0
  37. package/dist/chunk-yrsms9d2.js +1746 -0
  38. package/dist/chunk-yrsms9d2.js.map +32 -0
  39. package/dist/chunk-zzerxbrm.js +110 -0
  40. package/dist/chunk-zzerxbrm.js.map +15 -0
  41. package/dist/cli.js +13 -2
  42. package/dist/cli.js.map +10 -0
  43. package/dist/index.js +13 -2
  44. package/dist/index.js.map +9 -0
  45. package/dist/stacks +0 -0
  46. package/package.json +8 -1
  47. package/src/commands/cloud.ts +164 -10
  48. package/src/commands/configure.ts +2 -1
  49. package/src/commands/deploy.ts +55 -4
  50. package/src/commands/dev.ts +2 -2
  51. package/src/commands/make.ts +1 -2
  52. package/src/commands/migrate.ts +1 -1
  53. package/dist/chunk-df5ec841ab2a0086.js +0 -2271
@@ -0,0 +1,1222 @@
1
+ // @bun
2
+ import"./chunk-rt463pw6.js";
3
+ import {
4
+ __toESM
5
+ } from "./chunk-cnvp47g4.js";
6
+ import {
7
+ Client,
8
+ Command,
9
+ NoOpLogger,
10
+ NodeHttpHandler,
11
+ SENSITIVE_STRING,
12
+ ServiceException,
13
+ _json,
14
+ createAggregatedClient,
15
+ decorateServiceException,
16
+ emitWarningIfUnsupportedVersion,
17
+ expectInt32,
18
+ expectLong,
19
+ expectNonNull,
20
+ expectObject,
21
+ expectString,
22
+ fromBase64,
23
+ fromUtf8,
24
+ getDefaultExtensionConfiguration,
25
+ getHttpHandlerExtensionConfiguration,
26
+ loadConfigsForDefaultMode,
27
+ map,
28
+ resolveDefaultRuntimeConfig,
29
+ resolveHttpHandlerRuntimeConfig,
30
+ streamCollector,
31
+ take,
32
+ toBase64,
33
+ toUtf8,
34
+ withBaseException
35
+ } from "./chunk-q2vnqdcs.js";
36
+ import {
37
+ DEFAULT_RETRY_MODE,
38
+ Hash,
39
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
40
+ NODE_REGION_CONFIG_FILE_OPTIONS,
41
+ NODE_REGION_CONFIG_OPTIONS,
42
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
44
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
45
+ awsEndpointFunctions,
46
+ calculateBodyLength,
47
+ customEndpointFunctions,
48
+ defaultUserAgent,
49
+ getAwsRegionExtensionConfiguration,
50
+ getContentLengthPlugin,
51
+ getEndpointPlugin,
52
+ getHostHeaderPlugin,
53
+ getLoggerPlugin,
54
+ getRecursionDetectionPlugin,
55
+ getRetryPlugin,
56
+ getSerdePlugin,
57
+ getSmithyContext,
58
+ getUserAgentPlugin,
59
+ normalizeProvider,
60
+ require_dist_cjs,
61
+ require_dist_cjs1 as require_dist_cjs2,
62
+ resolveAwsRegionExtensionConfiguration,
63
+ resolveDefaultsModeConfig,
64
+ resolveEndpoint,
65
+ resolveEndpointConfig,
66
+ resolveHostHeaderConfig,
67
+ resolveRegionConfig,
68
+ resolveRetryConfig,
69
+ resolveUserAgentConfig
70
+ } from "./chunk-tegm7yex.js";
71
+ import"./chunk-6pac0yn5.js";
72
+ import {
73
+ loadConfig,
74
+ parseUrl
75
+ } from "./chunk-8217wvpy.js";
76
+ import"./chunk-zzerxbrm.js";
77
+ import {
78
+ defaultProvider
79
+ } from "./chunk-qx96ff3m.js";
80
+ import"./chunk-sc3etgb7.js";
81
+
82
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js
83
+ var core5 = __toESM(require_dist_cjs(), 1);
84
+
85
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js
86
+ var core = __toESM(require_dist_cjs2(), 1);
87
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
88
+ return {
89
+ schemeId: "aws.auth#sigv4",
90
+ signingProperties: {
91
+ name: "sso-oauth",
92
+ region: authParameters.region
93
+ },
94
+ propertiesExtractor: (config, context) => ({
95
+ signingProperties: {
96
+ config,
97
+ context
98
+ }
99
+ })
100
+ };
101
+ }
102
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
103
+ return {
104
+ schemeId: "smithy.api#noAuth"
105
+ };
106
+ }
107
+ var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
108
+ return {
109
+ operation: getSmithyContext(context).operation,
110
+ region: await normalizeProvider(config.region)() || (() => {
111
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
112
+ })()
113
+ };
114
+ };
115
+ var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
116
+ const options = [];
117
+ switch (authParameters.operation) {
118
+ case "CreateToken": {
119
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
120
+ break;
121
+ }
122
+ case "RegisterClient": {
123
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
124
+ break;
125
+ }
126
+ case "StartDeviceAuthorization": {
127
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
128
+ break;
129
+ }
130
+ default: {
131
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
132
+ }
133
+ }
134
+ return options;
135
+ };
136
+ var resolveHttpAuthSchemeConfig = (config) => {
137
+ const config_0 = core.resolveAwsSdkSigV4Config(config);
138
+ return {
139
+ ...config_0
140
+ };
141
+ };
142
+
143
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js
144
+ var resolveClientEndpointParameters = (options) => {
145
+ return {
146
+ ...options,
147
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
148
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
149
+ defaultSigningName: "sso-oauth"
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-oidc/package.json
159
+ var package_default = {
160
+ name: "@aws-sdk/client-sso-oidc",
161
+ description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
162
+ version: "3.632.0",
163
+ scripts: {
164
+ build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
165
+ "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
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-oidc"
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.629.0",
182
+ "@aws-sdk/credential-provider-node": "3.632.0",
183
+ "@aws-sdk/middleware-host-header": "3.620.0",
184
+ "@aws-sdk/middleware-logger": "3.609.0",
185
+ "@aws-sdk/middleware-recursion-detection": "3.620.0",
186
+ "@aws-sdk/middleware-user-agent": "3.632.0",
187
+ "@aws-sdk/region-config-resolver": "3.614.0",
188
+ "@aws-sdk/types": "3.609.0",
189
+ "@aws-sdk/util-endpoints": "3.632.0",
190
+ "@aws-sdk/util-user-agent-browser": "3.609.0",
191
+ "@aws-sdk/util-user-agent-node": "3.614.0",
192
+ "@smithy/config-resolver": "^3.0.5",
193
+ "@smithy/core": "^2.3.2",
194
+ "@smithy/fetch-http-handler": "^3.2.4",
195
+ "@smithy/hash-node": "^3.0.3",
196
+ "@smithy/invalid-dependency": "^3.0.3",
197
+ "@smithy/middleware-content-length": "^3.0.5",
198
+ "@smithy/middleware-endpoint": "^3.1.0",
199
+ "@smithy/middleware-retry": "^3.0.14",
200
+ "@smithy/middleware-serde": "^3.0.3",
201
+ "@smithy/middleware-stack": "^3.0.3",
202
+ "@smithy/node-config-provider": "^3.1.4",
203
+ "@smithy/node-http-handler": "^3.1.4",
204
+ "@smithy/protocol-http": "^4.1.0",
205
+ "@smithy/smithy-client": "^3.1.12",
206
+ "@smithy/types": "^3.3.0",
207
+ "@smithy/url-parser": "^3.0.3",
208
+ "@smithy/util-base64": "^3.0.0",
209
+ "@smithy/util-body-length-browser": "^3.0.0",
210
+ "@smithy/util-body-length-node": "^3.0.0",
211
+ "@smithy/util-defaults-mode-browser": "^3.0.14",
212
+ "@smithy/util-defaults-mode-node": "^3.0.14",
213
+ "@smithy/util-endpoints": "^2.0.5",
214
+ "@smithy/util-middleware": "^3.0.3",
215
+ "@smithy/util-retry": "^3.0.3",
216
+ "@smithy/util-utf8": "^3.0.0",
217
+ tslib: "^2.6.2"
218
+ },
219
+ devDependencies: {
220
+ "@tsconfig/node16": "16.1.3",
221
+ "@types/node": "^16.18.96",
222
+ concurrently: "7.0.0",
223
+ "downlevel-dts": "0.10.1",
224
+ rimraf: "3.0.2",
225
+ typescript: "~4.9.5"
226
+ },
227
+ engines: {
228
+ node: ">=16.0.0"
229
+ },
230
+ typesVersions: {
231
+ "<4.0": {
232
+ "dist-types/*": [
233
+ "dist-types/ts3.4/*"
234
+ ]
235
+ }
236
+ },
237
+ files: [
238
+ "dist-*/**"
239
+ ],
240
+ author: {
241
+ name: "AWS SDK for JavaScript Team",
242
+ url: "https://aws.amazon.com/javascript/"
243
+ },
244
+ license: "Apache-2.0",
245
+ peerDependencies: {
246
+ "@aws-sdk/client-sts": "^3.632.0"
247
+ },
248
+ browser: {
249
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
250
+ },
251
+ "react-native": {
252
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
253
+ },
254
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
255
+ repository: {
256
+ type: "git",
257
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
258
+ directory: "clients/client-sso-oidc"
259
+ }
260
+ };
261
+
262
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js
263
+ var core4 = __toESM(require_dist_cjs2(), 1);
264
+
265
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js
266
+ var core2 = __toESM(require_dist_cjs2(), 1);
267
+ var core3 = __toESM(require_dist_cjs(), 1);
268
+
269
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js
270
+ var u = "required";
271
+ var v = "fn";
272
+ var w = "argv";
273
+ var x = "ref";
274
+ var a = true;
275
+ var b = "isSet";
276
+ var c = "booleanEquals";
277
+ var d = "error";
278
+ var e = "endpoint";
279
+ var f = "tree";
280
+ var g = "PartitionResult";
281
+ var h = "getAttr";
282
+ var i = { [u]: false, type: "String" };
283
+ var j = { [u]: true, default: false, type: "Boolean" };
284
+ var k = { [x]: "Endpoint" };
285
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
286
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
287
+ var n = {};
288
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
289
+ var p = { [x]: g };
290
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
291
+ var r = [l];
292
+ var s = [m];
293
+ var t = [{ [x]: "Region" }];
294
+ 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://oidc-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://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-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://oidc.{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://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
295
+ var ruleSet = _data;
296
+
297
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js
298
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
299
+ return resolveEndpoint(ruleSet, {
300
+ endpointParams,
301
+ logger: context.logger
302
+ });
303
+ };
304
+ customEndpointFunctions.aws = awsEndpointFunctions;
305
+
306
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js
307
+ var getRuntimeConfig = (config) => {
308
+ return {
309
+ apiVersion: "2019-06-10",
310
+ base64Decoder: config?.base64Decoder ?? fromBase64,
311
+ base64Encoder: config?.base64Encoder ?? toBase64,
312
+ disableHostPrefix: config?.disableHostPrefix ?? false,
313
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
314
+ extensions: config?.extensions ?? [],
315
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
316
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
317
+ {
318
+ schemeId: "aws.auth#sigv4",
319
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
320
+ signer: new core2.AwsSdkSigV4Signer
321
+ },
322
+ {
323
+ schemeId: "smithy.api#noAuth",
324
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
325
+ signer: new core3.NoAuthSigner
326
+ }
327
+ ],
328
+ logger: config?.logger ?? new NoOpLogger,
329
+ serviceId: config?.serviceId ?? "SSO OIDC",
330
+ urlParser: config?.urlParser ?? parseUrl,
331
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
332
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
333
+ };
334
+ };
335
+
336
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js
337
+ var getRuntimeConfig2 = (config) => {
338
+ emitWarningIfUnsupportedVersion(process.version);
339
+ const defaultsMode = resolveDefaultsModeConfig(config);
340
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
341
+ const clientSharedValues = getRuntimeConfig(config);
342
+ core4.emitWarningIfUnsupportedVersion(process.version);
343
+ return {
344
+ ...clientSharedValues,
345
+ ...config,
346
+ runtime: "node",
347
+ defaultsMode,
348
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
349
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
350
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
351
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
352
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
353
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
354
+ retryMode: config?.retryMode ?? loadConfig({
355
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
356
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
357
+ }),
358
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
359
+ streamCollector: config?.streamCollector ?? streamCollector,
360
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
361
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)
362
+ };
363
+ };
364
+
365
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js
366
+ var getHttpAuthExtensionConfiguration = (runtimeConfig2) => {
367
+ const _httpAuthSchemes = runtimeConfig2.httpAuthSchemes;
368
+ let _httpAuthSchemeProvider = runtimeConfig2.httpAuthSchemeProvider;
369
+ let _credentials = runtimeConfig2.credentials;
370
+ return {
371
+ setHttpAuthScheme(httpAuthScheme) {
372
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
373
+ if (index === -1) {
374
+ _httpAuthSchemes.push(httpAuthScheme);
375
+ } else {
376
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
377
+ }
378
+ },
379
+ httpAuthSchemes() {
380
+ return _httpAuthSchemes;
381
+ },
382
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider2) {
383
+ _httpAuthSchemeProvider = httpAuthSchemeProvider2;
384
+ },
385
+ httpAuthSchemeProvider() {
386
+ return _httpAuthSchemeProvider;
387
+ },
388
+ setCredentials(credentials) {
389
+ _credentials = credentials;
390
+ },
391
+ credentials() {
392
+ return _credentials;
393
+ }
394
+ };
395
+ };
396
+ var resolveHttpAuthRuntimeConfig = (config) => {
397
+ return {
398
+ httpAuthSchemes: config.httpAuthSchemes(),
399
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
400
+ credentials: config.credentials()
401
+ };
402
+ };
403
+
404
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js
405
+ var asPartial = (t2) => t2;
406
+ var resolveRuntimeExtensions = (runtimeConfig2, extensions) => {
407
+ const extensionConfiguration = {
408
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig2)),
409
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig2)),
410
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig2)),
411
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig2))
412
+ };
413
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
414
+ return {
415
+ ...runtimeConfig2,
416
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
417
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
418
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
419
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
420
+ };
421
+ };
422
+
423
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js
424
+ class SSOOIDCClient extends Client {
425
+ constructor(...[configuration]) {
426
+ const _config_0 = getRuntimeConfig2(configuration || {});
427
+ const _config_1 = resolveClientEndpointParameters(_config_0);
428
+ const _config_2 = resolveUserAgentConfig(_config_1);
429
+ const _config_3 = resolveRetryConfig(_config_2);
430
+ const _config_4 = resolveRegionConfig(_config_3);
431
+ const _config_5 = resolveHostHeaderConfig(_config_4);
432
+ const _config_6 = resolveEndpointConfig(_config_5);
433
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
434
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
435
+ super(_config_8);
436
+ this.config = _config_8;
437
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
438
+ this.middlewareStack.use(getRetryPlugin(this.config));
439
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
440
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
441
+ this.middlewareStack.use(getLoggerPlugin(this.config));
442
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
443
+ this.middlewareStack.use(core5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
444
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
445
+ identityProviderConfigProvider: async (config) => new core5.DefaultIdentityProviderConfig({
446
+ "aws.auth#sigv4": config.credentials
447
+ })
448
+ }));
449
+ this.middlewareStack.use(core5.getHttpSigningPlugin(this.config));
450
+ }
451
+ destroy() {
452
+ super.destroy();
453
+ }
454
+ }
455
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js
456
+ class SSOOIDCServiceException extends ServiceException {
457
+ constructor(options) {
458
+ super(options);
459
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
460
+ }
461
+ }
462
+
463
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js
464
+ class AccessDeniedException extends SSOOIDCServiceException {
465
+ constructor(opts) {
466
+ super({
467
+ name: "AccessDeniedException",
468
+ $fault: "client",
469
+ ...opts
470
+ });
471
+ this.name = "AccessDeniedException";
472
+ this.$fault = "client";
473
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
474
+ this.error = opts.error;
475
+ this.error_description = opts.error_description;
476
+ }
477
+ }
478
+
479
+ class AuthorizationPendingException extends SSOOIDCServiceException {
480
+ constructor(opts) {
481
+ super({
482
+ name: "AuthorizationPendingException",
483
+ $fault: "client",
484
+ ...opts
485
+ });
486
+ this.name = "AuthorizationPendingException";
487
+ this.$fault = "client";
488
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
489
+ this.error = opts.error;
490
+ this.error_description = opts.error_description;
491
+ }
492
+ }
493
+
494
+ class ExpiredTokenException extends SSOOIDCServiceException {
495
+ constructor(opts) {
496
+ super({
497
+ name: "ExpiredTokenException",
498
+ $fault: "client",
499
+ ...opts
500
+ });
501
+ this.name = "ExpiredTokenException";
502
+ this.$fault = "client";
503
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
504
+ this.error = opts.error;
505
+ this.error_description = opts.error_description;
506
+ }
507
+ }
508
+
509
+ class InternalServerException extends SSOOIDCServiceException {
510
+ constructor(opts) {
511
+ super({
512
+ name: "InternalServerException",
513
+ $fault: "server",
514
+ ...opts
515
+ });
516
+ this.name = "InternalServerException";
517
+ this.$fault = "server";
518
+ Object.setPrototypeOf(this, InternalServerException.prototype);
519
+ this.error = opts.error;
520
+ this.error_description = opts.error_description;
521
+ }
522
+ }
523
+
524
+ class InvalidClientException extends SSOOIDCServiceException {
525
+ constructor(opts) {
526
+ super({
527
+ name: "InvalidClientException",
528
+ $fault: "client",
529
+ ...opts
530
+ });
531
+ this.name = "InvalidClientException";
532
+ this.$fault = "client";
533
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
534
+ this.error = opts.error;
535
+ this.error_description = opts.error_description;
536
+ }
537
+ }
538
+
539
+ class InvalidGrantException extends SSOOIDCServiceException {
540
+ constructor(opts) {
541
+ super({
542
+ name: "InvalidGrantException",
543
+ $fault: "client",
544
+ ...opts
545
+ });
546
+ this.name = "InvalidGrantException";
547
+ this.$fault = "client";
548
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
549
+ this.error = opts.error;
550
+ this.error_description = opts.error_description;
551
+ }
552
+ }
553
+
554
+ class InvalidRequestException extends SSOOIDCServiceException {
555
+ constructor(opts) {
556
+ super({
557
+ name: "InvalidRequestException",
558
+ $fault: "client",
559
+ ...opts
560
+ });
561
+ this.name = "InvalidRequestException";
562
+ this.$fault = "client";
563
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
564
+ this.error = opts.error;
565
+ this.error_description = opts.error_description;
566
+ }
567
+ }
568
+
569
+ class InvalidScopeException extends SSOOIDCServiceException {
570
+ constructor(opts) {
571
+ super({
572
+ name: "InvalidScopeException",
573
+ $fault: "client",
574
+ ...opts
575
+ });
576
+ this.name = "InvalidScopeException";
577
+ this.$fault = "client";
578
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
579
+ this.error = opts.error;
580
+ this.error_description = opts.error_description;
581
+ }
582
+ }
583
+
584
+ class SlowDownException extends SSOOIDCServiceException {
585
+ constructor(opts) {
586
+ super({
587
+ name: "SlowDownException",
588
+ $fault: "client",
589
+ ...opts
590
+ });
591
+ this.name = "SlowDownException";
592
+ this.$fault = "client";
593
+ Object.setPrototypeOf(this, SlowDownException.prototype);
594
+ this.error = opts.error;
595
+ this.error_description = opts.error_description;
596
+ }
597
+ }
598
+
599
+ class UnauthorizedClientException extends SSOOIDCServiceException {
600
+ constructor(opts) {
601
+ super({
602
+ name: "UnauthorizedClientException",
603
+ $fault: "client",
604
+ ...opts
605
+ });
606
+ this.name = "UnauthorizedClientException";
607
+ this.$fault = "client";
608
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
609
+ this.error = opts.error;
610
+ this.error_description = opts.error_description;
611
+ }
612
+ }
613
+
614
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
615
+ constructor(opts) {
616
+ super({
617
+ name: "UnsupportedGrantTypeException",
618
+ $fault: "client",
619
+ ...opts
620
+ });
621
+ this.name = "UnsupportedGrantTypeException";
622
+ this.$fault = "client";
623
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
624
+ this.error = opts.error;
625
+ this.error_description = opts.error_description;
626
+ }
627
+ }
628
+
629
+ class InvalidRequestRegionException extends SSOOIDCServiceException {
630
+ constructor(opts) {
631
+ super({
632
+ name: "InvalidRequestRegionException",
633
+ $fault: "client",
634
+ ...opts
635
+ });
636
+ this.name = "InvalidRequestRegionException";
637
+ this.$fault = "client";
638
+ Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
639
+ this.error = opts.error;
640
+ this.error_description = opts.error_description;
641
+ this.endpoint = opts.endpoint;
642
+ this.region = opts.region;
643
+ }
644
+ }
645
+
646
+ class InvalidClientMetadataException extends SSOOIDCServiceException {
647
+ constructor(opts) {
648
+ super({
649
+ name: "InvalidClientMetadataException",
650
+ $fault: "client",
651
+ ...opts
652
+ });
653
+ this.name = "InvalidClientMetadataException";
654
+ this.$fault = "client";
655
+ Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
656
+ this.error = opts.error;
657
+ this.error_description = opts.error_description;
658
+ }
659
+ }
660
+
661
+ class InvalidRedirectUriException extends SSOOIDCServiceException {
662
+ constructor(opts) {
663
+ super({
664
+ name: "InvalidRedirectUriException",
665
+ $fault: "client",
666
+ ...opts
667
+ });
668
+ this.name = "InvalidRedirectUriException";
669
+ this.$fault = "client";
670
+ Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
671
+ this.error = opts.error;
672
+ this.error_description = opts.error_description;
673
+ }
674
+ }
675
+ var CreateTokenRequestFilterSensitiveLog = (obj) => ({
676
+ ...obj,
677
+ ...obj.clientSecret && { clientSecret: SENSITIVE_STRING },
678
+ ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
679
+ ...obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }
680
+ });
681
+ var CreateTokenResponseFilterSensitiveLog = (obj) => ({
682
+ ...obj,
683
+ ...obj.accessToken && { accessToken: SENSITIVE_STRING },
684
+ ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
685
+ ...obj.idToken && { idToken: SENSITIVE_STRING }
686
+ });
687
+ var CreateTokenWithIAMRequestFilterSensitiveLog = (obj) => ({
688
+ ...obj,
689
+ ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
690
+ ...obj.assertion && { assertion: SENSITIVE_STRING },
691
+ ...obj.subjectToken && { subjectToken: SENSITIVE_STRING },
692
+ ...obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }
693
+ });
694
+ var CreateTokenWithIAMResponseFilterSensitiveLog = (obj) => ({
695
+ ...obj,
696
+ ...obj.accessToken && { accessToken: SENSITIVE_STRING },
697
+ ...obj.refreshToken && { refreshToken: SENSITIVE_STRING },
698
+ ...obj.idToken && { idToken: SENSITIVE_STRING }
699
+ });
700
+ var RegisterClientResponseFilterSensitiveLog = (obj) => ({
701
+ ...obj,
702
+ ...obj.clientSecret && { clientSecret: SENSITIVE_STRING }
703
+ });
704
+ var StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
705
+ ...obj,
706
+ ...obj.clientSecret && { clientSecret: SENSITIVE_STRING }
707
+ });
708
+
709
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js
710
+ var core6 = __toESM(require_dist_cjs2(), 1);
711
+ var core7 = __toESM(require_dist_cjs(), 1);
712
+ var se_CreateTokenCommand = async (input, context) => {
713
+ const b2 = core7.requestBuilder(input, context);
714
+ const headers = {
715
+ "content-type": "application/json"
716
+ };
717
+ b2.bp("/token");
718
+ let body;
719
+ body = JSON.stringify(take(input, {
720
+ clientId: [],
721
+ clientSecret: [],
722
+ code: [],
723
+ codeVerifier: [],
724
+ deviceCode: [],
725
+ grantType: [],
726
+ redirectUri: [],
727
+ refreshToken: [],
728
+ scope: (_) => _json(_)
729
+ }));
730
+ b2.m("POST").h(headers).b(body);
731
+ return b2.build();
732
+ };
733
+ var se_CreateTokenWithIAMCommand = async (input, context) => {
734
+ const b2 = core7.requestBuilder(input, context);
735
+ const headers = {
736
+ "content-type": "application/json"
737
+ };
738
+ b2.bp("/token");
739
+ const query = map({
740
+ [_ai]: [, "t"]
741
+ });
742
+ let body;
743
+ body = JSON.stringify(take(input, {
744
+ assertion: [],
745
+ clientId: [],
746
+ code: [],
747
+ codeVerifier: [],
748
+ grantType: [],
749
+ redirectUri: [],
750
+ refreshToken: [],
751
+ requestedTokenType: [],
752
+ scope: (_) => _json(_),
753
+ subjectToken: [],
754
+ subjectTokenType: []
755
+ }));
756
+ b2.m("POST").h(headers).q(query).b(body);
757
+ return b2.build();
758
+ };
759
+ var se_RegisterClientCommand = async (input, context) => {
760
+ const b2 = core7.requestBuilder(input, context);
761
+ const headers = {
762
+ "content-type": "application/json"
763
+ };
764
+ b2.bp("/client/register");
765
+ let body;
766
+ body = JSON.stringify(take(input, {
767
+ clientName: [],
768
+ clientType: [],
769
+ entitledApplicationArn: [],
770
+ grantTypes: (_) => _json(_),
771
+ issuerUrl: [],
772
+ redirectUris: (_) => _json(_),
773
+ scopes: (_) => _json(_)
774
+ }));
775
+ b2.m("POST").h(headers).b(body);
776
+ return b2.build();
777
+ };
778
+ var se_StartDeviceAuthorizationCommand = async (input, context) => {
779
+ const b2 = core7.requestBuilder(input, context);
780
+ const headers = {
781
+ "content-type": "application/json"
782
+ };
783
+ b2.bp("/device_authorization");
784
+ let body;
785
+ body = JSON.stringify(take(input, {
786
+ clientId: [],
787
+ clientSecret: [],
788
+ startUrl: []
789
+ }));
790
+ b2.m("POST").h(headers).b(body);
791
+ return b2.build();
792
+ };
793
+ var de_CreateTokenCommand = async (output, context) => {
794
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
795
+ return de_CommandError(output, context);
796
+ }
797
+ const contents = map({
798
+ $metadata: deserializeMetadata(output)
799
+ });
800
+ const data = expectNonNull(expectObject(await core6.parseJsonBody(output.body, context)), "body");
801
+ const doc = take(data, {
802
+ accessToken: expectString,
803
+ expiresIn: expectInt32,
804
+ idToken: expectString,
805
+ refreshToken: expectString,
806
+ tokenType: expectString
807
+ });
808
+ Object.assign(contents, doc);
809
+ return contents;
810
+ };
811
+ var de_CreateTokenWithIAMCommand = async (output, context) => {
812
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const contents = map({
816
+ $metadata: deserializeMetadata(output)
817
+ });
818
+ const data = expectNonNull(expectObject(await core6.parseJsonBody(output.body, context)), "body");
819
+ const doc = take(data, {
820
+ accessToken: expectString,
821
+ expiresIn: expectInt32,
822
+ idToken: expectString,
823
+ issuedTokenType: expectString,
824
+ refreshToken: expectString,
825
+ scope: _json,
826
+ tokenType: expectString
827
+ });
828
+ Object.assign(contents, doc);
829
+ return contents;
830
+ };
831
+ var de_RegisterClientCommand = async (output, context) => {
832
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
833
+ return de_CommandError(output, context);
834
+ }
835
+ const contents = map({
836
+ $metadata: deserializeMetadata(output)
837
+ });
838
+ const data = expectNonNull(expectObject(await core6.parseJsonBody(output.body, context)), "body");
839
+ const doc = take(data, {
840
+ authorizationEndpoint: expectString,
841
+ clientId: expectString,
842
+ clientIdIssuedAt: expectLong,
843
+ clientSecret: expectString,
844
+ clientSecretExpiresAt: expectLong,
845
+ tokenEndpoint: expectString
846
+ });
847
+ Object.assign(contents, doc);
848
+ return contents;
849
+ };
850
+ var de_StartDeviceAuthorizationCommand = async (output, context) => {
851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
852
+ return de_CommandError(output, context);
853
+ }
854
+ const contents = map({
855
+ $metadata: deserializeMetadata(output)
856
+ });
857
+ const data = expectNonNull(expectObject(await core6.parseJsonBody(output.body, context)), "body");
858
+ const doc = take(data, {
859
+ deviceCode: expectString,
860
+ expiresIn: expectInt32,
861
+ interval: expectInt32,
862
+ userCode: expectString,
863
+ verificationUri: expectString,
864
+ verificationUriComplete: expectString
865
+ });
866
+ Object.assign(contents, doc);
867
+ return contents;
868
+ };
869
+ var de_CommandError = async (output, context) => {
870
+ const parsedOutput = {
871
+ ...output,
872
+ body: await core6.parseJsonErrorBody(output.body, context)
873
+ };
874
+ const errorCode = core6.loadRestJsonErrorCode(output, parsedOutput.body);
875
+ switch (errorCode) {
876
+ case "AccessDeniedException":
877
+ case "com.amazonaws.ssooidc#AccessDeniedException":
878
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
879
+ case "AuthorizationPendingException":
880
+ case "com.amazonaws.ssooidc#AuthorizationPendingException":
881
+ throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
882
+ case "ExpiredTokenException":
883
+ case "com.amazonaws.ssooidc#ExpiredTokenException":
884
+ throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
885
+ case "InternalServerException":
886
+ case "com.amazonaws.ssooidc#InternalServerException":
887
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
888
+ case "InvalidClientException":
889
+ case "com.amazonaws.ssooidc#InvalidClientException":
890
+ throw await de_InvalidClientExceptionRes(parsedOutput, context);
891
+ case "InvalidGrantException":
892
+ case "com.amazonaws.ssooidc#InvalidGrantException":
893
+ throw await de_InvalidGrantExceptionRes(parsedOutput, context);
894
+ case "InvalidRequestException":
895
+ case "com.amazonaws.ssooidc#InvalidRequestException":
896
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
897
+ case "InvalidScopeException":
898
+ case "com.amazonaws.ssooidc#InvalidScopeException":
899
+ throw await de_InvalidScopeExceptionRes(parsedOutput, context);
900
+ case "SlowDownException":
901
+ case "com.amazonaws.ssooidc#SlowDownException":
902
+ throw await de_SlowDownExceptionRes(parsedOutput, context);
903
+ case "UnauthorizedClientException":
904
+ case "com.amazonaws.ssooidc#UnauthorizedClientException":
905
+ throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
906
+ case "UnsupportedGrantTypeException":
907
+ case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
908
+ throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
909
+ case "InvalidRequestRegionException":
910
+ case "com.amazonaws.ssooidc#InvalidRequestRegionException":
911
+ throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
912
+ case "InvalidClientMetadataException":
913
+ case "com.amazonaws.ssooidc#InvalidClientMetadataException":
914
+ throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
915
+ case "InvalidRedirectUriException":
916
+ case "com.amazonaws.ssooidc#InvalidRedirectUriException":
917
+ throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context);
918
+ default:
919
+ const parsedBody = parsedOutput.body;
920
+ return throwDefaultError({
921
+ output,
922
+ parsedBody,
923
+ errorCode
924
+ });
925
+ }
926
+ };
927
+ var throwDefaultError = withBaseException(SSOOIDCServiceException);
928
+ var de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
929
+ const contents = map({});
930
+ const data = parsedOutput.body;
931
+ const doc = take(data, {
932
+ error: expectString,
933
+ error_description: expectString
934
+ });
935
+ Object.assign(contents, doc);
936
+ const exception = new AccessDeniedException({
937
+ $metadata: deserializeMetadata(parsedOutput),
938
+ ...contents
939
+ });
940
+ return decorateServiceException(exception, parsedOutput.body);
941
+ };
942
+ var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
943
+ const contents = map({});
944
+ const data = parsedOutput.body;
945
+ const doc = take(data, {
946
+ error: expectString,
947
+ error_description: expectString
948
+ });
949
+ Object.assign(contents, doc);
950
+ const exception = new AuthorizationPendingException({
951
+ $metadata: deserializeMetadata(parsedOutput),
952
+ ...contents
953
+ });
954
+ return decorateServiceException(exception, parsedOutput.body);
955
+ };
956
+ var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
957
+ const contents = map({});
958
+ const data = parsedOutput.body;
959
+ const doc = take(data, {
960
+ error: expectString,
961
+ error_description: expectString
962
+ });
963
+ Object.assign(contents, doc);
964
+ const exception = new ExpiredTokenException({
965
+ $metadata: deserializeMetadata(parsedOutput),
966
+ ...contents
967
+ });
968
+ return decorateServiceException(exception, parsedOutput.body);
969
+ };
970
+ var de_InternalServerExceptionRes = async (parsedOutput, context) => {
971
+ const contents = map({});
972
+ const data = parsedOutput.body;
973
+ const doc = take(data, {
974
+ error: expectString,
975
+ error_description: expectString
976
+ });
977
+ Object.assign(contents, doc);
978
+ const exception = new InternalServerException({
979
+ $metadata: deserializeMetadata(parsedOutput),
980
+ ...contents
981
+ });
982
+ return decorateServiceException(exception, parsedOutput.body);
983
+ };
984
+ var de_InvalidClientExceptionRes = async (parsedOutput, context) => {
985
+ const contents = map({});
986
+ const data = parsedOutput.body;
987
+ const doc = take(data, {
988
+ error: expectString,
989
+ error_description: expectString
990
+ });
991
+ Object.assign(contents, doc);
992
+ const exception = new InvalidClientException({
993
+ $metadata: deserializeMetadata(parsedOutput),
994
+ ...contents
995
+ });
996
+ return decorateServiceException(exception, parsedOutput.body);
997
+ };
998
+ var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
999
+ const contents = map({});
1000
+ const data = parsedOutput.body;
1001
+ const doc = take(data, {
1002
+ error: expectString,
1003
+ error_description: expectString
1004
+ });
1005
+ Object.assign(contents, doc);
1006
+ const exception = new InvalidClientMetadataException({
1007
+ $metadata: deserializeMetadata(parsedOutput),
1008
+ ...contents
1009
+ });
1010
+ return decorateServiceException(exception, parsedOutput.body);
1011
+ };
1012
+ var de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
1013
+ const contents = map({});
1014
+ const data = parsedOutput.body;
1015
+ const doc = take(data, {
1016
+ error: expectString,
1017
+ error_description: expectString
1018
+ });
1019
+ Object.assign(contents, doc);
1020
+ const exception = new InvalidGrantException({
1021
+ $metadata: deserializeMetadata(parsedOutput),
1022
+ ...contents
1023
+ });
1024
+ return decorateServiceException(exception, parsedOutput.body);
1025
+ };
1026
+ var de_InvalidRedirectUriExceptionRes = async (parsedOutput, context) => {
1027
+ const contents = map({});
1028
+ const data = parsedOutput.body;
1029
+ const doc = take(data, {
1030
+ error: expectString,
1031
+ error_description: expectString
1032
+ });
1033
+ Object.assign(contents, doc);
1034
+ const exception = new InvalidRedirectUriException({
1035
+ $metadata: deserializeMetadata(parsedOutput),
1036
+ ...contents
1037
+ });
1038
+ return decorateServiceException(exception, parsedOutput.body);
1039
+ };
1040
+ var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1041
+ const contents = map({});
1042
+ const data = parsedOutput.body;
1043
+ const doc = take(data, {
1044
+ error: expectString,
1045
+ error_description: expectString
1046
+ });
1047
+ Object.assign(contents, doc);
1048
+ const exception = new InvalidRequestException({
1049
+ $metadata: deserializeMetadata(parsedOutput),
1050
+ ...contents
1051
+ });
1052
+ return decorateServiceException(exception, parsedOutput.body);
1053
+ };
1054
+ var de_InvalidRequestRegionExceptionRes = async (parsedOutput, context) => {
1055
+ const contents = map({});
1056
+ const data = parsedOutput.body;
1057
+ const doc = take(data, {
1058
+ endpoint: expectString,
1059
+ error: expectString,
1060
+ error_description: expectString,
1061
+ region: expectString
1062
+ });
1063
+ Object.assign(contents, doc);
1064
+ const exception = new InvalidRequestRegionException({
1065
+ $metadata: deserializeMetadata(parsedOutput),
1066
+ ...contents
1067
+ });
1068
+ return decorateServiceException(exception, parsedOutput.body);
1069
+ };
1070
+ var de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
1071
+ const contents = map({});
1072
+ const data = parsedOutput.body;
1073
+ const doc = take(data, {
1074
+ error: expectString,
1075
+ error_description: expectString
1076
+ });
1077
+ Object.assign(contents, doc);
1078
+ const exception = new InvalidScopeException({
1079
+ $metadata: deserializeMetadata(parsedOutput),
1080
+ ...contents
1081
+ });
1082
+ return decorateServiceException(exception, parsedOutput.body);
1083
+ };
1084
+ var de_SlowDownExceptionRes = async (parsedOutput, context) => {
1085
+ const contents = map({});
1086
+ const data = parsedOutput.body;
1087
+ const doc = take(data, {
1088
+ error: expectString,
1089
+ error_description: expectString
1090
+ });
1091
+ Object.assign(contents, doc);
1092
+ const exception = new SlowDownException({
1093
+ $metadata: deserializeMetadata(parsedOutput),
1094
+ ...contents
1095
+ });
1096
+ return decorateServiceException(exception, parsedOutput.body);
1097
+ };
1098
+ var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
1099
+ const contents = map({});
1100
+ const data = parsedOutput.body;
1101
+ const doc = take(data, {
1102
+ error: expectString,
1103
+ error_description: expectString
1104
+ });
1105
+ Object.assign(contents, doc);
1106
+ const exception = new UnauthorizedClientException({
1107
+ $metadata: deserializeMetadata(parsedOutput),
1108
+ ...contents
1109
+ });
1110
+ return decorateServiceException(exception, parsedOutput.body);
1111
+ };
1112
+ var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
1113
+ const contents = map({});
1114
+ const data = parsedOutput.body;
1115
+ const doc = take(data, {
1116
+ error: expectString,
1117
+ error_description: expectString
1118
+ });
1119
+ Object.assign(contents, doc);
1120
+ const exception = new UnsupportedGrantTypeException({
1121
+ $metadata: deserializeMetadata(parsedOutput),
1122
+ ...contents
1123
+ });
1124
+ return decorateServiceException(exception, parsedOutput.body);
1125
+ };
1126
+ var deserializeMetadata = (output) => ({
1127
+ httpStatusCode: output.statusCode,
1128
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1129
+ extendedRequestId: output.headers["x-amz-id-2"],
1130
+ cfId: output.headers["x-amz-cf-id"]
1131
+ });
1132
+ var _ai = "aws_iam";
1133
+
1134
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js
1135
+ class CreateTokenCommand extends Command.classBuilder().ep({
1136
+ ...commonParams
1137
+ }).m(function(Command2, cs, config, o2) {
1138
+ return [
1139
+ getSerdePlugin(config, this.serialize, this.deserialize),
1140
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
1141
+ ];
1142
+ }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
1143
+ }
1144
+
1145
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js
1146
+ class CreateTokenWithIAMCommand extends Command.classBuilder().ep({
1147
+ ...commonParams
1148
+ }).m(function(Command2, cs, config, o2) {
1149
+ return [
1150
+ getSerdePlugin(config, this.serialize, this.deserialize),
1151
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
1152
+ ];
1153
+ }).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() {
1154
+ }
1155
+
1156
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js
1157
+ class RegisterClientCommand extends Command.classBuilder().ep({
1158
+ ...commonParams
1159
+ }).m(function(Command2, cs, config, o2) {
1160
+ return [
1161
+ getSerdePlugin(config, this.serialize, this.deserialize),
1162
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
1163
+ ];
1164
+ }).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(undefined, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() {
1165
+ }
1166
+
1167
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js
1168
+ class StartDeviceAuthorizationCommand extends Command.classBuilder().ep({
1169
+ ...commonParams
1170
+ }).m(function(Command2, cs, config, o2) {
1171
+ return [
1172
+ getSerdePlugin(config, this.serialize, this.deserialize),
1173
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
1174
+ ];
1175
+ }).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, undefined).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() {
1176
+ }
1177
+
1178
+ // ../../../../node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js
1179
+ var commands = {
1180
+ CreateTokenCommand,
1181
+ CreateTokenWithIAMCommand,
1182
+ RegisterClientCommand,
1183
+ StartDeviceAuthorizationCommand
1184
+ };
1185
+
1186
+ class SSOOIDC extends SSOOIDCClient {
1187
+ }
1188
+ createAggregatedClient(commands, SSOOIDC);
1189
+ export {
1190
+ Client as __Client,
1191
+ UnsupportedGrantTypeException,
1192
+ UnauthorizedClientException,
1193
+ StartDeviceAuthorizationRequestFilterSensitiveLog,
1194
+ StartDeviceAuthorizationCommand,
1195
+ SlowDownException,
1196
+ SSOOIDCServiceException,
1197
+ SSOOIDCClient,
1198
+ SSOOIDC,
1199
+ RegisterClientResponseFilterSensitiveLog,
1200
+ RegisterClientCommand,
1201
+ InvalidScopeException,
1202
+ InvalidRequestRegionException,
1203
+ InvalidRequestException,
1204
+ InvalidRedirectUriException,
1205
+ InvalidGrantException,
1206
+ InvalidClientMetadataException,
1207
+ InvalidClientException,
1208
+ InternalServerException,
1209
+ ExpiredTokenException,
1210
+ CreateTokenWithIAMResponseFilterSensitiveLog,
1211
+ CreateTokenWithIAMRequestFilterSensitiveLog,
1212
+ CreateTokenWithIAMCommand,
1213
+ CreateTokenResponseFilterSensitiveLog,
1214
+ CreateTokenRequestFilterSensitiveLog,
1215
+ CreateTokenCommand,
1216
+ AuthorizationPendingException,
1217
+ AccessDeniedException,
1218
+ Command as $Command
1219
+ };
1220
+
1221
+ //# debugId=87B49BD2E690215E64756E2164756E21
1222
+ //# sourceMappingURL=chunk-03ckp0m6.js.map