@stacksjs/actions 0.70.19 → 0.70.22

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 (32) hide show
  1. package/dist/build.js +11 -11
  2. package/dist/{chunk-74nzt2f7.js → chunk-0m948f1p.js} +68 -122
  3. package/dist/{chunk-xt9exr2c.js → chunk-23btgw5e.js} +34 -113
  4. package/dist/{chunk-cvxddy4g.js → chunk-3y8t4qyf.js} +5 -6
  5. package/dist/{chunk-b7b7jd25.js → chunk-5wdfth6e.js} +12 -14
  6. package/dist/{chunk-6xeh1279.js → chunk-8qsrwjam.js} +8 -9
  7. package/dist/{chunk-a7k3cdby.js → chunk-90y2wmyz.js} +114 -4
  8. package/dist/{chunk-9menqd9a.js → chunk-92e6scf8.js} +17 -25
  9. package/dist/{chunk-0crtxf8d.js → chunk-atahpwz7.js} +163 -28
  10. package/dist/{chunk-jqbza09y.js → chunk-bz3nmjmp.js} +19 -23
  11. package/dist/{chunk-fsa32kvk.js → chunk-ddw2jq8f.js} +93 -88
  12. package/dist/{chunk-bh25aaf7.js → chunk-hqmjfnnn.js} +10 -18
  13. package/dist/{chunk-x1ny4wwh.js → chunk-jq06qn43.js} +3 -3
  14. package/dist/chunk-mbvdyeyw.js +50 -0
  15. package/dist/{chunk-264njj8m.js → chunk-ny592jcd.js} +11 -11
  16. package/dist/{chunk-6egz2b52.js → chunk-qka5w6cv.js} +14 -16
  17. package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
  18. package/dist/{chunk-annfdd3f.js → chunk-rbsehxzg.js} +11 -11
  19. package/dist/{chunk-6vn0j49q.js → chunk-rfdmx5yh.js} +17 -19
  20. package/dist/{chunk-z4k3w6hz.js → chunk-s3xxrvrk.js} +27 -36
  21. package/dist/{chunk-2jssg98j.js → chunk-y08qabyb.js} +16 -20
  22. package/dist/{chunk-bf8bq8pc.js → chunk-yyvh669b.js} +6 -14
  23. package/dist/{chunk-4tte2ccn.js → chunk-zhrbz0qv.js} +37 -34
  24. package/dist/chunk-zzerxbrm.js +107 -0
  25. package/dist/database/seed.js +10 -10
  26. package/dist/generate/index.js +11 -11
  27. package/dist/index.js +11 -11
  28. package/dist/release.js +11 -11
  29. package/dist/upgrade.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunk-2m04vhea.js +0 -145
  32. package/dist/chunk-saqpg5nd.js +0 -118
