@stacksjs/actions 0.70.13 → 0.70.14

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 (29) hide show
  1. package/dist/build.js +9 -9
  2. package/dist/{chunk-hcfsx7e0.js → chunk-4en18v46.js} +17 -21
  3. package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
  4. package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
  5. package/dist/{chunk-h46e5ha3.js → chunk-8fx9wfmd.js} +70 -71
  6. package/dist/{chunk-f48dj1dk.js → chunk-8pskhtbf.js} +3 -3
  7. package/dist/{chunk-hd6fdt5s.js → chunk-9fyrxvr0.js} +5 -7
  8. package/dist/{chunk-6vn0j49q.js → chunk-9vr8gng2.js} +12 -15
  9. package/dist/{chunk-ghp9nh6b.js → chunk-arh0hbb9.js} +25 -34
  10. package/dist/{chunk-a7k3cdby.js → chunk-at51p2va.js} +1 -1
  11. package/dist/{chunk-q3gghmwn.js → chunk-b63wvdr0.js} +19 -19
  12. package/dist/{chunk-xt9exr2c.js → chunk-dkcsykt8.js} +6 -25
  13. package/dist/{chunk-ad9b7jvj.js → chunk-dwkdjy0f.js} +6 -7
  14. package/dist/{chunk-f1cxwjkf.js → chunk-kthq483f.js} +5 -6
  15. package/dist/{chunk-030apzv1.js → chunk-nmb4zt0g.js} +9 -9
  16. package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
  17. package/dist/{chunk-gdzs9jf4.js → chunk-ry125mbz.js} +6 -7
  18. package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
  19. package/dist/{chunk-hcra1987.js → chunk-vd0p1aye.js} +9 -9
  20. package/dist/{chunk-kbw02372.js → chunk-ve9vn4xg.js} +33 -36
  21. package/dist/{chunk-0crtxf8d.js → chunk-xeyhm37p.js} +158 -21
  22. package/dist/chunk-zzerxbrm.js +107 -0
  23. package/dist/database/seed.js +8 -8
  24. package/dist/generate/index.js +9 -9
  25. package/dist/index.js +9 -9
  26. package/dist/release.js +9 -9
  27. package/dist/upgrade.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunk-2m04vhea.js +0 -145
@@ -6,37 +6,32 @@ import {
6
6
  loadSsoSessionData,
7
7
  parseKnownFiles
8
8
  } from "./chunk-bf8bq8pc.js";
9
+ import {
10
+ CredentialsProviderError,
11
+ TokenProviderError
12
+ } from "./chunk-zzerxbrm.js";
9
13
  import {
10
14
  require_client
11
15
  } from "./chunk-frw3va9v.js";
12
16
  import"./chunk-saqpg5nd.js";
13
- import {
14
- require_dist_cjs
15
- } from "./chunk-2m04vhea.js";
16
17
  import {
17
18
  __require,
18
19
  __toESM
19
20
  } from "./chunk-9v6qtbez.js";
20
21
 
21
- // ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
22
- var import_property_provider6 = __toESM(require_dist_cjs(), 1);
23
-
24
22
  // ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
25
23
  var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
26
24
 
27
25
  // ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
28
26
  var import_client = __toESM(require_client(), 1);
29
27
 
30
- // ../../../../node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
31
- var import_property_provider3 = __toESM(require_dist_cjs(), 1);
32
-
33
28
  // ../../../../node_modules/@aws-sdk/token-providers/dist-es/constants.js
34
29
  var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
35
30
  var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
36
31
 
37
32
  // ../../../../node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
