twenty-sdk 2.31.0 → 2.33.0

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 (45) hide show
  1. package/dist/billing/index.cjs +1 -1
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs +2 -2
  4. package/dist/billing/index.mjs.map +1 -1
  5. package/dist/{catalog-sync-Ch6nB5uf.mjs → catalog-sync-DUp5hpKi.mjs} +1 -1
  6. package/dist/{catalog-sync-yH3B_al1.js → catalog-sync-DoEI8JO8.js} +1 -1
  7. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +2 -0
  8. package/dist/cli/utilities/translations/collect-translatable-strings.d.ts +2 -1
  9. package/dist/cli/utilities/translations/compile-application-translations.d.ts +1 -1
  10. package/dist/cli/utilities/translations/compile-catalog-to-message-ids.d.ts +8 -0
  11. package/dist/cli/utilities/translations/locale-catalog-format.d.ts +7 -0
  12. package/dist/cli.cjs +37 -37
  13. package/dist/cli.mjs +3139 -3132
  14. package/dist/define/index.cjs +14 -14
  15. package/dist/define/index.cjs.map +1 -1
  16. package/dist/define/index.d.ts +35 -4
  17. package/dist/define/index.mjs +2745 -2733
  18. package/dist/define/index.mjs.map +1 -1
  19. package/dist/front-component/index.cjs +22 -3
  20. package/dist/front-component/index.cjs.map +1 -1
  21. package/dist/front-component/index.d.ts +48 -5
  22. package/dist/front-component/index.mjs +2026 -655
  23. package/dist/front-component/index.mjs.map +1 -1
  24. package/dist/front-component-renderer/build.cjs +1 -1
  25. package/dist/front-component-renderer/build.mjs +1 -1
  26. package/dist/{get-front-component-build-plugins-DA62IZes.mjs → get-front-component-build-plugins-Cn-MWltl.mjs} +69 -67
  27. package/dist/{get-front-component-build-plugins-C-Webbfn.js → get-front-component-build-plugins-DsfkhD6M.js} +8 -8
  28. package/dist/{get-function-input-schema-GNk3NRLJ-DwfXUGPz.js → get-function-input-schema-GNk3NRLJ-B8zXGirB.js} +1 -1
  29. package/dist/{get-function-input-schema-GNk3NRLJ-C5HXalke.mjs → get-function-input-schema-GNk3NRLJ-CwF3VRY5.mjs} +1 -1
  30. package/dist/logic-function/index.cjs +9 -9
  31. package/dist/logic-function/index.cjs.map +1 -1
  32. package/dist/logic-function/index.d.ts +17 -4
  33. package/dist/logic-function/index.mjs +439 -435
  34. package/dist/logic-function/index.mjs.map +1 -1
  35. package/dist/{login-BHgUJK94.mjs → login-153niBFr.mjs} +5897 -4474
  36. package/dist/{login-BzHQgxeV.js → login-Cl5xmujh.js} +66 -47
  37. package/dist/operations.cjs +1 -1
  38. package/dist/operations.mjs +3 -3
  39. package/dist/utils/index.cjs +1 -1
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.mjs +2 -2
  42. package/dist/utils/index.mjs.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/cli/utilities/client/twenty-client-template.d.ts +0 -42
  45. package/dist/cli/utilities/translations/generate-message-id.d.ts +0 -1
@@ -116,7 +116,11 @@ var u = (t) => !e(t) || t === null ? "unknown" : typeof t == "string" ? "string"
116
116
  label: r,
117
117
  value: null
118
118
  };
119
- }, ne = (e) => Object.entries(e).reduce((e, [t, n]) => (e[t] = te(t, n), e), {}), re = class extends Error {
119
+ }, ne = (e) => Object.entries(e).reduce((e, [t, n]) => (e[t] = te(t, n), e), {}), re = "RetryableLogicFunctionError", ie = class extends Error {
120
+ constructor(e) {
121
+ super(e), this.name = re;
122
+ }
123
+ }, ae = class extends Error {
120
124
  constructor(e) {
121
125
  super(`App connection ${e} requires the user to reconnect (authFailedAt is set). Surface a "Reconnect" prompt in your UI.`), this.name = "AppConnectionAuthFailedError", this.connectionId = e;
122
126
  }
@@ -148,24 +152,24 @@ var g = class extends Error {
148
152
  constructor() {
149
153
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
150
154
  }
151
- }, ie = class extends Error {
155
+ }, oe = class extends Error {
152
156
  constructor(e) {
153
157
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
154
158
  }
155
- }, ae = {};
159
+ }, se = {};
156
160
  function _(e) {
157
- return e && Object.assign(ae, e), ae;
161
+ return e && Object.assign(se, e), se;
158
162
  }
159
163
  //#endregion
160
164
  //#region ../../node_modules/zod/v4/core/util.js
