@stacksjs/actions 0.70.22 → 0.70.23

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 (31) hide show
  1. package/dist/build.js +9 -9
  2. package/dist/chunk-4axj3j8y.js +34 -0
  3. package/dist/{chunk-y08qabyb.js → chunk-56ar3gp7.js} +15 -13
  4. package/dist/{chunk-8qsrwjam.js → chunk-76zhb40c.js} +2 -2
  5. package/dist/{chunk-hqmjfnnn.js → chunk-7s5qcjkt.js} +1 -1
  6. package/dist/{chunk-90y2wmyz.js → chunk-a7k3cdby.js} +4 -114
  7. package/dist/{chunk-23btgw5e.js → chunk-b5g5w1hh.js} +108 -28
  8. package/dist/{chunk-yyvh669b.js → chunk-bf8bq8pc.js} +14 -6
  9. package/dist/{chunk-0m948f1p.js → chunk-ccnf3w1b.js} +102 -51
  10. package/dist/{chunk-qka5w6cv.js → chunk-dvkgakrr.js} +13 -12
  11. package/dist/{chunk-ddw2jq8f.js → chunk-hvfeg6n6.js} +59 -61
  12. package/dist/{chunk-bz3nmjmp.js → chunk-mmskr8ar.js} +9 -9
  13. package/dist/{chunk-zhrbz0qv.js → chunk-nrr524a7.js} +29 -32
  14. package/dist/{chunk-5wdfth6e.js → chunk-pacq2bz6.js} +11 -10
  15. package/dist/{chunk-3y8t4qyf.js → chunk-psa9yf21.js} +1 -1
  16. package/dist/{chunk-rfdmx5yh.js → chunk-q81mf99q.js} +7 -8
  17. package/dist/chunk-saqpg5nd.js +118 -0
  18. package/dist/{chunk-92e6scf8.js → chunk-t5em30ak.js} +3 -3
  19. package/dist/{chunk-atahpwz7.js → chunk-veja9rez.js} +9 -7
  20. package/dist/{chunk-s3xxrvrk.js → chunk-w4bfpxhm.js} +5 -5
  21. package/dist/{chunk-jq06qn43.js → chunk-xgsmf4cy.js} +5 -5
  22. package/dist/chunk-ykb33tkv.js +177 -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 +17 -17
  29. package/dist/chunk-mbvdyeyw.js +0 -50
  30. package/dist/chunk-ny592jcd.js +0 -133
  31. package/dist/chunk-rbsehxzg.js +0 -65
package/dist/build.js CHANGED
@@ -2,25 +2,25 @@
2
2
  import {
3
3
  generateTypes
4
4
  } from "./generate/index.js";
5
- import"./chunk-jq06qn43.js";
5
+ import"./chunk-xgsmf4cy.js";
6
6
  import"./helpers/vscode-custom-data.js";
7
7
  import"./chunk-494jp8d5.js";
8
- import"./chunk-ddw2jq8f.js";
8
+ import"./chunk-hvfeg6n6.js";
9
9
  import"./chunk-mdj7x1vs.js";
10
10
  import"./chunk-p0c688mg.js";
11
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-0m948f1p.js";
16
- import"./chunk-hqmjfnnn.js";
17
- import"./chunk-yyvh669b.js";
18
- import"./chunk-23btgw5e.js";
19
- import"./chunk-mbvdyeyw.js";
15
+ import"./chunk-ccnf3w1b.js";
16
+ import"./chunk-7s5qcjkt.js";
17
+ import"./chunk-bf8bq8pc.js";
18
+ import"./chunk-b5g5w1hh.js";
20
19
  import"./chunk-zzerxbrm.js";
21
- import"./chunk-atahpwz7.js";
22
- import"./chunk-90y2wmyz.js";
20
+ import"./chunk-veja9rez.js";
21
+ import"./chunk-a7k3cdby.js";
23
22
  import"./chunk-frw3va9v.js";
23
+ import"./chunk-saqpg5nd.js";
24
24
  import"./chunk-2dvnt46s.js";
25
25
  import"./chunk-w6fdq4hk.js";