38
33
  var getSsoOidcClient = async (ssoRegion, init = {}) => {
39
- const { SSOOIDCClient } = await import("./chunk-ad9b7jvj.js");
34
+ const { SSOOIDCClient } = await import("./chunk-dwkdjy0f.js");
40
35
  const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
41
36
  region: ssoRegion ?? init.clientConfig?.region,
42
37
  logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
@@ -46,7 +41,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}) => {
46
41
 
47
42
  // ../../../../node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
48
43
  var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
49
- const { CreateTokenCommand } = await import("./chunk-ad9b7jvj.js");
44
+ const { CreateTokenCommand } = await import("./chunk-dwkdjy0f.js");
50
45
  const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
51
46
  return ssoOidcClient.send(new CreateTokenCommand({
52
47
  clientId: ssoToken.clientId,
@@ -57,18 +52,16 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
57
52
  };
58
53
 
59
54
  // ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
60
- var import_property_provider = __toESM(require_dist_cjs(), 1);
61
55
  var validateTokenExpiry = (token) => {
62
56
  if (token.expiration && token.expiration.getTime() < Date.now()) {
63
- throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
57
+ throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
64
58
  }
65
59
  };
66
60
 
67
61
  // ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
68
- var import_property_provider2 = __toESM(require_dist_cjs(), 1);
69
62
  var validateTokenKey = (key, value, forRefresh = false) => {
70
63
  if (typeof value === "undefined") {
71
- throw new import_property_provider2.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
64
+ throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
72
65
  }
73
66
  };
74
67
 
@@ -98,19 +91,19 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
98
91
  });
99
92
  const profile = profiles[profileName];
100
93
  if (!profile) {
101
- throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
94
+ throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
102
95
  } else if (!profile["sso_session"]) {
103
- throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
96
+ throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
104
97
  }
105
98
  const ssoSessionName = profile["sso_session"];
106
99
  const ssoSessions = await loadSsoSessionData(init);
107
100
  const ssoSession = ssoSessions[ssoSessionName];
108
101
  if (!ssoSession) {
109
- throw new import_property_provider3.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
102
+ throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
110
103
  }
111
104
  for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
112
105
  if (!ssoSession[ssoSessionRequiredKey]) {
113
- throw new import_property_provider3.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
106
+ throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
114
107
  }
115
108
  }
116
109
  const ssoStartUrl = ssoSession["sso_start_url"];
@@ -119,7 +112,7 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
119
112
  try {
120
113
  ssoToken = await getSSOTokenFromFile(ssoSessionName);
121
114
  } catch (e) {
122
- throw new import_property_provider3.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
115
+ throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
123
116
  }
124
117
  validateTokenKey("accessToken", ssoToken.accessToken);
125
118
  validateTokenKey("expiresAt", ssoToken.expiresAt);
@@ -160,7 +153,6 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
160
153
  };
161
154
 
162
155
  // ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
163
- var import_property_provider4 = __toESM(require_dist_cjs(), 1);
164
156
  var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
165
157
  var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger }) => {
166
158
  let token;
@@ -173,7 +165,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
173
165
  expiresAt: new Date(_token.expiration).toISOString()
174
166
  };
175
167
  } catch (e) {
176
- throw new import_property_provider4.CredentialsProviderError(e.message, {
168
+ throw new CredentialsProviderError(e.message, {
177
169
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
178
170
  logger
179
171
  });
@@ -182,20 +174,20 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
182
174
  try {
183
175
  token = await getSSOTokenFromFile(ssoStartUrl);
184
176
  } catch (e) {
185
- throw new import_property_provider4.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
177
+ throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
186
178
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
187
179
  logger
188
180
  });
189
181
  }
190
182
  }
191
183
  if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
192
- throw new import_property_provider4.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
184
+ throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
193
185
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
194
186
  logger
195
187
  });
196
188
  }
197
189
  const { accessToken } = token;
198
- const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-q3gghmwn.js");
190
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-b63wvdr0.js");
199
191
  const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
200
192
  logger: clientConfig?.logger ?? parentClientConfig?.logger,
201
193
  region: clientConfig?.region ?? ssoRegion
@@ -208,14 +200,14 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
208
200
  accessToken
209
201
  }));
210
202
  } catch (e) {
211
- throw new import_property_provider4.CredentialsProviderError(e, {
203
+ throw new CredentialsProviderError(e, {
212
204
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
213
205
  logger
214
206
  });
215
207
  }
216
208
  const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
217
209
  if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
218
- throw new import_property_provider4.CredentialsProviderError("SSO returns an invalid temporary credential.", {
210
+ throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
219
211
  tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
220
212
  logger
221
213
  });
@@ -237,11 +229,10 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
237
229
  };
238
230
 
239
231
  // ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
240
- var import_property_provider5 = __toESM(require_dist_cjs(), 1);
241
232
  var validateSsoProfile = (profile, logger) => {
242
233
  const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
243
234
  if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
244
- throw new import_property_provider5.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
235
+ throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
245
236
  Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
246
237
  }
247
238
  return profile;
@@ -259,10 +250,10 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
259
250
  const profiles = await parseKnownFiles(init);
260
251
  const profile = profiles[profileName];
261
252
  if (!profile) {
262
- throw new import_property_provider6.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
253
+ throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
263
254
  }
264
255
  if (!isSsoProfile(profile)) {
265
- throw new import_property_provider6.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
256
+ throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
266
257
  logger: init.logger
267
258
  });
