@stacksjs/actions 0.70.16 → 0.70.18

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 (28) hide show
  1. package/dist/build.js +8 -8
  2. package/dist/{chunk-wn25qps4.js → chunk-2vba9ke6.js} +25 -34
  3. package/dist/{chunk-hd6fdt5s.js → chunk-38cnnp2b.js} +4 -6
  4. package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
  5. package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
  6. package/dist/{chunk-gdzs9jf4.js → chunk-9exgwfkw.js} +4 -5
  7. package/dist/{chunk-hfkdpbh8.js → chunk-c0b89186.js} +8 -8
  8. package/dist/{chunk-y73a5ex0.js → chunk-dhnwmbca.js} +28 -29
  9. package/dist/{chunk-wvzpmd54.js → chunk-e7mp4xy5.js} +10 -13
  10. package/dist/{chunk-ad9b7jvj.js → chunk-f6a9g4qa.js} +4 -5
  11. package/dist/{chunk-jdqxwpvc.js → chunk-gtghjj5c.js} +79 -35
  12. package/dist/{chunk-kz10a3s9.js → chunk-ky5192ey.js} +82 -85
  13. package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
  14. package/dist/{chunk-6xbhnbwy.js → chunk-shmtrj5e.js} +17 -21
  15. package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
  16. package/dist/{chunk-cv02w7e2.js → chunk-v1m830st.js} +3 -3
  17. package/dist/{chunk-0crtxf8d.js → chunk-veja9rez.js} +156 -19
  18. package/dist/{chunk-whqcyjvm.js → chunk-xgpn959d.js} +13 -8
  19. package/dist/{chunk-b5g5w1hh.js → chunk-xt9exr2c.js} +5 -6
  20. package/dist/{chunk-f1cxwjkf.js → chunk-zsm2c35w.js} +5 -6
  21. package/dist/chunk-zzerxbrm.js +107 -0
  22. package/dist/database/seed.js +7 -7
  23. package/dist/generate/index.js +8 -8
  24. package/dist/index.js +8 -8
  25. package/dist/release.js +8 -8
  26. package/dist/upgrade.js +1 -1
  27. package/package.json +17 -17
  28. package/dist/chunk-2m04vhea.js +0 -145
package/dist/build.js CHANGED
@@ -2,25 +2,25 @@
2
2
  import {
3
3
  generateTypes
4
4
  } from "./generate/index.js";
5
- import"./chunk-cv02w7e2.js";
5
+ import"./chunk-v1m830st.js";
6
6
  import"./helpers/vscode-custom-data.js";
7
7
  import"./chunk-494jp8d5.js";
8
- import"./chunk-kz10a3s9.js";
8
+ import"./chunk-ky5192ey.js";
9
9
  import"./chunk-mdj7x1vs.js";
10
10
  import"./chunk-p0c688mg.js";
11
- import"./chunk-8dsect0a.js";
11
+ import"./chunk-qkm8e752.js";
12
12
  import"./chunk-a13x0e43.js";
13
13
  import"./chunk-mdqphqep.js";
14
14
  import"./chunk-qhh0v93n.js";
15
- import"./chunk-jdqxwpvc.js";
16
- import"./chunk-bh25aaf7.js";
15
+ import"./chunk-gtghjj5c.js";
16
+ import"./chunk-7s5qcjkt.js";
17
17
  import"./chunk-bf8bq8pc.js";
18
- import"./chunk-b5g5w1hh.js";
19
- import"./chunk-0crtxf8d.js";
18
+ import"./chunk-xt9exr2c.js";
19
+ import"./chunk-zzerxbrm.js";
20
+ import"./chunk-veja9rez.js";
20
21
  import"./chunk-a7k3cdby.js";
21
22
  import"./chunk-frw3va9v.js";
22
23
  import"./chunk-saqpg5nd.js";
23
- import"./chunk-2m04vhea.js";
24
24
  import"./chunk-2dvnt46s.js";
25
25
  import"./chunk-w6fdq4hk.js";
26
26
  import"./chunk-wkwtsvym.js";