26
26
  import"./chunk-wkwtsvym.js";
@@ -0,0 +1,34 @@
1
+ // @bun
2
+ import {
3
+ route
4
+ } from "./chunk-xgsmf4cy.js";
5
+ import"./chunk-hvfeg6n6.js";
6
+ import"./chunk-mdj7x1vs.js";
7
+ import"./chunk-p0c688mg.js";
8
+ import"./chunk-qkm8e752.js";
9
+ import"./chunk-a13x0e43.js";
10
+ import"./chunk-mdqphqep.js";
11
+ import"./chunk-qhh0v93n.js";
12
+ import"./chunk-ccnf3w1b.js";
13
+ import"./chunk-7s5qcjkt.js";
14
+ import"./chunk-bf8bq8pc.js";
15
+ import"./chunk-b5g5w1hh.js";
16
+ import"./chunk-zzerxbrm.js";
17
+ import"./chunk-veja9rez.js";
18
+ import"./chunk-a7k3cdby.js";
19
+ import"./chunk-frw3va9v.js";
20
+ import"./chunk-saqpg5nd.js";
21
+ import"./chunk-2dvnt46s.js";
22
+ import"./chunk-w6fdq4hk.js";
23
+ import"./chunk-wkwtsvym.js";
24
+ import"./chunk-9v6qtbez.js";
25
+
26
+ // ../../orm/routes.ts
27
+ route.get("users", "UserIndexOrmAction");
28
+ route.post("users", "UserStoreOrmAction");
29
+ route.get("users/{id}", "UserShowOrmAction");
30
+ route.get("requests", "storage/framework/actions/src/RequestIndexOrmAction.ts");
31
+ route.get("requests/{id}", "storage/framework/actions/src/RequestShowOrmAction.ts");
32
+ route.post("requests", "storage/framework/actions/src/RequestStoreOrmAction.ts");
33
+ route.patch("requests/{id}", "storage/framework/actions/src/RequestUpdateOrmAction.ts");
34
+ route.delete("requests/{id}", "storage/framework/actions/src/RequestDestroyOrmAction.ts");
@@ -1,18 +1,20 @@
1
1
  import {
2
2
  require_dist,
3
3
  require_dist_cjs as require_dist_cjs2,
4
- require_dist_cjs1 as require_dist_cjs4,
4
+ require_dist_cjs1 as require_dist_cjs3,
5
5
  require_dist_cjs2 as require_dist_cjs7,
6
6
  require_dist_cjs3 as require_dist_cjs8,
7
7
  require_dist_cjs4 as require_dist_cjs9,
8
8
  require_dist_cjs5 as require_dist_cjs10
9
- } from "./chunk-atahpwz7.js";
9
+ } from "./chunk-veja9rez.js";
10
10
  import {
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";
11
+ require_dist_cjs as require_dist_cjs4,
12
+ require_dist_cjs2 as require_dist_cjs5,
13
+ require_dist_cjs3 as require_dist_cjs6
14
+ } from "./chunk-a7k3cdby.js";
15
+ import {
16
+ require_dist_cjs
17
+ } from "./chunk-saqpg5nd.js";
16
18
  import {
17
19
  __commonJS,
18
20
  __require
@@ -46,7 +48,7 @@ var require_dist_cjs11 = __commonJS((exports, module) => {
46
48
  resolveHostHeaderConfig: () => resolveHostHeaderConfig
47
49
  });
48
50
  module.exports = __toCommonJS(index_exports);
49
- var import_protocol_http = require_dist_cjs3();
51
+ var import_protocol_http = require_dist_cjs4();
50
52
  function resolveHostHeaderConfig(input) {
51
53
  return input;
52
54
  }
@@ -178,7 +180,7 @@ var require_dist_cjs13 = __commonJS((exports, module) => {
178
180
  recursionDetectionMiddleware: () => recursionDetectionMiddleware
179
181
  });
180
182
  module.exports = __toCommonJS(index_exports);
181
- var import_protocol_http = require_dist_cjs3();
183
+ var import_protocol_http = require_dist_cjs4();
182
184
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
183
185
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
184
186
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
@@ -1098,7 +1100,7 @@ var require_dist_cjs16 = __commonJS((exports, module) => {
1098
1100
  }
1099
1101
  __name(resolveUserAgentConfig, "resolveUserAgentConfig");
1100
1102
  var import_util_endpoints = require_dist_cjs15();
1101
- var import_protocol_http = require_dist_cjs3();
1103
+ var import_protocol_http = require_dist_cjs4();
1102
1104
  var import_core2 = require_dist_cjs10();
1103
1105
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
1104
1106
  async function checkFeatures(context, config, args) {
@@ -1495,7 +1497,7 @@ var require_dist_cjs19 = __commonJS((exports, module) => {
1495
1497
  getContentLengthPlugin: () => getContentLengthPlugin
1496
1498
  });
1497
1499
  module.exports = __toCommonJS(src_exports);
1498
- var import_protocol_http = require_dist_cjs3();
1500
+ var import_protocol_http = require_dist_cjs4();
1499
1501
  var CONTENT_LENGTH_HEADER = "content-length";
1500
1502
  function contentLengthMiddleware(bodyLengthChecker) {
1501
1503
  return (next) => async (args) => {
@@ -2179,7 +2181,7 @@ var require_dist_cjs24 = __commonJS((exports, module) => {
2179
2181
  });
2180
2182
  };
2181
2183
  }, "endpointMiddleware");
2182
- var import_middleware_serde = require_dist_cjs4();
2184
+ var import_middleware_serde = require_dist_cjs3();
2183
2185
  var endpointMiddlewareOptions = {
2184
2186
  step: "serialize",
2185
2187
  tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
@@ -2635,7 +2637,7 @@ var require_dist_cjs27 = __commonJS((exports, module) => {
2635
2637
  retryMiddlewareOptions: () => retryMiddlewareOptions
2636
2638
  });
2637
2639
  module.exports = __toCommonJS(src_exports);
2638
- var import_protocol_http = require_dist_cjs3();
2640
+ var import_protocol_http = require_dist_cjs4();
2639
2641
  var import_uuid = require_dist();
2640
2642
  var import_util_retry = require_dist_cjs26();
2641
2643
  var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  getProfileName,
4
4
  parseKnownFiles
5
- } from "./chunk-yyvh669b.js";
6
- import"./chunk-mbvdyeyw.js";
5
+ } from "./chunk-bf8bq8pc.js";
7
6
  import {
8
7
  CredentialsProviderError
9
8
  } from "./chunk-zzerxbrm.js";
10
9
  import {
11
10
  require_client
12
11
  } from "./chunk-frw3va9v.js";
12
+ import"./chunk-saqpg5nd.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-9v6qtbez.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getProfileName,
3
3
  loadSharedConfigFiles
4
- } from "./chunk-yyvh669b.js";
4
+ } from "./chunk-bf8bq8pc.js";
5
5
  import {
6
6
  CredentialsProviderError,
7
7
  chain,
@@ -1,121 +1,11 @@
1
+ import {
2
+ require_dist_cjs
3
+ } from "./chunk-saqpg5nd.js";
1
4
  import {
2
5
  __commonJS,
3
6
  __require
4
7
  } from "./chunk-9v6qtbez.js";
5
8
 
6
- // ../../../../node_modules/@smithy/types/dist-cjs/index.js
7
- var require_dist_cjs = __commonJS((exports, module) => {
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
- var __export = (target, all) => {
14
- for (var name in all)
15
- __defProp(target, name, { get: all[name], enumerable: true });
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
- var src_exports = {};
27
- __export(src_exports, {
28
- AlgorithmId: () => AlgorithmId,
29
- EndpointURLScheme: () => EndpointURLScheme,
30
- FieldPosition: () => FieldPosition,
31
- HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
32
- HttpAuthLocation: () => HttpAuthLocation,
33
- IniSectionType: () => IniSectionType,
34
- RequestHandlerProtocol: () => RequestHandlerProtocol,
35
- SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
36
- getDefaultClientConfiguration: () => getDefaultClientConfiguration,
37
- resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
38
- });
39
- module.exports = __toCommonJS(src_exports);
40
- var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
41
- HttpAuthLocation2["HEADER"] = "header";
42
- HttpAuthLocation2["QUERY"] = "query";
43
- return HttpAuthLocation2;
44
- })(HttpAuthLocation || {});
45
- var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
46
- HttpApiKeyAuthLocation2["HEADER"] = "header";
47
- HttpApiKeyAuthLocation2["QUERY"] = "query";
48
- return HttpApiKeyAuthLocation2;
49
- })(HttpApiKeyAuthLocation || {});
50
- var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
51
- EndpointURLScheme2["HTTP"] = "http";
52
- EndpointURLScheme2["HTTPS"] = "https";
53
- return EndpointURLScheme2;
54
- })(EndpointURLScheme || {});
55
- var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
56
- AlgorithmId2["MD5"] = "md5";
57
- AlgorithmId2["CRC32"] = "crc32";
58
- AlgorithmId2["CRC32C"] = "crc32c";
59
- AlgorithmId2["SHA1"] = "sha1";
60
- AlgorithmId2["SHA256"] = "sha256";
61
- return AlgorithmId2;
62
- })(AlgorithmId || {});
63
- var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
64
- const checksumAlgorithms = [];
65
- if (runtimeConfig.sha256 !== undefined) {
66
- checksumAlgorithms.push({
67
- algorithmId: () => "sha256",
68
- checksumConstructor: () => runtimeConfig.sha256
69
- });
70
- }
71
- if (runtimeConfig.md5 != null) {
72
- checksumAlgorithms.push({
73
- algorithmId: () => "md5",
74
- checksumConstructor: () => runtimeConfig.md5
75
- });
76
- }
77
- return {
78
- addChecksumAlgorithm(algo) {
79
- checksumAlgorithms.push(algo);
80
- },
81
- checksumAlgorithms() {
82
- return checksumAlgorithms;
83
- }
84
- };
85
- }, "getChecksumConfiguration");
86
- var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
87
- const runtimeConfig = {};
88
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
89
- runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
90
- });
91
- return runtimeConfig;
92
- }, "resolveChecksumRuntimeConfig");
93
- var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
94
- return getChecksumConfiguration(runtimeConfig);
95
- }, "getDefaultClientConfiguration");
96
- var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
97
- return resolveChecksumRuntimeConfig(config);
98
- }, "resolveDefaultRuntimeConfig");
99
- var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
100
- FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
101
- FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
102
- return FieldPosition2;
103
- })(FieldPosition || {});
104
- var SMITHY_CONTEXT_KEY = "__smithy_context";
105
- var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
106
- IniSectionType2["PROFILE"] = "profile";
107
- IniSectionType2["SSO_SESSION"] = "sso-session";
108
- IniSectionType2["SERVICES"] = "services";
109
- return IniSectionType2;
110
- })(IniSectionType || {});
111
- var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
112
- RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
113
- RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
114
- RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
115
- return RequestHandlerProtocol2;
116
- })(RequestHandlerProtocol || {});
117
- });
118
-
119
9
  // ../../../../node_modules/@smithy/protocol-http/dist-cjs/index.js