268
259
  }
@@ -271,13 +262,13 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
271
262
  const session = ssoSessions[profile.sso_session];
272
263
  const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
273
264
  if (ssoRegion && ssoRegion !== session.sso_region) {
274
- throw new import_property_provider6.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
265
+ throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
275
266
  tryNextLink: false,
276
267
  logger: init.logger
277
268
  });
278
269
  }
279
270
  if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
280
- throw new import_property_provider6.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
271
+ throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
281
272
  tryNextLink: false,
282
273
  logger: init.logger
283
274
  });
@@ -298,7 +289,7 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
298
289
  profile: profileName
299
290
  });
300
291
  } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
301
- throw new import_property_provider6.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
292
+ throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
302
293
  } else {
303
294
  return resolveSSOCredentials({
304
295
  ssoStartUrl,
@@ -2263,4 +2263,4 @@ var require_protocols = __commonJS((exports, module) => {
2263
2263
  };
2264
2264
  });
2265
2265
 
2266
- export { require_dist_cjs2 as require_dist_cjs, require_dist_cjs6 as require_dist_cjs1, require_dist_cjs7 as require_dist_cjs2, require_dist_cjs8 as require_dist_cjs3, require_dist_cjs9 as require_dist_cjs4, require_dist_cjs3 as require_dist_cjs5, require_dist_cjs5 as require_dist_cjs6, require_dist_cjs11 as require_dist_cjs7, require_dist_cjs12 as require_dist_cjs8, require_protocols };
2266
+ export { require_dist_cjs2 as require_dist_cjs, require_dist_cjs6 as require_dist_cjs1, require_dist_cjs7 as require_dist_cjs2, require_dist_cjs8 as require_dist_cjs3, require_dist_cjs9 as require_dist_cjs4, require_dist_cjs3 as require_dist_cjs5, require_dist_cjs4 as require_dist_cjs6, require_dist_cjs5 as require_dist_cjs7, require_dist_cjs11 as require_dist_cjs8, require_dist_cjs12 as require_dist_cjs9, require_protocols };
@@ -24,7 +24,9 @@ import {
24
24
  getRecursionDetectionPlugin,
25
25
  getRetryPlugin,
26
26
  getSerdePlugin,
27
+ getSmithyContext,
27
28
  getUserAgentPlugin,
29
+ normalizeProvider,
28
30
  resolveAwsRegionExtensionConfiguration,
29
31
  resolveDefaultsModeConfig,
30
32
  resolveEndpoint,
@@ -35,11 +37,11 @@ import {
35
37
  resolveUserAgentConfig,
36
38
  toBase64,
37
39
  toUtf8
38
- } from "./chunk-kbw02372.js";
40
+ } from "./chunk-ve9vn4xg.js";
39
41
  import {
40
42
  loadConfig,
41
43
  parseUrl
42
- } from "./chunk-bh25aaf7.js";
44
+ } from "./chunk-7s5qcjkt.js";
43
45
  import"./chunk-bf8bq8pc.js";
44
46
  import {
45
47
  Client,
@@ -64,30 +66,28 @@ import {
64
66
  streamCollector,
65
67
  take,
66
68
  withBaseException
67
- } from "./chunk-xt9exr2c.js";
69
+ } from "./chunk-dkcsykt8.js";
70
+ import"./chunk-zzerxbrm.js";
68
71
  import {
69
- require_dist_cjs,
70
- require_dist_cjs2,
71
- require_dist_cjs4 as require_dist_cjs3
72
- } from "./chunk-0crtxf8d.js";
73
- import"./chunk-a7k3cdby.js";
72
+ require_dist_cjs2 as require_dist_cjs,
73
+ require_dist_cjs5 as require_dist_cjs2
74
+ } from "./chunk-xeyhm37p.js";
75
+ import"./chunk-at51p2va.js";
74
76
  import"./chunk-frw3va9v.js";
75
77
  import"./chunk-saqpg5nd.js";
76
- import"./chunk-2m04vhea.js";
77
78
  import {
78
79
  __toESM
79
80
  } from "./chunk-9v6qtbez.js";
80
81
 
81
82
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
82
- var import_core5 = __toESM(require_dist_cjs2(), 1);
83
+ var import_core5 = __toESM(require_dist_cjs(), 1);
83
84
 
84
85
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
85
- var import_core = __toESM(require_dist_cjs3(), 1);
86
- var import_util_middleware = __toESM(require_dist_cjs(), 1);
86
+ var import_core = __toESM(require_dist_cjs2(), 1);
87
87
  var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
88
88
  return {
89
- operation: import_util_middleware.getSmithyContext(context).operation,
90
- region: await import_util_middleware.normalizeProvider(config.region)() || (() => {
89
+ operation: getSmithyContext(context).operation,
90
+ region: await normalizeProvider(config.region)() || (() => {
91
91
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
92
92
  })()
93
93
  };
@@ -257,11 +257,11 @@ var package_default = {
257
257
  };
258
258
 
259
259
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
260
- var import_core4 = __toESM(require_dist_cjs3(), 1);
260
+ var import_core4 = __toESM(require_dist_cjs2(), 1);
261
261
 
262
262
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
263
- var import_core2 = __toESM(require_dist_cjs3(), 1);
264
- var import_core3 = __toESM(require_dist_cjs2(), 1);
263
+ var import_core2 = __toESM(require_dist_cjs2(), 1);
264
+ var import_core3 = __toESM(require_dist_cjs(), 1);
265
265
 
266
266
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
267
267
  var u = "required";
@@ -520,8 +520,8 @@ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
520
520
  });
521
521
 
522
522
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
523
- var import_core6 = __toESM(require_dist_cjs3(), 1);
524
- var import_core7 = __toESM(require_dist_cjs2(), 1);
523
+ var import_core6 = __toESM(require_dist_cjs2(), 1);
524
+ var import_core7 = __toESM(require_dist_cjs(), 1);
525
525
  var se_GetRoleCredentialsCommand = async (input, context) => {
526
526
  const b2 = import_core7.requestBuilder(input, context);
527
527
  const headers = map({}, isSerializableHeaderValue, {
@@ -1,7 +1,7 @@
1
1
  import {
2
- require_dist_cjs5 as require_dist_cjs2,
2
+ require_dist_cjs6 as require_dist_cjs2,
3
3
  require_protocols
4
- } from "./chunk-a7k3cdby.js";
4
+ } from "./chunk-at51p2va.js";
5
5
  import {
6
6
  require_dist_cjs
7
7
  } from "./chunk-saqpg5nd.js";
@@ -1051,29 +1051,8 @@ class HttpResponse {
1051
1051
  return typeof resp.statusCode === "number" && typeof resp.headers === "object";
1052
1052
  }
1053
1053
  }
1054
- // ../../../../node_modules/@smithy/querystring-builder/dist-es/index.js
1055
- var import_util_uri_escape = __toESM(require_dist_cjs2(), 1);
1056
- function buildQueryString(query) {
1057
- const parts = [];
1058
- for (let key of Object.keys(query).sort()) {
1059
- const value = query[key];
1060
- key = import_util_uri_escape.escapeUri(key);
1061
- if (Array.isArray(value)) {
1062
- for (let i = 0, iLen = value.length;i < iLen; i++) {
1063
- parts.push(`${key}=${import_util_uri_escape.escapeUri(value[i])}`);
1064
- }
1065
- } else {
1066
- let qsEntry = key;
1067
- if (value || typeof value === "string") {
1068
- qsEntry += `=${import_util_uri_escape.escapeUri(value)}`;
1069
- }
1070
- parts.push(qsEntry);
1071
- }
1072
- }
1073
- return parts.join("&");
1074
- }
1075
-
1076
1054
  // ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
1055
+ var import_querystring_builder = __toESM(require_dist_cjs2(), 1);
1077
1056
  import { Agent as hAgent, request as hRequest } from "node:http";
1078
1057
  import { Agent as hsAgent, request as hsRequest } from "node:https";
1079
1058
 
@@ -1334,7 +1313,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1334
1313
  timeouts.push(timing.setTimeout(() => {
1335
1314
  this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, this.config.logger);
1336
1315
  }, this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2000) + (this.config.connectionTimeout ?? 1000)));
1337
- const queryString = buildQueryString(request.query || {});
1316
+ const queryString = import_querystring_builder.buildQueryString(request.query || {});
1338
1317
  let auth = undefined;
1339
1318
  if (request.username != null || request.password != null) {
1340
1319
  const username = request.username ?? "";
@@ -1423,6 +1402,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1423
1402
  return this.config ?? {};
1424
1403
  }
1425
1404
  }
1405
+ // ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js
1406
+ var import_querystring_builder2 = __toESM(require_dist_cjs2(), 1);
1426
1407
  // ../../../../node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
1427
1408
  import { Writable } from "node:stream";
1428
1409
 
@@ -19,24 +19,23 @@ import {
19
19
  require_dist_cjs8 as require_dist_cjs18,
20
20
  require_dist_cjs9 as require_dist_cjs19,
21
21
  require_package
22
- } from "./chunk-hd6fdt5s.js";
22
+ } from "./chunk-9fyrxvr0.js";
23
23
  import {
24
24
  require_dist_cjs,
25
25
  require_dist_cjs1 as require_dist_cjs2,
26
26
  require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs3 as require_dist_cjs8,
28
- require_dist_cjs4 as require_dist_cjs9,
27
+ require_dist_cjs4 as require_dist_cjs8,
28
+ require_dist_cjs5 as require_dist_cjs9,
29
29
  require_tslib
30
- } from "./chunk-0crtxf8d.js";
30
+ } from "./chunk-xeyhm37p.js";
31
31
  import {
32
32
  require_dist_cjs as require_dist_cjs3,
33
33
  require_dist_cjs3 as require_dist_cjs4,
34
34
  require_dist_cjs4 as require_dist_cjs5,
35
- require_dist_cjs6
36
- } from "./chunk-a7k3cdby.js";
35
+ require_dist_cjs7 as require_dist_cjs6
36
+ } from "./chunk-at51p2va.js";
37
37
  import"./chunk-frw3va9v.js";
38
38
  import"./chunk-saqpg5nd.js";
39
- import"./chunk-2m04vhea.js";
40
39
  import {
41
40
  __commonJS
42
41
  } from "./chunk-9v6qtbez.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ CredentialsProviderError
4
+ } from "./chunk-zzerxbrm.js";
2
5
  import {
3
6
  require_client
4
7
  } from "./chunk-frw3va9v.js";
5
- import {
6
- require_dist_cjs
7
- } from "./chunk-2m04vhea.js";
8
8
  import {
9
9
  __require,
10
10
  __toESM
@@ -12,7 +12,6 @@ import {
12
12
 
13
13
  // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
14
14
  var import_client = __toESM(require_client(), 1);
15
- var import_property_provider = __toESM(require_dist_cjs(), 1);
16
15
  import { readFileSync } from "node:fs";
17
16
 
18
17
  // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
@@ -21,7 +20,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
21
20
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
22
21
  let { roleAssumerWithWebIdentity } = init;
23
22
  if (!roleAssumerWithWebIdentity) {
24
- const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-gdzs9jf4.js");
23
+ const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-ry125mbz.js");
25
24
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
26
25
  ...init.clientConfig,
27
26
  credentialProviderLogger: init.logger,
@@ -52,7 +51,7 @@ var fromTokenFile = (init = {}) => async () => {
52
51
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
53
52
  const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
54
53
  if (!webIdentityTokenFile || !roleArn) {
55
- throw new import_property_provider.CredentialsProviderError("Web identity configuration not specified", {
54
+ throw new CredentialsProviderError("Web identity configuration not specified", {
56
55
  logger: init.logger
57
56
  });
58
57
  }
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-f48dj1dk.js";
5
- import"./chunk-h46e5ha3.js";
4
+ } from "./chunk-8pskhtbf.js";
5
+ import"./chunk-8fx9wfmd.js";
6
6
  import"./chunk-mdj7x1vs.js";
7
7
  import"./chunk-p0c688mg.js";
8
- import"./chunk-8dsect0a.js";
8
+ import"./chunk-qkm8e752.js";
9
9
  import"./chunk-a13x0e43.js";
10
10
  import"./chunk-mdqphqep.js";
11
11
  import"./chunk-qhh0v93n.js";
12
- import"./chunk-kbw02372.js";
13
- import"./chunk-bh25aaf7.js";
12
+ import"./chunk-ve9vn4xg.js";
13
+ import"./chunk-7s5qcjkt.js";
14
14
  import"./chunk-bf8bq8pc.js";
15
- import"./chunk-xt9exr2c.js";
16
- import"./chunk-0crtxf8d.js";
17
- import"./chunk-a7k3cdby.js";
15
+ import"./chunk-dkcsykt8.js";
16
+ import"./chunk-zzerxbrm.js";
17
+ import"./chunk-xeyhm37p.js";
18
+ import"./chunk-at51p2va.js";
18
19
  import"./chunk-frw3va9v.js";
19
20
  import"./chunk-saqpg5nd.js";
20
- import"./chunk-2m04vhea.js";
21
21
  import"./chunk-2dvnt46s.js";
22
22
  import"./chunk-w6fdq4hk.js";
23
23
  import"./chunk-wkwtsvym.js";
@@ -1,17 +1,16 @@
1
1
  // @bun
2
+ import {
3
+ CredentialsProviderError
4
+ } from "./chunk-zzerxbrm.js";
2
5
  import {
3
6
  require_client
4
7
  } from "./chunk-frw3va9v.js";
5
- import {
6
- require_dist_cjs
7
- } from "./chunk-2m04vhea.js";
8
8
  import {
9
9
  __toESM
10
10
  } from "./chunk-9v6qtbez.js";
11
11
 
12
12
  // ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
13
13
  var import_client = __toESM(require_client(), 1);
14
- var import_property_provider = __toESM(require_dist_cjs(), 1);
15
14
  var ENV_KEY = "AWS_ACCESS_KEY_ID";
16
15
  var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
17
16
  var ENV_SESSION = "AWS_SESSION_TOKEN";
@@ -38,7 +37,7 @@ var fromEnv = (init) => async () => {
38
37
  import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
39
38
  return credentials;
40
39
  }
41
- throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
40
+ throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
42
41
  };
43
42
  export {
44
43
  fromEnv,
@@ -19,26 +19,25 @@ import {
19
19
  require_dist_cjs8 as require_dist_cjs18,
20
20
  require_dist_cjs9 as require_dist_cjs19,
21
21
  require_package
22
- } from "./chunk-hd6fdt5s.js";
22
+ } from "./chunk-9fyrxvr0.js";
23
23
  import {
24
24
  require_dist_cjs,
25
25
  require_dist_cjs1 as require_dist_cjs2,
26
26
  require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs3 as require_dist_cjs8,
28
- require_dist_cjs4 as require_dist_cjs9,
27
+ require_dist_cjs4 as require_dist_cjs8,
28
+ require_dist_cjs5 as require_dist_cjs9,
29
29
  require_tslib
30
- } from "./chunk-0crtxf8d.js";
30
+ } from "./chunk-xeyhm37p.js";
31
31
  import {
32
32
  require_dist_cjs as require_dist_cjs3,
33
33
  require_dist_cjs3 as require_dist_cjs4,
34
34
  require_dist_cjs4 as require_dist_cjs5,
35
- require_dist_cjs6
36
- } from "./chunk-a7k3cdby.js";
35
+ require_dist_cjs7 as require_dist_cjs6
36
+ } from "./chunk-at51p2va.js";
37
37
  import {
38
38
  require_client
39
39
  } from "./chunk-frw3va9v.js";
40
40
  import"./chunk-saqpg5nd.js";
41
- import"./chunk-2m04vhea.js";
42
41
  import {
43
42
  __commonJS
44
43
  } from "./chunk-9v6qtbez.js";
@@ -2,22 +2,19 @@
2
2
  import {
3
3
  loadConfig,
4
4
  parseUrl
5
- } from "./chunk-bh25aaf7.js";
5
+ } from "./chunk-7s5qcjkt.js";
6
6
  import"./chunk-bf8bq8pc.js";
7
- import"./chunk-saqpg5nd.js";
8
- import {
9
- require_dist_cjs
10
- } from "./chunk-2m04vhea.js";
11
7
  import {
12
- __toESM
13
- } from "./chunk-9v6qtbez.js";
8
+ CredentialsProviderError,
9
+ ProviderError
10
+ } from "./chunk-zzerxbrm.js";
11
+ import"./chunk-saqpg5nd.js";
12
+ import"./chunk-9v6qtbez.js";
14
13
 
