monorise 1.1.0-dev.0 → 1.1.0-dev.2

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 (73) hide show
  1. package/dist/base/index.d.ts +27 -1
  2. package/dist/base/index.js +3 -1
  3. package/dist/base/index.js.map +1 -1
  4. package/dist/core/index.d.ts +9 -3
  5. package/dist/core/index.js +55 -30
  6. package/dist/core/index.js.map +1 -1
  7. package/dist/react/{chunk-4Y4KWGJD.js → chunk-2QOYO3GF.js} +2 -2
  8. package/dist/react/{chunk-DRH2BB7I.js → chunk-4WSYM746.js} +4 -4
  9. package/dist/react/{chunk-XCDCVRJR.js → chunk-5XIRNUBL.js} +2 -2
  10. package/dist/react/{chunk-MO35V2Y7.js → chunk-7JDOKZGQ.js} +5 -5
  11. package/dist/react/chunk-BJXCFDMF.js +15 -0
  12. package/dist/react/{chunk-UC3E72G7.js.map → chunk-BJXCFDMF.js.map} +1 -1
  13. package/dist/react/{chunk-YNFQEPO5.js → chunk-BUTF5RJU.js} +2 -2
  14. package/dist/react/{chunk-EQ3PKQ2S.js → chunk-DTRWUIDH.js} +2 -2
  15. package/dist/react/{chunk-UQPQBWEQ.js → chunk-GFVCNWVT.js} +2 -2
  16. package/dist/react/{chunk-B3XDGUFO.js → chunk-JT5EZZSL.js} +4 -4
  17. package/dist/react/{chunk-4D22OCZG.js → chunk-KLXK4V6G.js} +2 -2
  18. package/dist/react/{chunk-H64MMAL7.js → chunk-LJLMKEKI.js} +4 -4
  19. package/dist/react/{chunk-CQBOIXWK.js → chunk-MIXAYX55.js} +6 -1
  20. package/dist/react/{chunk-BPBCUO2Z.js → chunk-RPNCWADG.js} +2 -2
  21. package/dist/react/{chunk-XOYAZDIH.js → chunk-S6RDMHHH.js} +3 -3
  22. package/dist/react/{chunk-757E5UYA.js → chunk-U6RIOMF4.js} +2 -2
  23. package/dist/react/{chunk-UHMKB3OR.js → chunk-WCRLJFBW.js} +9 -9
  24. package/dist/react/{chunk-4N3P4ONH.js → chunk-YF6S7S36.js} +8 -8
  25. package/dist/react/{dist-es-VU33JFTZ.js → dist-es-5WYA7CWK.js} +6 -6
  26. package/dist/react/{dist-es-5GDBXNKQ.js → dist-es-CR5AOOCO.js} +7 -7
  27. package/dist/react/{dist-es-NRIS3TYJ.js → dist-es-KZ3GLAJI.js} +15 -15
  28. package/dist/react/{dist-es-VCXAEYYN.js → dist-es-R4TRTT45.js} +4 -4
  29. package/dist/react/{dist-es-IWIE5JLA.js → dist-es-SKDPAJEW.js} +6 -6
  30. package/dist/react/{dist-es-B3JDGWY6.js → dist-es-TOHBZNTZ.js} +5 -5
  31. package/dist/react/{dist-es-35AO47NO.js → dist-es-XNAC47MK.js} +4 -4
  32. package/dist/react/{event-streams-OSOTOTTP.js → event-streams-WAZW4P3K.js} +2 -2
  33. package/dist/react/index.js +343 -300
  34. package/dist/react/index.js.map +1 -1
  35. package/dist/react/{loadSso-ME7MKAM3.js → loadSso-KXVD6CBM.js} +13 -13
  36. package/dist/react/{service.config-ZJEZ6EKA-FC2TR3GH.js → service.config-I7RKP6FE.js} +3 -3
  37. package/dist/react/{signin-LOXYIE5I.js → signin-SEY3FDQ5.js} +14 -14
  38. package/dist/react/{sso-oidc-X63KRRLO.js → sso-oidc-REODVHH5.js} +14 -14
  39. package/dist/react/{sts-OXBEY7HY.js → sts-I3M4QP37.js} +12 -12
  40. package/dist/react/websocket-OSLLJSNO.js +10 -0
  41. package/package.json +1 -1
  42. package/dist/react/chunk-UC3E72G7.js +0 -73
  43. package/dist/react/websocket-QHA7SQXG.js +0 -10
  44. /package/dist/react/{chunk-4Y4KWGJD.js.map → chunk-2QOYO3GF.js.map} +0 -0
  45. /package/dist/react/{chunk-DRH2BB7I.js.map → chunk-4WSYM746.js.map} +0 -0
  46. /package/dist/react/{chunk-XCDCVRJR.js.map → chunk-5XIRNUBL.js.map} +0 -0
  47. /package/dist/react/{chunk-MO35V2Y7.js.map → chunk-7JDOKZGQ.js.map} +0 -0
  48. /package/dist/react/{chunk-YNFQEPO5.js.map → chunk-BUTF5RJU.js.map} +0 -0
  49. /package/dist/react/{chunk-EQ3PKQ2S.js.map → chunk-DTRWUIDH.js.map} +0 -0
  50. /package/dist/react/{chunk-UQPQBWEQ.js.map → chunk-GFVCNWVT.js.map} +0 -0
  51. /package/dist/react/{chunk-B3XDGUFO.js.map → chunk-JT5EZZSL.js.map} +0 -0
  52. /package/dist/react/{chunk-4D22OCZG.js.map → chunk-KLXK4V6G.js.map} +0 -0
  53. /package/dist/react/{chunk-H64MMAL7.js.map → chunk-LJLMKEKI.js.map} +0 -0
  54. /package/dist/react/{chunk-CQBOIXWK.js.map → chunk-MIXAYX55.js.map} +0 -0
  55. /package/dist/react/{chunk-BPBCUO2Z.js.map → chunk-RPNCWADG.js.map} +0 -0
  56. /package/dist/react/{chunk-XOYAZDIH.js.map → chunk-S6RDMHHH.js.map} +0 -0
  57. /package/dist/react/{chunk-757E5UYA.js.map → chunk-U6RIOMF4.js.map} +0 -0
  58. /package/dist/react/{chunk-UHMKB3OR.js.map → chunk-WCRLJFBW.js.map} +0 -0
  59. /package/dist/react/{chunk-4N3P4ONH.js.map → chunk-YF6S7S36.js.map} +0 -0
  60. /package/dist/react/{dist-es-VU33JFTZ.js.map → dist-es-5WYA7CWK.js.map} +0 -0
  61. /package/dist/react/{dist-es-5GDBXNKQ.js.map → dist-es-CR5AOOCO.js.map} +0 -0
  62. /package/dist/react/{dist-es-NRIS3TYJ.js.map → dist-es-KZ3GLAJI.js.map} +0 -0
  63. /package/dist/react/{dist-es-VCXAEYYN.js.map → dist-es-R4TRTT45.js.map} +0 -0
  64. /package/dist/react/{dist-es-IWIE5JLA.js.map → dist-es-SKDPAJEW.js.map} +0 -0
  65. /package/dist/react/{dist-es-B3JDGWY6.js.map → dist-es-TOHBZNTZ.js.map} +0 -0
  66. /package/dist/react/{dist-es-35AO47NO.js.map → dist-es-XNAC47MK.js.map} +0 -0
  67. /package/dist/react/{event-streams-OSOTOTTP.js.map → event-streams-WAZW4P3K.js.map} +0 -0
  68. /package/dist/react/{loadSso-ME7MKAM3.js.map → loadSso-KXVD6CBM.js.map} +0 -0
  69. /package/dist/react/{service.config-ZJEZ6EKA-FC2TR3GH.js.map → service.config-I7RKP6FE.js.map} +0 -0
  70. /package/dist/react/{signin-LOXYIE5I.js.map → signin-SEY3FDQ5.js.map} +0 -0
  71. /package/dist/react/{sso-oidc-X63KRRLO.js.map → sso-oidc-REODVHH5.js.map} +0 -0
  72. /package/dist/react/{sts-OXBEY7HY.js.map → sts-I3M4QP37.js.map} +0 -0
  73. /package/dist/react/{websocket-QHA7SQXG.js.map → websocket-OSLLJSNO.js.map} +0 -0