120
10
  var require_dist_cjs2 = __commonJS((exports, module) => {
121
11
  var __defProp = Object.defineProperty;
@@ -2373,4 +2263,4 @@ var require_protocols = __commonJS((exports, module) => {
2373
2263
  };
2374
2264
  });
2375
2265
 
2376
- export { require_dist_cjs, require_dist_cjs2 as require_dist_cjs1, require_dist_cjs6 as require_dist_cjs2, require_dist_cjs7 as require_dist_cjs3, require_dist_cjs8 as require_dist_cjs4, require_dist_cjs9 as require_dist_cjs5, require_dist_cjs3 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 };
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 };
@@ -1,11 +1,9 @@
1
1
  import {
2
- AlgorithmId,
3
- SMITHY_CONTEXT_KEY
4
- } from "./chunk-mbvdyeyw.js";
5
- import {
6
- require_dist_cjs1 as require_dist_cjs,
7
2
  require_protocols
8
- } from "./chunk-90y2wmyz.js";
3
+ } from "./chunk-a7k3cdby.js";
4
+ import {
5
+ require_dist_cjs
6
+ } from "./chunk-saqpg5nd.js";
9
7
  import {
10
8
  __toESM
11
9
  } from "./chunk-9v6qtbez.js";
@@ -313,6 +311,8 @@ class Client {
313
311
  }
