@oomol-lab/open-flow 0.1.0-beta.28 → 0.1.0-beta.29

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 (33) hide show
  1. package/dist/browser/{createResourceDialog-C2ZLGPla.js → createResourceDialog-C_8I3Fua.js} +1 -1
  2. package/dist/browser/dist-CoszrK7m.js +4 -0
  3. package/dist/browser/{switch-DuB8aovT.js → editorComponent-Dq4IKp5R.js} +1222 -608
  4. package/dist/browser/flow-authoring-node.d.ts +3 -0
  5. package/dist/browser/flow-authoring.js +1388 -1555
  6. package/dist/browser/flow-change.d.ts +12 -7
  7. package/dist/browser/flow-change.js +966 -1105
  8. package/dist/browser/{flowChanges-Z49mslMz.js → flowChanges-BBtkyUGd.js} +1974 -1839
  9. package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
  10. package/dist/browser/{flowWorkspace-DCaVDqtY.js → flowWorkspace-DNmBb3ZW.js} +52795 -52886
  11. package/dist/browser/{inputValues-CLnpqFAf.js → inputValues-BbSVOWQP.js} +2 -2
  12. package/dist/browser/{markdownContent-Bon8uhjM.js → markdownContent-D2oHGWc6.js} +1 -1
  13. package/dist/browser/ui.css +1 -1
  14. package/dist/browser/value-DPg_9yXB.js +93 -0
  15. package/dist/browser/workbench.css +1 -1
  16. package/dist/browser/workbench.js +508 -507
  17. package/dist/browser/{workbenchSelect-DX9IFmX-.js → workbenchSelect-CQOvpteT.js} +1057 -1223
  18. package/dist/common/authoringExamples.d.ts +3 -2
  19. package/dist/common/control-api-conformance.js +1359 -1484
  20. package/dist/common/control-api.d.ts +5 -1
  21. package/dist/common/control-api.js +942 -1077
  22. package/dist/common/control-requests.js +751 -834
  23. package/dist/common/flow-encoding.js +1502 -1637
  24. package/dist/common/flow-graph.d.ts +18 -2
  25. package/dist/common/flow-semantics.js +1982 -2116
  26. package/dist/common/mcp.js +908 -1016
  27. package/dist/common/provider-triggers.js +2048 -2183
  28. package/dist/common/run-events.js +1 -0
  29. package/dist/common/scheduler.d.ts +2 -2
  30. package/dist/common/scheduler.js +1282 -1477
  31. package/package.json +1 -1
  32. package/dist/browser/dist-B_T-OpQp.js +0 -4
  33. package/dist/browser/languages-C0zQ4GSo.js +0 -42
@@ -234,17 +234,17 @@ function me(e, t, n) {
234
234
  return l(this, "shape", i), i;
235
235
  } }));
236
236
  }
237
- function he(e, t = 0) {
237
+ function _(e, t = 0) {
238
238
  if (e.aborted === !0) return !0;
239
239
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
240
240
  return !1;
241
241
  }
242
- function ge(e, t = 0) {
242
+ function he(e, t = 0) {
243
243
  if (e.aborted === !0) return !0;
244
244
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
245
245
  return !1;
246
246
  }
247
- function _(e, t) {
247
+ function ge(e, t) {
248
248
  return t.map((t) => {
249
249
  var n;
250
250
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
@@ -1012,24 +1012,24 @@ var Vt = (e) => {
1012
1012
  else {
1013
1013
  let t = (t, n, r) => {
1014
1014
  if (t.memo) return t;
1015
- let i = he(t), a;
1015
+ let i = _(t), a;
1016
1016
  for (let o of n) {
1017
1017
  if (o._zod.def.when) {
1018
- if (ge(t) || !o._zod.def.when(t)) continue;
1018
+ if (he(t) || !o._zod.def.when(t)) continue;
1019
1019
  } else if (i) continue;
1020
1020
  let n = t.issues.length, s = o._zod.check(t);
1021
1021
  if (s instanceof Promise && r?.async === !1) throw new ze();
1022
1022
  if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
1023
- await s, t.issues.length !== n && (ve(t.issues, n, e), i ||= he(t, n));
1023
+ await s, t.issues.length !== n && (ve(t.issues, n, e), i ||= _(t, n));
1024
1024
  });
1025
1025
  else {
1026
1026
  if (t.issues.length === n) continue;
1027
- ve(t.issues, n, e), i ||= he(t, n);
1027
+ ve(t.issues, n, e), i ||= _(t, n);
1028
1028
  }
1029
1029
  }
1030
1030
  return a ? a.then(() => t) : t;
1031
1031
  }, n = (n, r, a) => {
1032
- if (he(n)) return n.aborted = !0, n;
1032
+ if (_(n)) return n.aborted = !0, n;
1033
1033
  let o = t(r, i, a);
1034
1034
  if (o instanceof Promise) {
1035
1035
  if (a.async === !1) throw new ze();
@@ -1364,7 +1364,7 @@ var Xn = /*@__PURE__*/ b("$ZodJWT", (e, t) => {
1364
1364
  }), t);
1365
1365
  });
1366
1366
  function rr(e, t, n) {
1367
- e.issues.length && t.issues.push(..._(n, e.issues)), t.value[n] = e.value;
1367
+ e.issues.length && t.issues.push(...ge(n, e.issues)), t.value[n] = e.value;
1368
1368
  }
1369
1369
  var ir = /*@__PURE__*/ b("$ZodArray", (e, t) => {
1370
1370
  w.init(e, t);
@@ -1394,7 +1394,7 @@ function ar(e, t, n, r, i, a) {
1394
1394
  if (!(!o && s && i === "optional")) {
1395
1395
  if (e.issues.length) {
1396
1396
  if (i !== void 0 && s && !o) return;
1397
- t.issues.push(..._(n, e.issues));
1397
+ t.issues.push(...ge(n, e.issues));
1398
1398
  }
1399
1399
  if (!o && i === void 0) {
1400
1400
  e.issues.length || t.issues.push({
@@ -1572,7 +1572,7 @@ var lr = /* @__PURE__ */ new WeakMap(), ur = /*@__PURE__*/ b("$ZodObject", (e, t
1572
1572
  });
1573
1573
  function fr(e, t, n, r) {
1574
1574
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1575
- let i = e.filter((e) => !he(e));
1575
+ let i = e.filter((e) => !_(e));
1576
1576
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1577
1577
  code: "invalid_union",
1578
1578
  input: t.value,
@@ -1691,93 +1691,12 @@ function gr(e, t, n) {
1691
1691
  }
1692
1692
  let c = hr(t.value, n.value);
1693
1693
  if (!c.valid) {
1694
- if (he(e)) return e;
1694
+ if (_(e)) return e;
1695
1695
  throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
1696
1696
  }
1697
1697
  return e.value = c.data, e;
1698
1698
  }
1699
- var _r = /*@__PURE__*/ b("$ZodTuple", (e, t) => {
1700
- w.init(e, t);
1701
- let n = t.items, r = x.memoizer;
1702
- r?.attach(e), e._zod.parse = (i, a) => {
1703
- let o = i.value;
1704
- if (!Array.isArray(o)) return i.issues.push({
1705
- input: o,
1706
- inst: e,
1707
- expected: "tuple",
1708
- code: "invalid_type"
1709
- }), i;
1710
- i.value = r ? r.alloc(e, i, [], a) : [];
1711
- let s = [], c = vr(n, "optin"), l = vr(n, "optout");
1712
- if (!t.rest) {
1713
- if (o.length < c) return i.issues.push({
1714
- code: "too_small",
1715
- minimum: c,
1716
- inclusive: !0,
1717
- input: o,
1718
- inst: e,
1719
- origin: "array"
1720
- }), i;
1721
- o.length > n.length && i.issues.push({
1722
- code: "too_big",
1723
- maximum: n.length,
1724
- inclusive: !0,
1725
- input: o,
1726
- inst: e,
1727
- origin: "array"
1728
- });
1729
- }
1730
- let u = Array(n.length);
1731
- for (let e = 0; e < n.length; e++) {
1732
- let t = n[e]._zod.run({
1733
- value: o[e],
1734
- issues: []
1735
- }, a);
1736
- t instanceof Promise ? s.push(t.then((t) => {
1737
- u[e] = t;
1738
- })) : u[e] = t;
1739
- }
1740
- if (t.rest) {
1741
- let e = n.length - 1, r = o.slice(n.length);
1742
- for (let n of r) {
1743
- e++;
1744
- let r = t.rest._zod.run({
1745
- value: n,
1746
- issues: []
1747
- }, a);
1748
- r instanceof Promise ? s.push(r.then((t) => yr(t, i, e))) : yr(r, i, e);
1749
- }
1750
- }
1751
- return s.length ? Promise.all(s).then(() => br(u, i, n, o, l)) : br(u, i, n, o, l);
1752
- };
1753
- });
1754
- function vr(e, t) {
1755
- for (let n = e.length - 1; n >= 0; n--) if (!(t === "optin" ? e[n]._zod.optin !== void 0 : e[n]._zod.optout === "optional")) return n + 1;
1756
- return 0;
1757
- }
1758
- function yr(e, t, n) {
1759
- e.issues.length && t.issues.push(..._(n, e.issues)), t.value[n] = e.value;
1760
- }
1761
- function br(e, t, n, r, i) {
1762
- for (let a = 0; a < n.length; a++) {
1763
- let o = e[a], s = a < r.length;
1764
- if (!s && a >= i && n[a]._zod.optin === "optional") {
1765
- t.value.length = a;
1766
- break;
1767
- }
1768
- if (o.issues.length) {
1769
- if (!s && a >= i) {
1770
- t.value.length = a;
1771
- break;
1772
- }
1773
- t.issues.push(..._(a, o.issues));
1774
- }
1775
- t.value[a] = o.value;
1776
- }
1777
- for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
1778
- return t;
1779
- }
1780
- var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1699
+ var _r = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1781
1700
  w.init(e, t);
1782
1701
  let n = x.memoizer;
1783
1702
  n?.attach(e), e._zod.parse = (r, i) => {
@@ -1817,8 +1736,8 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1817
1736
  issues: []
1818
1737
  }, i);
1819
1738
  u instanceof Promise ? o.push(u.then((e) => {
1820
- e.issues.length && r.issues.push(..._(n, e.issues)), r.value[l] = e.value;
1821
- })) : (u.issues.length && r.issues.push(..._(n, u.issues)), r.value[l] = u.value);
1739
+ e.issues.length && r.issues.push(...ge(n, e.issues)), r.value[l] = e.value;
1740
+ })) : (u.issues.length && r.issues.push(...ge(n, u.issues)), r.value[l] = u.value);
1822
1741
  }
1823
1742
  let l;
1824
1743
  for (let e in a) if (!c.has(e)) {
@@ -1870,8 +1789,8 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1870
1789
  issues: []
1871
1790
  }, i);
1872
1791
  d instanceof Promise ? o.push(d.then((e) => {
1873
- e.issues.length && r.issues.push(..._(n, e.issues)), r.value[u] = e.value;
1874
- })) : (d.issues.length && r.issues.push(..._(n, d.issues)), r.value[u] = d.value);
1792
+ e.issues.length && r.issues.push(...ge(n, e.issues)), r.value[u] = e.value;
1793
+ })) : (d.issues.length && r.issues.push(...ge(n, d.issues)), r.value[u] = d.value);
1875
1794
  }
1876
1795
  c && c.length > 0 && r.issues.push({
1877
1796
  code: "unrecognized_keys",
@@ -1883,7 +1802,7 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1883
1802
  }
1884
1803
  return o.length ? Promise.all(o).then(() => r) : r;
1885
1804
  };
1886
- }), Sr = /*@__PURE__*/ b("$ZodEnum", (t, n) => {
1805
+ }), vr = /*@__PURE__*/ b("$ZodEnum", (t, n) => {
1887
1806
  w.init(t, n);
1888
1807
  let r = e(n.entries), i = new Set(r);
1889
1808
  t._zod.values = i;
@@ -1897,7 +1816,7 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1897
1816
  inst: t
1898
1817
  }), e;
1899
1818
  };
1900
- }), Cr = /*@__PURE__*/ b("$ZodLiteral", (e, t) => {
1819
+ }), yr = /*@__PURE__*/ b("$ZodLiteral", (e, t) => {
1901
1820
  w.init(e, t);
1902
1821
  let n = new Set(t.values);
1903
1822
  e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? ie(e) : e ? ie(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
@@ -1909,7 +1828,7 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1909
1828
  inst: e
1910
1829
  }), r;
1911
1830
  };
1912
- }), wr = /*@__PURE__*/ b("$ZodTransform", (e, t) => {
1831
+ }), br = /*@__PURE__*/ b("$ZodTransform", (e, t) => {
1913
1832
  w.init(e, t), e._zod.optin = "optional", x.memoizer?.guard(e), e._zod.parse = (n, r) => {
1914
1833
  if (r.direction === "backward") throw new Be(e.constructor.name);
1915
1834
  let i = t.transform(n.value, n);
@@ -1918,10 +1837,10 @@ var xr = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
1918
1837
  return n.value = i, n;
1919
1838
  };
1920
1839
  });
1921
- function Tr(e, t) {
1840
+ function xr(e, t) {
1922
1841
  return e.value = t.issues.length ? void 0 : t.value, e;
1923
1842
  }
1924
- var Er = /*@__PURE__*/ b("$ZodOptional", (e, t) => {
1843
+ var Sr = /*@__PURE__*/ b("$ZodOptional", (e, t) => {
1925
1844
  w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", y(e, "values", (e) => {
1926
1845
  let t = e.def.innerType._zod.values;
1927
1846
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
@@ -1935,40 +1854,40 @@ var Er = /*@__PURE__*/ b("$ZodOptional", (e, t) => {
1935
1854
  value: e.value,
1936
1855
  issues: []
1937
1856
  }, n);
1938
- return r instanceof Promise ? r.then((t) => Tr(e, t)) : Tr(e, r);
1857
+ return r instanceof Promise ? r.then((t) => xr(e, t)) : xr(e, r);
1939
1858
  }
1940
1859
  return t.innerType._zod.run(e, n);
1941
1860
  };
1942
- }), Dr = /*@__PURE__*/ b("$ZodExactOptional", (e, t) => {
1943
- Er.init(e, t), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1944
- }), Or = /*@__PURE__*/ b("$ZodNullable", (e, t) => {
1861
+ }), Cr = /*@__PURE__*/ b("$ZodExactOptional", (e, t) => {
1862
+ Sr.init(e, t), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1863
+ }), wr = /*@__PURE__*/ b("$ZodNullable", (e, t) => {
1945
1864
  w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "pattern", (e) => {
1946
1865
  let t = e.def.innerType._zod.pattern;
1947
1866
  return t ? RegExp(`^(${a(t.source)}|null)$`) : void 0;
1948
1867
  }), y(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1949
- }), kr = /*@__PURE__*/ b("$ZodDefault", (e, t) => {
1868
+ }), Tr = /*@__PURE__*/ b("$ZodDefault", (e, t) => {
1950
1869
  w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1951
1870
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1952
1871
  if (e.value === void 0) return e.value = t.defaultValue, e;
1953
1872
  let r = t.innerType._zod.run(e, n);
1954
- return r instanceof Promise ? r.then((e) => Ar(e, t)) : Ar(r, t);
1873
+ return r instanceof Promise ? r.then((e) => Er(e, t)) : Er(r, t);
1955
1874
  };
1956
1875
  });