@@ -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-f6a9g4qa.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-f6a9g4qa.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-y73a5ex0.js");
190
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-dhnwmbca.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,
@@ -3,9 +3,10 @@ import {
3
3
  require_dist_cjs as require_dist_cjs2,
4
4
  require_dist_cjs1 as require_dist_cjs3,
5
5
  require_dist_cjs2 as require_dist_cjs7,
6
- require_dist_cjs3 as require_dist_cjs9,
7
- require_dist_cjs4 as require_dist_cjs10
8
- } from "./chunk-0crtxf8d.js";
6
+ require_dist_cjs3 as require_dist_cjs8,
7
+ require_dist_cjs4 as require_dist_cjs9,
8
+ require_dist_cjs5 as require_dist_cjs10
9
+ } from "./chunk-veja9rez.js";
9
10
  import {
10
11
  require_dist_cjs as require_dist_cjs4,
11
12
  require_dist_cjs2 as require_dist_cjs5,
@@ -14,9 +15,6 @@ import {
14
15
  import {
15
16
  require_dist_cjs
16
17
  } from "./chunk-saqpg5nd.js";
17
- import {
18
- require_dist_cjs as require_dist_cjs8
19
- } from "./chunk-2m04vhea.js";
20
18
  import {
21
19
  __commonJS,
22
20
  __require
@@ -3,19 +3,18 @@ import {
3
3
  getProfileName,
4
4
  parseKnownFiles
5
5
  } from "./chunk-bf8bq8pc.js";
6
+ import {
7
+ CredentialsProviderError
8
+ } from "./chunk-zzerxbrm.js";
6
9
  import {
7
10
  require_client
8
11
  } from "./chunk-frw3va9v.js";
9
12
  import"./chunk-saqpg5nd.js";
10
- import {
11
- require_dist_cjs
12
- } from "./chunk-2m04vhea.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-9v6qtbez.js";
16
16
 
17
17
  // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
18
- var import_property_provider = __toESM(require_dist_cjs(), 1);
19
18
  import { exec } from "node:child_process";
20
19
  import { promisify } from "node:util";
21
20
 
@@ -68,13 +67,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
68
67
  }
69
68
  return getValidatedProcessCredentials(profileName, data, profiles);
70
69
  } catch (error) {
71
- throw new import_property_provider.CredentialsProviderError(error.message, { logger });
70
+ throw new CredentialsProviderError(error.message, { logger });
72
71
  }
73
72
  } else {
74
- throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
73
+ throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
75
74
  }
76
75
  } else {
77
- throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
76
+ throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
78
77
  logger
79
78
  });
80
79
  }
@@ -3,17 +3,11 @@ import {
3
3
  loadSharedConfigFiles
4
4
  } from "./chunk-bf8bq8pc.js";
5
5
  import {
6
- require_dist_cjs
7
- } from "./chunk-2m04vhea.js";
8
- import {
9
- __toESM
10
- } from "./chunk-9v6qtbez.js";
11
-
12
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
13
- var import_property_provider4 = __toESM(require_dist_cjs(), 1);
14
-
15
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
16
- var import_property_provider = __toESM(require_dist_cjs(), 1);
6
+ CredentialsProviderError,
7
+ chain,
8
+ fromStatic,
9
+ memoize
10
+ } from "./chunk-zzerxbrm.js";
17
11
 
18
12
  // ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
19
13
  function getSelectorName(functionString) {
@@ -37,12 +31,11 @@ var fromEnv = (envVarSelector, logger) => async () => {
37
31
  }
38
32
  return config;
39
33
  } catch (e) {
40
- throw new import_property_provider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
34
+ throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
41
35
  }
42
36
  };
43
37
 
44
38
  // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
45
- var import_property_provider2 = __toESM(require_dist_cjs(), 1);
46
39
  var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
47
40
  const profile = getProfileName(init);
48
41
  const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
@@ -57,17 +50,16 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
57
50
  }
58
51
  return configValue;
59
52
  } catch (e) {
60
- throw new import_property_provider2.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
53
+ throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
61
54
  }
62
55
  };
63
56
 
64
57
  // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
65
- var import_property_provider3 = __toESM(require_dist_cjs(), 1);
66
58
  var isFunction = (func) => typeof func === "function";
67
- var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : import_property_provider3.fromStatic(defaultValue);
59
+ var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
68
60
 
69
61
  // ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