@@ -1,26 +1,20 @@
1
1
  import {
2
2
  RpcProtocol,
3
3
  SignatureV4MultiRegion
4
- } from "./chunk-H64MMAL7.js";
5
- import {
6
- __async,
7
- __export,
8
- __objRest as __objRest2,
9
- __spreadProps as __spreadProps2,
10
- __spreadValues as __spreadValues2
11
- } from "./chunk-UC3E72G7.js";
4
+ } from "./chunk-LJLMKEKI.js";
5
+ import "./chunk-BJXCFDMF.js";
12
6
  import {
13
7
  WebSocketManager
14
- } from "./chunk-EQ3PKQ2S.js";
8
+ } from "./chunk-DTRWUIDH.js";
15
9
  import {
16
10
  ENV_KEY,
17
11
  ENV_SECRET,
18
12
  fromEnv
19
- } from "./chunk-XOYAZDIH.js";
13
+ } from "./chunk-S6RDMHHH.js";
20
14
  import {
21
15
  JsonCodec,
22
16
  loadRestJsonErrorCode
23
- } from "./chunk-B3XDGUFO.js";
17
+ } from "./chunk-JT5EZZSL.js";
24
18
  import {
25
19
  AwsSdkSigV4ASigner,
26
20
  AwsSdkSigV4Signer,
@@ -82,24 +76,24 @@ import {
82
76
  resolveRetryConfig,
83
77
  resolveUserAgentConfig,
84
78
  setFeature
85
- } from "./chunk-UHMKB3OR.js";
79
+ } from "./chunk-WCRLJFBW.js";
86
80
  import {
87
81
  loadConfig,
88
82
  parseUrl
89
- } from "./chunk-MO35V2Y7.js";
83
+ } from "./chunk-7JDOKZGQ.js";
90
84
  import {
91
85
  chain
92
- } from "./chunk-YNFQEPO5.js";
86
+ } from "./chunk-BUTF5RJU.js";
93
87
  import {
94
88
  ENV_PROFILE
95
- } from "./chunk-BPBCUO2Z.js";
89
+ } from "./chunk-RPNCWADG.js";
96
90
  import {
97
91
  NodeHttpHandler,
98
92
  fromBase64,
99
93
  streamCollector,
100
94
  toBase64
101
- } from "./chunk-757E5UYA.js";
102
- import "./chunk-4D22OCZG.js";
95
+ } from "./chunk-U6RIOMF4.js";
96
+ import "./chunk-KLXK4V6G.js";
103
97
  import {
104
98
  fromUtf8,
105
99
  toUtf8
@@ -107,9 +101,10 @@ import {
107
101
  import "./chunk-A5TI2FW3.js";
108
102
  import {
109
103
  CredentialsProviderError
110
- } from "./chunk-XCDCVRJR.js";
104
+ } from "./chunk-5XIRNUBL.js";
111
105
  import {
112
106
  __commonJS,
107
+ __export,
113
108
  __objRest,
114
109
  __privateAdd,
115
110
  __privateGet,
@@ -121,7 +116,7 @@ import {
121
116
  __spreadProps,
122
117
  __spreadValues,
123
118
  __toESM
124
- } from "./chunk-CQBOIXWK.js";
119
+ } from "./chunk-MIXAYX55.js";
125
120
 
126
121
  // ../../node_modules/http-status/lib/index.js
127
122
  var require_lib = __commonJS({
@@ -2843,7 +2838,7 @@ var initWebSocketActions = (monoriseStore, httpActions) => {
2843
2838
  if (wsManagerRef.current) {
2844
2839
  wsManagerRef.current.disconnect();
2845
2840
  }
2846
- const { WebSocketManager: WsManagerClass } = await import("./websocket-QHA7SQXG.js");
2841
+ const { WebSocketManager: WsManagerClass } = await import("./websocket-OSLLJSNO.js");
2847
2842
  const wsUrlWithTicket = `${wsUrl}?ticket=${encodeURIComponent(ticket)}`;
2848
2843
  const manager = new WsManagerClass(wsUrlWithTicket, "");
2849
2844
  manager.disableAutoReconnect = true;
@@ -3648,16 +3643,16 @@ var compose = (middleware, onError, onNotFound) => {
3648
3643
  index = i2;
3649
3644
  let res;
3650
3645
  let isError = false;
3651
- let handler;
3646
+ let handler6;
3652
3647
  if (middleware[i2]) {
3653
- handler = middleware[i2][0][0];
3648
+ handler6 = middleware[i2][0][0];
3654
3649
  context.req.routeIndex = i2;
3655
3650
  } else {
3656
- handler = i2 === middleware.length && next || void 0;
3651
+ handler6 = i2 === middleware.length && next || void 0;
3657
3652
  }
3658
- if (handler) {
3653
+ if (handler6) {
3659
3654
  try {
3660
- res = await handler(context, () => dispatch(i2 + 1));
3655
+ res = await handler6(context, () => dispatch(i2 + 1));
3661
3656
  } catch (err) {
3662
3657
  if (err instanceof Error && onError) {
3663
3658
  context.error = err;
@@ -4741,8 +4736,8 @@ var Hono = (_a3 = class {
4741
4736
  * })
4742
4737
  * ```
4743
4738
  */
4744
- __publicField(this, "onError", (handler) => {
4745
- this.errorHandler = handler;
4739
+ __publicField(this, "onError", (handler6) => {
4740
+ this.errorHandler = handler6;
4746
4741
  return this;
4747
4742
  });
4748
4743
  /**
@@ -4760,8 +4755,8 @@ var Hono = (_a3 = class {
4760
4755
  * })
4761
4756
  * ```
4762
4757
  */
4763
- __publicField(this, "notFound", (handler) => {
4764
- __privateSet(this, _notFoundHandler2, handler);
4758
+ __publicField(this, "notFound", (handler6) => {
4759
+ __privateSet(this, _notFoundHandler2, handler6);
4765
4760
  return this;
4766
4761
  });
4767
4762
  /**
@@ -4835,8 +4830,8 @@ var Hono = (_a3 = class {
4835
4830
  } else {
4836
4831
  __privateMethod(this, __Hono_instances, addRoute_fn).call(this, method, __privateGet(this, _path2), args1);
4837
4832
  }
4838
- args.forEach((handler) => {
4839
- __privateMethod(this, __Hono_instances, addRoute_fn).call(this, method, __privateGet(this, _path2), handler);
4833
+ args.forEach((handler6) => {
4834
+ __privateMethod(this, __Hono_instances, addRoute_fn).call(this, method, __privateGet(this, _path2), handler6);
4840
4835
  });
4841
4836
  return this;
4842
4837
  };
@@ -4845,8 +4840,8 @@ var Hono = (_a3 = class {
4845
4840
  for (const p2 of [path].flat()) {
4846
4841
  __privateSet(this, _path2, p2);
4847
4842
  for (const m2 of [method].flat()) {
4848
- handlers.map((handler) => {
4849
- __privateMethod(this, __Hono_instances, addRoute_fn).call(this, m2.toUpperCase(), __privateGet(this, _path2), handler);
4843
+ handlers.map((handler6) => {
4844
+ __privateMethod(this, __Hono_instances, addRoute_fn).call(this, m2.toUpperCase(), __privateGet(this, _path2), handler6);
4850
4845
  });
4851
4846
  }
4852
4847
  }
@@ -4859,8 +4854,8 @@ var Hono = (_a3 = class {
4859
4854
  __privateSet(this, _path2, "*");
4860
4855
  handlers.unshift(arg1);
4861
4856
  }
4862
- handlers.forEach((handler) => {
4863
- __privateMethod(this, __Hono_instances, addRoute_fn).call(this, METHOD_NAME_ALL, __privateGet(this, _path2), handler);
4857
+ handlers.forEach((handler6) => {
4858
+ __privateMethod(this, __Hono_instances, addRoute_fn).call(this, METHOD_NAME_ALL, __privateGet(this, _path2), handler6);
4864
4859
  });
4865
4860
  return this;
4866
4861
  };
@@ -4890,14 +4885,14 @@ var Hono = (_a3 = class {
4890
4885
  const subApp = this.basePath(path);
4891
4886
  app.routes.map((r2) => {
4892
4887
  var _a11;
4893
- let handler;
4888
+ let handler6;
4894
4889
  if (app.errorHandler === errorHandler) {
4895
- handler = r2.handler;
4890
+ handler6 = r2.handler;
4896
4891
  } else {
4897
- handler = async (c2, next) => (await compose([], app.errorHandler)(c2, () => r2.handler(c2, next))).res;
4898
- handler[COMPOSED_HANDLER] = r2.handler;
4892
+ handler6 = async (c2, next) => (await compose([], app.errorHandler)(c2, () => r2.handler(c2, next))).res;
4893
+ handler6[COMPOSED_HANDLER] = r2.handler;
4899
4894
  }
4900
- __privateMethod(_a11 = subApp, __Hono_instances, addRoute_fn).call(_a11, r2.method, r2.path, handler);
4895
+ __privateMethod(_a11 = subApp, __Hono_instances, addRoute_fn).call(_a11, r2.method, r2.path, handler6);
4901
4896
  });
4902
4897
  return this;
4903
4898
  }
@@ -4986,14 +4981,14 @@ var Hono = (_a3 = class {
4986
4981
  return new Request(url, request2);
4987
4982
  };
4988
4983
  })());
4989
- const handler = async (c2, next) => {
4984
+ const handler6 = async (c2, next) => {
4990
4985
  const res = await applicationHandler(replaceRequest(c2.req.raw), ...getOptions(c2));
4991
4986
  if (res) {
4992
4987
  return res;
4993
4988
  }
4994
4989
  await next();
4995
4990
  };
4996
- __privateMethod(this, __Hono_instances, addRoute_fn).call(this, METHOD_NAME_ALL, mergePath(path, "*"), handler);
4991
+ __privateMethod(this, __Hono_instances, addRoute_fn).call(this, METHOD_NAME_ALL, mergePath(path, "*"), handler6);
4997
4992
  return this;
4998
4993
  }
4999
4994
  }, _path2 = new WeakMap(), __Hono_instances = new WeakSet(), clone_fn = function() {
@@ -5005,11 +5000,11 @@ var Hono = (_a3 = class {
5005
5000
  __privateSet(clone, _notFoundHandler2, __privateGet(this, _notFoundHandler2));
5006
5001
  clone.routes = this.routes;
5007
5002
  return clone;
5008
- }, _notFoundHandler2 = new WeakMap(), addRoute_fn = function(method, path, handler) {
5003
+ }, _notFoundHandler2 = new WeakMap(), addRoute_fn = function(method, path, handler6) {
5009
5004
  method = method.toUpperCase();
5010
5005
  path = mergePath(this._basePath, path);
5011
- const r2 = { basePath: this._basePath, path, method, handler };
5012
- this.router.add(method, path, [handler, r2]);
5006
+ const r2 = { basePath: this._basePath, path, method, handler: handler6 };
5007
+ this.router.add(method, path, [handler6, r2]);
5013
5008
  this.routes.push(r2);
5014
5009
  }, handleError_fn = function(err, c2) {
5015
5010
  if (err instanceof Error) {
@@ -5344,7 +5339,7 @@ var RegExpRouter = (_a6 = class {
5344
5339
  __privateSet(this, _middleware, { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) });
5345
5340
  __privateSet(this, _routes, { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) });
5346
5341
  }
5347
- add(method, path, handler) {
5342
+ add(method, path, handler6) {
5348
5343
  var _a11;
5349
5344
  const middleware = __privateGet(this, _middleware);
5350
5345
  const routes = __privateGet(this, _routes);
@@ -5377,14 +5372,14 @@ var RegExpRouter = (_a6 = class {
5377
5372
  Object.keys(middleware).forEach((m2) => {
5378
5373
  if (method === METHOD_NAME_ALL || method === m2) {
5379
5374
  Object.keys(middleware[m2]).forEach((p2) => {
5380
- re.test(p2) && middleware[m2][p2].push([handler, paramCount]);
5375
+ re.test(p2) && middleware[m2][p2].push([handler6, paramCount]);
5381
5376
  });
5382
5377
  }
5383
5378
  });
5384
5379
  Object.keys(routes).forEach((m2) => {
5385
5380
  if (method === METHOD_NAME_ALL || method === m2) {
5386
5381
  Object.keys(routes[m2]).forEach(
5387
- (p2) => re.test(p2) && routes[m2][p2].push([handler, paramCount])
5382
+ (p2) => re.test(p2) && routes[m2][p2].push([handler6, paramCount])
5388
5383
  );
5389
5384
  }
5390
5385
  });
@@ -5399,7 +5394,7 @@ var RegExpRouter = (_a6 = class {
5399
5394
  (_a12 = routes[m2])[path2] || (_a12[path2] = [
5400
5395
  ...findMiddleware(middleware[m2], path2) || findMiddleware(middleware[METHOD_NAME_ALL], path2) || []
5401
5396
  ]);
5402
- routes[m2][path2].push([handler, paramCount - len + i2 + 1]);
5397
+ routes[m2][path2].push([handler6, paramCount - len + i2 + 1]);
5403
5398
  }
5404
5399
  });
5405
5400
  }
@@ -5443,11 +5438,11 @@ var SmartRouter = (_a7 = class {
5443
5438
  __privateAdd(this, _routes2, []);
5444
5439
  __privateSet(this, _routers, init.routers);
5445
5440
  }
5446
- add(method, path, handler) {
5441
+ add(method, path, handler6) {
5447
5442
  if (!__privateGet(this, _routes2)) {
5448
5443
  throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT);
5449
5444
  }
5450
- __privateGet(this, _routes2).push([method, path, handler]);
5445
+ __privateGet(this, _routes2).push([method, path, handler6]);
5451
5446
  }
5452
5447
  match(method, path) {
5453
5448
  if (!__privateGet(this, _routes2)) {
@@ -5500,7 +5495,7 @@ var hasChildren = (children) => {
5500
5495
  };
5501
5496
  var _methods, _children2, _patterns, _order, _params, __Node_instances, pushHandlerSets_fn, _a8;
5502
5497
  var Node2 = (_a8 = class {
5503
- constructor(method, handler, children) {
5498
+ constructor(method, handler6, children) {
5504
5499
  __privateAdd(this, __Node_instances);
5505
5500
  __privateAdd(this, _methods);
5506
5501
  __privateAdd(this, _children2);
@@ -5509,14 +5504,14 @@ var Node2 = (_a8 = class {
5509
5504
  __privateAdd(this, _params, emptyParams);
5510
5505
  __privateSet(this, _children2, children || /* @__PURE__ */ Object.create(null));
5511
5506
  __privateSet(this, _methods, []);
5512
- if (method && handler) {
5507
+ if (method && handler6) {
5513
5508
  const m2 = /* @__PURE__ */ Object.create(null);
5514
- m2[method] = { handler, possibleKeys: [], score: 0 };
5509
+ m2[method] = { handler: handler6, possibleKeys: [], score: 0 };
5515
5510
  __privateSet(this, _methods, [m2]);
5516
5511
  }
5517
5512
  __privateSet(this, _patterns, []);
5518
5513
  }
5519
- insert(method, path, handler) {
5514
+ insert(method, path, handler6) {
5520
5515
  __privateSet(this, _order, ++__privateWrapper(this, _order)._);
5521
5516
  let curNode = this;
5522
5517
  const parts = splitRoutingPath(path);
@@ -5542,7 +5537,7 @@ var Node2 = (_a8 = class {
5542
5537
  }
5543
5538
  __privateGet(curNode, _methods).push({
5544
5539
  [method]: {
5545
- handler,
5540
+ handler: handler6,
5546
5541
  possibleKeys: possibleKeys.filter((v2, i2, a2) => a2.indexOf(v2) === i2),
5547
5542
  score: __privateGet(this, _order)
5548
5543
  }
@@ -5639,7 +5634,7 @@ var Node2 = (_a8 = class {
5639
5634
  return a2.score - b2.score;
5640
5635
  });
5641
5636
  }
5642
- return [handlerSets.map(({ handler, params }) => [handler, params])];
5637
+ return [handlerSets.map(({ handler: handler6, params }) => [handler6, params])];
5643
5638
  }
5644
5639
  }, _methods = new WeakMap(), _children2 = new WeakMap(), _patterns = new WeakMap(), _order = new WeakMap(), _params = new WeakMap(), __Node_instances = new WeakSet(), pushHandlerSets_fn = function(handlerSets, node, method, nodeParams, params) {
5645
5640
  var _a11;
@@ -5670,15 +5665,15 @@ var TrieRouter = (_a9 = class {
5670
5665
  __privateAdd(this, _node);
5671
5666
  __privateSet(this, _node, new Node2());
5672
5667
  }
5673
- add(method, path, handler) {
5668
+ add(method, path, handler6) {
5674
5669
  const results = checkOptionalParameter(path);
5675
5670
  if (results) {
5676
5671
  for (let i2 = 0, len = results.length; i2 < len; i2++) {
5677
- __privateGet(this, _node).insert(method, results[i2], handler);
5672
+ __privateGet(this, _node).insert(method, results[i2], handler6);
5678
5673
  }
5679
5674
  return;
5680
5675
  }
5681
- __privateGet(this, _node).insert(method, path, handler);
5676
+ __privateGet(this, _node).insert(method, path, handler6);
5682
5677
  }
5683
5678
  match(method, path) {
5684
5679
  return __privateGet(this, _node).search(method, path);
@@ -5718,7 +5713,7 @@ var Factory = (_a10 = class {
5718
5713
  });
5719
5714
  __publicField(this, "createMiddleware", (middleware) => middleware);
5720
5715
  __publicField(this, "createHandlers", (...handlers) => {
5721
- return handlers.filter((handler) => handler !== void 0);
5716
+ return handlers.filter((handler6) => handler6 !== void 0);
5722
5717
  });
5723
5718
  this.initApp = init == null ? void 0 : init.initApp;
5724
5719
  __privateSet(this, _defaultAppOptions, init == null ? void 0 : init.defaultAppOptions);
@@ -5726,8 +5721,10 @@ var Factory = (_a10 = class {
5726
5721
  }, _defaultAppOptions = new WeakMap(), _a10);
5727
5722
  var createFactory = (init) => new Factory(init);
5728
5723
 
5729
- // ../core/dist/index.js
5724
+ // ../core/middlewares/entity-type-check.ts
5730
5725
  var import_http_status = __toESM(require_lib(), 1);
5726
+
5727
+ // ../core/middlewares/mutual-type-check.ts
5731
5728
  var import_http_status2 = __toESM(require_lib(), 1);
5732
5729
 
5733
5730
  // ../../node_modules/@aws-sdk/client-dynamodb/dist-es/endpoint/EndpointParameters.js
@@ -7062,10 +7059,10 @@ var Scan$ = [
7062
7059
  var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
7063
7060
  var remoteProvider = async (init) => {
7064
7061
  var _a11, _b;
7065
- const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./dist-es-VU33JFTZ.js");
7062
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./dist-es-5WYA7CWK.js");
7066
7063
  if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
7067
7064
  (_a11 = init.logger) == null ? void 0 : _a11.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
7068
- const { fromHttp } = await import("./dist-es-IWIE5JLA.js");
7065
+ const { fromHttp } = await import("./dist-es-SKDPAJEW.js");
7069
7066
  return chain(fromHttp(init), fromContainerMetadata(init));
7070
7067
  }
7071
7068
  if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
@@ -7171,25 +7168,25 @@ var defaultProvider = (init = {}) => memoizeChain([
7171
7168
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
7172
7169
  throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
7173
7170
  }
7174
- const { fromSSO } = await import("./dist-es-5GDBXNKQ.js");
7171
+ const { fromSSO } = await import("./dist-es-CR5AOOCO.js");
7175
7172
  return fromSSO(init)(awsIdentityProperties);
7176
7173
  },
7177
7174
  async (awsIdentityProperties) => {
7178
7175
  var _a11;
7179
7176
  (_a11 = init.logger) == null ? void 0 : _a11.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
7180
- const { fromIni } = await import("./dist-es-NRIS3TYJ.js");
7177
+ const { fromIni } = await import("./dist-es-KZ3GLAJI.js");
7181
7178
  return fromIni(init)(awsIdentityProperties);
7182
7179
  },
7183
7180
  async (awsIdentityProperties) => {
7184
7181
  var _a11;
7185
7182
  (_a11 = init.logger) == null ? void 0 : _a11.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
7186
- const { fromProcess } = await import("./dist-es-35AO47NO.js");
7183
+ const { fromProcess } = await import("./dist-es-XNAC47MK.js");
7187
7184
  return fromProcess(init)(awsIdentityProperties);
7188
7185
  },
7189
7186
  async (awsIdentityProperties) => {
7190
7187
  var _a11;
7191
7188
  (_a11 = init.logger) == null ? void 0 : _a11.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
7192
- const { fromTokenFile } = await import("./dist-es-B3JDGWY6.js");
7189
+ const { fromTokenFile } = await import("./dist-es-TOHBZNTZ.js");
7193
7190
  return fromTokenFile(init)(awsIdentityProperties);
7194
7191
  },
7195
7192
  async () => {
@@ -7815,8 +7812,8 @@ var QueryCommand2 = class extends DynamoDBDocumentClientCommand {
7815
7812
  resolveMiddleware(clientStack, configuration, options) {
7816
7813
  this.addMarshallingMiddleware(configuration);
7817
7814
  const stack = clientStack.concat(this.middlewareStack);
7818
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
7819
- return async () => handler(this.clientCommand);
7815
+ const handler6 = this.clientCommand.resolveMiddleware(stack, configuration, options);
7816
+ return async () => handler6(this.clientCommand);
7820
7817
  }
7821
7818
  };
7822
7819
 
@@ -7849,8 +7846,8 @@ var ScanCommand2 = class extends DynamoDBDocumentClientCommand {
7849
7846
  resolveMiddleware(clientStack, configuration, options) {
7850
7847
  this.addMarshallingMiddleware(configuration);
7851
7848
  const stack = clientStack.concat(this.middlewareStack);
7852
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
7853
- return async () => handler(this.clientCommand);
7849
+ const handler6 = this.clientCommand.resolveMiddleware(stack, configuration, options);
7850
+ return async () => handler6(this.clientCommand);
7854
7851
  }
7855
7852
  };
7856
7853
 
@@ -8163,8 +8160,26 @@ var isContentEncodingBinary = (contentEncoding) => {
8163
8160
  return /^(gzip|deflate|compress|br)/.test(contentEncoding);
8164
8161
  };
8165
8162
 
8166
- // ../core/dist/index.js
8163
+ // ../core/middlewares/api-key-auth.ts
8167
8164
  var import_http_status3 = __toESM(require_lib(), 1);
8165
+ var factory2 = createFactory();
8166
+ var API_KEYS = process.env.API_KEYS ? JSON.parse(process.env.API_KEYS) : [];
8167
+ var apiKeyAuth = factory2.createMiddleware(async (c2, next) => {
8168
+ const xApiKey = c2.req.header("x-api-key");
8169
+ if (c2.req.url.match(/^\/core\/public\//)) {
8170
+ return await next();
8171
+ }
8172
+ if (!xApiKey || Array.isArray(xApiKey) || !API_KEYS.includes(xApiKey)) {
8173
+ c2.status(import_http_status3.default.UNAUTHORIZED);
8174
+ return c2.json({
8175
+ status: import_http_status3.default.UNAUTHORIZED,
8176
+ message: import_http_status3.default["401_MESSAGE"]
8177
+ });
8178
+ }
8179
+ return await next();
8180
+ });
8181
+
8182
+ // ../core/helpers/dependencies.ts
8168
8183
  import { nanoid } from "nanoid";
8169
8184
 
8170
8185
  // ../../node_modules/@aws-sdk/client-eventbridge/dist-es/endpoint/ruleset.js
@@ -9043,35 +9058,7 @@ var EventBridgeClient = class extends Client {
9043
9058
  }
9044
9059
  };
9045
9060
 
9046
- // ../core/dist/index.js
9047
- var import_http_status4 = __toESM(require_lib(), 1);
9048
- var import_http_status5 = __toESM(require_lib(), 1);
9049
- var import_http_status6 = __toESM(require_lib(), 1);
9050
- var import_http_status7 = __toESM(require_lib(), 1);
9051
- var import_http_status8 = __toESM(require_lib(), 1);
9052
- var import_http_status9 = __toESM(require_lib(), 1);
9053
- var import_http_status10 = __toESM(require_lib(), 1);
9054
- var import_http_status11 = __toESM(require_lib(), 1);
9055
- var import_http_status12 = __toESM(require_lib(), 1);
9056
- var import_http_status13 = __toESM(require_lib(), 1);
9057
- var import_http_status14 = __toESM(require_lib(), 1);
9058
- var import_http_status15 = __toESM(require_lib(), 1);
9059
- var factory2 = createFactory();
9060
- var API_KEYS = process.env.API_KEYS ? JSON.parse(process.env.API_KEYS) : [];
9061
- var apiKeyAuth = factory2.createMiddleware((c2, next) => __async(null, null, function* () {
9062
- const xApiKey = c2.req.header("x-api-key");
9063
- if (c2.req.url.match(/^\/core\/public\//)) {
9064
- return yield next();
9065
- }
9066
- if (!xApiKey || Array.isArray(xApiKey) || !API_KEYS.includes(xApiKey)) {
9067
- c2.status(import_http_status3.default.UNAUTHORIZED);
9068
- return c2.json({
9069
- status: import_http_status3.default.UNAUTHORIZED,
9070
- message: import_http_status3.default["401_MESSAGE"]
9071
- });
9072
- }
9073
- return yield next();
9074
- }));
9061
+ // ../core/types/event.ts
9075
9062
  var SOURCE = {
9076
9063
  CORE: "core-service",
9077
9064
  GENERAL: "general"
@@ -9144,8 +9131,26 @@ var EVENT = {
9144
9131
  }
9145
9132
  }
9146
9133
  };
9134
+
9135
+ // ../core/helpers/event.ts
9147
9136
  var eventBridge = new EventBridgeClient();
9148
- var factory22 = createFactory();
9137
+
9138
+ // ../core/middlewares/general-error-handler.ts
9139
+ var factory3 = createFactory();
9140
+
9141
+ // ../core/controllers/entity/create-entity.controller.ts
9142
+ var import_http_status4 = __toESM(require_lib(), 1);
9143
+
9144
+ // ../core/controllers/entity/delete-entity.controller.ts
9145
+ var import_http_status5 = __toESM(require_lib(), 1);
9146
+
9147
+ // ../core/controllers/entity/get-entity-by-unique-field-value.controller.ts
9148
+ var import_http_status6 = __toESM(require_lib(), 1);
9149
+
9150
+ // ../core/controllers/entity/get-entity.controller.ts
9151
+ var import_http_status7 = __toESM(require_lib(), 1);
9152
+
9153
+ // ../../node_modules/zod/v3/external.js
9149
9154
  var external_exports = {};
9150
9155
  __export(external_exports, {
9151
9156
  BRAND: () => BRAND,
@@ -9256,6 +9261,8 @@ __export(external_exports, {
9256
9261
  util: () => util,
9257
9262
  void: () => voidType
9258
9263
  });
9264
+
9265
+ // ../../node_modules/zod/v3/helpers/util.js
9259
9266
  var util;
9260
9267
  (function(util2) {
9261
9268
  util2.assertEqual = (_) => {
@@ -9318,7 +9325,7 @@ var util;
9318
9325
  var objectUtil;
9319
9326
  (function(objectUtil2) {
9320
9327
  objectUtil2.mergeShapes = (first, second) => {
9321
- return __spreadValues2(__spreadValues2({}, first), second);
9328
+ return __spreadValues(__spreadValues({}, first), second);
9322
9329
  };
9323
9330
  })(objectUtil || (objectUtil = {}));
9324
9331
  var ZodParsedType = util.arrayToEnum([
@@ -9384,6 +9391,8 @@ var getParsedType = (data) => {
9384
9391
  return ZodParsedType.unknown;
9385
9392
  }
9386
9393
  };
9394
+
9395
+ // ../../node_modules/zod/v3/ZodError.js
9387
9396
  var ZodIssueCode = util.arrayToEnum([
9388
9397
  "invalid_type",
9389
9398
  "invalid_literal",
@@ -9500,6 +9509,8 @@ ZodError.create = (issues) => {
9500
9509
  const error = new ZodError(issues);
9501
9510
  return error;
9502
9511
  };
9512
+
9513
+ // ../../node_modules/zod/v3/locales/en.js
9503
9514
  var errorMap = (issue, _ctx) => {
9504
9515
  let message;
9505
9516
  switch (issue.code) {
@@ -9601,6 +9612,8 @@ var errorMap = (issue, _ctx) => {
9601
9612
  return { message };
9602
9613
  };
9603
9614
  var en_default = errorMap;
9615
+
9616
+ // ../../node_modules/zod/v3/errors.js
9604
9617
  var overrideErrorMap = en_default;
9605
9618
  function setErrorMap(map) {
9606
9619
  overrideErrorMap = map;
@@ -9608,14 +9621,16 @@ function setErrorMap(map) {
9608
9621
  function getErrorMap() {
9609
9622
  return overrideErrorMap;
9610
9623
  }
9624
+
9625
+ // ../../node_modules/zod/v3/helpers/parseUtil.js
9611
9626
  var makeIssue = (params) => {
9612
9627
  const { data, path, errorMaps, issueData } = params;
9613
9628
  const fullPath = [...path, ...issueData.path || []];
9614
- const fullIssue = __spreadProps2(__spreadValues2({}, issueData), {
9629
+ const fullIssue = __spreadProps(__spreadValues({}, issueData), {
9615
9630
  path: fullPath
9616
9631
  });
9617
9632
  if (issueData.message !== void 0) {
9618
- return __spreadProps2(__spreadValues2({}, issueData), {
9633
+ return __spreadProps(__spreadValues({}, issueData), {
9619
9634
  path: fullPath,
9620
9635
  message: issueData.message
9621
9636
  });
@@ -9625,7 +9640,7 @@ var makeIssue = (params) => {
9625
9640
  for (const map of maps) {
9626
9641
  errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
9627
9642
  }
9628
- return __spreadProps2(__spreadValues2({}, issueData), {
9643
+ return __spreadProps(__spreadValues({}, issueData), {
9629
9644
  path: fullPath,
9630
9645
  message: errorMessage
9631
9646
  });
@@ -9673,19 +9688,17 @@ var ParseStatus = class _ParseStatus {
9673
9688
  }
9674
9689
  return { status: status.value, value: arrayValue };
9675
9690
  }
9676
- static mergeObjectAsync(status, pairs) {
9677
- return __async(this, null, function* () {
9678
- const syncPairs = [];
9679
- for (const pair of pairs) {
9680
- const key = yield pair.key;
9681
- const value = yield pair.value;
9682
- syncPairs.push({
9683
- key,
9684
- value
9685
- });
9686
- }
9687
- return _ParseStatus.mergeObjectSync(status, syncPairs);
9688
- });
9691
+ static async mergeObjectAsync(status, pairs) {
9692
+ const syncPairs = [];
9693
+ for (const pair of pairs) {
9694
+ const key = await pair.key;
9695
+ const value = await pair.value;
9696
+ syncPairs.push({
9697
+ key,
9698
+ value
9699
+ });
9700
+ }
9701
+ return _ParseStatus.mergeObjectSync(status, syncPairs);
9689
9702
  }
9690
9703
  static mergeObjectSync(status, pairs) {
9691
9704
  const finalObject = {};
@@ -9715,11 +9728,15 @@ var isAborted = (x2) => x2.status === "aborted";
9715
9728
  var isDirty = (x2) => x2.status === "dirty";
9716
9729
  var isValid = (x2) => x2.status === "valid";
9717
9730
  var isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
9731
+
9732
+ // ../../node_modules/zod/v3/helpers/errorUtil.js
9718
9733
  var errorUtil;
9719
9734
  (function(errorUtil2) {
9720
9735
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
9721
9736
  errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
9722
9737
  })(errorUtil || (errorUtil = {}));
9738
+
9739
+ // ../../node_modules/zod/v3/types.js
9723
9740
  var ParseInputLazyPath = class {
9724
9741
  constructor(parent, value, path, key) {
9725
9742
  this._cachedPath = [];
@@ -9883,32 +9900,28 @@ var ZodType = class {
9883
9900
  issues: ctx.common.issues
9884
9901
  });
9885
9902
  }
9886
- parseAsync(data, params) {
9887
- return __async(this, null, function* () {
9888
- const result = yield this.safeParseAsync(data, params);
9889
- if (result.success)
9890
- return result.data;
9891
- throw result.error;
9892
- });
9903
+ async parseAsync(data, params) {
9904
+ const result = await this.safeParseAsync(data, params);
9905
+ if (result.success)
9906
+ return result.data;
9907
+ throw result.error;
9893
9908
  }
9894
- safeParseAsync(data, params) {
9895
- return __async(this, null, function* () {
9896
- const ctx = {
9897
- common: {
9898
- issues: [],
9899
- contextualErrorMap: params == null ? void 0 : params.errorMap,
9900
- async: true
9901
- },
9902
- path: (params == null ? void 0 : params.path) || [],
9903
- schemaErrorMap: this._def.errorMap,
9904
- parent: null,
9905
- data,
9906
- parsedType: getParsedType(data)
9907
- };
9908
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
9909
- const result = yield isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult);
9910
- return handleResult(ctx, result);
9911
- });
9909
+ async safeParseAsync(data, params) {
9910
+ const ctx = {
9911
+ common: {
9912
+ issues: [],
9913
+ contextualErrorMap: params == null ? void 0 : params.errorMap,
9914
+ async: true
9915
+ },
9916
+ path: (params == null ? void 0 : params.path) || [],
9917
+ schemaErrorMap: this._def.errorMap,
9918
+ parent: null,
9919
+ data,
9920
+ parsedType: getParsedType(data)
9921
+ };
9922
+ const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
9923
+ const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
9924
+ return handleResult(ctx, result);
9912
9925
  }
9913
9926
  refine(check, message) {
9914
9927
  const getIssueProperties = (val) => {
@@ -9922,7 +9935,7 @@ var ZodType = class {
9922
9935
  };
9923
9936
  return this._refinement((val, ctx) => {
9924
9937
  const result = check(val);
9925
- const setError2 = () => ctx.addIssue(__spreadValues2({
9938
+ const setError2 = () => ctx.addIssue(__spreadValues({
9926
9939
  code: ZodIssueCode.custom
9927
9940
  }, getIssueProperties(val)));
9928
9941
  if (typeof Promise !== "undefined" && result instanceof Promise) {
@@ -10018,7 +10031,7 @@ var ZodType = class {
10018
10031
  return ZodIntersection.create(this, incoming, this._def);
10019
10032
  }
10020
10033
  transform(transform) {
10021
- return new ZodEffects(__spreadProps2(__spreadValues2({}, processCreateParams(this._def)), {
10034
+ return new ZodEffects(__spreadProps(__spreadValues({}, processCreateParams(this._def)), {
10022
10035
  schema: this,
10023
10036
  typeName: ZodFirstPartyTypeKind.ZodEffects,
10024
10037
  effect: { type: "transform", transform }
@@ -10026,21 +10039,21 @@ var ZodType = class {
10026
10039
  }
10027
10040
  default(def) {
10028
10041
  const defaultValueFunc = typeof def === "function" ? def : () => def;
10029
- return new ZodDefault(__spreadProps2(__spreadValues2({}, processCreateParams(this._def)), {
10042
+ return new ZodDefault(__spreadProps(__spreadValues({}, processCreateParams(this._def)), {
10030
10043
  innerType: this,
10031
10044
  defaultValue: defaultValueFunc,
10032
10045
  typeName: ZodFirstPartyTypeKind.ZodDefault
10033
10046
  }));
10034
10047
  }
10035
10048
  brand() {
10036
- return new ZodBranded(__spreadValues2({
10049
+ return new ZodBranded(__spreadValues({
10037
10050
  typeName: ZodFirstPartyTypeKind.ZodBranded,
10038
10051
  type: this
10039
10052
  }, processCreateParams(this._def)));
10040
10053
  }
10041
10054
  catch(def) {
10042
10055
  const catchValueFunc = typeof def === "function" ? def : () => def;
10043
- return new ZodCatch(__spreadProps2(__spreadValues2({}, processCreateParams(this._def)), {
10056
+ return new ZodCatch(__spreadProps(__spreadValues({}, processCreateParams(this._def)), {
10044
10057
  innerType: this,
10045
10058
  catchValue: catchValueFunc,
10046
10059
  typeName: ZodFirstPartyTypeKind.ZodCatch
@@ -10048,7 +10061,7 @@ var ZodType = class {
10048
10061
  }
10049
10062
  describe(description) {
10050
10063
  const This = this.constructor;
10051
- return new This(__spreadProps2(__spreadValues2({}, this._def), {
10064
+ return new This(__spreadProps(__spreadValues({}, this._def), {
10052
10065
  description
10053
10066
  }));
10054
10067
  }
@@ -10448,56 +10461,56 @@ var ZodString = class _ZodString extends ZodType {
10448
10461
  return { status: status.value, value: input.data };
10449
10462
  }
10450
10463
  _regex(regex, validation, message) {
10451
- return this.refinement((data) => regex.test(data), __spreadValues2({
10464
+ return this.refinement((data) => regex.test(data), __spreadValues({
10452
10465
  validation,
10453
10466
  code: ZodIssueCode.invalid_string
10454
10467
  }, errorUtil.errToObj(message)));
10455
10468
  }
10456
10469
  _addCheck(check) {
10457
- return new _ZodString(__spreadProps2(__spreadValues2({}, this._def), {
10470
+ return new _ZodString(__spreadProps(__spreadValues({}, this._def), {
10458
10471
  checks: [...this._def.checks, check]
10459
10472
  }));
10460
10473
  }
10461
10474
  email(message) {
10462
- return this._addCheck(__spreadValues2({ kind: "email" }, errorUtil.errToObj(message)));
10475
+ return this._addCheck(__spreadValues({ kind: "email" }, errorUtil.errToObj(message)));
10463
10476
  }
10464
10477
  url(message) {
10465
- return this._addCheck(__spreadValues2({ kind: "url" }, errorUtil.errToObj(message)));
10478
+ return this._addCheck(__spreadValues({ kind: "url" }, errorUtil.errToObj(message)));
10466
10479
  }
10467
10480
  emoji(message) {
10468
- return this._addCheck(__spreadValues2({ kind: "emoji" }, errorUtil.errToObj(message)));
10481
+ return this._addCheck(__spreadValues({ kind: "emoji" }, errorUtil.errToObj(message)));
10469
10482
  }
10470
10483
  uuid(message) {
10471
- return this._addCheck(__spreadValues2({ kind: "uuid" }, errorUtil.errToObj(message)));
10484
+ return this._addCheck(__spreadValues({ kind: "uuid" }, errorUtil.errToObj(message)));
10472
10485
  }
10473
10486
  nanoid(message) {
10474
- return this._addCheck(__spreadValues2({ kind: "nanoid" }, errorUtil.errToObj(message)));
10487
+ return this._addCheck(__spreadValues({ kind: "nanoid" }, errorUtil.errToObj(message)));
10475
10488
  }
10476
10489
  cuid(message) {
10477
- return this._addCheck(__spreadValues2({ kind: "cuid" }, errorUtil.errToObj(message)));
10490
+ return this._addCheck(__spreadValues({ kind: "cuid" }, errorUtil.errToObj(message)));
10478
10491
  }
10479
10492
  cuid2(message) {
10480
- return this._addCheck(__spreadValues2({ kind: "cuid2" }, errorUtil.errToObj(message)));
10493
+ return this._addCheck(__spreadValues({ kind: "cuid2" }, errorUtil.errToObj(message)));
10481
10494
  }
10482
10495
  ulid(message) {
10483
- return this._addCheck(__spreadValues2({ kind: "ulid" }, errorUtil.errToObj(message)));
10496
+ return this._addCheck(__spreadValues({ kind: "ulid" }, errorUtil.errToObj(message)));
10484
10497
  }
10485
10498
  base64(message) {
10486
- return this._addCheck(__spreadValues2({ kind: "base64" }, errorUtil.errToObj(message)));
10499
+ return this._addCheck(__spreadValues({ kind: "base64" }, errorUtil.errToObj(message)));
10487
10500
  }
10488
10501
  base64url(message) {
10489
- return this._addCheck(__spreadValues2({
10502
+ return this._addCheck(__spreadValues({
10490
10503
  kind: "base64url"
10491
10504
  }, errorUtil.errToObj(message)));
10492
10505
  }
10493
10506
  jwt(options) {
10494
- return this._addCheck(__spreadValues2({ kind: "jwt" }, errorUtil.errToObj(options)));
10507
+ return this._addCheck(__spreadValues({ kind: "jwt" }, errorUtil.errToObj(options)));
10495
10508
  }
10496
10509
  ip(options) {
10497
- return this._addCheck(__spreadValues2({ kind: "ip" }, errorUtil.errToObj(options)));
10510
+ return this._addCheck(__spreadValues({ kind: "ip" }, errorUtil.errToObj(options)));
10498
10511
  }
10499
10512
  cidr(options) {
10500
- return this._addCheck(__spreadValues2({ kind: "cidr" }, errorUtil.errToObj(options)));
10513
+ return this._addCheck(__spreadValues({ kind: "cidr" }, errorUtil.errToObj(options)));
10501
10514
  }
10502
10515
  datetime(options) {
10503
10516
  var _a11, _b;
@@ -10510,7 +10523,7 @@ var ZodString = class _ZodString extends ZodType {
10510
10523
  message: options
10511
10524
  });
10512
10525
  }
10513
- return this._addCheck(__spreadValues2({
10526
+ return this._addCheck(__spreadValues({
10514
10527
  kind: "datetime",
10515
10528
  precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
10516
10529
  offset: (_a11 = options == null ? void 0 : options.offset) != null ? _a11 : false,
@@ -10528,53 +10541,53 @@ var ZodString = class _ZodString extends ZodType {
10528
10541
  message: options
10529
10542
  });
10530
10543
  }
10531
- return this._addCheck(__spreadValues2({
10544
+ return this._addCheck(__spreadValues({
10532
10545
  kind: "time",
10533
10546
  precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision
10534
10547
  }, errorUtil.errToObj(options == null ? void 0 : options.message)));
10535
10548
  }
10536
10549
  duration(message) {
10537
- return this._addCheck(__spreadValues2({ kind: "duration" }, errorUtil.errToObj(message)));
10550
+ return this._addCheck(__spreadValues({ kind: "duration" }, errorUtil.errToObj(message)));
10538
10551
  }
10539
10552
  regex(regex, message) {
10540
- return this._addCheck(__spreadValues2({
10553
+ return this._addCheck(__spreadValues({
10541
10554
  kind: "regex",
10542
10555
  regex
10543
10556
  }, errorUtil.errToObj(message)));
10544
10557
  }
10545
10558
  includes(value, options) {
10546
- return this._addCheck(__spreadValues2({
10559
+ return this._addCheck(__spreadValues({
10547
10560
  kind: "includes",
10548
10561
  value,
10549
10562
  position: options == null ? void 0 : options.position
10550
10563
  }, errorUtil.errToObj(options == null ? void 0 : options.message)));
10551
10564
  }
10552
10565
  startsWith(value, message) {
10553
- return this._addCheck(__spreadValues2({
10566
+ return this._addCheck(__spreadValues({
10554
10567
  kind: "startsWith",
10555
10568
  value
10556
10569
  }, errorUtil.errToObj(message)));
10557
10570
  }
10558
10571
  endsWith(value, message) {
10559
- return this._addCheck(__spreadValues2({
10572
+ return this._addCheck(__spreadValues({
10560
10573
  kind: "endsWith",
10561
10574
  value
10562
10575
  }, errorUtil.errToObj(message)));
10563
10576
  }
10564
10577
  min(minLength, message) {
10565
- return this._addCheck(__spreadValues2({
10578
+ return this._addCheck(__spreadValues({
10566
10579
  kind: "min",
10567
10580
  value: minLength
10568
10581
  }, errorUtil.errToObj(message)));
10569
10582
  }
10570
10583
  max(maxLength, message) {
10571
- return this._addCheck(__spreadValues2({
10584
+ return this._addCheck(__spreadValues({
10572
10585
  kind: "max",
10573
10586
  value: maxLength
10574
10587
  }, errorUtil.errToObj(message)));
10575
10588
  }
10576
10589
  length(len, message) {
10577
- return this._addCheck(__spreadValues2({
10590
+ return this._addCheck(__spreadValues({
10578
10591
  kind: "length",
10579
10592
  value: len
10580
10593
  }, errorUtil.errToObj(message)));
@@ -10586,17 +10599,17 @@ var ZodString = class _ZodString extends ZodType {
10586
10599
  return this.min(1, errorUtil.errToObj(message));
10587
10600
  }
10588
10601
  trim() {
10589
- return new _ZodString(__spreadProps2(__spreadValues2({}, this._def), {
10602
+ return new _ZodString(__spreadProps(__spreadValues({}, this._def), {
10590
10603
  checks: [...this._def.checks, { kind: "trim" }]
10591
10604
  }));
10592
10605
  }
10593
10606
  toLowerCase() {
10594
- return new _ZodString(__spreadProps2(__spreadValues2({}, this._def), {
10607
+ return new _ZodString(__spreadProps(__spreadValues({}, this._def), {
10595
10608
  checks: [...this._def.checks, { kind: "toLowerCase" }]
10596
10609
  }));
10597
10610
  }
10598
10611
  toUpperCase() {
10599
- return new _ZodString(__spreadProps2(__spreadValues2({}, this._def), {
10612
+ return new _ZodString(__spreadProps(__spreadValues({}, this._def), {
10600
10613
  checks: [...this._def.checks, { kind: "toUpperCase" }]
10601
10614
  }));
10602
10615
  }
@@ -10671,7 +10684,7 @@ var ZodString = class _ZodString extends ZodType {
10671
10684
  };
10672
10685
  ZodString.create = (params) => {
10673
10686
  var _a11;
10674
- return new ZodString(__spreadValues2({
10687
+ return new ZodString(__spreadValues({
10675
10688
  checks: [],
10676
10689
  typeName: ZodFirstPartyTypeKind.ZodString,
10677
10690
  coerce: (_a11 = params == null ? void 0 : params.coerce) != null ? _a11 : false
@@ -10786,7 +10799,7 @@ var ZodNumber = class _ZodNumber extends ZodType {
10786
10799
  return this.setLimit("max", value, false, errorUtil.toString(message));
10787
10800
  }
10788
10801
  setLimit(kind, value, inclusive, message) {
10789
- return new _ZodNumber(__spreadProps2(__spreadValues2({}, this._def), {
10802
+ return new _ZodNumber(__spreadProps(__spreadValues({}, this._def), {
10790
10803
  checks: [
10791
10804
  ...this._def.checks,
10792
10805
  {
@@ -10799,7 +10812,7 @@ var ZodNumber = class _ZodNumber extends ZodType {
10799
10812
  }));
10800
10813
  }
10801
10814
  _addCheck(check) {
10802
- return new _ZodNumber(__spreadProps2(__spreadValues2({}, this._def), {
10815
+ return new _ZodNumber(__spreadProps(__spreadValues({}, this._def), {
10803
10816
  checks: [...this._def.checks, check]
10804
10817
  }));
10805
10818
  }
@@ -10908,7 +10921,7 @@ var ZodNumber = class _ZodNumber extends ZodType {
10908
10921
  }
10909
10922
  };
10910
10923
  ZodNumber.create = (params) => {
10911
- return new ZodNumber(__spreadValues2({
10924
+ return new ZodNumber(__spreadValues({
10912
10925
  checks: [],
10913
10926
  typeName: ZodFirstPartyTypeKind.ZodNumber,
10914
10927
  coerce: (params == null ? void 0 : params.coerce) || false
@@ -10999,7 +11012,7 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
10999
11012
  return this.setLimit("max", value, false, errorUtil.toString(message));
11000
11013
  }
11001
11014
  setLimit(kind, value, inclusive, message) {
11002
- return new _ZodBigInt(__spreadProps2(__spreadValues2({}, this._def), {
11015
+ return new _ZodBigInt(__spreadProps(__spreadValues({}, this._def), {
11003
11016
  checks: [
11004
11017
  ...this._def.checks,
11005
11018
  {
@@ -11012,7 +11025,7 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
11012
11025
  }));
11013
11026
  }
11014
11027
  _addCheck(check) {
11015
- return new _ZodBigInt(__spreadProps2(__spreadValues2({}, this._def), {
11028
+ return new _ZodBigInt(__spreadProps(__spreadValues({}, this._def), {
11016
11029
  checks: [...this._def.checks, check]
11017
11030
  }));
11018
11031
  }
@@ -11078,7 +11091,7 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
11078
11091
  };
11079
11092
  ZodBigInt.create = (params) => {
11080
11093
  var _a11;
11081
- return new ZodBigInt(__spreadValues2({
11094
+ return new ZodBigInt(__spreadValues({
11082
11095
  checks: [],
11083
11096
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
11084
11097
  coerce: (_a11 = params == null ? void 0 : params.coerce) != null ? _a11 : false
@@ -11103,7 +11116,7 @@ var ZodBoolean = class extends ZodType {
11103
11116
  }
11104
11117
  };
11105
11118
  ZodBoolean.create = (params) => {
11106
- return new ZodBoolean(__spreadValues2({
11119
+ return new ZodBoolean(__spreadValues({
11107
11120
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
11108
11121
  coerce: (params == null ? void 0 : params.coerce) || false
11109
11122
  }, processCreateParams(params)));
@@ -11169,7 +11182,7 @@ var ZodDate = class _ZodDate extends ZodType {
11169
11182
  };
11170
11183
  }
11171
11184
  _addCheck(check) {
11172
- return new _ZodDate(__spreadProps2(__spreadValues2({}, this._def), {
11185
+ return new _ZodDate(__spreadProps(__spreadValues({}, this._def), {
11173
11186
  checks: [...this._def.checks, check]
11174
11187
  }));
11175
11188
  }
@@ -11209,7 +11222,7 @@ var ZodDate = class _ZodDate extends ZodType {
11209
11222
  }
11210
11223
  };
11211
11224
  ZodDate.create = (params) => {
11212
- return new ZodDate(__spreadValues2({
11225
+ return new ZodDate(__spreadValues({
11213
11226
  checks: [],
11214
11227
  coerce: (params == null ? void 0 : params.coerce) || false,
11215
11228
  typeName: ZodFirstPartyTypeKind.ZodDate
@@ -11231,7 +11244,7 @@ var ZodSymbol = class extends ZodType {
11231
11244
  }
11232
11245
  };
11233
11246
  ZodSymbol.create = (params) => {
11234
- return new ZodSymbol(__spreadValues2({
11247
+ return new ZodSymbol(__spreadValues({
11235
11248
  typeName: ZodFirstPartyTypeKind.ZodSymbol
11236
11249
  }, processCreateParams(params)));
11237
11250
  };
@@ -11251,7 +11264,7 @@ var ZodUndefined = class extends ZodType {
11251
11264
  }
11252
11265
  };
11253
11266
  ZodUndefined.create = (params) => {
11254
- return new ZodUndefined(__spreadValues2({
11267
+ return new ZodUndefined(__spreadValues({
11255
11268
  typeName: ZodFirstPartyTypeKind.ZodUndefined
11256
11269
  }, processCreateParams(params)));
11257
11270
  };
@@ -11271,7 +11284,7 @@ var ZodNull = class extends ZodType {
11271
11284
  }
11272
11285
  };
11273
11286
  ZodNull.create = (params) => {
11274
- return new ZodNull(__spreadValues2({
11287
+ return new ZodNull(__spreadValues({
11275
11288
  typeName: ZodFirstPartyTypeKind.ZodNull
11276
11289
  }, processCreateParams(params)));
11277
11290
  };
@@ -11285,7 +11298,7 @@ var ZodAny = class extends ZodType {
11285
11298
  }
11286
11299
  };
11287
11300
  ZodAny.create = (params) => {
11288
- return new ZodAny(__spreadValues2({
11301
+ return new ZodAny(__spreadValues({
11289
11302
  typeName: ZodFirstPartyTypeKind.ZodAny
11290
11303
  }, processCreateParams(params)));
11291
11304
  };
@@ -11299,7 +11312,7 @@ var ZodUnknown = class extends ZodType {
11299
11312
  }
11300
11313
  };
11301
11314
  ZodUnknown.create = (params) => {
11302
- return new ZodUnknown(__spreadValues2({
11315
+ return new ZodUnknown(__spreadValues({
11303
11316
  typeName: ZodFirstPartyTypeKind.ZodUnknown
11304
11317
  }, processCreateParams(params)));
11305
11318
  };
@@ -11315,7 +11328,7 @@ var ZodNever = class extends ZodType {
11315
11328
  }
11316
11329
  };
11317
11330
  ZodNever.create = (params) => {
11318
- return new ZodNever(__spreadValues2({
11331
+ return new ZodNever(__spreadValues({
11319
11332
  typeName: ZodFirstPartyTypeKind.ZodNever
11320
11333
  }, processCreateParams(params)));
11321
11334
  };
@@ -11335,7 +11348,7 @@ var ZodVoid = class extends ZodType {
11335
11348
  }
11336
11349
  };
11337
11350
  ZodVoid.create = (params) => {
11338
- return new ZodVoid(__spreadValues2({
11351
+ return new ZodVoid(__spreadValues({
11339
11352
  typeName: ZodFirstPartyTypeKind.ZodVoid
11340
11353
  }, processCreateParams(params)));
11341
11354
  };
@@ -11409,17 +11422,17 @@ var ZodArray = class _ZodArray extends ZodType {
11409
11422
  return this._def.type;
11410
11423
  }
11411
11424
  min(minLength, message) {
11412
- return new _ZodArray(__spreadProps2(__spreadValues2({}, this._def), {
11425
+ return new _ZodArray(__spreadProps(__spreadValues({}, this._def), {
11413
11426
  minLength: { value: minLength, message: errorUtil.toString(message) }
11414
11427
  }));
11415
11428
  }
11416
11429
  max(maxLength, message) {
11417
- return new _ZodArray(__spreadProps2(__spreadValues2({}, this._def), {
11430
+ return new _ZodArray(__spreadProps(__spreadValues({}, this._def), {
11418
11431
  maxLength: { value: maxLength, message: errorUtil.toString(message) }
11419
11432
  }));
11420
11433
  }
11421
11434
  length(len, message) {
11422
- return new _ZodArray(__spreadProps2(__spreadValues2({}, this._def), {
11435
+ return new _ZodArray(__spreadProps(__spreadValues({}, this._def), {
11423
11436
  exactLength: { value: len, message: errorUtil.toString(message) }
11424
11437
  }));
11425
11438
  }
@@ -11428,7 +11441,7 @@ var ZodArray = class _ZodArray extends ZodType {
11428
11441
  }
11429
11442
  };
11430
11443
  ZodArray.create = (schema, params) => {
11431
- return new ZodArray(__spreadValues2({
11444
+ return new ZodArray(__spreadValues({
11432
11445
  type: schema,
11433
11446
  minLength: null,
11434
11447
  maxLength: null,
@@ -11443,11 +11456,11 @@ function deepPartialify(schema) {
11443
11456
  const fieldSchema = schema.shape[key];
11444
11457
  newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
11445
11458
  }
11446
- return new ZodObject(__spreadProps2(__spreadValues2({}, schema._def), {
11459
+ return new ZodObject(__spreadProps(__spreadValues({}, schema._def), {
11447
11460
  shape: () => newShape
11448
11461
  }));
11449
11462
  } else if (schema instanceof ZodArray) {
11450
- return new ZodArray(__spreadProps2(__spreadValues2({}, schema._def), {
11463
+ return new ZodArray(__spreadProps(__spreadValues({}, schema._def), {
11451
11464
  type: deepPartialify(schema.element)
11452
11465
  }));
11453
11466
  } else if (schema instanceof ZodOptional) {
@@ -11542,11 +11555,11 @@ var ZodObject = class _ZodObject extends ZodType {
11542
11555
  }
11543
11556
  }
11544
11557
  if (ctx.common.async) {
11545
- return Promise.resolve().then(() => __async(this, null, function* () {
11558
+ return Promise.resolve().then(async () => {
11546
11559
  const syncPairs = [];
11547
11560
  for (const pair of pairs) {
11548
- const key = yield pair.key;
11549
- const value = yield pair.value;
11561
+ const key = await pair.key;
11562
+ const value = await pair.value;
11550
11563
  syncPairs.push({
11551
11564
  key,
11552
11565
  value,
@@ -11554,7 +11567,7 @@ var ZodObject = class _ZodObject extends ZodType {
11554
11567
  });
11555
11568
  }
11556
11569
  return syncPairs;
11557
- })).then((syncPairs) => {
11570
+ }).then((syncPairs) => {
11558
11571
  return ParseStatus.mergeObjectSync(status, syncPairs);
11559
11572
  });
11560
11573
  } else {
@@ -11566,7 +11579,7 @@ var ZodObject = class _ZodObject extends ZodType {
11566
11579
  }
11567
11580
  strict(message) {
11568
11581
  errorUtil.errToObj;
11569
- return new _ZodObject(__spreadValues2(__spreadProps2(__spreadValues2({}, this._def), {
11582
+ return new _ZodObject(__spreadValues(__spreadProps(__spreadValues({}, this._def), {
11570
11583
  unknownKeys: "strict"
11571
11584
  }), message !== void 0 ? {
11572
11585
  errorMap: (issue, ctx) => {
@@ -11583,12 +11596,12 @@ var ZodObject = class _ZodObject extends ZodType {
11583
11596
  } : {}));
11584
11597
  }
11585
11598
  strip() {
11586
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11599
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11587
11600
  unknownKeys: "strip"
11588
11601
  }));
11589
11602
  }
11590
11603
  passthrough() {
11591
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11604
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11592
11605
  unknownKeys: "passthrough"
11593
11606
  }));
11594
11607
  }
@@ -11610,8 +11623,8 @@ var ZodObject = class _ZodObject extends ZodType {
11610
11623
  // }) as any;
11611
11624
  // };
11612
11625
  extend(augmentation) {
11613
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11614
- shape: () => __spreadValues2(__spreadValues2({}, this._def.shape()), augmentation)
11626
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11627
+ shape: () => __spreadValues(__spreadValues({}, this._def.shape()), augmentation)
11615
11628
  }));
11616
11629
  }
11617
11630
  /**
@@ -11623,7 +11636,7 @@ var ZodObject = class _ZodObject extends ZodType {
11623
11636
  const merged = new _ZodObject({
11624
11637
  unknownKeys: merging._def.unknownKeys,
11625
11638
  catchall: merging._def.catchall,
11626
- shape: () => __spreadValues2(__spreadValues2({}, this._def.shape()), merging._def.shape()),
11639
+ shape: () => __spreadValues(__spreadValues({}, this._def.shape()), merging._def.shape()),
11627
11640
  typeName: ZodFirstPartyTypeKind.ZodObject
11628
11641
  });
11629
11642
  return merged;
@@ -11688,7 +11701,7 @@ var ZodObject = class _ZodObject extends ZodType {
11688
11701
  // return merged;
11689
11702
  // }
11690
11703
  catchall(index) {
11691
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11704
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11692
11705
  catchall: index
11693
11706
  }));
11694
11707
  }
@@ -11699,7 +11712,7 @@ var ZodObject = class _ZodObject extends ZodType {
11699
11712
  shape[key] = this.shape[key];
11700
11713
  }
11701
11714
  }
11702
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11715
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11703
11716
  shape: () => shape
11704
11717
  }));
11705
11718
  }
@@ -11710,7 +11723,7 @@ var ZodObject = class _ZodObject extends ZodType {
11710
11723
  shape[key] = this.shape[key];
11711
11724
  }
11712
11725
  }
11713
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11726
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11714
11727
  shape: () => shape
11715
11728
  }));
11716
11729
  }
@@ -11730,7 +11743,7 @@ var ZodObject = class _ZodObject extends ZodType {
11730
11743
  newShape[key] = fieldSchema.optional();
11731
11744
  }
11732
11745
  }
11733
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11746
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11734
11747
  shape: () => newShape
11735
11748
  }));
11736
11749
  }
@@ -11748,7 +11761,7 @@ var ZodObject = class _ZodObject extends ZodType {
11748
11761
  newShape[key] = newField;
11749
11762
  }
11750
11763
  }
11751
- return new _ZodObject(__spreadProps2(__spreadValues2({}, this._def), {
11764
+ return new _ZodObject(__spreadProps(__spreadValues({}, this._def), {
11752
11765
  shape: () => newShape
11753
11766
  }));
11754
11767
  }
@@ -11757,7 +11770,7 @@ var ZodObject = class _ZodObject extends ZodType {
11757
11770
  }
11758
11771
  };
11759
11772
  ZodObject.create = (shape, params) => {
11760
- return new ZodObject(__spreadValues2({
11773
+ return new ZodObject(__spreadValues({
11761
11774
  shape: () => shape,
11762
11775
  unknownKeys: "strip",
11763
11776
  catchall: ZodNever.create(),
@@ -11765,7 +11778,7 @@ ZodObject.create = (shape, params) => {
11765
11778
  }, processCreateParams(params)));
11766
11779
  };
11767
11780
  ZodObject.strictCreate = (shape, params) => {
11768
- return new ZodObject(__spreadValues2({
11781
+ return new ZodObject(__spreadValues({
11769
11782
  shape: () => shape,
11770
11783
  unknownKeys: "strict",
11771
11784
  catchall: ZodNever.create(),
@@ -11773,7 +11786,7 @@ ZodObject.strictCreate = (shape, params) => {
11773
11786
  }, processCreateParams(params)));
11774
11787
  };
11775
11788
  ZodObject.lazycreate = (shape, params) => {
11776
- return new ZodObject(__spreadValues2({
11789
+ return new ZodObject(__spreadValues({
11777
11790
  shape,
11778
11791
  unknownKeys: "strip",
11779
11792
  catchall: ZodNever.create(),
@@ -11804,28 +11817,28 @@ var ZodUnion = class extends ZodType {
11804
11817
  return INVALID;
11805
11818
  }
11806
11819
  if (ctx.common.async) {
11807
- return Promise.all(options.map((option) => __async(this, null, function* () {
11808
- const childCtx = __spreadProps2(__spreadValues2({}, ctx), {
11809
- common: __spreadProps2(__spreadValues2({}, ctx.common), {
11820
+ return Promise.all(options.map(async (option) => {
11821
+ const childCtx = __spreadProps(__spreadValues({}, ctx), {
11822
+ common: __spreadProps(__spreadValues({}, ctx.common), {
11810
11823
  issues: []
11811
11824
  }),
11812
11825
  parent: null
11813
11826
  });
11814
11827
  return {
11815
- result: yield option._parseAsync({
11828
+ result: await option._parseAsync({
11816
11829
  data: ctx.data,
11817
11830
  path: ctx.path,
11818
11831
  parent: childCtx
11819
11832
  }),
11820
11833
  ctx: childCtx
11821
11834
  };
11822
- }))).then(handleResults);
11835
+ })).then(handleResults);
11823
11836
  } else {
11824
11837
  let dirty = void 0;
11825
11838
  const issues = [];
11826
11839
  for (const option of options) {
11827
- const childCtx = __spreadProps2(__spreadValues2({}, ctx), {
11828
- common: __spreadProps2(__spreadValues2({}, ctx.common), {
11840
+ const childCtx = __spreadProps(__spreadValues({}, ctx), {
11841
+ common: __spreadProps(__spreadValues({}, ctx.common), {
11829
11842
  issues: []
11830
11843
  }),
11831
11844
  parent: null
@@ -11861,7 +11874,7 @@ var ZodUnion = class extends ZodType {
11861
11874
  }
11862
11875
  };
11863
11876
  ZodUnion.create = (types, params) => {
11864
- return new ZodUnion(__spreadValues2({
11877
+ return new ZodUnion(__spreadValues({
11865
11878
  options: types,
11866
11879
  typeName: ZodFirstPartyTypeKind.ZodUnion
11867
11880
  }, processCreateParams(params)));
@@ -11964,7 +11977,7 @@ var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
11964
11977
  optionsMap.set(value, type);
11965
11978
  }
11966
11979
  }
11967
- return new _ZodDiscriminatedUnion(__spreadValues2({
11980
+ return new _ZodDiscriminatedUnion(__spreadValues({
11968
11981
  typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
11969
11982
  discriminator,
11970
11983
  options,
@@ -11980,7 +11993,7 @@ function mergeValues(a2, b2) {
11980
11993
  } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
11981
11994
  const bKeys = util.objectKeys(b2);
11982
11995
  const sharedKeys = util.objectKeys(a2).filter((key) => bKeys.indexOf(key) !== -1);
11983
- const newObj = __spreadValues2(__spreadValues2({}, a2), b2);
11996
+ const newObj = __spreadValues(__spreadValues({}, a2), b2);
11984
11997
  for (const key of sharedKeys) {
11985
11998
  const sharedValue = mergeValues(a2[key], b2[key]);
11986
11999
  if (!sharedValue.valid) {
@@ -12056,7 +12069,7 @@ var ZodIntersection = class extends ZodType {
12056
12069
  }
12057
12070
  };
12058
12071
  ZodIntersection.create = (left, right, params) => {
12059
- return new ZodIntersection(__spreadValues2({
12072
+ return new ZodIntersection(__spreadValues({
12060
12073
  left,
12061
12074
  right,
12062
12075
  typeName: ZodFirstPartyTypeKind.ZodIntersection
@@ -12112,7 +12125,7 @@ var ZodTuple = class _ZodTuple extends ZodType {
12112
12125
  return this._def.items;
12113
12126
  }
12114
12127
  rest(rest) {
12115
- return new _ZodTuple(__spreadProps2(__spreadValues2({}, this._def), {
12128
+ return new _ZodTuple(__spreadProps(__spreadValues({}, this._def), {
12116
12129
  rest
12117
12130
  }));
12118
12131
  }
@@ -12121,7 +12134,7 @@ ZodTuple.create = (schemas, params) => {
12121
12134
  if (!Array.isArray(schemas)) {
12122
12135
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
12123
12136
  }
12124
- return new ZodTuple(__spreadValues2({
12137
+ return new ZodTuple(__spreadValues({
12125
12138
  items: schemas,
12126
12139
  typeName: ZodFirstPartyTypeKind.ZodTuple,
12127
12140
  rest: null
@@ -12165,13 +12178,13 @@ var ZodRecord = class _ZodRecord extends ZodType {
12165
12178
  }
12166
12179
  static create(first, second, third) {
12167
12180
  if (second instanceof ZodType) {
12168
- return new _ZodRecord(__spreadValues2({
12181
+ return new _ZodRecord(__spreadValues({
12169
12182
  keyType: first,
12170
12183
  valueType: second,
12171
12184
  typeName: ZodFirstPartyTypeKind.ZodRecord
12172
12185
  }, processCreateParams(third)));
12173
12186
  }
12174
- return new _ZodRecord(__spreadValues2({
12187
+ return new _ZodRecord(__spreadValues({
12175
12188
  keyType: ZodString.create(),
12176
12189
  valueType: first,
12177
12190
  typeName: ZodFirstPartyTypeKind.ZodRecord
@@ -12205,10 +12218,10 @@ var ZodMap = class extends ZodType {
12205
12218
  });
12206
12219
  if (ctx.common.async) {
12207
12220
  const finalMap = /* @__PURE__ */ new Map();
12208
- return Promise.resolve().then(() => __async(this, null, function* () {
12221
+ return Promise.resolve().then(async () => {
12209
12222
  for (const pair of pairs) {
12210
- const key = yield pair.key;
12211
- const value = yield pair.value;
12223
+ const key = await pair.key;
12224
+ const value = await pair.value;
12212
12225
  if (key.status === "aborted" || value.status === "aborted") {
12213
12226
  return INVALID;
12214
12227
  }
@@ -12218,7 +12231,7 @@ var ZodMap = class extends ZodType {
12218
12231
  finalMap.set(key.value, value.value);
12219
12232
  }
12220
12233
  return { status: status.value, value: finalMap };
12221
- }));
12234
+ });
12222
12235
  } else {
12223
12236
  const finalMap = /* @__PURE__ */ new Map();
12224
12237
  for (const pair of pairs) {
@@ -12237,7 +12250,7 @@ var ZodMap = class extends ZodType {
12237
12250
  }
12238
12251
  };
12239
12252
  ZodMap.create = (keyType, valueType, params) => {
12240
- return new ZodMap(__spreadValues2({
12253
+ return new ZodMap(__spreadValues({
12241
12254
  valueType,
12242
12255
  keyType,
12243
12256
  typeName: ZodFirstPartyTypeKind.ZodMap
@@ -12301,12 +12314,12 @@ var ZodSet = class _ZodSet extends ZodType {
12301
12314
  }
12302
12315
  }
12303
12316
  min(minSize, message) {
12304
- return new _ZodSet(__spreadProps2(__spreadValues2({}, this._def), {
12317
+ return new _ZodSet(__spreadProps(__spreadValues({}, this._def), {
12305
12318
  minSize: { value: minSize, message: errorUtil.toString(message) }
12306
12319
  }));
12307
12320
  }
12308
12321
  max(maxSize, message) {
12309
- return new _ZodSet(__spreadProps2(__spreadValues2({}, this._def), {
12322
+ return new _ZodSet(__spreadProps(__spreadValues({}, this._def), {
12310
12323
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
12311
12324
  }));
12312
12325
  }
@@ -12318,7 +12331,7 @@ var ZodSet = class _ZodSet extends ZodType {
12318
12331
  }
12319
12332
  };
12320
12333
  ZodSet.create = (valueType, params) => {
12321
- return new ZodSet(__spreadValues2({
12334
+ return new ZodSet(__spreadValues({
12322
12335
  valueType,
12323
12336
  minSize: null,
12324
12337
  maxSize: null,
@@ -12366,20 +12379,18 @@ var ZodFunction = class _ZodFunction extends ZodType {
12366
12379
  const fn = ctx.data;
12367
12380
  if (this._def.returns instanceof ZodPromise) {
12368
12381
  const me = this;
12369
- return OK(function(...args) {
12370
- return __async(this, null, function* () {
12371
- const error = new ZodError([]);
12372
- const parsedArgs = yield me._def.args.parseAsync(args, params).catch((e2) => {
12373
- error.addIssue(makeArgsIssue(args, e2));
12374
- throw error;
12375
- });
12376
- const result = yield Reflect.apply(fn, this, parsedArgs);
12377
- const parsedReturns = yield me._def.returns._def.type.parseAsync(result, params).catch((e2) => {
12378
- error.addIssue(makeReturnsIssue(result, e2));
12379
- throw error;
12380
- });
12381
- return parsedReturns;
12382
+ return OK(async function(...args) {
12383
+ const error = new ZodError([]);
12384
+ const parsedArgs = await me._def.args.parseAsync(args, params).catch((e2) => {
12385
+ error.addIssue(makeArgsIssue(args, e2));
12386
+ throw error;
12387
+ });
12388
+ const result = await Reflect.apply(fn, this, parsedArgs);
12389
+ const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e2) => {
12390
+ error.addIssue(makeReturnsIssue(result, e2));
12391
+ throw error;
12382
12392
  });
12393
+ return parsedReturns;
12383
12394
  });
12384
12395
  } else {
12385
12396
  const me = this;
@@ -12404,12 +12415,12 @@ var ZodFunction = class _ZodFunction extends ZodType {
12404
12415
  return this._def.returns;
12405
12416
  }
12406
12417
  args(...items) {
12407
- return new _ZodFunction(__spreadProps2(__spreadValues2({}, this._def), {
12418
+ return new _ZodFunction(__spreadProps(__spreadValues({}, this._def), {
12408
12419
  args: ZodTuple.create(items).rest(ZodUnknown.create())
12409
12420
  }));
12410
12421
  }
12411
12422
  returns(returnType) {
12412
- return new _ZodFunction(__spreadProps2(__spreadValues2({}, this._def), {
12423
+ return new _ZodFunction(__spreadProps(__spreadValues({}, this._def), {
12413
12424
  returns: returnType
12414
12425
  }));
12415
12426
  }
@@ -12422,7 +12433,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
12422
12433
  return validatedFunc;
12423
12434
  }
12424
12435
  static create(args, returns, params) {
12425
- return new _ZodFunction(__spreadValues2({
12436
+ return new _ZodFunction(__spreadValues({
12426
12437
  args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
12427
12438
  returns: returns || ZodUnknown.create(),
12428
12439
  typeName: ZodFirstPartyTypeKind.ZodFunction
@@ -12440,7 +12451,7 @@ var ZodLazy = class extends ZodType {
12440
12451
  }
12441
12452
  };
12442
12453
  ZodLazy.create = (getter, params) => {
12443
- return new ZodLazy(__spreadValues2({
12454
+ return new ZodLazy(__spreadValues({
12444
12455
  getter,
12445
12456
  typeName: ZodFirstPartyTypeKind.ZodLazy
12446
12457
  }, processCreateParams(params)));
@@ -12463,13 +12474,13 @@ var ZodLiteral = class extends ZodType {
12463
12474
  }
12464
12475
  };
12465
12476
  ZodLiteral.create = (value, params) => {
12466
- return new ZodLiteral(__spreadValues2({
12477
+ return new ZodLiteral(__spreadValues({
12467
12478
  value,
12468
12479
  typeName: ZodFirstPartyTypeKind.ZodLiteral
12469
12480
  }, processCreateParams(params)));
12470
12481
  };
12471
12482
  function createZodEnum(values, params) {
12472
- return new ZodEnum(__spreadValues2({
12483
+ return new ZodEnum(__spreadValues({
12473
12484
  values,
12474
12485
  typeName: ZodFirstPartyTypeKind.ZodEnum
12475
12486
  }, processCreateParams(params)));
@@ -12526,10 +12537,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
12526
12537
  return enumValues;
12527
12538
  }
12528
12539
  extract(values, newDef = this._def) {
12529
- return _ZodEnum.create(values, __spreadValues2(__spreadValues2({}, this._def), newDef));
12540
+ return _ZodEnum.create(values, __spreadValues(__spreadValues({}, this._def), newDef));
12530
12541
  }
12531
12542
  exclude(values, newDef = this._def) {
12532
- return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), __spreadValues2(__spreadValues2({}, this._def), newDef));
12543
+ return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), __spreadValues(__spreadValues({}, this._def), newDef));
12533
12544
  }
12534
12545
  };
12535
12546
  ZodEnum.create = createZodEnum;
@@ -12565,7 +12576,7 @@ var ZodNativeEnum = class extends ZodType {
12565
12576
  }
12566
12577
  };
12567
12578
  ZodNativeEnum.create = (values, params) => {
12568
- return new ZodNativeEnum(__spreadValues2({
12579
+ return new ZodNativeEnum(__spreadValues({
12569
12580
  values,
12570
12581
  typeName: ZodFirstPartyTypeKind.ZodNativeEnum
12571
12582
  }, processCreateParams(params)));
@@ -12594,7 +12605,7 @@ var ZodPromise = class extends ZodType {
12594
12605
  }
12595
12606
  };
12596
12607
  ZodPromise.create = (schema, params) => {
12597
- return new ZodPromise(__spreadValues2({
12608
+ return new ZodPromise(__spreadValues({
12598
12609
  type: schema,
12599
12610
  typeName: ZodFirstPartyTypeKind.ZodPromise
12600
12611
  }, processCreateParams(params)));
@@ -12626,10 +12637,10 @@ var ZodEffects = class extends ZodType {
12626
12637
  if (effect.type === "preprocess") {
12627
12638
  const processed = effect.transform(ctx.data, checkCtx);
12628
12639
  if (ctx.common.async) {
12629
- return Promise.resolve(processed).then((processed2) => __async(this, null, function* () {
12640
+ return Promise.resolve(processed).then(async (processed2) => {
12630
12641
  if (status.value === "aborted")
12631
12642
  return INVALID;
12632
- const result = yield this._def.schema._parseAsync({
12643
+ const result = await this._def.schema._parseAsync({
12633
12644
  data: processed2,
12634
12645
  path: ctx.path,
12635
12646
  parent: ctx
@@ -12641,7 +12652,7 @@ var ZodEffects = class extends ZodType {
12641
12652
  if (status.value === "dirty")
12642
12653
  return DIRTY(result.value);
12643
12654
  return result;
12644
- }));
12655
+ });
12645
12656
  } else {
12646
12657
  if (status.value === "aborted")
12647
12658
  return INVALID;
@@ -12723,14 +12734,14 @@ var ZodEffects = class extends ZodType {
12723
12734
  }
12724
12735
  };
12725
12736
  ZodEffects.create = (schema, effect, params) => {
12726
- return new ZodEffects(__spreadValues2({
12737
+ return new ZodEffects(__spreadValues({
12727
12738
  schema,
12728
12739
  typeName: ZodFirstPartyTypeKind.ZodEffects,
12729
12740
  effect
12730
12741
  }, processCreateParams(params)));
12731
12742
  };
12732
12743
  ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
12733
- return new ZodEffects(__spreadValues2({
12744
+ return new ZodEffects(__spreadValues({
12734
12745
  schema,
12735
12746
  effect: { type: "preprocess", transform: preprocess },
12736
12747
  typeName: ZodFirstPartyTypeKind.ZodEffects
@@ -12749,7 +12760,7 @@ var ZodOptional = class extends ZodType {
12749
12760
  }
12750
12761
  };
12751
12762
  ZodOptional.create = (type, params) => {
12752
- return new ZodOptional(__spreadValues2({
12763
+ return new ZodOptional(__spreadValues({
12753
12764
  innerType: type,
12754
12765
  typeName: ZodFirstPartyTypeKind.ZodOptional
12755
12766
  }, processCreateParams(params)));
@@ -12767,7 +12778,7 @@ var ZodNullable = class extends ZodType {
12767
12778
  }
12768
12779
  };
12769
12780
  ZodNullable.create = (type, params) => {
12770
- return new ZodNullable(__spreadValues2({
12781
+ return new ZodNullable(__spreadValues({
12771
12782
  innerType: type,
12772
12783
  typeName: ZodFirstPartyTypeKind.ZodNullable
12773
12784
  }, processCreateParams(params)));
@@ -12790,7 +12801,7 @@ var ZodDefault = class extends ZodType {
12790
12801
  }
12791
12802
  };
12792
12803
  ZodDefault.create = (type, params) => {
12793
- return new ZodDefault(__spreadValues2({
12804
+ return new ZodDefault(__spreadValues({
12794
12805
  innerType: type,
12795
12806
  typeName: ZodFirstPartyTypeKind.ZodDefault,
12796
12807
  defaultValue: typeof params.default === "function" ? params.default : () => params.default
@@ -12799,15 +12810,15 @@ ZodDefault.create = (type, params) => {
12799
12810
  var ZodCatch = class extends ZodType {
12800
12811
  _parse(input) {
12801
12812
  const { ctx } = this._processInputParams(input);
12802
- const newCtx = __spreadProps2(__spreadValues2({}, ctx), {
12803
- common: __spreadProps2(__spreadValues2({}, ctx.common), {
12813
+ const newCtx = __spreadProps(__spreadValues({}, ctx), {
12814
+ common: __spreadProps(__spreadValues({}, ctx.common), {
12804
12815
  issues: []
12805
12816
  })
12806
12817
  });
12807
12818
  const result = this._def.innerType._parse({
12808
12819
  data: newCtx.data,
12809
12820
  path: newCtx.path,
12810
- parent: __spreadValues2({}, newCtx)
12821
+ parent: __spreadValues({}, newCtx)
12811
12822
  });
12812
12823
  if (isAsync(result)) {
12813
12824
  return result.then((result2) => {
@@ -12838,7 +12849,7 @@ var ZodCatch = class extends ZodType {
12838
12849
  }
12839
12850
  };
12840
12851
  ZodCatch.create = (type, params) => {
12841
- return new ZodCatch(__spreadValues2({
12852
+ return new ZodCatch(__spreadValues({
12842
12853
  innerType: type,
12843
12854
  typeName: ZodFirstPartyTypeKind.ZodCatch,
12844
12855
  catchValue: typeof params.catch === "function" ? params.catch : () => params.catch
@@ -12860,7 +12871,7 @@ var ZodNaN = class extends ZodType {
12860
12871
  }
12861
12872
  };
12862
12873
  ZodNaN.create = (params) => {
12863
- return new ZodNaN(__spreadValues2({
12874
+ return new ZodNaN(__spreadValues({
12864
12875
  typeName: ZodFirstPartyTypeKind.ZodNaN
12865
12876
  }, processCreateParams(params)));
12866
12877
  };
@@ -12883,8 +12894,8 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
12883
12894
  _parse(input) {
12884
12895
  const { status, ctx } = this._processInputParams(input);
12885
12896
  if (ctx.common.async) {
12886
- const handleAsync = () => __async(this, null, function* () {
12887
- const inResult = yield this._def.in._parseAsync({
12897
+ const handleAsync = async () => {
12898
+ const inResult = await this._def.in._parseAsync({
12888
12899
  data: ctx.data,
12889
12900
  path: ctx.path,
12890
12901
  parent: ctx
@@ -12901,7 +12912,7 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
12901
12912
  parent: ctx
12902
12913
  });
12903
12914
  }
12904
- });
12915
+ };
12905
12916
  return handleAsync();
12906
12917
  } else {
12907
12918
  const inResult = this._def.in._parseSync({
@@ -12950,7 +12961,7 @@ var ZodReadonly = class extends ZodType {
12950
12961
  }
12951
12962
  };
12952
12963
  ZodReadonly.create = (type, params) => {
12953
- return new ZodReadonly(__spreadValues2({
12964
+ return new ZodReadonly(__spreadValues({
12954
12965
  innerType: type,
12955
12966
  typeName: ZodFirstPartyTypeKind.ZodReadonly
12956
12967
  }, processCreateParams(params)));
@@ -12966,19 +12977,19 @@ function custom(check, _params2 = {}, fatal) {
12966
12977
  var _a11, _b;
12967
12978
  const r2 = check(data);
12968
12979
  if (r2 instanceof Promise) {
12969
- return r2.then((r22) => {
12970
- var _a22, _b2;
12971
- if (!r22) {
12980
+ return r2.then((r3) => {
12981
+ var _a12, _b2;
12982
+ if (!r3) {
12972
12983
  const params = cleanParams(_params2, data);
12973
- const _fatal = (_b2 = (_a22 = params.fatal) != null ? _a22 : fatal) != null ? _b2 : true;
12974
- ctx.addIssue(__spreadProps2(__spreadValues2({ code: "custom" }, params), { fatal: _fatal }));
12984
+ const _fatal = (_b2 = (_a12 = params.fatal) != null ? _a12 : fatal) != null ? _b2 : true;
12985
+ ctx.addIssue(__spreadProps(__spreadValues({ code: "custom" }, params), { fatal: _fatal }));
12975
12986
  }
12976
12987
  });
12977
12988
  }
12978
12989
  if (!r2) {
12979
12990
  const params = cleanParams(_params2, data);
12980
12991
  const _fatal = (_b = (_a11 = params.fatal) != null ? _a11 : fatal) != null ? _b : true;
12981
- ctx.addIssue(__spreadProps2(__spreadValues2({ code: "custom" }, params), { fatal: _fatal }));
12992
+ ctx.addIssue(__spreadProps(__spreadValues({ code: "custom" }, params), { fatal: _fatal }));
12982
12993
  }
12983
12994
  return;
12984
12995
  });
@@ -13067,15 +13078,17 @@ var ostring = () => stringType().optional();
13067
13078
  var onumber = () => numberType().optional();
13068
13079
  var oboolean = () => booleanType().optional();
13069
13080
  var coerce = {
13070
- string: ((arg) => ZodString.create(__spreadProps2(__spreadValues2({}, arg), { coerce: true }))),
13071
- number: ((arg) => ZodNumber.create(__spreadProps2(__spreadValues2({}, arg), { coerce: true }))),
13072
- boolean: ((arg) => ZodBoolean.create(__spreadProps2(__spreadValues2({}, arg), {
13081
+ string: ((arg) => ZodString.create(__spreadProps(__spreadValues({}, arg), { coerce: true }))),
13082
+ number: ((arg) => ZodNumber.create(__spreadProps(__spreadValues({}, arg), { coerce: true }))),
13083
+ boolean: ((arg) => ZodBoolean.create(__spreadProps(__spreadValues({}, arg), {
13073
13084
  coerce: true
13074
13085
  }))),
13075
- bigint: ((arg) => ZodBigInt.create(__spreadProps2(__spreadValues2({}, arg), { coerce: true }))),
13076
- date: ((arg) => ZodDate.create(__spreadProps2(__spreadValues2({}, arg), { coerce: true })))
13086
+ bigint: ((arg) => ZodBigInt.create(__spreadProps(__spreadValues({}, arg), { coerce: true }))),
13087
+ date: ((arg) => ZodDate.create(__spreadProps(__spreadValues({}, arg), { coerce: true })))
13077
13088
  };
13078
13089
  var NEVER = INVALID;
13090
+
13091
+ // ../core/controllers/entity/list-entities.controller.ts
13079
13092
  var querySchema = external_exports.object({
13080
13093
  limit: external_exports.string().optional(),
13081
13094
  lastKey: external_exports.string().optional(),
@@ -13083,6 +13096,29 @@ var querySchema = external_exports.object({
13083
13096
  start: external_exports.string().optional(),
13084
13097
  end: external_exports.string().optional()
13085
13098
  });
13099
+
13100
+ // ../core/controllers/entity/update-entity.controller.ts
13101
+ var import_http_status8 = __toESM(require_lib(), 1);
13102
+
13103
+ // ../core/controllers/entity/adjust-entity.controller.ts
13104
+ var import_http_status9 = __toESM(require_lib(), 1);
13105
+
13106
+ // ../core/controllers/entity/upsert-entity.controller.ts
13107
+ var import_http_status10 = __toESM(require_lib(), 1);
13108
+
13109
+ // ../core/controllers/mutual/create-mutual.controller.ts
13110
+ var import_http_status11 = __toESM(require_lib(), 1);
13111
+
13112
+ // ../core/controllers/mutual/delete-mutual.controller.ts
13113
+ var import_http_status12 = __toESM(require_lib(), 1);
13114
+
13115
+ // ../core/controllers/mutual/get-mutual.controller.ts
13116
+ var import_http_status13 = __toESM(require_lib(), 1);
13117
+
13118
+ // ../core/controllers/mutual/update-mutual.controller.ts
13119
+ var import_http_status14 = __toESM(require_lib(), 1);
13120
+
13121
+ // ../core/controllers/tag/list-tags.controller.ts
13086
13122
  var querySchema2 = external_exports.object({
13087
13123
  group: external_exports.string().optional(),
13088
13124
  query: external_exports.string().optional(),
@@ -13091,19 +13127,26 @@ var querySchema2 = external_exports.object({
13091
13127
  limit: external_exports.string().optional(),
13092
13128
  lastKey: external_exports.string().optional()
13093
13129
  });
13130
+
13131
+ // ../core/controllers/transaction/execute-transaction.controller.ts
13132
+ var import_http_status15 = __toESM(require_lib(), 1);
13133
+
13134
+ // ../core/controllers/ws/create-ticket.controller.ts
13094
13135
  var TICKET_TTL_SECONDS = 30 * 60;
13136
+
13137
+ // ../core/helpers/transactional.ts
13095
13138
  var transactional = {
13096
13139
  createEntity: (entityType, payload) => {
13097
- const _a11 = payload, { entityId } = _a11, rest = __objRest2(_a11, ["entityId"]);
13098
- return __spreadValues2({
13140
+ const _a11 = payload, { entityId } = _a11, rest = __objRest(_a11, ["entityId"]);
13141
+ return __spreadValues({
13099
13142
  operation: "createEntity",
13100
13143
  entityType,
13101
13144
  payload: rest
13102
13145
  }, entityId && { entityId });
13103
13146
  },
13104
13147
  updateEntity: (entityType, entityId, payload) => {
13105
- const _a11 = payload, { $condition } = _a11, rest = __objRest2(_a11, ["$condition"]);
13106
- return __spreadValues2({
13148
+ const _a11 = payload, { $condition } = _a11, rest = __objRest(_a11, ["$condition"]);
13149
+ return __spreadValues({
13107
13150
  operation: "updateEntity",
13108
13151
  entityType,
13109
13152
  entityId,
@@ -13111,8 +13154,8 @@ var transactional = {
13111
13154
  }, $condition && { condition: $condition });
13112
13155
  },
13113
13156
  adjustEntity: (entityType, entityId, adjustments) => {
13114
- const _a11 = adjustments, { $condition } = _a11, rest = __objRest2(_a11, ["$condition"]);
13115
- return __spreadValues2({
13157
+ const _a11 = adjustments, { $condition } = _a11, rest = __objRest(_a11, ["$condition"]);
13158
+ return __spreadValues({
13116
13159
  operation: "adjustEntity",
13117
13160
  entityType,
13118
13161
  entityId,