twenty-sdk 2.15.0 → 2.18.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 (64) hide show
  1. package/dist/assets/halftone-backdrop.png +0 -0
  2. package/dist/billing/index.cjs +1 -1
  3. package/dist/billing/index.cjs.map +1 -1
  4. package/dist/billing/index.mjs +2 -1
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/{catalog-sync-C5Bb1KSh.js → catalog-sync-CgKswjsE.js} +1 -1
  7. package/dist/{catalog-sync-DcpUieU5.mjs → catalog-sync-YxvEEHz5.mjs} +1 -1
  8. package/dist/cli/commands/dev/i18n-extract.d.ts +7 -0
  9. package/dist/cli/utilities/build/common/build-application.d.ts +2 -0
  10. package/dist/cli/utilities/build/common/front-component-build/css-injection-plugin.d.ts +2 -0
  11. package/dist/cli/utilities/build/cover/apply-generated-cover.d.ts +9 -0
  12. package/dist/cli/utilities/build/cover/assets/twenty-logo-mark-path.d.ts +1 -0
  13. package/dist/cli/utilities/build/cover/generate-cover-image.d.ts +5 -0
  14. package/dist/cli/utilities/build/cover/generated-asset.type.d.ts +4 -0
  15. package/dist/cli/utilities/build/cover/generated-cover-path.d.ts +1 -0
  16. package/dist/cli/utilities/i18n/collect-translatable-strings.d.ts +2 -0
  17. package/dist/cli/utilities/i18n/compile-application-translations.d.ts +1 -0
  18. package/dist/cli/utilities/i18n/constants.d.ts +1 -0
  19. package/dist/cli/utilities/i18n/extract-application-translations.d.ts +10 -0
  20. package/dist/cli/utilities/i18n/generate-message-id.d.ts +1 -0
  21. package/dist/cli.cjs +35 -33
  22. package/dist/cli.mjs +896 -836
  23. package/dist/define/index.cjs +19 -19
  24. package/dist/define/index.cjs.map +1 -1
  25. package/dist/define/index.d.ts +30 -15
  26. package/dist/define/index.mjs +2293 -1036
  27. package/dist/define/index.mjs.map +1 -1
  28. package/dist/front-component/index.cjs +1 -1
  29. package/dist/front-component/index.cjs.map +1 -1
  30. package/dist/front-component/index.d.ts +43 -12
  31. package/dist/front-component/index.mjs +134 -143
  32. package/dist/front-component/index.mjs.map +1 -1
  33. package/dist/front-component-renderer/build.cjs +1 -1
  34. package/dist/front-component-renderer/build.mjs +1 -1
  35. package/dist/front-component-renderer.cjs +1 -1
  36. package/dist/{get-front-component-build-plugins-DBupR4cF.js → get-front-component-build-plugins-Dqpyup2W.js} +9 -5
  37. package/dist/get-front-component-build-plugins-taotEFOp.mjs +126 -0
  38. package/dist/{get-function-input-schema-GNk3NRLJ-oMYSgib9.mjs → get-function-input-schema-GNk3NRLJ-CfeAvjEl.mjs} +1 -1
  39. package/dist/get-function-input-schema-GNk3NRLJ-D8x7FINz.js +1 -0
  40. package/dist/isDefined-Dtu5EYqP-Dp026Ry1.js +1 -0
  41. package/dist/logic-function/index.cjs +1 -1
  42. package/dist/logic-function/index.cjs.map +1 -1
  43. package/dist/logic-function/index.d.ts +15 -9
  44. package/dist/logic-function/index.mjs +1 -0
  45. package/dist/logic-function/index.mjs.map +1 -1
  46. package/dist/login-BOrzi4Z0.js +345 -0
  47. package/dist/{login-Cm5IBGFm.mjs → login-Dg4Ap-uo.mjs} +6932 -5552
  48. package/dist/operations.cjs +1 -1
  49. package/dist/operations.mjs +1 -1
  50. package/dist/utils/index.cjs +1 -1
  51. package/dist/utils/index.cjs.map +1 -1
  52. package/dist/utils/index.mjs +2 -1
  53. package/dist/utils/index.mjs.map +1 -1
  54. package/package.json +4 -12
  55. package/dist/AllIcons-DEGfvqso-DwtvkCyL.js +0 -1
  56. package/dist/AllIcons-DEGfvqso-PUvdkUZm.mjs +0 -66238
  57. package/dist/get-front-component-build-plugins-BuE2QdIr.mjs +0 -113
  58. package/dist/get-function-input-schema-GNk3NRLJ-DMgchWCN.js +0 -1
  59. package/dist/icon-BSeT8K5G-Cuhg-Bz6.js +0 -1
  60. package/dist/icon-BSeT8K5G-WVhoiRKN.mjs +0 -10144
  61. package/dist/login-LjERatsq.js +0 -345
  62. package/dist/ui/index.cjs +0 -34
  63. package/dist/ui/index.d.ts +0 -18
  64. package/dist/ui/index.mjs +0 -20678
@@ -276,10 +276,10 @@ function D(e, t, n) {
276
276
  };