1957
- function Ar(e, t) {
1876
+ function Er(e, t) {
1958
1877
  return e.value === void 0 && (e.value = t.defaultValue), e;
1959
1878
  }
1960
- var jr = /*@__PURE__*/ b("$ZodPrefault", (e, t) => {
1879
+ var Dr = /*@__PURE__*/ b("$ZodPrefault", (e, t) => {
1961
1880
  w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.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));
1962
- }), Mr = /*@__PURE__*/ b("$ZodNonOptional", (e, t) => {
1881
+ }), Or = /*@__PURE__*/ b("$ZodNonOptional", (e, t) => {
1963
1882
  w.init(e, t), y(e, "values", (e) => {
1964
1883
  let t = e.def.innerType._zod.values;
1965
1884
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
1966
1885
  }), e._zod.parse = (n, r) => {
1967
1886
  let i = t.innerType._zod.run(n, r);
1968
- return i instanceof Promise ? i.then((t) => Nr(t, e)) : Nr(i, e);
1887
+ return i instanceof Promise ? i.then((t) => kr(t, e)) : kr(i, e);
1969
1888
  };
1970
1889
  });
1971
- function Nr(e, t) {
1890
+ function kr(e, t) {
1972
1891
  return !e.issues.length && e.value === void 0 && e.issues.push({
1973
1892
  code: "invalid_type",
1974
1893
  expected: "nonoptional",
@@ -1976,7 +1895,7 @@ function Nr(e, t) {
1976
1895
  inst: t
1977
1896
  }), e;
1978
1897
  }
1979
- function Pr(e, t, n, r) {
1898
+ function Ar(e, t, n, r) {
1980
1899
  return t.issues.length ? (e.value = n.catchValue({
1981
1900
  ...t,
1982
1901
  value: e.value,
@@ -1984,54 +1903,54 @@ function Pr(e, t, n, r) {
1984
1903
  input: e.value
1985
1904
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
1986
1905
  }
1987
- var Fr = /*@__PURE__*/ b("$ZodCatch", (e, t) => {
1906
+ var jr = /*@__PURE__*/ b("$ZodCatch", (e, t) => {
1988
1907
  w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
1989
1908
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1990
1909
  let r = t.innerType._zod.run({
1991
1910
  value: e.value,
1992
1911
  issues: []
1993
1912
  }, n);
1994
- return r instanceof Promise ? r.then((r) => Pr(e, r, t, n)) : Pr(e, r, t, n);
1913
+ return r instanceof Promise ? r.then((r) => Ar(e, r, t, n)) : Ar(e, r, t, n);
1995
1914
  };
1996
- }), Ir = /*@__PURE__*/ b("$ZodPipe", (e, t) => {
1915
+ }), Mr = /*@__PURE__*/ b("$ZodPipe", (e, t) => {
1997
1916
  w.init(e, t), y(e, "values", (e) => e.def.in._zod.values), y(e, "optin", (e) => e.def.in._zod.optin), y(e, "optout", (e) => e.def.out._zod.optout), y(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
1998
1917
  if (n.direction === "backward") {
1999
1918
  let r = t.out._zod.run(e, n);
2000
- return r instanceof Promise ? r.then((e) => Lr(e, t.in, n)) : Lr(r, t.in, n);
1919
+ return r instanceof Promise ? r.then((e) => Nr(e, t.in, n)) : Nr(r, t.in, n);
2001
1920
  }
2002
1921
  let r = t.in._zod.run(e, n);
2003
- return r instanceof Promise ? r.then((e) => Lr(e, t.out, n)) : Lr(r, t.out, n);
1922
+ return r instanceof Promise ? r.then((e) => Nr(e, t.out, n)) : Nr(r, t.out, n);
2004
1923
  };
2005
1924
  });
2006
- function Lr(e, t, n) {
1925
+ function Nr(e, t, n) {
2007
1926
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
2008
1927
  value: e.value,
2009
1928
  issues: e.issues
2010
1929
  }, n);
2011
1930
  }
2012
- var Rr = /*@__PURE__*/ b("$ZodReadonly", (e, t) => {
1931
+ var Pr = /*@__PURE__*/ b("$ZodReadonly", (e, t) => {
2013
1932
  w.init(e, t), y(e, "propValues", (e) => e.def.innerType._zod.propValues), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "optin", (e) => e.def.innerType?._zod?.optin), y(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
2014
1933
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2015
1934
  let r = t.innerType._zod.run(e, n);
2016
- return r instanceof Promise ? r.then(zr) : zr(r);
1935
+ return r instanceof Promise ? r.then(Fr) : Fr(r);
2017
1936
  };
2018
1937
  });
2019
- function zr(e) {
1938
+ function Fr(e) {
2020
1939
  return e.memo || (e.value = Object.freeze(e.value)), e;
2021
1940
  }
2022
- var Br = /*@__PURE__*/ b("$ZodLazy", (e, t) => {
1941
+ var Ir = /*@__PURE__*/ b("$ZodLazy", (e, t) => {
2023
1942
  w.init(e, t), c(e._zod, "innerType", () => {
2024
1943
  let e = t;
2025
1944
  return e._cachedInner ||= t.getter(), e._cachedInner;
2026
1945
  }), y(e, "pattern", (e) => e.innerType?._zod?.pattern), y(e, "propValues", (e) => e.innerType?._zod?.propValues), y(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), y(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
2027
- }), Vr = /*@__PURE__*/ b("$ZodCustom", (e, t) => {
1946
+ }), Lr = /*@__PURE__*/ b("$ZodCustom", (e, t) => {
2028
1947
  C.init(e, t), w.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
2029
1948
  let r = n.value, i = t.fn(r);
2030
- if (i instanceof Promise) return i.then((t) => Hr(t, n, r, e));
2031
- Hr(i, n, r, e);
1949
+ if (i instanceof Promise) return i.then((t) => Rr(t, n, r, e));
1950
+ Rr(i, n, r, e);
2032
1951
  };
2033
1952
  });
2034
- function Hr(e, t, n, r) {
1953
+ function Rr(e, t, n, r) {
2035
1954
  if (!e) {
2036
1955
  let e = {
2037
1956
  code: "custom",
@@ -2045,25 +1964,25 @@ function Hr(e, t, n, r) {
2045
1964
  }
2046
1965
  //#endregion
2047
1966
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
2048
- var Ur = class extends Error {
1967
+ var zr = class extends Error {
2049
1968
  constructor() {
2050
1969
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
2051
1970
  }
2052
- }, Wr = "~memo", Gr = [];
2053
- function Kr(e) {
1971
+ }, Br = "~memo", Vr = [];
1972
+ function Hr(e) {
2054
1973
  return e.map((e) => e.path ? {
2055
1974
  ...e,
2056
1975
  path: e.path.slice()
2057
1976
  } : { ...e });
2058
1977
  }
2059
- var qr = /*@__PURE__*/ new WeakMap();
2060
- function Jr(e, t) {
2061
- let n = qr.get(e);
1978
+ var Ur = /*@__PURE__*/ new WeakMap();
1979
+ function Wr(e, t) {
1980
+ let n = Ur.get(e);
2062
1981
  if (n !== void 0) return n;
2063
1982
  if (t.has(e)) return !0;
2064
1983
  t.add(e);
2065
1984
  let r = !1, i = (e) => {
2066
- !r && e?._zod && Jr(e, t) && (r = !0);
1985
+ !r && e?._zod && Wr(e, t) && (r = !0);
2067
1986
  }, a = e._zod.def;
2068
1987
  switch (a.type) {
2069
1988
  case "object":
@@ -2140,28 +2059,28 @@ function Jr(e, t) {
2140
2059
  }
2141
2060
  }
2142
2061
  }
2143
- return t.delete(e), qr.set(e, r), r;
2062
+ return t.delete(e), Ur.set(e, r), r;
2144
2063
  }
2145
- function Yr(e, t) {
2064
+ function Gr(e, t) {
2146
2065
  let n = e.buckets.get(t);
2147
2066
  return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2148
2067
  }
2149
- var Xr, Zr = [], Qr = {
2068
+ var Kr, qr = [], Jr = {
2150
2069
  alloc(e, t, n) {
2151
- let r = Xr;
2070
+ let r = Kr;
2152
2071
  if (!r) return n;
2153
- Xr = void 0;
2072
+ Kr = void 0;
2154
2073
  let i = {
2155
2074
  value: n,
2156
2075
  issues: null
2157
2076
  };
2158
- return r.set(t.value, i), Zr.push(i), n;
2077
+ return r.set(t.value, i), qr.push(i), n;
2159
2078
  },
2160
2079
  guard(e) {
2161
2080
  var t;
2162
2081
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2163
2082
  let t = e._zod.parse, n = (e, n) => {
2164
- if (n.direction !== "backward" && ei(n, e.value)) throw new Ur();
2083
+ if (n.direction !== "backward" && Xr(n, e.value)) throw new zr();
2165
2084
  return t(e, n);
2166
2085
  };
2167
2086
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -2172,38 +2091,38 @@ var Xr, Zr = [], Qr = {
2172
2091
  let n, r, i;
2173
2092
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2174
2093
  let t = e._zod.parse, a = (o, s) => {
2175
- if (n === void 0 && (n = Jr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2094
+ if (n === void 0 && (n = Wr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2176
2095
  let c = o.value;
2177
2096
  if (typeof c != "object" || !c) return t(o, s);
2178
- let l = s[Wr];
2097
+ let l = s[Br];
2179
2098
  l || (l = {
2180
2099
  buckets: /* @__PURE__ */ new Map(),
2181
2100
  backEdges: void 0
2182
- }, s[Wr] = l);
2101
+ }, s[Br] = l);
2183
2102
  let u;
2184
- r === s ? u = i : (u = Yr(l, e), r = s, i = u);
2103
+ r === s ? u = i : (u = Gr(l, e), r = s, i = u);
2185
2104
  let d = u.get(c);
2186
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Kr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2187
- Xr = u;
2188
- let f = Zr.length, p = t(o, s);
2189
- Xr = void 0;
2190
- let m = Zr.length > f ? Zr.pop() : void 0;
2191
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Kr(e.issues) : Gr), e)) : (m && (m.issues = p.issues.length ? Kr(p.issues) : Gr), p);
2105
+ if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Hr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2106
+ Kr = u;
2107
+ let f = qr.length, p = t(o, s);
2108
+ Kr = void 0;
2109
+ let m = qr.length > f ? qr.pop() : void 0;
2110
+ return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Hr(e.issues) : Vr), e)) : (m && (m.issues = p.issues.length ? Hr(p.issues) : Vr), p);
2192
2111
  };
2193
2112
  e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2194
2113
  });
2195
2114
  }
2196
2115
  };
2197
- function $r() {
2198
- return Qr;
2116
+ function Yr() {
2117
+ return Jr;
2199
2118
  }
2200
- function ei(e, t) {
2201
- let n = e[Wr]?.backEdges;
2119
+ function Xr(e, t) {
2120
+ let n = e[Br]?.backEdges;
2202
2121
  return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2203
2122
  }
2204
2123
  //#endregion
2205
2124
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
2206
- var ti = () => {
2125
+ var Zr = () => {
2207
2126
  let e = {
2208
2127
  string: {
2209
2128
  unit: "characters",
@@ -2289,12 +2208,12 @@ var ti = () => {
2289
2208
  }
2290
2209
  };
2291
2210
  };
2292
- function ni() {
2293
- return { localeError: ti() };
2211
+ function Qr() {
2212
+ return { localeError: Zr() };
2294
2213
  }
2295
2214
  //#endregion
2296
2215
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
2297
- var ri, ii = class {
2216
+ var $r, ei = class {
2298
2217
  constructor() {
2299
2218
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2300
2219
  }
@@ -2326,22 +2245,22 @@ var ri, ii = class {
2326
2245
  return this._map.has(e);
2327
2246
  }
2328
2247
  };
2329
- function ai() {
2330
- return new ii();
2248
+ function ti() {
2249
+ return new ei();
2331
2250
  }
2332
- (ri = globalThis).__zod_globalRegistry ?? (ri.__zod_globalRegistry = ai());
2333
- var oi = globalThis.__zod_globalRegistry;
2251
+ ($r = globalThis).__zod_globalRegistry ?? ($r.__zod_globalRegistry = ti());
2252
+ var ni = globalThis.__zod_globalRegistry;
2334
2253
  //#endregion
2335
2254
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
2336
2255
  // @__NO_SIDE_EFFECTS__
2337
- function si(e, t) {
2256
+ function ri(e, t) {
2338
2257
  return new e({
2339
2258
  type: "string",
2340
2259
  ...g(t)
2341
2260
  });
2342
2261
  }
2343
2262
  // @__NO_SIDE_EFFECTS__
2344
- function ci(e, t) {
2263
+ function ii(e, t) {
2345
2264
  return new e({
2346
2265
  type: "string",
2347
2266
  format: "email",
@@ -2351,7 +2270,7 @@ function ci(e, t) {
2351
2270
  });
2352
2271
  }
2353
2272
  // @__NO_SIDE_EFFECTS__
2354
- function li(e, t) {
2273
+ function ai(e, t) {
2355
2274
  return new e({
2356
2275
  type: "string",
2357
2276
  format: "guid",
@@ -2361,7 +2280,7 @@ function li(e, t) {
2361
2280
  });
2362
2281
  }
2363
2282
  // @__NO_SIDE_EFFECTS__
2364
- function ui(e, t) {
2283
+ function oi(e, t) {
2365
2284
  return new e({
2366
2285
  type: "string",
2367
2286
  format: "uuid",
@@ -2371,7 +2290,7 @@ function ui(e, t) {
2371
2290
  });
2372
2291
  }
2373
2292
  // @__NO_SIDE_EFFECTS__
2374
- function di(e, t) {
2293
+ function si(e, t) {
2375
2294
  return new e({
2376
2295
  type: "string",
2377
2296
  format: "uuid",
@@ -2382,7 +2301,7 @@ function di(e, t) {
2382
2301
  });
2383
2302
  }
2384
2303
  // @__NO_SIDE_EFFECTS__
2385
- function fi(e, t) {
2304
+ function ci(e, t) {
2386
2305
  return new e({
2387
2306
  type: "string",
2388
2307
  format: "uuid",
@@ -2393,7 +2312,7 @@ function fi(e, t) {
2393
2312
  });
2394
2313
  }
2395
2314
  // @__NO_SIDE_EFFECTS__
2396
- function pi(e, t) {
2315
+ function li(e, t) {
2397
2316
  return new e({
2398
2317
  type: "string",
2399
2318
  format: "uuid",
@@ -2404,7 +2323,7 @@ function pi(e, t) {
2404
2323
  });
2405
2324
  }
2406
2325
  // @__NO_SIDE_EFFECTS__
2407
- function mi(e, t) {
2326
+ function ui(e, t) {
2408
2327
  return new e({
2409
2328
  type: "string",
2410
2329
  format: "url",
@@ -2414,7 +2333,7 @@ function mi(e, t) {
2414
2333
  });
2415
2334
  }
2416
2335
  // @__NO_SIDE_EFFECTS__
2417
- function hi(e, t) {
2336
+ function di(e, t) {
2418
2337
  return new e({
2419
2338
  type: "string",
2420
2339
  format: "emoji",
@@ -2424,7 +2343,7 @@ function hi(e, t) {
2424
2343
  });
2425
2344
  }
2426
2345
  // @__NO_SIDE_EFFECTS__
2427
- function gi(e, t) {
2346
+ function fi(e, t) {
2428
2347
  return new e({
2429
2348
  type: "string",
2430
2349
  format: "nanoid",
@@ -2434,7 +2353,7 @@ function gi(e, t) {
2434
2353
  });
2435
2354
  }
2436
2355
  // @__NO_SIDE_EFFECTS__
2437
- function _i(e, t) {
2356
+ function pi(e, t) {
2438
2357
  return new e({
2439
2358
  type: "string",
2440
2359
  format: "cuid",
@@ -2444,7 +2363,7 @@ function _i(e, t) {
2444
2363
  });
2445
2364
  }
2446
2365
  // @__NO_SIDE_EFFECTS__
2447
- function vi(e, t) {
2366
+ function mi(e, t) {
2448
2367
  return new e({
2449
2368
  type: "string",
2450
2369
  format: "cuid2",
@@ -2454,7 +2373,7 @@ function vi(e, t) {
2454
2373
  });
2455
2374
  }
2456
2375
  // @__NO_SIDE_EFFECTS__
2457
- function yi(e, t) {
2376
+ function hi(e, t) {
2458
2377
  return new e({
2459
2378
  type: "string",
2460
2379
  format: "ulid",
@@ -2464,7 +2383,7 @@ function yi(e, t) {
2464
2383
  });
2465
2384
  }
2466
2385
  // @__NO_SIDE_EFFECTS__
2467
- function bi(e, t) {
2386
+ function gi(e, t) {
2468
2387
  return new e({
2469
2388
  type: "string",
2470
2389
  format: "xid",
@@ -2474,7 +2393,7 @@ function bi(e, t) {
2474
2393
  });
2475
2394
  }
2476
2395
  // @__NO_SIDE_EFFECTS__
2477
- function xi(e, t) {
2396
+ function _i(e, t) {
2478
2397
  return new e({
2479
2398
  type: "string",
2480
2399
  format: "ksuid",
@@ -2484,7 +2403,7 @@ function xi(e, t) {
2484
2403
  });
2485
2404
  }
2486
2405
  // @__NO_SIDE_EFFECTS__
2487
- function Si(e, t) {
2406
+ function vi(e, t) {
2488
2407
  return new e({
2489
2408
  type: "string",
2490
2409
  format: "ipv4",
@@ -2494,7 +2413,7 @@ function Si(e, t) {
2494
2413
  });
2495
2414
  }
2496
2415
  // @__NO_SIDE_EFFECTS__
2497
- function Ci(e, t) {
2416
+ function yi(e, t) {
2498
2417
  return new e({
2499
2418
  type: "string",
2500
2419
  format: "ipv6",
@@ -2504,7 +2423,7 @@ function Ci(e, t) {
2504
2423
  });
2505
2424
  }
2506
2425
  // @__NO_SIDE_EFFECTS__
2507
- function wi(e, t) {
2426
+ function bi(e, t) {
2508
2427
  return new e({
2509
2428
  type: "string",
2510
2429
  format: "cidrv4",
@@ -2514,7 +2433,7 @@ function wi(e, t) {
2514
2433
  });
2515
2434
  }
2516
2435
  // @__NO_SIDE_EFFECTS__
2517
- function Ti(e, t) {
2436
+ function xi(e, t) {
2518
2437
  return new e({
2519
2438
  type: "string",
2520
2439
  format: "cidrv6",
@@ -2524,7 +2443,7 @@ function Ti(e, t) {
2524
2443
  });
2525
2444
  }
2526
2445
  // @__NO_SIDE_EFFECTS__
2527
- function Ei(e, t) {
2446
+ function Si(e, t) {
2528
2447
  return new e({
2529
2448
  type: "string",
2530
2449
  format: "base64",
@@ -2534,7 +2453,7 @@ function Ei(e, t) {
2534
2453
  });
2535
2454
  }
2536
2455
  // @__NO_SIDE_EFFECTS__
2537
- function Di(e, t) {
2456
+ function Ci(e, t) {
2538
2457
  return new e({
2539
2458
  type: "string",
2540
2459
  format: "base64url",
@@ -2544,7 +2463,7 @@ function Di(e, t) {
2544
2463
  });
2545
2464
  }
2546
2465
  // @__NO_SIDE_EFFECTS__
2547
- function Oi(e, t) {
2466
+ function wi(e, t) {
2548
2467
  return new e({
2549
2468
  type: "string",
2550
2469
  format: "e164",
@@ -2554,7 +2473,7 @@ function Oi(e, t) {
2554
2473
  });
2555
2474
  }
2556
2475
  // @__NO_SIDE_EFFECTS__
2557
- function ki(e, t) {
2476
+ function Ti(e, t) {
2558
2477
  return new e({
2559
2478
  type: "string",
2560
2479
  format: "jwt",
@@ -2564,7 +2483,7 @@ function ki(e, t) {
2564
2483
  });
2565
2484
  }
2566
2485
  // @__NO_SIDE_EFFECTS__
2567
- function Ai(e, t) {
2486
+ function Ei(e, t) {
2568
2487
  return new e({
2569
2488
  type: "string",
2570
2489
  format: "datetime",
@@ -2576,7 +2495,7 @@ function Ai(e, t) {
2576
2495
  });
2577
2496
  }
2578
2497
  // @__NO_SIDE_EFFECTS__
2579
- function ji(e, t) {
2498
+ function Di(e, t) {
2580
2499
  return new e({
2581
2500
  type: "string",
2582
2501
  format: "date",
@@ -2585,7 +2504,7 @@ function ji(e, t) {
2585
2504
  });
2586
2505
  }
2587
2506
  // @__NO_SIDE_EFFECTS__
2588
- function Mi(e, t) {
2507
+ function Oi(e, t) {
2589
2508
  return new e({
2590
2509
  type: "string",
2591
2510
  format: "time",
@@ -2595,7 +2514,7 @@ function Mi(e, t) {
2595
2514
  });
2596
2515
  }
2597
2516
  // @__NO_SIDE_EFFECTS__
2598
- function Ni(e, t) {
2517
+ function ki(e, t) {
2599
2518
  return new e({
2600
2519
  type: "string",
2601
2520
  format: "duration",
@@ -2604,7 +2523,7 @@ function Ni(e, t) {
2604
2523
  });
2605
2524
  }
2606
2525
  // @__NO_SIDE_EFFECTS__
2607
- function Pi(e, t) {
2526
+ function Ai(e, t) {
2608
2527
  return new e({
2609
2528
  type: "number",
2610
2529
  checks: [],
@@ -2612,7 +2531,7 @@ function Pi(e, t) {
2612
2531
  });
2613
2532
  }
2614
2533
  // @__NO_SIDE_EFFECTS__
2615
- function Fi(e, t) {
2534
+ function ji(e, t) {
2616
2535
  return new e({
2617
2536
  type: "number",
2618
2537
  check: "number_format",
@@ -2622,32 +2541,32 @@ function Fi(e, t) {
2622
2541
  });
2623
2542
  }
2624
2543
  // @__NO_SIDE_EFFECTS__
2625
- function Ii(e, t) {
2544
+ function Mi(e, t) {
2626
2545
  return new e({
2627
2546
  type: "boolean",
2628
2547
  ...g(t)
2629
2548
  });
2630
2549
  }
2631
2550
  // @__NO_SIDE_EFFECTS__
2632
- function Li(e, t) {
2551
+ function Ni(e, t) {
2633
2552
  return new e({
2634
2553
  type: "null",
2635
2554
  ...g(t)
2636
2555
  });
2637
2556
  }
2638
2557
  // @__NO_SIDE_EFFECTS__
2639
- function Ri(e) {
2558
+ function Pi(e) {
2640
2559
  return new e({ type: "unknown" });
2641
2560
  }
2642
2561
  // @__NO_SIDE_EFFECTS__
2643
- function zi(e, t) {
2562
+ function Fi(e, t) {
2644
2563
  return new e({
2645
2564
  type: "never",
2646
2565
  ...g(t)
2647
2566
  });
2648
2567
  }
2649
2568
  // @__NO_SIDE_EFFECTS__
2650
- function Bi(e, t) {
2569
+ function Ii(e, t) {
2651
2570
  return new Xt({
2652
2571
  check: "less_than",
2653
2572
  ...g(t),
@@ -2656,7 +2575,7 @@ function Bi(e, t) {
2656
2575
  });
2657
2576
  }
2658
2577
  // @__NO_SIDE_EFFECTS__
2659
- function Vi(e, t) {
2578
+ function Li(e, t) {
2660
2579
  return new Xt({
2661
2580
  check: "less_than",
2662
2581
  ...g(t),
@@ -2665,7 +2584,7 @@ function Vi(e, t) {
2665
2584
  });
2666
2585
  }
2667
2586
  // @__NO_SIDE_EFFECTS__
2668
- function Hi(e, t) {
2587
+ function Ri(e, t) {
2669
2588
  return new Zt({
2670
2589
  check: "greater_than",
2671
2590
  ...g(t),
@@ -2674,7 +2593,7 @@ function Hi(e, t) {
2674
2593
  });
2675
2594
  }
2676
2595
  // @__NO_SIDE_EFFECTS__
2677
- function Ui(e, t) {
2596
+ function zi(e, t) {
2678
2597
  return new Zt({
2679
2598
  check: "greater_than",
2680
2599
  ...g(t),
@@ -2683,7 +2602,7 @@ function Ui(e, t) {
2683
2602
  });
2684
2603
  }
2685
2604
  // @__NO_SIDE_EFFECTS__
2686
- function Wi(e, t) {
2605
+ function Bi(e, t) {
2687
2606
  return new Qt({
2688
2607
  check: "multiple_of",
2689
2608
  ...g(t),
@@ -2691,7 +2610,7 @@ function Wi(e, t) {
2691
2610
  });
2692
2611
  }
2693
2612
  // @__NO_SIDE_EFFECTS__
2694
- function Gi(e, t) {
2613
+ function Vi(e, t) {
2695
2614
  return new en({
2696
2615
  check: "max_length",
2697
2616
  ...g(t),
@@ -2699,7 +2618,7 @@ function Gi(e, t) {
2699
2618
  });
2700
2619
  }
2701
2620
  // @__NO_SIDE_EFFECTS__
2702
- function Ki(e, t) {
2621
+ function Hi(e, t) {
2703
2622
  return new tn({
2704
2623
  check: "min_length",
2705
2624
  ...g(t),
@@ -2707,7 +2626,7 @@ function Ki(e, t) {
2707
2626
  });
2708
2627
  }
2709
2628
  // @__NO_SIDE_EFFECTS__
2710
- function qi(e, t) {
2629
+ function Ui(e, t) {
2711
2630
  return new nn({
2712
2631
  check: "length_equals",
2713
2632
  ...g(t),
@@ -2715,7 +2634,7 @@ function qi(e, t) {
2715
2634
  });
2716
2635
  }
2717
2636
  // @__NO_SIDE_EFFECTS__
2718
- function Ji(e, t) {
2637
+ function Wi(e, t) {
2719
2638
  return new an({
2720
2639
  check: "string_format",
2721
2640
  format: "regex",
@@ -2724,7 +2643,7 @@ function Ji(e, t) {
2724
2643
  });
2725
2644
  }
2726
2645
  // @__NO_SIDE_EFFECTS__
2727
- function Yi(e) {
2646
+ function Gi(e) {
2728
2647
  return new on({
2729
2648
  check: "string_format",
2730
2649
  format: "lowercase",
@@ -2732,7 +2651,7 @@ function Yi(e) {
2732
2651
  });
2733
2652
  }
2734
2653
  // @__NO_SIDE_EFFECTS__
2735
- function Xi(e) {
2654
+ function Ki(e) {
2736
2655
  return new sn({
2737
2656
  check: "string_format",
2738
2657
  format: "uppercase",
@@ -2740,7 +2659,7 @@ function Xi(e) {
2740
2659
  });
2741
2660
  }
2742
2661
  // @__NO_SIDE_EFFECTS__
2743
- function Zi(e, t) {
2662
+ function qi(e, t) {
2744
2663
  return new cn({
2745
2664
  check: "string_format",
2746
2665
  format: "includes",
@@ -2749,7 +2668,7 @@ function Zi(e, t) {
2749
2668
  });
2750
2669
  }
2751
2670
  // @__NO_SIDE_EFFECTS__
2752
- function Qi(e, t) {
2671
+ function Ji(e, t) {
2753
2672
  return new ln({
2754
2673
  check: "string_format",
2755
2674
  format: "starts_with",
@@ -2758,7 +2677,7 @@ function Qi(e, t) {
2758
2677
  });
2759
2678
  }
2760
2679
  // @__NO_SIDE_EFFECTS__
2761
- function $i(e, t) {
2680
+ function Yi(e, t) {
2762
2681
  return new un({
2763
2682
  check: "string_format",
2764
2683
  format: "ends_with",
@@ -2774,27 +2693,27 @@ function E(e) {
2774
2693
  });
2775
2694
  }
2776
2695
  // @__NO_SIDE_EFFECTS__
2777
- function ea(e) {
2696
+ function Xi(e) {
2778
2697
  return /* @__PURE__ */ E((t) => t.normalize(e));
2779
2698
  }
2780
2699
  // @__NO_SIDE_EFFECTS__
2781
- function ta() {
2700
+ function Zi() {
2782
2701
  return /* @__PURE__ */ E((e) => e.trim());
2783
2702
  }
2784
2703
  // @__NO_SIDE_EFFECTS__
2785
- function na() {
2704
+ function Qi() {
2786
2705
  return /* @__PURE__ */ E((e) => e.toLowerCase());
2787
2706
  }
2788
2707
  // @__NO_SIDE_EFFECTS__
2789
- function ra() {
2708
+ function $i() {
2790
2709
  return /* @__PURE__ */ E((e) => e.toUpperCase());
2791
2710
  }
2792
2711
  // @__NO_SIDE_EFFECTS__
2793
- function ia() {
2712
+ function ea() {
2794
2713
  return /* @__PURE__ */ E((e) => f(e));
2795
2714
  }
2796
2715
  // @__NO_SIDE_EFFECTS__
2797
- function aa(e, t, n) {
2716
+ function ta(e, t, n) {
2798
2717
  return new e({
2799
2718
  type: "array",
2800
2719
  element: t,
@@ -2802,7 +2721,7 @@ function aa(e, t, n) {
2802
2721
  });
2803
2722
  }
2804
2723
  // @__NO_SIDE_EFFECTS__
2805
- function oa(e, t, n) {
2724
+ function na(e, t, n) {
2806
2725
  return new e({
2807
2726
  type: "custom",
2808
2727
  check: "custom",
@@ -2811,8 +2730,8 @@ function oa(e, t, n) {
2811
2730
  });
2812
2731
  }
2813
2732
  // @__NO_SIDE_EFFECTS__
2814
- function sa(e, t) {
2815
- let n = /* @__PURE__ */ ca((t) => (t.addIssue = (e) => {
2733
+ function ra(e, t) {
2734
+ let n = /* @__PURE__ */ ia((t) => (t.addIssue = (e) => {
2816
2735
  if (typeof e == "string") t.issues.push(Ce(e, t.value, n._zod.def));
2817
2736
  else {
2818
2737
  let r = e;
@@ -2822,7 +2741,7 @@ function sa(e, t) {
2822
2741
  return n;
2823
2742
  }
2824
2743
  // @__NO_SIDE_EFFECTS__
2825
- function ca(e, t) {
2744
+ function ia(e, t) {
2826
2745
  let n = new C({
2827
2746
  check: "custom",
2828
2747
  ...g(t)
@@ -2831,15 +2750,15 @@ function ca(e, t) {
2831
2750
  }
2832
2751
  //#endregion
2833
2752
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2834
- function la(e, ...t) {
2753
+ function aa(e, ...t) {
2835
2754
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && l(e, t, n[t]);
2836
2755
  return e;
2837
2756
  }
2838
- function ua(e) {
2757
+ function oa(e) {
2839
2758
  let t = e?.target ?? "draft-2020-12";
2840
2759
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2841
2760
  processors: e.processors ?? {},
2842
- metadataRegistry: e?.metadata ?? oi,
2761
+ metadataRegistry: e?.metadata ?? ni,
2843
2762
  target: t,
2844
2763
  unrepresentable: e?.unrepresentable ?? "throw",
2845
2764
  override: e?.override ?? (() => {}),
@@ -2897,12 +2816,12 @@ function O(e, t, n = {
2897
2816
  a && (o.ref ||= a, O(a, t, r), t.seen.get(a).isParent = !0);
2898
2817
  }
2899
2818
  let c = t.metadataRegistry.get(e);
2900
- return c && la(o.schema, c), t.io === "input" && k(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2819
+ return c && aa(o.schema, c), t.io === "input" && k(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2901
2820
  }
2902
- function da(e) {
2821
+ function sa(e) {
2903
2822
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
2904
2823
  }
2905
- function fa(e, t) {
2824
+ function ca(e, t) {
2906
2825
  let n = e.seen.get(t);
2907
2826
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2908
2827
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -2923,7 +2842,7 @@ function fa(e, t) {
2923
2842
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
2924
2843
  return t[1].defId = a, {
2925
2844
  defId: a,
2926
- ref: `${i("__shared")}#/${r}/${da(a)}`
2845
+ ref: `${i("__shared")}#/${r}/${sa(a)}`
2927
2846
  };
2928
2847
  }
2929
2848
  let i = `#/${r}/`;
@@ -2931,7 +2850,7 @@ function fa(e, t) {
2931
2850
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
2932
2851
  return {
2933
2852
  defId: a,
2934
- ref: i + da(a)
2853
+ ref: i + sa(a)
2935
2854
  };
2936
2855
  }, a = (e) => {
2937
2856
  if (e[1].schema.$ref) return;
@@ -2975,13 +2894,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2975
2894
  }
2976
2895
  e.external && (e.sharedDefsExtractedFor = e.external);
2977
2896
  }
2978
- function pa(e) {
2897
+ function la(e) {
2979
2898
  let t = e.anyOf;
2980
2899
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
2981
2900
  let n = [];
2982
2901
  for (let e of t) {
2983
2902
  if (!e || typeof e != "object") return;
2984
- pa(e);
2903
+ la(e);
2985
2904
  let t = Object.keys(e);
2986
2905
  if (t.length !== 1 || t[0] !== "type") return;
2987
2906
  let r = e.type;
@@ -2992,21 +2911,21 @@ function pa(e) {
2992
2911
  }
2993
2912
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
2994
2913
  }
2995
- var ma = /* @__PURE__ */ new Set([
2914
+ var ua = /* @__PURE__ */ new Set([
2996
2915
  "type",
2997
2916
  "properties",
2998
2917
  "required",
2999
2918
  "additionalProperties"
3000
- ]), ha = ["oneOf", "anyOf"];
3001
- function ga(e) {
2919
+ ]), da = ["oneOf", "anyOf"];
2920
+ function fa(e) {
3002
2921
  let t = e.additionalProperties;
3003
2922
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
3004
2923
  }
3005
- function _a(e) {
2924
+ function pa(e) {
3006
2925
  let t = [];
3007
2926
  for (let n of e) {
3008
2927
  if (typeof n != "object" || n.type !== "object") return null;
3009
- for (let e in n) if (!ma.has(e)) return null;
2928
+ for (let e in n) if (!ua.has(e)) return null;
3010
2929
  t.push(n);
3011
2930
  }
3012
2931
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -3015,10 +2934,10 @@ function _a(e) {
3015
2934
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
3016
2935
  let e = [];
3017
2936
  for (let n of t) {
3018
- let t = n.properties?.[r] ?? ga(n);
2937
+ let t = n.properties?.[r] ?? fa(n);
3019
2938
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
3020
2939
  }
3021
- l(n, r, e.length === 1 ? e[0] : _a(e) ?? { allOf: e });
2940
+ l(n, r, e.length === 1 ? e[0] : pa(e) ?? { allOf: e });
3022
2941
  }
3023
2942
  for (let t of e.required ?? []) r.add(t);
3024
2943
  }
@@ -3030,29 +2949,29 @@ function _a(e) {
3030
2949
  else {
3031
2950
  let e = [];
3032
2951
  for (let n of t) {
3033
- let t = ga(n);
2952
+ let t = fa(n);
3034
2953
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
3035
2954
  }
3036
2955
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
3037
2956
  }
3038
2957
  return i;
3039
2958
  }
3040
- function va(e) {
2959
+ function ma(e) {
3041
2960
  let t = e.allOf;
3042
2961
  if (!Array.isArray(t) || t.length < 2) return;
3043
- for (let t of ma) if (t in e) return;
3044
- let n = t.filter((e) => ha.some((t) => Array.isArray(e[t]))), r = null;
3045
- if (!n.length) r = _a(t);
2962
+ for (let t of ua) if (t in e) return;
2963
+ let n = t.filter((e) => da.some((t) => Array.isArray(e[t]))), r = null;
2964
+ if (!n.length) r = pa(t);
3046
2965
  else {
3047
- let e = n[0], i = ha.find((t) => Array.isArray(e[t]));
2966
+ let e = n[0], i = da.find((t) => Array.isArray(e[t]));
3048
2967
  if (Object.keys(e).length !== 1) return;
3049
- let a = t.filter((t) => t !== e), o = e[i].map((e) => _a([...a, e]));
2968
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => pa([...a, e]));
3050
2969
  if (o.some((e) => !e)) return;
3051
2970
  r = { [i]: o };
3052
2971
  }
3053
- r && (delete e.allOf, la(e, r));
2972
+ r && (delete e.allOf, aa(e, r));
3054
2973
  }
3055
- function ya(e, t) {
2974
+ function ha(e, t) {
3056
2975
  let n = e.seen.get(t);
3057
2976
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3058
2977
  let r = (t) => {
@@ -3062,7 +2981,7 @@ function ya(e, t) {
3062
2981
  if (n.ref = null, o) {
3063
2982
  r(o);
3064
2983
  let n = e.seen.get(o), s = n.schema;
3065
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : la(i, s), la(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2984
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : aa(i, s), aa(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3066
2985
  if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
3067
2986
  }
3068
2987
  let s = t._zod.parent;
@@ -3079,7 +2998,7 @@ function ya(e, t) {
3079
2998
  };
3080
2999
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3081
3000
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
3082
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) pa(t[1].def ?? t[1].schema);
3001
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) la(t[1].def ?? t[1].schema);
3083
3002
  for (let t of e.deferred) t();
3084
3003
  if (e.intersections.length) {
3085
3004
  let t = /* @__PURE__ */ new Map();
@@ -3089,7 +3008,7 @@ function ya(e, t) {
3089
3008
  let r = t.get(n);
3090
3009
  r ? r.push(e) : t.set(n, [e]);
3091
3010
  }
3092
- for (let n of e.intersections) for (let e of t.get(n) ?? []) va(e);
3011
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) ma(e);
3093
3012
  }
3094
3013
  }
3095
3014
  let i = {};
@@ -3098,7 +3017,7 @@ function ya(e, t) {
3098
3017
  if (!n) throw Error("Schema is missing an `id` property");
3099
3018
  i.$id = e.external.uri(n);
3100
3019
  }
3101
- la(i, n.defId ? n.schema : n.def ?? n.schema);
3020
+ aa(i, n.defId ? n.schema : n.def ?? n.schema);
3102
3021
  let a = e.metadataRegistry.get(t)?.id;
3103
3022
  a !== void 0 && i.id === a && delete i.id;
3104
3023
  let o = e.external?.defs ?? {};
@@ -3113,8 +3032,8 @@ function ya(e, t) {
3113
3032
  value: {
3114
3033
  ...t["~standard"],
3115
3034
  jsonSchema: {
3116
- input: xa(t, "input", e.processors),
3117
- output: xa(t, "output", e.processors)
3035
+ input: _a(t, "input", e.processors),
3036
+ output: _a(t, "output", e.processors)
3118
3037
  }
3119
3038
  },
3120
3039
  enumerable: !1,
@@ -3151,66 +3070,66 @@ function k(e, t) {
3151
3070
  }
3152
3071
  return !1;
3153
3072
  }
3154
- var ba = (e, t = {}) => (n) => {
3155
- let r = ua({
3073
+ var ga = (e, t = {}) => (n) => {
3074
+ let r = oa({
3156
3075
  ...n,
3157
3076
  processors: t
3158
3077
  });
3159
- return O(e, r), fa(r, e), ya(r, e);
3160
- }, xa = (e, t, n = {}) => (r) => {
3161
- let { libraryOptions: i, target: a } = r ?? {}, o = ua({
3078
+ return O(e, r), ca(r, e), ha(r, e);
3079
+ }, _a = (e, t, n = {}) => (r) => {
3080
+ let { libraryOptions: i, target: a } = r ?? {}, o = oa({
3162
3081
  ...i ?? {},
3163
3082
  target: a,
3164
3083
  io: t,
3165
3084
  processors: n
3166
3085
  });
3167
- return O(e, o), fa(o, e), ya(o, e);
3168
- }, Sa = {
3086
+ return O(e, o), ca(o, e), ha(o, e);
3087
+ }, va = {
3169
3088
  guid: "uuid",
3170
3089
  url: "uri",
3171
3090
  datetime: "date-time",
3172
3091
  json_string: "json-string",
3173
3092
  regex: ""
3174
- }, Ca = (e, t, n, r) => {
3093
+ }, ya = (e, t, n, r) => {
3175
3094
  let i = n;
3176
3095
  i.type = "string";
3177
3096
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
3178
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Sa[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3097
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = va[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3179
3098
  let e = [...c];
3180
3099
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
3181
3100
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3182
3101
  pattern: e.source
3183
3102
  }))]);
3184
3103
  }
3185
- }, wa = (e, t, n, r) => {
3104
+ }, ba = (e, t, n, r) => {
3186
3105
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
3187
3106
  i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
3188
3107
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
3189
3108
  d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : D(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3190
- }, Ta = (e, t, n, r) => {
3109
+ }, xa = (e, t, n, r) => {
3191
3110
  n.type = "boolean";
3192
- }, Ea = (e, t, n, r) => {
3111
+ }, Sa = (e, t, n, r) => {
3193
3112
  D(e, t, n, r, "BigInt cannot be represented in JSON Schema");
3194
- }, Da = (e, t, n, r) => {
3113
+ }, Ca = (e, t, n, r) => {
3195
3114
  D(e, t, n, r, "Symbols cannot be represented in JSON Schema");
3196
- }, Oa = (e, t, n, r) => {
3115
+ }, wa = (e, t, n, r) => {
3197
3116
  t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3198
- }, ka = (e, t, n, r) => {
3117
+ }, Ta = (e, t, n, r) => {
3199
3118
  D(e, t, n, r, "Undefined cannot be represented in JSON Schema");
3200
- }, Aa = (e, t, n, r) => {
3119
+ }, Ea = (e, t, n, r) => {
3201
3120
  D(e, t, n, r, "Void cannot be represented in JSON Schema");
3202
- }, ja = (e, t, n, r) => {
3121
+ }, Da = (e, t, n, r) => {
3203
3122
  n.not = {};
3204
- }, Ma = (e, t, n, r) => {}, Na = (e, t, n, r) => {}, Pa = (e, t, n, r) => {
3123
+ }, Oa = (e, t, n, r) => {}, ka = (e, t, n, r) => {}, Aa = (e, t, n, r) => {
3205
3124
  D(e, t, n, r, "Date cannot be represented in JSON Schema");
3206
- }, Fa = (t, n, r, i) => {
3125
+ }, ja = (t, n, r, i) => {
3207
3126
  let a = t._zod.def, o = e(a.entries);
3208
3127
  if (o.length === 0) {
3209
3128
  r.not = {};
3210
3129
  return;
3211
3130
  }
3212
3131
  o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
3213
- }, Ia = (e, t, n, r) => {
3132
+ }, Ma = (e, t, n, r) => {
3214
3133
  let i = e._zod.def;
3215
3134
  if (i.values.length === 0) {
3216
3135
  n.not = {};
@@ -3229,43 +3148,43 @@ var ba = (e, t = {}) => (n) => {
3229
3148
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
3230
3149
  } else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
3231
3150
  }
3232
- }, La = (e, t, n, r) => {
3151
+ }, Na = (e, t, n, r) => {
3233
3152
  D(e, t, n, r, "NaN cannot be represented in JSON Schema");
3234
- }, Ra = (e, t, n, r) => {
3153
+ }, Pa = (e, t, n, r) => {
3235
3154
  let i = n, a = e._zod.pattern;
3236
3155
  if (!a) throw Error("Pattern not found in template literal");
3237
3156
  i.type = "string", i.pattern = a.source;
3238
- }, za = (e, t, n, r) => {
3157
+ }, Fa = (e, t, n, r) => {
3239
3158
  let i = n, a = {
3240
3159
  type: "string",
3241
3160
  format: "binary",
3242
3161
  contentEncoding: "binary"
3243
3162
  }, { minimum: o, maximum: s, mime: c } = e._zod.bag;
3244
3163
  o !== void 0 && (a.minLength = o), s !== void 0 && (a.maxLength = s), c ? c.length === 1 ? (a.contentMediaType = c[0], Object.assign(i, a)) : (Object.assign(i, a), i.anyOf = c.map((e) => ({ contentMediaType: e }))) : Object.assign(i, a);
3245
- }, Ba = (e, t, n, r) => {
3164
+ }, Ia = (e, t, n, r) => {
3246
3165
  n.type = "boolean";
3247
- }, Va = (e, t, n, r) => {
3166
+ }, La = (e, t, n, r) => {
3248
3167
  D(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3249
- }, Ha = (e, t, n, r) => {
3168
+ }, Ra = (e, t, n, r) => {
3250
3169
  D(e, t, n, r, "Function types cannot be represented in JSON Schema");
3251
- }, Ua = (e, t, n, r) => {
3170
+ }, za = (e, t, n, r) => {
3252
3171
  D(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3253
- }, Wa = (e, t, n, r) => {
3172
+ }, Ba = (e, t, n, r) => {
3254
3173
  D(e, t, n, r, "Map cannot be represented in JSON Schema");
3255
- }, Ga = (e, t, n, r) => {
3174
+ }, Va = (e, t, n, r) => {
3256
3175
  D(e, t, n, r, "Set cannot be represented in JSON Schema");
3257
- }, Ka = (e, t, n, r) => {
3176
+ }, Ha = (e, t, n, r) => {
3258
3177
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
3259
3178
  typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = O(a.element, t, {
3260
3179
  ...r,
3261
3180
  path: [...r.path, "items"]
3262
3181
  });
3263
3182
  };
3264
- function qa(e) {
3183
+ function Ua(e) {
3265
3184
  let t = e._zod.def;
3266
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? qa(t.out) : t.type === "catch" ? qa(t.innerType) : e._zod.optin;
3185
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Ua(t.out) : t.type === "catch" ? Ua(t.innerType) : e._zod.optin;
3267
3186
  }
3268
- var Ja = (e, t, n, r) => {
3187
+ var Wa = (e, t, n, r) => {
3269
3188
  let i = n, a = e._zod.def, o = a.shape;
3270
3189
  if (Object.getOwnPropertySymbols(o).length && D(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3271
3190
  i.type = "object", i.properties = {};
@@ -3279,13 +3198,13 @@ var Ja = (e, t, n, r) => {
3279
3198
  }));
3280
3199
  let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
3281
3200
  let n = a.shape[e];
3282
- return t.io === "input" ? qa(n) === void 0 : n._zod.optout === void 0;
3201
+ return t.io === "input" ? Ua(n) === void 0 : n._zod.optout === void 0;
3283
3202
  }));
3284
3203
  c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = O(a.catchall, t, {
3285
3204
  ...r,
3286
3205
  path: [...r.path, "additionalProperties"]
3287
3206
  })) : t.io === "output" && (i.additionalProperties = !1);
3288
- }, Ya = (e, t, n, r) => {
3207
+ }, Ga = (e, t, n, r) => {
3289
3208
  let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => O(e, t, {
3290
3209
  ...r,
3291
3210
  path: [
@@ -3295,7 +3214,7 @@ var Ja = (e, t, n, r) => {
3295
3214
  ]
3296
3215
  }));
3297
3216
  a ? n.oneOf = o : n.anyOf = o;
3298
- }, Xa = (e, t, n, r) => {
3217
+ }, Ka = (e, t, n, r) => {
3299
3218
  let i = e._zod.def, a = O(i.left, t, {
3300
3219
  ...r,
3301
3220
  path: [
@@ -3312,7 +3231,7 @@ var Ja = (e, t, n, r) => {
3312
3231
  ]
3313
3232
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3314
3233
  n.allOf = c, t.intersections.push(c);
3315
- }, Za = (e, t, n, r) => {
3234
+ }, qa = (e, t, n, r) => {
3316
3235
  let i = n, a = e._zod.def;
3317
3236
  i.type = "array";
3318
3237
  let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => O(e, t, {
@@ -3332,7 +3251,7 @@ var Ja = (e, t, n, r) => {
3332
3251
  }) : null, u = a.items.length;
3333
3252
  for (; u > 0;) {
3334
3253
  let e = a.items[u - 1];
3335
- if (!(t.io === "input" ? qa(e) !== void 0 : e._zod.optout === "optional")) break;
3254
+ if (!(t.io === "input" ? Ua(e) !== void 0 : e._zod.optout === "optional")) break;
3336
3255
  u--;
3337
3256
  }
3338
3257
  let d = a.items.length, f = !a.rest;
@@ -3340,19 +3259,19 @@ var Ja = (e, t, n, r) => {
3340
3259
  let { minimum: p, maximum: m } = e._zod.bag;
3341
3260
  typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
3342
3261
  };
3343
- function Qa(e, t, n) {
3262
+ function Ja(e, t, n) {
3344
3263
  if (t.$ref) {
3345
3264
  if (n.has(t)) return t;
3346
3265
  n.add(t);
3347
3266
  let r = e.get(t)?.def;
3348
3267
  if (!r) return t;
3349
- let i = Qa(e, r, n);
3268
+ let i = Ja(e, r, n);
3350
3269
  return i === r ? t : i;
3351
3270
  }
3352
3271
  for (let r of ["anyOf", "oneOf"]) {
3353
3272
  let i = t[r];
3354
3273
  if (!Array.isArray(i)) continue;
3355
- let a = i.map((t) => Qa(e, t, n));
3274
+ let a = i.map((t) => Ja(e, t, n));
3356
3275
  a.some((e, t) => e !== i[t]) && (t = {
3357
3276
  ...t,
3358
3277
  [r]: a
@@ -3363,15 +3282,15 @@ function Qa(e, t, n) {
3363
3282
  let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
3364
3283
  return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Ut : Ht).source), p) : p;
3365
3284
  }
3366
- var $a = /* @__PURE__ */ new WeakMap();
3367
- function eo(e) {
3285
+ var Ya = /* @__PURE__ */ new WeakMap();
3286
+ function Xa(e) {
3368
3287
  let t = /* @__PURE__ */ new Map();
3369
3288
  for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
3370
3289
  let n = /* @__PURE__ */ new Map();
3371
- for (let r of $a.get(e) ?? []) {
3290
+ for (let r of Ya.get(e) ?? []) {
3372
3291
  let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
3373
3292
  if (!a || a === !0 || n.has(a)) continue;
3374
- let o = Qa(t, a, /* @__PURE__ */ new Set());
3293
+ let o = Ja(t, a, /* @__PURE__ */ new Set());
3375
3294
  o !== a && n.set(a, o);
3376
3295
  }
3377
3296
  if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
@@ -3379,7 +3298,7 @@ function eo(e) {
3379
3298
  t && (e.propertyNames = t);
3380
3299
  }
3381
3300
  }
3382
- var to = (e, t, n, r) => {
3301
+ var Za = (e, t, n, r) => {
3383
3302
  let i = n, a = e._zod.def;
3384
3303
  i.type = "object";
3385
3304
  let o = a.keyType, s = o._zod.bag?.patterns;
@@ -3400,47 +3319,47 @@ var to = (e, t, n, r) => {
3400
3319
  ...r,
3401
3320
  path: [...r.path, "propertyNames"]
3402
3321
  });
3403
- let n = $a.get(t);
3404
- n || (n = [], $a.set(t, n), t.deferred.push(() => eo(t))), n.push(e);
3322
+ let n = Ya.get(t);
3323
+ n || (n = [], Ya.set(t, n), t.deferred.push(() => Xa(t))), n.push(e);
3405
3324
  }
3406
3325
  i.additionalProperties = O(a.valueType, t, {
3407
3326
  ...r,
3408
3327
  path: [...r.path, "additionalProperties"]
3409
3328
  });
3410
3329
  }
3411
- let c = o._zod.values, u = t.io === "input" && qa(a.valueType) !== void 0;
3330
+ let c = o._zod.values, u = t.io === "input" && Ua(a.valueType) !== void 0;
3412
3331
  if (c && !a.partial && !u) {
3413
3332
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
3414
3333
  e.length > 0 && (i.required = e.map(String));
3415
3334
  }
3416
- }, no = (e, t, n, r) => {
3335
+ }, Qa = (e, t, n, r) => {
3417
3336
  let i = e._zod.def, a = O(i.innerType, t, r), o = t.seen.get(e);
3418
3337
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3419
- }, ro = (e, t, n, r) => {
3338
+ }, $a = (e, t, n, r) => {
3420
3339
  let i = e._zod.def;
3421
3340
  O(i.innerType, t, r);
3422
3341
  let a = t.seen.get(e);
3423
3342
  a.ref = i.innerType;
3424
- }, io = Symbol();
3425
- function ao(e, t, n, r, i) {
3343
+ }, eo = Symbol();
3344
+ function to(e, t, n, r, i) {
3426
3345
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3427
- return a ? (D(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), io) : JSON.parse(o);
3346
+ return a ? (D(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), eo) : JSON.parse(o);
3428
3347
  }
3429
- var oo = (e, t, n, r) => {
3348
+ var no = (e, t, n, r) => {
3430
3349
  let i = e._zod.def;
3431
3350
  O(i.innerType, t, r);
3432
3351
  let a = t.seen.get(e);
3433
3352
  a.ref = i.innerType;
3434
- let o = ao(i.defaultValue, e, t, n, r);
3435
- o !== io && (n.default = o);
3436
- }, so = (e, t, n, r) => {
3353
+ let o = to(i.defaultValue, e, t, n, r);
3354
+ o !== eo && (n.default = o);
3355
+ }, ro = (e, t, n, r) => {
3437
3356
  let i = e._zod.def;
3438
3357
  O(i.innerType, t, r);
3439
3358
  let a = t.seen.get(e);
3440
3359
  if (a.ref = i.innerType, t.io !== "input") return;
3441
- let o = ao(i.defaultValue, e, t, n, r);
3442
- o !== io && (n._prefault = o);
3443
- }, co = (e, t, n, r) => {
3360
+ let o = to(i.defaultValue, e, t, n, r);
3361
+ o !== eo && (n._prefault = o);
3362
+ }, io = (e, t, n, r) => {
3444
3363
  let i = e._zod.def;
3445
3364
  O(i.innerType, t, r);
3446
3365
  let a = t.seen.get(e);
@@ -3453,77 +3372,77 @@ var oo = (e, t, n, r) => {
3453
3372
  return;
3454
3373
  }
3455
3374
  n.default = o;
3456
- }, lo = (e, t, n, r) => {
3375
+ }, ao = (e, t, n, r) => {
3457
3376
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3458
3377
  O(o, t, r);
3459
3378
  let s = t.seen.get(e);
3460
3379
  s.ref = o;
3461
- }, uo = (e, t, n, r) => {
3380
+ }, oo = (e, t, n, r) => {
3462
3381
  let i = e._zod.def;
3463
3382
  O(i.innerType, t, r);
3464
3383
  let a = t.seen.get(e);
3465
3384
  a.ref = i.innerType, n.readOnly = !0;
3466
- }, fo = (e, t, n, r) => {
3385
+ }, so = (e, t, n, r) => {
3467
3386
  let i = e._zod.def;
3468
3387
  O(i.innerType, t, r);
3469
3388
  let a = t.seen.get(e);
3470
3389
  a.ref = i.innerType;
3471
- }, po = (e, t, n, r) => {
3390
+ }, co = (e, t, n, r) => {
3472
3391
  let i = e._zod.def;
3473
3392
  O(i.innerType, t, r);
3474
3393
  let a = t.seen.get(e);
3475
3394
  a.ref = i.innerType;
3476
- }, mo = (e, t, n, r) => {
3395
+ }, lo = (e, t, n, r) => {
3477
3396
  let i = e._zod.innerType;
3478
3397
  O(i, t, r);
3479
3398
  let a = t.seen.get(e);
3480
3399
  a.ref = i;
3481
- }, ho = {
3482
- string: Ca,
3483
- number: wa,
3484
- boolean: Ta,
3485
- bigint: Ea,
3486
- symbol: Da,
3487
- null: Oa,
3488
- undefined: ka,
3489
- void: Aa,
3490
- never: ja,
3491
- any: Ma,
3492
- unknown: Na,
3493
- date: Pa,
3494
- enum: Fa,
3495
- literal: Ia,
3496
- nan: La,
3497
- template_literal: Ra,
3498
- file: za,
3499
- success: Ba,
3500
- custom: Va,
3501
- function: Ha,
3502
- transform: Ua,
3503
- map: Wa,
3504
- set: Ga,
3505
- array: Ka,
3506
- object: Ja,
3507
- union: Ya,
3508
- intersection: Xa,
3509
- tuple: Za,
3510
- record: to,
3511
- nullable: no,
3512
- nonoptional: ro,
3513
- default: oo,
3514
- prefault: so,
3515
- catch: co,
3516
- pipe: lo,
3517
- readonly: uo,
3518
- promise: fo,
3519
- optional: po,
3520
- lazy: mo
3400
+ }, uo = {
3401
+ string: ya,
3402
+ number: ba,
3403
+ boolean: xa,
3404
+ bigint: Sa,
3405
+ symbol: Ca,
3406
+ null: wa,
3407
+ undefined: Ta,
3408
+ void: Ea,
3409
+ never: Da,
3410
+ any: Oa,
3411
+ unknown: ka,
3412
+ date: Aa,
3413
+ enum: ja,
3414
+ literal: Ma,
3415
+ nan: Na,
3416
+ template_literal: Pa,
3417
+ file: Fa,
3418
+ success: Ia,
3419
+ custom: La,
3420
+ function: Ra,
3421
+ transform: za,
3422
+ map: Ba,
3423
+ set: Va,
3424
+ array: Ha,
3425
+ object: Wa,
3426
+ union: Ga,
3427
+ intersection: Ka,
3428
+ tuple: qa,
3429
+ record: Za,
3430
+ nullable: Qa,
3431
+ nonoptional: $a,
3432
+ default: no,
3433
+ prefault: ro,
3434
+ catch: io,
3435
+ pipe: ao,
3436
+ readonly: oo,
3437
+ promise: so,
3438
+ optional: co,
3439
+ lazy: lo
3521
3440
  };
3522
- function go(e, t) {
3441
+ function fo(e, t) {
3523
3442
  if ("_idmap" in e) {
3524
- let n = e, r = ua({
3443
+ let n = e, r = oa({
3525
3444
  ...t,
3526
- processors: ho
3445
+ processors: uo
3527
3446
  }), i = {};
3528
3447
  for (let e of n._idmap.entries()) {
3529
3448
  let [t, n] = e;
@@ -3537,20 +3456,20 @@ function go(e, t) {
3537
3456
  };
3538
3457
  for (let e of n._idmap.entries()) {
3539
3458
  let [t, n] = e;
3540
- fa(r, n), l(a, t, ya(r, n));
3459
+ ca(r, n), l(a, t, ha(r, n));
3541
3460
  }
3542
3461
  return Object.keys(i).length > 0 && (a.__shared = { [r.target === "draft-2020-12" ? "$defs" : "definitions"]: i }), { schemas: a };
3543
3462
  }
3544
- let n = ua({
3463
+ let n = oa({
3545
3464
  ...t,
3546
- processors: ho
3465
+ processors: uo
3547
3466
  });
3548
- return O(e, n), fa(n, e), ya(n, e);
3467
+ return O(e, n), ca(n, e), ha(n, e);
3549
3468
  }
3550
3469
  //#endregion
3551
3470
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/errors.js
3552
- var _o = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3553
- function vo(e, t, n) {
3471
+ var po = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3472
+ function mo(e, t, n) {
3554
3473
  Object.defineProperty(e, t, {
3555
3474
  configurable: !0,
3556
3475
  enumerable: !1,
@@ -3571,12 +3490,12 @@ function vo(e, t, n) {
3571
3490
  }
3572
3491
  });
3573
3492
  }
3574
- var yo = (e, t) => {
3493
+ var ho = (e, t) => {
3575
3494
  Je.init(e, t), e.name = "ZodError";
3576
3495
  let r = Object.getPrototypeOf(e);
3577
- _o.has(r) || (_o.add(r), vo(r, "format", (e) => (t) => Qe(e, t)), vo(r, "flatten", (e) => (t) => Ze(e, t)), vo(r, "addIssue", (e) => (t) => {
3496
+ po.has(r) || (po.add(r), mo(r, "format", (e) => (t) => Qe(e, t)), mo(r, "flatten", (e) => (t) => Ze(e, t)), mo(r, "addIssue", (e) => (t) => {
3578
3497
  e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
3579
- }), vo(r, "addIssues", (e) => (t) => {
3498
+ }), mo(r, "addIssues", (e) => (t) => {
3580
3499
  e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
3581
3500
  }), Object.defineProperty(r, "isEmpty", {
3582
3501
  configurable: !0,
@@ -3585,16 +3504,16 @@ var yo = (e, t) => {
3585
3504
  return this.issues.length === 0;
3586
3505
  }
3587
3506
  }));
3588
- }, bo = /*@__PURE__*/ b("ZodError", yo), A = /*@__PURE__*/ b("ZodError", yo, void 0, { Parent: Error }), xo = /* @__PURE__ */ et(A), So = /* @__PURE__ */ tt(A), Co = /* @__PURE__ */ nt(A), wo = /* @__PURE__ */ it(A), To = /* @__PURE__ */ ot(A), Eo = /* @__PURE__ */ st(A), Do = /* @__PURE__ */ ct(A), Oo = /* @__PURE__ */ lt(A), ko = /* @__PURE__ */ ut(A), Ao = /* @__PURE__ */ dt(A), jo = /* @__PURE__ */ ft(A), Mo = /* @__PURE__ */ pt(A);
3507
+ }, go = /*@__PURE__*/ b("ZodError", ho), A = /*@__PURE__*/ b("ZodError", ho, void 0, { Parent: Error }), _o = /* @__PURE__ */ et(A), vo = /* @__PURE__ */ tt(A), yo = /* @__PURE__ */ nt(A), bo = /* @__PURE__ */ it(A), xo = /* @__PURE__ */ ot(A), So = /* @__PURE__ */ st(A), Co = /* @__PURE__ */ ct(A), wo = /* @__PURE__ */ lt(A), To = /* @__PURE__ */ ut(A), Eo = /* @__PURE__ */ dt(A), Do = /* @__PURE__ */ ft(A), Oo = /* @__PURE__ */ pt(A);
3589
3508
  //#endregion
3590
3509
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3591
- function No() {
3592
- x.localeError || S(ni());
3510
+ function ko() {
3511
+ x.localeError || S(Qr());
3593
3512
  }
3594
- function Po() {
3595
- x.memoizer || S({ memoizer: $r() });
3513
+ function Ao() {
3514
+ x.memoizer || S({ memoizer: Yr() });
3596
3515
  }
3597
- var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.type = t.type, e), {
3516
+ var j = /*@__PURE__*/ b("ZodType", (e, t) => (ko(), w.init(e, t), e.def = t, e.type = t.type, e), {
3598
3517
  check(...e) {
3599
3518
  let t = this.def;
3600
3519
  return this.clone(u(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -3616,28 +3535,28 @@ var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.t
3616
3535
  return e.add(this, t), this;
3617
3536
  },
3618
3537
  refine(e, t) {
3619
- return this.check(Ys(e, t));
3538
+ return this.check(Us(e, t));
3620
3539
  },
3621
3540
  superRefine(e, t) {
3622
- return this.check(Xs(e, t));
3541
+ return this.check(Ws(e, t));
3623
3542
  },
3624
3543
  overwrite(e) {
3625
3544
  return this.check(/* @__PURE__ */ E(e));
3626
3545
  },
3627
3546
  optional() {
3628
- return ks(this);
3547
+ return Cs(this);
3629
3548
  },
3630
3549
  exactOptional() {
3631
- return js(this);
3550
+ return Ts(this);
3632
3551
  },
3633
3552
  nullable() {
3634
- return Ns(this);
3553
+ return Ds(this);
3635
3554
  },
3636
3555
  nullish() {
3637
- return ks(Ns(this));
3556
+ return Cs(Ds(this));
3638
3557
  },
3639
3558
  nonoptional(e) {
3640
- return zs(this, e);
3559
+ return Ns(this, e);
3641
3560
  },
3642
3561
  array() {
3643
3562
  return I(this);
@@ -3646,34 +3565,34 @@ var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.t
3646
3565
  return z([this, e]);
3647
3566
  },
3648
3567
  and(e) {
3649
- return bs(this, e);
3568
+ return gs(this, e);
3650
3569
  },
3651
3570
  transform(e) {
3652
- return Us(this, Ds(e));
3571
+ return Ls(this, xs(e));
3653
3572
  },
3654
3573
  default(e) {
3655
- return Fs(this, e);
3574
+ return ks(this, e);
3656
3575
  },
3657
3576
  prefault(e) {
3658
- return Ls(this, e);
3577
+ return js(this, e);
3659
3578
  },
3660
3579
  catch(e) {
3661
- return Vs(this, e);
3580
+ return Fs(this, e);
3662
3581
  },
3663
3582
  pipe(e) {
3664
- return Us(this, e);
3583
+ return Ls(this, e);
3665
3584
  },
3666
3585
  readonly() {
3667
- return Gs(this);
3586
+ return zs(this);
3668
3587
  },
3669
3588
  describe(e) {
3670
3589
  let t = this.clone();
3671
- return oi.add(t, { description: e }), t;
3590
+ return ni.add(t, { description: e }), t;
3672
3591
  },
3673
3592
  meta(...e) {
3674
- if (e.length === 0) return oi.get(this);
3593
+ if (e.length === 0) return ni.get(this);
3675
3594
  let t = this.clone();
3676
- return oi.add(t, e[0]), t;
3595
+ return ni.add(t, e[0]), t;
3677
3596
  },
3678
3597
  isOptional() {
3679
3598
  return this.safeParse(void 0).success;
@@ -3688,8 +3607,8 @@ var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.t
3688
3607
  return Ee(this, "~standard", {
3689
3608
  ...hn(this),
3690
3609
  jsonSchema: {
3691
- input: xa(this, "input"),
3692
- output: xa(this, "output")
3610
+ input: _a(this, "input"),
3611
+ output: _a(this, "output")
3693
3612
  }
3694
3613
  });
3695
3614
  },
@@ -3697,16 +3616,16 @@ var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.t
3697
3616
  Te(this, "~standard", e);
3698
3617
  },
3699
3618
  parse: function e(t, n) {
3700
- return xo(this, t, n, { callee: e });
3619
+ return _o(this, t, n, { callee: e });
3701
3620
  },
3702
3621
  parseAsync: async function e(t, n) {
3703
- return await So(this, t, n, { callee: e });
3622
+ return await vo(this, t, n, { callee: e });
3704
3623
  },
3705
3624
  safeParse(e, t) {
3706
- return Co(this, e, t);
3625
+ return yo(this, e, t);
3707
3626
  },
3708
3627
  async safeParseAsync(e, t) {
3709
- return wo(this, e, t);
3628
+ return bo(this, e, t);
3710
3629
  },
3711
3630
  get spa() {
3712
3631
  return this?.safeParseAsync;
@@ -3715,329 +3634,329 @@ var j = /*@__PURE__*/ b("ZodType", (e, t) => (No(), w.init(e, t), e.def = t, e.t
3715
3634
  Te(this, "spa", e);
3716
3635
  },
3717
3636
  encode: function e(t, n) {
3718
- return To(this, t, n, { callee: e });
3637
+ return xo(this, t, n, { callee: e });
3719
3638
  },
3720
3639
  decode: function e(t, n) {
3721
- return Eo(this, t, n, { callee: e });
3640
+ return So(this, t, n, { callee: e });
3722
3641
  },
3723
3642
  encodeAsync: async function e(t, n) {
3724
- return await Do(this, t, n, { callee: e });
3643
+ return await Co(this, t, n, { callee: e });
3725
3644
  },
3726
3645
  decodeAsync: async function e(t, n) {
3727
- return await Oo(this, t, n, { callee: e });
3646
+ return await wo(this, t, n, { callee: e });
3728
3647
  },
3729
3648
  safeEncode(e, t) {
3730
- return ko(this, e, t);
3649
+ return To(this, e, t);
3731
3650
  },
3732
3651
  safeDecode(e, t) {
3733
- return Ao(this, e, t);
3652
+ return Eo(this, e, t);
3734
3653
  },
3735
3654
  async safeEncodeAsync(e, t) {
3736
- return jo(this, e, t);
3655
+ return Do(this, e, t);
3737
3656
  },
3738
3657
  async safeDecodeAsync(e, t) {
3739
- return Mo(this, e, t);
3658
+ return Oo(this, e, t);
3740
3659
  },
3741
3660
  toJSONSchema(e) {
3742
- return ba(this, {})(e);
3661
+ return ga(this, {})(e);
3743
3662
  },
3744
3663
  get description() {
3745
- return oi.get(this)?.description;
3664
+ return ni.get(this)?.description;
3746
3665
  },
3747
3666
  get _def() {
3748
3667
  return this._zod.def;
3749
3668
  }
3750
- }), Fo = /*@__PURE__*/ b("_ZodString", (e, t) => {
3751
- gn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ca(e, t, n, r);
3669
+ }), jo = /*@__PURE__*/ b("_ZodString", (e, t) => {
3670
+ gn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ya(e, t, n, r);
3752
3671
  let n = e._zod.bag;
3753
3672
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3754
3673
  }, {
3755
3674
  regex(...e) {
3756
- return this.check(/* @__PURE__ */ Ji(...e));
3675
+ return this.check(/* @__PURE__ */ Wi(...e));
3757
3676
  },
3758
3677
  includes(...e) {
3759
- return this.check(/* @__PURE__ */ Zi(...e));
3678
+ return this.check(/* @__PURE__ */ qi(...e));
3760
3679
  },
3761
3680
  startsWith(...e) {
3762
- return this.check(/* @__PURE__ */ Qi(...e));
3681
+ return this.check(/* @__PURE__ */ Ji(...e));
3763
3682
  },
3764
3683
  endsWith(...e) {
3765
- return this.check(/* @__PURE__ */ $i(...e));
3684
+ return this.check(/* @__PURE__ */ Yi(...e));
3766
3685
  },
3767
3686
  min(...e) {
3768
- return this.check(/* @__PURE__ */ Ki(...e));
3687
+ return this.check(/* @__PURE__ */ Hi(...e));
3769
3688
  },
3770
3689
  max(...e) {
3771
- return this.check(/* @__PURE__ */ Gi(...e));
3690
+ return this.check(/* @__PURE__ */ Vi(...e));
3772
3691
  },
3773
3692
  length(...e) {
3774
- return this.check(/* @__PURE__ */ qi(...e));
3693
+ return this.check(/* @__PURE__ */ Ui(...e));
3775
3694
  },
3776
3695
  nonempty(...e) {
3777
- return this.check(/* @__PURE__ */ Ki(1, ...e));
3696
+ return this.check(/* @__PURE__ */ Hi(1, ...e));
3778
3697
  },
3779
3698
  lowercase(e) {
3780
- return this.check(/* @__PURE__ */ Yi(e));
3699
+ return this.check(/* @__PURE__ */ Gi(e));
3781
3700
  },
3782
3701
  uppercase(e) {
3783
- return this.check(/* @__PURE__ */ Xi(e));
3702
+ return this.check(/* @__PURE__ */ Ki(e));
3784
3703
  },
3785
3704
  trim() {
3786
- return this.check(/* @__PURE__ */ ta());
3705
+ return this.check(/* @__PURE__ */ Zi());
3787
3706
  },
3788
3707
  normalize(...e) {
3789
- return this.check(/* @__PURE__ */ ea(...e));
3708
+ return this.check(/* @__PURE__ */ Xi(...e));
3790
3709
  },
3791
3710
  toLowerCase() {
3792
- return this.check(/* @__PURE__ */ na());
3711
+ return this.check(/* @__PURE__ */ Qi());
3793
3712
  },
3794
3713
  toUpperCase() {
3795
- return this.check(/* @__PURE__ */ ra());
3714
+ return this.check(/* @__PURE__ */ $i());
3796
3715
  },
3797
3716
  slugify() {
3798
- return this.check(/* @__PURE__ */ ia());
3717
+ return this.check(/* @__PURE__ */ ea());
3799
3718
  }
3800
- }), Io = /*@__PURE__*/ b("ZodString", (e, t) => {
3801
- gn.init(e, t), Fo.init(e, t);
3719
+ }), Mo = /*@__PURE__*/ b("ZodString", (e, t) => {
3720
+ gn.init(e, t), jo.init(e, t);
3802
3721
  }, {
3803
3722
  email(e) {
3804
- return this.check(/* @__PURE__ */ ci(Vo, e));
3723
+ return this.check(/* @__PURE__ */ ii(Lo, e));
3805
3724
  },
3806
3725
  url(e) {
3807
- return this.check(/* @__PURE__ */ mi(Wo, e));
3726
+ return this.check(/* @__PURE__ */ ui(Bo, e));
3808
3727
  },
3809
3728
  jwt(e) {
3810
- return this.check(/* @__PURE__ */ ki(as, e));
3729
+ return this.check(/* @__PURE__ */ Ti(ts, e));
3811
3730
  },
3812
3731
  emoji(e) {
3813
- return this.check(/* @__PURE__ */ hi(Go, e));
3732
+ return this.check(/* @__PURE__ */ di(Vo, e));
3814
3733
  },
3815
3734
  guid(e) {
3816
- return this.check(/* @__PURE__ */ li(Ho, e));
3735
+ return this.check(/* @__PURE__ */ ai(Ro, e));
3817
3736
  },
3818
3737
  uuid(e) {
3819
- return this.check(/* @__PURE__ */ ui(Uo, e));
3738
+ return this.check(/* @__PURE__ */ oi(zo, e));
3820
3739
  },
3821
3740
  uuidv4(e) {
3822
- return this.check(/* @__PURE__ */ di(Uo, e));
3741
+ return this.check(/* @__PURE__ */ si(zo, e));
3823
3742
  },
3824
3743
  uuidv6(e) {
3825
- return this.check(/* @__PURE__ */ fi(Uo, e));
3744
+ return this.check(/* @__PURE__ */ ci(zo, e));
3826
3745
  },
3827
3746
  uuidv7(e) {
3828
- return this.check(/* @__PURE__ */ pi(Uo, e));
3747
+ return this.check(/* @__PURE__ */ li(zo, e));
3829
3748
  },
3830
3749
  nanoid(e) {
3831
- return this.check(/* @__PURE__ */ gi(Ko, e));
3750
+ return this.check(/* @__PURE__ */ fi(Ho, e));
3832
3751
  },
3833
3752
  cuid(e) {
3834
- return this.check(/* @__PURE__ */ _i(qo, e));
3753
+ return this.check(/* @__PURE__ */ pi(Uo, e));
3835
3754
  },
3836
3755
  cuid2(e) {
3837
- return this.check(/* @__PURE__ */ vi(Jo, e));
3756
+ return this.check(/* @__PURE__ */ mi(Wo, e));
3838
3757
  },
3839
3758
  ulid(e) {
3840
- return this.check(/* @__PURE__ */ yi(Yo, e));
3759
+ return this.check(/* @__PURE__ */ hi(Go, e));
3841
3760
  },
3842
3761
  base64(e) {
3843
- return this.check(/* @__PURE__ */ Ei(ns, e));
3762
+ return this.check(/* @__PURE__ */ Si(Qo, e));
3844
3763
  },
3845
3764
  base64url(e) {
3846
- return this.check(/* @__PURE__ */ Di(rs, e));
3765
+ return this.check(/* @__PURE__ */ Ci($o, e));
3847
3766
  },
3848
3767
  xid(e) {
3849
- return this.check(/* @__PURE__ */ bi(Xo, e));
3768
+ return this.check(/* @__PURE__ */ gi(Ko, e));
3850
3769
  },
3851
3770
  ksuid(e) {
3852
- return this.check(/* @__PURE__ */ xi(Zo, e));
3771
+ return this.check(/* @__PURE__ */ _i(qo, e));
3853
3772
  },
3854
3773
  ipv4(e) {
3855
- return this.check(/* @__PURE__ */ Si(Qo, e));
3774
+ return this.check(/* @__PURE__ */ vi(Jo, e));
3856
3775
  },
3857
3776
  ipv6(e) {
3858
- return this.check(/* @__PURE__ */ Ci($o, e));
3777
+ return this.check(/* @__PURE__ */ yi(Yo, e));
3859
3778
  },
3860
3779
  cidrv4(e) {
3861
- return this.check(/* @__PURE__ */ wi(es, e));
3780
+ return this.check(/* @__PURE__ */ bi(Xo, e));
3862
3781
  },
3863
3782
  cidrv6(e) {
3864
- return this.check(/* @__PURE__ */ Ti(ts, e));
3783
+ return this.check(/* @__PURE__ */ xi(Zo, e));
3865
3784
  },
3866
3785
  e164(e) {
3867
- return this.check(/* @__PURE__ */ Oi(is, e));
3786
+ return this.check(/* @__PURE__ */ wi(es, e));
3868
3787
  },
3869
3788
  datetime(e) {
3870
- return this.check(/* @__PURE__ */ Ai(Lo, e));
3789
+ return this.check(/* @__PURE__ */ Ei(No, e));
3871
3790
  },
3872
3791
  date(e) {
3873
- return this.check(/* @__PURE__ */ ji(Ro, e));
3792
+ return this.check(/* @__PURE__ */ Di(Po, e));
3874
3793
  },
3875
3794
  time(e) {
3876
- return this.check(/* @__PURE__ */ Mi(zo, e));
3795
+ return this.check(/* @__PURE__ */ Oi(Fo, e));
3877
3796
  },
3878
3797
  duration(e) {
3879
- return this.check(/* @__PURE__ */ Ni(Bo, e));
3798
+ return this.check(/* @__PURE__ */ ki(Io, e));
3880
3799
  }
3881
3800
  });
3882
3801
  function M(e) {
3883
- return /* @__PURE__ */ si(Io, e);
3802
+ return /* @__PURE__ */ ri(Mo, e);
3884
3803
  }
3885
3804
  var N = /*@__PURE__*/ b("ZodStringFormat", (e, t) => {
3886
- T.init(e, t), Fo.init(e, t);
3887
- }), Lo = /*@__PURE__*/ b("ZodISODateTime", (e, t) => {
3805
+ T.init(e, t), jo.init(e, t);
3806
+ }), No = /*@__PURE__*/ b("ZodISODateTime", (e, t) => {
3888
3807
  Nn.init(e, t), N.init(e, t);
3889
- }), Ro = /*@__PURE__*/ b("ZodISODate", (e, t) => {
3808
+ }), Po = /*@__PURE__*/ b("ZodISODate", (e, t) => {
3890
3809
  Pn.init(e, t), N.init(e, t);
3891
- }), zo = /*@__PURE__*/ b("ZodISOTime", (e, t) => {
3810
+ }), Fo = /*@__PURE__*/ b("ZodISOTime", (e, t) => {
3892
3811
  Fn.init(e, t), N.init(e, t);
3893
- }), Bo = /*@__PURE__*/ b("ZodISODuration", (e, t) => {
3812
+ }), Io = /*@__PURE__*/ b("ZodISODuration", (e, t) => {
3894
3813
  In.init(e, t), N.init(e, t);
3895
- }), Vo = /*@__PURE__*/ b("ZodEmail", (e, t) => {
3814
+ }), Lo = /*@__PURE__*/ b("ZodEmail", (e, t) => {
3896
3815
  yn.init(e, t), N.init(e, t);
3897
- }), Ho = /*@__PURE__*/ b("ZodGUID", (e, t) => {
3816
+ }), Ro = /*@__PURE__*/ b("ZodGUID", (e, t) => {
3898
3817
  _n.init(e, t), N.init(e, t);
3899
- }), Uo = /*@__PURE__*/ b("ZodUUID", (e, t) => {
3818
+ }), zo = /*@__PURE__*/ b("ZodUUID", (e, t) => {
3900
3819
  vn.init(e, t), N.init(e, t);
3901
- }), Wo = /*@__PURE__*/ b("ZodURL", (e, t) => {
3820
+ }), Bo = /*@__PURE__*/ b("ZodURL", (e, t) => {
3902
3821
  Tn.init(e, t), N.init(e, t);
3903
- }), Go = /*@__PURE__*/ b("ZodEmoji", (e, t) => {
3822
+ }), Vo = /*@__PURE__*/ b("ZodEmoji", (e, t) => {
3904
3823
  En.init(e, t), N.init(e, t);
3905
- }), Ko = /*@__PURE__*/ b("ZodNanoID", (e, t) => {
3824
+ }), Ho = /*@__PURE__*/ b("ZodNanoID", (e, t) => {
3906
3825
  Dn.init(e, t), N.init(e, t);
3907
- }), qo = /*@__PURE__*/ b("ZodCUID", (e, t) => {
3826
+ }), Uo = /*@__PURE__*/ b("ZodCUID", (e, t) => {
3908
3827
  On.init(e, t), N.init(e, t);
3909
- }), Jo = /*@__PURE__*/ b("ZodCUID2", (e, t) => {
3828
+ }), Wo = /*@__PURE__*/ b("ZodCUID2", (e, t) => {
3910
3829
  kn.init(e, t), N.init(e, t);
3911
- }), Yo = /*@__PURE__*/ b("ZodULID", (e, t) => {
3830
+ }), Go = /*@__PURE__*/ b("ZodULID", (e, t) => {
3912
3831
  An.init(e, t), N.init(e, t);
3913
- }), Xo = /*@__PURE__*/ b("ZodXID", (e, t) => {
3832
+ }), Ko = /*@__PURE__*/ b("ZodXID", (e, t) => {
3914
3833
  jn.init(e, t), N.init(e, t);
3915
- }), Zo = /*@__PURE__*/ b("ZodKSUID", (e, t) => {
3834
+ }), qo = /*@__PURE__*/ b("ZodKSUID", (e, t) => {
3916
3835
  Mn.init(e, t), N.init(e, t);
3917
- }), Qo = /*@__PURE__*/ b("ZodIPv4", (e, t) => {
3836
+ }), Jo = /*@__PURE__*/ b("ZodIPv4", (e, t) => {
3918
3837
  Ln.init(e, t), N.init(e, t);
3919
- }), $o = /*@__PURE__*/ b("ZodIPv6", (e, t) => {
3838
+ }), Yo = /*@__PURE__*/ b("ZodIPv6", (e, t) => {
3920
3839
  Bn.init(e, t), N.init(e, t);
3921
- }), es = /*@__PURE__*/ b("ZodCIDRv4", (e, t) => {
3840
+ }), Xo = /*@__PURE__*/ b("ZodCIDRv4", (e, t) => {
3922
3841
  Vn.init(e, t), N.init(e, t);
3923
- }), ts = /*@__PURE__*/ b("ZodCIDRv6", (e, t) => {
3842
+ }), Zo = /*@__PURE__*/ b("ZodCIDRv6", (e, t) => {
3924
3843
  Un.init(e, t), N.init(e, t);
3925
- }), ns = /*@__PURE__*/ b("ZodBase64", (e, t) => {
3844
+ }), Qo = /*@__PURE__*/ b("ZodBase64", (e, t) => {
3926
3845
  Gn.init(e, t), N.init(e, t);
3927
- }), rs = /*@__PURE__*/ b("ZodBase64URL", (e, t) => {
3846
+ }), $o = /*@__PURE__*/ b("ZodBase64URL", (e, t) => {
3928
3847
  qn.init(e, t), N.init(e, t);
3929
- }), is = /*@__PURE__*/ b("ZodE164", (e, t) => {
3848
+ }), es = /*@__PURE__*/ b("ZodE164", (e, t) => {
3930
3849
  Jn.init(e, t), N.init(e, t);
3931
- }), as = /*@__PURE__*/ b("ZodJWT", (e, t) => {
3850
+ }), ts = /*@__PURE__*/ b("ZodJWT", (e, t) => {
3932
3851
  Xn.init(e, t), N.init(e, t);
3933
- }), os = /*@__PURE__*/ b("ZodNumber", (e, t) => {
3934
- Zn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => wa(e, t, n, r);
3852
+ }), ns = /*@__PURE__*/ b("ZodNumber", (e, t) => {
3853
+ Zn.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ba(e, t, n, r);
3935
3854
  let n = e._zod.bag;
3936
3855
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3937
3856
  }, {
3938
3857
  gt(e, t) {
3939
- return this.check(/* @__PURE__ */ Hi(e, t));
3858
+ return this.check(/* @__PURE__ */ Ri(e, t));
3940
3859
  },
3941
3860
  gte(e, t) {
3942
- return this.check(/* @__PURE__ */ Ui(e, t));
3861
+ return this.check(/* @__PURE__ */ zi(e, t));
3943
3862
  },
3944
3863
  min(e, t) {
3945
- return this.check(/* @__PURE__ */ Ui(e, t));
3864
+ return this.check(/* @__PURE__ */ zi(e, t));
3946
3865
  },
3947
3866
  lt(e, t) {
3948
- return this.check(/* @__PURE__ */ Bi(e, t));
3867
+ return this.check(/* @__PURE__ */ Ii(e, t));
3949
3868
  },
3950
3869
  lte(e, t) {
3951
- return this.check(/* @__PURE__ */ Vi(e, t));
3870
+ return this.check(/* @__PURE__ */ Li(e, t));
3952
3871
  },
3953
3872
  max(e, t) {
3954
- return this.check(/* @__PURE__ */ Vi(e, t));
3873
+ return this.check(/* @__PURE__ */ Li(e, t));
3955
3874
  },
3956
3875
  int(e) {
3957
- return this.check(cs(e));
3876
+ return this.check(is(e));
3958
3877
  },
3959
3878
  safe(e) {
3960
- return this.check(cs(e));
3879
+ return this.check(is(e));
3961
3880
  },
3962
3881
  positive(e) {
3963
- return this.check(/* @__PURE__ */ Hi(0, e));
3882
+ return this.check(/* @__PURE__ */ Ri(0, e));
3964
3883
  },
3965
3884
  nonnegative(e) {
3966
- return this.check(/* @__PURE__ */ Ui(0, e));
3885
+ return this.check(/* @__PURE__ */ zi(0, e));
3967
3886
  },
3968
3887
  negative(e) {
3969
- return this.check(/* @__PURE__ */ Bi(0, e));
3888
+ return this.check(/* @__PURE__ */ Ii(0, e));
3970
3889
  },
3971
3890
  nonpositive(e) {
3972
- return this.check(/* @__PURE__ */ Vi(0, e));
3891
+ return this.check(/* @__PURE__ */ Li(0, e));
3973
3892
  },
3974
3893
  multipleOf(e, t) {
3975
- return this.check(/* @__PURE__ */ Wi(e, t));
3894
+ return this.check(/* @__PURE__ */ Bi(e, t));
3976
3895
  },
3977
3896
  step(e, t) {
3978
- return this.check(/* @__PURE__ */ Wi(e, t));
3897
+ return this.check(/* @__PURE__ */ Bi(e, t));
3979
3898
  },
3980
3899
  finite() {
3981
3900
  return this;
3982
3901
  }
3983
3902
  });
3984
3903
  function P(e) {
3985
- return /* @__PURE__ */ Pi(os, e);
3904
+ return /* @__PURE__ */ Ai(ns, e);
3986
3905
  }
3987
- var ss = /*@__PURE__*/ b("ZodNumberFormat", (e, t) => {
3988
- Qn.init(e, t), os.init(e, t);
3906
+ var rs = /*@__PURE__*/ b("ZodNumberFormat", (e, t) => {
3907
+ Qn.init(e, t), ns.init(e, t);
3989
3908
  });
3990
- function cs(e) {
3991
- return /* @__PURE__ */ Fi(ss, e);
3909
+ function is(e) {
3910
+ return /* @__PURE__ */ ji(rs, e);
3992
3911
  }
3993
- var ls = /*@__PURE__*/ b("ZodBoolean", (e, t) => {
3994
- $n.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ta(e, t, n, r);
3912
+ var as = /*@__PURE__*/ b("ZodBoolean", (e, t) => {
3913
+ $n.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => xa(e, t, n, r);
3995
3914
  });
3996
3915
  function F(e) {
3997
- return /* @__PURE__ */ Ii(ls, e);
3916
+ return /* @__PURE__ */ Mi(as, e);
3998
3917
  }
3999
- var us = /*@__PURE__*/ b("ZodNull", (e, t) => {
4000
- er.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oa(e, t, n, r);
3918
+ var os = /*@__PURE__*/ b("ZodNull", (e, t) => {
3919
+ er.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => wa(e, t, n, r);
4001
3920
  });
4002
- function ds(e) {
4003
- return /* @__PURE__ */ Li(us, e);
3921
+ function ss(e) {
3922
+ return /* @__PURE__ */ Ni(os, e);
4004
3923
  }
4005
- var fs = /*@__PURE__*/ b("ZodUnknown", (e, t) => {
3924
+ var cs = /*@__PURE__*/ b("ZodUnknown", (e, t) => {
4006
3925
  tr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
4007
3926
  });
4008
- function ps() {
4009
- return /* @__PURE__ */ Ri(fs);
3927
+ function ls() {
3928
+ return /* @__PURE__ */ Pi(cs);
4010
3929
  }
4011
- var ms = /*@__PURE__*/ b("ZodNever", (e, t) => {
4012
- nr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
3930
+ var us = /*@__PURE__*/ b("ZodNever", (e, t) => {
3931
+ nr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Da(e, t, n, r);
4013
3932
  });
4014
- function hs(e) {
4015
- return /* @__PURE__ */ zi(ms, e);
3933
+ function ds(e) {
3934
+ return /* @__PURE__ */ Fi(us, e);
4016
3935
  }
4017
- var gs = /*@__PURE__*/ b("ZodArray", (e, t) => {
4018
- Po(), ir.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.element = t.element;
3936
+ var fs = /*@__PURE__*/ b("ZodArray", (e, t) => {
3937
+ Ao(), ir.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r), e.element = t.element;
4019
3938
  }, {
4020
3939
  min(e, t) {
4021
- return this.check(/* @__PURE__ */ Ki(e, t));
3940
+ return this.check(/* @__PURE__ */ Hi(e, t));
4022
3941
  },
4023
3942
  nonempty(e) {
4024
- return this.check(/* @__PURE__ */ Ki(1, e));
3943
+ return this.check(/* @__PURE__ */ Hi(1, e));
4025
3944
  },
4026
3945
  max(e, t) {
4027
- return this.check(/* @__PURE__ */ Gi(e, t));
3946
+ return this.check(/* @__PURE__ */ Vi(e, t));
4028
3947
  },
4029
3948
  length(e, t) {
4030
- return this.check(/* @__PURE__ */ qi(e, t));
3949
+ return this.check(/* @__PURE__ */ Ui(e, t));
4031
3950
  },
4032
3951
  unwrap() {
4033
3952
  return this.element;
4034
3953
  }
4035
3954
  });
4036
3955
  function I(e, t) {
4037
- return /* @__PURE__ */ aa(gs, e, t);
3956
+ return /* @__PURE__ */ ta(fs, e, t);
4038
3957
  }
4039
- var _s = /*@__PURE__*/ b("ZodObject", (e, t) => {
4040
- Po(), dr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), Me(e, "shape", (e) => e._zod.def.shape, !1);
3958
+ var ps = /*@__PURE__*/ b("ZodObject", (e, t) => {
3959
+ Ao(), dr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wa(e, t, n, r), Me(e, "shape", (e) => e._zod.def.shape, !1);
4041
3960
  }, {
4042
3961
  keyof() {
4043
3962
  return V(Object.keys(this._zod.def.shape));
@@ -4051,19 +3970,19 @@ var _s = /*@__PURE__*/ b("ZodObject", (e, t) => {
4051
3970
  passthrough() {
4052
3971
  return this.clone({
4053
3972
  ...this._zod.def,
4054
- catchall: ps()
3973
+ catchall: ls()
4055
3974
  });
4056
3975
  },
4057
3976
  loose() {
4058
3977
  return this.clone({
4059
3978
  ...this._zod.def,
4060
- catchall: ps()
3979
+ catchall: ls()
4061
3980
  });
4062
3981
  },
4063
3982
  strict() {
4064
3983
  return this.clone({
4065
3984
  ...this._zod.def,
4066
- catchall: hs()
3985
+ catchall: ds()
4067
3986
  });
4068
3987
  },
4069
3988
  strip() {
@@ -4088,104 +4007,74 @@ var _s = /*@__PURE__*/ b("ZodObject", (e, t) => {
4088
4007
  return le(this, e);
4089
4008
  },
4090
4009
  partial(...e) {
4091
- return pe(Os, this, e[0]);
4010
+ return pe(Ss, this, e[0]);
4092
4011
  },
4093
4012
  exactPartial(...e) {
4094
- return pe(As, this, e[0], "exactPartial");
4013
+ return pe(ws, this, e[0], "exactPartial");
4095
4014
  },
4096
4015
  required(...e) {
4097
- return me(Rs, this, e[0]);
4016
+ return me(Ms, this, e[0]);
4098
4017
  }
4099
4018
  });
4100
4019
  function L(e, t) {
4101
- return new _s({
4020
+ return new ps({
4102
4021
  type: "object",
4103
4022
  shape: e ?? {},
4104
4023
  ...g(t)
4105
4024
  });
4106
4025
  }
4107
4026
  function R(e, t) {
4108
- return new _s({
4027
+ return new ps({
4109
4028
  type: "object",
4110
4029
  shape: e,
4111
- catchall: hs(),
4030
+ catchall: ds(),
4112
4031
  ...g(t)
4113
4032
  });
4114
4033
  }
4115
- var vs = /*@__PURE__*/ b("ZodUnion", (e, t) => {
4116
- pr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ya(e, t, n, r), e.options = t.options;
4034
+ var ms = /*@__PURE__*/ b("ZodUnion", (e, t) => {
4035
+ pr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e.options = t.options;
4117
4036
  });
4118
4037
  function z(e, t) {
4119
- return new vs({
4038
+ return new ms({
4120
4039
  type: "union",
4121
4040
  options: e,
4122
4041
  ...g(t)
4123
4042
  });
4124
4043
  }
4125
- var ys = /*@__PURE__*/ b("ZodIntersection", (e, t) => {
4126
- mr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r);
4044
+ var hs = /*@__PURE__*/ b("ZodIntersection", (e, t) => {
4045
+ mr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r);
4127
4046
  });
4128
- function bs(e, t) {
4129
- return new ys({
4047
+ function gs(e, t) {
4048
+ return new hs({
4130
4049
  type: "intersection",
4131
4050
  left: e,
4132
4051
  right: t
4133
4052
  });
4134
4053
  }
4135
- var xs = /*@__PURE__*/ b("ZodTuple", (e, t) => {
4136
- Po(), _r.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Za(e, t, n, r);
4137
- }, {
4138
- rest(e) {
4139
- return this.clone({
4140
- ...this._zod.def,
4141
- rest: e
4142
- });
4143
- },
4144
- partial() {
4145
- let e = this._zod.def;
4146
- if (e.checks?.length) throw Error(".partial() cannot be used on tuple schemas containing refinements");
4147
- return this.clone({
4148
- ...e,
4149
- items: e.items.map((e) => new Os({
4150
- type: "optional",
4151
- innerType: e
4152
- }))
4153
- });
4154
- }
4155
- });
4156
- function Ss(e, t, n) {
4157
- let r = t instanceof w;
4158
- return new xs({
4159
- type: "tuple",
4160
- items: e,
4161
- rest: r ? t : null,
4162
- ...g(r ? n : t)
4163
- });
4164
- }
4165
- var Cs = /*@__PURE__*/ b("ZodRecord", (e, t) => {
4166
- Po(), xr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => to(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4054
+ var _s = /*@__PURE__*/ b("ZodRecord", (e, t) => {
4055
+ Ao(), _r.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Za(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4167
4056
  });
4168
4057
  function B(e, t, n) {
4169
- return !t || !t._zod ? new Cs({
4058
+ return !t || !t._zod ? new _s({
4170
4059
  type: "record",
4171
4060
  keyType: M(),
4172
4061
  valueType: e,
4173
4062
  ...g(t)
4174
- }) : new Cs({
4063
+ }) : new _s({
4175
4064
  type: "record",
4176
4065
  keyType: e,
4177
4066
  valueType: t,
4178
4067
  ...g(n)
4179
4068
  });
4180
4069
  }
4181
- var ws = /*@__PURE__*/ b("ZodEnum", (e, t) => {
4182
- Sr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fa(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4070
+ var vs = /*@__PURE__*/ b("ZodEnum", (e, t) => {
4071
+ vr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4183
4072
  let n = new Set(Object.keys(t.entries));
4184
4073
  e.extract = (e, r) => {
4185
4074
  let i = {};
4186
4075
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
4187
4076
  else throw Error(`Key ${r} not found in enum`);
4188
- return new ws({
4077
+ return new vs({
4189
4078
  ...t,
4190
4079
  checks: [],
4191
4080
  ...g(r),
@@ -4195,7 +4084,7 @@ var ws = /*@__PURE__*/ b("ZodEnum", (e, t) => {
4195
4084
  let i = { ...t.entries };
4196
4085
  for (let t of e) if (n.has(t)) delete i[t];
4197
4086
  else throw Error(`Key ${t} not found in enum`);
4198
- return new ws({
4087
+ return new vs({
4199
4088
  ...t,
4200
4089
  checks: [],
4201
4090
  ...g(r),
@@ -4204,27 +4093,27 @@ var ws = /*@__PURE__*/ b("ZodEnum", (e, t) => {
4204
4093
  };
4205
4094
  });
4206
4095
  function V(e, t) {
4207
- return new ws({
4096
+ return new vs({
4208
4097
  type: "enum",
4209
4098
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
4210
4099
  ...g(t)
4211
4100
  });
4212
4101
  }
4213
- var Ts = /*@__PURE__*/ b("ZodLiteral", (e, t) => {
4214
- Cr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4102
+ var ys = /*@__PURE__*/ b("ZodLiteral", (e, t) => {
4103
+ yr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4215
4104
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4216
4105
  return t.values[0];
4217
4106
  } });
4218
4107
  });
4219
4108
  function H(e, t) {
4220
- return new Ts({
4109
+ return new ys({
4221
4110
  type: "literal",
4222
4111
  values: Array.isArray(e) ? e : [e],
4223
4112
  ...g(t)
4224
4113
  });
4225
4114
  }
4226
- var Es = /*@__PURE__*/ b("ZodTransform", (e, t) => {
4227
- Po(), wr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r), e._zod.parse = (n, r) => {
4115
+ var bs = /*@__PURE__*/ b("ZodTransform", (e, t) => {
4116
+ Ao(), br.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), e._zod.parse = (n, r) => {
4228
4117
  if (r.direction === "backward") throw new Be(e.constructor.name);
4229
4118
  n.addIssue = (r) => {
4230
4119
  if (typeof r == "string") n.issues.push(Ce(r, n.value, t));
@@ -4237,44 +4126,44 @@ var Es = /*@__PURE__*/ b("ZodTransform", (e, t) => {
4237
4126
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
4238
4127
  };
4239
4128
  });
4240
- function Ds(e) {
4241
- return new Es({
4129
+ function xs(e) {
4130
+ return new bs({
4242
4131
  type: "transform",
4243
4132
  transform: e
4244
4133
  });
4245
4134
  }
4246
- var Os = /*@__PURE__*/ b("ZodOptional", (e, t) => {
4247
- Er.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => po(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4135
+ var Ss = /*@__PURE__*/ b("ZodOptional", (e, t) => {
4136
+ Sr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4248
4137
  });
4249
- function ks(e) {
4250
- return new Os({
4138
+ function Cs(e) {
4139
+ return new Ss({
4251
4140
  type: "optional",
4252
4141
  innerType: e
4253
4142
  });
4254
4143
  }
4255
- var As = /*@__PURE__*/ b("ZodExactOptional", (e, t) => {
4256
- Dr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => po(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4144
+ var ws = /*@__PURE__*/ b("ZodExactOptional", (e, t) => {
4145
+ Cr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4257
4146
  });
4258
- function js(e) {
4259
- return new As({
4147
+ function Ts(e) {
4148
+ return new ws({
4260
4149
  type: "optional",
4261
4150
  innerType: e
4262
4151
  });
4263
4152
  }
4264
- var Ms = /*@__PURE__*/ b("ZodNullable", (e, t) => {
4265
- Or.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4153
+ var Es = /*@__PURE__*/ b("ZodNullable", (e, t) => {
4154
+ wr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4266
4155
  });
4267
- function Ns(e) {
4268
- return new Ms({
4156
+ function Ds(e) {
4157
+ return new Es({
4269
4158
  type: "nullable",
4270
4159
  innerType: e
4271
4160
  });
4272
4161
  }
4273
- var Ps = /*@__PURE__*/ b("ZodDefault", (e, t) => {
4274
- kr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4162
+ var Os = /*@__PURE__*/ b("ZodDefault", (e, t) => {
4163
+ Tr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4275
4164
  });
4276
- function Fs(e, t) {
4277
- return new Ps({
4165
+ function ks(e, t) {
4166
+ return new Os({
4278
4167
  type: "default",
4279
4168
  innerType: e,
4280
4169
  get defaultValue() {
@@ -4282,11 +4171,11 @@ function Fs(e, t) {
4282
4171
  }
4283
4172
  });
4284
4173
  }
4285
- var Is = /*@__PURE__*/ b("ZodPrefault", (e, t) => {
4286
- jr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => so(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4174
+ var As = /*@__PURE__*/ b("ZodPrefault", (e, t) => {
4175
+ Dr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4287
4176
  });
4288
- function Ls(e, t) {
4289
- return new Is({
4177
+ function js(e, t) {
4178
+ return new As({
4290
4179
  type: "prefault",
4291
4180
  innerType: e,
4292
4181
  get defaultValue() {
@@ -4294,81 +4183,81 @@ function Ls(e, t) {
4294
4183
  }
4295
4184
  });
4296
4185
  }
4297
- var Rs = /*@__PURE__*/ b("ZodNonOptional", (e, t) => {
4298
- Mr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4186
+ var Ms = /*@__PURE__*/ b("ZodNonOptional", (e, t) => {
4187
+ Or.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4299
4188
  });
4300
- function zs(e, t) {
4301
- return new Rs({
4189
+ function Ns(e, t) {
4190
+ return new Ms({
4302
4191
  type: "nonoptional",
4303
4192
  innerType: e,
4304
4193
  ...g(t)
4305
4194
  });
4306
4195
  }
4307
- var Bs = /*@__PURE__*/ b("ZodCatch", (e, t) => {
4308
- Fr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4196
+ var Ps = /*@__PURE__*/ b("ZodCatch", (e, t) => {
4197
+ jr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4309
4198
  });
4310
- function Vs(e, t) {
4311
- return new Bs({
4199
+ function Fs(e, t) {
4200
+ return new Ps({
4312
4201
  type: "catch",
4313
4202
  innerType: e,
4314
4203
  catchValue: typeof t == "function" ? t : Pe(t)
4315
4204
  });
4316
4205
  }
4317
- var Hs = /*@__PURE__*/ b("ZodPipe", (e, t) => {
4318
- Ir.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.in = t.in, e.out = t.out;
4206
+ var Is = /*@__PURE__*/ b("ZodPipe", (e, t) => {
4207
+ Mr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => ao(e, t, n, r), e.in = t.in, e.out = t.out;
4319
4208
  });
4320
- function Us(e, t) {
4321
- return new Hs({
4209
+ function Ls(e, t) {
4210
+ return new Is({
4322
4211
  type: "pipe",
4323
4212
  in: e,
4324
4213
  out: t
4325
4214
  });
4326
4215
  }
4327
- var Ws = /*@__PURE__*/ b("ZodReadonly", (e, t) => {
4328
- Rr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => uo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4216
+ var Rs = /*@__PURE__*/ b("ZodReadonly", (e, t) => {
4217
+ Pr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4329
4218
  });
4330
- function Gs(e) {
4331
- return new Ws({
4219
+ function zs(e) {
4220
+ return new Rs({
4332
4221
  type: "readonly",
4333
4222
  innerType: e
4334
4223
  });
4335
4224
  }
4336
- var Ks = /*@__PURE__*/ b("ZodLazy", (e, t) => {
4337
- Br.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => mo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4225
+ var Bs = /*@__PURE__*/ b("ZodLazy", (e, t) => {
4226
+ Ir.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4338
4227
  });
4339
- function qs(e) {
4340
- return new Ks({
4228
+ function Vs(e) {
4229
+ return new Bs({
4341
4230
  type: "lazy",
4342
4231
  getter: e
4343
4232
  });
4344
4233
  }
4345
- var Js = /*@__PURE__*/ b("ZodCustom", (e, t) => {
4346
- Vr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r);
4234
+ var Hs = /*@__PURE__*/ b("ZodCustom", (e, t) => {
4235
+ Lr.init(e, t), j.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r);
4347
4236
  });
4348
- function Ys(e, t = {}) {
4349
- return /* @__PURE__ */ oa(Js, e, t);
4237
+ function Us(e, t = {}) {
4238
+ return /* @__PURE__ */ na(Hs, e, t);
4350
4239
  }
4351
- function Xs(e, t) {
4352
- return /* @__PURE__ */ sa(e, t);
4240
+ function Ws(e, t) {
4241
+ return /* @__PURE__ */ ra(e, t);
4353
4242
  }
4354
- function Zs(e) {
4355
- let t = qs(() => z([
4243
+ function Gs(e) {
4244
+ let t = Vs(() => z([
4356
4245
  M(e),
4357
4246
  P(),
4358
4247
  F(),
4359
- ds(),
4248
+ ss(),
4360
4249
  I(t),
4361
4250
  B(M(), t)
4362
4251
  ]));
4363
4252
  return t;
4364
4253
  }
4365
- function Qs(e, t = 0) {
4254
+ function Ks(e, t = 0) {
4366
4255
  if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
4367
- if (typeof e == "object" && e) for (let n of Object.values(e)) Qs(n, t + 1);
4256
+ if (typeof e == "object" && e) for (let n of Object.values(e)) Ks(n, t + 1);
4368
4257
  }
4369
4258
  //#endregion
4370
4259
  //#region src/flow/common/triggerScheduleSchema.ts
4371
- var $s = I(z([L({
4260
+ var qs = I(z([L({
4372
4261
  type: H("cron"),
4373
4262
  expression: M(),
4374
4263
  timezone: M()
@@ -4382,38 +4271,38 @@ var $s = I(z([L({
4382
4271
  "week"
4383
4272
  ]),
4384
4273
  value: P()
4385
- })])), U = M(), W = Zs(), ec = I(U), tc = L({
4274
+ })])), U = M(), W = Gs(), Js = I(U), Ys = L({
4386
4275
  description: U.optional(),
4387
4276
  jsonSchema: W,
4388
4277
  nullable: F(),
4389
4278
  handle: U
4390
- }), G = tc.extend({ value: W.optional() }), nc = L({
4279
+ }), G = Ys.extend({ value: W.optional() }), Xs = L({
4391
4280
  collapsed: F().optional(),
4392
4281
  group: U
4393
- }), rc = L({
4282
+ }), Zs = L({
4394
4283
  kind: H("node"),
4395
4284
  nodeId: U,
4396
4285
  output: U
4397
- }), ic = L({
4286
+ }), Qs = L({
4398
4287
  kind: H("flow"),
4399
4288
  input: U
4400
- }), ac = z([
4401
- rc,
4402
- ic,
4289
+ }), $s = z([
4290
+ Zs,
4291
+ Qs,
4403
4292
  L({
4404
4293
  kind: H("binding"),
4405
4294
  bindingId: U
4406
4295
  })
4407
- ]), oc = z([L({
4296
+ ]), ec = z([L({
4408
4297
  kind: H("value"),
4409
4298
  value: W
4410
4299
  }), L({
4411
4300
  kind: H("sources"),
4412
- sources: I(ac)
4413
- })]), sc = B(U, oc), cc = {
4414
- inputs: I(z([G, nc])),
4415
- outputs: I(z([tc, nc]))
4416
- }, lc = L({
4301
+ sources: I($s)
4302
+ })]), tc = B(U, ec), nc = {
4303
+ inputs: I(z([G, Xs])),
4304
+ outputs: I(z([Ys, Xs]))
4305
+ }, rc = L({
4417
4306
  kind: H("connector"),
4418
4307
  action: U,
4419
4308
  connectionId: U.optional(),
@@ -4421,19 +4310,19 @@ var $s = I(z([L({
4421
4310
  connectionId: U,
4422
4311
  alias: U.optional()
4423
4312
  }))
4424
- }), uc = L({
4425
- ...cc,
4313
+ }), ic = L({
4314
+ ...nc,
4426
4315
  name: U,
4427
4316
  moduleId: U,
4428
- capabilities: I(lc).optional()
4429
- }), dc = z([L({
4317
+ capabilities: I(rc).optional()
4318
+ }), ac = z([L({
4430
4319
  kind: H("value"),
4431
4320
  value: W
4432
4321
  }), L({
4433
4322
  kind: H("input"),
4434
4323
  input: U
4435
- })]), fc = z([dc, L({ kind: H("model") })]), pc = L({
4436
- ...cc,
4324
+ })]), oc = z([ac, L({ kind: H("model") })]), sc = L({
4325
+ ...nc,
4437
4326
  name: U,
4438
4327
  executor: z([
4439
4328
  L({
@@ -4449,7 +4338,7 @@ var $s = I(z([L({
4449
4338
  kind: H("agent"),
4450
4339
  code: F().optional(),
4451
4340
  model: U,
4452
- prompt: dc,
4341
+ prompt: ac,
4453
4342
  system: U,
4454
4343
  maxRounds: P(),
4455
4344
  tools: I(L({
@@ -4459,16 +4348,16 @@ var $s = I(z([L({
4459
4348
  action: U,
4460
4349
  connectionId: U.optional(),
4461
4350
  approval: F(),
4462
- inputs: I(G.extend({ source: fc }))
4351
+ inputs: I(G.extend({ source: oc }))
4463
4352
  })),
4464
4353
  notification: L({
4465
4354
  taskId: U,
4466
4355
  messageHandle: U,
4467
- inputs: B(U, dc)
4356
+ inputs: B(U, ac)
4468
4357
  }).optional()
4469
4358
  })
4470
4359
  ])
4471
- }), mc = {
4360
+ }), cc = {
4472
4361
  input: G,
4473
4362
  cases: I(L({
4474
4363
  output: U,
@@ -4501,29 +4390,26 @@ var $s = I(z([L({
4501
4390
  }))
4502
4391
  })),
4503
4392
  defaultOutput: U.optional()
4504
- }, hc = {
4505
- actions: z([Ss([H("continue")]), Ss([H("approve"), H("reject")])]),
4506
- prompt: U
4507
- }, gc = {
4393
+ }, lc = { prompt: U }, uc = {
4508
4394
  bodyFields: I(G),
4509
4395
  options: L({
4510
- allowedMethods: ec.optional(),
4511
- allowedOrigins: ec.optional(),
4396
+ allowedMethods: Js.optional(),
4397
+ allowedOrigins: Js.optional(),
4512
4398
  noResponseBody: F().optional(),
4513
4399
  responseData: U.optional(),
4514
4400
  responseHeaders: B(U, U).optional(),
4515
4401
  responseStatusCode: P().optional()
4516
4402
  }).optional()
4517
- }, _c = {
4403
+ }, dc = {
4518
4404
  configSchema: W,
4519
4405
  definitionVersion: H(2),
4520
4406
  description: U,
4521
4407
  displayName: U,
4522
4408
  key: U,
4523
4409
  name: U,
4524
- outputs: I(tc).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4410
+ outputs: I(Ys).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4525
4411
  provider: U
4526
- }, vc = L({
4412
+ }, fc = L({
4527
4413
  body: L({
4528
4414
  allowArray: F(),
4529
4415
  allowEmpty: F(),
@@ -4543,26 +4429,26 @@ var $s = I(z([L({
4543
4429
  "PUT"
4544
4430
  ])),
4545
4431
  successStatus: P()
4546
- }), yc = {
4432
+ }), pc = {
4547
4433
  name: U,
4548
4434
  description: U.optional(),
4549
4435
  icon: U.optional()
4550
4436
  }, K = {
4551
4437
  maxExecutions: P().int().positive().max(2 ** 53 - 1).optional(),
4552
- inputs: sc,
4438
+ inputs: tc,
4553
4439
  name: U.optional(),
4554
4440
  description: U.optional(),
4555
4441
  icon: U.optional(),
4556
4442
  timeoutMs: P().optional()
4557
- }, bc = z([
4443
+ }, mc = z([
4558
4444
  L({
4559
4445
  ...K,
4560
4446
  kind: H("condition"),
4561
- ...mc
4447
+ ...cc
4562
4448
  }),
4563
4449
  L({
4564
4450
  ...K,
4565
- inputs: ps().transform(() => ({})).default({}),
4451
+ inputs: ls().transform(() => ({})).default({}),
4566
4452
  kind: H("value"),
4567
4453
  values: I(G)
4568
4454
  }),
@@ -4574,7 +4460,7 @@ var $s = I(z([L({
4574
4460
  L({
4575
4461
  ...K,
4576
4462
  kind: H("task"),
4577
- task: uc,
4463
+ task: ic,
4578
4464
  additionalInputs: I(G).optional()
4579
4465
  }),
4580
4466
  L({
@@ -4583,90 +4469,96 @@ var $s = I(z([L({
4583
4469
  taskId: U,
4584
4470
  additionalInputs: I(G).optional()
4585
4471
  }),
4472
+ R({
4473
+ ...K,
4474
+ kind: H("approval"),
4475
+ input: G,
4476
+ ...lc
4477
+ }).omit({ timeoutMs: !0 }),
4586
4478
  R({
4587
4479
  ...K,
4588
4480
  kind: H("wait"),
4589
4481
  input: G,
4590
- ...hc
4482
+ ...lc
4591
4483
  }).omit({ timeoutMs: !0 }),
4592
4484
  L({
4593
- ...yc,
4485
+ ...pc,
4594
4486
  kind: H("manual")
4595
4487
  }),
4596
4488
  L({
4597
- ...yc,
4489
+ ...pc,
4598
4490
  kind: H("webhook"),
4599
- ...gc
4491
+ ...uc
4600
4492
  }),
4601
4493
  L({
4602
- ...yc,
4494
+ ...pc,
4603
4495
  kind: H("cron"),
4604
- cronTimes: $s
4496
+ cronTimes: qs
4605
4497
  }),
4606
4498
  L({
4607
- ...yc,
4499
+ ...pc,
4608
4500
  kind: H("poll"),
4609
4501
  bindingId: U,
4610
4502
  config: B(U, W),
4611
4503
  definition: L({
4612
- ..._c,
4504
+ ...dc,
4613
4505
  type: H("poll")
4614
4506
  }),
4615
- pollTimes: $s
4507
+ pollTimes: qs
4616
4508
  }),
4617
4509
  L({
4618
- ...yc,
4510
+ ...pc,
4619
4511
  kind: H("integration"),
4620
4512
  bindingId: U,
4621
4513
  config: B(U, W),
4622
4514
  definition: L({
4623
- ..._c,
4515
+ ...dc,
4624
4516
  type: H("integration"),
4625
- endpoint: vc
4517
+ endpoint: fc
4626
4518
  })
4627
4519
  })
4628
- ]), xc = z([L({ kind: H("flow") }), L({
4520
+ ]), hc = z([L({ kind: H("flow") }), L({
4629
4521
  kind: H("subflow"),
4630
4522
  id: U
4631
- })]), Sc = L({
4523
+ })]), gc = L({
4632
4524
  source: U,
4633
4525
  target: U,
4634
4526
  sourceHandle: U.optional()
4635
4527
  }), q = {
4636
4528
  nodeId: U,
4637
- target: xc
4638
- }, Cc = L({
4529
+ target: hc
4530
+ }, _c = L({
4639
4531
  name: U,
4640
4532
  inputs: I(G),
4641
- outputs: I(tc.extend({ sources: I(z([rc, ic])) }))
4642
- }), wc = L({
4643
- nodes: B(U, bc),
4644
- edges: I(Sc).default([])
4645
- }), Tc = L({
4533
+ outputs: I(Ys.extend({ sources: I(z([Zs, Qs])) }))
4534
+ }), vc = L({
4535
+ nodes: B(U, mc),
4536
+ edges: I(gc).default([])
4537
+ }), yc = L({
4646
4538
  kind: V(["connection", "variable"]),
4647
4539
  target: U
4648
- }), Ec = L({
4540
+ }), bc = L({
4649
4541
  name: U,
4650
- imports: ec,
4542
+ imports: Js,
4651
4543
  source: U
4652
- }), Dc = L({
4653
- bindings: B(U, Tc),
4654
- graph: wc,
4655
- subflows: B(U, Cc.extend({ graph: wc })),
4656
- tasks: B(U, pc)
4544
+ }), xc = L({
4545
+ bindings: B(U, yc),
4546
+ graph: vc,
4547
+ subflows: B(U, _c.extend({ graph: vc })),
4548
+ tasks: B(U, sc)
4657
4549
  });
4658
4550
  L({
4659
4551
  modelVersion: H(2),
4660
- document: Dc,
4661
- modules: B(U, Ec)
4552
+ document: xc,
4553
+ modules: B(U, bc)
4662
4554
  }).extend({
4663
4555
  kind: H("open-flow-flow-revision"),
4664
4556
  version: H(1)
4665
4557
  });
4666
- var Oc = {
4558
+ var Sc = {
4667
4559
  "binding.create": {
4668
4560
  bindingId: U,
4669
- binding: Tc
4561
+ binding: yc
4670
4562
  },
4671
4563
  "binding.delete": { bindingId: U },
4672
4564
  "binding.target.set": {
@@ -4675,16 +4567,16 @@ var Oc = {
4675
4567
  value: U
4676
4568
  },
4677
4569
  "graph.edge.connect": {
4678
- target: xc,
4679
- edge: Sc
4570
+ target: hc,
4571
+ edge: gc
4680
4572
  },
4681
4573
  "graph.edge.disconnect": {
4682
- target: xc,
4683
- edge: Sc
4574
+ target: hc,
4575
+ edge: gc
4684
4576
  },
4685
4577
  "graph.node.create": {
4686
4578
  ...q,
4687
- node: bc
4579
+ node: mc
4688
4580
  },
4689
4581
  "graph.node.delete": q,
4690
4582
  "graph.node.field.set": z([
@@ -4717,8 +4609,8 @@ var Oc = {
4717
4609
  "graph.node.input.set": {
4718
4610
  ...q,
4719
4611
  handle: U,
4720
- before: oc.optional(),
4721
- value: oc.optional()
4612
+ before: ec.optional(),
4613
+ value: ec.optional()
4722
4614
  },
4723
4615
  "graph.node.additional-inputs.set": {
4724
4616
  ...q,
@@ -4727,30 +4619,30 @@ var Oc = {
4727
4619
  },
4728
4620
  "graph.node.condition.set": {
4729
4621
  ...q,
4730
- before: L(mc),
4731
- value: L(mc)
4622
+ before: L(cc),
4623
+ value: L(cc)
4732
4624
  },
4733
4625
  "graph.node.values.set": {
4734
4626
  ...q,
4735
4627
  before: I(G),
4736
4628
  value: I(G)
4737
4629
  },
4738
- "graph.node.wait.set": {
4630
+ "graph.node.resolution.set": {
4739
4631
  ...q,
4740
4632
  target: L({ kind: H("flow") }),
4741
- before: L(hc),
4742
- value: L(hc)
4633
+ before: L(lc),
4634
+ value: L(lc)
4743
4635
  },
4744
4636
  "graph.node.webhook.set": {
4745
4637
  ...q,
4746
4638
  target: L({ kind: H("flow") }),
4747
- before: L(gc),
4748
- value: L(gc)
4639
+ before: L(uc),
4640
+ value: L(uc)
4749
4641
  },
4750
4642
  "graph.node.task.ports.set": {
4751
4643
  ...q,
4752
- before: L(cc),
4753
- value: L(cc)
4644
+ before: L(nc),
4645
+ value: L(nc)
4754
4646
  },
4755
4647
  "graph.node.task.name.set": {
4756
4648
  ...q,
@@ -4759,8 +4651,8 @@ var Oc = {
4759
4651
  },
4760
4652
  "graph.node.task.capabilities.set": {
4761
4653
  ...q,
4762
- before: I(lc).optional(),
4763
- value: I(lc).optional()
4654
+ before: I(rc).optional(),
4655
+ value: I(rc).optional()
4764
4656
  },
4765
4657
  "graph.trigger.config.set": {
4766
4658
  nodeId: U,
@@ -4770,12 +4662,12 @@ var Oc = {
4770
4662
  },
4771
4663
  "graph.trigger.schedule.set": {
4772
4664
  nodeId: U,
4773
- before: $s,
4774
- value: $s
4665
+ before: qs,
4666
+ value: qs
4775
4667
  },
4776
4668
  "module.create": {
4777
4669
  moduleId: U,
4778
- module: Ec
4670
+ module: bc
4779
4671
  },
4780
4672
  "module.delete": { moduleId: U },
4781
4673
  "module.rename": {
@@ -4785,24 +4677,24 @@ var Oc = {
4785
4677
  },
4786
4678
  "module.source.replace": {
4787
4679
  moduleId: U,
4788
- beforeImports: ec,
4680
+ beforeImports: Js,
4789
4681
  beforeSource: U,
4790
- imports: ec,
4682
+ imports: Js,
4791
4683
  source: U
4792
4684
  },
4793
4685
  "subflow.create": {
4794
4686
  subflowId: U,
4795
- subflow: Cc.extend({ graph: wc })
4687
+ subflow: _c.extend({ graph: vc })
4796
4688
  },
4797
4689
  "subflow.definition.set": {
4798
4690
  subflowId: U,
4799
- before: Cc,
4800
- definition: Cc
4691
+ before: _c,
4692
+ definition: _c
4801
4693
  },
4802
4694
  "subflow.delete": { subflowId: U },
4803
4695
  "task.create": {
4804
4696
  taskId: U,
4805
- task: pc
4697
+ task: sc
4806
4698
  },
4807
4699
  "task.delete": { taskId: U },
4808
4700
  "task.connector.connection.set": {
@@ -4812,8 +4704,8 @@ var Oc = {
4812
4704
  },
4813
4705
  "task.agent.set": {
4814
4706
  taskId: U,
4815
- before: pc,
4816
- value: pc
4707
+ before: sc,
4708
+ value: sc
4817
4709
  },
4818
4710
  "task.llm.mode.set": {
4819
4711
  taskId: U,
@@ -4825,28 +4717,28 @@ var Oc = {
4825
4717
  before: U,
4826
4718
  value: U
4827
4719
  }
4828
- }, kc = new Map(Object.entries(Oc).map(([e, t]) => [e, t instanceof j ? t : L({
4720
+ }, Cc = new Map(Object.entries(Sc).map(([e, t]) => [e, t instanceof j ? t : L({
4829
4721
  kind: H(e),
4830
4722
  ...t
4831
- })])), Ac = I(z([...kc.values()])).min(1);
4832
- function jc(e, t, n) {
4723
+ })])), wc = I(z([...Cc.values()])).min(1);
4724
+ function Tc(e, t, n) {
4833
4725
  try {
4834
4726
  return n(e);
4835
4727
  } catch (e) {
4836
- throw e instanceof bo ? TypeError(`operations[${t}]: ${e.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; ")}`, { cause: e }) : e;
4728
+ throw e instanceof go ? TypeError(`operations[${t}]: ${e.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; ")}`, { cause: e }) : e;
4837
4729
  }
4838
4730
  }
4839
- function Mc(e, t) {
4840
- let { kind: n } = jc(e, t, L({ kind: U }).parse), r = kc.get(n);
4731
+ function Ec(e, t) {
4732
+ let { kind: n } = Tc(e, t, L({ kind: U }).parse), r = Cc.get(n);
4841
4733
  if (r == null) throw TypeError(`operations[${t}]: Unknown operation ${JSON.stringify(n)}.`);
4842
- return jc(e, t, r.parse);
4734
+ return Tc(e, t, r.parse);
4843
4735
  }
4844
- function Nc(e) {
4845
- let t = e == null ? Ac : kc.get(e);
4736
+ function Dc(e) {
4737
+ let t = e == null ? wc : Cc.get(e);
4846
4738
  if (t == null) throw TypeError(`Unknown operation ${JSON.stringify(e)}.`);
4847
- return go(t, { io: "input" });
4739
+ return fo(t, { io: "input" });
4848
4740
  }
4849
- function Pc(e) {
4741
+ function Oc(e) {
4850
4742
  let t = e.trim();
4851
4743
  if (t.length == 0) return "empty";
4852
4744
  if (t.length > 80) return "tooLong";
@@ -4858,8 +4750,8 @@ function Pc(e) {
4858
4750
  }
4859
4751
  //#endregion
4860
4752
  //#region src/flow/common/nodeChanges.ts
4861
- var Fc = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
4862
- function Ic(e, t, n, r = void 0, i = {
4753
+ var kc = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
4754
+ function Ac(e, t, n, r = void 0, i = {
4863
4755
  inputs: [{
4864
4756
  handle: "value",
4865
4757
  jsonSchema: {},
@@ -4877,7 +4769,7 @@ function Ic(e, t, n, r = void 0, i = {
4877
4769
  module: {
4878
4770
  ...r ?? {
4879
4771
  imports: [],
4880
- source: Fc
4772
+ source: kc
4881
4773
  },
4882
4774
  name: n
4883
4775
  },
@@ -4885,7 +4777,7 @@ function Ic(e, t, n, r = void 0, i = {
4885
4777
  }, {
4886
4778
  kind: "graph.node.create",
4887
4779
  node: {
4888
- inputs: Wc(i.inputs),
4780
+ inputs: zc(i.inputs),
4889
4781
  kind: "task",
4890
4782
  name: n,
4891
4783
  task: {
@@ -4900,7 +4792,7 @@ function Ic(e, t, n, r = void 0, i = {
4900
4792
  target: e
4901
4793
  }];
4902
4794
  }
4903
- function Lc(e, t, n) {
4795
+ function jc(e, t, n) {
4904
4796
  return [{
4905
4797
  kind: "task.create",
4906
4798
  task: n,
@@ -4908,7 +4800,7 @@ function Lc(e, t, n) {
4908
4800
  }, {
4909
4801
  kind: "graph.node.create",
4910
4802
  node: {
4911
- inputs: Wc(n.inputs),
4803
+ inputs: zc(n.inputs),
4912
4804
  kind: "task",
4913
4805
  name: n.name,
4914
4806
  taskId: t.taskId
@@ -4917,9 +4809,9 @@ function Lc(e, t, n) {
4917
4809
  target: e
4918
4810
  }];
4919
4811
  }
4920
- function Rc(e, t, n, r, i, a = {}) {
4812
+ function Mc(e, t, n, r, i, a = {}) {
4921
4813
  let o = a.inputs ?? {};
4922
- return Lc(e, t, {
4814
+ return jc(e, t, {
4923
4815
  executor: {
4924
4816
  kind: "llm",
4925
4817
  mode: r
@@ -4932,13 +4824,13 @@ function Rc(e, t, n, r, i, a = {}) {
4932
4824
  type: "array"
4933
4825
  },
4934
4826
  nullable: !0,
4935
- value: Gc(o, "messages", null)
4827
+ value: Bc(o, "messages", null)
4936
4828
  },
4937
4829
  {
4938
4830
  handle: "input",
4939
4831
  jsonSchema: { type: "string" },
4940
4832
  nullable: !1,
4941
- value: Gc(o, "input", "Alex")
4833
+ value: Bc(o, "input", "Alex")
4942
4834
  },
4943
4835
  {
4944
4836
  handle: "template",
@@ -4948,7 +4840,7 @@ function Rc(e, t, n, r, i, a = {}) {
4948
4840
  type: "array"
4949
4841
  },
4950
4842
  nullable: !1,
4951
- value: Gc(o, "template", [{
4843
+ value: Bc(o, "template", [{
4952
4844
  content: "Hello, I'm {{input}}",
4953
4845
  role: "user"
4954
4846
  }])
@@ -4957,7 +4849,7 @@ function Rc(e, t, n, r, i, a = {}) {
4957
4849
  handle: "model",
4958
4850
  jsonSchema: { type: "object" },
4959
4851
  nullable: !1,
4960
- value: Gc(o, "model", { model: "deepseek-v4-flash" })
4852
+ value: Bc(o, "model", { model: "deepseek-v4-flash" })
4961
4853
  }
4962
4854
  ],
4963
4855
  name: n,
@@ -4970,7 +4862,7 @@ function Rc(e, t, n, r, i, a = {}) {
4970
4862
  }]
4971
4863
  });
4972
4864
  }
4973
- function zc(e, t, n) {
4865
+ function Nc(e, t, n) {
4974
4866
  return [{
4975
4867
  kind: "graph.node.create",
4976
4868
  node: {
@@ -5000,7 +4892,7 @@ function zc(e, t, n) {
5000
4892
  target: e
5001
4893
  }];
5002
4894
  }
5003
- function Bc(e, t, n) {
4895
+ function Pc(e, t, n) {
5004
4896
  return [{
5005
4897
  kind: "graph.node.create",
5006
4898
  node: {
@@ -5018,11 +4910,10 @@ function Bc(e, t, n) {
5018
4910
  target: e
5019
4911
  }];
5020
4912
  }
5021
- function Vc(e, t, n) {
4913
+ function Fc(e, t, n) {
5022
4914
  return [{
5023
4915
  kind: "graph.node.create",
5024
4916
  node: {
5025
- actions: ["continue"],
5026
4917
  input: {
5027
4918
  handle: "value",
5028
4919
  jsonSchema: {},
@@ -5041,7 +4932,29 @@ function Vc(e, t, n) {
5041
4932
  target: e
5042
4933
  }];
5043
4934
  }
5044
- function Hc(e, t, n) {
4935
+ function Ic(e, t, n) {
4936
+ return [{
4937
+ kind: "graph.node.create",
4938
+ node: {
4939
+ input: {
4940
+ handle: "value",
4941
+ jsonSchema: {},
4942
+ nullable: !0,
4943
+ value: null
4944
+ },
4945
+ inputs: { value: {
4946
+ kind: "value",
4947
+ value: null
4948
+ } },
4949
+ kind: "approval",
4950
+ name: n,
4951
+ prompt: n
4952
+ },
4953
+ nodeId: t,
4954
+ target: e
4955
+ }];
4956
+ }
4957
+ function Lc(e, t, n) {
5045
4958
  return [{
5046
4959
  kind: "graph.node.create",
5047
4960
  node: n,
@@ -5049,7 +4962,7 @@ function Hc(e, t, n) {
5049
4962
  target: e
5050
4963
  }];
5051
4964
  }
5052
- function Uc(e, t, n, r) {
4965
+ function Rc(e, t, n, r) {
5053
4966
  let i = r.name ?? n.displayName, a = n.type == "poll" ? {
5054
4967
  bindingId: t.bindingId,
5055
4968
  config: r.config,
@@ -5082,74 +4995,74 @@ function Uc(e, t, n, r) {
5082
4995
  target: e
5083
4996
  }];
5084
4997
  }
5085
- function Wc(e) {
4998
+ function zc(e) {
5086
4999
  return Object.fromEntries(e.flatMap((e) => "handle" in e && Object.hasOwn(e, "value") ? [[e.handle, {
5087
5000
  kind: "value",
5088
5001
  value: e.value
5089
5002
  }]] : []));
5090
5003
  }
5091
- function Gc(e, t, n) {
5004
+ function Bc(e, t, n) {
5092
5005
  return e != null && Object.hasOwn(e, t) ? e[t] : n;
5093
5006
  }
5094
5007
  //#endregion
5095
5008
  //#region src/control/common/draftOperations.ts
5096
- var J = M().min(1), Kc = Zs(), qc = R({
5009
+ var J = M().min(1), Vc = Gs(), Hc = R({
5097
5010
  kind: H("graph.trigger.create"),
5098
5011
  nodeId: J,
5099
5012
  bindingId: J,
5100
5013
  key: J,
5101
5014
  connectionId: J.optional(),
5102
5015
  name: J.optional(),
5103
- config: B(J, Kc),
5104
- schedule: $s.readonly().optional()
5016
+ config: B(J, Vc),
5017
+ schedule: qs.readonly().optional()
5105
5018
  });
5106
- function Jc(e) {
5107
- return Qs(e), I(ps()).min(1).parse(e).map((e, t) => {
5108
- let { kind: n } = jc(e, t, L({ kind: J }).parse);
5109
- return n == "graph.trigger.create" ? jc(e, t, qc.parse) : Mc(e, t);
5019
+ function Uc(e) {
5020
+ return Ks(e), I(ls()).min(1).parse(e).map((e, t) => {
5021
+ let { kind: n } = Tc(e, t, L({ kind: J }).parse);
5022
+ return n == "graph.trigger.create" ? Tc(e, t, Hc.parse) : Ec(e, t);
5110
5023
  });
5111
5024
  }
5112
- function Yc(e) {
5113
- if (e != null && e != "graph.trigger.create") return Nc(e);
5114
- let t = go(qc);
5025
+ function Wc(e) {
5026
+ if (e != null && e != "graph.trigger.create") return Dc(e);
5027
+ let t = fo(Hc);
5115
5028
  if (e == "graph.trigger.create") return t;
5116
- let n = Nc();
5029
+ let n = Dc();
5117
5030
  return {
5118
5031
  ...n,
5119
5032
  items: { anyOf: [n.items, t] }
5120
5033
  };
5121
5034
  }
5122
- function Xc(e, t) {
5035
+ function Gc(e, t) {
5123
5036
  return e.flatMap((e) => {
5124
5037
  if (e.kind != "graph.trigger.create") return [e];
5125
5038
  let n = t(e.key);
5126
5039
  if (n.type != "poll" && e.schedule != null) throw Error("Only Poll triggers accept a schedule.");
5127
- return Uc({ kind: "flow" }, e, n, e);
5040
+ return Rc({ kind: "flow" }, e, n, e);
5128
5041
  });
5129
5042
  }
5130
5043
  //#endregion
5131
5044
  //#region src/control/common/eventSourceSchemas.ts
5132
- var Zc = M().min(1).max(256), Qc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), $c = M().trim().min(1).max(128), el = M().min(1).max(256), tl = R({
5045
+ var Kc = M().min(1).max(256), qc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), Jc = M().trim().min(1).max(128), Yc = M().min(1).max(256), Xc = R({
5133
5046
  version: H(1),
5134
- name: $c,
5135
- connectionId: Zc,
5136
- teamId: Zc.nullable(),
5137
- verificationToken: el,
5138
- encryptKey: el,
5139
- eventTypes: I(Qc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5047
+ name: Jc,
5048
+ connectionId: Kc,
5049
+ teamId: Kc.nullable(),
5050
+ verificationToken: Yc,
5051
+ encryptKey: Yc,
5052
+ eventTypes: I(qc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5140
5053
  manageSubscriptions: F()
5141
- }), nl = R({
5054
+ }), Zc = R({
5142
5055
  version: H(1),
5143
- expectedRevision: cs().positive(),
5144
- name: $c,
5056
+ expectedRevision: is().positive(),
5057
+ name: Jc,
5145
5058
  enabled: F(),
5146
- eventTypes: I(Qc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5147
- verificationToken: el.optional(),
5148
- encryptKey: el.optional()
5149
- }), rl = R({
5059
+ eventTypes: I(qc).min(1).max(200).refine((e) => new Set(e).size == e.length),
5060
+ verificationToken: Yc.optional(),
5061
+ encryptKey: Yc.optional()
5062
+ }), Qc = R({
5150
5063
  version: H(1),
5151
- expectedRevision: cs().positive()
5152
- }), Y = { kind: "flow" }, il = {
5064
+ expectedRevision: is().positive()
5065
+ }), Y = { kind: "flow" }, $c = {
5153
5066
  manual: "A Manual start node.",
5154
5067
  webhook: "A Webhook start node.",
5155
5068
  cron: "An hourly scheduled start node.",
@@ -5159,33 +5072,34 @@ var Zc = M().min(1).max(256), Qc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), $c = M
5159
5072
  code: "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions.",
5160
5073
  condition: "A condition with true and false execution branches.",
5161
5074
  value: "A fixed value node.",
5075
+ approval: "An Approval with approve and reject decision branches and a built-in notification output.",
5162
5076
  wait: "A Wait with a continue action and a built-in notification output.",
5163
5077
  agent: "An Agent with code computation enabled. Configure a model available in the deployment.",
5164
5078
  "llm-chat": "An LLM chat Task and its node; configure a model available in the deployment.",
5165
5079
  "llm-json": "An LLM JSON Task and its node; configure a model available in the deployment.",
5166
5080
  "poll-notification": "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports."
5167
- }, al = Object.keys(il).map((e) => ({
5081
+ }, el = Object.keys($c).map((e) => ({
5168
5082
  name: e,
5169
- description: il[e]
5083
+ description: $c[e]
5170
5084
  }));
5171
- function ol(e) {
5085
+ function tl(e) {
5172
5086
  let t;
5173
5087
  switch (e) {
5174
5088
  case "manual":
5175
- t = Hc(Y, "start", {
5089
+ t = Lc(Y, "start", {
5176
5090
  kind: "manual",
5177
5091
  name: "Start"
5178
5092
  });
5179
5093
  break;
5180
5094
  case "webhook":
5181
- t = Hc(Y, "start", {
5095
+ t = Lc(Y, "start", {
5182
5096
  kind: "webhook",
5183
5097
  name: "Webhook",
5184
5098
  bodyFields: []
5185
5099
  });
5186
5100
  break;
5187
5101
  case "cron":
5188
- t = Hc(Y, "start", {
5102
+ t = Lc(Y, "start", {
5189
5103
  kind: "cron",
5190
5104
  name: "Schedule",
5191
5105
  cronTimes: [{
@@ -5221,7 +5135,7 @@ function ol(e) {
5221
5135
  }];
5222
5136
  break;
5223
5137
  case "agent":
5224
- t = Lc(Y, {
5138
+ t = jc(Y, {
5225
5139
  nodeId: "agent",
5226
5140
  taskId: "agent-task"
5227
5141
  }, {
@@ -5252,7 +5166,7 @@ function ol(e) {
5252
5166
  });
5253
5167
  break;
5254
5168
  case "connector":
5255
- t = Lc(Y, {
5169
+ t = jc(Y, {
5256
5170
  nodeId: "notify",
5257
5171
  taskId: "notify-task"
5258
5172
  }, {
@@ -5272,7 +5186,7 @@ function ol(e) {
5272
5186
  });
5273
5187
  break;
5274
5188
  case "code":
5275
- t = Ic(Y, {
5189
+ t = Ac(Y, {
5276
5190
  nodeId: "format",
5277
5191
  moduleId: "format-module"
5278
5192
  }, "Format", {
@@ -5300,26 +5214,29 @@ function ol(e) {
5300
5214
  });
5301
5215
  break;
5302
5216
  case "condition":
5303
- t = zc(Y, "condition", "Condition");
5217
+ t = Nc(Y, "condition", "Condition");
5304
5218
  break;
5305
5219
  case "value":
5306
- t = Bc(Y, "value", "Value");
5220
+ t = Pc(Y, "value", "Value");
5221
+ break;
5222
+ case "approval":
5223
+ t = Ic(Y, "approval", "Approve?");
5307
5224
  break;
5308
5225
  case "wait":
5309
- t = Vc(Y, "wait", "Continue?");
5226
+ t = Fc(Y, "wait", "Continue?");
5310
5227
  break;
5311
5228
  case "llm-chat":
5312
5229
  case "llm-json":
5313
- t = Rc(Y, {
5230
+ t = Mc(Y, {
5314
5231
  nodeId: "llm",
5315
5232
  taskId: "llm-task"
5316
5233
  }, "LLM", e == "llm-chat" ? "chat" : "json", "Generated response.");
5317
5234
  break;
5318
5235
  case "poll-notification":
5319
5236
  t = [
5320
- ...ol("poll").operations,
5321
- ...ol("code").operations,
5322
- ...ol("connector").operations,
5237
+ ...tl("poll").operations,
5238
+ ...tl("code").operations,
5239
+ ...tl("connector").operations,
5323
5240
  {
5324
5241
  kind: "graph.edge.connect",
5325
5242
  target: Y,
@@ -5383,24 +5300,24 @@ function ol(e) {
5383
5300
  }
5384
5301
  //#endregion
5385
5302
  //#region src/control/common/requests.ts
5386
- var sl = Zs(), X = M().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && Pc(e) == null, "Flow name is invalid."), ll = B(M(), B(M(), sl)), ul = R({
5303
+ var nl = Gs(), X = M().min(1), Z = H(1), rl = X.refine((e) => e == e.trim() && Oc(e) == null, "Flow name is invalid."), il = B(M(), B(M(), nl)), al = R({
5387
5304
  nodeId: X,
5388
- outputs: B(M(), sl)
5305
+ outputs: B(M(), nl)
5389
5306
  }), Q = {
5390
- createEventSource: tl,
5391
- updateEventSource: nl,
5392
- eventSourceRevision: rl,
5307
+ createEventSource: Xc,
5308
+ updateEventSource: Zc,
5309
+ eventSourceRevision: Qc,
5393
5310
  createFlow: R({
5394
- name: cl,
5311
+ name: rl,
5395
5312
  version: Z
5396
5313
  }),
5397
5314
  renameFlow: R({
5398
- name: cl,
5315
+ name: rl,
5399
5316
  version: Z
5400
5317
  }),
5401
5318
  changeDraft: R({
5402
5319
  expectedRevisionId: X,
5403
- operations: I(sl).min(1),
5320
+ operations: I(nl).min(1),
5404
5321
  version: Z
5405
5322
  }),
5406
5323
  repairDraft: R({
@@ -5413,8 +5330,8 @@ var sl = Zs(), X = M().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && P
5413
5330
  version: Z
5414
5331
  }),
5415
5332
  updatePresentation: R({
5416
- expectedRevision: cs().positive(),
5417
- value: B(M(), sl),
5333
+ expectedRevision: is().positive(),
5334
+ value: B(M(), nl),
5418
5335
  version: Z
5419
5336
  }),
5420
5337
  checkFlow: R({
@@ -5432,14 +5349,14 @@ var sl = Zs(), X = M().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && P
5432
5349
  }),
5433
5350
  createDraftRun: R({
5434
5351
  engineContract: X,
5435
- inputs: ll,
5436
- trigger: ul,
5352
+ inputs: il,
5353
+ trigger: al,
5437
5354
  version: H(2)
5438
5355
  }),
5439
5356
  createLiveRun: R({
5440
5357
  publicationId: X,
5441
- inputs: ll,
5442
- trigger: ul,
5358
+ inputs: il,
5359
+ trigger: al,
5443
5360
  version: H(2)
5444
5361
  }),
5445
5362
  resolveWait: R({
@@ -5456,7 +5373,7 @@ var sl = Zs(), X = M().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && P
5456
5373
  function $(e) {
5457
5374
  return (t) => e.parse(t);
5458
5375
  }
5459
- var dl = {
5376
+ var ol = {
5460
5377
  createEventSource: $(Q.createEventSource),
5461
5378
  updateEventSource: $(Q.updateEventSource),
5462
5379
  eventSourceRevision: $(Q.eventSourceRevision),
@@ -5466,7 +5383,7 @@ var dl = {
5466
5383
  let t = Q.changeDraft.parse(e);
5467
5384
  return {
5468
5385
  ...t,
5469
- operations: Jc(t.operations)
5386
+ operations: Uc(t.operations)
5470
5387
  };
5471
5388
  },
5472
5389
  repairDraft: $(Q.repairDraft),
@@ -5481,15 +5398,15 @@ var dl = {
5481
5398
  putVariable: $(Q.putVariable),
5482
5399
  versionOnly: $(Q.versionOnly)
5483
5400
  };
5484
- function fl(e) {
5485
- let t = go(Q[e]);
5401
+ function sl(e) {
5402
+ let t = fo(Q[e]);
5486
5403
  return e == "changeDraft" ? {
5487
5404
  ...t,
5488
5405
  properties: {
5489
5406
  ...t.properties,
5490
- operations: Yc()
5407
+ operations: Wc()
5491
5408
  }
5492
5409
  } : t;
5493
5410
  }
5494
5411
  //#endregion
5495
- export { ol as authoringExample, al as authoringExamples, fl as controlRequestSchema, dl as controlRequests, Jc as decodeDraftOperations, Yc as draftOperationsSchema, Xc as resolveDraftOperations };
5412
+ export { tl as authoringExample, el as authoringExamples, sl as controlRequestSchema, ol as controlRequests, Uc as decodeDraftOperations, Wc as draftOperationsSchema, Gc as resolveDraftOperations };