161
- function oe(e) {
165
+ function ce(e) {
162
166
  let t = Object.values(e).filter((e) => typeof e == "number");
163
167
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
164
168
  }
165
- function v(e, t) {
169
+ function le(e, t) {
166
170
  return typeof t == "bigint" ? t.toString() : t;
167
171
  }
168
- function se(e) {
172
+ function v(e) {
169
173
  return { get value() {
170
174
  {
171
175
  let t = e();
@@ -181,12 +185,12 @@ function b(e) {
181
185
  let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
182
186
  return e.slice(t, n);
183
187
  }
184
- var ce = Symbol("evaluating");
188
+ var ue = Symbol("evaluating");
185
189
  function x(e, t, n) {
186
190
  let r;
187
191
  Object.defineProperty(e, t, {
188
192
  get() {
189
- if (r !== ce) return r === void 0 && (r = ce, r = n()), r;
193
+ if (r !== ue) return r === void 0 && (r = ue, r = n()), r;
190
194
  },
191
195
  set(n) {
192
196
  Object.defineProperty(e, t, { value: n });
@@ -207,14 +211,14 @@ function C(...e) {
207
211
  for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
208
212
  return Object.defineProperties({}, t);
209
213
  }
210
- function le(e) {
214
+ function de(e) {
211
215
  return JSON.stringify(e);
212
216
  }
213
- var ue = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
217
+ var fe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
214
218
  function w(e) {
215
219
  return typeof e == "object" && !!e && !Array.isArray(e);
216
220
  }
217
- var de = se(() => {
221
+ var pe = v(() => {
218
222
  if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
219
223
  try {
220
224
  return Function(""), !0;
@@ -229,10 +233,10 @@ function T(e) {
229
233
  let n = t.prototype;
230
234
  return !(w(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
231
235
  }
232
- function fe(e) {
236
+ function me(e) {
233
237
  return T(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
234
238
  }
235
- var pe = new Set([
239
+ var he = new Set([
236
240
  "string",
237
241
  "number",
238
242
  "symbol"
@@ -257,11 +261,11 @@ function O(e) {
257
261
  error: () => t.error
258
262
  } : t;
259
263
  }
260
- function me(e) {
264
+ function ge(e) {
261
265
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
262
266
  }
263
267
  -Number.MAX_VALUE, Number.MAX_VALUE;
264
- function he(e, t) {
268
+ function _e(e, t) {
265
269
  let n = e._zod.def;
266
270
  return D(e, C(e._zod.def, {
267
271
  get shape() {
@@ -275,7 +279,7 @@ function he(e, t) {
275
279
  checks: []
276
280
  }));
277
281
  }
278
- function ge(e, t) {
282
+ function ve(e, t) {
279
283
  let n = e._zod.def;
280
284
  return D(e, C(e._zod.def, {
281
285
  get shape() {
@@ -289,7 +293,7 @@ function ge(e, t) {
289
293
  checks: []
290
294
  }));
291
295
  }
292
- function _e(e, t) {
296
+ function ye(e, t) {
293
297
  if (!T(t)) throw Error("Invalid input to extend: expected a plain object");
294
298
  let n = e._zod.def.checks;
295
299
  if (n && n.length > 0) throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
@@ -304,7 +308,7 @@ function _e(e, t) {
304
308
  checks: []
305
309
  }));
306
310
  }
307
- function ve(e, t) {
311
+ function be(e, t) {
308
312
  if (!T(t)) throw Error("Invalid input to safeExtend: expected a plain object");
309
313
  return D(e, {
310
314
  ...e._zod.def,
@@ -318,7 +322,7 @@ function ve(e, t) {
318
322
  checks: e._zod.def.checks
319
323
  });
320
324
  }
321
- function ye(e, t) {
325
+ function xe(e, t) {
322
326
  return D(e, C(e._zod.def, {
323
327
  get shape() {
324
328
  let n = {
@@ -333,7 +337,7 @@ function ye(e, t) {
333
337
  checks: []
334
338
  }));
335
339
  }
336
- function be(e, t, n) {
340
+ function Se(e, t, n) {
337
341
  return D(t, C(t._zod.def, {
338
342
  get shape() {
339
343
  let r = t._zod.def.shape, i = { ...r };
@@ -353,7 +357,7 @@ function be(e, t, n) {
353
357
  checks: []
354
358
  }));
355
359
  }
356
- function xe(e, t, n) {
360
+ function Ce(e, t, n) {
357
361
  return D(t, C(t._zod.def, {
358
362
  get shape() {
359
363
  let r = t._zod.def.shape, i = { ...r };
@@ -378,7 +382,7 @@ function k(e, t = 0) {
378
382
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
379
383
  return !1;
380
384
  }
381
- function Se(e, t) {
385
+ function we(e, t) {
382
386
  return t.map((t) => {
383
387
  var n;
384
388
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
@@ -408,19 +412,19 @@ function N(...e) {
408
412
  }
409
413
  //#endregion
410
414
  //#region ../../node_modules/zod/v4/core/errors.js
411
- var Ce = (e, t) => {
415
+ var Te = (e, t) => {
412
416
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
413
417
  value: e._zod,
414
418
  enumerable: !1
415
419
  }), Object.defineProperty(e, "issues", {
416
420
  value: t,
417
421
  enumerable: !1
418
- }), e.message = JSON.stringify(t, v, 2), Object.defineProperty(e, "toString", {
422
+ }), e.message = JSON.stringify(t, le, 2), Object.defineProperty(e, "toString", {
419
423
  value: () => e.message,
420
424
  enumerable: !1
421
425
  });
422
- }, we = h("$ZodError", Ce), Te = h("$ZodError", Ce, { Parent: Error });
423
- function Ee(e, t = (e) => e.message) {
426
+ }, Ee = h("$ZodError", Te), De = h("$ZodError", Te, { Parent: Error });
427
+ function Oe(e, t = (e) => e.message) {
424
428
  let n = {}, r = [];
425
429
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
426
430
  return {
@@ -428,7 +432,7 @@ function Ee(e, t = (e) => e.message) {
428
432
  fieldErrors: n
429
433
  };
430
434
  }
431
- function De(e, t) {
435
+ function ke(e, t) {
432
436
  let n = t || function(e) {
433
437
  return e.message;
434
438
  }, r = { _errors: [] }, i = (e) => {
@@ -448,7 +452,7 @@ function De(e, t) {
448
452
  }
449
453
  //#endregion
450
454
  //#region ../../node_modules/zod/v4/core/parse.js
451
- var Oe = (e) => (t, n, r, i) => {
455
+ var P = (e) => (t, n, r, i) => {
452
456
  let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
453
457
  value: n,
454
458
  issues: []
@@ -456,20 +460,20 @@ var Oe = (e) => (t, n, r, i) => {
456
460
  if (o instanceof Promise) throw new g();
457
461
  if (o.issues.length) {
458
462
  let t = new (i?.Err ?? e)(o.issues.map((e) => j(e, a, _())));
459
- throw ue(t, i?.callee), t;
463
+ throw fe(t, i?.callee), t;
460
464
  }
461
465
  return o.value;
462
- }, ke = (e) => async (t, n, r, i) => {
466
+ }, F = (e) => async (t, n, r, i) => {
463
467
  let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
464
468
  value: n,
465
469
  issues: []
466
470
  }, a);
467
471
  if (o instanceof Promise && (o = await o), o.issues.length) {
468
472
  let t = new (i?.Err ?? e)(o.issues.map((e) => j(e, a, _())));
469
- throw ue(t, i?.callee), t;
473
+ throw fe(t, i?.callee), t;
470
474
  }
471
475
  return o.value;
472
- }, P = (e) => (t, n, r) => {
476
+ }, I = (e) => (t, n, r) => {
473
477
  let i = r ? {
474
478
  ...r,
475
479
  async: !1
@@ -480,12 +484,12 @@ var Oe = (e) => (t, n, r, i) => {
480
484
  if (a instanceof Promise) throw new g();
481
485
  return a.issues.length ? {
482
486
  success: !1,
483
- error: new (e ?? we)(a.issues.map((e) => j(e, i, _())))
487
+ error: new (e ?? Ee)(a.issues.map((e) => j(e, i, _())))
484
488
  } : {
485
489
  success: !0,
486
490
  data: a.value
487
491
  };
488
- }, Ae = /* @__PURE__*/ P(Te), F = (e) => async (t, n, r) => {
492
+ }, Ae = /* @__PURE__*/ I(De), L = (e) => async (t, n, r) => {
489
493
  let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
490
494
  value: n,
491
495
  issues: []
@@ -497,19 +501,19 @@ var Oe = (e) => (t, n, r, i) => {
497
501
  success: !0,
498
502
  data: a.value
499
503
  };
500
- }, je = /* @__PURE__*/ F(Te), Me = (e) => (t, n, r) => {
501
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
502
- return Oe(e)(t, n, i);
503
- }, Ne = (e) => (t, n, r) => Oe(e)(t, n, r), Pe = (e) => async (t, n, r) => {
504
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
505
- return ke(e)(t, n, i);
506
- }, Fe = (e) => async (t, n, r) => ke(e)(t, n, r), Ie = (e) => (t, n, r) => {
504
+ }, je = /* @__PURE__*/ L(De), Me = (e) => (t, n, r) => {
507
505
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
508
506
  return P(e)(t, n, i);
509
- }, Le = (e) => (t, n, r) => P(e)(t, n, r), Re = (e) => async (t, n, r) => {
507
+ }, Ne = (e) => (t, n, r) => P(e)(t, n, r), Pe = (e) => async (t, n, r) => {
510
508
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
511
509
  return F(e)(t, n, i);
512
- }, ze = (e) => async (t, n, r) => F(e)(t, n, r), Be = /^[cC][^\s-]{8,}$/, Ve = /^[0-9a-z]+$/, He = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ue = /^[0-9a-vA-V]{20}$/, We = /^[A-Za-z0-9]{27}$/, Ge = /^[a-zA-Z0-9_-]{21}$/, Ke = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, qe = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Je = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ye = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
510
+ }, Fe = (e) => async (t, n, r) => F(e)(t, n, r), Ie = (e) => (t, n, r) => {
511
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
512
+ return I(e)(t, n, i);
513
+ }, Le = (e) => (t, n, r) => I(e)(t, n, r), Re = (e) => async (t, n, r) => {
514
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
515
+ return L(e)(t, n, i);
516
+ }, ze = (e) => async (t, n, r) => L(e)(t, n, r), Be = /^[cC][^\s-]{8,}$/, Ve = /^[0-9a-z]+$/, He = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ue = /^[0-9a-vA-V]{20}$/, We = /^[A-Za-z0-9]{27}$/, Ge = /^[a-zA-Z0-9_-]{21}$/, Ke = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, qe = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Je = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ye = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
513
517
  function Ze() {
514
518
  return new RegExp(Xe, "u");
515
519
  }
@@ -530,12 +534,12 @@ function ut(e) {
530
534
  var dt = (e) => {
531
535
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
532
536
  return RegExp(`^${t}$`);
533
- }, ft = /^[^A-Z]*$/, pt = /^[^a-z]*$/, I = /*@__PURE__*/ h("$ZodCheck", (e, t) => {
537
+ }, ft = /^[^A-Z]*$/, pt = /^[^a-z]*$/, R = /*@__PURE__*/ h("$ZodCheck", (e, t) => {
534
538
  var n;
535
539
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
536
540
  }), mt = /*@__PURE__*/ h("$ZodCheckMaxLength", (e, t) => {
537
541
  var n;
538
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
542
+ R.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
539
543
  let t = e.value;
540
544
  return !y(t) && t.length !== void 0;
541
545
  }), e._zod.onattach.push((e) => {
@@ -557,7 +561,7 @@ var dt = (e) => {
557
561
  };
558
562
  }), ht = /*@__PURE__*/ h("$ZodCheckMinLength", (e, t) => {
559
563
  var n;
560
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
564
+ R.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
561
565
  let t = e.value;
562
566
  return !y(t) && t.length !== void 0;
563
567
  }), e._zod.onattach.push((e) => {
@@ -579,7 +583,7 @@ var dt = (e) => {
579
583
  };
580
584
  }), gt = /*@__PURE__*/ h("$ZodCheckLengthEquals", (e, t) => {
581
585
  var n;
582
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
586
+ R.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
583
587
  let t = e.value;
584
588
  return !y(t) && t.length !== void 0;
585
589
  }), e._zod.onattach.push((e) => {
@@ -605,9 +609,9 @@ var dt = (e) => {
605
609
  continue: !t.abort
606
610
  });
607
611
  };
608
- }), L = /*@__PURE__*/ h("$ZodCheckStringFormat", (e, t) => {
612
+ }), z = /*@__PURE__*/ h("$ZodCheckStringFormat", (e, t) => {
609
613
  var n, r;
610
- I.init(e, t), e._zod.onattach.push((e) => {
614
+ R.init(e, t), e._zod.onattach.push((e) => {
611
615
  let n = e._zod.bag;
612
616
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
613
617
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -622,7 +626,7 @@ var dt = (e) => {
622
626
  });
623
627
  }) : (r = e._zod).check ?? (r.check = () => {});
624
628
  }), _t = /*@__PURE__*/ h("$ZodCheckRegex", (e, t) => {
625
- L.init(e, t), e._zod.check = (n) => {
629
+ z.init(e, t), e._zod.check = (n) => {
626
630
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
627
631
  origin: "string",
628
632
  code: "invalid_format",
@@ -634,11 +638,11 @@ var dt = (e) => {
634
638
  });
635
639
  };
636
640
  }), vt = /*@__PURE__*/ h("$ZodCheckLowerCase", (e, t) => {
637
- t.pattern ??= ft, L.init(e, t);
641
+ t.pattern ??= ft, z.init(e, t);
638
642
  }), yt = /*@__PURE__*/ h("$ZodCheckUpperCase", (e, t) => {
639
- t.pattern ??= pt, L.init(e, t);
643
+ t.pattern ??= pt, z.init(e, t);
640
644
  }), bt = /*@__PURE__*/ h("$ZodCheckIncludes", (e, t) => {
641
- I.init(e, t);
645
+ R.init(e, t);
642
646
  let n = E(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
643
647
  t.pattern = r, e._zod.onattach.push((e) => {
644
648
  let t = e._zod.bag;
@@ -655,7 +659,7 @@ var dt = (e) => {
655
659
  });
656
660
  };
657
661
  }), xt = /*@__PURE__*/ h("$ZodCheckStartsWith", (e, t) => {
658
- I.init(e, t);
662
+ R.init(e, t);
659
663
  let n = RegExp(`^${E(t.prefix)}.*`);
660
664
  t.pattern ??= n, e._zod.onattach.push((e) => {
661
665
  let t = e._zod.bag;
@@ -672,7 +676,7 @@ var dt = (e) => {
672
676
  });
673
677
  };
674
678
  }), St = /*@__PURE__*/ h("$ZodCheckEndsWith", (e, t) => {
675
- I.init(e, t);
679
+ R.init(e, t);
676
680
  let n = RegExp(`.*${E(t.suffix)}$`);
677
681
  t.pattern ??= n, e._zod.onattach.push((e) => {
678
682
  let t = e._zod.bag;
@@ -689,7 +693,7 @@ var dt = (e) => {
689
693
  });
690
694
  };
691
695
  }), Ct = /*@__PURE__*/ h("$ZodCheckOverwrite", (e, t) => {
692
- I.init(e, t), e._zod.check = (e) => {
696
+ R.init(e, t), e._zod.check = (e) => {
693
697
  e.value = t.tx(e.value);
694
698
  };
695
699
  }), wt = class {
@@ -715,7 +719,7 @@ var dt = (e) => {
715
719
  major: 4,
716
720
  minor: 1,
717
721
  patch: 11
718
- }, R = /*@__PURE__*/ h("$ZodType", (e, t) => {
722
+ }, B = /*@__PURE__*/ h("$ZodType", (e, t) => {
719
723
  var n;
720
724
  e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Tt;
721
725
  let r = [...e._zod.def.checks ?? []];
@@ -783,8 +787,8 @@ var dt = (e) => {
783
787
  vendor: "zod",
784
788
  version: 1
785
789
  };
786
- }), z = /*@__PURE__*/ h("$ZodString", (e, t) => {
787
- R.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? dt(e._zod.bag), e._zod.parse = (n, r) => {
790
+ }), Et = /*@__PURE__*/ h("$ZodString", (e, t) => {
791
+ B.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? dt(e._zod.bag), e._zod.parse = (n, r) => {
788
792
  if (t.coerce) try {
789
793
  n.value = String(n.value);
790
794
  } catch {}
@@ -795,11 +799,11 @@ var dt = (e) => {
795
799
  inst: e
796
800
  }), n;
797
801
  };
798
- }), B = /*@__PURE__*/ h("$ZodStringFormat", (e, t) => {
799
- L.init(e, t), z.init(e, t);
800
- }), Et = /*@__PURE__*/ h("$ZodGUID", (e, t) => {
801
- t.pattern ??= qe, B.init(e, t);
802
- }), Dt = /*@__PURE__*/ h("$ZodUUID", (e, t) => {
802
+ }), V = /*@__PURE__*/ h("$ZodStringFormat", (e, t) => {
803
+ z.init(e, t), Et.init(e, t);
804
+ }), Dt = /*@__PURE__*/ h("$ZodGUID", (e, t) => {
805
+ t.pattern ??= qe, V.init(e, t);
806
+ }), Ot = /*@__PURE__*/ h("$ZodUUID", (e, t) => {
803
807
  if (t.version) {
804
808
  let e = {
805
809
  v1: 1,
@@ -814,11 +818,11 @@ var dt = (e) => {
814
818
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
815
819
  t.pattern ??= Je(e);
816
820
  } else t.pattern ??= Je();
817
- B.init(e, t);
818
- }), Ot = /*@__PURE__*/ h("$ZodEmail", (e, t) => {
819
- t.pattern ??= Ye, B.init(e, t);
820
- }), kt = /*@__PURE__*/ h("$ZodURL", (e, t) => {
821
- B.init(e, t), e._zod.check = (n) => {
821
+ V.init(e, t);
822
+ }), kt = /*@__PURE__*/ h("$ZodEmail", (e, t) => {
823
+ t.pattern ??= Ye, V.init(e, t);
824
+ }), At = /*@__PURE__*/ h("$ZodURL", (e, t) => {
825
+ V.init(e, t), e._zod.check = (n) => {
822
826
  try {
823
827
  let r = n.value.trim(), i = new URL(r);
824
828
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
@@ -849,35 +853,35 @@ var dt = (e) => {
849
853
  });
850
854
  }
851
855
  };
852
- }), At = /*@__PURE__*/ h("$ZodEmoji", (e, t) => {
853
- t.pattern ??= Ze(), B.init(e, t);
854
- }), jt = /*@__PURE__*/ h("$ZodNanoID", (e, t) => {
855
- t.pattern ??= Ge, B.init(e, t);
856
- }), Mt = /*@__PURE__*/ h("$ZodCUID", (e, t) => {
857
- t.pattern ??= Be, B.init(e, t);
858
- }), Nt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
859
- t.pattern ??= Ve, B.init(e, t);
860
- }), Pt = /*@__PURE__*/ h("$ZodULID", (e, t) => {
861
- t.pattern ??= He, B.init(e, t);
862
- }), Ft = /*@__PURE__*/ h("$ZodXID", (e, t) => {
863
- t.pattern ??= Ue, B.init(e, t);
864
- }), It = /*@__PURE__*/ h("$ZodKSUID", (e, t) => {
865
- t.pattern ??= We, B.init(e, t);
866
- }), Lt = /*@__PURE__*/ h("$ZodISODateTime", (e, t) => {
867
- t.pattern ??= ut(t), B.init(e, t);
868
- }), Rt = /*@__PURE__*/ h("$ZodISODate", (e, t) => {
869
- t.pattern ??= st, B.init(e, t);
870
- }), zt = /*@__PURE__*/ h("$ZodISOTime", (e, t) => {
871
- t.pattern ??= lt(t), B.init(e, t);
872
- }), Bt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
873
- t.pattern ??= Ke, B.init(e, t);
874
- }), Vt = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
875
- t.pattern ??= Qe, B.init(e, t), e._zod.onattach.push((e) => {
856
+ }), jt = /*@__PURE__*/ h("$ZodEmoji", (e, t) => {
857
+ t.pattern ??= Ze(), V.init(e, t);
858
+ }), Mt = /*@__PURE__*/ h("$ZodNanoID", (e, t) => {
859
+ t.pattern ??= Ge, V.init(e, t);
860
+ }), Nt = /*@__PURE__*/ h("$ZodCUID", (e, t) => {
861
+ t.pattern ??= Be, V.init(e, t);
862
+ }), Pt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
863
+ t.pattern ??= Ve, V.init(e, t);
864
+ }), Ft = /*@__PURE__*/ h("$ZodULID", (e, t) => {
865
+ t.pattern ??= He, V.init(e, t);
866
+ }), It = /*@__PURE__*/ h("$ZodXID", (e, t) => {
867
+ t.pattern ??= Ue, V.init(e, t);
868
+ }), Lt = /*@__PURE__*/ h("$ZodKSUID", (e, t) => {
869
+ t.pattern ??= We, V.init(e, t);
870
+ }), Rt = /*@__PURE__*/ h("$ZodISODateTime", (e, t) => {
871
+ t.pattern ??= ut(t), V.init(e, t);
872
+ }), zt = /*@__PURE__*/ h("$ZodISODate", (e, t) => {
873
+ t.pattern ??= st, V.init(e, t);
874
+ }), Bt = /*@__PURE__*/ h("$ZodISOTime", (e, t) => {
875
+ t.pattern ??= lt(t), V.init(e, t);
876
+ }), Vt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
877
+ t.pattern ??= Ke, V.init(e, t);
878
+ }), Ht = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
879
+ t.pattern ??= Qe, V.init(e, t), e._zod.onattach.push((e) => {
876
880
  let t = e._zod.bag;
877
881
  t.format = "ipv4";
878
882
  });
879
- }), Ht = /*@__PURE__*/ h("$ZodIPv6", (e, t) => {
880
- t.pattern ??= $e, B.init(e, t), e._zod.onattach.push((e) => {
883
+ }), Ut = /*@__PURE__*/ h("$ZodIPv6", (e, t) => {
884
+ t.pattern ??= $e, V.init(e, t), e._zod.onattach.push((e) => {
881
885
  let t = e._zod.bag;
882
886
  t.format = "ipv6";
883
887
  }), e._zod.check = (n) => {
@@ -893,10 +897,10 @@ var dt = (e) => {
893
897
  });
894
898
  }
895
899
  };
896
- }), Ut = /*@__PURE__*/ h("$ZodCIDRv4", (e, t) => {
897
- t.pattern ??= et, B.init(e, t);
898
- }), Wt = /*@__PURE__*/ h("$ZodCIDRv6", (e, t) => {
899
- t.pattern ??= tt, B.init(e, t), e._zod.check = (n) => {
900
+ }), Wt = /*@__PURE__*/ h("$ZodCIDRv4", (e, t) => {
901
+ t.pattern ??= et, V.init(e, t);
902
+ }), Gt = /*@__PURE__*/ h("$ZodCIDRv6", (e, t) => {
903
+ t.pattern ??= tt, V.init(e, t), e._zod.check = (n) => {
900
904
  let r = n.value.split("/");
901
905
  try {
902
906
  if (r.length !== 2) throw Error();
@@ -916,7 +920,7 @@ var dt = (e) => {
916
920
  }
917
921
  };
918
922
  });
919
- function Gt(e) {
923
+ function Kt(e) {
920
924
  if (e === "") return !0;
921
925
  if (e.length % 4 != 0) return !1;
922
926
  try {
@@ -925,11 +929,11 @@ function Gt(e) {
925
929
  return !1;
926
930
  }
927
931
  }
928
- var Kt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
929
- t.pattern ??= nt, B.init(e, t), e._zod.onattach.push((e) => {
932
+ var qt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
933
+ t.pattern ??= nt, V.init(e, t), e._zod.onattach.push((e) => {
930
934
  e._zod.bag.contentEncoding = "base64";
931
935
  }), e._zod.check = (n) => {
932
- Gt(n.value) || n.issues.push({
936
+ Kt(n.value) || n.issues.push({
933
937
  code: "invalid_format",
934
938
  format: "base64",
935
939
  input: n.value,
@@ -938,16 +942,16 @@ var Kt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
938
942
  });
939
943
  };
940
944
  });
941
- function qt(e) {
945
+ function Jt(e) {
942
946
  if (!rt.test(e)) return !1;
943
947
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
944
- return Gt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
948
+ return Kt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
945
949
  }
946
- var Jt = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
947
- t.pattern ??= rt, B.init(e, t), e._zod.onattach.push((e) => {
950
+ var Yt = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
951
+ t.pattern ??= rt, V.init(e, t), e._zod.onattach.push((e) => {
948
952
  e._zod.bag.contentEncoding = "base64url";
949
953
  }), e._zod.check = (n) => {
950
- qt(n.value) || n.issues.push({
954
+ Jt(n.value) || n.issues.push({
951
955
  code: "invalid_format",
952
956
  format: "base64url",
953
957
  input: n.value,
@@ -955,10 +959,10 @@ var Jt = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
955
959
  continue: !t.abort
956
960
  });
957
961
  };
958
- }), Yt = /*@__PURE__*/ h("$ZodE164", (e, t) => {
959
- t.pattern ??= at, B.init(e, t);
962
+ }), Xt = /*@__PURE__*/ h("$ZodE164", (e, t) => {
963
+ t.pattern ??= at, V.init(e, t);
960
964
  });
961
- function Xt(e, t = null) {
965
+ function Zt(e, t = null) {
962
966
  try {
963
967
  let n = e.split(".");
964
968
  if (n.length !== 3) return !1;
@@ -970,9 +974,9 @@ function Xt(e, t = null) {
970
974
  return !1;
971
975
  }
972
976
  }
973
- var Zt = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
974
- B.init(e, t), e._zod.check = (n) => {
975
- Xt(n.value, t.alg) || n.issues.push({
977
+ var Qt = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
978
+ V.init(e, t), e._zod.check = (n) => {
979
+ Zt(n.value, t.alg) || n.issues.push({
976
980
  code: "invalid_format",
977
981
  format: "jwt",
978
982
  input: n.value,
@@ -980,21 +984,21 @@ var Zt = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
980
984
  continue: !t.abort
981
985
  });
982
986
  };
983
- }), Qt = /*@__PURE__*/ h("$ZodUnknown", (e, t) => {
984
- R.init(e, t), e._zod.parse = (e) => e;
985
- }), $t = /*@__PURE__*/ h("$ZodNever", (e, t) => {
986
- R.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
987
+ }), $t = /*@__PURE__*/ h("$ZodUnknown", (e, t) => {
988
+ B.init(e, t), e._zod.parse = (e) => e;
989
+ }), en = /*@__PURE__*/ h("$ZodNever", (e, t) => {
990
+ B.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
987
991
  expected: "never",
988
992
  code: "invalid_type",
989
993
  input: t.value,
990
994
  inst: e
991
995
  }), t);
992
996
  });
993
- function en(e, t, n) {
994
- e.issues.length && t.issues.push(...Se(n, e.issues)), t.value[n] = e.value;
997
+ function tn(e, t, n) {
998
+ e.issues.length && t.issues.push(...we(n, e.issues)), t.value[n] = e.value;
995
999
  }
996
- var tn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
997
- R.init(e, t), e._zod.parse = (n, r) => {
1000
+ var nn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
1001
+ B.init(e, t), e._zod.parse = (n, r) => {
998
1002
  let i = n.value;
999
1003
  if (!Array.isArray(i)) return n.issues.push({
1000
1004
  expected: "array",
@@ -1009,18 +1013,18 @@ var tn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
1009
1013
  value: o,
1010
1014
  issues: []
1011
1015
  }, r);
1012
- s instanceof Promise ? a.push(s.then((t) => en(t, n, e))) : en(s, n, e);
1016
+ s instanceof Promise ? a.push(s.then((t) => tn(t, n, e))) : tn(s, n, e);
1013
1017
  }
1014
1018
  return a.length ? Promise.all(a).then(() => n) : n;
1015
1019
  };
1016
1020
  });
1017
- function V(e, t, n, r) {
1018
- e.issues.length && t.issues.push(...Se(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1021
+ function H(e, t, n, r) {
1022
+ e.issues.length && t.issues.push(...we(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1019
1023
  }
1020
- function nn(e) {
1024
+ function rn(e) {
1021
1025
  let t = Object.keys(e.shape);
1022
1026
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1023
- let n = me(e.shape);
1027
+ let n = ge(e.shape);
1024
1028
  return {
1025
1029
  ...e,
1026
1030
  keys: t,
@@ -1029,7 +1033,7 @@ function nn(e) {
1029
1033
  optionalKeys: new Set(n)
1030
1034
  };
1031
1035
  }
1032
- function rn(e, t, n, r, i, a) {
1036
+ function an(e, t, n, r, i, a) {
1033
1037
  let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type;
1034
1038
  for (let i of Object.keys(t)) {
1035
1039
  if (s.has(i)) continue;
@@ -1041,7 +1045,7 @@ function rn(e, t, n, r, i, a) {
1041
1045
  value: t[i],
1042
1046
  issues: []
1043
1047
  }, r);
1044
- a instanceof Promise ? e.push(a.then((e) => V(e, n, i, t))) : V(a, n, i, t);
1048
+ a instanceof Promise ? e.push(a.then((e) => H(e, n, i, t))) : H(a, n, i, t);
1045
1049
  }
1046
1050
  return o.length && n.issues.push({
1047
1051
  code: "unrecognized_keys",
@@ -1050,15 +1054,15 @@ function rn(e, t, n, r, i, a) {
1050
1054
  inst: a
1051
1055
  }), e.length ? Promise.all(e).then(() => n) : n;
1052
1056
  }
1053
- var an = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1054
- if (R.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1057
+ var on = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1058
+ if (B.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1055
1059
  let e = t.shape;
1056
1060
  Object.defineProperty(t, "shape", { get: () => {
1057
1061
  let n = { ...e };
1058
1062
  return Object.defineProperty(t, "shape", { value: n }), n;
1059
1063
  } });
1060
1064
  }
1061
- let n = se(() => nn(t));
1065
+ let n = v(() => rn(t));
1062
1066
  x(e._zod, "propValues", () => {
1063
1067
  let e = t.shape, n = {};
1064
1068
  for (let t in e) {
@@ -1087,19 +1091,19 @@ var an = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1087
1091
  value: s[e],
1088
1092
  issues: []
1089
1093
  }, o);
1090
- n instanceof Promise ? c.push(n.then((n) => V(n, t, e, s))) : V(n, t, e, s);
1094
+ n instanceof Promise ? c.push(n.then((n) => H(n, t, e, s))) : H(n, t, e, s);
1091
1095
  }
1092
- return i ? rn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1096
+ return i ? an(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1093
1097
  };
1094
- }), on = /*@__PURE__*/ h("$ZodObjectJIT", (e, t) => {
1095
- an.init(e, t);
1096
- let n = e._zod.parse, r = se(() => nn(t)), i = (e) => {
1098
+ }), sn = /*@__PURE__*/ h("$ZodObjectJIT", (e, t) => {
1099
+ on.init(e, t);
1100
+ let n = e._zod.parse, r = v(() => rn(t)), i = (e) => {
1097
1101
  let t = new wt([
1098
1102
  "shape",
1099
1103
  "payload",
1100
1104
  "ctx"
1101
1105
  ]), n = r.value, i = (e) => {
1102
- let t = le(e);
1106
+ let t = de(e);
1103
1107
  return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
1104
1108
  };
1105
1109
  t.write("const input = payload.value;");
@@ -1107,7 +1111,7 @@ var an = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1107
1111
  for (let e of n.keys) a[e] = `key_${o++}`;
1108
1112
  t.write("const newResult = {};");
1109
1113
  for (let e of n.keys) {
1110
- let n = a[e], r = le(e);
1114
+ let n = a[e], r = de(e);
1111
1115
  t.write(`const ${n} = ${i(e)};`), t.write(`
1112
1116
  if (${n}.issues.length) {
1113
1117
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -1130,11 +1134,11 @@ var an = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1130
1134
  t.write("payload.value = newResult;"), t.write("return payload;");
1131
1135
  let s = t.compile();
1132
1136
  return (t, n) => s(e, t, n);
1133
- }, a, o = w, s = !ae.jitless, c = s && de.value, l = t.catchall, u;
1137
+ }, a, o = w, s = !se.jitless, c = s && pe.value, l = t.catchall, u;
1134
1138
  e._zod.parse = (d, f) => {
1135
1139
  u ??= r.value;
1136
1140
  let p = d.value;
1137
- return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? rn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
1141
+ return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? an([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
1138
1142
  expected: "object",
1139
1143
  code: "invalid_type",
1140
1144
  input: p,
@@ -1142,7 +1146,7 @@ var an = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1142
1146
  }), d);
1143
1147
  };
1144
1148
  });
1145
- function sn(e, t, n, r) {
1149
+ function cn(e, t, n, r) {
1146
1150
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1147
1151
  let i = e.filter((e) => !k(e));
1148
1152
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
@@ -1152,8 +1156,8 @@ function sn(e, t, n, r) {
1152
1156
  errors: e.map((e) => e.issues.map((e) => j(e, r, _())))
1153
1157
  }), t);
1154
1158
  }
1155
- var cn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
1156
- R.init(e, t), x(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), x(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), x(e._zod, "values", () => {
1159
+ var ln = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
1160
+ B.init(e, t), x(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), x(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), x(e._zod, "values", () => {
1157
1161
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1158
1162
  }), x(e._zod, "pattern", () => {
1159
1163
  if (t.options.every((e) => e._zod.pattern)) {
@@ -1176,10 +1180,10 @@ var cn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
1176
1180
  s.push(t);
1177
1181
  }
1178
1182
  }
1179
- return o ? Promise.all(s).then((t) => sn(t, i, e, a)) : sn(s, i, e, a);
1183
+ return o ? Promise.all(s).then((t) => cn(t, i, e, a)) : cn(s, i, e, a);
1180
1184
  };
1181
- }), ln = /*@__PURE__*/ h("$ZodIntersection", (e, t) => {
1182
- R.init(e, t), e._zod.parse = (e, n) => {
1185
+ }), un = /*@__PURE__*/ h("$ZodIntersection", (e, t) => {
1186
+ B.init(e, t), e._zod.parse = (e, n) => {
1183
1187
  let r = e.value, i = t.left._zod.run({
1184
1188
  value: r,
1185
1189
  issues: []
@@ -1187,10 +1191,10 @@ var cn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
1187
1191
  value: r,
1188
1192
  issues: []
1189
1193
  }, n);
1190
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => un(e, t, n)) : un(e, i, a);
1194
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => fn(e, t, n)) : fn(e, i, a);
1191
1195
  };
1192
1196
  });
1193
- function H(e, t) {
1197
+ function dn(e, t) {
1194
1198
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1195
1199
  valid: !0,
1196
1200
  data: e
@@ -1201,7 +1205,7 @@ function H(e, t) {
1201
1205
  ...t
1202
1206
  };
1203
1207
  for (let n of r) {
1204
- let r = H(e[n], t[n]);
1208
+ let r = dn(e[n], t[n]);
1205
1209
  if (!r.valid) return {
1206
1210
  valid: !1,
1207
1211
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1220,7 +1224,7 @@ function H(e, t) {
1220
1224
  };
1221
1225
  let n = [];
1222
1226
  for (let r = 0; r < e.length; r++) {
1223
- let i = e[r], a = t[r], o = H(i, a);
1227
+ let i = e[r], a = t[r], o = dn(i, a);
1224
1228
  if (!o.valid) return {
1225
1229
  valid: !1,
1226
1230
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1237,16 +1241,16 @@ function H(e, t) {
1237
1241
  mergeErrorPath: []
1238
1242
  };
1239
1243
  }
1240
- function un(e, t, n) {
1244
+ function fn(e, t, n) {
1241
1245
  if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), k(e)) return e;
1242
- let r = H(t.value, n.value);
1246
+ let r = dn(t.value, n.value);
1243
1247
  if (!r.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1244
1248
  return e.value = r.data, e;
1245
1249
  }
1246
- var dn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
1247
- R.init(e, t);
1248
- let n = oe(t.entries), r = new Set(n);
1249
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => pe.has(typeof e)).map((e) => typeof e == "string" ? E(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1250
+ var pn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
1251
+ B.init(e, t);
1252
+ let n = ce(t.entries), r = new Set(n);
1253
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => he.has(typeof e)).map((e) => typeof e == "string" ? E(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1250
1254
  let a = t.value;
1251
1255
  return r.has(a) || t.issues.push({
1252
1256
  code: "invalid_value",
@@ -1255,60 +1259,60 @@ var dn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
1255
1259
  inst: e
1256
1260
  }), t;
1257
1261
  };
1258
- }), fn = /*@__PURE__*/ h("$ZodTransform", (e, t) => {
1259
- R.init(e, t), e._zod.parse = (n, r) => {
1260
- if (r.direction === "backward") throw new ie(e.constructor.name);
1262
+ }), mn = /*@__PURE__*/ h("$ZodTransform", (e, t) => {
1263
+ B.init(e, t), e._zod.parse = (n, r) => {
1264
+ if (r.direction === "backward") throw new oe(e.constructor.name);
1261
1265
  let i = t.transform(n.value, n);
1262
1266
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
1263
1267
  if (i instanceof Promise) throw new g();
1264
1268
  return n.value = i, n;
1265
1269
  };
1266
1270
  });
1267
- function pn(e, t) {
1271
+ function hn(e, t) {
1268
1272
  return e.issues.length && t === void 0 ? {
1269
1273
  issues: [],
1270
1274
  value: void 0
1271
1275
  } : e;
1272
1276
  }
1273
- var mn = /*@__PURE__*/ h("$ZodOptional", (e, t) => {
1274
- R.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", x(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), x(e._zod, "pattern", () => {
1277
+ var gn = /*@__PURE__*/ h("$ZodOptional", (e, t) => {
1278
+ B.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", x(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), x(e._zod, "pattern", () => {
1275
1279
  let e = t.innerType._zod.pattern;
1276
1280
  return e ? RegExp(`^(${b(e.source)})?$`) : void 0;
1277
1281
  }), e._zod.parse = (e, n) => {
1278
1282
  if (t.innerType._zod.optin === "optional") {
1279
1283
  let r = t.innerType._zod.run(e, n);
1280
- return r instanceof Promise ? r.then((t) => pn(t, e.value)) : pn(r, e.value);
1284
+ return r instanceof Promise ? r.then((t) => hn(t, e.value)) : hn(r, e.value);
1281
1285
  }
1282
1286
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1283
1287
  };
1284
- }), hn = /*@__PURE__*/ h("$ZodNullable", (e, t) => {
1285
- R.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "pattern", () => {
1288
+ }), _n = /*@__PURE__*/ h("$ZodNullable", (e, t) => {
1289
+ B.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "pattern", () => {
1286
1290
  let e = t.innerType._zod.pattern;
1287
1291
  return e ? RegExp(`^(${b(e.source)}|null)$`) : void 0;
1288
1292
  }), x(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1289
- }), gn = /*@__PURE__*/ h("$ZodDefault", (e, t) => {
1290
- R.init(e, t), e._zod.optin = "optional", x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1293
+ }), vn = /*@__PURE__*/ h("$ZodDefault", (e, t) => {
1294
+ B.init(e, t), e._zod.optin = "optional", x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1291
1295
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1292
1296
  if (e.value === void 0) return e.value = t.defaultValue, e;
1293
1297
  let r = t.innerType._zod.run(e, n);
1294
- return r instanceof Promise ? r.then((e) => _n(e, t)) : _n(r, t);
1298
+ return r instanceof Promise ? r.then((e) => yn(e, t)) : yn(r, t);
1295
1299
  };
1296
1300
  });
1297
- function _n(e, t) {
1301
+ function yn(e, t) {
1298
1302
  return e.value === void 0 && (e.value = t.defaultValue), e;
1299
1303
  }
1300
- var vn = /*@__PURE__*/ h("$ZodPrefault", (e, t) => {
1301
- R.init(e, t), e._zod.optin = "optional", x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1302
- }), yn = /*@__PURE__*/ h("$ZodNonOptional", (e, t) => {
1303
- R.init(e, t), x(e._zod, "values", () => {
1304
+ var bn = /*@__PURE__*/ h("$ZodPrefault", (e, t) => {
1305
+ B.init(e, t), e._zod.optin = "optional", x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1306
+ }), xn = /*@__PURE__*/ h("$ZodNonOptional", (e, t) => {
1307
+ B.init(e, t), x(e._zod, "values", () => {
1304
1308
  let e = t.innerType._zod.values;
1305
1309
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1306
1310
  }), e._zod.parse = (n, r) => {
1307
1311
  let i = t.innerType._zod.run(n, r);
1308
- return i instanceof Promise ? i.then((t) => bn(t, e)) : bn(i, e);
1312
+ return i instanceof Promise ? i.then((t) => Sn(t, e)) : Sn(i, e);
1309
1313
  };
1310
1314
  });
1311
- function bn(e, t) {
1315
+ function Sn(e, t) {
1312
1316
  return !e.issues.length && e.value === void 0 && e.issues.push({
1313
1317
  code: "invalid_type",
1314
1318
  expected: "nonoptional",
@@ -1316,8 +1320,8 @@ function bn(e, t) {
1316
1320
  inst: t
1317
1321
  }), e;
1318
1322
  }
1319
- var xn = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
1320
- R.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1323
+ var Cn = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
1324
+ B.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1321
1325
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1322
1326
  let r = t.innerType._zod.run(e, n);
1323
1327
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
@@ -1330,8 +1334,8 @@ var xn = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
1330
1334
  input: e.value
1331
1335
  }), e.issues = []), e);
1332
1336
  };
1333
- }), Sn = /*@__PURE__*/ h("$ZodPipe", (e, t) => {
1334
- R.init(e, t), x(e._zod, "values", () => t.in._zod.values), x(e._zod, "optin", () => t.in._zod.optin), x(e._zod, "optout", () => t.out._zod.optout), x(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1337
+ }), wn = /*@__PURE__*/ h("$ZodPipe", (e, t) => {
1338
+ B.init(e, t), x(e._zod, "values", () => t.in._zod.values), x(e._zod, "optin", () => t.in._zod.optin), x(e._zod, "optout", () => t.out._zod.optout), x(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1335
1339
  if (n.direction === "backward") {
1336
1340
  let r = t.out._zod.run(e, n);
1337
1341
  return r instanceof Promise ? r.then((e) => U(e, t.in, n)) : U(r, t.in, n);
@@ -1346,24 +1350,24 @@ function U(e, t, n) {
1346
1350
  issues: e.issues
1347
1351
  }, n);
1348
1352
  }
1349
- var Cn = /*@__PURE__*/ h("$ZodReadonly", (e, t) => {
1350
- R.init(e, t), x(e._zod, "propValues", () => t.innerType._zod.propValues), x(e._zod, "values", () => t.innerType._zod.values), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
1353
+ var Tn = /*@__PURE__*/ h("$ZodReadonly", (e, t) => {
1354
+ B.init(e, t), x(e._zod, "propValues", () => t.innerType._zod.propValues), x(e._zod, "values", () => t.innerType._zod.values), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
1351
1355
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1352
1356
  let r = t.innerType._zod.run(e, n);
1353
- return r instanceof Promise ? r.then(wn) : wn(r);
1357
+ return r instanceof Promise ? r.then(En) : En(r);
1354
1358
  };
1355
1359
  });
1356
- function wn(e) {
1360
+ function En(e) {
1357
1361
  return e.value = Object.freeze(e.value), e;
1358
1362
  }
1359
- var Tn = /*@__PURE__*/ h("$ZodCustom", (e, t) => {
1360
- I.init(e, t), R.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1363
+ var Dn = /*@__PURE__*/ h("$ZodCustom", (e, t) => {
1364
+ R.init(e, t), B.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1361
1365
  let r = n.value, i = t.fn(r);
1362
- if (i instanceof Promise) return i.then((t) => En(t, n, r, e));
1363
- En(i, n, r, e);
1366
+ if (i instanceof Promise) return i.then((t) => On(t, n, r, e));
1367
+ On(i, n, r, e);
1364
1368
  };
1365
1369
  });
1366
- function En(e, t, n, r) {
1370
+ function On(e, t, n, r) {
1367
1371
  if (!e) {
1368
1372
  let e = {
1369
1373
  code: "custom",
@@ -1377,7 +1381,7 @@ function En(e, t, n, r) {
1377
1381
  }
1378
1382
  //#endregion
1379
1383
  //#region ../../node_modules/zod/v4/core/registries.js
1380
- var Dn = class {
1384
+ var kn = class {
1381
1385
  constructor() {
1382
1386
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1383
1387
  }
@@ -1413,19 +1417,19 @@ var Dn = class {
1413
1417
  return this._map.has(e);
1414
1418
  }
1415
1419
  };
1416
- function On() {
1417
- return new Dn();
1420
+ function An() {
1421
+ return new kn();
1418
1422
  }
1419
- var W = /*@__PURE__*/ On();
1423
+ var W = /*@__PURE__*/ An();
1420
1424
  //#endregion
1421
1425
  //#region ../../node_modules/zod/v4/core/api.js
1422
- function kn(e, t) {
1426
+ function jn(e, t) {
1423
1427
  return new e({
1424
1428
  type: "string",
1425
1429
  ...O(t)
1426
1430
  });
1427
1431
  }
1428
- function An(e, t) {
1432
+ function Mn(e, t) {
1429
1433
  return new e({
1430
1434
  type: "string",
1431
1435
  format: "email",
@@ -1434,7 +1438,7 @@ function An(e, t) {
1434
1438
  ...O(t)
1435
1439
  });
1436
1440
  }
1437
- function jn(e, t) {
1441
+ function Nn(e, t) {
1438
1442
  return new e({
1439
1443
  type: "string",
1440
1444
  format: "guid",
@@ -1443,7 +1447,7 @@ function jn(e, t) {
1443
1447
  ...O(t)
1444
1448
  });
1445
1449
  }
1446
- function Mn(e, t) {
1450
+ function Pn(e, t) {
1447
1451
  return new e({
1448
1452
  type: "string",
1449
1453
  format: "uuid",
@@ -1452,7 +1456,7 @@ function Mn(e, t) {
1452
1456
  ...O(t)
1453
1457
  });
1454
1458
  }
1455
- function Nn(e, t) {
1459
+ function Fn(e, t) {
1456
1460
  return new e({
1457
1461
  type: "string",
1458
1462
  format: "uuid",
@@ -1462,7 +1466,7 @@ function Nn(e, t) {
1462
1466
  ...O(t)
1463
1467
  });
1464
1468
  }
1465
- function Pn(e, t) {
1469
+ function In(e, t) {
1466
1470
  return new e({
1467
1471
  type: "string",
1468
1472
  format: "uuid",
@@ -1472,7 +1476,7 @@ function Pn(e, t) {
1472
1476
  ...O(t)
1473
1477
  });
1474
1478
  }
1475
- function Fn(e, t) {
1479
+ function Ln(e, t) {
1476
1480
  return new e({
1477
1481
  type: "string",
1478
1482
  format: "uuid",
@@ -1482,7 +1486,7 @@ function Fn(e, t) {
1482
1486
  ...O(t)
1483
1487
  });
1484
1488
  }
1485
- function In(e, t) {
1489
+ function Rn(e, t) {
1486
1490
  return new e({
1487
1491
  type: "string",
1488
1492
  format: "url",
@@ -1491,7 +1495,7 @@ function In(e, t) {
1491
1495
  ...O(t)
1492
1496
  });
1493
1497
  }
1494
- function Ln(e, t) {
1498
+ function zn(e, t) {
1495
1499
  return new e({
1496
1500
  type: "string",
1497
1501
  format: "emoji",
@@ -1500,7 +1504,7 @@ function Ln(e, t) {
1500
1504
  ...O(t)
1501
1505
  });
1502
1506
  }
1503
- function Rn(e, t) {
1507
+ function Bn(e, t) {
1504
1508
  return new e({
1505
1509
  type: "string",
1506
1510
  format: "nanoid",
@@ -1509,7 +1513,7 @@ function Rn(e, t) {
1509
1513
  ...O(t)
1510
1514
  });
1511
1515
  }
1512
- function zn(e, t) {
1516
+ function Vn(e, t) {
1513
1517
  return new e({
1514
1518
  type: "string",
1515
1519
  format: "cuid",
@@ -1518,7 +1522,7 @@ function zn(e, t) {
1518
1522
  ...O(t)
1519
1523
  });
1520
1524
  }
1521
- function Bn(e, t) {
1525
+ function Hn(e, t) {
1522
1526
  return new e({
1523
1527
  type: "string",
1524
1528
  format: "cuid2",
@@ -1527,7 +1531,7 @@ function Bn(e, t) {
1527
1531
  ...O(t)
1528
1532
  });
1529
1533
  }
1530
- function Vn(e, t) {
1534
+ function Un(e, t) {
1531
1535
  return new e({
1532
1536
  type: "string",
1533
1537
  format: "ulid",
@@ -1536,7 +1540,7 @@ function Vn(e, t) {
1536
1540
  ...O(t)
1537
1541
  });
1538
1542
  }
1539
- function Hn(e, t) {
1543
+ function Wn(e, t) {
1540
1544
  return new e({
1541
1545
  type: "string",
1542
1546
  format: "xid",
@@ -1545,7 +1549,7 @@ function Hn(e, t) {
1545
1549
  ...O(t)
1546
1550
  });
1547
1551
  }
1548
- function Un(e, t) {
1552
+ function Gn(e, t) {
1549
1553
  return new e({
1550
1554
  type: "string",
1551
1555
  format: "ksuid",
@@ -1554,7 +1558,7 @@ function Un(e, t) {
1554
1558
  ...O(t)
1555
1559
  });
1556
1560
  }
1557
- function Wn(e, t) {
1561
+ function Kn(e, t) {
1558
1562
  return new e({
1559
1563
  type: "string",
1560
1564
  format: "ipv4",
@@ -1563,7 +1567,7 @@ function Wn(e, t) {
1563
1567
  ...O(t)
1564
1568
  });
1565
1569
  }
1566
- function Gn(e, t) {
1570
+ function qn(e, t) {
1567
1571
  return new e({
1568
1572
  type: "string",
1569
1573
  format: "ipv6",
@@ -1572,7 +1576,7 @@ function Gn(e, t) {
1572
1576
  ...O(t)
1573
1577
  });
1574
1578
  }
1575
- function Kn(e, t) {
1579
+ function Jn(e, t) {
1576
1580
  return new e({
1577
1581
  type: "string",
1578
1582
  format: "cidrv4",
@@ -1581,7 +1585,7 @@ function Kn(e, t) {
1581
1585
  ...O(t)
1582
1586
  });
1583
1587
  }
1584
- function qn(e, t) {
1588
+ function Yn(e, t) {
1585
1589
  return new e({
1586
1590
  type: "string",
1587
1591
  format: "cidrv6",
@@ -1590,7 +1594,7 @@ function qn(e, t) {
1590
1594
  ...O(t)
1591
1595
  });
1592
1596
  }
1593
- function Jn(e, t) {
1597
+ function Xn(e, t) {
1594
1598
  return new e({
1595
1599
  type: "string",
1596
1600
  format: "base64",
@@ -1599,7 +1603,7 @@ function Jn(e, t) {
1599
1603
  ...O(t)
1600
1604
  });
1601
1605
  }
1602
- function Yn(e, t) {
1606
+ function Zn(e, t) {
1603
1607
  return new e({
1604
1608
  type: "string",
1605
1609
  format: "base64url",
@@ -1608,7 +1612,7 @@ function Yn(e, t) {
1608
1612
  ...O(t)
1609
1613
  });
1610
1614
  }
1611
- function Xn(e, t) {
1615
+ function Qn(e, t) {
1612
1616
  return new e({
1613
1617
  type: "string",
1614
1618
  format: "e164",
@@ -1617,7 +1621,7 @@ function Xn(e, t) {
1617
1621
  ...O(t)
1618
1622
  });
1619
1623
  }
1620
- function Zn(e, t) {
1624
+ function $n(e, t) {
1621
1625
  return new e({
1622
1626
  type: "string",
1623
1627
  format: "jwt",
@@ -1626,7 +1630,7 @@ function Zn(e, t) {
1626
1630
  ...O(t)
1627
1631
  });
1628
1632
  }
1629
- function Qn(e, t) {
1633
+ function er(e, t) {
1630
1634
  return new e({
1631
1635
  type: "string",
1632
1636
  format: "datetime",
@@ -1637,7 +1641,7 @@ function Qn(e, t) {
1637
1641
  ...O(t)
1638
1642
  });
1639
1643
  }
1640
- function $n(e, t) {
1644
+ function tr(e, t) {
1641
1645
  return new e({
1642
1646
  type: "string",
1643
1647
  format: "date",
@@ -1645,7 +1649,7 @@ function $n(e, t) {
1645
1649
  ...O(t)
1646
1650
  });
1647
1651
  }
1648
- function er(e, t) {
1652
+ function nr(e, t) {
1649
1653
  return new e({
1650
1654
  type: "string",
1651
1655
  format: "time",
@@ -1654,7 +1658,7 @@ function er(e, t) {
1654
1658
  ...O(t)
1655
1659
  });
1656
1660
  }
1657
- function tr(e, t) {
1661
+ function rr(e, t) {
1658
1662
  return new e({
1659
1663
  type: "string",
1660
1664
  format: "duration",
@@ -1662,16 +1666,16 @@ function tr(e, t) {
1662
1666
  ...O(t)
1663
1667
  });
1664
1668
  }
1665
- function nr(e) {
1669
+ function ir(e) {
1666
1670
  return new e({ type: "unknown" });
1667
1671
  }
1668
- function rr(e, t) {
1672
+ function ar(e, t) {
1669
1673
  return new e({
1670
1674
  type: "never",
1671
1675
  ...O(t)
1672
1676
  });
1673
1677
  }
1674
- function ir(e, t) {
1678
+ function or(e, t) {
1675
1679
  return new mt({
1676
1680
  check: "max_length",
1677
1681
  ...O(t),
@@ -1685,14 +1689,14 @@ function G(e, t) {
1685
1689
  minimum: e
1686
1690
  });
1687
1691
  }
1688
- function ar(e, t) {
1692
+ function sr(e, t) {
1689
1693
  return new gt({
1690
1694
  check: "length_equals",
1691
1695
  ...O(t),
1692
1696
  length: e
1693
1697
  });
1694
1698
  }
1695
- function or(e, t) {
1699
+ function cr(e, t) {
1696
1700
  return new _t({
1697
1701
  check: "string_format",
1698
1702
  format: "regex",
@@ -1700,21 +1704,21 @@ function or(e, t) {
1700
1704
  pattern: e
1701
1705
  });
1702
1706
  }
1703
- function sr(e) {
1707
+ function lr(e) {
1704
1708
  return new vt({
1705
1709
  check: "string_format",
1706
1710
  format: "lowercase",
1707
1711
  ...O(e)
1708
1712
  });
1709
1713
  }
1710
- function cr(e) {
1714
+ function ur(e) {
1711
1715
  return new yt({
1712
1716
  check: "string_format",
1713
1717
  format: "uppercase",
1714
1718
  ...O(e)
1715
1719
  });
1716
1720
  }
1717
- function lr(e, t) {
1721
+ function dr(e, t) {
1718
1722
  return new bt({
1719
1723
  check: "string_format",
1720
1724
  format: "includes",
@@ -1722,7 +1726,7 @@ function lr(e, t) {
1722
1726
  includes: e
1723
1727
  });
1724
1728
  }
1725
- function ur(e, t) {
1729
+ function fr(e, t) {
1726
1730
  return new xt({
1727
1731
  check: "string_format",
1728
1732
  format: "starts_with",
@@ -1730,7 +1734,7 @@ function ur(e, t) {
1730
1734
  prefix: e
1731
1735
  });
1732
1736
  }
1733
- function dr(e, t) {
1737
+ function pr(e, t) {
1734
1738
  return new St({
1735
1739
  check: "string_format",
1736
1740
  format: "ends_with",
@@ -1744,26 +1748,26 @@ function K(e) {
1744
1748
  tx: e
1745
1749
  });
1746
1750
  }
1747
- function fr(e) {
1751
+ function mr(e) {
1748
1752
  return K((t) => t.normalize(e));
1749
1753
  }
1750
- function pr() {
1754
+ function hr() {
1751
1755
  return K((e) => e.trim());
1752
1756
  }
1753
- function mr() {
1757
+ function gr() {
1754
1758
  return K((e) => e.toLowerCase());
1755
1759
  }
1756
- function hr() {
1760
+ function _r() {
1757
1761
  return K((e) => e.toUpperCase());
1758
1762
  }
1759
- function gr(e, t, n) {
1763
+ function vr(e, t, n) {
1760
1764
  return new e({
1761
1765
  type: "array",
1762
1766
  element: t,
1763
1767
  ...O(n)
1764
1768
  });
1765
1769
  }
1766
- function _r(e, t, n) {
1770
+ function yr(e, t, n) {
1767
1771
  return new e({
1768
1772
  type: "custom",
1769
1773
  check: "custom",
@@ -1771,8 +1775,8 @@ function _r(e, t, n) {
1771
1775
  ...O(n)
1772
1776
  });
1773
1777
  }
1774
- function vr(e) {
1775
- let t = yr((n) => (n.addIssue = (e) => {
1778
+ function br(e) {
1779
+ let t = xr((n) => (n.addIssue = (e) => {
1776
1780
  if (typeof e == "string") n.issues.push(N(e, n.value, t._zod.def));
1777
1781
  else {
1778
1782
  let r = e;
@@ -1781,8 +1785,8 @@ function vr(e) {
1781
1785
  }, e(n.value, n)));
1782
1786
  return t;
1783
1787
  }
1784
- function yr(e, t) {
1785
- let n = new I({
1788
+ function xr(e, t) {
1789
+ let n = new R({
1786
1790
  check: "custom",
1787
1791
  ...O(t)
1788
1792
  });
@@ -1790,53 +1794,53 @@ function yr(e, t) {
1790
1794
  }
1791
1795
  //#endregion
1792
1796
  //#region ../../node_modules/zod/v4/classic/iso.js
1793
- var br = /*@__PURE__*/ h("ZodISODateTime", (e, t) => {
1794
- Lt.init(e, t), Y.init(e, t);
1795
- });
1796
- function xr(e) {
1797
- return Qn(br, e);
1798
- }
1799
- var Sr = /*@__PURE__*/ h("ZodISODate", (e, t) => {
1797
+ var Sr = /*@__PURE__*/ h("ZodISODateTime", (e, t) => {
1800
1798
  Rt.init(e, t), Y.init(e, t);
1801
1799
  });
1802
1800
  function Cr(e) {
1803
- return $n(Sr, e);
1801
+ return er(Sr, e);
1804
1802
  }
1805
- var wr = /*@__PURE__*/ h("ZodISOTime", (e, t) => {
1803
+ var wr = /*@__PURE__*/ h("ZodISODate", (e, t) => {
1806
1804
  zt.init(e, t), Y.init(e, t);
1807
1805
  });
1808
1806
  function Tr(e) {
1809
- return er(wr, e);
1807
+ return tr(wr, e);
1810
1808
  }
1811
- var Er = /*@__PURE__*/ h("ZodISODuration", (e, t) => {
1809
+ var Er = /*@__PURE__*/ h("ZodISOTime", (e, t) => {
1812
1810
  Bt.init(e, t), Y.init(e, t);
1813
1811
  });
1814
1812
  function Dr(e) {
1815
- return tr(Er, e);
1813
+ return nr(Er, e);
1814
+ }
1815
+ var Or = /*@__PURE__*/ h("ZodISODuration", (e, t) => {
1816
+ Vt.init(e, t), Y.init(e, t);
1817
+ });
1818
+ function kr(e) {
1819
+ return rr(Or, e);
1816
1820
  }
1817
1821
  //#endregion
1818
1822
  //#region ../../node_modules/zod/v4/classic/errors.js
1819
- var Or = (e, t) => {
1820
- we.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1821
- format: { value: (t) => De(e, t) },
1822
- flatten: { value: (t) => Ee(e, t) },
1823
+ var Ar = (e, t) => {
1824
+ Ee.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1825
+ format: { value: (t) => ke(e, t) },
1826
+ flatten: { value: (t) => Oe(e, t) },
1823
1827
  addIssue: { value: (t) => {
1824
- e.issues.push(t), e.message = JSON.stringify(e.issues, v, 2);
1828
+ e.issues.push(t), e.message = JSON.stringify(e.issues, le, 2);
1825
1829
  } },
1826
1830
  addIssues: { value: (t) => {
1827
- e.issues.push(...t), e.message = JSON.stringify(e.issues, v, 2);
1831
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, le, 2);
1828
1832
  } },
1829
1833
  isEmpty: { get() {
1830
1834
  return e.issues.length === 0;
1831
1835
  } }
1832
1836
  });
1833
1837
  };
1834
- h("ZodError", Or);
1835
- var q = h("ZodError", Or, { Parent: Error }), kr = /* @__PURE__ */ Oe(q), Ar = /* @__PURE__ */ ke(q), jr = /* @__PURE__ */ P(q), Mr = /* @__PURE__ */ F(q), Nr = /* @__PURE__ */ Me(q), Pr = /* @__PURE__ */ Ne(q), Fr = /* @__PURE__ */ Pe(q), Ir = /* @__PURE__ */ Fe(q), Lr = /* @__PURE__ */ Ie(q), Rr = /* @__PURE__ */ Le(q), zr = /* @__PURE__ */ Re(q), Br = /* @__PURE__ */ ze(q), J = /*@__PURE__*/ h("ZodType", (e, t) => (R.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(C(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
1838
+ h("ZodError", Ar);
1839
+ var q = h("ZodError", Ar, { Parent: Error }), jr = /* @__PURE__ */ P(q), Mr = /* @__PURE__ */ F(q), Nr = /* @__PURE__ */ I(q), Pr = /* @__PURE__ */ L(q), Fr = /* @__PURE__ */ Me(q), Ir = /* @__PURE__ */ Ne(q), Lr = /* @__PURE__ */ Pe(q), Rr = /* @__PURE__ */ Fe(q), zr = /* @__PURE__ */ Ie(q), Br = /* @__PURE__ */ Le(q), Vr = /* @__PURE__ */ Re(q), Hr = /* @__PURE__ */ ze(q), J = /*@__PURE__*/ h("ZodType", (e, t) => (B.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(C(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
1836
1840
  check: e,
1837
1841
  def: { check: "custom" },
1838
1842
  onattach: []
1839
- } } : e)] })), e.clone = (t, n) => D(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => kr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => jr(e, t, n), e.parseAsync = async (t, n) => Ar(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Mr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Nr(e, t, n), e.decode = (t, n) => Pr(e, t, n), e.encodeAsync = async (t, n) => Fr(e, t, n), e.decodeAsync = async (t, n) => Ir(e, t, n), e.safeEncode = (t, n) => Lr(e, t, n), e.safeDecode = (t, n) => Rr(e, t, n), e.safeEncodeAsync = async (t, n) => zr(e, t, n), e.safeDecodeAsync = async (t, n) => Br(e, t, n), e.refine = (t, n) => e.check(Vi(t, n)), e.superRefine = (t) => e.check(Hi(t)), e.overwrite = (t) => e.check(K(t)), e.optional = () => Ti(e), e.nullable = () => Di(e), e.nullish = () => Ti(Di(e)), e.nonoptional = (t) => Ni(e, t), e.array = () => pi(e), e.or = (t) => _i([e, t]), e.and = (t) => yi(e, t), e.transform = (t) => Li(e, Ci(t)), e.default = (t) => ki(e, t), e.prefault = (t) => ji(e, t), e.catch = (t) => Fi(e, t), e.pipe = (t) => Li(e, t), e.readonly = () => zi(e), e.describe = (t) => {
1843
+ } } : e)] })), e.clone = (t, n) => D(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => jr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Nr(e, t, n), e.parseAsync = async (t, n) => Mr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Pr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Fr(e, t, n), e.decode = (t, n) => Ir(e, t, n), e.encodeAsync = async (t, n) => Lr(e, t, n), e.decodeAsync = async (t, n) => Rr(e, t, n), e.safeEncode = (t, n) => zr(e, t, n), e.safeDecode = (t, n) => Br(e, t, n), e.safeEncodeAsync = async (t, n) => Vr(e, t, n), e.safeDecodeAsync = async (t, n) => Hr(e, t, n), e.refine = (t, n) => e.check(Ui(t, n)), e.superRefine = (t) => e.check(Wi(t)), e.overwrite = (t) => e.check(K(t)), e.optional = () => Di(e), e.nullable = () => ki(e), e.nullish = () => Di(ki(e)), e.nonoptional = (t) => Fi(e, t), e.array = () => hi(e), e.or = (t) => yi([e, t]), e.and = (t) => xi(e, t), e.transform = (t) => zi(e, Ti(t)), e.default = (t) => ji(e, t), e.prefault = (t) => Ni(e, t), e.catch = (t) => Li(e, t), e.pipe = (t) => zi(e, t), e.readonly = () => Vi(e), e.describe = (t) => {
1840
1844
  let n = e.clone();
1841
1845
  return W.add(n, { description: t }), n;
1842
1846
  }, Object.defineProperty(e, "description", {
@@ -1848,127 +1852,127 @@ var q = h("ZodError", Or, { Parent: Error }), kr = /* @__PURE__ */ Oe(q), Ar = /
1848
1852
  if (t.length === 0) return W.get(e);
1849
1853
  let n = e.clone();
1850
1854
  return W.add(n, t[0]), n;
1851
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Vr = /*@__PURE__*/ h("_ZodString", (e, t) => {
1852
- z.init(e, t), J.init(e, t);
1855
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Ur = /*@__PURE__*/ h("_ZodString", (e, t) => {
1856
+ Et.init(e, t), J.init(e, t);
1853
1857
  let n = e._zod.bag;
1854
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(or(...t)), e.includes = (...t) => e.check(lr(...t)), e.startsWith = (...t) => e.check(ur(...t)), e.endsWith = (...t) => e.check(dr(...t)), e.min = (...t) => e.check(G(...t)), e.max = (...t) => e.check(ir(...t)), e.length = (...t) => e.check(ar(...t)), e.nonempty = (...t) => e.check(G(1, ...t)), e.lowercase = (t) => e.check(sr(t)), e.uppercase = (t) => e.check(cr(t)), e.trim = () => e.check(pr()), e.normalize = (...t) => e.check(fr(...t)), e.toLowerCase = () => e.check(mr()), e.toUpperCase = () => e.check(hr());
1855
- }), Hr = /*@__PURE__*/ h("ZodString", (e, t) => {
1856
- z.init(e, t), Vr.init(e, t), e.email = (t) => e.check(An(Wr, t)), e.url = (t) => e.check(In(Kr, t)), e.jwt = (t) => e.check(Zn(si, t)), e.emoji = (t) => e.check(Ln(qr, t)), e.guid = (t) => e.check(jn(Gr, t)), e.uuid = (t) => e.check(Mn(X, t)), e.uuidv4 = (t) => e.check(Nn(X, t)), e.uuidv6 = (t) => e.check(Pn(X, t)), e.uuidv7 = (t) => e.check(Fn(X, t)), e.nanoid = (t) => e.check(Rn(Jr, t)), e.guid = (t) => e.check(jn(Gr, t)), e.cuid = (t) => e.check(zn(Yr, t)), e.cuid2 = (t) => e.check(Bn(Xr, t)), e.ulid = (t) => e.check(Vn(Zr, t)), e.base64 = (t) => e.check(Jn(ii, t)), e.base64url = (t) => e.check(Yn(ai, t)), e.xid = (t) => e.check(Hn(Qr, t)), e.ksuid = (t) => e.check(Un($r, t)), e.ipv4 = (t) => e.check(Wn(ei, t)), e.ipv6 = (t) => e.check(Gn(ti, t)), e.cidrv4 = (t) => e.check(Kn(ni, t)), e.cidrv6 = (t) => e.check(qn(ri, t)), e.e164 = (t) => e.check(Xn(oi, t)), e.datetime = (t) => e.check(xr(t)), e.date = (t) => e.check(Cr(t)), e.time = (t) => e.check(Tr(t)), e.duration = (t) => e.check(Dr(t));
1858
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(cr(...t)), e.includes = (...t) => e.check(dr(...t)), e.startsWith = (...t) => e.check(fr(...t)), e.endsWith = (...t) => e.check(pr(...t)), e.min = (...t) => e.check(G(...t)), e.max = (...t) => e.check(or(...t)), e.length = (...t) => e.check(sr(...t)), e.nonempty = (...t) => e.check(G(1, ...t)), e.lowercase = (t) => e.check(lr(t)), e.uppercase = (t) => e.check(ur(t)), e.trim = () => e.check(hr()), e.normalize = (...t) => e.check(mr(...t)), e.toLowerCase = () => e.check(gr()), e.toUpperCase = () => e.check(_r());
1859
+ }), Wr = /*@__PURE__*/ h("ZodString", (e, t) => {
1860
+ Et.init(e, t), Ur.init(e, t), e.email = (t) => e.check(Mn(Kr, t)), e.url = (t) => e.check(Rn(Jr, t)), e.jwt = (t) => e.check($n(li, t)), e.emoji = (t) => e.check(zn(Yr, t)), e.guid = (t) => e.check(Nn(qr, t)), e.uuid = (t) => e.check(Pn(X, t)), e.uuidv4 = (t) => e.check(Fn(X, t)), e.uuidv6 = (t) => e.check(In(X, t)), e.uuidv7 = (t) => e.check(Ln(X, t)), e.nanoid = (t) => e.check(Bn(Xr, t)), e.guid = (t) => e.check(Nn(qr, t)), e.cuid = (t) => e.check(Vn(Zr, t)), e.cuid2 = (t) => e.check(Hn(Qr, t)), e.ulid = (t) => e.check(Un($r, t)), e.base64 = (t) => e.check(Xn(oi, t)), e.base64url = (t) => e.check(Zn(si, t)), e.xid = (t) => e.check(Wn(ei, t)), e.ksuid = (t) => e.check(Gn(ti, t)), e.ipv4 = (t) => e.check(Kn(ni, t)), e.ipv6 = (t) => e.check(qn(ri, t)), e.cidrv4 = (t) => e.check(Jn(ii, t)), e.cidrv6 = (t) => e.check(Yn(ai, t)), e.e164 = (t) => e.check(Qn(ci, t)), e.datetime = (t) => e.check(Cr(t)), e.date = (t) => e.check(Tr(t)), e.time = (t) => e.check(Dr(t)), e.duration = (t) => e.check(kr(t));
1857
1861
  });
1858
- function Ur(e) {
1859
- return kn(Hr, e);
1862
+ function Gr(e) {
1863
+ return jn(Wr, e);
1860
1864
  }
1861
1865
  var Y = /*@__PURE__*/ h("ZodStringFormat", (e, t) => {
1862
- B.init(e, t), Vr.init(e, t);
1863
- }), Wr = /*@__PURE__*/ h("ZodEmail", (e, t) => {
1864
- Ot.init(e, t), Y.init(e, t);
1865
- }), Gr = /*@__PURE__*/ h("ZodGUID", (e, t) => {
1866
- Et.init(e, t), Y.init(e, t);
1867
- }), X = /*@__PURE__*/ h("ZodUUID", (e, t) => {
1868
- Dt.init(e, t), Y.init(e, t);
1869
- }), Kr = /*@__PURE__*/ h("ZodURL", (e, t) => {
1866
+ V.init(e, t), Ur.init(e, t);
1867
+ }), Kr = /*@__PURE__*/ h("ZodEmail", (e, t) => {
1870
1868
  kt.init(e, t), Y.init(e, t);
1871
- }), qr = /*@__PURE__*/ h("ZodEmoji", (e, t) => {
1869
+ }), qr = /*@__PURE__*/ h("ZodGUID", (e, t) => {
1870
+ Dt.init(e, t), Y.init(e, t);
1871
+ }), X = /*@__PURE__*/ h("ZodUUID", (e, t) => {
1872
+ Ot.init(e, t), Y.init(e, t);
1873
+ }), Jr = /*@__PURE__*/ h("ZodURL", (e, t) => {
1872
1874
  At.init(e, t), Y.init(e, t);
1873
- }), Jr = /*@__PURE__*/ h("ZodNanoID", (e, t) => {
1875
+ }), Yr = /*@__PURE__*/ h("ZodEmoji", (e, t) => {
1874
1876
  jt.init(e, t), Y.init(e, t);
1875
- }), Yr = /*@__PURE__*/ h("ZodCUID", (e, t) => {
1877
+ }), Xr = /*@__PURE__*/ h("ZodNanoID", (e, t) => {
1876
1878
  Mt.init(e, t), Y.init(e, t);
1877
- }), Xr = /*@__PURE__*/ h("ZodCUID2", (e, t) => {
1879
+ }), Zr = /*@__PURE__*/ h("ZodCUID", (e, t) => {
1878
1880
  Nt.init(e, t), Y.init(e, t);
1879
- }), Zr = /*@__PURE__*/ h("ZodULID", (e, t) => {
1881
+ }), Qr = /*@__PURE__*/ h("ZodCUID2", (e, t) => {
1880
1882
  Pt.init(e, t), Y.init(e, t);
1881
- }), Qr = /*@__PURE__*/ h("ZodXID", (e, t) => {
1883
+ }), $r = /*@__PURE__*/ h("ZodULID", (e, t) => {
1882
1884
  Ft.init(e, t), Y.init(e, t);
1883
- }), $r = /*@__PURE__*/ h("ZodKSUID", (e, t) => {
1885
+ }), ei = /*@__PURE__*/ h("ZodXID", (e, t) => {
1884
1886
  It.init(e, t), Y.init(e, t);
1885
- }), ei = /*@__PURE__*/ h("ZodIPv4", (e, t) => {
1886
- Vt.init(e, t), Y.init(e, t);
1887
- }), ti = /*@__PURE__*/ h("ZodIPv6", (e, t) => {
1887
+ }), ti = /*@__PURE__*/ h("ZodKSUID", (e, t) => {
1888
+ Lt.init(e, t), Y.init(e, t);
1889
+ }), ni = /*@__PURE__*/ h("ZodIPv4", (e, t) => {
1888
1890
  Ht.init(e, t), Y.init(e, t);
1889
- }), ni = /*@__PURE__*/ h("ZodCIDRv4", (e, t) => {
1891
+ }), ri = /*@__PURE__*/ h("ZodIPv6", (e, t) => {
1890
1892
  Ut.init(e, t), Y.init(e, t);
1891
- }), ri = /*@__PURE__*/ h("ZodCIDRv6", (e, t) => {
1893
+ }), ii = /*@__PURE__*/ h("ZodCIDRv4", (e, t) => {
1892
1894
  Wt.init(e, t), Y.init(e, t);
1893
- }), ii = /*@__PURE__*/ h("ZodBase64", (e, t) => {
1894
- Kt.init(e, t), Y.init(e, t);
1895
- }), ai = /*@__PURE__*/ h("ZodBase64URL", (e, t) => {
1896
- Jt.init(e, t), Y.init(e, t);
1897
- }), oi = /*@__PURE__*/ h("ZodE164", (e, t) => {
1895
+ }), ai = /*@__PURE__*/ h("ZodCIDRv6", (e, t) => {
1896
+ Gt.init(e, t), Y.init(e, t);
1897
+ }), oi = /*@__PURE__*/ h("ZodBase64", (e, t) => {
1898
+ qt.init(e, t), Y.init(e, t);
1899
+ }), si = /*@__PURE__*/ h("ZodBase64URL", (e, t) => {
1898
1900
  Yt.init(e, t), Y.init(e, t);
1899
- }), si = /*@__PURE__*/ h("ZodJWT", (e, t) => {
1900
- Zt.init(e, t), Y.init(e, t);
1901
- }), ci = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
1902
- Qt.init(e, t), J.init(e, t);
1901
+ }), ci = /*@__PURE__*/ h("ZodE164", (e, t) => {
1902
+ Xt.init(e, t), Y.init(e, t);
1903
+ }), li = /*@__PURE__*/ h("ZodJWT", (e, t) => {
1904
+ Qt.init(e, t), Y.init(e, t);
1905
+ }), ui = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
1906
+ $t.init(e, t), J.init(e, t);
1903
1907
  });
1904
- function li() {
1905
- return nr(ci);
1908
+ function di() {
1909
+ return ir(ui);
1906
1910
  }
1907
- var ui = /*@__PURE__*/ h("ZodNever", (e, t) => {
1908
- $t.init(e, t), J.init(e, t);
1911
+ var fi = /*@__PURE__*/ h("ZodNever", (e, t) => {
1912
+ en.init(e, t), J.init(e, t);
1909
1913
  });
1910
- function di(e) {
1911
- return rr(ui, e);
1914
+ function pi(e) {
1915
+ return ar(fi, e);
1912
1916
  }
1913
- var fi = /*@__PURE__*/ h("ZodArray", (e, t) => {
1914
- tn.init(e, t), J.init(e, t), e.element = t.element, e.min = (t, n) => e.check(G(t, n)), e.nonempty = (t) => e.check(G(1, t)), e.max = (t, n) => e.check(ir(t, n)), e.length = (t, n) => e.check(ar(t, n)), e.unwrap = () => e.element;
1917
+ var mi = /*@__PURE__*/ h("ZodArray", (e, t) => {
1918
+ nn.init(e, t), J.init(e, t), e.element = t.element, e.min = (t, n) => e.check(G(t, n)), e.nonempty = (t) => e.check(G(1, t)), e.max = (t, n) => e.check(or(t, n)), e.length = (t, n) => e.check(sr(t, n)), e.unwrap = () => e.element;
1915
1919
  });
1916
- function pi(e, t) {
1917
- return gr(fi, e, t);
1920
+ function hi(e, t) {
1921
+ return vr(mi, e, t);
1918
1922
  }
1919
- var mi = /*@__PURE__*/ h("ZodObject", (e, t) => {
1920
- on.init(e, t), J.init(e, t), x(e, "shape", () => t.shape), e.keyof = () => xi(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
1923
+ var gi = /*@__PURE__*/ h("ZodObject", (e, t) => {
1924
+ sn.init(e, t), J.init(e, t), x(e, "shape", () => t.shape), e.keyof = () => Ci(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
1921
1925
  ...e._zod.def,
1922
1926
  catchall: t
1923
1927
  }), e.passthrough = () => e.clone({
1924
1928
  ...e._zod.def,
1925
- catchall: li()
1929
+ catchall: di()
1926
1930
  }), e.loose = () => e.clone({
1927
1931
  ...e._zod.def,
1928
- catchall: li()
1932
+ catchall: di()
1929
1933
  }), e.strict = () => e.clone({
1930
1934
  ...e._zod.def,
1931
- catchall: di()
1935
+ catchall: pi()
1932
1936
  }), e.strip = () => e.clone({
1933
1937
  ...e._zod.def,
1934
1938
  catchall: void 0
1935
- }), e.extend = (t) => _e(e, t), e.safeExtend = (t) => ve(e, t), e.merge = (t) => ye(e, t), e.pick = (t) => he(e, t), e.omit = (t) => ge(e, t), e.partial = (...t) => be(wi, e, t[0]), e.required = (...t) => xe(Mi, e, t[0]);
1939
+ }), e.extend = (t) => ye(e, t), e.safeExtend = (t) => be(e, t), e.merge = (t) => xe(e, t), e.pick = (t) => _e(e, t), e.omit = (t) => ve(e, t), e.partial = (...t) => Se(Ei, e, t[0]), e.required = (...t) => Ce(Pi, e, t[0]);
1936
1940
  });
1937
- function hi(e, t) {
1938
- return new mi({
1941
+ function _i(e, t) {
1942
+ return new gi({
1939
1943
  type: "object",
1940
1944
  shape: e ?? {},
1941
1945
  ...O(t)
1942
1946
  });
1943
1947
  }
1944
- var gi = /*@__PURE__*/ h("ZodUnion", (e, t) => {
1945
- cn.init(e, t), J.init(e, t), e.options = t.options;
1948
+ var vi = /*@__PURE__*/ h("ZodUnion", (e, t) => {
1949
+ ln.init(e, t), J.init(e, t), e.options = t.options;
1946
1950
  });
1947
- function _i(e, t) {
1948
- return new gi({
1951
+ function yi(e, t) {
1952
+ return new vi({
1949
1953
  type: "union",
1950
1954
  options: e,
1951
1955
  ...O(t)
1952
1956
  });
1953
1957
  }
1954
- var vi = /*@__PURE__*/ h("ZodIntersection", (e, t) => {
1955
- ln.init(e, t), J.init(e, t);
1958
+ var bi = /*@__PURE__*/ h("ZodIntersection", (e, t) => {
1959
+ un.init(e, t), J.init(e, t);
1956
1960
  });
1957
- function yi(e, t) {
1958
- return new vi({
1961
+ function xi(e, t) {
1962
+ return new bi({
1959
1963
  type: "intersection",
1960
1964
  left: e,
1961
1965
  right: t
1962
1966
  });
1963
1967
  }
1964
- var bi = /*@__PURE__*/ h("ZodEnum", (e, t) => {
1965
- dn.init(e, t), J.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1968
+ var Si = /*@__PURE__*/ h("ZodEnum", (e, t) => {
1969
+ pn.init(e, t), J.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1966
1970
  let n = new Set(Object.keys(t.entries));
1967
1971
  e.extract = (e, r) => {
1968
1972
  let i = {};
1969
1973
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
1970
1974
  else throw Error(`Key ${r} not found in enum`);
1971
- return new bi({
1975
+ return new Si({
1972
1976
  ...t,
1973
1977
  checks: [],
1974
1978
  ...O(r),
@@ -1978,7 +1982,7 @@ var bi = /*@__PURE__*/ h("ZodEnum", (e, t) => {
1978
1982
  let i = { ...t.entries };
1979
1983
  for (let t of e) if (n.has(t)) delete i[t];
1980
1984
  else throw Error(`Key ${t} not found in enum`);
1981
- return new bi({
1985
+ return new Si({
1982
1986
  ...t,
1983
1987
  checks: [],
1984
1988
  ...O(r),
@@ -1986,16 +1990,16 @@ var bi = /*@__PURE__*/ h("ZodEnum", (e, t) => {
1986
1990
  });
1987
1991
  };
1988
1992
  });
1989
- function xi(e, t) {
1990
- return new bi({
1993
+ function Ci(e, t) {
1994
+ return new Si({
1991
1995
  type: "enum",
1992
1996
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
1993
1997
  ...O(t)
1994
1998
  });
1995
1999
  }
1996
- var Si = /*@__PURE__*/ h("ZodTransform", (e, t) => {
1997
- fn.init(e, t), J.init(e, t), e._zod.parse = (n, r) => {
1998
- if (r.direction === "backward") throw new ie(e.constructor.name);
2000
+ var wi = /*@__PURE__*/ h("ZodTransform", (e, t) => {
2001
+ mn.init(e, t), J.init(e, t), e._zod.parse = (n, r) => {
2002
+ if (r.direction === "backward") throw new oe(e.constructor.name);
1999
2003
  n.addIssue = (r) => {
2000
2004
  if (typeof r == "string") n.issues.push(N(r, n.value, t));
2001
2005
  else {
@@ -2007,110 +2011,110 @@ var Si = /*@__PURE__*/ h("ZodTransform", (e, t) => {
2007
2011
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
2008
2012
  };
2009
2013
  });
2010
- function Ci(e) {
2011
- return new Si({
2014
+ function Ti(e) {
2015
+ return new wi({
2012
2016
  type: "transform",
2013
2017
  transform: e
2014
2018
  });
2015
2019
  }
2016
- var wi = /*@__PURE__*/ h("ZodOptional", (e, t) => {
2017
- mn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2020
+ var Ei = /*@__PURE__*/ h("ZodOptional", (e, t) => {
2021
+ gn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2018
2022
  });
2019
- function Ti(e) {
2020
- return new wi({
2023
+ function Di(e) {
2024
+ return new Ei({
2021
2025
  type: "optional",
2022
2026
  innerType: e
2023
2027
  });
2024
2028
  }
2025
- var Ei = /*@__PURE__*/ h("ZodNullable", (e, t) => {
2026
- hn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2029
+ var Oi = /*@__PURE__*/ h("ZodNullable", (e, t) => {
2030
+ _n.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2027
2031
  });
2028
- function Di(e) {
2029
- return new Ei({
2032
+ function ki(e) {
2033
+ return new Oi({
2030
2034
  type: "nullable",
2031
2035
  innerType: e
2032
2036
  });
2033
2037
  }
2034
- var Oi = /*@__PURE__*/ h("ZodDefault", (e, t) => {
2035
- gn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2038
+ var Ai = /*@__PURE__*/ h("ZodDefault", (e, t) => {
2039
+ vn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2036
2040
  });
2037
- function ki(e, t) {
2038
- return new Oi({
2041
+ function ji(e, t) {
2042
+ return new Ai({
2039
2043
  type: "default",
2040
2044
  innerType: e,
2041
2045
  get defaultValue() {
2042
- return typeof t == "function" ? t() : fe(t);
2046
+ return typeof t == "function" ? t() : me(t);
2043
2047
  }
2044
2048
  });
2045
2049
  }
2046
- var Ai = /*@__PURE__*/ h("ZodPrefault", (e, t) => {
2047
- vn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2050
+ var Mi = /*@__PURE__*/ h("ZodPrefault", (e, t) => {
2051
+ bn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2048
2052
  });
2049
- function ji(e, t) {
2050
- return new Ai({
2053
+ function Ni(e, t) {
2054
+ return new Mi({
2051
2055
  type: "prefault",
2052
2056
  innerType: e,
2053
2057
  get defaultValue() {
2054
- return typeof t == "function" ? t() : fe(t);
2058
+ return typeof t == "function" ? t() : me(t);
2055
2059
  }
2056
2060
  });
2057
2061
  }
2058
- var Mi = /*@__PURE__*/ h("ZodNonOptional", (e, t) => {
2059
- yn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2062
+ var Pi = /*@__PURE__*/ h("ZodNonOptional", (e, t) => {
2063
+ xn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2060
2064
  });
2061
- function Ni(e, t) {
2062
- return new Mi({
2065
+ function Fi(e, t) {
2066
+ return new Pi({
2063
2067
  type: "nonoptional",
2064
2068
  innerType: e,
2065
2069
  ...O(t)
2066
2070
  });
2067
2071
  }
2068
- var Pi = /*@__PURE__*/ h("ZodCatch", (e, t) => {
2069
- xn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2072
+ var Ii = /*@__PURE__*/ h("ZodCatch", (e, t) => {
2073
+ Cn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2070
2074
  });
2071
- function Fi(e, t) {
2072
- return new Pi({
2075
+ function Li(e, t) {
2076
+ return new Ii({
2073
2077
  type: "catch",
2074
2078
  innerType: e,
2075
2079
  catchValue: typeof t == "function" ? t : () => t
2076
2080
  });
2077
2081
  }
2078
- var Ii = /*@__PURE__*/ h("ZodPipe", (e, t) => {
2079
- Sn.init(e, t), J.init(e, t), e.in = t.in, e.out = t.out;
2082
+ var Ri = /*@__PURE__*/ h("ZodPipe", (e, t) => {
2083
+ wn.init(e, t), J.init(e, t), e.in = t.in, e.out = t.out;
2080
2084
  });
2081
- function Li(e, t) {
2082
- return new Ii({
2085
+ function zi(e, t) {
2086
+ return new Ri({
2083
2087
  type: "pipe",
2084
2088
  in: e,
2085
2089
  out: t
2086
2090
  });
2087
2091
  }
2088
- var Ri = /*@__PURE__*/ h("ZodReadonly", (e, t) => {
2089
- Cn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2092
+ var Bi = /*@__PURE__*/ h("ZodReadonly", (e, t) => {
2093
+ Tn.init(e, t), J.init(e, t), e.unwrap = () => e._zod.def.innerType;
2090
2094
  });
2091
- function zi(e) {
2092
- return new Ri({
2095
+ function Vi(e) {
2096
+ return new Bi({
2093
2097
  type: "readonly",
2094
2098
  innerType: e
2095
2099
  });
2096
2100
  }
2097
- var Bi = /*@__PURE__*/ h("ZodCustom", (e, t) => {
2098
- Tn.init(e, t), J.init(e, t);
2101
+ var Hi = /*@__PURE__*/ h("ZodCustom", (e, t) => {
2102
+ Dn.init(e, t), J.init(e, t);
2099
2103
  });
2100
- function Vi(e, t = {}) {
2101
- return _r(Bi, e, t);
2104
+ function Ui(e, t = {}) {
2105
+ return yr(Hi, e, t);
2102
2106
  }
2103
- function Hi(e) {
2104
- return vr(e);
2107
+ function Wi(e) {
2108
+ return br(e);
2105
2109
  }
2106
2110
  //#endregion
2107
2111
  //#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ValidationMetadata.js
2108
- var Ui = function() {
2112
+ var Gi = function() {
2109
2113
  function e(e) {
2110
2114
  this.groups = [], this.each = !1, this.context = void 0, this.type = e.type, this.name = e.name, this.target = e.target, this.propertyName = e.propertyName, this.constraints = e?.constraints, this.constraintCls = e.constraintCls, this.validationTypeOptions = e.validationTypeOptions, e.validationOptions && (this.message = e.validationOptions.message, this.groups = e.validationOptions.groups, this.always = e.validationOptions.always, this.each = e.validationOptions.each, this.context = e.validationOptions.context);
2111
2115
  }
2112
2116
  return e;
2113
- }(), Wi = function() {
2117
+ }(), Ki = function() {
2114
2118
  function e() {}
2115
2119
  return e.prototype.transform = function(e) {
2116
2120
  var t = [];
@@ -2130,11 +2134,11 @@ var Ui = function() {
2130
2134
  validationTypeOptions: r.options,
2131
2135
  validationOptions: i
2132
2136
  };
2133
- t.push(new Ui(a));
2137
+ t.push(new Gi(a));
2134
2138
  });
2135
2139
  }), t;
2136
2140
  }, e;
2137
- }(), Gi = function(e) {
2141
+ }(), qi = function(e) {
2138
2142
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
2139
2143
  if (n) return n.call(e);
2140
2144
  if (e && typeof e.length == "number") return { next: function() {
@@ -2144,7 +2148,7 @@ var Ui = function() {
2144
2148
  };
2145
2149
  } };
2146
2150
  throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
2147
- }, Ki = function(e, t) {
2151
+ }, Ji = function(e, t) {
2148
2152
  var n = typeof Symbol == "function" && e[Symbol.iterator];
2149
2153
  if (!n) return e;
2150
2154
  var r = n.call(e), i, a = [], o;
@@ -2160,7 +2164,7 @@ var Ui = function() {
2160
2164
  }
2161
2165
  }
2162
2166
  return a;
2163
- }, qi = function(e, t, n) {
2167
+ }, Yi = function(e, t, n) {
2164
2168
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
2165
2169
  return e.concat(a || Array.prototype.slice.call(t));
2166
2170
  };
@@ -2176,7 +2180,7 @@ var Ui = function() {
2176
2180
  configurable: !0
2177
2181
  }), e.prototype.addValidationSchema = function(e) {
2178
2182
  var t = this;
2179
- new Wi().transform(e).forEach(function(e) {
2183
+ new Ki().transform(e).forEach(function(e) {
2180
2184
  return t.addValidationMetadata(e);
2181
2185
  });
2182
2186
  }, e.prototype.addValidationMetadata = function(e) {
@@ -2201,9 +2205,9 @@ var Ui = function() {
2201
2205
  }) : !0;
2202
2206
  }), u = [];
2203
2207
  try {
2204
- for (var d = Gi(this.validationMetadatas.entries()), f = d.next(); !f.done; f = d.next()) {
2205
- var p = Ki(f.value, 2), m = p[0], ee = p[1];
2206
- e.prototype instanceof m && u.push.apply(u, qi([], Ki(ee), !1));
2208
+ for (var d = qi(this.validationMetadatas.entries()), f = d.next(); !f.done; f = d.next()) {
2209
+ var p = Ji(f.value, 2), m = p[0], ee = p[1];
2210
+ e.prototype instanceof m && u.push.apply(u, Yi([], Ji(ee), !1));
2207
2211
  }
2208
2212
  } catch (e) {
2209
2213
  a = { error: e };
@@ -2238,7 +2242,7 @@ var Ui = function() {
2238
2242
  }();
2239
2243
  //#endregion
2240
2244
  //#region ../twenty-shared/node_modules/class-validator/esm5/validation/ValidationTypes.js
2241
- var Ji = new (function() {
2245
+ var Xi = new (function() {
2242
2246
  function e() {
2243
2247
  this.instances = [];
2244
2248
  }
@@ -2251,15 +2255,15 @@ var Ji = new (function() {
2251
2255
  object: new e()
2252
2256
  }, this.instances.push(t)), t.object;
2253
2257
  }, e;
2254
- }())(), Yi, Z;
2255
- function Xi(e) {
2256
- if (Yi) try {
2257
- var t = Yi.get(e);
2258
+ }())(), Zi, Z;
2259
+ function Qi(e) {
2260
+ if (Zi) try {
2261
+ var t = Zi.get(e);
2258
2262
  if (t || !Z || !Z.fallback) return t;
2259
2263
  } catch (e) {
2260
2264
  if (!Z || !Z.fallbackOnErrors) throw e;
2261
2265
  }
2262
- return Ji.get(e);
2266
+ return Xi.get(e);
2263
2267
  }
2264
2268
  (function() {
2265
2269
  function e(e, t, n) {
@@ -2267,7 +2271,7 @@ function Xi(e) {
2267
2271
  }
2268
2272
  return Object.defineProperty(e.prototype, "instance", {
2269
2273
  get: function() {
2270
- return Xi(this.target);
2274
+ return Qi(this.target);
2271
2275
  },
2272
2276
  enumerable: !1,
2273
2277
  configurable: !0
@@ -2277,9 +2281,9 @@ function Xi(e) {
2277
2281
  //#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
2278
2282
  var Q = /* @__PURE__ */ function(e) {
2279
2283
  return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
2280
- }({}), Zi = /* @__PURE__ */ function(e) {
2284
+ }({}), $i = /* @__PURE__ */ function(e) {
2281
2285
  return e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e;
2282
- }({}), Qi = {
2286
+ }({}), ea = {
2283
2287
  type: Q.ACTOR,
2284
2288
  properties: [
2285
2289
  {
@@ -2287,9 +2291,9 @@ var Q = /* @__PURE__ */ function(e) {
2287
2291
  type: Q.SELECT,
2288
2292
  hidden: !1,
2289
2293
  isRequired: !0,
2290
- options: Object.keys(Zi).map((e, t) => ({
2294
+ options: Object.keys($i).map((e, t) => ({
2291
2295
  id: r(),
2292
- label: `${Zi[e].toLowerCase()}`,
2296
+ label: `${$i[e].toLowerCase()}`,
2293
2297
  value: e,
2294
2298
  position: t
2295
2299
  }))
@@ -2313,7 +2317,7 @@ var Q = /* @__PURE__ */ function(e) {
2313
2317
  isRequired: !1
2314
2318
  }
2315
2319
  ]
2316
- }, $i = {
2320
+ }, ta = {
2317
2321
  type: Q.ADDRESS,
2318
2322
  properties: [
2319
2323
  {
@@ -2365,7 +2369,7 @@ var Q = /* @__PURE__ */ function(e) {
2365
2369
  isRequired: !1
2366
2370
  }
2367
2371
  ]
2368
- }, ea = {
2372
+ }, na = {
2369
2373
  type: Q.CURRENCY,
2370
2374
  properties: [{
2371
2375
  name: "amountMicros",
@@ -2378,7 +2382,7 @@ var Q = /* @__PURE__ */ function(e) {
2378
2382
  hidden: !1,
2379
2383
  isRequired: !1
2380
2384
  }]
2381
- }, ta = {
2385
+ }, ra = {
2382
2386
  type: Q.EMAILS,
2383
2387
  properties: [{
2384
2388
  name: "primaryEmail",
@@ -2392,7 +2396,7 @@ var Q = /* @__PURE__ */ function(e) {
2392
2396
  hidden: !1,
2393
2397
  isRequired: !1
2394
2398
  }]
2395
- }, na = {
2399
+ }, ia = {
2396
2400
  type: Q.FULL_NAME,
2397
2401
  properties: [{
2398
2402
  name: "firstName",
@@ -2407,7 +2411,7 @@ var Q = /* @__PURE__ */ function(e) {
2407
2411
  isRequired: !1,
2408
2412
  isIncludedInUniqueConstraint: !1
2409
2413
  }]
2410
- }, ra = {
2414
+ }, aa = {
2411
2415
  type: Q.LINKS,
2412
2416
  properties: [
2413
2417
  {
@@ -2430,7 +2434,7 @@ var Q = /* @__PURE__ */ function(e) {
2430
2434
  isRequired: !1
2431
2435
  }
2432
2436
  ]
2433
- }, ia = {
2437
+ }, oa = {
2434
2438
  type: Q.PHONES,
2435
2439
  properties: [
2436
2440
  {
@@ -2461,7 +2465,7 @@ var Q = /* @__PURE__ */ function(e) {
2461
2465
  isRequired: !1
2462
2466
  }
2463
2467
  ]
2464
- }, aa = {
2468
+ }, sa = {
2465
2469
  type: Q.RICH_TEXT,
2466
2470
  properties: [{
2467
2471
  name: "blocknote",
@@ -2475,24 +2479,24 @@ var Q = /* @__PURE__ */ function(e) {
2475
2479
  isRequired: !1
2476
2480
  }]
2477
2481
  };
2478
- hi({
2479
- blocknote: Ur().nullable().optional(),
2480
- markdown: Ur().nullable()
2482
+ _i({
2483
+ blocknote: Gr().nullable().optional(),
2484
+ markdown: Gr().nullable()
2481
2485
  }), new Map([
2482
- [Q.LINKS, ra],
2483
- [Q.CURRENCY, ea],
2484
- [Q.FULL_NAME, na],
2485
- [Q.ADDRESS, $i],
2486
- [Q.ACTOR, Qi],
2487
- [Q.EMAILS, ta],
2488
- [Q.PHONES, ia],
2489
- [Q.RICH_TEXT, aa]
2486
+ [Q.LINKS, aa],
2487
+ [Q.CURRENCY, na],
2488
+ [Q.FULL_NAME, ia],
2489
+ [Q.ADDRESS, ta],
2490
+ [Q.ACTOR, ea],
2491
+ [Q.EMAILS, ra],
2492
+ [Q.PHONES, oa],
2493
+ [Q.RICH_TEXT, sa]
2490
2494
  ]), Q.RELATION, Q.MORPH_RELATION, Q.FILES, Q.TS_VECTOR, Q.TEXT, Q.ARRAY, Q.BOOLEAN, Q.DATE, Q.DATE_TIME, Q.NUMBER, Q.NUMERIC, Q.RAW_JSON, Q.RICH_TEXT, Q.SELECT, Q.MULTI_SELECT;
2491
2495
  //#endregion
2492
2496
  //#region ../twenty-shared/dist/application.mjs
2493
- var oa = "TWENTY_API_URL", sa = "TWENTY_APP_ACCESS_TOKEN", $ = async ({ query: e, variables: t, caller: n }) => {
2494
- let r = process.env[oa], i = process.env[sa];
2495
- if (!r || !i) throw Error(`${n}() requires the app runtime env vars ${oa} and ${sa}.`);
2497
+ var ca = "TWENTY_API_URL", la = "TWENTY_APP_APPLICATION_ACCESS_TOKEN", ua = () => process.env.TWENTY_APP_APPLICATION_ACCESS_TOKEN ?? process.env.TWENTY_APP_ACCESS_TOKEN, $ = async ({ query: e, variables: t, caller: n }) => {
2498
+ let r = process.env[ca], i = ua();
2499
+ if (!r || !i) throw Error(`${n}() requires the app runtime env vars ${ca} and ${la}.`);
2496
2500
  let a = await fetch(`${r}/metadata`, {
2497
2501
  method: "POST",
2498
2502
  headers: {
@@ -2509,48 +2513,48 @@ var oa = "TWENTY_API_URL", sa = "TWENTY_APP_ACCESS_TOKEN", $ = async ({ query: e
2509
2513
  if (o.errors && o.errors.length > 0) throw Error(`${n}() failed: ${o.errors.map((e) => e.message).join(", ")}`);
2510
2514
  if (!o.data) throw Error(`${n}() failed: response contained no data.`);
2511
2515
  return o.data;
2512
- }, ca = "\n query GetAppConnection($id: ID!) {\n appConnection(id: $id) {\n id\n providerName\n name\n handle\n visibility\n userWorkspaceId\n accessToken\n scopes\n authFailedAt\n }\n }\n", la = async (e) => {
2516
+ }, da = "\n query GetAppConnection($id: ID!) {\n appConnection(id: $id) {\n id\n providerName\n name\n handle\n visibility\n userWorkspaceId\n accessToken\n scopes\n authFailedAt\n }\n }\n", fa = async (e) => {
2513
2517
  let { appConnection: t } = await $({
2514
- query: ca,
2518
+ query: da,
2515
2519
  variables: { id: e },
2516
2520
  caller: "getConnection"
2517
2521
  });
2518
- if (t.authFailedAt !== null) throw new re(t.id);
2522
+ if (t.authFailedAt !== null) throw new ae(t.id);
2519
2523
  return t;
2520
- }, ua = "\n query ListAppConnections($filter: ListAppConnectionsInput) {\n appConnections(filter: $filter) {\n id\n providerName\n name\n handle\n visibility\n userWorkspaceId\n accessToken\n scopes\n authFailedAt\n }\n }\n", da = async (e = {}) => {
2524
+ }, pa = "\n query ListAppConnections($filter: ListAppConnectionsInput) {\n appConnections(filter: $filter) {\n id\n providerName\n name\n handle\n visibility\n userWorkspaceId\n accessToken\n scopes\n authFailedAt\n }\n }\n", ma = async (e = {}) => {
2521
2525
  let { appConnections: t } = await $({
2522
- query: ua,
2526
+ query: pa,
2523
2527
  variables: { filter: e },
2524
2528
  caller: "listConnections"
2525
2529
  });
2526
2530
  return t;
2527
- }, fa = (e, t) => {
2531
+ }, ha = (e, t) => {
2528
2532
  if (t.userWorkspaceId !== null) {
2529
2533
  let n = e.find((e) => e.visibility === "user" && e.userWorkspaceId === t.userWorkspaceId);
2530
2534
  if (n) return n;
2531
2535
  }
2532
2536
  return e.find((e) => e.visibility === "workspace") ?? null;
2533
- }, pa = "\n mutation RunAgent($input: RunAgentInput!) {\n runAgent(input: $input) {\n result\n error\n success\n }\n }\n", ma = async (e) => {
2537
+ }, ga = "\n mutation RunAgent($input: RunAgentInput!) {\n runAgent(input: $input) {\n result\n error\n success\n }\n }\n", _a = async (e) => {
2534
2538
  let { runAgent: t } = await $({
2535
- query: pa,
2539
+ query: ga,
2536
2540
  variables: { input: e },
2537
2541
  caller: "runAgent"
2538
2542
  });
2539
2543
  return t;
2540
- }, ha = async (e) => {
2544
+ }, va = async (e) => {
2541
2545
  let { enqueueJob: t } = await new i().mutation({ enqueueJob: {
2542
2546
  __args: { input: e },
2543
2547
  enqueued: !0,
2544
2548
  logicFunctionUniversalIdentifier: !0
2545
2549
  } });
2546
2550
  return t;
2547
- }, ga = "\n query GetAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n appKeyValue(key: $key, scope: $scope) {\n key\n value\n scope\n }\n }\n", _a = "\n mutation SetAppKeyValue($input: SetAppKeyValueInput!) {\n setAppKeyValue(input: $input) {\n key\n value\n scope\n }\n }\n", va = "\n mutation DeleteAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n deleteAppKeyValue(key: $key, scope: $scope)\n }\n", ya = "WORKSPACE", ba = {
2551
+ }, ya = "\n query GetAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n appKeyValue(key: $key, scope: $scope) {\n key\n value\n scope\n }\n }\n", ba = "\n mutation SetAppKeyValue($input: SetAppKeyValueInput!) {\n setAppKeyValue(input: $input) {\n key\n value\n scope\n }\n }\n", xa = "\n mutation DeleteAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n deleteAppKeyValue(key: $key, scope: $scope)\n }\n", Sa = "WORKSPACE", Ca = {
2548
2552
  async get(e, t) {
2549
2553
  let { appKeyValue: n } = await $({
2550
- query: ga,
2554
+ query: ya,
2551
2555
  variables: {
2552
2556
  key: e,
2553
- scope: t?.scope ?? ya
2557
+ scope: t?.scope ?? Sa
2554
2558
  },
2555
2559
  caller: "kv.get"
2556
2560
  });
@@ -2558,32 +2562,32 @@ var oa = "TWENTY_API_URL", sa = "TWENTY_APP_ACCESS_TOKEN", $ = async ({ query: e
2558
2562
  },
2559
2563
  async set(e, t, n) {
2560
2564
  await $({
2561
- query: _a,
2565
+ query: ba,
2562
2566
  variables: { input: {
2563
2567
  key: e,
2564
2568
  value: t,
2565
- scope: n?.scope ?? ya
2569
+ scope: n?.scope ?? Sa
2566
2570
  } },
2567
2571
  caller: "kv.set"
2568
2572
  });
2569
2573
  },
2570
2574
  async delete(e, t) {
2571
2575
  let { deleteAppKeyValue: n } = await $({
2572
- query: va,
2576
+ query: xa,
2573
2577
  variables: {
2574
2578
  key: e,
2575
- scope: t?.scope ?? ya
2579
+ scope: t?.scope ?? Sa
2576
2580
  },
2577
2581
  caller: "kv.delete"
2578
2582
  });
2579
2583
  return n;
2580
2584
  }
2581
- }, xa = class {
2585
+ }, wa = class {
2582
2586
  constructor(e, t) {
2583
2587
  this.__twentyHttpResponse = !0, this.body = e, this.status = t?.status, this.headers = t?.headers;
2584
2588
  }
2585
2589
  };
2586
2590
  //#endregion
2587
- export { re as AppConnectionAuthFailedError, xa as Response, ha as enqueueJob, fa as findConnectionForRequest, la as getConnection, l as jsonSchemaToInputSchema, ba as kv, da as listConnections, ma as runAgent };
2591
+ export { ae as AppConnectionAuthFailedError, wa as Response, ie as RetryableLogicFunctionError, va as enqueueJob, ha as findConnectionForRequest, fa as getConnection, l as jsonSchemaToInputSchema, Ca as kv, ma as listConnections, _a as runAgent };
2588
2592
 
2589
2593
  //# sourceMappingURL=index.mjs.map