277
277
  return e.message || (r.message = E(e.inst?._zod.def?.error?.(e)) ?? E(t?.error?.(e)) ?? E(n.customError?.(e)) ?? E(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
278
278
  }
279
- function he(e) {
279
+ function O(e) {
280
280
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
281
281
  }
282
- function O(...e) {
282
+ function k(...e) {
283
283
  let [t, n, r] = e;
284
284
  return typeof t == "string" ? {
285
285
  message: t,
@@ -290,7 +290,7 @@ function O(...e) {
290
290
  }
291
291
  //#endregion
292
292
  //#region ../../node_modules/zod/v4/core/errors.js
293
- var ge = (e, t) => {
293
+ var he = (e, t) => {
294
294
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
295
295
  value: e._zod,
296
296
  enumerable: !1
@@ -301,8 +301,8 @@ var ge = (e, t) => {
301
301
  value: () => e.message,
302
302
  enumerable: !1
303
303
  });
304
- }, _e = s("$ZodError", ge), ve = s("$ZodError", ge, { Parent: Error });
305
- function ye(e, t = (e) => e.message) {
304
+ }, ge = s("$ZodError", he), _e = s("$ZodError", he, { Parent: Error });
305
+ function ve(e, t = (e) => e.message) {
306
306
  let n = {}, r = [];
307
307
  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));
308
308
  return {
@@ -310,7 +310,7 @@ function ye(e, t = (e) => e.message) {
310
310
  fieldErrors: n
311
311
  };
312
312
  }
313
- function be(e, t) {
313
+ function ye(e, t) {
314
314
  let n = t || function(e) {
315
315
  return e.message;
316
316
  }, r = { _errors: [] }, i = (e) => {
@@ -330,7 +330,7 @@ function be(e, t) {
330
330
  }
331
331
  //#endregion
332
332
  //#region ../../node_modules/zod/v4/core/parse.js
333
- var k = (e) => (t, n, r, i) => {
333
+ var A = (e) => (t, n, r, i) => {
334
334
  let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
335
335
  value: n,
336
336
  issues: []
@@ -341,7 +341,7 @@ var k = (e) => (t, n, r, i) => {
341
341
  throw ne(t, i?.callee), t;
342
342
  }
343
343
  return o.value;
344
- }, A = (e) => async (t, n, r, i) => {
344
+ }, j = (e) => async (t, n, r, i) => {
345
345
  let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
346
346
  value: n,
347
347
  issues: []
@@ -351,7 +351,7 @@ var k = (e) => (t, n, r, i) => {
351
351
  throw ne(t, i?.callee), t;
352
352
  }
353
353
  return o.value;
354
- }, j = (e) => (t, n, r) => {
354
+ }, M = (e) => (t, n, r) => {
355
355
  let i = r ? {
356
356
  ...r,
357
357
  async: !1
@@ -362,12 +362,12 @@ var k = (e) => (t, n, r, i) => {
362
362
  if (a instanceof Promise) throw new c();
363
363
  return a.issues.length ? {
364
364
  success: !1,
365
- error: new (e ?? _e)(a.issues.map((e) => D(e, i, d())))
365
+ error: new (e ?? ge)(a.issues.map((e) => D(e, i, d())))
366
366
  } : {
367
367
  success: !0,
368
368
  data: a.value
369
369
  };
370
- }, xe = /* @__PURE__*/ j(ve), M = (e) => async (t, n, r) => {
370
+ }, be = /* @__PURE__*/ M(_e), N = (e) => async (t, n, r) => {
371
371
  let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
372
372
  value: n,
373
373
  issues: []
@@ -379,45 +379,45 @@ var k = (e) => (t, n, r, i) => {
379
379
  success: !0,
380
380
  data: a.value
381
381
  };
382
- }, Se = /* @__PURE__*/ M(ve), Ce = (e) => (t, n, r) => {
383
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
384
- return k(e)(t, n, i);
385
- }, we = (e) => (t, n, r) => k(e)(t, n, r), Te = (e) => async (t, n, r) => {
382
+ }, xe = /* @__PURE__*/ N(_e), Se = (e) => (t, n, r) => {
386
383
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
387
384
  return A(e)(t, n, i);
388
- }, Ee = (e) => async (t, n, r) => A(e)(t, n, r), De = (e) => (t, n, r) => {
385
+ }, Ce = (e) => (t, n, r) => A(e)(t, n, r), we = (e) => async (t, n, r) => {
389
386
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
390
387
  return j(e)(t, n, i);
391
- }, Oe = (e) => (t, n, r) => j(e)(t, n, r), ke = (e) => async (t, n, r) => {
388
+ }, Te = (e) => async (t, n, r) => j(e)(t, n, r), Ee = (e) => (t, n, r) => {
392
389
  let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
393
390
  return M(e)(t, n, i);
394
- }, Ae = (e) => async (t, n, r) => M(e)(t, n, r), je = /^[cC][^\s-]{8,}$/, Me = /^[0-9a-z]+$/, Ne = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Pe = /^[0-9a-vA-V]{20}$/, Fe = /^[A-Za-z0-9]{27}$/, Ie = /^[a-zA-Z0-9_-]{21}$/, Le = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Re = /^([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})$/, ze = (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)$/, Be = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ve = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
395
- function He() {
396
- return new RegExp(Ve, "u");
391
+ }, De = (e) => (t, n, r) => M(e)(t, n, r), Oe = (e) => async (t, n, r) => {
392
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
393
+ return N(e)(t, n, i);
394
+ }, ke = (e) => async (t, n, r) => N(e)(t, n, r), Ae = /^[cC][^\s-]{8,}$/, je = /^[0-9a-z]+$/, Me = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ne = /^[0-9a-vA-V]{20}$/, Pe = /^[A-Za-z0-9]{27}$/, Fe = /^[a-zA-Z0-9_-]{21}$/, Ie = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Le = /^([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})$/, Re = (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)$/, ze = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Be = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
395
+ function Ve() {
396
+ return new RegExp(Be, "u");
397
397
  }
398
- var Ue = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, We = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ge = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ke = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, qe = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Je = /^[A-Za-z0-9_-]*$/, Ye = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Xe = /^\+(?:[0-9]){6,14}[0-9]$/, Ze = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Qe = /*@__PURE__*/ RegExp(`^${Ze}$`);
399
- function $e(e) {
398
+ var He = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ue = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, We = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ge = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ke = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, qe = /^[A-Za-z0-9_-]*$/, Je = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ye = /^\+(?:[0-9]){6,14}[0-9]$/, Xe = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ze = /*@__PURE__*/ RegExp(`^${Xe}$`);
399
+ function Qe(e) {
400
400
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
401
401
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
402
402
  }
403
- function et(e) {
404
- return RegExp(`^${$e(e)}$`);
403
+ function $e(e) {
404
+ return RegExp(`^${Qe(e)}$`);
405
405
  }
406
- function tt(e) {
407
- let t = $e({ precision: e.precision }), n = ["Z"];
406
+ function et(e) {
407
+ let t = Qe({ precision: e.precision }), n = ["Z"];
408
408
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
409
409
  let r = `${t}(?:${n.join("|")})`;
410
- return RegExp(`^${Ze}T(?:${r})$`);
410
+ return RegExp(`^${Xe}T(?:${r})$`);
411
411
  }
412
- var nt = (e) => {
412
+ var tt = (e) => {
413
413
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
414
414
  return RegExp(`^${t}$`);
415
- }, rt = /^[^A-Z]*$/, it = /^[^a-z]*$/, N = /*@__PURE__*/ s("$ZodCheck", (e, t) => {
415
+ }, nt = /^[^A-Z]*$/, rt = /^[^a-z]*$/, P = /*@__PURE__*/ s("$ZodCheck", (e, t) => {
416
416
  var n;
417
417
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
418
- }), at = /*@__PURE__*/ s("$ZodCheckMaxLength", (e, t) => {
418
+ }), it = /*@__PURE__*/ s("$ZodCheckMaxLength", (e, t) => {
419
419
  var n;
420
- N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
420
+ P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
421
421
  let t = e.value;
422
422
  return !h(t) && t.length !== void 0;
423
423
  }), e._zod.onattach.push((e) => {
@@ -426,7 +426,7 @@ var nt = (e) => {
426
426
  }), e._zod.check = (n) => {
427
427
  let r = n.value;
428
428
  if (r.length <= t.maximum) return;
429
- let i = he(r);
429
+ let i = O(r);
430
430
  n.issues.push({
431
431
  origin: i,
432
432
  code: "too_big",
@@ -437,9 +437,9 @@ var nt = (e) => {
437
437
  continue: !t.abort
438
438
  });
439
439
  };
440
- }), ot = /*@__PURE__*/ s("$ZodCheckMinLength", (e, t) => {
440
+ }), at = /*@__PURE__*/ s("$ZodCheckMinLength", (e, t) => {
441
441
  var n;
442
- N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
442
+ P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
443
443
  let t = e.value;
444
444
  return !h(t) && t.length !== void 0;
445
445
  }), e._zod.onattach.push((e) => {
@@ -448,7 +448,7 @@ var nt = (e) => {
448
448
  }), e._zod.check = (n) => {
449
449
  let r = n.value;
450
450
  if (r.length >= t.minimum) return;
451
- let i = he(r);
451
+ let i = O(r);
452
452
  n.issues.push({
453
453
  origin: i,
454
454
  code: "too_small",
@@ -459,9 +459,9 @@ var nt = (e) => {
459
459
  continue: !t.abort
460
460
  });
461
461
  };
462
- }), st = /*@__PURE__*/ s("$ZodCheckLengthEquals", (e, t) => {
462
+ }), ot = /*@__PURE__*/ s("$ZodCheckLengthEquals", (e, t) => {
463
463
  var n;
464
- N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
464
+ P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
465
465
  let t = e.value;
466
466
  return !h(t) && t.length !== void 0;
467
467
  }), e._zod.onattach.push((e) => {
@@ -470,7 +470,7 @@ var nt = (e) => {
470
470
  }), e._zod.check = (n) => {
471
471
  let r = n.value, i = r.length;
472
472
  if (i === t.length) return;
473
- let a = he(r), o = i > t.length;
473
+ let a = O(r), o = i > t.length;
474
474
  n.issues.push({
475
475
  origin: a,
476
476
  ...o ? {
@@ -487,9 +487,9 @@ var nt = (e) => {
487
487
  continue: !t.abort
488
488
  });
489
489
  };
490
- }), P = /*@__PURE__*/ s("$ZodCheckStringFormat", (e, t) => {
490
+ }), F = /*@__PURE__*/ s("$ZodCheckStringFormat", (e, t) => {
491
491
  var n, r;
492
- N.init(e, t), e._zod.onattach.push((e) => {
492
+ P.init(e, t), e._zod.onattach.push((e) => {
493
493
  let n = e._zod.bag;
494
494
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
495
495
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -503,8 +503,8 @@ var nt = (e) => {
503
503
  continue: !t.abort
504
504
  });
505
505
  }) : (r = e._zod).check ?? (r.check = () => {});
506
- }), ct = /*@__PURE__*/ s("$ZodCheckRegex", (e, t) => {
507
- P.init(e, t), e._zod.check = (n) => {
506
+ }), st = /*@__PURE__*/ s("$ZodCheckRegex", (e, t) => {
507
+ F.init(e, t), e._zod.check = (n) => {
508
508
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
509
509
  origin: "string",
510
510
  code: "invalid_format",
@@ -515,12 +515,12 @@ var nt = (e) => {
515
515
  continue: !t.abort
516
516
  });
517
517
  };
518
- }), lt = /*@__PURE__*/ s("$ZodCheckLowerCase", (e, t) => {
519
- t.pattern ??= rt, P.init(e, t);
520
- }), ut = /*@__PURE__*/ s("$ZodCheckUpperCase", (e, t) => {
521
- t.pattern ??= it, P.init(e, t);
522
- }), dt = /*@__PURE__*/ s("$ZodCheckIncludes", (e, t) => {
523
- N.init(e, t);
518
+ }), ct = /*@__PURE__*/ s("$ZodCheckLowerCase", (e, t) => {
519
+ t.pattern ??= nt, F.init(e, t);
520
+ }), lt = /*@__PURE__*/ s("$ZodCheckUpperCase", (e, t) => {
521
+ t.pattern ??= rt, F.init(e, t);
522
+ }), ut = /*@__PURE__*/ s("$ZodCheckIncludes", (e, t) => {
523
+ P.init(e, t);
524
524
  let n = S(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
525
525
  t.pattern = r, e._zod.onattach.push((e) => {
526
526
  let t = e._zod.bag;
@@ -536,8 +536,8 @@ var nt = (e) => {
536
536
  continue: !t.abort
537
537
  });
538
538
  };
539
- }), ft = /*@__PURE__*/ s("$ZodCheckStartsWith", (e, t) => {
540
- N.init(e, t);
539
+ }), dt = /*@__PURE__*/ s("$ZodCheckStartsWith", (e, t) => {
540
+ P.init(e, t);
541
541
  let n = RegExp(`^${S(t.prefix)}.*`);
542
542
  t.pattern ??= n, e._zod.onattach.push((e) => {
543
543
  let t = e._zod.bag;
@@ -553,8 +553,8 @@ var nt = (e) => {
553
553
  continue: !t.abort
554
554
  });
555
555
  };
556
- }), pt = /*@__PURE__*/ s("$ZodCheckEndsWith", (e, t) => {
557
- N.init(e, t);
556
+ }), ft = /*@__PURE__*/ s("$ZodCheckEndsWith", (e, t) => {
557
+ P.init(e, t);
558
558
  let n = RegExp(`.*${S(t.suffix)}$`);
559
559
  t.pattern ??= n, e._zod.onattach.push((e) => {
560
560
  let t = e._zod.bag;
@@ -570,11 +570,11 @@ var nt = (e) => {
570
570
  continue: !t.abort
571
571
  });
572
572
  };
573
- }), mt = /*@__PURE__*/ s("$ZodCheckOverwrite", (e, t) => {
574
- N.init(e, t), e._zod.check = (e) => {
573
+ }), pt = /*@__PURE__*/ s("$ZodCheckOverwrite", (e, t) => {
574
+ P.init(e, t), e._zod.check = (e) => {
575
575
  e.value = t.tx(e.value);
576
576
  };
577
- }), ht = class {
577
+ }), mt = class {
578
578
  constructor(e = []) {
579
579
  this.content = [], this.indent = 0, this && (this.args = e);
580
580
  }
@@ -593,13 +593,13 @@ var nt = (e) => {
593
593
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
594
594
  return new e(...t, n.join("\n"));
595
595
  }
596
- }, gt = {
596
+ }, ht = {
597
597
  major: 4,
598
598
  minor: 1,
599
599
  patch: 11
600
- }, F = /*@__PURE__*/ s("$ZodType", (e, t) => {
600
+ }, I = /*@__PURE__*/ s("$ZodType", (e, t) => {
601
601
  var n;
602
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = gt;
602
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ht;
603
603
  let r = [...e._zod.def.checks ?? []];
604
604
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
605
605
  for (let t of r) for (let n of t._zod.onattach) n(e);
@@ -656,17 +656,17 @@ var nt = (e) => {
656
656
  e["~standard"] = {
657
657
  validate: (t) => {
658
658
  try {
659
- let n = xe(e, t);
659
+ let n = be(e, t);
660
660
  return n.success ? { value: n.data } : { issues: n.error?.issues };
661
661
  } catch {
662
- return Se(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
662
+ return xe(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
663
663
  }
664
664
  },
665
665
  vendor: "zod",
666
666
  version: 1
667
667
  };
668
- }), I = /*@__PURE__*/ s("$ZodString", (e, t) => {
669
- F.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? nt(e._zod.bag), e._zod.parse = (n, r) => {
668
+ }), gt = /*@__PURE__*/ s("$ZodString", (e, t) => {
669
+ I.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tt(e._zod.bag), e._zod.parse = (n, r) => {
670
670
  if (t.coerce) try {
671
671
  n.value = String(n.value);
672
672
  } catch {}
@@ -678,9 +678,9 @@ var nt = (e) => {
678
678
  }), n;
679
679
  };
680
680
  }), L = /*@__PURE__*/ s("$ZodStringFormat", (e, t) => {
681
- P.init(e, t), I.init(e, t);
681
+ F.init(e, t), gt.init(e, t);
682
682
  }), _t = /*@__PURE__*/ s("$ZodGUID", (e, t) => {
683
- t.pattern ??= Re, L.init(e, t);
683
+ t.pattern ??= Le, L.init(e, t);
684
684
  }), vt = /*@__PURE__*/ s("$ZodUUID", (e, t) => {
685
685
  if (t.version) {
686
686
  let e = {
@@ -694,11 +694,11 @@ var nt = (e) => {
694
694
  v8: 8
695
695
  }[t.version];
696
696
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
697
- t.pattern ??= ze(e);
698
- } else t.pattern ??= ze();
697
+ t.pattern ??= Re(e);
698
+ } else t.pattern ??= Re();
699
699
  L.init(e, t);
700
700
  }), yt = /*@__PURE__*/ s("$ZodEmail", (e, t) => {
701
- t.pattern ??= Be, L.init(e, t);
701
+ t.pattern ??= ze, L.init(e, t);
702
702
  }), bt = /*@__PURE__*/ s("$ZodURL", (e, t) => {
703
703
  L.init(e, t), e._zod.check = (n) => {
704
704
  try {
@@ -707,7 +707,7 @@ var nt = (e) => {
707
707
  code: "invalid_format",
708
708
  format: "url",
709
709
  note: "Invalid hostname",
710
- pattern: Ye.source,
710
+ pattern: Je.source,
711
711
  input: n.value,
712
712
  inst: e,
713
713
  continue: !t.abort
@@ -732,34 +732,34 @@ var nt = (e) => {
732
732
  }
733
733
  };
734
734
  }), xt = /*@__PURE__*/ s("$ZodEmoji", (e, t) => {
735
- t.pattern ??= He(), L.init(e, t);
735
+ t.pattern ??= Ve(), L.init(e, t);
736
736
  }), St = /*@__PURE__*/ s("$ZodNanoID", (e, t) => {
737
- t.pattern ??= Ie, L.init(e, t);
737
+ t.pattern ??= Fe, L.init(e, t);
738
738
  }), Ct = /*@__PURE__*/ s("$ZodCUID", (e, t) => {
739
- t.pattern ??= je, L.init(e, t);
739
+ t.pattern ??= Ae, L.init(e, t);
740
740
  }), wt = /*@__PURE__*/ s("$ZodCUID2", (e, t) => {
741
- t.pattern ??= Me, L.init(e, t);
741
+ t.pattern ??= je, L.init(e, t);
742
742
  }), Tt = /*@__PURE__*/ s("$ZodULID", (e, t) => {
743
- t.pattern ??= Ne, L.init(e, t);
743
+ t.pattern ??= Me, L.init(e, t);
744
744
  }), Et = /*@__PURE__*/ s("$ZodXID", (e, t) => {
745
- t.pattern ??= Pe, L.init(e, t);
745
+ t.pattern ??= Ne, L.init(e, t);
746
746
  }), Dt = /*@__PURE__*/ s("$ZodKSUID", (e, t) => {
747
- t.pattern ??= Fe, L.init(e, t);
747
+ t.pattern ??= Pe, L.init(e, t);
748
748
  }), Ot = /*@__PURE__*/ s("$ZodISODateTime", (e, t) => {
749
- t.pattern ??= tt(t), L.init(e, t);
749
+ t.pattern ??= et(t), L.init(e, t);
750
750
  }), kt = /*@__PURE__*/ s("$ZodISODate", (e, t) => {
751
- t.pattern ??= Qe, L.init(e, t);
751
+ t.pattern ??= Ze, L.init(e, t);
752
752
  }), At = /*@__PURE__*/ s("$ZodISOTime", (e, t) => {
753
- t.pattern ??= et(t), L.init(e, t);
753
+ t.pattern ??= $e(t), L.init(e, t);
754
754
  }), jt = /*@__PURE__*/ s("$ZodISODuration", (e, t) => {
755
- t.pattern ??= Le, L.init(e, t);
755
+ t.pattern ??= Ie, L.init(e, t);
756
756
  }), Mt = /*@__PURE__*/ s("$ZodIPv4", (e, t) => {
757
- t.pattern ??= Ue, L.init(e, t), e._zod.onattach.push((e) => {
757
+ t.pattern ??= He, L.init(e, t), e._zod.onattach.push((e) => {
758
758
  let t = e._zod.bag;
759
759
  t.format = "ipv4";
760
760
  });
761
761
  }), Nt = /*@__PURE__*/ s("$ZodIPv6", (e, t) => {
762
- t.pattern ??= We, L.init(e, t), e._zod.onattach.push((e) => {
762
+ t.pattern ??= Ue, L.init(e, t), e._zod.onattach.push((e) => {
763
763
  let t = e._zod.bag;
764
764
  t.format = "ipv6";
765
765
  }), e._zod.check = (n) => {
@@ -776,9 +776,9 @@ var nt = (e) => {
776
776
  }
777
777
  };
778
778
  }), Pt = /*@__PURE__*/ s("$ZodCIDRv4", (e, t) => {
779
- t.pattern ??= Ge, L.init(e, t);
779
+ t.pattern ??= We, L.init(e, t);
780
780
  }), Ft = /*@__PURE__*/ s("$ZodCIDRv6", (e, t) => {
781
- t.pattern ??= Ke, L.init(e, t), e._zod.check = (n) => {
781
+ t.pattern ??= Ge, L.init(e, t), e._zod.check = (n) => {
782
782
  let r = n.value.split("/");
783
783
  try {
784
784
  if (r.length !== 2) throw Error();
@@ -808,7 +808,7 @@ function It(e) {
808
808
  }
809
809
  }
810
810
  var Lt = /*@__PURE__*/ s("$ZodBase64", (e, t) => {
811
- t.pattern ??= qe, L.init(e, t), e._zod.onattach.push((e) => {
811
+ t.pattern ??= Ke, L.init(e, t), e._zod.onattach.push((e) => {
812
812
  e._zod.bag.contentEncoding = "base64";
813
813
  }), e._zod.check = (n) => {
814
814
  It(n.value) || n.issues.push({
@@ -821,12 +821,12 @@ var Lt = /*@__PURE__*/ s("$ZodBase64", (e, t) => {
821
821
  };
822
822
  });
823
823
  function Rt(e) {
824
- if (!Je.test(e)) return !1;
824
+ if (!qe.test(e)) return !1;
825
825
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
826
826
  return It(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
827
827
  }
828
828
  var zt = /*@__PURE__*/ s("$ZodBase64URL", (e, t) => {
829
- t.pattern ??= Je, L.init(e, t), e._zod.onattach.push((e) => {
829
+ t.pattern ??= qe, L.init(e, t), e._zod.onattach.push((e) => {
830
830
  e._zod.bag.contentEncoding = "base64url";
831
831
  }), e._zod.check = (n) => {
832
832
  Rt(n.value) || n.issues.push({
@@ -838,7 +838,7 @@ var zt = /*@__PURE__*/ s("$ZodBase64URL", (e, t) => {
838
838
  });
839
839
  };
840
840
  }), Bt = /*@__PURE__*/ s("$ZodE164", (e, t) => {
841
- t.pattern ??= Xe, L.init(e, t);
841
+ t.pattern ??= Ye, L.init(e, t);
842
842
  });
843
843
  function Vt(e, t = null) {
844
844
  try {
@@ -863,9 +863,9 @@ var Ht = /*@__PURE__*/ s("$ZodJWT", (e, t) => {
863
863
  });
864
864
  };
865
865
  }), Ut = /*@__PURE__*/ s("$ZodUnknown", (e, t) => {
866
- F.init(e, t), e._zod.parse = (e) => e;
866
+ I.init(e, t), e._zod.parse = (e) => e;
867
867
  }), Wt = /*@__PURE__*/ s("$ZodNever", (e, t) => {
868
- F.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
868
+ I.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
869
869
  expected: "never",
870
870
  code: "invalid_type",
871
871
  input: t.value,
@@ -876,7 +876,7 @@ function Gt(e, t, n) {
876
876
  e.issues.length && t.issues.push(...me(n, e.issues)), t.value[n] = e.value;
877
877
  }
878
878
  var Kt = /*@__PURE__*/ s("$ZodArray", (e, t) => {
879
- F.init(e, t), e._zod.parse = (n, r) => {
879
+ I.init(e, t), e._zod.parse = (n, r) => {
880
880
  let i = n.value;
881
881
  if (!Array.isArray(i)) return n.issues.push({
882
882
  expected: "array",
@@ -933,7 +933,7 @@ function Jt(e, t, n, r, i, a) {
933
933
  }), e.length ? Promise.all(e).then(() => n) : n;
934
934
  }
935
935
  var Yt = /*@__PURE__*/ s("$ZodObject", (e, t) => {
936
- if (F.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
936
+ if (I.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
937
937
  let e = t.shape;
938
938
  Object.defineProperty(t, "shape", { get: () => {
939
939
  let n = { ...e };
@@ -976,7 +976,7 @@ var Yt = /*@__PURE__*/ s("$ZodObject", (e, t) => {
976
976
  }), Xt = /*@__PURE__*/ s("$ZodObjectJIT", (e, t) => {
977
977
  Yt.init(e, t);
978
978
  let n = e._zod.parse, r = m(() => qt(t)), i = (e) => {
979
- let t = new ht([
979
+ let t = new mt([
980
980
  "shape",
981
981
  "payload",
982
982
  "ctx"
@@ -1035,7 +1035,7 @@ function Zt(e, t, n, r) {
1035
1035
  }), t);
1036
1036
  }
1037
1037
  var Qt = /*@__PURE__*/ s("$ZodUnion", (e, t) => {
1038
- F.init(e, t), _(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
1038
+ I.init(e, t), _(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
1039
1039
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1040
1040
  }), _(e._zod, "pattern", () => {
1041
1041
  if (t.options.every((e) => e._zod.pattern)) {
@@ -1061,7 +1061,7 @@ var Qt = /*@__PURE__*/ s("$ZodUnion", (e, t) => {
1061
1061
  return o ? Promise.all(s).then((t) => Zt(t, i, e, a)) : Zt(s, i, e, a);
1062
1062
  };
1063
1063
  }), $t = /*@__PURE__*/ s("$ZodIntersection", (e, t) => {
1064
- F.init(e, t), e._zod.parse = (e, n) => {
1064
+ I.init(e, t), e._zod.parse = (e, n) => {
1065
1065
  let r = e.value, i = t.left._zod.run({
1066
1066
  value: r,
1067
1067
  issues: []
@@ -1126,7 +1126,7 @@ function en(e, t, n) {
1126
1126
  return e.value = r.data, e;
1127
1127
  }
1128
1128
  var tn = /*@__PURE__*/ s("$ZodEnum", (e, t) => {
1129
- F.init(e, t);
1129
+ I.init(e, t);
1130
1130
  let n = f(t.entries), r = new Set(n);
1131
1131
  e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? S(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1132
1132
  let a = t.value;
@@ -1138,7 +1138,7 @@ var tn = /*@__PURE__*/ s("$ZodEnum", (e, t) => {
1138
1138
  }), t;
1139
1139
  };
1140
1140
  }), nn = /*@__PURE__*/ s("$ZodTransform", (e, t) => {
1141
- F.init(e, t), e._zod.parse = (n, r) => {
1141
+ I.init(e, t), e._zod.parse = (n, r) => {
1142
1142
  if (r.direction === "backward") throw new l(e.constructor.name);
1143
1143
  let i = t.transform(n.value, n);
1144
1144
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
@@ -1153,7 +1153,7 @@ function rn(e, t) {
1153
1153
  } : e;
1154
1154
  }
1155
1155
  var an = /*@__PURE__*/ s("$ZodOptional", (e, t) => {
1156
- F.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1156
+ I.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1157
1157
  let e = t.innerType._zod.pattern;
1158
1158
  return e ? RegExp(`^(${g(e.source)})?$`) : void 0;
1159
1159
  }), e._zod.parse = (e, n) => {
@@ -1164,12 +1164,12 @@ var an = /*@__PURE__*/ s("$ZodOptional", (e, t) => {
1164
1164
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1165
1165
  };
1166
1166
  }), on = /*@__PURE__*/ s("$ZodNullable", (e, t) => {
1167
- F.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1167
+ I.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1168
1168
  let e = t.innerType._zod.pattern;
1169
1169
  return e ? RegExp(`^(${g(e.source)}|null)$`) : void 0;
1170
1170
  }), _(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);
1171
1171
  }), sn = /*@__PURE__*/ s("$ZodDefault", (e, t) => {
1172
- F.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1172
+ I.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1173
1173
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1174
1174
  if (e.value === void 0) return e.value = t.defaultValue, e;
1175
1175
  let r = t.innerType._zod.run(e, n);
@@ -1180,9 +1180,9 @@ function cn(e, t) {
1180
1180
  return e.value === void 0 && (e.value = t.defaultValue), e;
1181
1181
  }
1182
1182
  var ln = /*@__PURE__*/ s("$ZodPrefault", (e, t) => {
1183
- F.init(e, t), e._zod.optin = "optional", _(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));
1183
+ I.init(e, t), e._zod.optin = "optional", _(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));
1184
1184
  }), un = /*@__PURE__*/ s("$ZodNonOptional", (e, t) => {
1185
- F.init(e, t), _(e._zod, "values", () => {
1185
+ I.init(e, t), _(e._zod, "values", () => {
1186
1186
  let e = t.innerType._zod.values;
1187
1187
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1188
1188
  }), e._zod.parse = (n, r) => {
@@ -1199,7 +1199,7 @@ function dn(e, t) {
1199
1199
  }), e;
1200
1200
  }
1201
1201
  var fn = /*@__PURE__*/ s("$ZodCatch", (e, t) => {
1202
- F.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1202
+ I.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1203
1203
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1204
1204
  let r = t.innerType._zod.run(e, n);
1205
1205
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
@@ -1213,7 +1213,7 @@ var fn = /*@__PURE__*/ s("$ZodCatch", (e, t) => {
1213
1213
  }), e.issues = []), e);
1214
1214
  };
1215
1215
  }), pn = /*@__PURE__*/ s("$ZodPipe", (e, t) => {
1216
- F.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1216
+ I.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1217
1217
  if (n.direction === "backward") {
1218
1218
  let r = t.out._zod.run(e, n);
1219
1219
  return r instanceof Promise ? r.then((e) => B(e, t.in, n)) : B(r, t.in, n);
@@ -1229,7 +1229,7 @@ function B(e, t, n) {
1229
1229
  }, n);
1230
1230
  }
1231
1231
  var mn = /*@__PURE__*/ s("$ZodReadonly", (e, t) => {
1232
- F.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
1232
+ I.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
1233
1233
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1234
1234
  let r = t.innerType._zod.run(e, n);
1235
1235
  return r instanceof Promise ? r.then(hn) : hn(r);
@@ -1239,7 +1239,7 @@ function hn(e) {
1239
1239
  return e.value = Object.freeze(e.value), e;
1240
1240
  }
1241
1241
  var gn = /*@__PURE__*/ s("$ZodCustom", (e, t) => {
1242
- N.init(e, t), F.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1242
+ P.init(e, t), I.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1243
1243
  let r = n.value, i = t.fn(r);
1244
1244
  if (i instanceof Promise) return i.then((t) => _n(t, n, r, e));
1245
1245
  _n(i, n, r, e);
@@ -1254,7 +1254,7 @@ function _n(e, t, n, r) {
1254
1254
  path: [...r._zod.def.path ?? []],
1255
1255
  continue: !r._zod.def.abort
1256
1256
  };
1257
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(O(e));
1257
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(k(e));
1258
1258
  }
1259
1259
  }
1260
1260
  //#endregion
@@ -1554,28 +1554,28 @@ function Jn(e, t) {
1554
1554
  });
1555
1555
  }
1556
1556
  function Yn(e, t) {
1557
- return new at({
1557
+ return new it({
1558
1558
  check: "max_length",
1559
1559
  ...w(t),
1560
1560
  maximum: e
1561
1561
  });
1562
1562
  }
1563
1563
  function H(e, t) {
1564
- return new ot({
1564
+ return new at({
1565
1565
  check: "min_length",
1566
1566
  ...w(t),
1567
1567
  minimum: e
1568
1568
  });
1569
1569
  }
1570
1570
  function Xn(e, t) {
1571
- return new st({
1571
+ return new ot({
1572
1572
  check: "length_equals",
1573
1573
  ...w(t),
1574
1574
  length: e
1575
1575
  });
1576
1576
  }
1577
1577
  function Zn(e, t) {
1578
- return new ct({
1578
+ return new st({
1579
1579
  check: "string_format",
1580
1580
  format: "regex",
1581
1581
  ...w(t),
@@ -1583,21 +1583,21 @@ function Zn(e, t) {
1583
1583
  });
1584
1584
  }
1585
1585
  function Qn(e) {
1586
- return new lt({
1586
+ return new ct({
1587
1587
  check: "string_format",
1588
1588
  format: "lowercase",
1589
1589
  ...w(e)
1590
1590
  });
1591
1591
  }
1592
1592
  function $n(e) {
1593
- return new ut({
1593
+ return new lt({
1594
1594
  check: "string_format",
1595
1595
  format: "uppercase",
1596
1596
  ...w(e)
1597
1597
  });
1598
1598
  }
1599
1599
  function er(e, t) {
1600
- return new dt({
1600
+ return new ut({
1601
1601
  check: "string_format",
1602
1602
  format: "includes",
1603
1603
  ...w(t),
@@ -1605,7 +1605,7 @@ function er(e, t) {
1605
1605
  });
1606
1606
  }
1607
1607
  function tr(e, t) {
1608
- return new ft({
1608
+ return new dt({
1609
1609
  check: "string_format",
1610
1610
  format: "starts_with",
1611
1611
  ...w(t),
@@ -1613,7 +1613,7 @@ function tr(e, t) {
1613
1613
  });
1614
1614
  }
1615
1615
  function nr(e, t) {
1616
- return new pt({
1616
+ return new ft({
1617
1617
  check: "string_format",
1618
1618
  format: "ends_with",
1619
1619
  ...w(t),
@@ -1621,7 +1621,7 @@ function nr(e, t) {
1621
1621
  });
1622
1622
  }
1623
1623
  function U(e) {
1624
- return new mt({
1624
+ return new pt({
1625
1625
  check: "overwrite",
1626
1626
  tx: e
1627
1627
  });
@@ -1655,16 +1655,16 @@ function cr(e, t, n) {
1655
1655
  }
1656
1656
  function lr(e) {
1657
1657
  let t = ur((n) => (n.addIssue = (e) => {
1658
- if (typeof e == "string") n.issues.push(O(e, n.value, t._zod.def));
1658
+ if (typeof e == "string") n.issues.push(k(e, n.value, t._zod.def));
1659
1659
  else {
1660
1660
  let r = e;
1661
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(O(r));
1661
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(k(r));
1662
1662
  }
1663
1663
  }, e(n.value, n)));
1664
1664
  return t;
1665
1665
  }
1666
1666
  function ur(e, t) {
1667
- let n = new N({
1667
+ let n = new P({
1668
1668
  check: "custom",
1669
1669
  ...w(t)
1670
1670
  });
@@ -1699,9 +1699,9 @@ function vr(e) {
1699
1699
  //#endregion
1700
1700
  //#region ../../node_modules/zod/v4/classic/errors.js
1701
1701
  var yr = (e, t) => {
1702
- _e.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1703
- format: { value: (t) => be(e, t) },
1704
- flatten: { value: (t) => ye(e, t) },
1702
+ ge.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1703
+ format: { value: (t) => ye(e, t) },
1704
+ flatten: { value: (t) => ve(e, t) },
1705
1705
  addIssue: { value: (t) => {
1706
1706
  e.issues.push(t), e.message = JSON.stringify(e.issues, p, 2);
1707
1707
  } },
@@ -1714,7 +1714,7 @@ var yr = (e, t) => {
1714
1714
  });
1715
1715
  };
1716
1716
  s("ZodError", yr);
1717
- var W = s("ZodError", yr, { Parent: Error }), br = /* @__PURE__ */ k(W), xr = /* @__PURE__ */ A(W), Sr = /* @__PURE__ */ j(W), Cr = /* @__PURE__ */ M(W), wr = /* @__PURE__ */ Ce(W), Tr = /* @__PURE__ */ we(W), Er = /* @__PURE__ */ Te(W), Dr = /* @__PURE__ */ Ee(W), Or = /* @__PURE__ */ De(W), kr = /* @__PURE__ */ Oe(W), Ar = /* @__PURE__ */ ke(W), jr = /* @__PURE__ */ Ae(W), G = /*@__PURE__*/ s("ZodType", (e, t) => (F.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(y(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
1717
+ var W = s("ZodError", yr, { Parent: Error }), br = /* @__PURE__ */ A(W), xr = /* @__PURE__ */ j(W), Sr = /* @__PURE__ */ M(W), Cr = /* @__PURE__ */ N(W), wr = /* @__PURE__ */ Se(W), Tr = /* @__PURE__ */ Ce(W), Er = /* @__PURE__ */ we(W), Dr = /* @__PURE__ */ Te(W), Or = /* @__PURE__ */ Ee(W), kr = /* @__PURE__ */ De(W), Ar = /* @__PURE__ */ Oe(W), jr = /* @__PURE__ */ ke(W), G = /*@__PURE__*/ s("ZodType", (e, t) => (I.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(y(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
1718
1718
  check: e,
1719
1719
  def: { check: "custom" },
1720
1720
  onattach: []
@@ -1731,11 +1731,11 @@ var W = s("ZodError", yr, { Parent: Error }), br = /* @__PURE__ */ k(W), xr = /*
1731
1731
  let n = e.clone();
1732
1732
  return V.add(n, t[0]), n;
1733
1733
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Mr = /*@__PURE__*/ s("_ZodString", (e, t) => {
1734
- I.init(e, t), G.init(e, t);
1734
+ gt.init(e, t), G.init(e, t);
1735
1735
  let n = e._zod.bag;
1736
1736
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(Zn(...t)), e.includes = (...t) => e.check(er(...t)), e.startsWith = (...t) => e.check(tr(...t)), e.endsWith = (...t) => e.check(nr(...t)), e.min = (...t) => e.check(H(...t)), e.max = (...t) => e.check(Yn(...t)), e.length = (...t) => e.check(Xn(...t)), e.nonempty = (...t) => e.check(H(1, ...t)), e.lowercase = (t) => e.check(Qn(t)), e.uppercase = (t) => e.check($n(t)), e.trim = () => e.check(ir()), e.normalize = (...t) => e.check(rr(...t)), e.toLowerCase = () => e.check(ar()), e.toUpperCase = () => e.check(or());
1737
1737
  }), Nr = /*@__PURE__*/ s("ZodString", (e, t) => {
1738
- I.init(e, t), Mr.init(e, t), e.email = (t) => e.check(xn(Fr, t)), e.url = (t) => e.check(Dn(Lr, t)), e.jwt = (t) => e.check(Hn(Qr, t)), e.emoji = (t) => e.check(On(Rr, t)), e.guid = (t) => e.check(Sn(Ir, t)), e.uuid = (t) => e.check(Cn(q, t)), e.uuidv4 = (t) => e.check(wn(q, t)), e.uuidv6 = (t) => e.check(Tn(q, t)), e.uuidv7 = (t) => e.check(En(q, t)), e.nanoid = (t) => e.check(kn(zr, t)), e.guid = (t) => e.check(Sn(Ir, t)), e.cuid = (t) => e.check(An(Br, t)), e.cuid2 = (t) => e.check(jn(Vr, t)), e.ulid = (t) => e.check(Mn(Hr, t)), e.base64 = (t) => e.check(zn(Yr, t)), e.base64url = (t) => e.check(Bn(Xr, t)), e.xid = (t) => e.check(Nn(Ur, t)), e.ksuid = (t) => e.check(Pn(Wr, t)), e.ipv4 = (t) => e.check(Fn(Gr, t)), e.ipv6 = (t) => e.check(In(Kr, t)), e.cidrv4 = (t) => e.check(Ln(qr, t)), e.cidrv6 = (t) => e.check(Rn(Jr, t)), e.e164 = (t) => e.check(Vn(Zr, t)), e.datetime = (t) => e.check(fr(t)), e.date = (t) => e.check(mr(t)), e.time = (t) => e.check(gr(t)), e.duration = (t) => e.check(vr(t));
1738
+ gt.init(e, t), Mr.init(e, t), e.email = (t) => e.check(xn(Fr, t)), e.url = (t) => e.check(Dn(Lr, t)), e.jwt = (t) => e.check(Hn(Qr, t)), e.emoji = (t) => e.check(On(Rr, t)), e.guid = (t) => e.check(Sn(Ir, t)), e.uuid = (t) => e.check(Cn(q, t)), e.uuidv4 = (t) => e.check(wn(q, t)), e.uuidv6 = (t) => e.check(Tn(q, t)), e.uuidv7 = (t) => e.check(En(q, t)), e.nanoid = (t) => e.check(kn(zr, t)), e.guid = (t) => e.check(Sn(Ir, t)), e.cuid = (t) => e.check(An(Br, t)), e.cuid2 = (t) => e.check(jn(Vr, t)), e.ulid = (t) => e.check(Mn(Hr, t)), e.base64 = (t) => e.check(zn(Yr, t)), e.base64url = (t) => e.check(Bn(Xr, t)), e.xid = (t) => e.check(Nn(Ur, t)), e.ksuid = (t) => e.check(Pn(Wr, t)), e.ipv4 = (t) => e.check(Fn(Gr, t)), e.ipv6 = (t) => e.check(In(Kr, t)), e.cidrv4 = (t) => e.check(Ln(qr, t)), e.cidrv6 = (t) => e.check(Rn(Jr, t)), e.e164 = (t) => e.check(Vn(Zr, t)), e.datetime = (t) => e.check(fr(t)), e.date = (t) => e.check(mr(t)), e.time = (t) => e.check(gr(t)), e.duration = (t) => e.check(vr(t));
1739
1739
  });
1740
1740
  function Pr(e) {
1741
1741
  return bn(Nr, e);
@@ -1879,10 +1879,10 @@ var pi = /*@__PURE__*/ s("ZodTransform", (e, t) => {
1879
1879
  nn.init(e, t), G.init(e, t), e._zod.parse = (n, r) => {
1880
1880
  if (r.direction === "backward") throw new l(e.constructor.name);
1881
1881
  n.addIssue = (r) => {
1882
- if (typeof r == "string") n.issues.push(O(r, n.value, t));
1882
+ if (typeof r == "string") n.issues.push(k(r, n.value, t));
1883
1883
  else {
1884
1884
  let t = r;
1885
- t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(O(t));
1885
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(k(t));
1886
1886
  }
1887
1887
  };
1888
1888
  let i = t.transform(n.value, n);
@@ -2158,7 +2158,7 @@ function Vi(e) {
2158
2158
  //#endregion
2159
2159
  //#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
2160
2160
  var Hi = /* @__PURE__ */ function(e) {
2161
- return e.Verify = "/verify", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.WorkspaceActivation = "/workspace-activation", e.CreateProfile = "/create/profile", e.SyncEmails = "/sync/emails", e.InviteTeam = "/invite-team", e.PlanRequired = "/plan-required", e.PlanRequiredSuccess = "/plan-required/payment-success", e.BookCallDecision = "/book-call-decision", e.BookCall = "/book-call", e.Index = "/", e.TasksPage = "/objects/tasks", e.OpportunitiesPage = "/objects/opportunities", e.RecordIndexPage = "/objects/:objectNamePlural", e.RecordShowPage = "/object/:objectNameSingular/:objectRecordId", e.PageLayoutPage = "/page/:pageLayoutId", e.Settings = "settings", e.SettingsCatchAll = "/settings/*", e.Developers = "developers", e.DevelopersCatchAll = "/developers/*", e.Authorize = "/authorize", e.NotFoundWildcard = "*", e.NotFound = "/not-found", e;
2161
+ return e.Verify = "/verify", e.VerifyV2 = "/verify-v2", e.VerifyEmail = "/verify-email", e.SignInUp = "/welcome", e.SignInUpV2 = "/welcome-v2", e.Invite = "/invite/:workspaceInviteHash", e.ResetPassword = "/reset-password/:passwordResetToken", e.WorkspaceActivation = "/workspace-activation", e.WorkspaceActivationV2 = "/workspace-activation-v2", e.CreateProfile = "/create/profile", e.CreateProfileV2 = "/create/profile-v2", e.SyncEmails = "/sync/emails", e.SyncEmailsV2 = "/sync/emails-v2", e.InviteTeam = "/invite-team", e.InviteTeamV2 = "/invite-team-v2", e.PlanRequired = "/plan-required", e.PlanRequiredV2 = "/plan-required-v2", e.PlanRequiredSuccess = "/plan-required/payment-success", e.BookCallDecision = "/book-call-decision", e.BookCall = "/book-call", e.Index = "/", e.TasksPage = "/objects/tasks", e.OpportunitiesPage = "/objects/opportunities", e.RecordIndexPage = "/objects/:objectNamePlural", e.RecordShowPage = "/object/:objectNameSingular/:objectRecordId", e.PageLayoutPage = "/page/:pageLayoutId", e.Settings = "settings", e.SettingsCatchAll = "/settings/*", e.Developers = "developers", e.DevelopersCatchAll = "/developers/*", e.Authorize = "/authorize", e.Dpa = "/dpa", e.NotFoundWildcard = "*", e.NotFound = "/not-found", e;
2162
2162
  }({}), Y = /* @__PURE__ */ function(e) {
2163
2163
  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;
2164
2164
  }({}), Ui = /* @__PURE__ */ function(e) {
@@ -2371,9 +2371,9 @@ oi({
2371
2371
  [Y.EMAILS, qi],
2372
2372
  [Y.PHONES, Xi],
2373
2373
  [Y.RICH_TEXT, Zi]
2374
- ]);
2374
+ ]), Y.RELATION, Y.MORPH_RELATION, Y.FILES, Y.TS_VECTOR;
2375
2375
  //#endregion
2376
- //#region ../twenty-shared/dist/types-B7mVSC6d.mjs
2376
+ //#region ../twenty-shared/dist/types-BXUwA2lR.mjs
2377
2377
  var Qi = /* @__PURE__ */ function(e) {
2378
2378
  return e.CommandMenuDisplay = "command-menu-display", e.ViewRecord = "view-record", e.MergeRecords = "merge-records", e.UpdateRecords = "update-records", e.EditRichText = "edit-rich-text", e.Copilot = "copilot", e.WorkflowTriggerSelectType = "workflow-trigger-select-type", e.WorkflowStepCreate = "workflow-step-create", e.WorkflowStepEditType = "workflow-step-edit-type", e.WorkflowStepView = "workflow-step-view", e.WorkflowStepEdit = "workflow-step-edit", e.WorkflowRunStepView = "workflow-run-step-view", e.SearchRecords = "search-records", e.AskAI = "ask-ai", e.ViewPreviousAiChats = "view-previous-ai-chats", e.PageLayoutDashboardWidgetTypeSelect = "page-layout-dashboard-widget-type-select", e.PageLayoutTabSettings = "page-layout-tab-settings", e.DashboardChartSettings = "dashboard-chart-settings", e.DashboardIframeSettings = "dashboard-iframe-settings", e.DashboardRecordTableSettings = "dashboard-record-table-settings", e.RecordPageFieldsSettings = "record-page-fields-settings", e.RecordPageFieldSettings = "record-page-field-settings", e.ViewFrontComponent = "view-front-component", e.NavigationMenuItemEdit = "navigation-menu-item-edit", e.NavigationMenuAddItem = "navigation-menu-add-item", e.CommandMenuEdit = "command-menu-edit", e.PageLayoutRecordPageWidgetTypeSelect = "page-layout-record-page-widget-type-select", e.ComposeEmail = "compose-email", e.ComposeCampaign = "compose-campaign", e;
2379
2379
  }({}), $i = "frontComponentHostCommunicationApi";
@@ -2453,24 +2453,15 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2453
2453
  o,
2454
2454
  $()
2455
2455
  ]), null;
2456
- }, Ea = ({ page: e, pageTitle: t, pageIcon: n, onClick: i, shouldResetSearchState: o = !1 }) => {
2457
- let [s, c] = a(!1);
2456
+ }, Ea = (e) => {
2457
+ let [t, n] = a(!1);
2458
2458
  return r(() => {
2459
- s || (c(!0), (async () => {
2460
- i?.(), await oa({
2461
- page: e,
2462
- pageTitle: t,
2463
- pageIcon: n,
2464
- shouldResetSearchState: o
2465
- }), await Z();
2459
+ t || (n(!0), (async () => {
2460
+ await oa(e), await Z();
2466
2461
  })());
2467
2462
  }, [
2468
2463
  e,
2469
2464
  t,
2470
- n,
2471
- o,
2472
- i,
2473
- s,
2474
2465
  $()
2475
2466
  ]), null;
2476
2467
  }, Da = ({ title: e, subtitle: t, execute: n, confirmButtonText: i, confirmButtonAccent: o }) => {