15
14
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
16
- var import_property_provider2 = __toESM(require_dist_cjs(), 1);
17
15
  import { parse } from "node:url";
18
16
 
19
17
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
20
- var import_property_provider = __toESM(require_dist_cjs(), 1);
21
18
  import { Buffer } from "node:buffer";
22
19
  import { request } from "node:http";
23
20
  function httpRequest(options) {
@@ -28,17 +25,17 @@ function httpRequest(options) {
28
25
  hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
29
26
  });
30
27
  req.on("error", (err) => {
31
- reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
28
+ reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
32
29
  req.destroy();
33
30
  });
34
31
  req.on("timeout", () => {
35
- reject(new import_property_provider.ProviderError("TimeoutError from instance metadata service"));
32
+ reject(new ProviderError("TimeoutError from instance metadata service"));
36
33
  req.destroy();
37
34
  });
38
35
  req.on("response", (res) => {
39
36
  const { statusCode = 400 } = res;
40
37
  if (statusCode < 200 || 300 <= statusCode) {
41
- reject(Object.assign(new import_property_provider.ProviderError("Error response received from instance metadata service"), { statusCode }));
38
+ reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
42
39
  req.destroy();
43
40
  }
44
41
  const chunks = [];
@@ -88,7 +85,7 @@ var fromContainerMetadata = (init = {}) => {
88
85
  const requestOptions = await getCmdsUri({ logger: init.logger });
89
86
  const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
90
87
  if (!isImdsCredentials(credsResponse)) {
91
- throw new import_property_provider2.CredentialsProviderError("Invalid response received from instance metadata service.", {
88
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
92
89
  logger: init.logger
93
90
  });
94
91
  }
@@ -127,13 +124,13 @@ var getCmdsUri = async ({ logger }) => {
127
124
  if (process.env[ENV_CMDS_FULL_URI]) {
128
125
  const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
129
126
  if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
130
- throw new import_property_provider2.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
127
+ throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
131
128
  tryNextLink: false,
132
129
  logger
133
130
  });
134
131
  }
135
132
  if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
136
- throw new import_property_provider2.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
133
+ throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
137
134
  tryNextLink: false,
138
135
  logger
139
136
  });
@@ -143,18 +140,13 @@ var getCmdsUri = async ({ logger }) => {
143
140
  port: parsed.port ? parseInt(parsed.port, 10) : undefined
144
141
  };
145
142
  }
146
- throw new import_property_provider2.CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
143
+ throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
147
144
  tryNextLink: false,
148
145
  logger
149
146
  });
150
147
  };
151
- // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
152
- var import_property_provider4 = __toESM(require_dist_cjs(), 1);
153
-
154
148
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
155
- var import_property_provider3 = __toESM(require_dist_cjs(), 1);
156
-
157
- class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
149
+ class InstanceMetadataV1FallbackError extends CredentialsProviderError {
158
150
  constructor(message, tryNextLink = true) {
159
151
  super(message, tryNextLink);
160
152
  this.tryNextLink = tryNextLink;
@@ -272,7 +264,7 @@ var getInstanceMetadataProvider = (init = {}) => {
272
264
  const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
273
265
  fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
274
266
  if (envValue === undefined) {
275
- throw new import_property_provider4.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
267
+ throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
276
268
  }
277
269
  return fallbackBlockedFromProcessEnv;
278
270
  },
@@ -366,7 +358,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
366
358
  path: IMDS_PATH + profile
367
359
  })).toString());
368
360
  if (!isImdsCredentials(credentialsResponse)) {
369
- throw new import_property_provider4.CredentialsProviderError("Invalid response received from instance metadata service.", {
361
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
370
362
  logger: init.logger
371
363
  });
372
364
  }