70
- var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => import_property_provider4.memoize(import_property_provider4.chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
62
+ var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
71
63
  // ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
72
64
  function parseQueryString(querystring) {
73
65
  const query = {};
@@ -19,15 +19,15 @@ 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-38cnnp2b.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-veja9rez.js";
31
31
  import {
32
32
  require_dist_cjs as require_dist_cjs3,
33
33
  require_dist_cjs3 as require_dist_cjs4,
@@ -38,7 +38,6 @@ 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";
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-cv02w7e2.js";
5
- import"./chunk-kz10a3s9.js";
4
+ } from "./chunk-v1m830st.js";
5
+ import"./chunk-ky5192ey.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-jdqxwpvc.js";
13
- import"./chunk-bh25aaf7.js";
12
+ import"./chunk-gtghjj5c.js";
13
+ import"./chunk-7s5qcjkt.js";
14
14
  import"./chunk-bf8bq8pc.js";
15
- import"./chunk-b5g5w1hh.js";
16
- import"./chunk-0crtxf8d.js";
15
+ import"./chunk-xt9exr2c.js";
16
+ import"./chunk-zzerxbrm.js";
17
+ import"./chunk-veja9rez.js";
17
18
  import"./chunk-a7k3cdby.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";
@@ -14,6 +14,8 @@ import {
14
14
  calculateBodyLength,
15
15
  createDefaultUserAgentProvider,
16
16
  customEndpointFunctions,
17
+ fromBase64,
18
+ fromUtf8,
17
19
  getAwsRegionExtensionConfiguration,
18
20
  getContentLengthPlugin,
19
21
  getEndpointPlugin,
@@ -22,9 +24,7 @@ import {
22
24
  getRecursionDetectionPlugin,
23
25
  getRetryPlugin,
24
26
  getSerdePlugin,
25
- getSmithyContext,
26
27
  getUserAgentPlugin,
27
- normalizeProvider,
28
28
  resolveAwsRegionExtensionConfiguration,
29
29
  resolveDefaultsModeConfig,
30
30
  resolveEndpoint,
@@ -32,12 +32,14 @@ import {
32
32
  resolveHostHeaderConfig,
33
33
  resolveRegionConfig,
34
34
  resolveRetryConfig,
35
- resolveUserAgentConfig
36
- } from "./chunk-jdqxwpvc.js";
35
+ resolveUserAgentConfig,
36
+ toBase64,
37
+ toUtf8
38
+ } from "./chunk-gtghjj5c.js";
37
39
  import {
38
40
  loadConfig,
39
41
  parseUrl
40
- } from "./chunk-bh25aaf7.js";
42
+ } from "./chunk-7s5qcjkt.js";
41
43
  import"./chunk-bf8bq8pc.js";
42
44
  import {
43
45
  Client,
@@ -62,31 +64,30 @@ import {
62
64
  streamCollector,
63
65
  take,
64
66
  withBaseException
65
- } from "./chunk-b5g5w1hh.js";
67
+ } from "./chunk-xt9exr2c.js";
68
+ import"./chunk-zzerxbrm.js";
66
69
  import {
67
- require_dist_cjs2 as require_dist_cjs3,
68
- require_dist_cjs4
69
- } from "./chunk-0crtxf8d.js";
70
- import {
71
- require_dist_cjs3 as require_dist_cjs,
72
- require_dist_cjs4 as require_dist_cjs2
73
- } from "./chunk-a7k3cdby.js";
70
+ require_dist_cjs,
71
+ require_dist_cjs2,
72
+ require_dist_cjs5 as require_dist_cjs3
73
+ } from "./chunk-veja9rez.js";
74
+ import"./chunk-a7k3cdby.js";
74
75
  import"./chunk-frw3va9v.js";
75
76
  import"./chunk-saqpg5nd.js";
76
- import"./chunk-2m04vhea.js";
77
77
  import {
78
78
  __toESM
79
79
  } from "./chunk-9v6qtbez.js";
80
80
 
81
81
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
82
- var import_core5 = __toESM(require_dist_cjs3(), 1);
82
+ var import_core5 = __toESM(require_dist_cjs2(), 1);
83
83
 
84
84
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
85
- var import_core = __toESM(require_dist_cjs4(), 1);
85
+ var import_core = __toESM(require_dist_cjs3(), 1);
86
+ var import_util_middleware = __toESM(require_dist_cjs(), 1);
86
87
  var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
87
88
  return {
88
- operation: getSmithyContext(context).operation,
89
- region: await normalizeProvider(config.region)() || (() => {
89
+ operation: import_util_middleware.getSmithyContext(context).operation,
90
+ region: await import_util_middleware.normalizeProvider(config.region)() || (() => {
90
91
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
91
92
  })()
92
93
  };
@@ -256,13 +257,11 @@ var package_default = {
256
257
  };
257
258
 
258
259
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
259
- var import_core4 = __toESM(require_dist_cjs4(), 1);
260
+ var import_core4 = __toESM(require_dist_cjs3(), 1);
260
261
 
261
262
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
262
- var import_core2 = __toESM(require_dist_cjs4(), 1);
263
- var import_core3 = __toESM(require_dist_cjs3(), 1);
264
- var import_util_base64 = __toESM(require_dist_cjs2(), 1);
265
- var import_util_utf8 = __toESM(require_dist_cjs(), 1);
263
+ var import_core2 = __toESM(require_dist_cjs3(), 1);
264
+ var import_core3 = __toESM(require_dist_cjs2(), 1);
266
265
 
267
266
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
268
267
  var u = "required";
@@ -309,8 +308,8 @@ customEndpointFunctions.aws = awsEndpointFunctions;
309
308
  var getRuntimeConfig = (config) => {
310
309
  return {
311
310
  apiVersion: "2019-06-10",
312
- base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64,
313
- base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64,
311
+ base64Decoder: config?.base64Decoder ?? fromBase64,
312
+ base64Encoder: config?.base64Encoder ?? toBase64,
314
313
  disableHostPrefix: config?.disableHostPrefix ?? false,
315
314
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
316
315
  extensions: config?.extensions ?? [],
@@ -330,8 +329,8 @@ var getRuntimeConfig = (config) => {
330
329
  logger: config?.logger ?? new NoOpLogger,
331
330
  serviceId: config?.serviceId ?? "SSO",
332
331
  urlParser: config?.urlParser ?? parseUrl,
333
- utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8,
334
- utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8
332
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
333
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
335
334
  };
336
335
  };
337
336
 
@@ -521,8 +520,8 @@ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
521
520
  });
522
521
 
523
522
  // ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
524
- var import_core6 = __toESM(require_dist_cjs4(), 1);
525
- var import_core7 = __toESM(require_dist_cjs3(), 1);
523
+ var import_core6 = __toESM(require_dist_cjs3(), 1);
524
+ var import_core7 = __toESM(require_dist_cjs2(), 1);
526
525
  var se_GetRoleCredentialsCommand = async (input, context) => {
527
526
  const b2 = import_core7.requestBuilder(input, context);
528
527
  const headers = map({}, isSerializableHeaderValue, {
@@ -3,7 +3,10 @@ import {
3
3
  HttpRequest,
4
4
  NodeHttpHandler,
5
5
  parseRfc3339DateTime
6
- } from "./chunk-b5g5w1hh.js";
6
+ } from "./chunk-xt9exr2c.js";
7
+ import {
8
+ CredentialsProviderError
9
+ } from "./chunk-zzerxbrm.js";
7
10
  import {
8
11
  require_dist_cjs8 as require_dist_cjs
9
12
  } from "./chunk-a7k3cdby.js";
@@ -11,20 +14,15 @@ import {
11
14
  require_client
12
15
  } from "./chunk-frw3va9v.js";
13
16
  import"./chunk-saqpg5nd.js";
14
- import {
15
- require_dist_cjs as require_dist_cjs2
16
- } from "./chunk-2m04vhea.js";
17
17
  import {
18
18
  __toESM
19
19
  } from "./chunk-9v6qtbez.js";
20
20
 
21
21
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
22
22
  var import_client = __toESM(require_client(), 1);
23
- var import_property_provider3 = __toESM(require_dist_cjs2(), 1);
24
23
  import fs from "node:fs/promises";
25
24
 
26
25
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
27
- var import_property_provider = __toESM(require_dist_cjs2(), 1);
28
26
  var ECS_CONTAINER_HOST = "169.254.170.2";
29
27
  var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
30
28
  var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
@@ -52,14 +50,13 @@ var checkUrl = (url, logger) => {
52
50
  return;
53
51
  }
54
52
  }
55
- throw new import_property_provider.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
53
+ throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
56
54
  - loopback CIDR 127.0.0.0/8 or [::1/128]
57
55
  - ECS container host 169.254.170.2
58
56
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
59
57
  };
60
58
 
61
59
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
62
- var import_property_provider2 = __toESM(require_dist_cjs2(), 1);
63
60
  var import_util_stream = __toESM(require_dist_cjs(), 1);
64
61
  function createGetRequest(url) {
65
62
  return new HttpRequest({
@@ -80,7 +77,7 @@ async function getCredentials(response, logger) {
80
77
  if (response.statusCode === 200) {
81
78
  const parsed = JSON.parse(str);
82
79
  if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
83
- throw new import_property_provider2.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
80
+ throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
84
81
  }
85
82
  return {
86
83
  accessKeyId: parsed.AccessKeyId,
@@ -94,12 +91,12 @@ async function getCredentials(response, logger) {
94
91
  try {
95
92
  parsedBody = JSON.parse(str);
96
93
  } catch (e) {}
97
- throw Object.assign(new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
94
+ throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
98
95
  Code: parsedBody.Code,
99
96
  Message: parsedBody.Message
100
97
  });
101
98
  }
102
- throw new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
99
+ throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
103
100
  }
104
101
 
105
102
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
@@ -143,7 +140,7 @@ var fromHttp = (options = {}) => {
143
140
  } else if (relative) {
144
141
  host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
145
142
  } else {
146
- throw new import_property_provider3.CredentialsProviderError(`No HTTP credential provider host provided.
143
+ throw new CredentialsProviderError(`No HTTP credential provider host provided.
147
144
  Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
148
145
  }
149
146
  const url = new URL(host);
@@ -163,7 +160,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
163
160
  const result = await requestHandler.handle(request);
164
161
  return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
165
162
  } catch (e) {
166
- throw new import_property_provider3.CredentialsProviderError(String(e), { logger: options.logger });
163
+ throw new CredentialsProviderError(String(e), { logger: options.logger });
167
164
  }
168
165
  }, options.maxRetries ?? 3, options.timeout ?? 1000);
169
166
  };