314
312
 
315
313
  // ../../../../node_modules/@smithy/smithy-client/dist-es/command.js
314
+ var import_types = __toESM(require_dist_cjs(), 1);
315
+
316
316
  class Command {
317
317
  constructor() {
318
318
  this.middlewareStack = constructStack();
@@ -332,7 +332,7 @@ class Command {
332
332
  commandName,
333
333
  inputFilterSensitiveLog,
334
334
  outputFilterSensitiveLog,
335
- [SMITHY_CONTEXT_KEY]: {
335
+ [import_types.SMITHY_CONTEXT_KEY]: {
336
336
  commandInstance: this,
337
337
  ...smithyContext
338
338
  },
@@ -774,10 +774,11 @@ var emitWarningIfUnsupportedVersion = (version) => {
774
774
  // ../../../../node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js
775
775
  var import_protocols2 = __toESM(require_protocols(), 1);
776
776
  // ../../../../node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js
777
+ var import_types2 = __toESM(require_dist_cjs(), 1);
777
778
  var getChecksumConfiguration = (runtimeConfig) => {
778
779
  const checksumAlgorithms = [];
779
- for (const id in AlgorithmId) {
780
- const algorithmId = AlgorithmId[id];
780
+ for (const id in import_types2.AlgorithmId) {
781
+ const algorithmId = import_types2.AlgorithmId[id];
781
782
  if (runtimeConfig[algorithmId] === undefined) {
782
783
  continue;
783
784
  }
@@ -965,9 +966,90 @@ var _json = (obj) => {
965
966
  }
966
967
  return obj;
967
968
  };
968
- // ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
969
- var import_protocol_http = __toESM(require_dist_cjs(), 1);
970
-
969
+ // ../../../../node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
970
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
971
+ return {
972
+ setHttpHandler(handler) {
973
+ runtimeConfig.httpHandler = handler;
974
+ },
975
+ httpHandler() {
976
+ return runtimeConfig.httpHandler;
977
+ },
978
+ updateHttpClientConfig(key, value) {
979
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
980
+ },
981
+ httpHandlerConfigs() {
982
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
983
+ }
984
+ };
985
+ };
986
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
987
+ return {
988
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
989
+ };
990
+ };
991
+ // ../../../../node_modules/@smithy/protocol-http/dist-es/Field.js
992
+ var import_types3 = __toESM(require_dist_cjs(), 1);
993
+ // ../../../../node_modules/@smithy/protocol-http/dist-es/httpRequest.js
994
+ class HttpRequest {
995
+ constructor(options) {
996
+ this.method = options.method || "GET";
997
+ this.hostname = options.hostname || "localhost";
998
+ this.port = options.port;
999
+ this.query = options.query || {};
1000
+ this.headers = options.headers || {};
1001
+ this.body = options.body;
1002
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
1003
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
1004
+ this.username = options.username;
1005
+ this.password = options.password;
1006
+ this.fragment = options.fragment;
1007
+ }
1008
+ static clone(request) {
1009
+ const cloned = new HttpRequest({
1010
+ ...request,
1011
+ headers: { ...request.headers }
1012
+ });
1013
+ if (cloned.query) {
1014
+ cloned.query = cloneQuery(cloned.query);
1015
+ }
1016
+ return cloned;
1017
+ }
1018
+ static isInstance(request) {
1019
+ if (!request) {
1020
+ return false;
1021
+ }
1022
+ const req = request;
1023
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
1024
+ }
1025
+ clone() {
1026
+ return HttpRequest.clone(this);
1027
+ }
1028
+ }
1029
+ function cloneQuery(query) {
1030
+ return Object.keys(query).reduce((carry, paramName) => {
1031
+ const param = query[paramName];
1032
+ return {
1033
+ ...carry,
1034
+ [paramName]: Array.isArray(param) ? [...param] : param
1035
+ };
1036
+ }, {});
1037
+ }
1038
+ // ../../../../node_modules/@smithy/protocol-http/dist-es/httpResponse.js
1039
+ class HttpResponse {
1040
+ constructor(options) {
1041
+ this.statusCode = options.statusCode;
1042
+ this.reason = options.reason;
1043
+ this.headers = options.headers || {};
1044
+ this.body = options.body;
1045
+ }
1046
+ static isInstance(response) {
1047
+ if (!response)
1048
+ return false;
1049
+ const resp = response;
1050
+ return typeof resp.statusCode === "number" && typeof resp.headers === "object";
1051
+ }
1052
+ }
971
1053
  // ../../../../node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js
972
1054
  var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
973
1055
  var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
@@ -1098,7 +1180,7 @@ var setSocketTimeout = (request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT)
1098
1180
  // ../../../../node_modules/@smithy/node-http-handler/dist-es/write-request-body.js
1099
1181
  import { Readable } from "node:stream";
1100
1182
  var MIN_WAIT_TIME = 6000;
1101
- async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
1183
+ async function writeRequestBody(httpRequest2, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
1102
1184
  const headers = request.headers ?? {};
1103
1185
  const expect = headers["Expect"] || headers["expect"];
1104
1186
  let timeoutId = -1;
@@ -1109,15 +1191,15 @@ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN
1109
1191
  timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
1110
1192
  }),
1111
1193
  new Promise((resolve) => {
1112
- httpRequest.on("continue", () => {
1194
+ httpRequest2.on("continue", () => {
1113
1195
  timing.clearTimeout(timeoutId);
1114
1196
  resolve(true);
1115
1197
  });
1116
- httpRequest.on("response", () => {
1198
+ httpRequest2.on("response", () => {
1117
1199
  timing.clearTimeout(timeoutId);
1118
1200
  resolve(false);
1119
1201
  });
1120
- httpRequest.on("error", () => {
1202
+ httpRequest2.on("error", () => {
1121
1203
  timing.clearTimeout(timeoutId);
1122
1204
  resolve(false);
1123
1205
  });
@@ -1125,28 +1207,28 @@ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN
1125
1207
  ]);
1126
1208
  }
1127
1209
  if (sendBody) {
1128
- writeBody(httpRequest, request.body);
1210
+ writeBody(httpRequest2, request.body);
1129
1211
  }
1130
1212
  }
1131
- function writeBody(httpRequest, body) {
1213
+ function writeBody(httpRequest2, body) {
1132
1214
  if (body instanceof Readable) {
1133
- body.pipe(httpRequest);
1215
+ body.pipe(httpRequest2);
1134
1216
  return;
1135
1217
  }
1136
1218
  if (body) {
1137
1219
  if (Buffer.isBuffer(body) || typeof body === "string") {
1138
- httpRequest.end(body);
1220
+ httpRequest2.end(body);
1139
1221
  return;
1140
1222
  }
1141
1223
  const uint8 = body;
1142
1224
  if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
1143
- httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
1225
+ httpRequest2.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
1144
1226
  return;
1145
1227
  }
1146
- httpRequest.end(Buffer.from(body));
1228
+ httpRequest2.end(Buffer.from(body));
1147
1229
  return;
1148
1230
  }
1149
- httpRequest.end();
1231
+ httpRequest2.end();
1150
1232
  }
1151
1233
 
1152
1234
  // ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
@@ -1284,13 +1366,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1284
1366
  };
1285
1367
  const requestFunc = isSSL ? hsRequest : hRequest;
1286
1368
  const req = requestFunc(nodeHttpsOptions, (res) => {
1287
- const httpResponse = new import_protocol_http.HttpResponse({
1369
+ const httpResponse2 = new HttpResponse({
1288
1370
  statusCode: res.statusCode || -1,
1289
1371
  reason: res.statusMessage,
1290
1372
  headers: getTransformedHeaders(res.headers),
1291
1373
  body: res
1292
1374
  });
1293
- resolve({ response: httpResponse });
1375
+ resolve({ response: httpResponse2 });
1294
1376
  });
1295
1377
  req.on("error", (err) => {
1296
1378
  if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
@@ -1342,8 +1424,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1342
1424
  return this.config ?? {};
1343
1425
  }
1344
1426
  }
1345
- // ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js
1346
- var import_protocol_http2 = __toESM(require_dist_cjs(), 1);
1347
1427
  // ../../../../node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
1348
1428
  import { Writable } from "node:stream";
1349
1429
 
@@ -1399,4 +1479,4 @@ async function collectReadableStream(stream) {
1399
1479
  }
1400
1480
  return collected;
1401
1481
  }
1402
- export { Client, Command, SENSITIVE_STRING, expectBoolean, expectInt32, expectNonNull, expectObject, expectString, limitedParseDouble, parseRfc3339DateTime, ServiceException, decorateServiceException, withBaseException, loadConfigsForDefaultMode, emitWarningIfUnsupportedVersion, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, isSerializableHeaderValue, NoOpLogger, map, take, _json, NodeHttpHandler, streamCollector };
1482
+ export { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, HttpRequest, HttpResponse, Client, Command, SENSITIVE_STRING, expectBoolean, expectInt32, expectNonNull, expectObject, expectString, limitedParseDouble, parseRfc3339DateTime, ServiceException, decorateServiceException, withBaseException, loadConfigsForDefaultMode, emitWarningIfUnsupportedVersion, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, isSerializableHeaderValue, NoOpLogger, map, take, _json, NodeHttpHandler, streamCollector };
@@ -1,6 +1,9 @@
1
1
  import {
2
- IniSectionType
3
- } from "./chunk-mbvdyeyw.js";
2
+ require_dist_cjs
3
+ } from "./chunk-saqpg5nd.js";
4
+ import {
5
+ __toESM
6
+ } from "./chunk-9v6qtbez.js";
4
7
 
5
8
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
6
9
  var ENV_PROFILE = "AWS_PROFILE";
@@ -38,19 +41,23 @@ var getHomeDir = () => {
38
41
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
39
42
  var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
40
43
 
44
+ // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
45
+ var import_types3 = __toESM(require_dist_cjs(), 1);
46
+
41
47
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
42
48
  import { join as join3 } from "node:path";
43
49
 
44
50
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
51
+ var import_types = __toESM(require_dist_cjs(), 1);
45
52
  var getConfigData = (data) => Object.entries(data).filter(([key]) => {
46
53
  const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
47
54
  if (indexOfSeparator === -1) {
48
55
  return false;
49
56
  }
50
- return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
57
+ return Object.values(import_types.IniSectionType).includes(key.substring(0, indexOfSeparator));
51
58
  }).reduce((acc, [key, value]) => {
52
59
  const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
53
- const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
60
+ const updatedKey = key.substring(0, indexOfSeparator) === import_types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
54
61
  acc[updatedKey] = value;
55
62
  return acc;
56
63
  }, {
@@ -63,6 +70,7 @@ var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
63
70
  var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
64
71
 
65
72
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
73
+ var import_types2 = __toESM(require_dist_cjs(), 1);
66
74
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
67
75
  var profileNameBlockList = ["__proto__", "profile __proto__"];
68
76
  var parseIni = (iniData) => {
@@ -79,7 +87,7 @@ var parseIni = (iniData) => {
79
87
  const matches = prefixKeyRegex.exec(sectionName);
80
88
  if (matches) {
81
89
  const [, prefix, , name] = matches;
82
- if (Object.values(IniSectionType).includes(prefix)) {
90
+ if (Object.values(import_types2.IniSectionType).includes(prefix)) {
83
91
  currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
84
92
  }
85
93
  } else {
@@ -152,7 +160,7 @@ var loadSharedConfigFiles = async (init = {}) => {
152
160
  };
153
161
 
154
162
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
155
- var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
163
+ var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(import_types3.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
156
164
 
157
165
  // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
158
166
  var swallowError2 = () => ({});