@@ -0,0 +1,50 @@
1
+ // ../../../../node_modules/@smithy/types/dist-es/middleware.js
2
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
3
+ // ../../../../node_modules/@smithy/types/dist-es/auth/auth.js
4
+ var HttpAuthLocation;
5
+ (function(HttpAuthLocation2) {
6
+ HttpAuthLocation2["HEADER"] = "header";
7
+ HttpAuthLocation2["QUERY"] = "query";
8
+ })(HttpAuthLocation || (HttpAuthLocation = {}));
9
+ // ../../../../node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js
10
+ var HttpApiKeyAuthLocation;
11
+ (function(HttpApiKeyAuthLocation2) {
12
+ HttpApiKeyAuthLocation2["HEADER"] = "header";
13
+ HttpApiKeyAuthLocation2["QUERY"] = "query";
14
+ })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
15
+ // ../../../../node_modules/@smithy/types/dist-es/endpoint.js
16
+ var EndpointURLScheme;
17
+ (function(EndpointURLScheme2) {
18
+ EndpointURLScheme2["HTTP"] = "http";
19
+ EndpointURLScheme2["HTTPS"] = "https";
20
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
21
+ // ../../../../node_modules/@smithy/types/dist-es/extensions/checksum.js
22
+ var AlgorithmId;
23
+ (function(AlgorithmId2) {
24
+ AlgorithmId2["MD5"] = "md5";
25
+ AlgorithmId2["CRC32"] = "crc32";
26
+ AlgorithmId2["CRC32C"] = "crc32c";
27
+ AlgorithmId2["SHA1"] = "sha1";
28
+ AlgorithmId2["SHA256"] = "sha256";
29
+ })(AlgorithmId || (AlgorithmId = {}));
30
+ // ../../../../node_modules/@smithy/types/dist-es/http.js
31
+ var FieldPosition;
32
+ (function(FieldPosition2) {
33
+ FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
34
+ FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
35
+ })(FieldPosition || (FieldPosition = {}));
36
+ // ../../../../node_modules/@smithy/types/dist-es/profile.js
37
+ var IniSectionType;
38
+ (function(IniSectionType2) {
39
+ IniSectionType2["PROFILE"] = "profile";
40
+ IniSectionType2["SSO_SESSION"] = "sso-session";
41
+ IniSectionType2["SERVICES"] = "services";
42
+ })(IniSectionType || (IniSectionType = {}));
43
+ // ../../../../node_modules/@smithy/types/dist-es/transfer.js
44
+ var RequestHandlerProtocol;
45
+ (function(RequestHandlerProtocol2) {
46
+ RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
47
+ RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
48
+ RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
49
+ })(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
50
+ export { EndpointURLScheme, AlgorithmId, SMITHY_CONTEXT_KEY, IniSectionType };
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-x1ny4wwh.js";
5
- import"./chunk-fsa32kvk.js";
4
+ } from "./chunk-jq06qn43.js";
5
+ import"./chunk-ddw2jq8f.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-74nzt2f7.js";
13
- import"./chunk-bh25aaf7.js";
14
- import"./chunk-bf8bq8pc.js";
15
- import"./chunk-xt9exr2c.js";
16
- import"./chunk-0crtxf8d.js";
17
- import"./chunk-a7k3cdby.js";
12
+ import"./chunk-0m948f1p.js";
13
+ import"./chunk-hqmjfnnn.js";
14
+ import"./chunk-yyvh669b.js";
15
+ import"./chunk-23btgw5e.js";
16
+ import"./chunk-mbvdyeyw.js";
17
+ import"./chunk-zzerxbrm.js";
18
+ import"./chunk-atahpwz7.js";
19
+ import"./chunk-90y2wmyz.js";
18
20
  import"./chunk-frw3va9v.js";
19
- 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";
@@ -19,26 +19,24 @@ 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-2jssg98j.js";
22
+ } from "./chunk-y08qabyb.js";
23
23
  import {
24
24
  require_dist_cjs,
25
- require_dist_cjs1 as require_dist_cjs2,
25
+ require_dist_cjs1 as require_dist_cjs3,
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-atahpwz7.js";
31
31
  import {
32
- require_dist_cjs as require_dist_cjs3,
33
- require_dist_cjs3 as require_dist_cjs4,
34
- require_dist_cjs4 as require_dist_cjs5,
35
- require_dist_cjs6
36
- } from "./chunk-a7k3cdby.js";
32
+ require_dist_cjs1 as require_dist_cjs2,
33
+ require_dist_cjs4,
34
+ require_dist_cjs5,
35
+ require_dist_cjs7 as require_dist_cjs6
36
+ } from "./chunk-90y2wmyz.js";
37
37
  import {
38
38
  require_client
39
39
  } from "./chunk-frw3va9v.js";
40
- import"./chunk-saqpg5nd.js";
41
- import"./chunk-2m04vhea.js";
42
40
  import {
43
41
  __commonJS
44
42
  } from "./chunk-9v6qtbez.js";
@@ -348,7 +346,7 @@ var require_runtimeExtensions = __commonJS((exports) => {
348
346
  Object.defineProperty(exports, "__esModule", { value: true });
349
347
  exports.resolveRuntimeExtensions = undefined;
350
348
  var region_config_resolver_1 = require_dist_cjs27();
351
- var protocol_http_1 = require_dist_cjs3();
349
+ var protocol_http_1 = require_dist_cjs2();
352
350
  var smithy_client_1 = require_dist_cjs8();
353
351
  var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration();
354
352
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
@@ -464,7 +462,7 @@ var require_sts = __commonJS((exports, module) => {
464
462
  __reExport(index_exports, require_STSClient(), module.exports);
465
463
  var import_smithy_client6 = require_dist_cjs8();
466
464
  var import_middleware_endpoint = require_dist_cjs20();
467
- var import_middleware_serde = require_dist_cjs2();
465
+ var import_middleware_serde = require_dist_cjs3();
468
466
  var import_smithy_client4 = require_dist_cjs8();
469
467
  var import_EndpointParameters = require_EndpointParameters();
470
468
  var import_smithy_client2 = require_dist_cjs8();
@@ -600,7 +598,7 @@ var require_sts = __commonJS((exports, module) => {
600
598
  }
601
599
  };
602
600
  var import_core = require_dist_cjs9();
603
- var import_protocol_http = require_dist_cjs3();
601
+ var import_protocol_http = require_dist_cjs2();
604
602
  var import_smithy_client3 = require_dist_cjs8();
605
603
  var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => {
606
604
  const headers = SHARED_HEADERS;
@@ -1133,7 +1131,7 @@ var require_sts = __commonJS((exports, module) => {
1133
1131
  }
1134
1132
  };
1135
1133
  var import_middleware_endpoint2 = require_dist_cjs20();
1136
- var import_middleware_serde2 = require_dist_cjs2();
1134
+ var import_middleware_serde2 = require_dist_cjs3();
1137
1135
  var import_smithy_client5 = require_dist_cjs8();
1138
1136
  var import_EndpointParameters2 = require_EndpointParameters();
1139
1137
  var AssumeRoleWithWebIdentityCommand = class extends import_smithy_client5.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) {
@@ -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,
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-x1ny4wwh.js";
5
- import"./chunk-fsa32kvk.js";
4
+ } from "./chunk-jq06qn43.js";
5
+ import"./chunk-ddw2jq8f.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-74nzt2f7.js";
13
- import"./chunk-bh25aaf7.js";
14
- import"./chunk-bf8bq8pc.js";
15
- import"./chunk-xt9exr2c.js";
16
- import"./chunk-0crtxf8d.js";
17
- import"./chunk-a7k3cdby.js";
12
+ import"./chunk-0m948f1p.js";
13
+ import"./chunk-hqmjfnnn.js";
14
+ import"./chunk-yyvh669b.js";
15
+ import"./chunk-23btgw5e.js";
16
+ import"./chunk-mbvdyeyw.js";
17
+ import"./chunk-zzerxbrm.js";
18
+ import"./chunk-atahpwz7.js";
19
+ import"./chunk-90y2wmyz.js";
18
20
  import"./chunk-frw3va9v.js";
19
- 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,30 +1,28 @@
1
1
  // @bun
2
2
  import {
3
- HttpRequest,
4
3
  NodeHttpHandler,
5
4
  parseRfc3339DateTime
6
- } from "./chunk-xt9exr2c.js";
5
+ } from "./chunk-23btgw5e.js";
6
+ import"./chunk-mbvdyeyw.js";
7
7
  import {
8
- require_dist_cjs8 as require_dist_cjs
9
- } from "./chunk-a7k3cdby.js";
8
+ CredentialsProviderError
9
+ } from "./chunk-zzerxbrm.js";
10
+ import {
11
+ require_dist_cjs1 as require_dist_cjs,
12
+ require_dist_cjs9 as require_dist_cjs2
13
+ } from "./chunk-90y2wmyz.js";
10
14
  import {
11
15
  require_client
12
16
  } from "./chunk-frw3va9v.js";
13
- 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,17 +50,17 @@ 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
- var import_util_stream = __toESM(require_dist_cjs(), 1);
60
+ var import_protocol_http = __toESM(require_dist_cjs(), 1);
61
+ var import_util_stream = __toESM(require_dist_cjs2(), 1);
64
62
  function createGetRequest(url) {
65
- return new HttpRequest({
63
+ return new import_protocol_http.HttpRequest({
66
64
  protocol: url.protocol,
67
65
  hostname: url.hostname,
68
66
  port: Number(url.port),
@@ -80,7 +78,7 @@ async function getCredentials(response, logger) {
80
78
  if (response.statusCode === 200) {
81
79
  const parsed = JSON.parse(str);
82
80
  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 });
81
+ 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
82
  }
85
83
  return {
86
84
  accessKeyId: parsed.AccessKeyId,
@@ -94,12 +92,12 @@ async function getCredentials(response, logger) {
94
92
  try {
95
93
  parsedBody = JSON.parse(str);
96
94
  } catch (e) {}
97
- throw Object.assign(new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
95
+ throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
98
96
  Code: parsedBody.Code,
99
97
  Message: parsedBody.Message
100
98
  });
101
99
  }
102
- throw new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
100
+ throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
103
101
  }
104
102
 
105
103
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
@@ -143,7 +141,7 @@ var fromHttp = (options = {}) => {
143
141
  } else if (relative) {
144
142
  host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
145
143
  } else {
146
- throw new import_property_provider3.CredentialsProviderError(`No HTTP credential provider host provided.
144
+ throw new CredentialsProviderError(`No HTTP credential provider host provided.
147
145
  Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
148
146
  }
149
147
  const url = new URL(host);
@@ -163,7 +161,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
163
161
  const result = await requestHandler.handle(request);
164
162
  return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
165
163
  } catch (e) {
166
- throw new import_property_provider3.CredentialsProviderError(String(e), { logger: options.logger });
164
+ throw new CredentialsProviderError(String(e), { logger: options.logger });
167
165
  }
168
166
  }, options.maxRetries ?? 3, options.timeout ?? 1000);
169
167
  };
@@ -5,38 +5,33 @@ import {
5
5
  getSSOTokenFromFile,
6
6
  loadSsoSessionData,
7
7
  parseKnownFiles
8
- } from "./chunk-bf8bq8pc.js";
8
+ } from "./chunk-yyvh669b.js";
9
+ import"./chunk-mbvdyeyw.js";
10
+ import {
11
+ CredentialsProviderError,
12
+ TokenProviderError
13
+ } from "./chunk-zzerxbrm.js";
9
14
  import {
10
15
  require_client
11
16
  } from "./chunk-frw3va9v.js";
12
- 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-b7b7jd25.js");
34
+ const { SSOOIDCClient } = await import("./chunk-5wdfth6e.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-b7b7jd25.js");
44
+ const { CreateTokenCommand } = await import("./chunk-5wdfth6e.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-4tte2ccn.js");
190
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-zhrbz0qv.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,
@@ -1,22 +1,18 @@
1
1
  import {
2
2
  require_dist,
3
3
  require_dist_cjs as require_dist_cjs2,
4
- require_dist_cjs1 as require_dist_cjs3,
4
+ require_dist_cjs1 as require_dist_cjs4,
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";
9
- import {
10
- require_dist_cjs as require_dist_cjs4,
11
- require_dist_cjs2 as require_dist_cjs5,
12
- require_dist_cjs3 as require_dist_cjs6
13
- } from "./chunk-a7k3cdby.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-atahpwz7.js";
14
10
  import {
15
- require_dist_cjs
16
- } from "./chunk-saqpg5nd.js";
17
- import {
18
- require_dist_cjs as require_dist_cjs8
19
- } from "./chunk-2m04vhea.js";
11
+ require_dist_cjs,
12
+ require_dist_cjs1 as require_dist_cjs3,
13
+ require_dist_cjs3 as require_dist_cjs5,
14
+ require_dist_cjs4 as require_dist_cjs6
15
+ } from "./chunk-90y2wmyz.js";
20
16
  import {
21
17
  __commonJS,
22
18
  __require
@@ -50,7 +46,7 @@ var require_dist_cjs11 = __commonJS((exports, module) => {
50
46
  resolveHostHeaderConfig: () => resolveHostHeaderConfig
51
47
  });
52
48
  module.exports = __toCommonJS(index_exports);
53
- var import_protocol_http = require_dist_cjs4();
49
+ var import_protocol_http = require_dist_cjs3();
54
50
  function resolveHostHeaderConfig(input) {
55
51
  return input;
56
52
  }
@@ -182,7 +178,7 @@ var require_dist_cjs13 = __commonJS((exports, module) => {
182
178
  recursionDetectionMiddleware: () => recursionDetectionMiddleware
183
179
  });
184
180
  module.exports = __toCommonJS(index_exports);
185
- var import_protocol_http = require_dist_cjs4();
181
+ var import_protocol_http = require_dist_cjs3();
186
182
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
187
183
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
188
184
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
@@ -1102,7 +1098,7 @@ var require_dist_cjs16 = __commonJS((exports, module) => {
1102
1098
  }
1103
1099
  __name(resolveUserAgentConfig, "resolveUserAgentConfig");
1104
1100
  var import_util_endpoints = require_dist_cjs15();
1105
- var import_protocol_http = require_dist_cjs4();
1101
+ var import_protocol_http = require_dist_cjs3();
1106
1102
  var import_core2 = require_dist_cjs10();
1107
1103
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
1108
1104
  async function checkFeatures(context, config, args) {
@@ -1499,7 +1495,7 @@ var require_dist_cjs19 = __commonJS((exports, module) => {
1499
1495
  getContentLengthPlugin: () => getContentLengthPlugin
1500
1496
  });
1501
1497
  module.exports = __toCommonJS(src_exports);
1502
- var import_protocol_http = require_dist_cjs4();
1498
+ var import_protocol_http = require_dist_cjs3();
1503
1499
  var CONTENT_LENGTH_HEADER = "content-length";
1504
1500
  function contentLengthMiddleware(bodyLengthChecker) {
1505
1501
  return (next) => async (args) => {
@@ -2183,7 +2179,7 @@ var require_dist_cjs24 = __commonJS((exports, module) => {
2183
2179
  });
2184
2180
  };
2185
2181
  }, "endpointMiddleware");
2186
- var import_middleware_serde = require_dist_cjs3();
2182
+ var import_middleware_serde = require_dist_cjs4();
2187
2183
  var endpointMiddlewareOptions = {
2188
2184
  step: "serialize",
2189
2185
  tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
@@ -2639,7 +2635,7 @@ var require_dist_cjs27 = __commonJS((exports, module) => {
2639
2635
  retryMiddlewareOptions: () => retryMiddlewareOptions
2640
2636
  });
2641
2637
  module.exports = __toCommonJS(src_exports);
2642
- var import_protocol_http = require_dist_cjs4();
2638
+ var import_protocol_http = require_dist_cjs3();
2643
2639
  var import_uuid = require_dist();
2644
2640
  var import_util_retry = require_dist_cjs26();
2645
2641
  var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {