@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
@@ -1746,88 +1746,7 @@ function xr(e, t, n) {
1746
1746
  }
1747
1747
  return e.value = c.data, e;
1748
1748
  }
1749
- var Sr = /*@__PURE__*/ _("$ZodTuple", (e, t) => {
1750
- b.init(e, t);
1751
- let n = t.items, r = v.memoizer;
1752
- r?.attach(e), e._zod.parse = (i, a) => {
1753
- let o = i.value;
1754
- if (!Array.isArray(o)) return i.issues.push({
1755
- input: o,
1756
- inst: e,
1757
- expected: "tuple",
1758
- code: "invalid_type"
1759
- }), i;
1760
- i.value = r ? r.alloc(e, i, [], a) : [];
1761
- let s = [], c = Cr(n, "optin"), l = Cr(n, "optout");
1762
- if (!t.rest) {
1763
- if (o.length < c) return i.issues.push({
1764
- code: "too_small",
1765
- minimum: c,
1766
- inclusive: !0,
1767
- input: o,
1768
- inst: e,
1769
- origin: "array"
1770
- }), i;
1771
- o.length > n.length && i.issues.push({
1772
- code: "too_big",
1773
- maximum: n.length,
1774
- inclusive: !0,
1775
- input: o,
1776
- inst: e,
1777
- origin: "array"
1778
- });
1779
- }
1780
- let u = Array(n.length);
1781
- for (let e = 0; e < n.length; e++) {
1782
- let t = n[e]._zod.run({
1783
- value: o[e],
1784
- issues: []
1785
- }, a);
1786
- t instanceof Promise ? s.push(t.then((t) => {
1787
- u[e] = t;
1788
- })) : u[e] = t;
1789
- }
1790
- if (t.rest) {
1791
- let e = n.length - 1, r = o.slice(n.length);
1792
- for (let n of r) {
1793
- e++;
1794
- let r = t.rest._zod.run({
1795
- value: n,
1796
- issues: []
1797
- }, a);
1798
- r instanceof Promise ? s.push(r.then((t) => wr(t, i, e))) : wr(r, i, e);
1799
- }
1800
- }
1801
- return s.length ? Promise.all(s).then(() => Tr(u, i, n, o, l)) : Tr(u, i, n, o, l);
1802
- };
1803
- });
1804
- function Cr(e, t) {
1805
- 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;
1806
- return 0;
1807
- }
1808
- function wr(e, t, n) {
1809
- e.issues.length && t.issues.push(...ve(n, e.issues)), t.value[n] = e.value;
1810
- }
1811
- function Tr(e, t, n, r, i) {
1812
- for (let a = 0; a < n.length; a++) {
1813
- let o = e[a], s = a < r.length;
1814
- if (!s && a >= i && n[a]._zod.optin === "optional") {
1815
- t.value.length = a;
1816
- break;
1817
- }
1818
- if (o.issues.length) {
1819
- if (!s && a >= i) {
1820
- t.value.length = a;
1821
- break;
1822
- }
1823
- t.issues.push(...ve(a, o.issues));
1824
- }
1825
- t.value[a] = o.value;
1826
- }
1827
- 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;
1828
- return t;
1829
- }
1830
- var Er = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1749
+ var Sr = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1831
1750
  b.init(e, t);
1832
1751
  let n = v.memoizer;
1833
1752
  n?.attach(e), e._zod.parse = (r, i) => {
@@ -1933,7 +1852,7 @@ var Er = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1933
1852
  }
1934
1853
  return o.length ? Promise.all(o).then(() => r) : r;
1935
1854
  };
1936
- }), Dr = /*@__PURE__*/ _("$ZodEnum", (t, n) => {
1855
+ }), Cr = /*@__PURE__*/ _("$ZodEnum", (t, n) => {
1937
1856
  b.init(t, n);
1938
1857
  let r = e(n.entries), i = new Set(r);
1939
1858
  t._zod.values = i;
@@ -1947,7 +1866,7 @@ var Er = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1947
1866
  inst: t
1948
1867
  }), e;
1949
1868
  };
1950
- }), Or = /*@__PURE__*/ _("$ZodLiteral", (e, t) => {
1869
+ }), wr = /*@__PURE__*/ _("$ZodLiteral", (e, t) => {
1951
1870
  b.init(e, t);
1952
1871
  let n = new Set(t.values);
1953
1872
  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) => {
@@ -1959,7 +1878,7 @@ var Er = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1959
1878
  inst: e
1960
1879
  }), r;
1961
1880
  };
1962
- }), kr = /*@__PURE__*/ _("$ZodTransform", (e, t) => {
1881
+ }), Tr = /*@__PURE__*/ _("$ZodTransform", (e, t) => {
1963
1882
  b.init(e, t), e._zod.optin = "optional", v.memoizer?.guard(e), e._zod.parse = (n, r) => {
1964
1883
  if (r.direction === "backward") throw new Ue(e.constructor.name);
1965
1884
  let i = t.transform(n.value, n);
@@ -1968,10 +1887,10 @@ var Er = /*@__PURE__*/ _("$ZodRecord", (e, t) => {
1968
1887
  return n.value = i, n;
1969
1888
  };
1970
1889
  });
1971
- function Ar(e, t) {
1890
+ function Er(e, t) {
1972
1891
  return e.value = t.issues.length ? void 0 : t.value, e;
1973
1892
  }
1974
- var jr = /*@__PURE__*/ _("$ZodOptional", (e, t) => {
1893
+ var Dr = /*@__PURE__*/ _("$ZodOptional", (e, t) => {
1975
1894
  b.init(e, t), g(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", g(e, "values", (e) => {
1976
1895
  let t = e.def.innerType._zod.values;
1977
1896
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
@@ -1985,40 +1904,40 @@ var jr = /*@__PURE__*/ _("$ZodOptional", (e, t) => {
1985
1904
  value: e.value,
1986
1905
  issues: []
1987
1906
  }, n);
1988
- return r instanceof Promise ? r.then((t) => Ar(e, t)) : Ar(e, r);
1907
+ return r instanceof Promise ? r.then((t) => Er(e, t)) : Er(e, r);
1989
1908
  }
1990
1909
  return t.innerType._zod.run(e, n);
1991
1910
  };
1992
- }), Mr = /*@__PURE__*/ _("$ZodExactOptional", (e, t) => {
1993
- jr.init(e, t), g(e, "values", (e) => e.def.innerType._zod.values), g(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1994
- }), Nr = /*@__PURE__*/ _("$ZodNullable", (e, t) => {
1911
+ }), Or = /*@__PURE__*/ _("$ZodExactOptional", (e, t) => {
1912
+ Dr.init(e, t), g(e, "values", (e) => e.def.innerType._zod.values), g(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1913
+ }), kr = /*@__PURE__*/ _("$ZodNullable", (e, t) => {
1995
1914
  b.init(e, t), g(e, "optin", (e) => e.def.innerType._zod.optin), g(e, "optout", (e) => e.def.innerType._zod.optout), g(e, "pattern", (e) => {
1996
1915
  let t = e.def.innerType._zod.pattern;
1997
1916
  return t ? RegExp(`^(${a(t.source)}|null)$`) : void 0;
1998
1917
  }), g(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);
1999
- }), Pr = /*@__PURE__*/ _("$ZodDefault", (e, t) => {
1918
+ }), Ar = /*@__PURE__*/ _("$ZodDefault", (e, t) => {
2000
1919
  b.init(e, t), e._zod.optin = "defaulted", g(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2001
1920
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2002
1921
  if (e.value === void 0) return e.value = t.defaultValue, e;
2003
1922
  let r = t.innerType._zod.run(e, n);
2004
- return r instanceof Promise ? r.then((e) => Fr(e, t)) : Fr(r, t);
1923
+ return r instanceof Promise ? r.then((e) => jr(e, t)) : jr(r, t);
2005
1924
  };
2006
1925
  });
2007
- function Fr(e, t) {
1926
+ function jr(e, t) {
2008
1927
  return e.value === void 0 && (e.value = t.defaultValue), e;
2009
1928
  }
2010
- var Ir = /*@__PURE__*/ _("$ZodPrefault", (e, t) => {
1929
+ var Mr = /*@__PURE__*/ _("$ZodPrefault", (e, t) => {
2011
1930
  b.init(e, t), e._zod.optin = "defaulted", g(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));
2012
- }), Lr = /*@__PURE__*/ _("$ZodNonOptional", (e, t) => {
1931
+ }), Nr = /*@__PURE__*/ _("$ZodNonOptional", (e, t) => {
2013
1932
  b.init(e, t), g(e, "values", (e) => {
2014
1933
  let t = e.def.innerType._zod.values;
2015
1934
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
2016
1935
  }), e._zod.parse = (n, r) => {
2017
1936
  let i = t.innerType._zod.run(n, r);
2018
- return i instanceof Promise ? i.then((t) => Rr(t, e)) : Rr(i, e);
1937
+ return i instanceof Promise ? i.then((t) => Pr(t, e)) : Pr(i, e);
2019
1938
  };
2020
1939
  });
2021
- function Rr(e, t) {
1940
+ function Pr(e, t) {
2022
1941
  return !e.issues.length && e.value === void 0 && e.issues.push({
2023
1942
  code: "invalid_type",
2024
1943
  expected: "nonoptional",
@@ -2026,7 +1945,7 @@ function Rr(e, t) {
2026
1945
  inst: t
2027
1946
  }), e;
2028
1947
  }
2029
- function zr(e, t, n, r) {
1948
+ function Fr(e, t, n, r) {
2030
1949
  return t.issues.length ? (e.value = n.catchValue({
2031
1950
  ...t,
2032
1951
  value: e.value,
@@ -2034,54 +1953,54 @@ function zr(e, t, n, r) {
2034
1953
  input: e.value
2035
1954
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
2036
1955
  }
2037
- var Br = /*@__PURE__*/ _("$ZodCatch", (e, t) => {
1956
+ var Ir = /*@__PURE__*/ _("$ZodCatch", (e, t) => {
2038
1957
  b.init(e, t), g(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), g(e, "optout", (e) => e.def.innerType._zod.optout), g(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2039
1958
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2040
1959
  let r = t.innerType._zod.run({
2041
1960
  value: e.value,
2042
1961
  issues: []
2043
1962
  }, n);
2044
- return r instanceof Promise ? r.then((r) => zr(e, r, t, n)) : zr(e, r, t, n);
1963
+ return r instanceof Promise ? r.then((r) => Fr(e, r, t, n)) : Fr(e, r, t, n);
2045
1964
  };
2046
- }), Vr = /*@__PURE__*/ _("$ZodPipe", (e, t) => {
1965
+ }), Lr = /*@__PURE__*/ _("$ZodPipe", (e, t) => {
2047
1966
  b.init(e, t), g(e, "values", (e) => e.def.in._zod.values), g(e, "optin", (e) => e.def.in._zod.optin), g(e, "optout", (e) => e.def.out._zod.optout), g(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
2048
1967
  if (n.direction === "backward") {
2049
1968
  let r = t.out._zod.run(e, n);
2050
- return r instanceof Promise ? r.then((e) => Hr(e, t.in, n)) : Hr(r, t.in, n);
1969
+ return r instanceof Promise ? r.then((e) => Rr(e, t.in, n)) : Rr(r, t.in, n);
2051
1970
  }
2052
1971
  let r = t.in._zod.run(e, n);
2053
- return r instanceof Promise ? r.then((e) => Hr(e, t.out, n)) : Hr(r, t.out, n);
1972
+ return r instanceof Promise ? r.then((e) => Rr(e, t.out, n)) : Rr(r, t.out, n);
2054
1973
  };
2055
1974
  });
2056
- function Hr(e, t, n) {
1975
+ function Rr(e, t, n) {
2057
1976
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
2058
1977
  value: e.value,
2059
1978
  issues: e.issues
2060
1979
  }, n);
2061
1980
  }
2062
- var Ur = /*@__PURE__*/ _("$ZodReadonly", (e, t) => {
1981
+ var zr = /*@__PURE__*/ _("$ZodReadonly", (e, t) => {
2063
1982
  b.init(e, t), g(e, "propValues", (e) => e.def.innerType._zod.propValues), g(e, "values", (e) => e.def.innerType._zod.values), g(e, "optin", (e) => e.def.innerType?._zod?.optin), g(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
2064
1983
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2065
1984
  let r = t.innerType._zod.run(e, n);
2066
- return r instanceof Promise ? r.then(Wr) : Wr(r);
1985
+ return r instanceof Promise ? r.then(Br) : Br(r);
2067
1986
  };
2068
1987
  });
2069
- function Wr(e) {
1988
+ function Br(e) {
2070
1989
  return e.memo || (e.value = Object.freeze(e.value)), e;
2071
1990
  }
2072
- var Gr = /*@__PURE__*/ _("$ZodLazy", (e, t) => {
1991
+ var Vr = /*@__PURE__*/ _("$ZodLazy", (e, t) => {
2073
1992
  b.init(e, t), c(e._zod, "innerType", () => {
2074
1993
  let e = t;
2075
1994
  return e._cachedInner ||= t.getter(), e._cachedInner;
2076
1995
  }), g(e, "pattern", (e) => e.innerType?._zod?.pattern), g(e, "propValues", (e) => e.innerType?._zod?.propValues), g(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), g(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
2077
- }), Kr = /*@__PURE__*/ _("$ZodCustom", (e, t) => {
1996
+ }), Hr = /*@__PURE__*/ _("$ZodCustom", (e, t) => {
2078
1997
  y.init(e, t), b.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
2079
1998
  let r = n.value, i = t.fn(r);
2080
- if (i instanceof Promise) return i.then((t) => qr(t, n, r, e));
2081
- qr(i, n, r, e);
1999
+ if (i instanceof Promise) return i.then((t) => Ur(t, n, r, e));
2000
+ Ur(i, n, r, e);
2082
2001
  };
2083
2002
  });
2084
- function qr(e, t, n, r) {
2003
+ function Ur(e, t, n, r) {
2085
2004
  if (!e) {
2086
2005
  let e = {
2087
2006
  code: "custom",
@@ -2095,25 +2014,25 @@ function qr(e, t, n, r) {
2095
2014
  }
2096
2015
  //#endregion
2097
2016
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
2098
- var Jr = class extends Error {
2017
+ var Wr = class extends Error {
2099
2018
  constructor() {
2100
2019
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
2101
2020
  }
2102
- }, Yr = "~memo", Xr = [];
2103
- function Zr(e) {
2021
+ }, Gr = "~memo", Kr = [];
2022
+ function qr(e) {
2104
2023
  return e.map((e) => e.path ? {
2105
2024
  ...e,
2106
2025
  path: e.path.slice()
2107
2026
  } : { ...e });
2108
2027
  }
2109
- var Qr = /*@__PURE__*/ new WeakMap();
2110
- function $r(e, t) {
2111
- let n = Qr.get(e);
2028
+ var Jr = /*@__PURE__*/ new WeakMap();
2029
+ function Yr(e, t) {
2030
+ let n = Jr.get(e);
2112
2031
  if (n !== void 0) return n;
2113
2032
  if (t.has(e)) return !0;
2114
2033
  t.add(e);
2115
2034
  let r = !1, i = (e) => {
2116
- !r && e?._zod && $r(e, t) && (r = !0);
2035
+ !r && e?._zod && Yr(e, t) && (r = !0);
2117
2036
  }, a = e._zod.def;
2118
2037
  switch (a.type) {
2119
2038
  case "object":
@@ -2190,28 +2109,28 @@ function $r(e, t) {
2190
2109
  }
2191
2110
  }
2192
2111
  }
2193
- return t.delete(e), Qr.set(e, r), r;
2112
+ return t.delete(e), Jr.set(e, r), r;
2194
2113
  }
2195
- function ei(e, t) {
2114
+ function Xr(e, t) {
2196
2115
  let n = e.buckets.get(t);
2197
2116
  return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2198
2117
  }
2199
- var ti, ni = [], ri = {
2118
+ var Zr, Qr = [], $r = {
2200
2119
  alloc(e, t, n) {
2201
- let r = ti;
2120
+ let r = Zr;
2202
2121
  if (!r) return n;
2203
- ti = void 0;
2122
+ Zr = void 0;
2204
2123
  let i = {
2205
2124
  value: n,
2206
2125
  issues: null
2207
2126
  };
2208
- return r.set(t.value, i), ni.push(i), n;
2127
+ return r.set(t.value, i), Qr.push(i), n;
2209
2128
  },
2210
2129
  guard(e) {
2211
2130
  var t;
2212
2131
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2213
2132
  let t = e._zod.parse, n = (e, n) => {
2214
- if (n.direction !== "backward" && ai(n, e.value)) throw new Jr();
2133
+ if (n.direction !== "backward" && ti(n, e.value)) throw new Wr();
2215
2134
  return t(e, n);
2216
2135
  };
2217
2136
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -2222,38 +2141,38 @@ var ti, ni = [], ri = {
2222
2141
  let n, r, i;
2223
2142
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2224
2143
  let t = e._zod.parse, a = (o, s) => {
2225
- if (n === void 0 && (n = $r(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2144
+ if (n === void 0 && (n = Yr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2226
2145
  let c = o.value;
2227
2146
  if (typeof c != "object" || !c) return t(o, s);
2228
- let l = s[Yr];
2147
+ let l = s[Gr];
2229
2148
  l || (l = {
2230
2149
  buckets: /* @__PURE__ */ new Map(),
2231
2150
  backEdges: void 0
2232
- }, s[Yr] = l);
2151
+ }, s[Gr] = l);
2233
2152
  let u;
2234
- r === s ? u = i : (u = ei(l, e), r = s, i = u);
2153
+ r === s ? u = i : (u = Xr(l, e), r = s, i = u);
2235
2154
  let d = u.get(c);
2236
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Zr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2237
- ti = u;
2238
- let f = ni.length, p = t(o, s);
2239
- ti = void 0;
2240
- let m = ni.length > f ? ni.pop() : void 0;
2241
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Zr(e.issues) : Xr), e)) : (m && (m.issues = p.issues.length ? Zr(p.issues) : Xr), p);
2155
+ if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...qr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2156
+ Zr = u;
2157
+ let f = Qr.length, p = t(o, s);
2158
+ Zr = void 0;
2159
+ let m = Qr.length > f ? Qr.pop() : void 0;
2160
+ return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? qr(e.issues) : Kr), e)) : (m && (m.issues = p.issues.length ? qr(p.issues) : Kr), p);
2242
2161
  };
2243
2162
  e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2244
2163
  });
2245
2164
  }
2246
2165
  };
2247
- function ii() {
2248
- return ri;
2166
+ function ei() {
2167
+ return $r;
2249
2168
  }
2250
- function ai(e, t) {
2251
- let n = e[Yr]?.backEdges;
2169
+ function ti(e, t) {
2170
+ let n = e[Gr]?.backEdges;
2252
2171
  return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2253
2172
  }
2254
2173
  //#endregion
2255
2174
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
2256
- var oi = () => {
2175
+ var ni = () => {
2257
2176
  let e = {
2258
2177
  string: {
2259
2178
  unit: "characters",
@@ -2339,12 +2258,12 @@ var oi = () => {
2339
2258
  }
2340
2259
  };
2341
2260
  };
2342
- function si() {
2343
- return { localeError: oi() };
2261
+ function ri() {
2262
+ return { localeError: ni() };
2344
2263
  }
2345
2264
  //#endregion
2346
2265
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
2347
- var ci, li = class {
2266
+ var ii, ai = class {
2348
2267
  constructor() {
2349
2268
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2350
2269
  }
@@ -2376,22 +2295,22 @@ var ci, li = class {
2376
2295
  return this._map.has(e);
2377
2296
  }
2378
2297
  };
2379
- function ui() {
2380
- return new li();
2298
+ function oi() {
2299
+ return new ai();
2381
2300
  }
2382
- (ci = globalThis).__zod_globalRegistry ?? (ci.__zod_globalRegistry = ui());
2383
- var di = globalThis.__zod_globalRegistry;
2301
+ (ii = globalThis).__zod_globalRegistry ?? (ii.__zod_globalRegistry = oi());
2302
+ var si = globalThis.__zod_globalRegistry;
2384
2303
  //#endregion
2385
2304
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
2386
2305
  // @__NO_SIDE_EFFECTS__
2387
- function fi(e, t) {
2306
+ function ci(e, t) {
2388
2307
  return new e({
2389
2308
  type: "string",
2390
2309
  ...h(t)
2391
2310
  });
2392
2311
  }
2393
2312
  // @__NO_SIDE_EFFECTS__
2394
- function pi(e, t) {
2313
+ function li(e, t) {
2395
2314
  return new e({
2396
2315
  type: "string",
2397
2316
  format: "email",
@@ -2401,7 +2320,7 @@ function pi(e, t) {
2401
2320
  });
2402
2321
  }
2403
2322
  // @__NO_SIDE_EFFECTS__
2404
- function mi(e, t) {
2323
+ function ui(e, t) {
2405
2324
  return new e({
2406
2325
  type: "string",
2407
2326
  format: "guid",
@@ -2411,7 +2330,7 @@ function mi(e, t) {
2411
2330
  });
2412
2331
  }
2413
2332
  // @__NO_SIDE_EFFECTS__
2414
- function hi(e, t) {
2333
+ function di(e, t) {
2415
2334
  return new e({
2416
2335
  type: "string",
2417
2336
  format: "uuid",
@@ -2421,7 +2340,7 @@ function hi(e, t) {
2421
2340
  });
2422
2341
  }
2423
2342
  // @__NO_SIDE_EFFECTS__
2424
- function gi(e, t) {
2343
+ function fi(e, t) {
2425
2344
  return new e({
2426
2345
  type: "string",
2427
2346
  format: "uuid",
@@ -2432,7 +2351,7 @@ function gi(e, t) {
2432
2351
  });
2433
2352
  }
2434
2353
  // @__NO_SIDE_EFFECTS__
2435
- function _i(e, t) {
2354
+ function pi(e, t) {
2436
2355
  return new e({
2437
2356
  type: "string",
2438
2357
  format: "uuid",
@@ -2443,7 +2362,7 @@ function _i(e, t) {
2443
2362
  });
2444
2363
  }
2445
2364
  // @__NO_SIDE_EFFECTS__
2446
- function vi(e, t) {
2365
+ function mi(e, t) {
2447
2366
  return new e({
2448
2367
  type: "string",
2449
2368
  format: "uuid",
@@ -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: "url",
@@ -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: "emoji",
@@ -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: "nanoid",
@@ -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: "cuid",
@@ -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: "cuid2",
@@ -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: "ulid",
@@ -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: "xid",
@@ -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: "ksuid",
@@ -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: "ipv4",
@@ -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: "ipv6",
@@ -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: "cidrv4",
@@ -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: "cidrv6",
@@ -2574,7 +2493,7 @@ function Ai(e, t) {
2574
2493
  });
2575
2494
  }
2576
2495
  // @__NO_SIDE_EFFECTS__
2577
- function ji(e, t) {
2496
+ function Di(e, t) {
2578
2497
  return new e({
2579
2498
  type: "string",
2580
2499
  format: "base64",
@@ -2584,7 +2503,7 @@ function ji(e, t) {
2584
2503
  });
2585
2504
  }
2586
2505
  // @__NO_SIDE_EFFECTS__
2587
- function Mi(e, t) {
2506
+ function Oi(e, t) {
2588
2507
  return new e({
2589
2508
  type: "string",
2590
2509
  format: "base64url",
@@ -2594,7 +2513,7 @@ function Mi(e, t) {
2594
2513
  });
2595
2514
  }
2596
2515
  // @__NO_SIDE_EFFECTS__
2597
- function Ni(e, t) {
2516
+ function ki(e, t) {
2598
2517
  return new e({
2599
2518
  type: "string",
2600
2519
  format: "e164",
@@ -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: "string",
2610
2529
  format: "jwt",
@@ -2614,7 +2533,7 @@ function Pi(e, t) {
2614
2533
  });
2615
2534
  }
2616
2535
  // @__NO_SIDE_EFFECTS__
2617
- function Fi(e, t) {
2536
+ function ji(e, t) {
2618
2537
  return new e({
2619
2538
  type: "string",
2620
2539
  format: "datetime",
@@ -2626,7 +2545,7 @@ function Fi(e, t) {
2626
2545
  });
2627
2546
  }
2628
2547
  // @__NO_SIDE_EFFECTS__
2629
- function Ii(e, t) {
2548
+ function Mi(e, t) {
2630
2549
  return new e({
2631
2550
  type: "string",
2632
2551
  format: "date",
@@ -2635,7 +2554,7 @@ function Ii(e, t) {
2635
2554
  });
2636
2555
  }
2637
2556
  // @__NO_SIDE_EFFECTS__
2638
- function Li(e, t) {
2557
+ function Ni(e, t) {
2639
2558
  return new e({
2640
2559
  type: "string",
2641
2560
  format: "time",
@@ -2645,7 +2564,7 @@ function Li(e, t) {
2645
2564
  });
2646
2565
  }
2647
2566
  // @__NO_SIDE_EFFECTS__
2648
- function Ri(e, t) {
2567
+ function Pi(e, t) {
2649
2568
  return new e({
2650
2569
  type: "string",
2651
2570
  format: "duration",
@@ -2654,7 +2573,7 @@ function Ri(e, t) {
2654
2573
  });
2655
2574
  }
2656
2575
  // @__NO_SIDE_EFFECTS__
2657
- function zi(e, t) {
2576
+ function Fi(e, t) {
2658
2577
  return new e({
2659
2578
  type: "number",
2660
2579
  checks: [],
@@ -2662,7 +2581,7 @@ function zi(e, t) {
2662
2581
  });
2663
2582
  }
2664
2583
  // @__NO_SIDE_EFFECTS__
2665
- function Bi(e, t) {
2584
+ function Ii(e, t) {
2666
2585
  return new e({
2667
2586
  type: "number",
2668
2587
  check: "number_format",
@@ -2672,32 +2591,32 @@ function Bi(e, t) {
2672
2591
  });
2673
2592
  }
2674
2593
  // @__NO_SIDE_EFFECTS__
2675
- function Vi(e, t) {
2594
+ function Li(e, t) {
2676
2595
  return new e({
2677
2596
  type: "boolean",
2678
2597
  ...h(t)
2679
2598
  });
2680
2599
  }
2681
2600
  // @__NO_SIDE_EFFECTS__
2682
- function Hi(e, t) {
2601
+ function Ri(e, t) {
2683
2602
  return new e({
2684
2603
  type: "null",
2685
2604
  ...h(t)
2686
2605
  });
2687
2606
  }
2688
2607
  // @__NO_SIDE_EFFECTS__
2689
- function Ui(e) {
2608
+ function zi(e) {
2690
2609
  return new e({ type: "unknown" });
2691
2610
  }
2692
2611
  // @__NO_SIDE_EFFECTS__
2693
- function Wi(e, t) {
2612
+ function Bi(e, t) {
2694
2613
  return new e({
2695
2614
  type: "never",
2696
2615
  ...h(t)
2697
2616
  });
2698
2617
  }
2699
2618
  // @__NO_SIDE_EFFECTS__
2700
- function Gi(e, t) {
2619
+ function Vi(e, t) {
2701
2620
  return new en({
2702
2621
  check: "less_than",
2703
2622
  ...h(t),
@@ -2706,7 +2625,7 @@ function Gi(e, t) {
2706
2625
  });
2707
2626
  }
2708
2627
  // @__NO_SIDE_EFFECTS__
2709
- function Ki(e, t) {
2628
+ function Hi(e, t) {
2710
2629
  return new en({
2711
2630
  check: "less_than",
2712
2631
  ...h(t),
@@ -2715,7 +2634,7 @@ function Ki(e, t) {
2715
2634
  });
2716
2635
  }
2717
2636
  // @__NO_SIDE_EFFECTS__
2718
- function qi(e, t) {
2637
+ function Ui(e, t) {
2719
2638
  return new tn({
2720
2639
  check: "greater_than",
2721
2640
  ...h(t),
@@ -2724,7 +2643,7 @@ function qi(e, t) {
2724
2643
  });
2725
2644
  }
2726
2645
  // @__NO_SIDE_EFFECTS__
2727
- function Ji(e, t) {
2646
+ function Wi(e, t) {
2728
2647
  return new tn({
2729
2648
  check: "greater_than",
2730
2649
  ...h(t),
@@ -2733,7 +2652,7 @@ function Ji(e, t) {
2733
2652
  });
2734
2653
  }
2735
2654
  // @__NO_SIDE_EFFECTS__
2736
- function Yi(e, t) {
2655
+ function Gi(e, t) {
2737
2656
  return new nn({
2738
2657
  check: "multiple_of",
2739
2658
  ...h(t),
@@ -2741,7 +2660,7 @@ function Yi(e, t) {
2741
2660
  });
2742
2661
  }
2743
2662
  // @__NO_SIDE_EFFECTS__
2744
- function Xi(e, t) {
2663
+ function Ki(e, t) {
2745
2664
  return new an({
2746
2665
  check: "max_length",
2747
2666
  ...h(t),
@@ -2749,7 +2668,7 @@ function Xi(e, t) {
2749
2668
  });
2750
2669
  }
2751
2670
  // @__NO_SIDE_EFFECTS__
2752
- function Zi(e, t) {
2671
+ function qi(e, t) {
2753
2672
  return new on({
2754
2673
  check: "min_length",
2755
2674
  ...h(t),
@@ -2757,7 +2676,7 @@ function Zi(e, t) {
2757
2676
  });
2758
2677
  }
2759
2678
  // @__NO_SIDE_EFFECTS__
2760
- function Qi(e, t) {
2679
+ function Ji(e, t) {
2761
2680
  return new sn({
2762
2681
  check: "length_equals",
2763
2682
  ...h(t),
@@ -2765,7 +2684,7 @@ function Qi(e, t) {
2765
2684
  });
2766
2685
  }
2767
2686
  // @__NO_SIDE_EFFECTS__
2768
- function $i(e, t) {
2687
+ function Yi(e, t) {
2769
2688
  return new ln({
2770
2689
  check: "string_format",
2771
2690
  format: "regex",
@@ -2774,7 +2693,7 @@ function $i(e, t) {
2774
2693
  });
2775
2694
  }
2776
2695
  // @__NO_SIDE_EFFECTS__
2777
- function ea(e) {
2696
+ function Xi(e) {
2778
2697
  return new un({
2779
2698
  check: "string_format",
2780
2699
  format: "lowercase",
@@ -2782,7 +2701,7 @@ function ea(e) {
2782
2701
  });
2783
2702
  }
2784
2703
  // @__NO_SIDE_EFFECTS__
2785
- function ta(e) {
2704
+ function Zi(e) {
2786
2705
  return new dn({
2787
2706
  check: "string_format",
2788
2707
  format: "uppercase",
@@ -2790,7 +2709,7 @@ function ta(e) {
2790
2709
  });
2791
2710
  }
2792
2711
  // @__NO_SIDE_EFFECTS__
2793
- function na(e, t) {
2712
+ function Qi(e, t) {
2794
2713
  return new fn({
2795
2714
  check: "string_format",
2796
2715
  format: "includes",
@@ -2799,7 +2718,7 @@ function na(e, t) {
2799
2718
  });
2800
2719
  }
2801
2720
  // @__NO_SIDE_EFFECTS__
2802
- function ra(e, t) {
2721
+ function $i(e, t) {
2803
2722
  return new pn({
2804
2723
  check: "string_format",
2805
2724
  format: "starts_with",
@@ -2808,7 +2727,7 @@ function ra(e, t) {
2808
2727
  });
2809
2728
  }
2810
2729
  // @__NO_SIDE_EFFECTS__
2811
- function ia(e, t) {
2730
+ function ea(e, t) {
2812
2731
  return new mn({
2813
2732
  check: "string_format",
2814
2733
  format: "ends_with",
@@ -2817,34 +2736,34 @@ function ia(e, t) {
2817
2736
  });
2818
2737
  }
2819
2738
  // @__NO_SIDE_EFFECTS__
2820
- function aa(e) {
2739
+ function ta(e) {
2821
2740
  return new hn({
2822
2741
  check: "overwrite",
2823
2742
  tx: e
2824
2743
  });
2825
2744
  }
2826
2745
  // @__NO_SIDE_EFFECTS__
2827
- function oa(e) {
2828
- return /* @__PURE__ */ aa((t) => t.normalize(e));
2746
+ function na(e) {
2747
+ return /* @__PURE__ */ ta((t) => t.normalize(e));
2829
2748
  }
2830
2749
  // @__NO_SIDE_EFFECTS__
2831
- function sa() {
2832
- return /* @__PURE__ */ aa((e) => e.trim());
2750
+ function ra() {
2751
+ return /* @__PURE__ */ ta((e) => e.trim());
2833
2752
  }
2834
2753
  // @__NO_SIDE_EFFECTS__
2835
- function ca() {
2836
- return /* @__PURE__ */ aa((e) => e.toLowerCase());
2754
+ function ia() {
2755
+ return /* @__PURE__ */ ta((e) => e.toLowerCase());
2837
2756
  }
2838
2757
  // @__NO_SIDE_EFFECTS__
2839
- function la() {
2840
- return /* @__PURE__ */ aa((e) => e.toUpperCase());
2758
+ function aa() {
2759
+ return /* @__PURE__ */ ta((e) => e.toUpperCase());
2841
2760
  }
2842
2761
  // @__NO_SIDE_EFFECTS__
2843
- function ua() {
2844
- return /* @__PURE__ */ aa((e) => f(e));
2762
+ function oa() {
2763
+ return /* @__PURE__ */ ta((e) => f(e));
2845
2764
  }
2846
2765
  // @__NO_SIDE_EFFECTS__
2847
- function da(e, t, n) {
2766
+ function sa(e, t, n) {
2848
2767
  return new e({
2849
2768
  type: "array",
2850
2769
  element: t,
@@ -2852,7 +2771,7 @@ function da(e, t, n) {
2852
2771
  });
2853
2772
  }
2854
2773
  // @__NO_SIDE_EFFECTS__
2855
- function fa(e, t, n) {
2774
+ function ca(e, t, n) {
2856
2775
  return new e({
2857
2776
  type: "custom",
2858
2777
  check: "custom",
@@ -2861,8 +2780,8 @@ function fa(e, t, n) {
2861
2780
  });
2862
2781
  }
2863
2782
  // @__NO_SIDE_EFFECTS__
2864
- function pa(e, t) {
2865
- let n = /* @__PURE__ */ ma((t) => (t.addIssue = (e) => {
2783
+ function la(e, t) {
2784
+ let n = /* @__PURE__ */ ua((t) => (t.addIssue = (e) => {
2866
2785
  if (typeof e == "string") t.issues.push(Ee(e, t.value, n._zod.def));
2867
2786
  else {
2868
2787
  let r = e;
@@ -2872,7 +2791,7 @@ function pa(e, t) {
2872
2791
  return n;
2873
2792
  }
2874
2793
  // @__NO_SIDE_EFFECTS__
2875
- function ma(e, t) {
2794
+ function ua(e, t) {
2876
2795
  let n = new y({
2877
2796
  check: "custom",
2878
2797
  ...h(t)
@@ -2881,15 +2800,15 @@ function ma(e, t) {
2881
2800
  }
2882
2801
  //#endregion
2883
2802
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2884
- function ha(e, ...t) {
2803
+ function da(e, ...t) {
2885
2804
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && l(e, t, n[t]);
2886
2805
  return e;
2887
2806
  }
2888
- function ga(e) {
2807
+ function fa(e) {
2889
2808
  let t = e?.target ?? "draft-2020-12";
2890
2809
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2891
2810
  processors: e.processors ?? {},
2892
- metadataRegistry: e?.metadata ?? di,
2811
+ metadataRegistry: e?.metadata ?? si,
2893
2812
  target: t,
2894
2813
  unrepresentable: e?.unrepresentable ?? "throw",
2895
2814
  override: e?.override ?? (() => {}),
@@ -2947,12 +2866,12 @@ function C(e, t, n = {
2947
2866
  a && (o.ref ||= a, C(a, t, r), t.seen.get(a).isParent = !0);
2948
2867
  }
2949
2868
  let c = t.metadataRegistry.get(e);
2950
- return c && ha(o.schema, c), t.io === "input" && w(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;
2869
+ return c && da(o.schema, c), t.io === "input" && w(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;
2951
2870
  }
2952
- function _a(e) {
2871
+ function pa(e) {
2953
2872
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
2954
2873
  }
2955
- function va(e, t) {
2874
+ function ma(e, t) {
2956
2875
  let n = e.seen.get(t);
2957
2876
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2958
2877
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -2973,7 +2892,7 @@ function va(e, t) {
2973
2892
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
2974
2893
  return t[1].defId = a, {
2975
2894
  defId: a,
2976
- ref: `${i("__shared")}#/${r}/${_a(a)}`
2895
+ ref: `${i("__shared")}#/${r}/${pa(a)}`
2977
2896
  };
2978
2897
  }
2979
2898
  let i = `#/${r}/`;
@@ -2981,7 +2900,7 @@ function va(e, t) {
2981
2900
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
2982
2901
  return {
2983
2902
  defId: a,
2984
- ref: i + _a(a)
2903
+ ref: i + pa(a)
2985
2904
  };
2986
2905
  }, a = (e) => {
2987
2906
  if (e[1].schema.$ref) return;
@@ -3025,13 +2944,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3025
2944
  }
3026
2945
  e.external && (e.sharedDefsExtractedFor = e.external);
3027
2946
  }
3028
- function ya(e) {
2947
+ function ha(e) {
3029
2948
  let t = e.anyOf;
3030
2949
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
3031
2950
  let n = [];
3032
2951
  for (let e of t) {
3033
2952
  if (!e || typeof e != "object") return;
3034
- ya(e);
2953
+ ha(e);
3035
2954
  let t = Object.keys(e);
3036
2955
  if (t.length !== 1 || t[0] !== "type") return;
3037
2956
  let r = e.type;
@@ -3042,21 +2961,21 @@ function ya(e) {
3042
2961
  }
3043
2962
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
3044
2963
  }
3045
- var ba = /* @__PURE__ */ new Set([
2964
+ var ga = /* @__PURE__ */ new Set([
3046
2965
  "type",
3047
2966
  "properties",
3048
2967
  "required",
3049
2968
  "additionalProperties"
3050
- ]), xa = ["oneOf", "anyOf"];
3051
- function Sa(e) {
2969
+ ]), _a = ["oneOf", "anyOf"];
2970
+ function va(e) {
3052
2971
  let t = e.additionalProperties;
3053
2972
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
3054
2973
  }
3055
- function Ca(e) {
2974
+ function ya(e) {
3056
2975
  let t = [];
3057
2976
  for (let n of e) {
3058
2977
  if (typeof n != "object" || n.type !== "object") return null;
3059
- for (let e in n) if (!ba.has(e)) return null;
2978
+ for (let e in n) if (!ga.has(e)) return null;
3060
2979
  t.push(n);
3061
2980
  }
3062
2981
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -3065,10 +2984,10 @@ function Ca(e) {
3065
2984
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
3066
2985
  let e = [];
3067
2986
  for (let n of t) {
3068
- let t = n.properties?.[r] ?? Sa(n);
2987
+ let t = n.properties?.[r] ?? va(n);
3069
2988
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
3070
2989
  }
3071
- l(n, r, e.length === 1 ? e[0] : Ca(e) ?? { allOf: e });
2990
+ l(n, r, e.length === 1 ? e[0] : ya(e) ?? { allOf: e });
3072
2991
  }
3073
2992
  for (let t of e.required ?? []) r.add(t);
3074
2993
  }
@@ -3080,29 +2999,29 @@ function Ca(e) {
3080
2999
  else {
3081
3000
  let e = [];
3082
3001
  for (let n of t) {
3083
- let t = Sa(n);
3002
+ let t = va(n);
3084
3003
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
3085
3004
  }
3086
3005
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
3087
3006
  }
3088
3007
  return i;
3089
3008
  }
3090
- function wa(e) {
3009
+ function ba(e) {
3091
3010
  let t = e.allOf;
3092
3011
  if (!Array.isArray(t) || t.length < 2) return;
3093
- for (let t of ba) if (t in e) return;
3094
- let n = t.filter((e) => xa.some((t) => Array.isArray(e[t]))), r = null;
3095
- if (!n.length) r = Ca(t);
3012
+ for (let t of ga) if (t in e) return;
3013
+ let n = t.filter((e) => _a.some((t) => Array.isArray(e[t]))), r = null;
3014
+ if (!n.length) r = ya(t);
3096
3015
  else {
3097
- let e = n[0], i = xa.find((t) => Array.isArray(e[t]));
3016
+ let e = n[0], i = _a.find((t) => Array.isArray(e[t]));
3098
3017
  if (Object.keys(e).length !== 1) return;
3099
- let a = t.filter((t) => t !== e), o = e[i].map((e) => Ca([...a, e]));
3018
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => ya([...a, e]));
3100
3019
  if (o.some((e) => !e)) return;
3101
3020
  r = { [i]: o };
3102
3021
  }
3103
- r && (delete e.allOf, ha(e, r));
3022
+ r && (delete e.allOf, da(e, r));
3104
3023
  }
3105
- function Ta(e, t) {
3024
+ function xa(e, t) {
3106
3025
  let n = e.seen.get(t);
3107
3026
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3108
3027
  let r = (t) => {
@@ -3112,7 +3031,7 @@ function Ta(e, t) {
3112
3031
  if (n.ref = null, o) {
3113
3032
  r(o);
3114
3033
  let n = e.seen.get(o), s = n.schema;
3115
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : ha(i, s), ha(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3034
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : da(i, s), da(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3116
3035
  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];
3117
3036
  }
3118
3037
  let s = t._zod.parent;
@@ -3129,7 +3048,7 @@ function Ta(e, t) {
3129
3048
  };
3130
3049
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3131
3050
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
3132
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ya(t[1].def ?? t[1].schema);
3051
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ha(t[1].def ?? t[1].schema);
3133
3052
  for (let t of e.deferred) t();
3134
3053
  if (e.intersections.length) {
3135
3054
  let t = /* @__PURE__ */ new Map();
@@ -3139,7 +3058,7 @@ function Ta(e, t) {
3139
3058
  let r = t.get(n);
3140
3059
  r ? r.push(e) : t.set(n, [e]);
3141
3060
  }
3142
- for (let n of e.intersections) for (let e of t.get(n) ?? []) wa(e);
3061
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) ba(e);
3143
3062
  }
3144
3063
  }
3145
3064
  let i = {};
@@ -3148,7 +3067,7 @@ function Ta(e, t) {
3148
3067
  if (!n) throw Error("Schema is missing an `id` property");
3149
3068
  i.$id = e.external.uri(n);
3150
3069
  }
3151
- ha(i, n.defId ? n.schema : n.def ?? n.schema);
3070
+ da(i, n.defId ? n.schema : n.def ?? n.schema);
3152
3071
  let a = e.metadataRegistry.get(t)?.id;
3153
3072
  a !== void 0 && i.id === a && delete i.id;
3154
3073
  let o = e.external?.defs ?? {};
@@ -3163,8 +3082,8 @@ function Ta(e, t) {
3163
3082
  value: {
3164
3083
  ...t["~standard"],
3165
3084
  jsonSchema: {
3166
- input: Da(t, "input", e.processors),
3167
- output: Da(t, "output", e.processors)
3085
+ input: Ca(t, "input", e.processors),
3086
+ output: Ca(t, "output", e.processors)
3168
3087
  }
3169
3088
  },
3170
3089
  enumerable: !1,
@@ -3201,66 +3120,66 @@ function w(e, t) {
3201
3120
  }
3202
3121
  return !1;
3203
3122
  }
3204
- var Ea = (e, t = {}) => (n) => {
3205
- let r = ga({
3123
+ var Sa = (e, t = {}) => (n) => {
3124
+ let r = fa({
3206
3125
  ...n,
3207
3126
  processors: t
3208
3127
  });
3209
- return C(e, r), va(r, e), Ta(r, e);
3210
- }, Da = (e, t, n = {}) => (r) => {
3211
- let { libraryOptions: i, target: a } = r ?? {}, o = ga({
3128
+ return C(e, r), ma(r, e), xa(r, e);
3129
+ }, Ca = (e, t, n = {}) => (r) => {
3130
+ let { libraryOptions: i, target: a } = r ?? {}, o = fa({
3212
3131
  ...i ?? {},
3213
3132
  target: a,
3214
3133
  io: t,
3215
3134
  processors: n
3216
3135
  });
3217
- return C(e, o), va(o, e), Ta(o, e);
3218
- }, Oa = {
3136
+ return C(e, o), ma(o, e), xa(o, e);
3137
+ }, wa = {
3219
3138
  guid: "uuid",
3220
3139
  url: "uri",
3221
3140
  datetime: "date-time",
3222
3141
  json_string: "json-string",
3223
3142
  regex: ""
3224
- }, ka = (e, t, n, r) => {
3143
+ }, Ta = (e, t, n, r) => {
3225
3144
  let i = n;
3226
3145
  i.type = "string";
3227
3146
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
3228
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Oa[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3147
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = wa[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3229
3148
  let e = [...c];
3230
3149
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
3231
3150
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3232
3151
  pattern: e.source
3233
3152
  }))]);
3234
3153
  }
3235
- }, Aa = (e, t, n, r) => {
3154
+ }, Ea = (e, t, n, r) => {
3236
3155
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
3237
3156
  i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
3238
3157
  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";
3239
3158
  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) : S(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3240
- }, ja = (e, t, n, r) => {
3159
+ }, Da = (e, t, n, r) => {
3241
3160
  n.type = "boolean";
3242
- }, Ma = (e, t, n, r) => {
3161
+ }, Oa = (e, t, n, r) => {
3243
3162
  S(e, t, n, r, "BigInt cannot be represented in JSON Schema");
3244
- }, Na = (e, t, n, r) => {
3163
+ }, ka = (e, t, n, r) => {
3245
3164
  S(e, t, n, r, "Symbols cannot be represented in JSON Schema");
3246
- }, Pa = (e, t, n, r) => {
3165
+ }, Aa = (e, t, n, r) => {
3247
3166
  t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3248
- }, Fa = (e, t, n, r) => {
3167
+ }, ja = (e, t, n, r) => {
3249
3168
  S(e, t, n, r, "Undefined cannot be represented in JSON Schema");
3250
- }, Ia = (e, t, n, r) => {
3169
+ }, Ma = (e, t, n, r) => {
3251
3170
  S(e, t, n, r, "Void cannot be represented in JSON Schema");
3252
- }, La = (e, t, n, r) => {
3171
+ }, Na = (e, t, n, r) => {
3253
3172
  n.not = {};
3254
- }, Ra = (e, t, n, r) => {}, za = (e, t, n, r) => {}, Ba = (e, t, n, r) => {
3173
+ }, Pa = (e, t, n, r) => {}, Fa = (e, t, n, r) => {}, Ia = (e, t, n, r) => {
3255
3174
  S(e, t, n, r, "Date cannot be represented in JSON Schema");
3256
- }, Va = (t, n, r, i) => {
3175
+ }, La = (t, n, r, i) => {
3257
3176
  let a = t._zod.def, o = e(a.entries);
3258
3177
  if (o.length === 0) {
3259
3178
  r.not = {};
3260
3179
  return;
3261
3180
  }
3262
3181
  o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
3263
- }, Ha = (e, t, n, r) => {
3182
+ }, Ra = (e, t, n, r) => {
3264
3183
  let i = e._zod.def;
3265
3184
  if (i.values.length === 0) {
3266
3185
  n.not = {};
@@ -3279,43 +3198,43 @@ var Ea = (e, t = {}) => (n) => {
3279
3198
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
3280
3199
  } 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;
3281
3200
  }
3282
- }, Ua = (e, t, n, r) => {
3201
+ }, za = (e, t, n, r) => {
3283
3202
  S(e, t, n, r, "NaN cannot be represented in JSON Schema");
3284
- }, Wa = (e, t, n, r) => {
3203
+ }, Ba = (e, t, n, r) => {
3285
3204
  let i = n, a = e._zod.pattern;
3286
3205
  if (!a) throw Error("Pattern not found in template literal");
3287
3206
  i.type = "string", i.pattern = a.source;
3288
- }, Ga = (e, t, n, r) => {
3207
+ }, Va = (e, t, n, r) => {
3289
3208
  let i = n, a = {
3290
3209
  type: "string",
3291
3210
  format: "binary",
3292
3211
  contentEncoding: "binary"
3293
3212
  }, { minimum: o, maximum: s, mime: c } = e._zod.bag;
3294
3213
  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);
3295
- }, Ka = (e, t, n, r) => {
3214
+ }, Ha = (e, t, n, r) => {
3296
3215
  n.type = "boolean";
3297
- }, qa = (e, t, n, r) => {
3216
+ }, Ua = (e, t, n, r) => {
3298
3217
  S(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3299
- }, Ja = (e, t, n, r) => {
3218
+ }, Wa = (e, t, n, r) => {
3300
3219
  S(e, t, n, r, "Function types cannot be represented in JSON Schema");
3301
- }, Ya = (e, t, n, r) => {
3220
+ }, Ga = (e, t, n, r) => {
3302
3221
  S(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3303
- }, Xa = (e, t, n, r) => {
3222
+ }, Ka = (e, t, n, r) => {
3304
3223
  S(e, t, n, r, "Map cannot be represented in JSON Schema");
3305
- }, Za = (e, t, n, r) => {
3224
+ }, qa = (e, t, n, r) => {
3306
3225
  S(e, t, n, r, "Set cannot be represented in JSON Schema");
3307
- }, Qa = (e, t, n, r) => {
3226
+ }, Ja = (e, t, n, r) => {
3308
3227
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
3309
3228
  typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = C(a.element, t, {
3310
3229
  ...r,
3311
3230
  path: [...r.path, "items"]
3312
3231
  });
3313
3232
  };
3314
- function $a(e) {
3233
+ function Ya(e) {
3315
3234
  let t = e._zod.def;
3316
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? $a(t.out) : t.type === "catch" ? $a(t.innerType) : e._zod.optin;
3235
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Ya(t.out) : t.type === "catch" ? Ya(t.innerType) : e._zod.optin;
3317
3236
  }
3318
- var eo = (e, t, n, r) => {
3237
+ var Xa = (e, t, n, r) => {
3319
3238
  let i = n, a = e._zod.def, o = a.shape;
3320
3239
  if (Object.getOwnPropertySymbols(o).length && S(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3321
3240
  i.type = "object", i.properties = {};
@@ -3329,13 +3248,13 @@ var eo = (e, t, n, r) => {
3329
3248
  }));
3330
3249
  let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
3331
3250
  let n = a.shape[e];
3332
- return t.io === "input" ? $a(n) === void 0 : n._zod.optout === void 0;
3251
+ return t.io === "input" ? Ya(n) === void 0 : n._zod.optout === void 0;
3333
3252
  }));
3334
3253
  c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = C(a.catchall, t, {
3335
3254
  ...r,
3336
3255
  path: [...r.path, "additionalProperties"]
3337
3256
  })) : t.io === "output" && (i.additionalProperties = !1);
3338
- }, to = (e, t, n, r) => {
3257
+ }, Za = (e, t, n, r) => {
3339
3258
  let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => C(e, t, {
3340
3259
  ...r,
3341
3260
  path: [
@@ -3345,7 +3264,7 @@ var eo = (e, t, n, r) => {
3345
3264
  ]
3346
3265
  }));
3347
3266
  a ? n.oneOf = o : n.anyOf = o;
3348
- }, no = (e, t, n, r) => {
3267
+ }, Qa = (e, t, n, r) => {
3349
3268
  let i = e._zod.def, a = C(i.left, t, {
3350
3269
  ...r,
3351
3270
  path: [
@@ -3362,7 +3281,7 @@ var eo = (e, t, n, r) => {
3362
3281
  ]
3363
3282
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3364
3283
  n.allOf = c, t.intersections.push(c);
3365
- }, ro = (e, t, n, r) => {
3284
+ }, $a = (e, t, n, r) => {
3366
3285
  let i = n, a = e._zod.def;
3367
3286
  i.type = "array";
3368
3287
  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) => C(e, t, {
@@ -3382,7 +3301,7 @@ var eo = (e, t, n, r) => {
3382
3301
  }) : null, u = a.items.length;
3383
3302
  for (; u > 0;) {
3384
3303
  let e = a.items[u - 1];
3385
- if (!(t.io === "input" ? $a(e) !== void 0 : e._zod.optout === "optional")) break;
3304
+ if (!(t.io === "input" ? Ya(e) !== void 0 : e._zod.optout === "optional")) break;
3386
3305
  u--;
3387
3306
  }
3388
3307
  let d = a.items.length, f = !a.rest;
@@ -3390,19 +3309,19 @@ var eo = (e, t, n, r) => {
3390
3309
  let { minimum: p, maximum: m } = e._zod.bag;
3391
3310
  typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
3392
3311
  };
3393
- function io(e, t, n) {
3312
+ function eo(e, t, n) {
3394
3313
  if (t.$ref) {
3395
3314
  if (n.has(t)) return t;
3396
3315
  n.add(t);
3397
3316
  let r = e.get(t)?.def;
3398
3317
  if (!r) return t;
3399
- let i = io(e, r, n);
3318
+ let i = eo(e, r, n);
3400
3319
  return i === r ? t : i;
3401
3320
  }
3402
3321
  for (let r of ["anyOf", "oneOf"]) {
3403
3322
  let i = t[r];
3404
3323
  if (!Array.isArray(i)) continue;
3405
- let a = i.map((t) => io(e, t, n));
3324
+ let a = i.map((t) => eo(e, t, n));
3406
3325
  a.some((e, t) => e !== i[t]) && (t = {
3407
3326
  ...t,
3408
3327
  [r]: a
@@ -3413,15 +3332,15 @@ function io(e, t, n) {
3413
3332
  let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
3414
3333
  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") ? qt : Kt).source), p) : p;
3415
3334
  }
3416
- var ao = /* @__PURE__ */ new WeakMap();
3417
- function oo(e) {
3335
+ var to = /* @__PURE__ */ new WeakMap();
3336
+ function no(e) {
3418
3337
  let t = /* @__PURE__ */ new Map();
3419
3338
  for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
3420
3339
  let n = /* @__PURE__ */ new Map();
3421
- for (let r of ao.get(e) ?? []) {
3340
+ for (let r of to.get(e) ?? []) {
3422
3341
  let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
3423
3342
  if (!a || a === !0 || n.has(a)) continue;
3424
- let o = io(t, a, /* @__PURE__ */ new Set());
3343
+ let o = eo(t, a, /* @__PURE__ */ new Set());
3425
3344
  o !== a && n.set(a, o);
3426
3345
  }
3427
3346
  if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
@@ -3429,7 +3348,7 @@ function oo(e) {
3429
3348
  t && (e.propertyNames = t);
3430
3349
  }
3431
3350
  }
3432
- var so = (e, t, n, r) => {
3351
+ var ro = (e, t, n, r) => {
3433
3352
  let i = n, a = e._zod.def;
3434
3353
  i.type = "object";
3435
3354
  let o = a.keyType, s = o._zod.bag?.patterns;
@@ -3450,47 +3369,47 @@ var so = (e, t, n, r) => {
3450
3369
  ...r,
3451
3370
  path: [...r.path, "propertyNames"]
3452
3371
  });
3453
- let n = ao.get(t);
3454
- n || (n = [], ao.set(t, n), t.deferred.push(() => oo(t))), n.push(e);
3372
+ let n = to.get(t);
3373
+ n || (n = [], to.set(t, n), t.deferred.push(() => no(t))), n.push(e);
3455
3374
  }
3456
3375
  i.additionalProperties = C(a.valueType, t, {
3457
3376
  ...r,
3458
3377
  path: [...r.path, "additionalProperties"]
3459
3378
  });
3460
3379
  }
3461
- let c = o._zod.values, u = t.io === "input" && $a(a.valueType) !== void 0;
3380
+ let c = o._zod.values, u = t.io === "input" && Ya(a.valueType) !== void 0;
3462
3381
  if (c && !a.partial && !u) {
3463
3382
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
3464
3383
  e.length > 0 && (i.required = e.map(String));
3465
3384
  }
3466
- }, co = (e, t, n, r) => {
3385
+ }, io = (e, t, n, r) => {
3467
3386
  let i = e._zod.def, a = C(i.innerType, t, r), o = t.seen.get(e);
3468
3387
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3469
- }, lo = (e, t, n, r) => {
3388
+ }, ao = (e, t, n, r) => {
3470
3389
  let i = e._zod.def;
3471
3390
  C(i.innerType, t, r);
3472
3391
  let a = t.seen.get(e);
3473
3392
  a.ref = i.innerType;
3474
- }, uo = Symbol();
3475
- function fo(e, t, n, r, i) {
3393
+ }, oo = Symbol();
3394
+ function so(e, t, n, r, i) {
3476
3395
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3477
- return a ? (S(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), uo) : JSON.parse(o);
3396
+ return a ? (S(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), oo) : JSON.parse(o);
3478
3397
  }
3479
- var po = (e, t, n, r) => {
3398
+ var co = (e, t, n, r) => {
3480
3399
  let i = e._zod.def;
3481
3400
  C(i.innerType, t, r);
3482
3401
  let a = t.seen.get(e);
3483
3402
  a.ref = i.innerType;
3484
- let o = fo(i.defaultValue, e, t, n, r);
3485
- o !== uo && (n.default = o);
3486
- }, mo = (e, t, n, r) => {
3403
+ let o = so(i.defaultValue, e, t, n, r);
3404
+ o !== oo && (n.default = o);
3405
+ }, lo = (e, t, n, r) => {
3487
3406
  let i = e._zod.def;
3488
3407
  C(i.innerType, t, r);
3489
3408
  let a = t.seen.get(e);
3490
3409
  if (a.ref = i.innerType, t.io !== "input") return;
3491
- let o = fo(i.defaultValue, e, t, n, r);
3492
- o !== uo && (n._prefault = o);
3493
- }, ho = (e, t, n, r) => {
3410
+ let o = so(i.defaultValue, e, t, n, r);
3411
+ o !== oo && (n._prefault = o);
3412
+ }, uo = (e, t, n, r) => {
3494
3413
  let i = e._zod.def;
3495
3414
  C(i.innerType, t, r);
3496
3415
  let a = t.seen.get(e);
@@ -3503,77 +3422,77 @@ var po = (e, t, n, r) => {
3503
3422
  return;
3504
3423
  }
3505
3424
  n.default = o;
3506
- }, go = (e, t, n, r) => {
3425
+ }, fo = (e, t, n, r) => {
3507
3426
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3508
3427
  C(o, t, r);
3509
3428
  let s = t.seen.get(e);
3510
3429
  s.ref = o;
3511
- }, _o = (e, t, n, r) => {
3430
+ }, po = (e, t, n, r) => {
3512
3431
  let i = e._zod.def;
3513
3432
  C(i.innerType, t, r);
3514
3433
  let a = t.seen.get(e);
3515
3434
  a.ref = i.innerType, n.readOnly = !0;
3516
- }, vo = (e, t, n, r) => {
3435
+ }, mo = (e, t, n, r) => {
3517
3436
  let i = e._zod.def;
3518
3437
  C(i.innerType, t, r);
3519
3438
  let a = t.seen.get(e);
3520
3439
  a.ref = i.innerType;
3521
- }, yo = (e, t, n, r) => {
3440
+ }, ho = (e, t, n, r) => {
3522
3441
  let i = e._zod.def;
3523
3442
  C(i.innerType, t, r);
3524
3443
  let a = t.seen.get(e);
3525
3444
  a.ref = i.innerType;
3526
- }, bo = (e, t, n, r) => {
3445
+ }, go = (e, t, n, r) => {
3527
3446
  let i = e._zod.innerType;
3528
3447
  C(i, t, r);
3529
3448
  let a = t.seen.get(e);
3530
3449
  a.ref = i;
3531
- }, xo = {
3532
- string: ka,
3533
- number: Aa,
3534
- boolean: ja,
3535
- bigint: Ma,
3536
- symbol: Na,
3537
- null: Pa,
3538
- undefined: Fa,
3539
- void: Ia,
3540
- never: La,
3541
- any: Ra,
3542
- unknown: za,
3543
- date: Ba,
3544
- enum: Va,
3545
- literal: Ha,
3546
- nan: Ua,
3547
- template_literal: Wa,
3548
- file: Ga,
3549
- success: Ka,
3550
- custom: qa,
3551
- function: Ja,
3552
- transform: Ya,
3553
- map: Xa,
3554
- set: Za,
3555
- array: Qa,
3556
- object: eo,
3557
- union: to,
3558
- intersection: no,
3559
- tuple: ro,
3560
- record: so,
3561
- nullable: co,
3562
- nonoptional: lo,
3563
- default: po,
3564
- prefault: mo,
3565
- catch: ho,
3566
- pipe: go,
3567
- readonly: _o,
3568
- promise: vo,
3569
- optional: yo,
3570
- lazy: bo
3450
+ }, _o = {
3451
+ string: Ta,
3452
+ number: Ea,
3453
+ boolean: Da,
3454
+ bigint: Oa,
3455
+ symbol: ka,
3456
+ null: Aa,
3457
+ undefined: ja,
3458
+ void: Ma,
3459
+ never: Na,
3460
+ any: Pa,
3461
+ unknown: Fa,
3462
+ date: Ia,
3463
+ enum: La,
3464
+ literal: Ra,
3465
+ nan: za,
3466
+ template_literal: Ba,
3467
+ file: Va,
3468
+ success: Ha,
3469
+ custom: Ua,
3470
+ function: Wa,
3471
+ transform: Ga,
3472
+ map: Ka,
3473
+ set: qa,
3474
+ array: Ja,
3475
+ object: Xa,
3476
+ union: Za,
3477
+ intersection: Qa,
3478
+ tuple: $a,
3479
+ record: ro,
3480
+ nullable: io,
3481
+ nonoptional: ao,
3482
+ default: co,
3483
+ prefault: lo,
3484
+ catch: uo,
3485
+ pipe: fo,
3486
+ readonly: po,
3487
+ promise: mo,
3488
+ optional: ho,
3489
+ lazy: go
3571
3490
  };
3572
- function So(e, t) {
3491
+ function vo(e, t) {
3573
3492
  if ("_idmap" in e) {
3574
- let n = e, r = ga({
3493
+ let n = e, r = fa({
3575
3494
  ...t,
3576
- processors: xo
3495
+ processors: _o
3577
3496
  }), i = {};
3578
3497
  for (let e of n._idmap.entries()) {
3579
3498
  let [t, n] = e;
@@ -3587,20 +3506,20 @@ function So(e, t) {
3587
3506
  };
3588
3507
  for (let e of n._idmap.entries()) {
3589
3508
  let [t, n] = e;
3590
- va(r, n), l(a, t, Ta(r, n));
3509
+ ma(r, n), l(a, t, xa(r, n));
3591
3510
  }
3592
3511
  return Object.keys(i).length > 0 && (a.__shared = { [r.target === "draft-2020-12" ? "$defs" : "definitions"]: i }), { schemas: a };
3593
3512
  }
3594
- let n = ga({
3513
+ let n = fa({
3595
3514
  ...t,
3596
- processors: xo
3515
+ processors: _o
3597
3516
  });
3598
- return C(e, n), va(n, e), Ta(n, e);
3517
+ return C(e, n), ma(n, e), xa(n, e);
3599
3518
  }
3600
3519
  //#endregion
3601
3520
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/errors.js
3602
- var Co = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3603
- function wo(e, t, n) {
3521
+ var yo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3522
+ function bo(e, t, n) {
3604
3523
  Object.defineProperty(e, t, {
3605
3524
  configurable: !0,
3606
3525
  enumerable: !1,
@@ -3624,9 +3543,9 @@ function wo(e, t, n) {
3624
3543
  var T = /*@__PURE__*/ _("ZodError", (e, t) => {
3625
3544
  Qe.init(e, t), e.name = "ZodError";
3626
3545
  let r = Object.getPrototypeOf(e);
3627
- Co.has(r) || (Co.add(r), wo(r, "format", (e) => (t) => nt(e, t)), wo(r, "flatten", (e) => (t) => tt(e, t)), wo(r, "addIssue", (e) => (t) => {
3546
+ yo.has(r) || (yo.add(r), bo(r, "format", (e) => (t) => nt(e, t)), bo(r, "flatten", (e) => (t) => tt(e, t)), bo(r, "addIssue", (e) => (t) => {
3628
3547
  e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
3629
- }), wo(r, "addIssues", (e) => (t) => {
3548
+ }), bo(r, "addIssues", (e) => (t) => {
3630
3549
  e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
3631
3550
  }), Object.defineProperty(r, "isEmpty", {
3632
3551
  configurable: !0,
@@ -3635,16 +3554,16 @@ var T = /*@__PURE__*/ _("ZodError", (e, t) => {
3635
3554
  return this.issues.length === 0;
3636
3555
  }
3637
3556
  }));
3638
- }, void 0, { Parent: Error }), To = /* @__PURE__ */ it(T), Eo = /* @__PURE__ */ at(T), Do = /* @__PURE__ */ ot(T), Oo = /* @__PURE__ */ ct(T), ko = /* @__PURE__ */ ut(T), Ao = /* @__PURE__ */ dt(T), jo = /* @__PURE__ */ ft(T), Mo = /* @__PURE__ */ pt(T), No = /* @__PURE__ */ mt(T), Po = /* @__PURE__ */ ht(T), Fo = /* @__PURE__ */ gt(T), Io = /* @__PURE__ */ _t(T);
3557
+ }, void 0, { Parent: Error }), xo = /* @__PURE__ */ it(T), So = /* @__PURE__ */ at(T), Co = /* @__PURE__ */ ot(T), wo = /* @__PURE__ */ ct(T), To = /* @__PURE__ */ ut(T), Eo = /* @__PURE__ */ dt(T), Do = /* @__PURE__ */ ft(T), Oo = /* @__PURE__ */ pt(T), ko = /* @__PURE__ */ mt(T), Ao = /* @__PURE__ */ ht(T), jo = /* @__PURE__ */ gt(T), Mo = /* @__PURE__ */ _t(T);
3639
3558
  //#endregion
3640
3559
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3641
- function Lo() {
3642
- v.localeError || We(si());
3560
+ function No() {
3561
+ v.localeError || We(ri());
3643
3562
  }
3644
- function Ro() {
3645
- v.memoizer || We({ memoizer: ii() });
3563
+ function Po() {
3564
+ v.memoizer || We({ memoizer: ei() });
3646
3565
  }
3647
- var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.type = t.type, e), {
3566
+ var E = /*@__PURE__*/ _("ZodType", (e, t) => (No(), b.init(e, t), e.def = t, e.type = t.type, e), {
3648
3567
  check(...e) {
3649
3568
  let t = this.def;
3650
3569
  return this.clone(u(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -3666,28 +3585,28 @@ var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.t
3666
3585
  return e.add(this, t), this;
3667
3586
  },
3668
3587
  refine(e, t) {
3669
- return this.check(tc(e, t));
3588
+ return this.check(Ys(e, t));
3670
3589
  },
3671
3590
  superRefine(e, t) {
3672
- return this.check(nc(e, t));
3591
+ return this.check(Xs(e, t));
3673
3592
  },
3674
3593
  overwrite(e) {
3675
- return this.check(/* @__PURE__ */ aa(e));
3594
+ return this.check(/* @__PURE__ */ ta(e));
3676
3595
  },
3677
3596
  optional() {
3678
- return Fs(this);
3597
+ return ks(this);
3679
3598
  },
3680
3599
  exactOptional() {
3681
- return Ls(this);
3600
+ return js(this);
3682
3601
  },
3683
3602
  nullable() {
3684
- return zs(this);
3603
+ return Ns(this);
3685
3604
  },
3686
3605
  nullish() {
3687
- return Fs(zs(this));
3606
+ return ks(Ns(this));
3688
3607
  },
3689
3608
  nonoptional(e) {
3690
- return Gs(this, e);
3609
+ return zs(this, e);
3691
3610
  },
3692
3611
  array() {
3693
3612
  return j(this);
@@ -3696,34 +3615,34 @@ var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.t
3696
3615
  return P([this, e]);
3697
3616
  },
3698
3617
  and(e) {
3699
- return Es(this, e);
3618
+ return Ss(this, e);
3700
3619
  },
3701
3620
  transform(e) {
3702
- return Ys(this, Ns(e));
3621
+ return Us(this, Ds(e));
3703
3622
  },
3704
3623
  default(e) {
3705
- return Vs(this, e);
3624
+ return Fs(this, e);
3706
3625
  },
3707
3626
  prefault(e) {
3708
- return Us(this, e);
3627
+ return Ls(this, e);
3709
3628
  },
3710
3629
  catch(e) {
3711
- return qs(this, e);
3630
+ return Vs(this, e);
3712
3631
  },
3713
3632
  pipe(e) {
3714
- return Ys(this, e);
3633
+ return Us(this, e);
3715
3634
  },
3716
3635
  readonly() {
3717
- return Zs(this);
3636
+ return Gs(this);
3718
3637
  },
3719
3638
  describe(e) {
3720
3639
  let t = this.clone();
3721
- return di.add(t, { description: e }), t;
3640
+ return si.add(t, { description: e }), t;
3722
3641
  },
3723
3642
  meta(...e) {
3724
- if (e.length === 0) return di.get(this);
3643
+ if (e.length === 0) return si.get(this);
3725
3644
  let t = this.clone();
3726
- return di.add(t, e[0]), t;
3645
+ return si.add(t, e[0]), t;
3727
3646
  },
3728
3647
  isOptional() {
3729
3648
  return this.safeParse(void 0).success;
@@ -3738,8 +3657,8 @@ var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.t
3738
3657
  return ke(this, "~standard", {
3739
3658
  ...yn(this),
3740
3659
  jsonSchema: {
3741
- input: Da(this, "input"),
3742
- output: Da(this, "output")
3660
+ input: Ca(this, "input"),
3661
+ output: Ca(this, "output")
3743
3662
  }
3744
3663
  });
3745
3664
  },
@@ -3747,16 +3666,16 @@ var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.t
3747
3666
  Oe(this, "~standard", e);
3748
3667
  },
3749
3668
  parse: function e(t, n) {
3750
- return To(this, t, n, { callee: e });
3669
+ return xo(this, t, n, { callee: e });
3751
3670
  },
3752
3671
  parseAsync: async function e(t, n) {
3753
- return await Eo(this, t, n, { callee: e });
3672
+ return await So(this, t, n, { callee: e });
3754
3673
  },
3755
3674
  safeParse(e, t) {
3756
- return Do(this, e, t);
3675
+ return Co(this, e, t);
3757
3676
  },
3758
3677
  async safeParseAsync(e, t) {
3759
- return Oo(this, e, t);
3678
+ return wo(this, e, t);
3760
3679
  },
3761
3680
  get spa() {
3762
3681
  return this?.safeParseAsync;
@@ -3765,329 +3684,329 @@ var E = /*@__PURE__*/ _("ZodType", (e, t) => (Lo(), b.init(e, t), e.def = t, e.t
3765
3684
  Oe(this, "spa", e);
3766
3685
  },
3767
3686
  encode: function e(t, n) {
3768
- return ko(this, t, n, { callee: e });
3687
+ return To(this, t, n, { callee: e });
3769
3688
  },
3770
3689
  decode: function e(t, n) {
3771
- return Ao(this, t, n, { callee: e });
3690
+ return Eo(this, t, n, { callee: e });
3772
3691
  },
3773
3692
  encodeAsync: async function e(t, n) {
3774
- return await jo(this, t, n, { callee: e });
3693
+ return await Do(this, t, n, { callee: e });
3775
3694
  },
3776
3695
  decodeAsync: async function e(t, n) {
3777
- return await Mo(this, t, n, { callee: e });
3696
+ return await Oo(this, t, n, { callee: e });
3778
3697
  },
3779
3698
  safeEncode(e, t) {
3780
- return No(this, e, t);
3699
+ return ko(this, e, t);
3781
3700
  },
3782
3701
  safeDecode(e, t) {
3783
- return Po(this, e, t);
3702
+ return Ao(this, e, t);
3784
3703
  },
3785
3704
  async safeEncodeAsync(e, t) {
3786
- return Fo(this, e, t);
3705
+ return jo(this, e, t);
3787
3706
  },
3788
3707
  async safeDecodeAsync(e, t) {
3789
- return Io(this, e, t);
3708
+ return Mo(this, e, t);
3790
3709
  },
3791
3710
  toJSONSchema(e) {
3792
- return Ea(this, {})(e);
3711
+ return Sa(this, {})(e);
3793
3712
  },
3794
3713
  get description() {
3795
- return di.get(this)?.description;
3714
+ return si.get(this)?.description;
3796
3715
  },
3797
3716
  get _def() {
3798
3717
  return this._zod.def;
3799
3718
  }
3800
- }), zo = /*@__PURE__*/ _("_ZodString", (e, t) => {
3801
- bn.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
3719
+ }), Fo = /*@__PURE__*/ _("_ZodString", (e, t) => {
3720
+ bn.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ta(e, t, n, r);
3802
3721
  let n = e._zod.bag;
3803
3722
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3804
3723
  }, {
3805
3724
  regex(...e) {
3806
- return this.check(/* @__PURE__ */ $i(...e));
3725
+ return this.check(/* @__PURE__ */ Yi(...e));
3807
3726
  },
3808
3727
  includes(...e) {
3809
- return this.check(/* @__PURE__ */ na(...e));
3728
+ return this.check(/* @__PURE__ */ Qi(...e));
3810
3729
  },
3811
3730
  startsWith(...e) {
3812
- return this.check(/* @__PURE__ */ ra(...e));
3731
+ return this.check(/* @__PURE__ */ $i(...e));
3813
3732
  },
3814
3733
  endsWith(...e) {
3815
- return this.check(/* @__PURE__ */ ia(...e));
3734
+ return this.check(/* @__PURE__ */ ea(...e));
3816
3735
  },
3817
3736
  min(...e) {
3818
- return this.check(/* @__PURE__ */ Zi(...e));
3737
+ return this.check(/* @__PURE__ */ qi(...e));
3819
3738
  },
3820
3739
  max(...e) {
3821
- return this.check(/* @__PURE__ */ Xi(...e));
3740
+ return this.check(/* @__PURE__ */ Ki(...e));
3822
3741
  },
3823
3742
  length(...e) {
3824
- return this.check(/* @__PURE__ */ Qi(...e));
3743
+ return this.check(/* @__PURE__ */ Ji(...e));
3825
3744
  },
3826
3745
  nonempty(...e) {
3827
- return this.check(/* @__PURE__ */ Zi(1, ...e));
3746
+ return this.check(/* @__PURE__ */ qi(1, ...e));
3828
3747
  },
3829
3748
  lowercase(e) {
3830
- return this.check(/* @__PURE__ */ ea(e));
3749
+ return this.check(/* @__PURE__ */ Xi(e));
3831
3750
  },
3832
3751
  uppercase(e) {
3833
- return this.check(/* @__PURE__ */ ta(e));
3752
+ return this.check(/* @__PURE__ */ Zi(e));
3834
3753
  },
3835
3754
  trim() {
3836
- return this.check(/* @__PURE__ */ sa());
3755
+ return this.check(/* @__PURE__ */ ra());
3837
3756
  },
3838
3757
  normalize(...e) {
3839
- return this.check(/* @__PURE__ */ oa(...e));
3758
+ return this.check(/* @__PURE__ */ na(...e));
3840
3759
  },
3841
3760
  toLowerCase() {
3842
- return this.check(/* @__PURE__ */ ca());
3761
+ return this.check(/* @__PURE__ */ ia());
3843
3762
  },
3844
3763
  toUpperCase() {
3845
- return this.check(/* @__PURE__ */ la());
3764
+ return this.check(/* @__PURE__ */ aa());
3846
3765
  },
3847
3766
  slugify() {
3848
- return this.check(/* @__PURE__ */ ua());
3767
+ return this.check(/* @__PURE__ */ oa());
3849
3768
  }
3850
- }), Bo = /*@__PURE__*/ _("ZodString", (e, t) => {
3851
- bn.init(e, t), zo.init(e, t);
3769
+ }), Io = /*@__PURE__*/ _("ZodString", (e, t) => {
3770
+ bn.init(e, t), Fo.init(e, t);
3852
3771
  }, {
3853
3772
  email(e) {
3854
- return this.check(/* @__PURE__ */ pi(Go, e));
3773
+ return this.check(/* @__PURE__ */ li(Vo, e));
3855
3774
  },
3856
3775
  url(e) {
3857
- return this.check(/* @__PURE__ */ yi(Jo, e));
3776
+ return this.check(/* @__PURE__ */ hi(Wo, e));
3858
3777
  },
3859
3778
  jwt(e) {
3860
- return this.check(/* @__PURE__ */ Pi(ls, e));
3779
+ return this.check(/* @__PURE__ */ Ai(as, e));
3861
3780
  },
3862
3781
  emoji(e) {
3863
- return this.check(/* @__PURE__ */ bi(Yo, e));
3782
+ return this.check(/* @__PURE__ */ gi(Go, e));
3864
3783
  },
3865
3784
  guid(e) {
3866
- return this.check(/* @__PURE__ */ mi(Ko, e));
3785
+ return this.check(/* @__PURE__ */ ui(Ho, e));
3867
3786
  },
3868
3787
  uuid(e) {
3869
- return this.check(/* @__PURE__ */ hi(qo, e));
3788
+ return this.check(/* @__PURE__ */ di(Uo, e));
3870
3789
  },
3871
3790
  uuidv4(e) {
3872
- return this.check(/* @__PURE__ */ gi(qo, e));
3791
+ return this.check(/* @__PURE__ */ fi(Uo, e));
3873
3792
  },
3874
3793
  uuidv6(e) {
3875
- return this.check(/* @__PURE__ */ _i(qo, e));
3794
+ return this.check(/* @__PURE__ */ pi(Uo, e));
3876
3795
  },
3877
3796
  uuidv7(e) {
3878
- return this.check(/* @__PURE__ */ vi(qo, e));
3797
+ return this.check(/* @__PURE__ */ mi(Uo, e));
3879
3798
  },
3880
3799
  nanoid(e) {
3881
- return this.check(/* @__PURE__ */ xi(Xo, e));
3800
+ return this.check(/* @__PURE__ */ _i(Ko, e));
3882
3801
  },
3883
3802
  cuid(e) {
3884
- return this.check(/* @__PURE__ */ Si(Zo, e));
3803
+ return this.check(/* @__PURE__ */ vi(qo, e));
3885
3804
  },
3886
3805
  cuid2(e) {
3887
- return this.check(/* @__PURE__ */ Ci(Qo, e));
3806
+ return this.check(/* @__PURE__ */ yi(Jo, e));
3888
3807
  },
3889
3808
  ulid(e) {
3890
- return this.check(/* @__PURE__ */ wi($o, e));
3809
+ return this.check(/* @__PURE__ */ bi(Yo, e));
3891
3810
  },
3892
3811
  base64(e) {
3893
- return this.check(/* @__PURE__ */ ji(os, e));
3812
+ return this.check(/* @__PURE__ */ Di(ns, e));
3894
3813
  },
3895
3814
  base64url(e) {
3896
- return this.check(/* @__PURE__ */ Mi(ss, e));
3815
+ return this.check(/* @__PURE__ */ Oi(rs, e));
3897
3816
  },
3898
3817
  xid(e) {
3899
- return this.check(/* @__PURE__ */ Ti(es, e));
3818
+ return this.check(/* @__PURE__ */ xi(Xo, e));
3900
3819
  },
3901
3820
  ksuid(e) {
3902
- return this.check(/* @__PURE__ */ Ei(ts, e));
3821
+ return this.check(/* @__PURE__ */ Si(Zo, e));
3903
3822
  },
3904
3823
  ipv4(e) {
3905
- return this.check(/* @__PURE__ */ Di(ns, e));
3824
+ return this.check(/* @__PURE__ */ Ci(Qo, e));
3906
3825
  },
3907
3826
  ipv6(e) {
3908
- return this.check(/* @__PURE__ */ Oi(rs, e));
3827
+ return this.check(/* @__PURE__ */ wi($o, e));
3909
3828
  },
3910
3829
  cidrv4(e) {
3911
- return this.check(/* @__PURE__ */ ki(is, e));
3830
+ return this.check(/* @__PURE__ */ Ti(es, e));
3912
3831
  },
3913
3832
  cidrv6(e) {
3914
- return this.check(/* @__PURE__ */ Ai(as, e));
3833
+ return this.check(/* @__PURE__ */ Ei(ts, e));
3915
3834
  },
3916
3835
  e164(e) {
3917
- return this.check(/* @__PURE__ */ Ni(cs, e));
3836
+ return this.check(/* @__PURE__ */ ki(is, e));
3918
3837
  },
3919
3838
  datetime(e) {
3920
- return this.check(/* @__PURE__ */ Fi(Vo, e));
3839
+ return this.check(/* @__PURE__ */ ji(Lo, e));
3921
3840
  },
3922
3841
  date(e) {
3923
- return this.check(/* @__PURE__ */ Ii(Ho, e));
3842
+ return this.check(/* @__PURE__ */ Mi(Ro, e));
3924
3843
  },
3925
3844
  time(e) {
3926
- return this.check(/* @__PURE__ */ Li(Uo, e));
3845
+ return this.check(/* @__PURE__ */ Ni(zo, e));
3927
3846
  },
3928
3847
  duration(e) {
3929
- return this.check(/* @__PURE__ */ Ri(Wo, e));
3848
+ return this.check(/* @__PURE__ */ Pi(Bo, e));
3930
3849
  }
3931
3850
  });
3932
3851
  function D(e) {
3933
- return /* @__PURE__ */ fi(Bo, e);
3852
+ return /* @__PURE__ */ ci(Io, e);
3934
3853
  }
3935
3854
  var O = /*@__PURE__*/ _("ZodStringFormat", (e, t) => {
3936
- x.init(e, t), zo.init(e, t);
3937
- }), Vo = /*@__PURE__*/ _("ZodISODateTime", (e, t) => {
3855
+ x.init(e, t), Fo.init(e, t);
3856
+ }), Lo = /*@__PURE__*/ _("ZodISODateTime", (e, t) => {
3938
3857
  Ln.init(e, t), O.init(e, t);
3939
- }), Ho = /*@__PURE__*/ _("ZodISODate", (e, t) => {
3858
+ }), Ro = /*@__PURE__*/ _("ZodISODate", (e, t) => {
3940
3859
  Rn.init(e, t), O.init(e, t);
3941
- }), Uo = /*@__PURE__*/ _("ZodISOTime", (e, t) => {
3860
+ }), zo = /*@__PURE__*/ _("ZodISOTime", (e, t) => {
3942
3861
  zn.init(e, t), O.init(e, t);
3943
- }), Wo = /*@__PURE__*/ _("ZodISODuration", (e, t) => {
3862
+ }), Bo = /*@__PURE__*/ _("ZodISODuration", (e, t) => {
3944
3863
  Bn.init(e, t), O.init(e, t);
3945
- }), Go = /*@__PURE__*/ _("ZodEmail", (e, t) => {
3864
+ }), Vo = /*@__PURE__*/ _("ZodEmail", (e, t) => {
3946
3865
  Cn.init(e, t), O.init(e, t);
3947
- }), Ko = /*@__PURE__*/ _("ZodGUID", (e, t) => {
3866
+ }), Ho = /*@__PURE__*/ _("ZodGUID", (e, t) => {
3948
3867
  xn.init(e, t), O.init(e, t);
3949
- }), qo = /*@__PURE__*/ _("ZodUUID", (e, t) => {
3868
+ }), Uo = /*@__PURE__*/ _("ZodUUID", (e, t) => {
3950
3869
  Sn.init(e, t), O.init(e, t);
3951
- }), Jo = /*@__PURE__*/ _("ZodURL", (e, t) => {
3870
+ }), Wo = /*@__PURE__*/ _("ZodURL", (e, t) => {
3952
3871
  kn.init(e, t), O.init(e, t);
3953
- }), Yo = /*@__PURE__*/ _("ZodEmoji", (e, t) => {
3872
+ }), Go = /*@__PURE__*/ _("ZodEmoji", (e, t) => {
3954
3873
  An.init(e, t), O.init(e, t);
3955
- }), Xo = /*@__PURE__*/ _("ZodNanoID", (e, t) => {
3874
+ }), Ko = /*@__PURE__*/ _("ZodNanoID", (e, t) => {
3956
3875
  jn.init(e, t), O.init(e, t);
3957
- }), Zo = /*@__PURE__*/ _("ZodCUID", (e, t) => {
3876
+ }), qo = /*@__PURE__*/ _("ZodCUID", (e, t) => {
3958
3877
  Mn.init(e, t), O.init(e, t);
3959
- }), Qo = /*@__PURE__*/ _("ZodCUID2", (e, t) => {
3878
+ }), Jo = /*@__PURE__*/ _("ZodCUID2", (e, t) => {
3960
3879
  Nn.init(e, t), O.init(e, t);
3961
- }), $o = /*@__PURE__*/ _("ZodULID", (e, t) => {
3880
+ }), Yo = /*@__PURE__*/ _("ZodULID", (e, t) => {
3962
3881
  Pn.init(e, t), O.init(e, t);
3963
- }), es = /*@__PURE__*/ _("ZodXID", (e, t) => {
3882
+ }), Xo = /*@__PURE__*/ _("ZodXID", (e, t) => {
3964
3883
  Fn.init(e, t), O.init(e, t);
3965
- }), ts = /*@__PURE__*/ _("ZodKSUID", (e, t) => {
3884
+ }), Zo = /*@__PURE__*/ _("ZodKSUID", (e, t) => {
3966
3885
  In.init(e, t), O.init(e, t);
3967
- }), ns = /*@__PURE__*/ _("ZodIPv4", (e, t) => {
3886
+ }), Qo = /*@__PURE__*/ _("ZodIPv4", (e, t) => {
3968
3887
  Vn.init(e, t), O.init(e, t);
3969
- }), rs = /*@__PURE__*/ _("ZodIPv6", (e, t) => {
3888
+ }), $o = /*@__PURE__*/ _("ZodIPv6", (e, t) => {
3970
3889
  Wn.init(e, t), O.init(e, t);
3971
- }), is = /*@__PURE__*/ _("ZodCIDRv4", (e, t) => {
3890
+ }), es = /*@__PURE__*/ _("ZodCIDRv4", (e, t) => {
3972
3891
  Gn.init(e, t), O.init(e, t);
3973
- }), as = /*@__PURE__*/ _("ZodCIDRv6", (e, t) => {
3892
+ }), ts = /*@__PURE__*/ _("ZodCIDRv6", (e, t) => {
3974
3893
  qn.init(e, t), O.init(e, t);
3975
- }), os = /*@__PURE__*/ _("ZodBase64", (e, t) => {
3894
+ }), ns = /*@__PURE__*/ _("ZodBase64", (e, t) => {
3976
3895
  Yn.init(e, t), O.init(e, t);
3977
- }), ss = /*@__PURE__*/ _("ZodBase64URL", (e, t) => {
3896
+ }), rs = /*@__PURE__*/ _("ZodBase64URL", (e, t) => {
3978
3897
  Zn.init(e, t), O.init(e, t);
3979
- }), cs = /*@__PURE__*/ _("ZodE164", (e, t) => {
3898
+ }), is = /*@__PURE__*/ _("ZodE164", (e, t) => {
3980
3899
  Qn.init(e, t), O.init(e, t);
3981
- }), ls = /*@__PURE__*/ _("ZodJWT", (e, t) => {
3900
+ }), as = /*@__PURE__*/ _("ZodJWT", (e, t) => {
3982
3901
  er.init(e, t), O.init(e, t);
3983
- }), us = /*@__PURE__*/ _("ZodNumber", (e, t) => {
3984
- tr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r);
3902
+ }), os = /*@__PURE__*/ _("ZodNumber", (e, t) => {
3903
+ tr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ea(e, t, n, r);
3985
3904
  let n = e._zod.bag;
3986
3905
  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;
3987
3906
  }, {
3988
3907
  gt(e, t) {
3989
- return this.check(/* @__PURE__ */ qi(e, t));
3908
+ return this.check(/* @__PURE__ */ Ui(e, t));
3990
3909
  },
3991
3910
  gte(e, t) {
3992
- return this.check(/* @__PURE__ */ Ji(e, t));
3911
+ return this.check(/* @__PURE__ */ Wi(e, t));
3993
3912
  },
3994
3913
  min(e, t) {
3995
- return this.check(/* @__PURE__ */ Ji(e, t));
3914
+ return this.check(/* @__PURE__ */ Wi(e, t));
3996
3915
  },
3997
3916
  lt(e, t) {
3998
- return this.check(/* @__PURE__ */ Gi(e, t));
3917
+ return this.check(/* @__PURE__ */ Vi(e, t));
3999
3918
  },
4000
3919
  lte(e, t) {
4001
- return this.check(/* @__PURE__ */ Ki(e, t));
3920
+ return this.check(/* @__PURE__ */ Hi(e, t));
4002
3921
  },
4003
3922
  max(e, t) {
4004
- return this.check(/* @__PURE__ */ Ki(e, t));
3923
+ return this.check(/* @__PURE__ */ Hi(e, t));
4005
3924
  },
4006
3925
  int(e) {
4007
- return this.check(fs(e));
3926
+ return this.check(cs(e));
4008
3927
  },
4009
3928
  safe(e) {
4010
- return this.check(fs(e));
3929
+ return this.check(cs(e));
4011
3930
  },
4012
3931
  positive(e) {
4013
- return this.check(/* @__PURE__ */ qi(0, e));
3932
+ return this.check(/* @__PURE__ */ Ui(0, e));
4014
3933
  },
4015
3934
  nonnegative(e) {
4016
- return this.check(/* @__PURE__ */ Ji(0, e));
3935
+ return this.check(/* @__PURE__ */ Wi(0, e));
4017
3936
  },
4018
3937
  negative(e) {
4019
- return this.check(/* @__PURE__ */ Gi(0, e));
3938
+ return this.check(/* @__PURE__ */ Vi(0, e));
4020
3939
  },
4021
3940
  nonpositive(e) {
4022
- return this.check(/* @__PURE__ */ Ki(0, e));
3941
+ return this.check(/* @__PURE__ */ Hi(0, e));
4023
3942
  },
4024
3943
  multipleOf(e, t) {
4025
- return this.check(/* @__PURE__ */ Yi(e, t));
3944
+ return this.check(/* @__PURE__ */ Gi(e, t));
4026
3945
  },
4027
3946
  step(e, t) {
4028
- return this.check(/* @__PURE__ */ Yi(e, t));
3947
+ return this.check(/* @__PURE__ */ Gi(e, t));
4029
3948
  },
4030
3949
  finite() {
4031
3950
  return this;
4032
3951
  }
4033
3952
  });
4034
3953
  function k(e) {
4035
- return /* @__PURE__ */ zi(us, e);
3954
+ return /* @__PURE__ */ Fi(os, e);
4036
3955
  }
4037
- var ds = /*@__PURE__*/ _("ZodNumberFormat", (e, t) => {
4038
- nr.init(e, t), us.init(e, t);
3956
+ var ss = /*@__PURE__*/ _("ZodNumberFormat", (e, t) => {
3957
+ nr.init(e, t), os.init(e, t);
4039
3958
  });
4040
- function fs(e) {
4041
- return /* @__PURE__ */ Bi(ds, e);
3959
+ function cs(e) {
3960
+ return /* @__PURE__ */ Ii(ss, e);
4042
3961
  }
4043
- var ps = /*@__PURE__*/ _("ZodBoolean", (e, t) => {
4044
- rr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
3962
+ var ls = /*@__PURE__*/ _("ZodBoolean", (e, t) => {
3963
+ rr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Da(e, t, n, r);
4045
3964
  });
4046
3965
  function A(e) {
4047
- return /* @__PURE__ */ Vi(ps, e);
3966
+ return /* @__PURE__ */ Li(ls, e);
4048
3967
  }
4049
- var ms = /*@__PURE__*/ _("ZodNull", (e, t) => {
4050
- ir.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r);
3968
+ var us = /*@__PURE__*/ _("ZodNull", (e, t) => {
3969
+ ir.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r);
4051
3970
  });
4052
- function hs(e) {
4053
- return /* @__PURE__ */ Hi(ms, e);
3971
+ function ds(e) {
3972
+ return /* @__PURE__ */ Ri(us, e);
4054
3973
  }
4055
- var gs = /*@__PURE__*/ _("ZodUnknown", (e, t) => {
3974
+ var fs = /*@__PURE__*/ _("ZodUnknown", (e, t) => {
4056
3975
  ar.init(e, t), E.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
4057
3976
  });
4058
- function _s() {
4059
- return /* @__PURE__ */ Ui(gs);
3977
+ function ps() {
3978
+ return /* @__PURE__ */ zi(fs);
4060
3979
  }
4061
- var vs = /*@__PURE__*/ _("ZodNever", (e, t) => {
4062
- or.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r);
3980
+ var ms = /*@__PURE__*/ _("ZodNever", (e, t) => {
3981
+ or.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r);
4063
3982
  });
4064
- function ys(e) {
4065
- return /* @__PURE__ */ Wi(vs, e);
3983
+ function hs(e) {
3984
+ return /* @__PURE__ */ Bi(ms, e);
4066
3985
  }
4067
- var bs = /*@__PURE__*/ _("ZodArray", (e, t) => {
4068
- Ro(), cr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.element = t.element;
3986
+ var gs = /*@__PURE__*/ _("ZodArray", (e, t) => {
3987
+ Po(), cr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.element = t.element;
4069
3988
  }, {
4070
3989
  min(e, t) {
4071
- return this.check(/* @__PURE__ */ Zi(e, t));
3990
+ return this.check(/* @__PURE__ */ qi(e, t));
4072
3991
  },
4073
3992
  nonempty(e) {
4074
- return this.check(/* @__PURE__ */ Zi(1, e));
3993
+ return this.check(/* @__PURE__ */ qi(1, e));
4075
3994
  },
4076
3995
  max(e, t) {
4077
- return this.check(/* @__PURE__ */ Xi(e, t));
3996
+ return this.check(/* @__PURE__ */ Ki(e, t));
4078
3997
  },
4079
3998
  length(e, t) {
4080
- return this.check(/* @__PURE__ */ Qi(e, t));
3999
+ return this.check(/* @__PURE__ */ Ji(e, t));
4081
4000
  },
4082
4001
  unwrap() {
4083
4002
  return this.element;
4084
4003
  }
4085
4004
  });
4086
4005
  function j(e, t) {
4087
- return /* @__PURE__ */ da(bs, e, t);
4006
+ return /* @__PURE__ */ sa(gs, e, t);
4088
4007
  }
4089
- var xs = /*@__PURE__*/ _("ZodObject", (e, t) => {
4090
- Ro(), hr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => eo(e, t, n, r), Fe(e, "shape", (e) => e._zod.def.shape, !1);
4008
+ var _s = /*@__PURE__*/ _("ZodObject", (e, t) => {
4009
+ Po(), hr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r), Fe(e, "shape", (e) => e._zod.def.shape, !1);
4091
4010
  }, {
4092
4011
  keyof() {
4093
4012
  return I(Object.keys(this._zod.def.shape));
@@ -4101,19 +4020,19 @@ var xs = /*@__PURE__*/ _("ZodObject", (e, t) => {
4101
4020
  passthrough() {
4102
4021
  return this.clone({
4103
4022
  ...this._zod.def,
4104
- catchall: _s()
4023
+ catchall: ps()
4105
4024
  });
4106
4025
  },
4107
4026
  loose() {
4108
4027
  return this.clone({
4109
4028
  ...this._zod.def,
4110
- catchall: _s()
4029
+ catchall: ps()
4111
4030
  });
4112
4031
  },
4113
4032
  strict() {
4114
4033
  return this.clone({
4115
4034
  ...this._zod.def,
4116
- catchall: ys()
4035
+ catchall: hs()
4117
4036
  });
4118
4037
  },
4119
4038
  strip() {
@@ -4138,115 +4057,85 @@ var xs = /*@__PURE__*/ _("ZodObject", (e, t) => {
4138
4057
  return ue(this, e);
4139
4058
  },
4140
4059
  partial(...e) {
4141
- return me(Ps, this, e[0]);
4060
+ return me(Os, this, e[0]);
4142
4061
  },
4143
4062
  exactPartial(...e) {
4144
- return me(Is, this, e[0], "exactPartial");
4063
+ return me(As, this, e[0], "exactPartial");
4145
4064
  },
4146
4065
  required(...e) {
4147
- return he(Ws, this, e[0]);
4066
+ return he(Rs, this, e[0]);
4148
4067
  }
4149
4068
  });
4150
4069
  function M(e, t) {
4151
- return new xs({
4070
+ return new _s({
4152
4071
  type: "object",
4153
4072
  shape: e ?? {},
4154
4073
  ...h(t)
4155
4074
  });
4156
4075
  }
4157
4076
  function N(e, t) {
4158
- return new xs({
4077
+ return new _s({
4159
4078
  type: "object",
4160
4079
  shape: e,
4161
- catchall: ys(),
4080
+ catchall: hs(),
4162
4081
  ...h(t)
4163
4082
  });
4164
4083
  }
4165
- var Ss = /*@__PURE__*/ _("ZodUnion", (e, t) => {
4166
- _r.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => to(e, t, n, r), e.options = t.options;
4084
+ var vs = /*@__PURE__*/ _("ZodUnion", (e, t) => {
4085
+ _r.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Za(e, t, n, r), e.options = t.options;
4167
4086
  });
4168
4087
  function P(e, t) {
4169
- return new Ss({
4088
+ return new vs({
4170
4089
  type: "union",
4171
4090
  options: e,
4172
4091
  ...h(t)
4173
4092
  });
4174
4093
  }
4175
- var Cs = /*@__PURE__*/ _("ZodDiscriminatedUnion", (e, t) => {
4176
- Ss.init(e, t), vr.init(e, t);
4094
+ var ys = /*@__PURE__*/ _("ZodDiscriminatedUnion", (e, t) => {
4095
+ vs.init(e, t), vr.init(e, t);
4177
4096
  });
4178
- function ws(e, t, n) {
4179
- return new Cs({
4097
+ function bs(e, t, n) {
4098
+ return new ys({
4180
4099
  type: "union",
4181
4100
  options: t,
4182
4101
  discriminator: e,
4183
4102
  ...h(n)
4184
4103
  });
4185
4104
  }
4186
- var Ts = /*@__PURE__*/ _("ZodIntersection", (e, t) => {
4187
- yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r);
4105
+ var xs = /*@__PURE__*/ _("ZodIntersection", (e, t) => {
4106
+ yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r);
4188
4107
  });
4189
- function Es(e, t) {
4190
- return new Ts({
4108
+ function Ss(e, t) {
4109
+ return new xs({
4191
4110
  type: "intersection",
4192
4111
  left: e,
4193
4112
  right: t
4194
4113
  });
4195
4114
  }
4196
- var Ds = /*@__PURE__*/ _("ZodTuple", (e, t) => {
4197
- Ro(), Sr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r);
4198
- }, {
4199
- rest(e) {
4200
- return this.clone({
4201
- ...this._zod.def,
4202
- rest: e
4203
- });
4204
- },
4205
- partial() {
4206
- let e = this._zod.def;
4207
- if (e.checks?.length) throw Error(".partial() cannot be used on tuple schemas containing refinements");
4208
- return this.clone({
4209
- ...e,
4210
- items: e.items.map((e) => new Ps({
4211
- type: "optional",
4212
- innerType: e
4213
- }))
4214
- });
4215
- }
4216
- });
4217
- function Os(e, t, n) {
4218
- let r = t instanceof b;
4219
- return new Ds({
4220
- type: "tuple",
4221
- items: e,
4222
- rest: r ? t : null,
4223
- ...h(r ? n : t)
4224
- });
4225
- }
4226
- var ks = /*@__PURE__*/ _("ZodRecord", (e, t) => {
4227
- Ro(), Er.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => so(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4115
+ var Cs = /*@__PURE__*/ _("ZodRecord", (e, t) => {
4116
+ Po(), Sr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4228
4117
  });
4229
4118
  function F(e, t, n) {
4230
- return !t || !t._zod ? new ks({
4119
+ return !t || !t._zod ? new Cs({
4231
4120
  type: "record",
4232
4121
  keyType: D(),
4233
4122
  valueType: e,
4234
4123
  ...h(t)
4235
- }) : new ks({
4124
+ }) : new Cs({
4236
4125
  type: "record",
4237
4126
  keyType: e,
4238
4127
  valueType: t,
4239
4128
  ...h(n)
4240
4129
  });
4241
4130
  }
4242
- var As = /*@__PURE__*/ _("ZodEnum", (e, t) => {
4243
- Dr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4131
+ var ws = /*@__PURE__*/ _("ZodEnum", (e, t) => {
4132
+ Cr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4244
4133
  let n = new Set(Object.keys(t.entries));
4245
4134
  e.extract = (e, r) => {
4246
4135
  let i = {};
4247
4136
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
4248
4137
  else throw Error(`Key ${r} not found in enum`);
4249
- return new As({
4138
+ return new ws({
4250
4139
  ...t,
4251
4140
  checks: [],
4252
4141
  ...h(r),
@@ -4256,7 +4145,7 @@ var As = /*@__PURE__*/ _("ZodEnum", (e, t) => {
4256
4145
  let i = { ...t.entries };
4257
4146
  for (let t of e) if (n.has(t)) delete i[t];
4258
4147
  else throw Error(`Key ${t} not found in enum`);
4259
- return new As({
4148
+ return new ws({
4260
4149
  ...t,
4261
4150
  checks: [],
4262
4151
  ...h(r),
@@ -4265,27 +4154,27 @@ var As = /*@__PURE__*/ _("ZodEnum", (e, t) => {
4265
4154
  };
4266
4155
  });
4267
4156
  function I(e, t) {
4268
- return new As({
4157
+ return new ws({
4269
4158
  type: "enum",
4270
4159
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
4271
4160
  ...h(t)
4272
4161
  });
4273
4162
  }
4274
- var js = /*@__PURE__*/ _("ZodLiteral", (e, t) => {
4275
- Or.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4163
+ var Ts = /*@__PURE__*/ _("ZodLiteral", (e, t) => {
4164
+ wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4276
4165
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4277
4166
  return t.values[0];
4278
4167
  } });
4279
4168
  });
4280
4169
  function L(e, t) {
4281
- return new js({
4170
+ return new Ts({
4282
4171
  type: "literal",
4283
4172
  values: Array.isArray(e) ? e : [e],
4284
4173
  ...h(t)
4285
4174
  });
4286
4175
  }
4287
- var Ms = /*@__PURE__*/ _("ZodTransform", (e, t) => {
4288
- Ro(), kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ya(e, t, n, r), e._zod.parse = (n, r) => {
4176
+ var Es = /*@__PURE__*/ _("ZodTransform", (e, t) => {
4177
+ Po(), Tr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e._zod.parse = (n, r) => {
4289
4178
  if (r.direction === "backward") throw new Ue(e.constructor.name);
4290
4179
  n.addIssue = (r) => {
4291
4180
  if (typeof r == "string") n.issues.push(Ee(r, n.value, t));
@@ -4298,44 +4187,44 @@ var Ms = /*@__PURE__*/ _("ZodTransform", (e, t) => {
4298
4187
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
4299
4188
  };
4300
4189
  });
4301
- function Ns(e) {
4302
- return new Ms({
4190
+ function Ds(e) {
4191
+ return new Es({
4303
4192
  type: "transform",
4304
4193
  transform: e
4305
4194
  });
4306
4195
  }
4307
- var Ps = /*@__PURE__*/ _("ZodOptional", (e, t) => {
4308
- jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => yo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4196
+ var Os = /*@__PURE__*/ _("ZodOptional", (e, t) => {
4197
+ Dr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4309
4198
  });
4310
- function Fs(e) {
4311
- return new Ps({
4199
+ function ks(e) {
4200
+ return new Os({
4312
4201
  type: "optional",
4313
4202
  innerType: e
4314
4203
  });
4315
4204
  }
4316
- var Is = /*@__PURE__*/ _("ZodExactOptional", (e, t) => {
4317
- Mr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => yo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4205
+ var As = /*@__PURE__*/ _("ZodExactOptional", (e, t) => {
4206
+ Or.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4318
4207
  });
4319
- function Ls(e) {
4320
- return new Is({
4208
+ function js(e) {
4209
+ return new As({
4321
4210
  type: "optional",
4322
4211
  innerType: e
4323
4212
  });
4324
4213
  }
4325
- var Rs = /*@__PURE__*/ _("ZodNullable", (e, t) => {
4326
- Nr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4214
+ var Ms = /*@__PURE__*/ _("ZodNullable", (e, t) => {
4215
+ kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4327
4216
  });
4328
- function zs(e) {
4329
- return new Rs({
4217
+ function Ns(e) {
4218
+ return new Ms({
4330
4219
  type: "nullable",
4331
4220
  innerType: e
4332
4221
  });
4333
4222
  }
4334
- var Bs = /*@__PURE__*/ _("ZodDefault", (e, t) => {
4335
- Pr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => po(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4223
+ var Ps = /*@__PURE__*/ _("ZodDefault", (e, t) => {
4224
+ Ar.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => co(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4336
4225
  });
4337
- function Vs(e, t) {
4338
- return new Bs({
4226
+ function Fs(e, t) {
4227
+ return new Ps({
4339
4228
  type: "default",
4340
4229
  innerType: e,
4341
4230
  get defaultValue() {
@@ -4343,11 +4232,11 @@ function Vs(e, t) {
4343
4232
  }
4344
4233
  });
4345
4234
  }
4346
- var Hs = /*@__PURE__*/ _("ZodPrefault", (e, t) => {
4347
- Ir.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => mo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4235
+ var Is = /*@__PURE__*/ _("ZodPrefault", (e, t) => {
4236
+ Mr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4348
4237
  });
4349
- function Us(e, t) {
4350
- return new Hs({
4238
+ function Ls(e, t) {
4239
+ return new Is({
4351
4240
  type: "prefault",
4352
4241
  innerType: e,
4353
4242
  get defaultValue() {
@@ -4355,69 +4244,69 @@ function Us(e, t) {
4355
4244
  }
4356
4245
  });
4357
4246
  }
4358
- var Ws = /*@__PURE__*/ _("ZodNonOptional", (e, t) => {
4359
- Lr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4247
+ var Rs = /*@__PURE__*/ _("ZodNonOptional", (e, t) => {
4248
+ Nr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ao(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4360
4249
  });
4361
- function Gs(e, t) {
4362
- return new Ws({
4250
+ function zs(e, t) {
4251
+ return new Rs({
4363
4252
  type: "nonoptional",
4364
4253
  innerType: e,
4365
4254
  ...h(t)
4366
4255
  });
4367
4256
  }
4368
- var Ks = /*@__PURE__*/ _("ZodCatch", (e, t) => {
4369
- Br.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4257
+ var Bs = /*@__PURE__*/ _("ZodCatch", (e, t) => {
4258
+ Ir.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => uo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4370
4259
  });
4371
- function qs(e, t) {
4372
- return new Ks({
4260
+ function Vs(e, t) {
4261
+ return new Bs({
4373
4262
  type: "catch",
4374
4263
  innerType: e,
4375
4264
  catchValue: typeof t == "function" ? t : Le(t)
4376
4265
  });
4377
4266
  }
4378
- var Js = /*@__PURE__*/ _("ZodPipe", (e, t) => {
4379
- Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => go(e, t, n, r), e.in = t.in, e.out = t.out;
4267
+ var Hs = /*@__PURE__*/ _("ZodPipe", (e, t) => {
4268
+ Lr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => fo(e, t, n, r), e.in = t.in, e.out = t.out;
4380
4269
  });
4381
- function Ys(e, t) {
4382
- return new Js({
4270
+ function Us(e, t) {
4271
+ return new Hs({
4383
4272
  type: "pipe",
4384
4273
  in: e,
4385
4274
  out: t
4386
4275
  });
4387
4276
  }
4388
- var Xs = /*@__PURE__*/ _("ZodReadonly", (e, t) => {
4389
- Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => _o(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4277
+ var Ws = /*@__PURE__*/ _("ZodReadonly", (e, t) => {
4278
+ zr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => po(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4390
4279
  });
4391
- function Zs(e) {
4392
- return new Xs({
4280
+ function Gs(e) {
4281
+ return new Ws({
4393
4282
  type: "readonly",
4394
4283
  innerType: e
4395
4284
  });
4396
4285
  }
4397
- var Qs = /*@__PURE__*/ _("ZodLazy", (e, t) => {
4398
- Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4286
+ var Ks = /*@__PURE__*/ _("ZodLazy", (e, t) => {
4287
+ Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => go(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4399
4288
  });
4400
- function $s(e) {
4401
- return new Qs({
4289
+ function qs(e) {
4290
+ return new Ks({
4402
4291
  type: "lazy",
4403
4292
  getter: e
4404
4293
  });
4405
4294
  }
4406
- var ec = /*@__PURE__*/ _("ZodCustom", (e, t) => {
4407
- Kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r);
4295
+ var Js = /*@__PURE__*/ _("ZodCustom", (e, t) => {
4296
+ Hr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r);
4408
4297
  });
4409
- function tc(e, t = {}) {
4410
- return /* @__PURE__ */ fa(ec, e, t);
4298
+ function Ys(e, t = {}) {
4299
+ return /* @__PURE__ */ ca(Js, e, t);
4411
4300
  }
4412
- function nc(e, t) {
4413
- return /* @__PURE__ */ pa(e, t);
4301
+ function Xs(e, t) {
4302
+ return /* @__PURE__ */ la(e, t);
4414
4303
  }
4415
- function rc(e) {
4416
- let t = $s(() => P([
4304
+ function Zs(e) {
4305
+ let t = qs(() => P([
4417
4306
  D(e),
4418
4307
  k(),
4419
4308
  A(),
4420
- hs(),
4309
+ ds(),
4421
4310
  j(t),
4422
4311
  F(D(), t)
4423
4312
  ]));
@@ -4425,25 +4314,25 @@ function rc(e) {
4425
4314
  }
4426
4315
  //#endregion
4427
4316
  //#region ../../node_modules/.bun/dequal@2.0.3/node_modules/dequal/lite/index.mjs
4428
- var ic = Object.prototype.hasOwnProperty;
4429
- function ac(e, t) {
4317
+ var Qs = Object.prototype.hasOwnProperty;
4318
+ function $s(e, t) {
4430
4319
  var n, r;
4431
4320
  if (e === t) return !0;
4432
4321
  if (e && t && (n = e.constructor) === t.constructor) {
4433
4322
  if (n === Date) return e.getTime() === t.getTime();
4434
4323
  if (n === RegExp) return e.toString() === t.toString();
4435
4324
  if (n === Array) {
4436
- if ((r = e.length) === t.length) for (; r-- && ac(e[r], t[r]););
4325
+ if ((r = e.length) === t.length) for (; r-- && $s(e[r], t[r]););
4437
4326
  return r === -1;
4438
4327
  }
4439
4328
  if (!n || typeof e == "object") {
4440
- for (n in r = 0, e) if (ic.call(e, n) && ++r && !ic.call(t, n) || !(n in t) || !ac(e[n], t[n])) return !1;
4329
+ for (n in r = 0, e) if (Qs.call(e, n) && ++r && !Qs.call(t, n) || !(n in t) || !$s(e[n], t[n])) return !1;
4441
4330
  return Object.keys(t).length === r;
4442
4331
  }
4443
4332
  }
4444
4333
  return e !== e && t !== t;
4445
4334
  }
4446
- var oc = [
4335
+ var ec = [
4447
4336
  "canceled",
4448
4337
  "completed",
4449
4338
  "failed",
@@ -4453,13 +4342,13 @@ var oc = [
4453
4342
  "starting",
4454
4343
  "waiting"
4455
4344
  ];
4456
- function sc(e, t = 0) {
4345
+ function tc(e, t = 0) {
4457
4346
  if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
4458
- if (typeof e == "object" && e) for (let n of Object.values(e)) sc(n, t + 1);
4347
+ if (typeof e == "object" && e) for (let n of Object.values(e)) tc(n, t + 1);
4459
4348
  }
4460
4349
  //#endregion
4461
4350
  //#region src/flow/common/triggerScheduleSchema.ts
4462
- var cc = j(P([M({
4351
+ var nc = j(P([M({
4463
4352
  type: L("cron"),
4464
4353
  expression: D(),
4465
4354
  timezone: D()
@@ -4473,38 +4362,38 @@ var cc = j(P([M({
4473
4362
  "week"
4474
4363
  ]),
4475
4364
  value: k()
4476
- })])), R = D(), z = rc(), lc = j(R), uc = M({
4365
+ })])), R = D(), z = Zs(), rc = j(R), ic = M({
4477
4366
  description: R.optional(),
4478
4367
  jsonSchema: z,
4479
4368
  nullable: A(),
4480
4369
  handle: R
4481
- }), B = uc.extend({ value: z.optional() }), dc = M({
4370
+ }), B = ic.extend({ value: z.optional() }), ac = M({
4482
4371
  collapsed: A().optional(),
4483
4372
  group: R
4484
- }), fc = M({
4373
+ }), oc = M({
4485
4374
  kind: L("node"),
4486
4375
  nodeId: R,
4487
4376
  output: R
4488
- }), pc = M({
4377
+ }), sc = M({
4489
4378
  kind: L("flow"),
4490
4379
  input: R
4491
- }), mc = P([
4492
- fc,
4493
- pc,
4380
+ }), cc = P([
4381
+ oc,
4382
+ sc,
4494
4383
  M({
4495
4384
  kind: L("binding"),
4496
4385
  bindingId: R
4497
4386
  })
4498
- ]), hc = P([M({
4387
+ ]), lc = P([M({
4499
4388
  kind: L("value"),
4500
4389
  value: z
4501
4390
  }), M({
4502
4391
  kind: L("sources"),
4503
- sources: j(mc)
4504
- })]), gc = F(R, hc), _c = {
4505
- inputs: j(P([B, dc])),
4506
- outputs: j(P([uc, dc]))
4507
- }, vc = M({
4392
+ sources: j(cc)
4393
+ })]), uc = F(R, lc), dc = {
4394
+ inputs: j(P([B, ac])),
4395
+ outputs: j(P([ic, ac]))
4396
+ }, fc = M({
4508
4397
  kind: L("connector"),
4509
4398
  action: R,
4510
4399
  connectionId: R.optional(),
@@ -4512,19 +4401,19 @@ var cc = j(P([M({
4512
4401
  connectionId: R,
4513
4402
  alias: R.optional()
4514
4403
  }))
4515
- }), yc = M({
4516
- ..._c,
4404
+ }), pc = M({
4405
+ ...dc,
4517
4406
  name: R,
4518
4407
  moduleId: R,
4519
- capabilities: j(vc).optional()
4520
- }), bc = P([M({
4408
+ capabilities: j(fc).optional()
4409
+ }), mc = P([M({
4521
4410
  kind: L("value"),
4522
4411
  value: z
4523
4412
  }), M({
4524
4413
  kind: L("input"),
4525
4414
  input: R
4526
- })]), xc = P([bc, M({ kind: L("model") })]), Sc = M({
4527
- ..._c,
4415
+ })]), hc = P([mc, M({ kind: L("model") })]), gc = M({
4416
+ ...dc,
4528
4417
  name: R,
4529
4418
  executor: P([
4530
4419
  M({
@@ -4540,7 +4429,7 @@ var cc = j(P([M({
4540
4429
  kind: L("agent"),
4541
4430
  code: A().optional(),
4542
4431
  model: R,
4543
- prompt: bc,
4432
+ prompt: mc,
4544
4433
  system: R,
4545
4434
  maxRounds: k(),
4546
4435
  tools: j(M({
@@ -4550,16 +4439,16 @@ var cc = j(P([M({
4550
4439
  action: R,
4551
4440
  connectionId: R.optional(),
4552
4441
  approval: A(),
4553
- inputs: j(B.extend({ source: xc }))
4442
+ inputs: j(B.extend({ source: hc }))
4554
4443
  })),
4555
4444
  notification: M({
4556
4445
  taskId: R,
4557
4446
  messageHandle: R,
4558
- inputs: F(R, bc)
4447
+ inputs: F(R, mc)
4559
4448
  }).optional()
4560
4449
  })
4561
4450
  ])
4562
- }), Cc = {
4451
+ }), _c = {
4563
4452
  input: B,
4564
4453
  cases: j(M({
4565
4454
  output: R,
@@ -4592,29 +4481,26 @@ var cc = j(P([M({
4592
4481
  }))
4593
4482
  })),
4594
4483
  defaultOutput: R.optional()
4595
- }, wc = {
4596
- actions: P([Os([L("continue")]), Os([L("approve"), L("reject")])]),
4597
- prompt: R
4598
- }, Tc = {
4484
+ }, vc = { prompt: R }, yc = {
4599
4485
  bodyFields: j(B),
4600
4486
  options: M({
4601
- allowedMethods: lc.optional(),
4602
- allowedOrigins: lc.optional(),
4487
+ allowedMethods: rc.optional(),
4488
+ allowedOrigins: rc.optional(),
4603
4489
  noResponseBody: A().optional(),
4604
4490
  responseData: R.optional(),
4605
4491
  responseHeaders: F(R, R).optional(),
4606
4492
  responseStatusCode: k().optional()
4607
4493
  }).optional()
4608
- }, Ec = {
4494
+ }, bc = {
4609
4495
  configSchema: z,
4610
4496
  definitionVersion: L(2),
4611
4497
  description: R,
4612
4498
  displayName: R,
4613
4499
  key: R,
4614
4500
  name: R,
4615
- outputs: j(uc).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4501
+ outputs: j(ic).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4616
4502
  provider: R
4617
- }, Dc = M({
4503
+ }, xc = M({
4618
4504
  body: M({
4619
4505
  allowArray: A(),
4620
4506
  allowEmpty: A(),
@@ -4634,133 +4520,139 @@ var cc = j(P([M({
4634
4520
  "PUT"
4635
4521
  ])),
4636
4522
  successStatus: k()
4637
- }), Oc = {
4523
+ }), Sc = {
4638
4524
  name: R,
4639
4525
  description: R.optional(),
4640
4526
  icon: R.optional()
4641
- }, kc = {
4527
+ }, Cc = {
4642
4528
  maxExecutions: k().int().positive().max(2 ** 53 - 1).optional(),
4643
- inputs: gc,
4529
+ inputs: uc,
4644
4530
  name: R.optional(),
4645
4531
  description: R.optional(),
4646
4532
  icon: R.optional(),
4647
4533
  timeoutMs: k().optional()
4648
- }, Ac = P([
4534
+ }, wc = P([
4649
4535
  M({
4650
- ...kc,
4536
+ ...Cc,
4651
4537
  kind: L("condition"),
4652
- ...Cc
4538
+ ..._c
4653
4539
  }),
4654
4540
  M({
4655
- ...kc,
4656
- inputs: _s().transform(() => ({})).default({}),
4541
+ ...Cc,
4542
+ inputs: ps().transform(() => ({})).default({}),
4657
4543
  kind: L("value"),
4658
4544
  values: j(B)
4659
4545
  }),
4660
4546
  M({
4661
- ...kc,
4547
+ ...Cc,
4662
4548
  kind: L("subflow"),
4663
4549
  subflowId: R
4664
4550
  }),
4665
4551
  M({
4666
- ...kc,
4552
+ ...Cc,
4667
4553
  kind: L("task"),
4668
- task: yc,
4554
+ task: pc,
4669
4555
  additionalInputs: j(B).optional()
4670
4556
  }),
4671
4557
  M({
4672
- ...kc,
4558
+ ...Cc,
4673
4559
  kind: L("task"),
4674
4560
  taskId: R,
4675
4561
  additionalInputs: j(B).optional()
4676
4562
  }),
4677
4563
  N({
4678
- ...kc,
4564
+ ...Cc,
4565
+ kind: L("approval"),
4566
+ input: B,
4567
+ ...vc
4568
+ }).omit({ timeoutMs: !0 }),
4569
+ N({
4570
+ ...Cc,
4679
4571
  kind: L("wait"),
4680
4572
  input: B,
4681
- ...wc
4573
+ ...vc
4682
4574
  }).omit({ timeoutMs: !0 }),
4683
4575
  M({
4684
- ...Oc,
4576
+ ...Sc,
4685
4577
  kind: L("manual")
4686
4578
  }),
4687
4579
  M({
4688
- ...Oc,
4580
+ ...Sc,
4689
4581
  kind: L("webhook"),
4690
- ...Tc
4582
+ ...yc
4691
4583
  }),
4692
4584
  M({
4693
- ...Oc,
4585
+ ...Sc,
4694
4586
  kind: L("cron"),
4695
- cronTimes: cc
4587
+ cronTimes: nc
4696
4588
  }),
4697
4589
  M({
4698
- ...Oc,
4590
+ ...Sc,
4699
4591
  kind: L("poll"),
4700
4592
  bindingId: R,
4701
4593
  config: F(R, z),
4702
4594
  definition: M({
4703
- ...Ec,
4595
+ ...bc,
4704
4596
  type: L("poll")
4705
4597
  }),
4706
- pollTimes: cc
4598
+ pollTimes: nc
4707
4599
  }),
4708
4600
  M({
4709
- ...Oc,
4601
+ ...Sc,
4710
4602
  kind: L("integration"),
4711
4603
  bindingId: R,
4712
4604
  config: F(R, z),
4713
4605
  definition: M({
4714
- ...Ec,
4606
+ ...bc,
4715
4607
  type: L("integration"),
4716
- endpoint: Dc
4608
+ endpoint: xc
4717
4609
  })
4718
4610
  })
4719
- ]), jc = P([M({ kind: L("flow") }), M({
4611
+ ]), Tc = P([M({ kind: L("flow") }), M({
4720
4612
  kind: L("subflow"),
4721
4613
  id: R
4722
- })]), Mc = M({
4614
+ })]), Ec = M({
4723
4615
  source: R,
4724
4616
  target: R,
4725
4617
  sourceHandle: R.optional()
4726
4618
  }), V = {
4727
4619
  nodeId: R,
4728
- target: jc
4729
- }, Nc = M({
4620
+ target: Tc
4621
+ }, Dc = M({
4730
4622
  name: R,
4731
4623
  inputs: j(B),
4732
- outputs: j(uc.extend({ sources: j(P([fc, pc])) }))
4733
- }), Pc = M({
4734
- nodes: F(R, Ac),
4735
- edges: j(Mc).default([])
4736
- }), Fc = M({
4624
+ outputs: j(ic.extend({ sources: j(P([oc, sc])) }))
4625
+ }), Oc = M({
4626
+ nodes: F(R, wc),
4627
+ edges: j(Ec).default([])
4628
+ }), kc = M({
4737
4629
  kind: I(["connection", "variable"]),
4738
4630
  target: R
4739
- }), Ic = M({
4631
+ }), Ac = M({
4740
4632
  name: R,
4741
- imports: lc,
4633
+ imports: rc,
4742
4634
  source: R
4743
- }), Lc = M({
4744
- bindings: F(R, Fc),
4745
- graph: Pc,
4746
- subflows: F(R, Nc.extend({ graph: Pc })),
4747
- tasks: F(R, Sc)
4748
- }), Rc = M({
4635
+ }), jc = M({
4636
+ bindings: F(R, kc),
4637
+ graph: Oc,
4638
+ subflows: F(R, Dc.extend({ graph: Oc })),
4639
+ tasks: F(R, gc)
4640
+ }), Mc = M({
4749
4641
  modelVersion: L(2),
4750
- document: Lc,
4751
- modules: F(R, Ic)
4642
+ document: jc,
4643
+ modules: F(R, Ac)
4752
4644
  });
4753
- Rc.extend({
4645
+ Mc.extend({
4754
4646
  kind: L("open-flow-flow-revision"),
4755
4647
  version: L(1)
4756
4648
  });
4757
- function zc(e) {
4758
- return sc(e), Rc.parse(e);
4649
+ function Nc(e) {
4650
+ return tc(e), Mc.parse(e);
4759
4651
  }
4760
- var Bc = {
4652
+ var Pc = {
4761
4653
  "binding.create": {
4762
4654
  bindingId: R,
4763
- binding: Fc
4655
+ binding: kc
4764
4656
  },
4765
4657
  "binding.delete": { bindingId: R },
4766
4658
  "binding.target.set": {
@@ -4769,16 +4661,16 @@ var Bc = {
4769
4661
  value: R
4770
4662
  },
4771
4663
  "graph.edge.connect": {
4772
- target: jc,
4773
- edge: Mc
4664
+ target: Tc,
4665
+ edge: Ec
4774
4666
  },
4775
4667
  "graph.edge.disconnect": {
4776
- target: jc,
4777
- edge: Mc
4668
+ target: Tc,
4669
+ edge: Ec
4778
4670
  },
4779
4671
  "graph.node.create": {
4780
4672
  ...V,
4781
- node: Ac
4673
+ node: wc
4782
4674
  },
4783
4675
  "graph.node.delete": V,
4784
4676
  "graph.node.field.set": P([
@@ -4811,8 +4703,8 @@ var Bc = {
4811
4703
  "graph.node.input.set": {
4812
4704
  ...V,
4813
4705
  handle: R,
4814
- before: hc.optional(),
4815
- value: hc.optional()
4706
+ before: lc.optional(),
4707
+ value: lc.optional()
4816
4708
  },
4817
4709
  "graph.node.additional-inputs.set": {
4818
4710
  ...V,
@@ -4821,30 +4713,30 @@ var Bc = {
4821
4713
  },
4822
4714
  "graph.node.condition.set": {
4823
4715
  ...V,
4824
- before: M(Cc),
4825
- value: M(Cc)
4716
+ before: M(_c),
4717
+ value: M(_c)
4826
4718
  },
4827
4719
  "graph.node.values.set": {
4828
4720
  ...V,
4829
4721
  before: j(B),
4830
4722
  value: j(B)
4831
4723
  },
4832
- "graph.node.wait.set": {
4724
+ "graph.node.resolution.set": {
4833
4725
  ...V,
4834
4726
  target: M({ kind: L("flow") }),
4835
- before: M(wc),
4836
- value: M(wc)
4727
+ before: M(vc),
4728
+ value: M(vc)
4837
4729
  },
4838
4730
  "graph.node.webhook.set": {
4839
4731
  ...V,
4840
4732
  target: M({ kind: L("flow") }),
4841
- before: M(Tc),
4842
- value: M(Tc)
4733
+ before: M(yc),
4734
+ value: M(yc)
4843
4735
  },
4844
4736
  "graph.node.task.ports.set": {
4845
4737
  ...V,
4846
- before: M(_c),
4847
- value: M(_c)
4738
+ before: M(dc),
4739
+ value: M(dc)
4848
4740
  },
4849
4741
  "graph.node.task.name.set": {
4850
4742
  ...V,
@@ -4853,8 +4745,8 @@ var Bc = {
4853
4745
  },
4854
4746
  "graph.node.task.capabilities.set": {
4855
4747
  ...V,
4856
- before: j(vc).optional(),
4857
- value: j(vc).optional()
4748
+ before: j(fc).optional(),
4749
+ value: j(fc).optional()
4858
4750
  },
4859
4751
  "graph.trigger.config.set": {
4860
4752
  nodeId: R,
@@ -4864,12 +4756,12 @@ var Bc = {
4864
4756
  },
4865
4757
  "graph.trigger.schedule.set": {
4866
4758
  nodeId: R,
4867
- before: cc,
4868
- value: cc
4759
+ before: nc,
4760
+ value: nc
4869
4761
  },
4870
4762
  "module.create": {
4871
4763
  moduleId: R,
4872
- module: Ic
4764
+ module: Ac
4873
4765
  },
4874
4766
  "module.delete": { moduleId: R },
4875
4767
  "module.rename": {
@@ -4879,24 +4771,24 @@ var Bc = {
4879
4771
  },
4880
4772
  "module.source.replace": {
4881
4773
  moduleId: R,
4882
- beforeImports: lc,
4774
+ beforeImports: rc,
4883
4775
  beforeSource: R,
4884
- imports: lc,
4776
+ imports: rc,
4885
4777
  source: R
4886
4778
  },
4887
4779
  "subflow.create": {
4888
4780
  subflowId: R,
4889
- subflow: Nc.extend({ graph: Pc })
4781
+ subflow: Dc.extend({ graph: Oc })
4890
4782
  },
4891
4783
  "subflow.definition.set": {
4892
4784
  subflowId: R,
4893
- before: Nc,
4894
- definition: Nc
4785
+ before: Dc,
4786
+ definition: Dc
4895
4787
  },
4896
4788
  "subflow.delete": { subflowId: R },
4897
4789
  "task.create": {
4898
4790
  taskId: R,
4899
- task: Sc
4791
+ task: gc
4900
4792
  },
4901
4793
  "task.delete": { taskId: R },
4902
4794
  "task.connector.connection.set": {
@@ -4906,8 +4798,8 @@ var Bc = {
4906
4798
  },
4907
4799
  "task.agent.set": {
4908
4800
  taskId: R,
4909
- before: Sc,
4910
- value: Sc
4801
+ before: gc,
4802
+ value: gc
4911
4803
  },
4912
4804
  "task.llm.mode.set": {
4913
4805
  taskId: R,
@@ -4920,13 +4812,13 @@ var Bc = {
4920
4812
  value: R
4921
4813
  }
4922
4814
  };
4923
- j(P([...new Map(Object.entries(Bc).map(([e, t]) => [e, t instanceof E ? t : M({
4815
+ j(P([...new Map(Object.entries(Pc).map(([e, t]) => [e, t instanceof E ? t : M({
4924
4816
  kind: L(e),
4925
4817
  ...t
4926
4818
  })])).values()])).min(1);
4927
4819
  //#endregion
4928
4820
  //#region src/flow/common/change.ts
4929
- var Vc = /* @__PURE__ */ new Set([
4821
+ var Fc = /* @__PURE__ */ new Set([
4930
4822
  "const",
4931
4823
  "enum",
4932
4824
  "exclusiveMaximum",
@@ -4944,10 +4836,10 @@ var Vc = /* @__PURE__ */ new Set([
4944
4836
  "required",
4945
4837
  "type"
4946
4838
  ]);
4947
- function Hc(e) {
4948
- return Vc.has(e);
4839
+ function Ic(e) {
4840
+ return Fc.has(e);
4949
4841
  }
4950
- function Uc(e) {
4842
+ function Lc(e) {
4951
4843
  let t = e.trim();
4952
4844
  if (t.length == 0) return "empty";
4953
4845
  if (t.length > 80) return "tooLong";
@@ -4959,23 +4851,23 @@ function Uc(e) {
4959
4851
  }
4960
4852
  //#endregion
4961
4853
  //#region src/control/common/resultQuery.ts
4962
- var Wc = N({
4854
+ var Rc = N({
4963
4855
  pointer: D().max(4096).default(""),
4964
4856
  offset: k().int().nonnegative().default(0),
4965
4857
  limit: k().int().min(1).max(100).default(20),
4966
4858
  maxBytes: k().int().min(1).max(1048576).default(15e3)
4967
- }), Gc = D().min(1).max(256), Kc = D().regex(/^[a-z][a-z0-9_.]{0,127}$/), qc = D().trim().min(1).max(128), Jc = N({
4859
+ }), zc = D().min(1).max(256), Bc = D().regex(/^[a-z][a-z0-9_.]{0,127}$/), Vc = D().trim().min(1).max(128), Hc = N({
4968
4860
  version: L(1),
4969
- sourceId: Gc,
4970
- revision: fs().positive(),
4971
- name: qc,
4861
+ sourceId: zc,
4862
+ revision: cs().positive(),
4863
+ name: Vc,
4972
4864
  provider: I(["feishu", "feishu_app_bot"]),
4973
- appId: Gc,
4974
- tenantKey: Gc,
4975
- connectionId: Gc,
4976
- teamId: Gc.nullable(),
4865
+ appId: zc,
4866
+ tenantKey: zc,
4867
+ connectionId: zc,
4868
+ teamId: zc.nullable(),
4977
4869
  enabled: A(),
4978
- eventTypes: j(Kc),
4870
+ eventTypes: j(Bc),
4979
4871
  manageSubscriptions: A(),
4980
4872
  verificationTokenConfigured: A(),
4981
4873
  encryptKeyConfigured: A(),
@@ -4984,22 +4876,22 @@ var Wc = N({
4984
4876
  lastReceivedAt: D().nullable(),
4985
4877
  updatedAt: D(),
4986
4878
  consumers: j(N({
4987
- flowId: Gc,
4879
+ flowId: zc,
4988
4880
  flowName: D(),
4989
- triggerNodeId: Gc
4881
+ triggerNodeId: zc
4990
4882
  }))
4991
4883
  });
4992
- function Yc(e) {
4993
- return Jc.parse(e);
4884
+ function Uc(e) {
4885
+ return Hc.parse(e);
4994
4886
  }
4995
- function Xc(e) {
4887
+ function Wc(e) {
4996
4888
  return N({
4997
4889
  version: L(1),
4998
- sources: j(Jc),
4999
- teamId: Gc.nullable().optional()
4890
+ sources: j(Hc),
4891
+ teamId: zc.nullable().optional()
5000
4892
  }).parse(e);
5001
4893
  }
5002
- var Zc = new Map([
4894
+ var Gc = new Map([
5003
4895
  "en",
5004
4896
  "zh-CN",
5005
4897
  "zh-TW",
@@ -5008,8 +4900,8 @@ var Zc = new Map([
5008
4900
  "ru",
5009
4901
  "fr"
5010
4902
  ].map((e) => [e.toLowerCase(), e]));
5011
- function Qc(e) {
5012
- return typeof e == "string" && Zc.get(e.toLowerCase()) == e;
4903
+ function Kc(e) {
4904
+ return typeof e == "string" && Gc.get(e.toLowerCase()) == e;
5013
4905
  }
5014
4906
  //#endregion
5015
4907
  //#region src/control/common/errors.ts
@@ -5058,7 +4950,7 @@ var H = {
5058
4950
  variableNotFound: "variable.not-found"
5059
4951
  };
5060
4952
  H.eventSourceInvalid, H.eventSourceIdentityUnavailable, H.eventSourceNotFound, H.eventSourceConflict, H.authenticationRequired, H.authorizationDenied, H.bindingUnresolved, H.connectorActionNotFound, H.connectorUnconfigured, H.connectorUnavailable, H.connectorConsoleUnconfigured, H.engineUnavailable, H.engineUnsupported, H.flowInvalid, H.flowRepairRequired, H.flowUpgradeRequired, H.flowNotFound, H.flowBusy, H.flowConflict, H.flowPresentationConflict, H.flowRevisionConflict, H.liveConflict, H.liveNotFound, H.pageInvalidCursor, H.publicationConflict, H.publicationNotFound, H.publicationUnsupported, H.publishOperationNotFound, H.routeNotFound, H.runConflict, H.runEventsExpired, H.runInvalid, H.runNotFound, H.runNotTerminal, H.runOverloaded, H.runWaitNotFound, H.triggerKeyInvalid, H.triggerKeyNotFound, H.triggerNotFound, H.variableInvalid, H.variableLimitReached, H.variableNotFound;
5061
- var $c = class extends Error {
4953
+ var qc = class extends Error {
5062
4954
  constructor(e, t, n) {
5063
4955
  super(n), this.code = t, this.name = "ApiError", this.status = e;
5064
4956
  }
@@ -5066,7 +4958,7 @@ var $c = class extends Error {
5066
4958
  //#endregion
5067
4959
  //#region src/control/common/decoding.ts
5068
4960
  function U() {
5069
- throw new $c(502, "response.invalid", "The Control API returned an invalid response.");
4961
+ throw new qc(502, "response.invalid", "The Control API returned an invalid response.");
5070
4962
  }
5071
4963
  function W(e) {
5072
4964
  return typeof e != "object" || !e || Array.isArray(e) ? U() : e;
@@ -5087,12 +4979,12 @@ function J(e) {
5087
4979
  let t = W(e);
5088
4980
  return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, J(t)]));
5089
4981
  }
5090
- function el(e) {
4982
+ function Jc(e) {
5091
4983
  if (e != null) return G(e);
5092
4984
  }
5093
4985
  //#endregion
5094
4986
  //#region src/control/common/triggerDecoders.ts
5095
- function tl(e) {
4987
+ function Yc(e) {
5096
4988
  let t = W(e), n = t.type;
5097
4989
  return n != "integration" && n != "poll" ? U() : {
5098
4990
  description: typeof t.description == "string" ? t.description : U(),
@@ -5103,8 +4995,8 @@ function tl(e) {
5103
4995
  type: n
5104
4996
  };
5105
4997
  }
5106
- function nl(e) {
5107
- let t = W(e), n = tl(t), r = {
4998
+ function Xc(e) {
4999
+ let t = W(e), n = Yc(t), r = {
5108
5000
  configSchema: J(t.configSchema),
5109
5001
  definitionVersion: t.definitionVersion === 2 ? 2 : U(),
5110
5002
  description: n.description,
@@ -5154,18 +5046,18 @@ function nl(e) {
5154
5046
  type: "integration"
5155
5047
  };
5156
5048
  }
5157
- var rl = /* @__PURE__ */ new Set([
5049
+ var Zc = /* @__PURE__ */ new Set([
5158
5050
  "cron",
5159
5051
  "integration",
5160
5052
  "poll",
5161
5053
  "webhook"
5162
- ]), il = /* @__PURE__ */ new Set([
5054
+ ]), Qc = /* @__PURE__ */ new Set([
5163
5055
  "failed",
5164
5056
  "healthy",
5165
5057
  "initializing",
5166
5058
  "needs_reauth",
5167
5059
  "suspended"
5168
- ]), al = /* @__PURE__ */ new Set([
5060
+ ]), $c = /* @__PURE__ */ new Set([
5169
5061
  "delivery.failed",
5170
5062
  "health.failed",
5171
5063
  "health.needs_reauth",
@@ -5174,11 +5066,11 @@ var rl = /* @__PURE__ */ new Set([
5174
5066
  "operator.paused",
5175
5067
  "operator.resumed"
5176
5068
  ]);
5177
- function ol(e) {
5069
+ function el(e) {
5178
5070
  let t = W(e), n = t.health, r = t.listener == null ? void 0 : W(t.listener);
5179
5071
  if (r != null && r.health != "healthy" && r.health != "failed" && r.health != "needs_reauth") return U();
5180
5072
  let i = t.kind, a = t.operatorState, o = q(t.runtimeVersion);
5181
- return t.version != 1 || typeof n != "string" || !il.has(n) || typeof i != "string" || !rl.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
5073
+ return t.version != 1 || typeof n != "string" || !Qc.has(n) || typeof i != "string" || !Zc.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
5182
5074
  ...t.currentPublicationId == null ? {} : { currentPublicationId: G(t.currentPublicationId) },
5183
5075
  ...t.currentRevisionId == null ? {} : { currentRevisionId: G(t.currentRevisionId) },
5184
5076
  ...t.endpointUrl == null ? {} : { endpointUrl: G(t.endpointUrl) },
@@ -5197,17 +5089,17 @@ function ol(e) {
5197
5089
  version: 1
5198
5090
  };
5199
5091
  }
5200
- function sl(e) {
5092
+ function tl(e) {
5201
5093
  let t = W(e);
5202
5094
  return t.version == 1 ? {
5203
- binding: ol(t.binding),
5095
+ binding: el(t.binding),
5204
5096
  version: 1
5205
5097
  } : U();
5206
5098
  }
5207
- function cl(e) {
5099
+ function nl(e) {
5208
5100
  let t = W(e), n = t.kind;
5209
- if (typeof n != "string" || !al.has(n)) return U();
5210
- let r = el(t.errorCode), i = el(t.errorMessage);
5101
+ if (typeof n != "string" || !$c.has(n)) return U();
5102
+ let r = Jc(t.errorCode), i = Jc(t.errorMessage);
5211
5103
  return i != null && i.length > 512 ? U() : {
5212
5104
  activityId: G(t.activityId),
5213
5105
  createdAt: G(t.createdAt),
@@ -5216,15 +5108,15 @@ function cl(e) {
5216
5108
  kind: n
5217
5109
  };
5218
5110
  }
5219
- function ll(e) {
5220
- let t = W(e), n = el(t.nextCursor);
5111
+ function rl(e) {
5112
+ let t = W(e), n = Jc(t.nextCursor);
5221
5113
  return t.version != 1 || !Array.isArray(t.activities) ? U() : {
5222
- activities: t.activities.map(cl),
5114
+ activities: t.activities.map(nl),
5223
5115
  ...n == null ? {} : { nextCursor: n },
5224
5116
  version: 1
5225
5117
  };
5226
5118
  }
5227
- function ul(e) {
5119
+ function il(e) {
5228
5120
  let t = W(e), n = q(t.filtered);
5229
5121
  return t.version != 1 || !Array.isArray(t.events) || typeof t.hasMore != "boolean" || n < 0 ? U() : {
5230
5122
  events: t.events.map((e) => {
@@ -5238,15 +5130,15 @@ function ul(e) {
5238
5130
  }
5239
5131
  //#endregion
5240
5132
  //#region src/control/common/triggerCatalog.ts
5241
- function dl(e) {
5133
+ function al(e) {
5242
5134
  let t = W(e);
5243
5135
  if (K(t, [
5244
5136
  "version",
5245
5137
  "locale",
5246
5138
  "definitions",
5247
5139
  "display"
5248
- ]), t.version != 1 || !Qc(t.locale) || !Array.isArray(t.definitions)) return U();
5249
- let n = t.definitions.map(nl), r = W(t.display), i = new Set(n.map((e) => e.key));
5140
+ ]), t.version != 1 || !Kc(t.locale) || !Array.isArray(t.definitions)) return U();
5141
+ let n = t.definitions.map(Xc), r = W(t.display), i = new Set(n.map((e) => e.key));
5250
5142
  if (i.size != n.length || Object.keys(r).length != i.size) return U();
5251
5143
  let a = Object.fromEntries(n.map(({ key: e }) => {
5252
5144
  let t = W(r[e]);
@@ -5264,7 +5156,7 @@ function dl(e) {
5264
5156
  }
5265
5157
  //#endregion
5266
5158
  //#region src/control/common/results.ts
5267
- var fl = rc(), pl = N({
5159
+ var ol = Zs(), sl = N({
5268
5160
  pointer: D(),
5269
5161
  type: I([
5270
5162
  "object",
@@ -5276,75 +5168,75 @@ var fl = rc(), pl = N({
5276
5168
  ]),
5277
5169
  length: k().int().nonnegative().optional(),
5278
5170
  complete: A(),
5279
- value: fl.optional()
5280
- }), ml = pl.extend({
5171
+ value: ol.optional()
5172
+ }), cl = sl.extend({
5281
5173
  offset: k().int().nonnegative(),
5282
5174
  nextOffset: k().int().positive().optional(),
5283
- entries: j(pl).optional()
5284
- }), hl = N({
5175
+ entries: j(sl).optional()
5176
+ }), ll = N({
5285
5177
  resultId: D().min(1),
5286
5178
  callId: D().min(1),
5287
5179
  toolId: D().min(1),
5288
- source: ws("kind", [N({
5180
+ source: bs("kind", [N({
5289
5181
  kind: L("connector"),
5290
5182
  action: D().min(1)
5291
5183
  }), N({ kind: L("code") })]),
5292
5184
  bytes: k().int().nonnegative(),
5293
5185
  digest: D().regex(/^[a-f0-9]{64}$/),
5294
5186
  createdAt: D().datetime()
5295
- }), gl = N({
5187
+ }), ul = N({
5296
5188
  version: L(1),
5297
5189
  runId: D(),
5298
- results: j(hl),
5190
+ results: j(ll),
5299
5191
  nextAfter: D().optional()
5300
- }), _l = N({
5192
+ }), dl = N({
5301
5193
  version: L(1),
5302
5194
  runId: D(),
5303
- result: hl,
5304
- page: ml
5195
+ result: ll,
5196
+ page: cl
5305
5197
  });
5306
- function vl(e) {
5307
- return gl.parse(e);
5198
+ function fl(e) {
5199
+ return ul.parse(e);
5308
5200
  }
5309
- function yl(e) {
5310
- return _l.parse(e);
5201
+ function pl(e) {
5202
+ return dl.parse(e);
5311
5203
  }
5312
5204
  new TextEncoder();
5313
5205
  //#endregion
5314
5206
  //#region src/control/common/checkDecoders.ts
5315
- function bl(e) {
5207
+ function ml(e) {
5316
5208
  return Array.isArray(e) ? e.map((e) => typeof e == "string" || Number.isSafeInteger(e) ? e : U()) : U();
5317
5209
  }
5318
- function xl(e) {
5210
+ function hl(e) {
5319
5211
  let t = W(e), n = G(t.kind);
5320
5212
  return n == "artifact" || n == "binary" || n == "nullable" ? { kind: n } : n == "schema" ? {
5321
5213
  kind: n,
5322
- path: t.path == null ? void 0 : bl(t.path)
5323
- } : n != "keyword" || typeof t.keyword != "string" || !Hc(t.keyword) ? U() : {
5214
+ path: t.path == null ? void 0 : ml(t.path)
5215
+ } : n != "keyword" || typeof t.keyword != "string" || !Ic(t.keyword) ? U() : {
5324
5216
  kind: n,
5325
5217
  keyword: t.keyword,
5326
- path: bl(t.path),
5218
+ path: ml(t.path),
5327
5219
  source: t.source === void 0 ? void 0 : J(t.source),
5328
5220
  target: t.target === void 0 ? void 0 : J(t.target)
5329
5221
  };
5330
5222
  }
5331
- function Sl(e) {
5223
+ function gl(e) {
5332
5224
  let t = W(e), n = t.values == null ? void 0 : W(t.values);
5333
5225
  return {
5334
5226
  code: G(t.code),
5335
5227
  column: q(t.column),
5336
5228
  line: q(t.line),
5337
5229
  message: G(t.message),
5338
- mismatch: t.mismatch == null ? void 0 : xl(t.mismatch),
5230
+ mismatch: t.mismatch == null ? void 0 : hl(t.mismatch),
5339
5231
  path: typeof t.path == "string" ? t.path : U(),
5340
5232
  ...n == null ? {} : { values: Object.fromEntries(Object.entries(n).map(([e, t]) => [e, typeof t == "string" || typeof t == "number" ? t : U()])) }
5341
5233
  };
5342
5234
  }
5343
- function Cl(e) {
5235
+ function _l(e) {
5344
5236
  let t = W(e);
5345
5237
  return t.version != 1 || typeof t.valid != "boolean" || !Array.isArray(t.diagnostics) ? U() : {
5346
5238
  closureDigest: G(t.closureDigest),
5347
- diagnostics: t.diagnostics.map(Sl),
5239
+ diagnostics: t.diagnostics.map(gl),
5348
5240
  engineContract: G(t.engineContract),
5349
5241
  flowId: G(t.flowId),
5350
5242
  modelVersion: q(t.modelVersion),
@@ -5356,7 +5248,7 @@ function Cl(e) {
5356
5248
  }
5357
5249
  //#endregion
5358
5250
  //#region src/control/common/connectorDecoders.ts
5359
- function wl(e) {
5251
+ function vl(e) {
5360
5252
  let t = W(e);
5361
5253
  if (K(t, [
5362
5254
  ...Object.hasOwn(t, "providerAccountId") ? ["providerAccountId"] : [],
@@ -5380,7 +5272,7 @@ function wl(e) {
5380
5272
  status: n
5381
5273
  };
5382
5274
  }
5383
- function Tl(e, t = !1) {
5275
+ function yl(e, t = !1) {
5384
5276
  let n = W(e), r = n.description, i = t && Object.hasOwn(n, "value");
5385
5277
  return K(n, [
5386
5278
  "jsonSchema",
@@ -5394,13 +5286,13 @@ function Tl(e, t = !1) {
5394
5286
  ...i ? { value: J(n.value) } : {}
5395
5287
  };
5396
5288
  }
5397
- function El(e) {
5398
- return Tl(e, !0);
5289
+ function bl(e) {
5290
+ return yl(e, !0);
5399
5291
  }
5400
- function Dl(e, t) {
5292
+ function xl(e, t) {
5401
5293
  return Object.fromEntries(Object.entries(W(e)).map(([e, n]) => [e, t(n)]));
5402
5294
  }
5403
- function Ol(e) {
5295
+ function Sl(e) {
5404
5296
  let t = W(e), n = t.homepageUrl, r = t.icon;
5405
5297
  return K(t, [
5406
5298
  "actionId",
@@ -5425,23 +5317,23 @@ function Ol(e) {
5425
5317
  description: typeof t.description == "string" ? t.description : U(),
5426
5318
  ...n == null ? {} : { homepageUrl: n },
5427
5319
  ...r == null ? {} : { icon: r },
5428
- inputs: Dl(t.inputs, El),
5320
+ inputs: xl(t.inputs, bl),
5429
5321
  name: G(t.name),
5430
- outputs: Dl(t.outputs, Tl),
5322
+ outputs: xl(t.outputs, yl),
5431
5323
  serviceId: G(t.serviceId),
5432
5324
  serviceName: G(t.serviceName)
5433
5325
  };
5434
5326
  }
5435
- function kl(e) {
5436
- let { defaultConnection: t, ...n } = W(e), r = Ol(n);
5327
+ function Cl(e) {
5328
+ let { defaultConnection: t, ...n } = W(e), r = Sl(n);
5437
5329
  if (t == null) return r;
5438
- let i = wl(t);
5330
+ let i = vl(t);
5439
5331
  return i.serviceId != r.serviceId || i.status != "active" ? U() : {
5440
5332
  ...r,
5441
5333
  defaultConnection: i
5442
5334
  };
5443
5335
  }
5444
- function Al(e) {
5336
+ function wl(e) {
5445
5337
  let t = W(e), n = t.homepageUrl, r = t.icon;
5446
5338
  return t.noSetup !== void 0 && typeof t.noSetup != "boolean" || (K(t, [
5447
5339
  ...Object.hasOwn(t, "noSetup") ? ["noSetup"] : [],
@@ -5459,8 +5351,8 @@ function Al(e) {
5459
5351
  }
5460
5352
  //#endregion
5461
5353
  //#region src/control/common/connectorQueries.ts
5462
- var jl = (e) => e == null ? "" : `?flowId=${encodeURIComponent(e)}`;
5463
- function Ml(e, t) {
5354
+ var Tl = (e) => e == null ? "" : `?flowId=${encodeURIComponent(e)}`;
5355
+ function El(e, t) {
5464
5356
  let n = new URLSearchParams({
5465
5357
  ...e == null ? {} : { flowId: e },
5466
5358
  ...t == null ? {} : { locale: t }
@@ -5469,11 +5361,11 @@ function Ml(e, t) {
5469
5361
  path: `/v1/connector/providers${n ? `?${n}` : ""}`,
5470
5362
  decode: (e) => {
5471
5363
  let t = W(e);
5472
- return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(Al);
5364
+ return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(wl);
5473
5365
  }
5474
5366
  };
5475
5367
  }
5476
- function Nl(e, t, n) {
5368
+ function Dl(e, t, n) {
5477
5369
  let r = new URLSearchParams({
5478
5370
  ...t == null ? {} : { flowId: t },
5479
5371
  ...n == null ? {} : { locale: n }
@@ -5482,35 +5374,35 @@ function Nl(e, t, n) {
5482
5374
  path: `/v1/connector/actions/${encodeURIComponent(e)}${r ? `?${r}` : ""}`,
5483
5375
  decode: (e) => {
5484
5376
  let t = W(e);
5485
- return K(t, ["action", "version"]), t.version == 1 ? kl(t.action) : U();
5377
+ return K(t, ["action", "version"]), t.version == 1 ? Cl(t.action) : U();
5486
5378
  }
5487
5379
  };
5488
5380
  }
5489
- function Pl(e) {
5381
+ function Ol(e) {
5490
5382
  return {
5491
- path: `/v1/connector/connections${jl(e)}`,
5383
+ path: `/v1/connector/connections${Tl(e)}`,
5492
5384
  decode: (e) => {
5493
5385
  let t = W(e);
5494
- return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(wl);
5386
+ return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(vl);
5495
5387
  }
5496
5388
  };
5497
5389
  }
5498
- function Fl(e, t) {
5390
+ function kl(e, t) {
5499
5391
  return {
5500
- path: `/v1/connector/connections/${encodeURIComponent(e)}${jl(t)}`,
5392
+ path: `/v1/connector/connections/${encodeURIComponent(e)}${Tl(t)}`,
5501
5393
  decode: (t) => {
5502
5394
  let n = W(t);
5503
5395
  return K(n, [
5504
5396
  "connections",
5505
5397
  "serviceId",
5506
5398
  "version"
5507
- ]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(wl);
5399
+ ]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
5508
5400
  }
5509
5401
  };
5510
5402
  }
5511
5403
  //#endregion
5512
5404
  //#region src/control/common/flowDecoders.ts
5513
- function Il(e) {
5405
+ function Al(e) {
5514
5406
  let t = W(e), n = t.status;
5515
5407
  if (t.version != 1 || n != "active" && n != "retiring") return U();
5516
5408
  let r = t.live == null ? void 0 : W(t.live);
@@ -5529,18 +5421,18 @@ function Il(e) {
5529
5421
  version: 1
5530
5422
  };
5531
5423
  }
5532
- function Ll(e) {
5424
+ function jl(e) {
5533
5425
  let t = W(e);
5534
5426
  if (t.version != 1 || !Array.isArray(t.flows)) return U();
5535
5427
  let n = t.nextCursor, r = t.total;
5536
5428
  return n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
5537
5429
  ...n == null ? {} : { nextCursor: n },
5538
- flows: t.flows.map(Il),
5430
+ flows: t.flows.map(Al),
5539
5431
  ...r == null ? {} : { total: r },
5540
5432
  version: 1
5541
5433
  };
5542
5434
  }
5543
- function Rl(e) {
5435
+ function Ml(e) {
5544
5436
  let t = W(e);
5545
5437
  if (K(t, [
5546
5438
  "name",
@@ -5563,7 +5455,7 @@ function Rl(e) {
5563
5455
  }
5564
5456
  //#endregion
5565
5457
  //#region src/control/common/publicationDecoders.ts
5566
- function zl(e) {
5458
+ function Nl(e) {
5567
5459
  let t = W(e), n = t.operation, r = t.sourcePublicationId;
5568
5460
  return t.version != 1 || n != "publish" && n != "rollback" || r != null && typeof r != "string" ? U() : {
5569
5461
  actorId: G(t.actorId),
@@ -5580,7 +5472,7 @@ function zl(e) {
5580
5472
  version: 1
5581
5473
  };
5582
5474
  }
5583
- function Bl(e) {
5475
+ function Pl(e) {
5584
5476
  let t = W(e), n = t.status, r = {
5585
5477
  createdAt: G(t.createdAt),
5586
5478
  flowId: G(t.flowId),
@@ -5646,35 +5538,35 @@ function Bl(e) {
5646
5538
  default: return U();
5647
5539
  }
5648
5540
  }
5649
- function Vl(e) {
5541
+ function Fl(e) {
5650
5542
  let t = W(e), n = t.status, r = t.publication;
5651
5543
  return t.version != 1 || typeof t.hasUnpublishedChanges != "boolean" || n != "not-published" && n != "runnable" && n != "suspended" || n == "not-published" && r !== null || n != "not-published" && r === null ? U() : {
5652
5544
  flowId: G(t.flowId),
5653
5545
  hasUnpublishedChanges: t.hasUnpublishedChanges,
5654
- publication: r === null ? null : zl(r),
5546
+ publication: r === null ? null : Nl(r),
5655
5547
  revision: q(t.revision),
5656
5548
  status: n,
5657
5549
  version: 1
5658
5550
  };
5659
5551
  }
5660
- function Hl(e) {
5552
+ function Il(e) {
5661
5553
  let t = W(e), n = t.nextCursor, r = t.total;
5662
5554
  return t.version != 1 || !Array.isArray(t.publications) || n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
5663
5555
  ...n == null ? {} : { nextCursor: n },
5664
- publications: t.publications.map(zl),
5556
+ publications: t.publications.map(Nl),
5665
5557
  ...r == null ? {} : { total: r },
5666
5558
  version: 1
5667
5559
  };
5668
5560
  }
5669
5561
  new TextEncoder();
5670
- var Ul = F(D(), _s()), Wl = M({
5671
- jsonSchema: _s(),
5562
+ var Ll = F(D(), ps()), Rl = M({
5563
+ jsonSchema: ps(),
5672
5564
  nullable: A(),
5673
- value: _s().optional(),
5565
+ value: ps().optional(),
5674
5566
  description: D().optional()
5675
- }).strict(), Gl = F(D(), Wl), Kl = P([M({
5567
+ }).strict(), zl = F(D(), Rl), Bl = P([M({
5676
5568
  kind: L("value"),
5677
- value: _s()
5569
+ value: ps()
5678
5570
  }).strict(), M({
5679
5571
  kind: L("sources"),
5680
5572
  sources: j(M({
@@ -5682,36 +5574,36 @@ var Ul = F(D(), _s()), Wl = M({
5682
5574
  nodeId: D(),
5683
5575
  output: D()
5684
5576
  }).strict())
5685
- }).strict()]), ql = {
5577
+ }).strict()]), Vl = {
5686
5578
  name: D().optional(),
5687
5579
  description: D().optional(),
5688
5580
  icon: D().optional()
5689
- }, Jl = P([
5581
+ }, Hl = P([
5690
5582
  M({
5691
- ...ql,
5583
+ ...Vl,
5692
5584
  kind: L("cron"),
5693
- cronTimes: j(_s())
5585
+ cronTimes: j(ps())
5694
5586
  }).strict(),
5695
5587
  M({
5696
- ...ql,
5588
+ ...Vl,
5697
5589
  kind: L("manual")
5698
5590
  }).strict(),
5699
5591
  M({
5700
- ...ql,
5592
+ ...Vl,
5701
5593
  kind: L("task"),
5702
5594
  concurrency: L(1).optional(),
5703
- inputs: F(D(), Kl),
5595
+ inputs: F(D(), Bl),
5704
5596
  task: M({
5705
5597
  name: D(),
5706
5598
  moduleId: D(),
5707
- inputs: Gl,
5708
- outputs: F(D(), Wl.omit({ value: !0 }))
5599
+ inputs: zl,
5600
+ outputs: F(D(), Rl.omit({ value: !0 }))
5709
5601
  }).strict()
5710
5602
  }).strict()
5711
5603
  ]);
5712
5604
  M({
5713
5605
  name: D(),
5714
- graph: M({ nodes: F(D(), Jl) }).strict()
5606
+ graph: M({ nodes: F(D(), Hl) }).strict()
5715
5607
  }).strict(), M({
5716
5608
  kind: L("open-flow-project-revision"),
5717
5609
  version: L(1),
@@ -5722,15 +5614,15 @@ M({
5722
5614
  imports: j(D())
5723
5615
  }).strict()),
5724
5616
  document: M({
5725
- bindings: Ul,
5726
- flows: Ul,
5727
- subflows: Ul,
5728
- tasks: Ul
5617
+ bindings: Ll,
5618
+ flows: Ll,
5619
+ subflows: Ll,
5620
+ tasks: Ll
5729
5621
  }).strict()
5730
5622
  }).strict();
5731
5623
  //#endregion
5732
5624
  //#region src/control/common/revisionDecoders.ts
5733
- function Yl(e) {
5625
+ function Ul(e) {
5734
5626
  let t = W(e), n = t.parentRevisionId;
5735
5627
  return t.version != 1 || n !== null && typeof n != "string" ? U() : {
5736
5628
  actorId: G(t.actorId),
@@ -5743,18 +5635,18 @@ function Yl(e) {
5743
5635
  version: 1
5744
5636
  };
5745
5637
  }
5746
- function Xl(e) {
5638
+ function Wl(e) {
5747
5639
  let t = W(e);
5748
5640
  try {
5749
5641
  return {
5750
- ...Yl(t),
5751
- content: zc(t.content)
5642
+ ...Ul(t),
5643
+ content: Nc(t.content)
5752
5644
  };
5753
5645
  } catch {
5754
5646
  return U();
5755
5647
  }
5756
5648
  }
5757
- function Zl(e) {
5649
+ function Gl(e) {
5758
5650
  let t = W(e);
5759
5651
  return t.version != 1 || q(t.revision) < 1 ? U() : {
5760
5652
  revision: q(t.revision),
@@ -5763,28 +5655,28 @@ function Zl(e) {
5763
5655
  version: 1
5764
5656
  };
5765
5657
  }
5766
- function Ql(e) {
5658
+ function Kl(e) {
5767
5659
  let t = W(e);
5768
5660
  return t.version == 1 ? {
5769
- revision: Yl(t.revision),
5661
+ revision: Ul(t.revision),
5770
5662
  version: 1
5771
5663
  } : U();
5772
5664
  }
5773
- function $l(e) {
5665
+ function ql(e) {
5774
5666
  let t = W(e);
5775
5667
  return t.version != 1 || t.kind != "snapshot" ? U() : {
5776
- draft: Xl(t.draft),
5668
+ draft: Wl(t.draft),
5777
5669
  kind: "snapshot",
5778
5670
  version: 1
5779
5671
  };
5780
5672
  }
5781
5673
  //#endregion
5782
5674
  //#region src/control/common/runDecoders.ts
5783
- var eu = new Set(oc);
5784
- function tu(e) {
5785
- return typeof e == "string" && eu.has(e) ? e : U();
5675
+ var Jl = new Set(ec);
5676
+ function Yl(e) {
5677
+ return typeof e == "string" && Jl.has(e) ? e : U();
5786
5678
  }
5787
- function nu(e) {
5679
+ function Xl(e) {
5788
5680
  let t = W(e), n = t.source, r = t.startedAt, i = t.finishedAt;
5789
5681
  return t.version != 1 || n != "draft" && n != "live" && n != "trigger" || r != null && typeof r != "string" || i != null && typeof i != "string" ? U() : {
5790
5682
  createdAt: G(t.createdAt),
@@ -5794,11 +5686,11 @@ function nu(e) {
5794
5686
  runId: G(t.runId),
5795
5687
  source: n,
5796
5688
  ...r == null ? {} : { startedAt: r },
5797
- status: tu(t.status),
5689
+ status: Yl(t.status),
5798
5690
  version: 1
5799
5691
  };
5800
5692
  }
5801
- function ru(e) {
5693
+ function Zl(e) {
5802
5694
  let t = W(e);
5803
5695
  K(t, [
5804
5696
  "actions",
@@ -5818,10 +5710,10 @@ function ru(e) {
5818
5710
  waitingSince: G(t.waitingSince)
5819
5711
  };
5820
5712
  }
5821
- function iu(e) {
5822
- let t = W(e), n = nu(t), r = t.eventsExpiresAt;
5713
+ function Ql(e) {
5714
+ let t = W(e), n = Xl(t), r = t.eventsExpiresAt;
5823
5715
  if (r != null && typeof r != "string" || t.waiting !== void 0 || !Array.isArray(t.waits)) return U();
5824
- let i = t.waits.map(ru);
5716
+ let i = t.waits.map(Zl);
5825
5717
  if (new Set(i.map((e) => e.waitId)).size != i.length || n.status == "waiting" && i.length == 0 || [
5826
5718
  "completed",
5827
5719
  "failed",
@@ -5860,17 +5752,17 @@ function iu(e) {
5860
5752
  };
5861
5753
  }
5862
5754
  }
5863
- function au(e) {
5755
+ function $l(e) {
5864
5756
  let t = W(e), n = t.nextCursor;
5865
5757
  return t.version != 1 || !Array.isArray(t.runs) || n != null && typeof n != "string" ? U() : {
5866
5758
  flowId: G(t.flowId),
5867
5759
  ...n == null ? {} : { nextCursor: n },
5868
- runs: t.runs.map(nu),
5760
+ runs: t.runs.map(Xl),
5869
5761
  version: 1
5870
5762
  };
5871
5763
  }
5872
- function ou(e) {
5873
- let t = W(e), n = tu(t.status);
5764
+ function eu(e) {
5765
+ let t = W(e), n = Yl(t.status);
5874
5766
  return t.version != 1 || typeof t.cancelAccepted != "boolean" || n == "queued" || n == "starting" || n == "running" || n == "waiting" ? U() : {
5875
5767
  cancelAccepted: t.cancelAccepted,
5876
5768
  runId: G(t.runId),
@@ -5878,7 +5770,7 @@ function ou(e) {
5878
5770
  version: 1
5879
5771
  };
5880
5772
  }
5881
- function su(e) {
5773
+ function tu(e) {
5882
5774
  let t = W(e);
5883
5775
  K(t, [
5884
5776
  "action",
@@ -5895,12 +5787,12 @@ function su(e) {
5895
5787
  resolutionAccepted: t.resolutionAccepted,
5896
5788
  resolvedAt: r,
5897
5789
  runId: G(t.runId),
5898
- status: tu(t.status),
5790
+ status: Yl(t.status),
5899
5791
  version: 1,
5900
5792
  waitId: G(t.waitId)
5901
5793
  };
5902
5794
  }
5903
- function cu(e) {
5795
+ function nu(e) {
5904
5796
  let t = W(e), n = t.status;
5905
5797
  if (t.version != 1) return U();
5906
5798
  let r = {
@@ -5943,7 +5835,7 @@ function cu(e) {
5943
5835
  }
5944
5836
  //#endregion
5945
5837
  //#region src/control/common/random.ts
5946
- function lu() {
5838
+ function ru() {
5947
5839
  let e = globalThis.crypto;
5948
5840
  if (e != null) {
5949
5841
  try {
@@ -5960,7 +5852,7 @@ function lu() {
5960
5852
  }
5961
5853
  //#endregion
5962
5854
  //#region src/control/common/api.ts
5963
- function uu(e) {
5855
+ function iu(e) {
5964
5856
  let t = W(e), n = q(t.sequence);
5965
5857
  if (n < 0) return U();
5966
5858
  let r = {
@@ -5988,7 +5880,7 @@ function uu(e) {
5988
5880
  payload: {
5989
5881
  flowId: G(i.flowId),
5990
5882
  scopeId: G(i.scopeId),
5991
- progress: du(i.progress)
5883
+ progress: au(i.progress)
5992
5884
  }
5993
5885
  };
5994
5886
  case "run.waiting": return Array.isArray(i.waitIds) ? {
@@ -6046,7 +5938,7 @@ function uu(e) {
6046
5938
  switch (a) {
6047
5939
  case "node.started": {
6048
5940
  let t = i.nodeKind;
6049
- return t !== void 0 && t !== "condition" && t !== "connector" && t !== "javascript" && t !== "llm" && t !== "agent" && t !== "subflow" && t !== "value" && t !== "wait" ? U() : {
5941
+ return t !== void 0 && t !== "approval" && t !== "condition" && t !== "connector" && t !== "javascript" && t !== "llm" && t !== "agent" && t !== "subflow" && t !== "value" && t !== "wait" ? U() : {
6050
5942
  ...r,
6051
5943
  kind: a,
6052
5944
  payload: {
@@ -6096,7 +5988,7 @@ function uu(e) {
6096
5988
  kind: a,
6097
5989
  payload: {
6098
5990
  ...e,
6099
- progress: du(i.progress)
5991
+ progress: au(i.progress)
6100
5992
  }
6101
5993
  };
6102
5994
  case "node.artifact": {
@@ -6122,14 +6014,14 @@ function uu(e) {
6122
6014
  default: return U();
6123
6015
  }
6124
6016
  }
6125
- function du(e) {
6017
+ function au(e) {
6126
6018
  return typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 100 ? e : U();
6127
6019
  }
6128
- function fu(e) {
6020
+ function ou(e) {
6129
6021
  let t = W(e), n = t.eventsExpiresAt, r = q(t.nextAfter);
6130
6022
  return t.version != 1 || !Array.isArray(t.events) || typeof t.done != "boolean" || typeof t.historyComplete != "boolean" || n != null && typeof n != "string" || r < 0 ? U() : {
6131
6023
  done: t.done,
6132
- events: t.events.map(uu),
6024
+ events: t.events.map(iu),
6133
6025
  ...n == null ? {} : { eventsExpiresAt: n },
6134
6026
  historyComplete: t.historyComplete,
6135
6027
  nextAfter: r,
@@ -6138,10 +6030,10 @@ function fu(e) {
6138
6030
  };
6139
6031
  }
6140
6032
  var Y = encodeURIComponent;
6141
- function pu(e) {
6142
- return `${e}-${lu()}`;
6033
+ function su(e) {
6034
+ return `${e}-${ru()}`;
6143
6035
  }
6144
- var mu = class {
6036
+ var cu = class {
6145
6037
  constructor(e) {
6146
6038
  this.requestControl = e;
6147
6039
  }
@@ -6149,23 +6041,23 @@ var mu = class {
6149
6041
  let t = new URLSearchParams();
6150
6042
  e.cursor != null && t.set("cursor", e.cursor), e.limit != null && t.set("limit", String(e.limit)), e.includeTotal != null && t.set("includeTotal", String(e.includeTotal));
6151
6043
  let n = t.size == 0 ? "" : `?${t}`;
6152
- return Ll(await this.request(`/v1/flows${n}`));
6044
+ return jl(await this.request(`/v1/flows${n}`));
6153
6045
  }
6154
6046
  async listEventSources(e, t) {
6155
- return Xc(await this.request("/v1/event-sources" + (e == null ? "" : `?flowId=${Y(e)}`), { signal: t }));
6047
+ return Wc(await this.request("/v1/event-sources" + (e == null ? "" : `?flowId=${Y(e)}`), { signal: t }));
6156
6048
  }
6157
6049
  async listEventSourceConnections(e, t) {
6158
6050
  let n = W(await this.request(`/v1/event-sources/connections${e == null ? "" : `?teamId=${Y(e)}`}`, { signal: t }));
6159
- return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(wl);
6051
+ return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
6160
6052
  }
6161
6053
  async createEventSource(e) {
6162
- return Yc(await this.request("/v1/event-sources", {
6054
+ return Uc(await this.request("/v1/event-sources", {
6163
6055
  method: "POST",
6164
6056
  body: JSON.stringify(e)
6165
6057
  }));
6166
6058
  }
6167
6059
  async updateEventSource(e, t) {
6168
- return Yc(await this.request(`/v1/event-sources/${Y(e)}`, {
6060
+ return Uc(await this.request(`/v1/event-sources/${Y(e)}`, {
6169
6061
  method: "PUT",
6170
6062
  body: JSON.stringify(t)
6171
6063
  }));
@@ -6182,15 +6074,15 @@ var mu = class {
6182
6074
  async listVariables() {
6183
6075
  let e = W(await this.request("/v1/variables"));
6184
6076
  return K(e, ["variables", "version"]), e.version != 1 || !Array.isArray(e.variables) ? U() : {
6185
- variables: e.variables.map(Rl),
6077
+ variables: e.variables.map(Ml),
6186
6078
  version: 1
6187
6079
  };
6188
6080
  }
6189
6081
  async getVariable(e) {
6190
- return Rl(await this.request(`/v1/variables/${Y(e)}`));
6082
+ return Ml(await this.request(`/v1/variables/${Y(e)}`));
6191
6083
  }
6192
6084
  async putVariable(e, t) {
6193
- return Rl(await this.request(`/v1/variables/${Y(e)}`, {
6085
+ return Ml(await this.request(`/v1/variables/${Y(e)}`, {
6194
6086
  body: JSON.stringify({ value: t }),
6195
6087
  method: "PUT"
6196
6088
  }));
@@ -6199,8 +6091,8 @@ var mu = class {
6199
6091
  let t = W(await this.request(`/v1/variables/${Y(e)}`, { method: "DELETE" }));
6200
6092
  if (K(t, ["version"]), t.version != 1) return U();
6201
6093
  }
6202
- async createFlow(e, t = `flow-${lu()}`) {
6203
- return Il(await this.request("/v1/flows", {
6094
+ async createFlow(e, t = `flow-${ru()}`) {
6095
+ return Al(await this.request("/v1/flows", {
6204
6096
  body: JSON.stringify({
6205
6097
  name: e,
6206
6098
  version: 1
@@ -6210,10 +6102,10 @@ var mu = class {
6210
6102
  }));
6211
6103
  }
6212
6104
  async getFlow(e) {
6213
- return Il(await this.request(`/v1/flows/${Y(e)}`));
6105
+ return Al(await this.request(`/v1/flows/${Y(e)}`));
6214
6106
  }
6215
6107
  async renameFlow(e, t) {
6216
- return Il(await this.request(`/v1/flows/${Y(e)}`, {
6108
+ return Al(await this.request(`/v1/flows/${Y(e)}`, {
6217
6109
  body: JSON.stringify({
6218
6110
  name: t,
6219
6111
  version: 1
@@ -6222,15 +6114,15 @@ var mu = class {
6222
6114
  }));
6223
6115
  }
6224
6116
  async deleteFlow(e) {
6225
- return Il(await this.request(`/v1/flows/${Y(e)}`, { method: "DELETE" }));
6117
+ return Al(await this.request(`/v1/flows/${Y(e)}`, { method: "DELETE" }));
6226
6118
  }
6227
6119
  async listTriggerKeys(e, t) {
6228
6120
  let n = W(await this.request(`/v1/trigger-keys${t == null ? "" : `?locale=${encodeURIComponent(t)}`}`, { signal: e }));
6229
- return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(tl);
6121
+ return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(Yc);
6230
6122
  }
6231
6123
  async listTriggerDefinitions(e) {
6232
6124
  let t = W(await this.request("/v1/trigger-keys/catalog", { signal: e }));
6233
- return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(nl);
6125
+ return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(Xc);
6234
6126
  }
6235
6127
  async readCatalog(e, t, n) {
6236
6128
  let r = new Headers();
@@ -6259,41 +6151,41 @@ var mu = class {
6259
6151
  ...t,
6260
6152
  etag: i.headers.get("etag")?.trim() || t.etag
6261
6153
  } : {
6262
- data: dl(await i.json()),
6154
+ data: al(await i.json()),
6263
6155
  etag: i.headers.get("etag")?.trim() || null
6264
6156
  };
6265
6157
  }
6266
6158
  async getTriggerKey(e, t) {
6267
6159
  let n = W(await this.request(`/v1/trigger-keys/${Y(e)}`, { signal: t }));
6268
- return n.version == 1 ? nl(n.definition) : U();
6160
+ return n.version == 1 ? Xc(n.definition) : U();
6269
6161
  }
6270
6162
  async listFlowTriggerBindings(e, t) {
6271
6163
  let n = W(await this.request(`/v1/flows/${Y(e)}/triggers`, { signal: t }));
6272
- return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(ol);
6164
+ return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(el);
6273
6165
  }
6274
6166
  async getFlowTriggerBinding(e, t) {
6275
- return sl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}`));
6167
+ return tl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}`));
6276
6168
  }
6277
6169
  async listFlowTriggerActivities(e, t, n = {}) {
6278
6170
  let r = new URLSearchParams();
6279
6171
  n.cursor != null && r.set("cursor", n.cursor), n.limit != null && r.set("limit", String(n.limit));
6280
6172
  let i = r.size == 0 ? "" : `?${r}`;
6281
- return ll(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/activities${i}`));
6173
+ return rl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/activities${i}`));
6282
6174
  }
6283
6175
  async pauseFlowTrigger(e, t) {
6284
- return ol(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/pause`, {
6176
+ return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/pause`, {
6285
6177
  body: JSON.stringify({ version: 1 }),
6286
6178
  method: "POST"
6287
6179
  }));
6288
6180
  }
6289
6181
  async resumeFlowTrigger(e, t) {
6290
- return ol(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/resume`, {
6182
+ return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/resume`, {
6291
6183
  body: JSON.stringify({ version: 1 }),
6292
6184
  method: "POST"
6293
6185
  }));
6294
6186
  }
6295
6187
  async testFlowPollTrigger(e, t) {
6296
- return ul(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/test`, {
6188
+ return il(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/test`, {
6297
6189
  body: JSON.stringify({ version: 1 }),
6298
6190
  method: "POST"
6299
6191
  }));
@@ -6302,25 +6194,25 @@ var mu = class {
6302
6194
  let t = W(await this.request(`/v1/flows/${Y(e)}/editor`));
6303
6195
  if (t.version != 1) return U();
6304
6196
  let n = {
6305
- flow: Il(t.flow),
6306
- draft: Xl(t.draft),
6307
- live: Vl(t.live),
6308
- presentation: Zl(t.presentation),
6197
+ flow: Al(t.flow),
6198
+ draft: Wl(t.draft),
6199
+ live: Fl(t.live),
6200
+ presentation: Gl(t.presentation),
6309
6201
  version: 1
6310
6202
  };
6311
6203
  return n.flow.flowId != e || n.draft.flowId != e || n.live.flowId != e || n.flow.draftRevisionId != n.draft.revisionId ? U() : n;
6312
6204
  }
6313
6205
  async getPresentation(e) {
6314
- return Zl(await this.request(`/v1/flows/${Y(e)}/presentation`));
6206
+ return Gl(await this.request(`/v1/flows/${Y(e)}/presentation`));
6315
6207
  }
6316
6208
  async getDraft(e) {
6317
- return Xl(await this.request(`/v1/flows/${Y(e)}/draft`));
6209
+ return Wl(await this.request(`/v1/flows/${Y(e)}/draft`));
6318
6210
  }
6319
6211
  async syncDraft(e) {
6320
- return $l(await this.request(`/v1/flows/${Y(e)}/draft/sync`));
6212
+ return ql(await this.request(`/v1/flows/${Y(e)}/draft/sync`));
6321
6213
  }
6322
6214
  async getRevision(e, t) {
6323
- return Xl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}`));
6215
+ return Wl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}`));
6324
6216
  }
6325
6217
  async listTriggerConfigOptions(e, t, n, r) {
6326
6218
  let i = W(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/options/${Y(n)}`, { signal: r }));
@@ -6343,7 +6235,7 @@ var mu = class {
6343
6235
  });
6344
6236
  }
6345
6237
  async listConnectorProviders(e, t, n) {
6346
- let r = Ml(t, n);
6238
+ let r = El(t, n);
6347
6239
  return this.connectorRequest(r.path, "providers", e, r.decode);
6348
6240
  }
6349
6241
  async listConnectorActions(e, t, n, r) {
@@ -6361,15 +6253,15 @@ var mu = class {
6361
6253
  }, t);
6362
6254
  }
6363
6255
  async getConnectorAction(e, t, n, r, i = !1) {
6364
- let a = Nl(e, n, r);
6256
+ let a = Dl(e, n, r);
6365
6257
  return this.connectorRequest(a.path, "actions", t, a.decode, i);
6366
6258
  }
6367
6259
  async listAllConnectorConnections(e, t, n = !1) {
6368
- let r = Pl(t);
6260
+ let r = Ol(t);
6369
6261
  return this.connectorRequest(r.path, "connections", e, r.decode, n);
6370
6262
  }
6371
6263
  async listConnectorConnections(e, t, n, r = !1) {
6372
- let i = Fl(e, n);
6264
+ let i = kl(e, n);
6373
6265
  return this.connectorRequest(i.path, "connections", t, i.decode, r);
6374
6266
  }
6375
6267
  async createConnectorConnectionPage(e, t, n) {
@@ -6387,8 +6279,8 @@ var mu = class {
6387
6279
  return U();
6388
6280
  }
6389
6281
  }
6390
- async changeDraft(e, t, n, r = pu("change")) {
6391
- return Ql(await this.request(`/v1/flows/${Y(e)}/draft/changes`, {
6282
+ async changeDraft(e, t, n, r = su("change")) {
6283
+ return Kl(await this.request(`/v1/flows/${Y(e)}/draft/changes`, {
6392
6284
  body: JSON.stringify({
6393
6285
  expectedRevisionId: t,
6394
6286
  operations: n,
@@ -6398,8 +6290,8 @@ var mu = class {
6398
6290
  method: "POST"
6399
6291
  }));
6400
6292
  }
6401
- async repairDraft(e, t, n = pu("repair")) {
6402
- return Ql(await this.request(`/v1/flows/${Y(e)}/draft/repair`, {
6293
+ async repairDraft(e, t, n = su("repair")) {
6294
+ return Kl(await this.request(`/v1/flows/${Y(e)}/draft/repair`, {
6403
6295
  body: JSON.stringify({
6404
6296
  expectedRevisionId: t,
6405
6297
  version: 1
@@ -6409,7 +6301,7 @@ var mu = class {
6409
6301
  }));
6410
6302
  }
6411
6303
  async checkFlow(e, t) {
6412
- return Cl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/check`, {
6304
+ return _l(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/check`, {
6413
6305
  body: JSON.stringify({
6414
6306
  engineContract: "open-flow-engine/v5",
6415
6307
  version: 1
@@ -6418,42 +6310,42 @@ var mu = class {
6418
6310
  }));
6419
6311
  }
6420
6312
  async getLive(e, t) {
6421
- return Vl(await this.request(`/v1/flows/${Y(e)}/live`, { signal: t }));
6313
+ return Fl(await this.request(`/v1/flows/${Y(e)}/live`, { signal: t }));
6422
6314
  }
6423
6315
  async listPublications(e, t = {}, n) {
6424
6316
  let r = new URLSearchParams();
6425
6317
  t.cursor != null && r.set("cursor", t.cursor), t.limit != null && r.set("limit", String(t.limit)), t.includeTotal != null && r.set("includeTotal", String(t.includeTotal));
6426
6318
  let i = r.size == 0 ? "" : `?${r}`;
6427
- return Hl(await this.request(`/v1/flows/${Y(e)}/publications${i}`, { signal: n }));
6319
+ return Il(await this.request(`/v1/flows/${Y(e)}/publications${i}`, { signal: n }));
6428
6320
  }
6429
6321
  async createDraftRun(e, t, n) {
6430
- let r = iu(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/runs`, {
6322
+ let r = Ql(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/runs`, {
6431
6323
  body: JSON.stringify({
6432
6324
  engineContract: "open-flow-engine/v5",
6433
6325
  inputs: n.inputs ?? {},
6434
6326
  trigger: n.trigger,
6435
6327
  version: 2
6436
6328
  }),
6437
- headers: { "idempotency-key": n.idempotencyKey ?? pu("run") },
6329
+ headers: { "idempotency-key": n.idempotencyKey ?? su("run") },
6438
6330
  method: "POST"
6439
6331
  }));
6440
6332
  return r.source == "draft" ? r : U();
6441
6333
  }
6442
6334
  async createLiveRun(e, t) {
6443
- let n = iu(await this.request("/v1/runs", {
6335
+ let n = Ql(await this.request("/v1/runs", {
6444
6336
  body: JSON.stringify({
6445
6337
  inputs: t.inputs ?? {},
6446
6338
  trigger: t.trigger,
6447
6339
  publicationId: e,
6448
6340
  version: 2
6449
6341
  }),
6450
- headers: { "idempotency-key": t.idempotencyKey ?? pu("run") },
6342
+ headers: { "idempotency-key": t.idempotencyKey ?? su("run") },
6451
6343
  method: "POST"
6452
6344
  }));
6453
6345
  return n.source == "live" ? n : U();
6454
6346
  }
6455
6347
  async setFlowEnabled(e, t, n) {
6456
- return Il(await this.request(`/v1/flows/${Y(e)}/enabled`, {
6348
+ return Al(await this.request(`/v1/flows/${Y(e)}/enabled`, {
6457
6349
  method: "PUT",
6458
6350
  body: JSON.stringify({
6459
6351
  enabled: n,
@@ -6463,65 +6355,65 @@ var mu = class {
6463
6355
  }));
6464
6356
  }
6465
6357
  async publishFlow(e, t, n, r = {}) {
6466
- return Bl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/publications`, {
6358
+ return Pl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/publications`, {
6467
6359
  body: JSON.stringify({
6468
6360
  engineContract: "open-flow-engine/v5",
6469
6361
  expectedLivePublicationId: n,
6470
6362
  version: 1
6471
6363
  }),
6472
- headers: { "idempotency-key": r.idempotencyKey ?? pu("publication") },
6364
+ headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
6473
6365
  method: "POST"
6474
6366
  }));
6475
6367
  }
6476
6368
  async getPublishOperation(e, t, n) {
6477
- return Bl(await this.request(`/v1/flows/${Y(e)}/publish-operations/${Y(t)}`, { signal: n }));
6369
+ return Pl(await this.request(`/v1/flows/${Y(e)}/publish-operations/${Y(t)}`, { signal: n }));
6478
6370
  }
6479
6371
  async rollbackFlow(e, t, n, r = {}) {
6480
- return zl(await this.request(`/v1/flows/${Y(e)}/publications/${Y(t)}/rollback`, {
6372
+ return Nl(await this.request(`/v1/flows/${Y(e)}/publications/${Y(t)}/rollback`, {
6481
6373
  body: JSON.stringify({
6482
6374
  expectedLivePublicationId: n,
6483
6375
  version: 1
6484
6376
  }),
6485
- headers: { "idempotency-key": r.idempotencyKey ?? pu("publication") },
6377
+ headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
6486
6378
  method: "POST"
6487
6379
  }));
6488
6380
  }
6489
6381
  async getRun(e, t) {
6490
- return iu(await this.request(`/v1/runs/${Y(e)}`, { signal: t }));
6382
+ return Ql(await this.request(`/v1/runs/${Y(e)}`, { signal: t }));
6491
6383
  }
6492
6384
  async listRuns(e, t = {}) {
6493
6385
  let n = new URLSearchParams();
6494
- t.cursor != null && n.set("cursor", t.cursor), t.limit != null && n.set("limit", String(t.limit)), t.status != null && n.set("status", t.status), t.pendingWait != null && n.set("pendingWait", String(t.pendingWait));
6386
+ t.cursor != null && n.set("cursor", t.cursor), t.limit != null && n.set("limit", String(t.limit)), t.status != null && n.set("status", t.status), t.pendingWait != null && n.set("pendingWait", String(t.pendingWait)), t.source != null && n.set("source", t.source), t.createdFrom != null && n.set("createdFrom", t.createdFrom), t.createdBefore != null && n.set("createdBefore", t.createdBefore), t.runId != null && n.set("runId", t.runId);
6495
6387
  let r = n.size == 0 ? "" : `?${n}`;
6496
- return au(await this.request(`/v1/flows/${Y(e)}/runs${r}`));
6388
+ return $l(await this.request(`/v1/flows/${Y(e)}/runs${r}`));
6497
6389
  }
6498
6390
  async getRunEvents(e, t = {}, n) {
6499
6391
  let r = new URLSearchParams();
6500
6392
  t.after != null && r.set("after", String(t.after)), t.limit != null && r.set("limit", String(t.limit));
6501
6393
  let i = r.size == 0 ? "" : `?${r}`;
6502
- return fu(await this.request(`/v1/runs/${Y(e)}/events${i}`, { signal: n }));
6394
+ return ou(await this.request(`/v1/runs/${Y(e)}/events${i}`, { signal: n }));
6503
6395
  }
6504
6396
  async listRunResults(e, t, n) {
6505
- return vl(await this.request(`/v1/runs/${Y(e)}/results${t == null ? "" : `?after=${encodeURIComponent(t)}`}`, { signal: n }));
6397
+ return fl(await this.request(`/v1/runs/${Y(e)}/results${t == null ? "" : `?after=${encodeURIComponent(t)}`}`, { signal: n }));
6506
6398
  }
6507
6399
  async readRunResult(e, t, n = {}, r) {
6508
6400
  let i = new URLSearchParams(Object.entries(n).map(([e, t]) => [e, String(t)]));
6509
- return yl(await this.request(`/v1/runs/${Y(e)}/results/${Y(t)}?${i}`, { signal: r }));
6401
+ return pl(await this.request(`/v1/runs/${Y(e)}/results/${Y(t)}?${i}`, { signal: r }));
6510
6402
  }
6511
6403
  async downloadRunResult(e, t, n) {
6512
6404
  return (await this.response(`/v1/runs/${Y(e)}/results/${Y(t)}/content`, { signal: n })).blob();
6513
6405
  }
6514
6406
  async getRunResult(e, t) {
6515
- return cu(await this.request(`/v1/runs/${Y(e)}/result`, { signal: t }));
6407
+ return nu(await this.request(`/v1/runs/${Y(e)}/result`, { signal: t }));
6516
6408
  }
6517
6409
  async cancelRun(e) {
6518
- return ou(await this.request(`/v1/runs/${Y(e)}/cancel`, {
6410
+ return eu(await this.request(`/v1/runs/${Y(e)}/cancel`, {
6519
6411
  body: JSON.stringify({ version: 1 }),
6520
6412
  method: "POST"
6521
6413
  }));
6522
6414
  }
6523
6415
  async resolveRunWait(e, t, n) {
6524
- return su(await this.request(`/v1/runs/${Y(e)}/waits/${Y(t)}/resolve`, {
6416
+ return tu(await this.request(`/v1/runs/${Y(e)}/waits/${Y(t)}/resolve`, {
6525
6417
  body: JSON.stringify({
6526
6418
  action: n,
6527
6419
  version: 1
@@ -6533,7 +6425,7 @@ var mu = class {
6533
6425
  let n = Object.entries(e).map(([e, t]) => `${Y(e)}=${Y(t)}`).join("&"), r = n == "" ? "" : `?${n}`;
6534
6426
  return this.connectorRequest(`/v1/connector/actions${r}`, "actions", t, (e) => {
6535
6427
  let t = W(e);
6536
- return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(kl);
6428
+ return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(Cl);
6537
6429
  });
6538
6430
  }
6539
6431
  async connectorRequest(e, t, n, r, i = !1) {
@@ -6554,7 +6446,7 @@ var mu = class {
6554
6446
  return U();
6555
6447
  }
6556
6448
  let t = W(e).error, n = t == null ? void 0 : W(t);
6557
- throw new $c(i.status, typeof n?.code == "string" ? n.code : "request.failed", typeof n?.message == "string" ? n.message : `Request failed with status ${i.status}.`);
6449
+ throw new qc(i.status, typeof n?.code == "string" ? n.code : "request.failed", typeof n?.message == "string" ? n.message : `Request failed with status ${i.status}.`);
6558
6450
  }
6559
6451
  return i;
6560
6452
  }
@@ -6572,13 +6464,13 @@ var mu = class {
6572
6464
  function X(e, t) {
6573
6465
  if (!e) throw Error(t);
6574
6466
  }
6575
- async function hu(e, t, n) {
6467
+ async function lu(e, t, n) {
6576
6468
  let r = await e.request(new Request(new URL("/v1/mcp", e.origin), {
6577
6469
  method: "POST",
6578
6470
  headers: {
6579
6471
  "content-type": "application/json",
6580
6472
  accept: "application/json, text/event-stream",
6581
- "mcp-protocol-version": _u,
6473
+ "mcp-protocol-version": du,
6582
6474
  "mcp-method": t,
6583
6475
  ...t == "tools/call" ? { "mcp-name": String(n?.name) } : {}
6584
6476
  },
@@ -6589,7 +6481,7 @@ async function hu(e, t, n) {
6589
6481
  params: {
6590
6482
  ...n,
6591
6483
  _meta: {
6592
- "io.modelcontextprotocol/protocolVersion": _u,
6484
+ "io.modelcontextprotocol/protocolVersion": du,
6593
6485
  "io.modelcontextprotocol/clientCapabilities": {}
6594
6486
  }
6595
6487
  }
@@ -6599,24 +6491,24 @@ async function hu(e, t, n) {
6599
6491
  let i = await r.text(), a = r.headers.get("content-type")?.includes("text/event-stream") ? JSON.parse(i.split("\n").findLast((e) => e.startsWith("data:"))?.slice(5) ?? "null") : JSON.parse(i);
6600
6492
  return X(a != null && a.error == null, `MCP ${t} failed: ${JSON.stringify(a)}.`), a.result;
6601
6493
  }
6602
- var gu = [
6494
+ var uu = [
6603
6495
  {
6604
6496
  name: "publishes the public MCP catalog, input schemas and annotations",
6605
6497
  async verify(e) {
6606
- let t = await hu(e, "tools/list");
6607
- X(Array.isArray(t.tools), "MCP tools must be an array."), X(t.tools.length == Object.keys(Cu).length, "MCP tool count differs from the public contract.");
6608
- for (let [e, n] of Object.entries(Cu)) {
6498
+ let t = await lu(e, "tools/list");
6499
+ X(Array.isArray(t.tools), "MCP tools must be an array."), X(t.tools.length == Object.keys(_u).length, "MCP tool count differs from the public contract.");
6500
+ for (let [e, n] of Object.entries(_u)) {
6609
6501
  let r = t.tools.find((t) => t.name == e);
6610
- X(r != null, `Missing MCP tool ${e}.`), X(r.description == n.description, `${e} description differs.`), X(ac(r.annotations, n.annotations), `${e} annotations differ.`);
6502
+ X(r != null, `Missing MCP tool ${e}.`), X(r.description == n.description, `${e} description differs.`), X($s(r.annotations, n.annotations), `${e} annotations differ.`);
6611
6503
  let { $schema: i, ...a } = n.inputSchema["~standard"].jsonSchema.input(), { $schema: o, ...s } = r.inputSchema;
6612
- X(ac(s, a), `${e} input schema differs.`);
6504
+ X($s(s, a), `${e} input schema differs.`);
6613
6505
  }
6614
6506
  }
6615
6507
  },
6616
6508
  {
6617
6509
  name: "shares Run pagination, status filters and cancellation between MCP and REST",
6618
6510
  async verify(e) {
6619
- let t = new mu((t, n) => e.request(new Request(new URL(t, e.origin), n))), n = await t.createFlow("MCP Run listing"), r = await t.changeDraft(n.flowId, n.draftRevisionId, [{
6511
+ let t = new cu((t, n) => e.request(new Request(new URL(t, e.origin), n))), n = await t.createFlow("MCP Run listing"), r = await t.changeDraft(n.flowId, n.draftRevisionId, [{
6620
6512
  kind: "graph.node.create",
6621
6513
  target: { kind: "flow" },
6622
6514
  nodeId: "start",
@@ -6634,7 +6526,7 @@ var gu = [
6634
6526
  }
6635
6527
  }, a = [];
6636
6528
  for (let t = 0; t < 2; t++) {
6637
- let t = (await hu(e, "tools/call", {
6529
+ let t = (await lu(e, "tools/call", {
6638
6530
  name: "flow_run",
6639
6531
  arguments: {
6640
6532
  ...i,
@@ -6643,7 +6535,7 @@ var gu = [
6643
6535
  })).structuredContent;
6644
6536
  X(typeof t.runId == "string", "MCP must return an accepted Run ID."), a.push(t.runId);
6645
6537
  }
6646
- let o = (await hu(e, "tools/call", {
6538
+ let o = (await lu(e, "tools/call", {
6647
6539
  name: "run_list",
6648
6540
  arguments: {
6649
6541
  flowId: n.flowId,
@@ -6657,24 +6549,24 @@ var gu = [
6657
6549
  });
6658
6550
  X(s.runs.length == 1 && s.runs[0]?.runId != o.runs[0]?.runId, "REST must continue the MCP Run cursor without duplicates.");
6659
6551
  let c = await t.listRuns(n.flowId, { limit: 1 });
6660
- X(ac((await hu(e, "tools/call", {
6552
+ X($s((await lu(e, "tools/call", {
6661
6553
  name: "run_list",
6662
6554
  arguments: {
6663
6555
  flowId: n.flowId,
6664
6556
  cursor: c.nextCursor,
6665
6557
  limit: 1
6666
6558
  }
6667
- })).structuredContent, s), "MCP must continue the REST Run cursor."), await hu(e, "tools/call", {
6559
+ })).structuredContent, s), "MCP must continue the REST Run cursor."), await lu(e, "tools/call", {
6668
6560
  name: "run_cancel",
6669
6561
  arguments: { runId: a[0] }
6670
- }), X(ac((await hu(e, "tools/call", {
6562
+ }), X($s((await lu(e, "tools/call", {
6671
6563
  name: "run_list",
6672
6564
  arguments: {
6673
6565
  flowId: n.flowId,
6674
6566
  status: "canceled"
6675
6567
  }
6676
6568
  })).structuredContent, await t.listRuns(n.flowId, { status: "canceled" })), "MCP and REST status filters differ.");
6677
- let l = await hu(e, "tools/call", {
6569
+ let l = await lu(e, "tools/call", {
6678
6570
  name: "run_list",
6679
6571
  arguments: {
6680
6572
  flowId: (await t.createFlow("Other Run scope")).flowId,
@@ -6690,16 +6582,16 @@ var gu = [
6690
6582
  let t = {
6691
6583
  name: "MCP conformance",
6692
6584
  idempotencyKey: crypto.randomUUID()
6693
- }, n = () => hu(e, "tools/call", {
6585
+ }, n = () => lu(e, "tools/call", {
6694
6586
  name: "flow_create",
6695
6587
  arguments: t
6696
6588
  }), r = await n();
6697
6589
  X(r.isError != 1, "MCP Flow creation failed.");
6698
6590
  let i = r.structuredContent;
6699
- X(typeof i.flowId == "string", "MCP did not return a Flow ID."), X(ac((await n()).structuredContent, i), "MCP mutation replay changed identity.");
6591
+ X(typeof i.flowId == "string", "MCP did not return a Flow ID."), X($s((await n()).structuredContent, i), "MCP mutation replay changed identity.");
6700
6592
  let a = await e.request(new Request(new URL(`/v1/flows/${encodeURIComponent(i.flowId)}/draft`, e.origin)));
6701
6593
  X(a.ok, "REST cannot read the Flow created through MCP."), X((await a.json()).revisionId == i.draftRevisionId, "MCP and REST disagree on the Draft head.");
6702
- let o = await hu(e, "tools/call", {
6594
+ let o = await lu(e, "tools/call", {
6703
6595
  name: "flow_create",
6704
6596
  arguments: {
6705
6597
  ...t,
@@ -6709,7 +6601,7 @@ var gu = [
6709
6601
  X(o.isError == 1, "MCP must reject a changed idempotent replay."), X(o.structuredContent.error.code == "flow.conflict", "MCP must preserve the Control error code.");
6710
6602
  }
6711
6603
  }
6712
- ], _u = "2026-07-28", vu = rc(), Z = D().min(1), yu = Z.max(256).describe("Stable identity for this mutation. Retry with the same key and identical arguments, even after a lost response."), bu = fs().min(1).max(100).default(50), Q = Z.describe("Exact Flow ID returned by flow_list or flow_create."), xu = Z.describe("Exact Run ID returned by flow_run or run_list."), Su = "Use flow_list and flow_get to inspect a Flow. Use flow_schema to learn atomic edit operations, then flow_apply with the observed expectedRevisionId and a stable idempotencyKey. Use flow_check before flow_run. Select an explicit Trigger node ID and fixed revision or publication. A new Flow has no Trigger until you add one. Use flow_publish to publish a fixed Revision, then poll flow_publish_status until succeeded or failed. Use flow_set_enabled to enable or disable the observed Live publication. flow_run returns an accepted Run, not its final result. Find Runs with run_list, poll run_get and use run_result after terminal. Resolve a waiting Run only with an explicit run_resolve_wait action allowed by run_get. Use run_results and run_result_read to inspect stored Agent tool results; these are separate from the terminal Run result. Retry flow_create, flow_apply, flow_publish and flow_run only with identical arguments and the same idempotencyKey; a new key can execute the Flow again. Other mutations use the same resource identity and arguments when retrying. Cancel a Run explicitly with run_cancel. Use nextCursor and nextAfter to read subsequent pages. Connector-backed deployments may require a Team; inspect connector_teams before creating a Flow.";
6604
+ ], du = "2026-07-28", fu = Zs(), Z = D().min(1), pu = Z.max(256).describe("Stable identity for this mutation. Retry with the same key and identical arguments, even after a lost response."), mu = cs().min(1).max(100).default(50), Q = Z.describe("Exact Flow ID returned by flow_list or flow_create."), hu = Z.describe("Exact Run ID returned by flow_run or run_list."), gu = "Use flow_list and flow_get to inspect a Flow. Use flow_schema to learn atomic edit operations, then flow_apply with the observed expectedRevisionId and a stable idempotencyKey. Use flow_check before flow_run. Select an explicit Trigger node ID and fixed revision or publication. A new Flow has no Trigger until you add one. Use flow_publish to publish a fixed Revision, then poll flow_publish_status until succeeded or failed. Use flow_set_enabled to enable or disable the observed Live publication. flow_run returns an accepted Run, not its final result. Find Runs with run_list, poll run_get and use run_result after terminal. Resolve a waiting Run only with an explicit run_resolve_wait action allowed by run_get. Use run_results and run_result_read to inspect stored Agent tool results; these are separate from the terminal Run result. Retry flow_create, flow_apply, flow_publish and flow_run only with identical arguments and the same idempotencyKey; a new key can execute the Flow again. Other mutations use the same resource identity and arguments when retrying. Cancel a Run explicitly with run_cancel. Use nextCursor and nextAfter to read subsequent pages. Connector-backed deployments may require a Team; inspect connector_teams before creating a Flow.";
6713
6605
  function $(e, t, n) {
6714
6606
  return {
6715
6607
  description: e,
@@ -6723,8 +6615,8 @@ function $(e, t, n) {
6723
6615
  version: 1,
6724
6616
  vendor: "open-flow",
6725
6617
  jsonSchema: {
6726
- input: () => So(t, { io: "input" }),
6727
- output: () => So(t)
6618
+ input: () => vo(t, { io: "input" }),
6619
+ output: () => vo(t)
6728
6620
  },
6729
6621
  validate(e) {
6730
6622
  let n = t.safeParse(e);
@@ -6736,10 +6628,10 @@ function $(e, t, n) {
6736
6628
  } }
6737
6629
  };
6738
6630
  }
6739
- var Cu = {
6631
+ var _u = {
6740
6632
  flow_list: $("List Flows in this deployment. Continue with nextCursor; cursors are compatible with the Control API.", N({
6741
6633
  cursor: Z.optional(),
6742
- limit: bu
6634
+ limit: mu
6743
6635
  }), !0),
6744
6636
  flow_get: $("Read Flow metadata, the full Draft and current Live publication. Unreadable Drafts return draft=null and draftIssue; flow.live still identifies the published version. Use draft.revisionId as the base of an edit.", N({ flowId: Q }), !0),
6745
6637
  flow_schema: $("Get an operation schema by kind, or a complete apply batch by example (connector, poll, poll-notification, code, wait). Use example=index to list examples. graph.trigger.create resolves a provider key into a fixed definition at commit.", N({
@@ -6747,15 +6639,15 @@ var Cu = {
6747
6639
  example: Z.optional()
6748
6640
  }).refine((e) => e.kind == null || e.example == null, "Choose kind or example, not both."), !0),
6749
6641
  flow_create: $("Create an empty Flow. If this deployment uses OOMOL Connector, choose a teamId from connector_teams. Keep the key and arguments stable when retrying.", N({
6750
- name: Z.refine((e) => e == e.trim() && Uc(e) == null, "Flow name is invalid."),
6751
- idempotencyKey: yu,
6642
+ name: Z.refine((e) => e == e.trim() && Lc(e) == null, "Flow name is invalid."),
6643
+ idempotencyKey: pu,
6752
6644
  teamId: Z.optional()
6753
6645
  }), !1),
6754
6646
  flow_apply: $("Apply ordered atomic changes. Read flow_schema first. A stale expectedRevisionId is a conflict; reread the Draft before deciding on a new edit.", N({
6755
6647
  flowId: Q,
6756
6648
  expectedRevisionId: Z,
6757
- idempotencyKey: yu,
6758
- operations: j(vu).min(1).describe("Change operations defined by flow_schema. Explicit IDs and before values refer to the base Revision.")
6649
+ idempotencyKey: pu,
6650
+ operations: j(fu).min(1).describe("Change operations defined by flow_schema. Explicit IDs and before values refer to the base Revision.")
6759
6651
  }), !1),
6760
6652
  flow_check: $("Validate a fixed Revision and return diagnostics. Get its revisionId from flow_get or flow_apply.", N({
6761
6653
  flowId: Q,
@@ -6765,7 +6657,7 @@ var Cu = {
6765
6657
  flowId: Q,
6766
6658
  revisionId: Z,
6767
6659
  expectedLivePublicationId: Z.nullable(),
6768
- idempotencyKey: yu
6660
+ idempotencyKey: pu
6769
6661
  }), !1),
6770
6662
  flow_publish_status: $("Read a publish operation. Only succeeded confirms publication; failed includes the failure details. Keep polling while pending.", N({
6771
6663
  flowId: Q,
@@ -6783,35 +6675,35 @@ var Cu = {
6783
6675
  publicationId: Z.optional(),
6784
6676
  trigger: N({
6785
6677
  nodeId: Z,
6786
- outputs: F(D(), vu)
6678
+ outputs: F(D(), fu)
6787
6679
  }),
6788
- inputs: F(D(), F(D(), vu)).default({}),
6789
- idempotencyKey: yu
6680
+ inputs: F(D(), F(D(), fu)).default({}),
6681
+ idempotencyKey: pu
6790
6682
  }), !1),
6791
6683
  run_list: $("List Runs for a Flow, optionally filtered by status. Continue with nextCursor; cursors are compatible with the Control API.", N({
6792
6684
  flowId: Q,
6793
6685
  pendingWait: A().optional(),
6794
- status: I(oc).optional(),
6686
+ status: I(ec).optional(),
6795
6687
  cursor: Z.optional(),
6796
- limit: bu
6688
+ limit: mu
6797
6689
  }), !0),
6798
- run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId: xu }), !0),
6690
+ run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId: hu }), !0),
6799
6691
  run_events: $("Read one page of Run events. Continue with nextAfter. Events can expire independently of the terminal result.", N({
6800
- runId: xu,
6801
- after: fs().min(0).default(0),
6802
- limit: bu
6692
+ runId: hu,
6693
+ after: cs().min(0).default(0),
6694
+ limit: mu
6803
6695
  }), !0),
6804
- run_result: $("Read the terminal result. A queued, running or waiting Run returns run.not-terminal; inspect run_get first.", N({ runId: xu }), !0),
6696
+ run_result: $("Read the terminal result. A queued, running or waiting Run returns run.not-terminal; inspect run_get first.", N({ runId: hu }), !0),
6805
6697
  run_results: $("List stored Agent tool result metadata for a Run, including Connector and code results. Continue with nextAfter as after. Use run_result_read to inspect content.", N({
6806
- runId: xu,
6698
+ runId: hu,
6807
6699
  after: Z.optional()
6808
6700
  }), !0),
6809
- run_result_read: $("Read a bounded page of a stored Agent tool result. Select a JSON Pointer with pointer and continue with nextOffset as offset at the same pointer. A complete value contains all data at that pointer.", Wc.extend({
6810
- runId: xu,
6701
+ run_result_read: $("Read a bounded page of a stored Agent tool result. Select a JSON Pointer with pointer and continue with nextOffset as offset at the same pointer. A complete value contains all data at that pointer.", Rc.extend({
6702
+ runId: hu,
6811
6703
  resultId: Z
6812
6704
  }), !0),
6813
6705
  run_resolve_wait: $("Explicitly resolve the waitId observed in run_get with one of its allowed actions. The first decision wins; inspect resolutionAccepted and action. Resume the same Run and poll run_get; do not create a replacement Run.", N({
6814
- runId: xu,
6706
+ runId: hu,
6815
6707
  waitId: Z,
6816
6708
  action: I([
6817
6709
  "approve",
@@ -6819,7 +6711,7 @@ var Cu = {
6819
6711
  "reject"
6820
6712
  ])
6821
6713
  }), !1),
6822
- run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId: xu }), !1),
6714
+ run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId: hu }), !1),
6823
6715
  connector_teams: $("List OOMOL Teams available for Flow creation. An unconfigured or custom Connector may not provide Teams.", N({}), !0),
6824
6716
  connector_list: $("List Connector providers available in the Flow scope.", N({ flowId: Q.optional() }), !0),
6825
6717
  connector_search: $("Search Connector actions in the Flow scope.", N({
@@ -6838,4 +6730,4 @@ var Cu = {
6838
6730
  trigger_get: $("Read a provider Trigger definition before creating its node.", N({ key: Z }), !0)
6839
6731
  };
6840
6732
  //#endregion
6841
- export { gu as mcpConformanceCases, Su as mcpInstructions, _u as mcpProtocolVersion, Cu as mcpTools };
6733
+ export { uu as mcpConformanceCases, gu as mcpInstructions, du as mcpProtocolVersion, _u as mcpTools };