@oomol-lab/open-flow 0.1.0-beta.27 → 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.
- package/dist/browser/{createResourceDialog-BwI2JmPE.js → createResourceDialog-C_8I3Fua.js} +1 -1
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{switch-CyZ96-UF.js → editorComponent-Dq4IKp5R.js} +5787 -651
- package/dist/browser/flow-authoring-node.d.ts +6 -2
- package/dist/browser/flow-authoring.js +1489 -1638
- package/dist/browser/flow-change-schema.d.ts +4 -0
- package/dist/browser/flow-change.d.ts +20 -14
- package/dist/browser/flow-change.js +1057 -1179
- package/dist/browser/flow-notifications.d.ts +6 -2
- package/dist/browser/{flowChanges-DhEjA0n5.js → flowChanges-BBtkyUGd.js} +2192 -1975
- package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
- package/dist/browser/{flowWorkspace-zcweMsLS.js → flowWorkspace-DNmBb3ZW.js} +62886 -66618
- package/dist/browser/host-conformance.js +7 -1
- package/dist/browser/{inputValues-C5ExCCf0.js → inputValues-BbSVOWQP.js} +2 -2
- package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-D2oHGWc6.js} +24 -24
- package/dist/browser/ui.css +1 -1
- package/dist/browser/value-DPg_9yXB.js +93 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +769 -605
- package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-CQOvpteT.js} +1507 -1642
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/control-api-conformance.js +1449 -1556
- package/dist/common/control-api-errors.d.ts +8 -0
- package/dist/common/control-api.d.ts +12 -4
- package/dist/common/control-api.js +1480 -1560
- package/dist/common/control-requests.d.ts +13 -6
- package/dist/common/control-requests.js +1886 -1445
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +14 -0
- package/dist/common/engine-contract.d.ts +2 -2
- package/dist/common/flow-encoding.d.ts +3 -0
- package/dist/common/flow-encoding.js +1488 -1524
- package/dist/common/flow-graph.d.ts +18 -2
- package/dist/common/flow-notifications.d.ts +6 -2
- package/dist/common/flow-schema.d.ts +1 -2
- package/dist/common/flow-semantics.d.ts +2 -1
- package/dist/common/flow-semantics.js +7809 -7820
- package/dist/common/flowInspection.d.ts +16 -0
- package/dist/common/integration-trigger.d.ts +2 -2
- package/dist/common/integration-trigger.js +8 -8
- package/dist/common/mcp.d.ts +2 -1
- package/dist/common/mcp.js +985 -1060
- package/dist/common/poll-trigger.d.ts +3 -0
- package/dist/common/poll-trigger.js +26 -22
- package/dist/common/provider-triggers.js +3096 -3126
- package/dist/common/run-events.js +1 -0
- package/dist/common/runtime-contract.js +3 -3
- package/dist/common/scheduler.d.ts +6 -5
- package/dist/common/scheduler.js +2318 -2383
- package/dist/common/trigger-contract.d.ts +5 -0
- package/dist/common/webhook-trigger.d.ts +3 -3
- package/dist/common/webhook-trigger.js +64 -18
- package/package.json +1 -1
- package/dist/browser/dist-B_T-OpQp.js +0 -4
- package/dist/browser/languages-C0zQ4GSo.js +0 -42
package/dist/common/mcp.js
CHANGED
|
@@ -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__*/ _("$
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
|
1890
|
+
function Er(e, t) {
|
|
1972
1891
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
1973
1892
|
}
|
|
1974
|
-
var
|
|
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) =>
|
|
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
|
-
}),
|
|
1993
|
-
|
|
1994
|
-
}),
|
|
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
|
-
}),
|
|
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) =>
|
|
1923
|
+
return r instanceof Promise ? r.then((e) => jr(e, t)) : jr(r, t);
|
|
2005
1924
|
};
|
|
2006
1925
|
});
|
|
2007
|
-
function
|
|
1926
|
+
function jr(e, t) {
|
|
2008
1927
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
2009
1928
|
}
|
|
2010
|
-
var
|
|
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
|
-
}),
|
|
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) =>
|
|
1937
|
+
return i instanceof Promise ? i.then((t) => Pr(t, e)) : Pr(i, e);
|
|
2019
1938
|
};
|
|
2020
1939
|
});
|
|
2021
|
-
function
|
|
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
|
|
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
|
|
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) =>
|
|
1963
|
+
return r instanceof Promise ? r.then((r) => Fr(e, r, t, n)) : Fr(e, r, t, n);
|
|
2045
1964
|
};
|
|
2046
|
-
}),
|
|
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) =>
|
|
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) =>
|
|
1972
|
+
return r instanceof Promise ? r.then((e) => Rr(e, t.out, n)) : Rr(r, t.out, n);
|
|
2054
1973
|
};
|
|
2055
1974
|
});
|
|
2056
|
-
function
|
|
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
|
|
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(
|
|
1985
|
+
return r instanceof Promise ? r.then(Br) : Br(r);
|
|
2067
1986
|
};
|
|
2068
1987
|
});
|
|
2069
|
-
function
|
|
1988
|
+
function Br(e) {
|
|
2070
1989
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
2071
1990
|
}
|
|
2072
|
-
var
|
|
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
|
-
}),
|
|
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) =>
|
|
2081
|
-
|
|
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
|
|
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
|
|
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
|
-
},
|
|
2103
|
-
function
|
|
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
|
|
2110
|
-
function
|
|
2111
|
-
let n =
|
|
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 &&
|
|
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),
|
|
2112
|
+
return t.delete(e), Jr.set(e, r), r;
|
|
2194
2113
|
}
|
|
2195
|
-
function
|
|
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
|
|
2118
|
+
var Zr, Qr = [], $r = {
|
|
2200
2119
|
alloc(e, t, n) {
|
|
2201
|
-
let r =
|
|
2120
|
+
let r = Zr;
|
|
2202
2121
|
if (!r) return n;
|
|
2203
|
-
|
|
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),
|
|
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" &&
|
|
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 =
|
|
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[
|
|
2147
|
+
let l = s[Gr];
|
|
2229
2148
|
l || (l = {
|
|
2230
2149
|
buckets: /* @__PURE__ */ new Map(),
|
|
2231
2150
|
backEdges: void 0
|
|
2232
|
-
}, s[
|
|
2151
|
+
}, s[Gr] = l);
|
|
2233
2152
|
let u;
|
|
2234
|
-
r === s ? u = 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(...
|
|
2237
|
-
|
|
2238
|
-
let f =
|
|
2239
|
-
|
|
2240
|
-
let m =
|
|
2241
|
-
return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ?
|
|
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
|
|
2248
|
-
return
|
|
2166
|
+
function ei() {
|
|
2167
|
+
return $r;
|
|
2249
2168
|
}
|
|
2250
|
-
function
|
|
2251
|
-
let n = e[
|
|
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
|
|
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
|
|
2343
|
-
return { localeError:
|
|
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
|
|
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
|
|
2380
|
-
return new
|
|
2298
|
+
function oi() {
|
|
2299
|
+
return new ai();
|
|
2381
2300
|
}
|
|
2382
|
-
(
|
|
2383
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2608
|
+
function zi(e) {
|
|
2690
2609
|
return new e({ type: "unknown" });
|
|
2691
2610
|
}
|
|
2692
2611
|
// @__NO_SIDE_EFFECTS__
|
|
2693
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2828
|
-
return /* @__PURE__ */
|
|
2746
|
+
function na(e) {
|
|
2747
|
+
return /* @__PURE__ */ ta((t) => t.normalize(e));
|
|
2829
2748
|
}
|
|
2830
2749
|
// @__NO_SIDE_EFFECTS__
|
|
2831
|
-
function
|
|
2832
|
-
return /* @__PURE__ */
|
|
2750
|
+
function ra() {
|
|
2751
|
+
return /* @__PURE__ */ ta((e) => e.trim());
|
|
2833
2752
|
}
|
|
2834
2753
|
// @__NO_SIDE_EFFECTS__
|
|
2835
|
-
function
|
|
2836
|
-
return /* @__PURE__ */
|
|
2754
|
+
function ia() {
|
|
2755
|
+
return /* @__PURE__ */ ta((e) => e.toLowerCase());
|
|
2837
2756
|
}
|
|
2838
2757
|
// @__NO_SIDE_EFFECTS__
|
|
2839
|
-
function
|
|
2840
|
-
return /* @__PURE__ */
|
|
2758
|
+
function aa() {
|
|
2759
|
+
return /* @__PURE__ */ ta((e) => e.toUpperCase());
|
|
2841
2760
|
}
|
|
2842
2761
|
// @__NO_SIDE_EFFECTS__
|
|
2843
|
-
function
|
|
2844
|
-
return /* @__PURE__ */
|
|
2762
|
+
function oa() {
|
|
2763
|
+
return /* @__PURE__ */ ta((e) => f(e));
|
|
2845
2764
|
}
|
|
2846
2765
|
// @__NO_SIDE_EFFECTS__
|
|
2847
|
-
function
|
|
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
|
|
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
|
|
2865
|
-
let n = /* @__PURE__ */
|
|
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
|
|
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
|
|
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
|
|
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 ??
|
|
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 &&
|
|
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
|
|
2871
|
+
function pa(e) {
|
|
2953
2872
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2954
2873
|
}
|
|
2955
|
-
function
|
|
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}/${
|
|
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 +
|
|
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
|
|
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
|
-
|
|
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
|
|
2964
|
+
var ga = /* @__PURE__ */ new Set([
|
|
3046
2965
|
"type",
|
|
3047
2966
|
"properties",
|
|
3048
2967
|
"required",
|
|
3049
2968
|
"additionalProperties"
|
|
3050
|
-
]),
|
|
3051
|
-
function
|
|
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
|
|
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 (!
|
|
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] ??
|
|
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] :
|
|
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 =
|
|
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
|
|
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
|
|
3094
|
-
let n = t.filter((e) =>
|
|
3095
|
-
if (!n.length) r =
|
|
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 =
|
|
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) =>
|
|
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,
|
|
3022
|
+
r && (delete e.allOf, da(e, r));
|
|
3104
3023
|
}
|
|
3105
|
-
function
|
|
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)) :
|
|
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())
|
|
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) ?? [])
|
|
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
|
-
|
|
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:
|
|
3167
|
-
output:
|
|
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
|
|
3205
|
-
let r =
|
|
3123
|
+
var Sa = (e, t = {}) => (n) => {
|
|
3124
|
+
let r = fa({
|
|
3206
3125
|
...n,
|
|
3207
3126
|
processors: t
|
|
3208
3127
|
});
|
|
3209
|
-
return C(e, r),
|
|
3210
|
-
},
|
|
3211
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
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),
|
|
3218
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3159
|
+
}, Da = (e, t, n, r) => {
|
|
3241
3160
|
n.type = "boolean";
|
|
3242
|
-
},
|
|
3161
|
+
}, Oa = (e, t, n, r) => {
|
|
3243
3162
|
S(e, t, n, r, "BigInt cannot be represented in JSON Schema");
|
|
3244
|
-
},
|
|
3163
|
+
}, ka = (e, t, n, r) => {
|
|
3245
3164
|
S(e, t, n, r, "Symbols cannot be represented in JSON Schema");
|
|
3246
|
-
},
|
|
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
|
-
},
|
|
3167
|
+
}, ja = (e, t, n, r) => {
|
|
3249
3168
|
S(e, t, n, r, "Undefined cannot be represented in JSON Schema");
|
|
3250
|
-
},
|
|
3169
|
+
}, Ma = (e, t, n, r) => {
|
|
3251
3170
|
S(e, t, n, r, "Void cannot be represented in JSON Schema");
|
|
3252
|
-
},
|
|
3171
|
+
}, Na = (e, t, n, r) => {
|
|
3253
3172
|
n.not = {};
|
|
3254
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3201
|
+
}, za = (e, t, n, r) => {
|
|
3283
3202
|
S(e, t, n, r, "NaN cannot be represented in JSON Schema");
|
|
3284
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3214
|
+
}, Ha = (e, t, n, r) => {
|
|
3296
3215
|
n.type = "boolean";
|
|
3297
|
-
},
|
|
3216
|
+
}, Ua = (e, t, n, r) => {
|
|
3298
3217
|
S(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3299
|
-
},
|
|
3218
|
+
}, Wa = (e, t, n, r) => {
|
|
3300
3219
|
S(e, t, n, r, "Function types cannot be represented in JSON Schema");
|
|
3301
|
-
},
|
|
3220
|
+
}, Ga = (e, t, n, r) => {
|
|
3302
3221
|
S(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3303
|
-
},
|
|
3222
|
+
}, Ka = (e, t, n, r) => {
|
|
3304
3223
|
S(e, t, n, r, "Map cannot be represented in JSON Schema");
|
|
3305
|
-
},
|
|
3224
|
+
}, qa = (e, t, n, r) => {
|
|
3306
3225
|
S(e, t, n, r, "Set cannot be represented in JSON Schema");
|
|
3307
|
-
},
|
|
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
|
|
3233
|
+
function Ya(e) {
|
|
3315
3234
|
let t = e._zod.def;
|
|
3316
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
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
|
|
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" ?
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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" ?
|
|
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
|
|
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 =
|
|
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) =>
|
|
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
|
|
3417
|
-
function
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
3454
|
-
n || (n = [],
|
|
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" &&
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3475
|
-
function
|
|
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"),
|
|
3396
|
+
return a ? (S(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), oo) : JSON.parse(o);
|
|
3478
3397
|
}
|
|
3479
|
-
var
|
|
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 =
|
|
3485
|
-
o !==
|
|
3486
|
-
},
|
|
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 =
|
|
3492
|
-
o !==
|
|
3493
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
3532
|
-
string:
|
|
3533
|
-
number:
|
|
3534
|
-
boolean:
|
|
3535
|
-
bigint:
|
|
3536
|
-
symbol:
|
|
3537
|
-
null:
|
|
3538
|
-
undefined:
|
|
3539
|
-
void:
|
|
3540
|
-
never:
|
|
3541
|
-
any:
|
|
3542
|
-
unknown:
|
|
3543
|
-
date:
|
|
3544
|
-
enum:
|
|
3545
|
-
literal:
|
|
3546
|
-
nan:
|
|
3547
|
-
template_literal:
|
|
3548
|
-
file:
|
|
3549
|
-
success:
|
|
3550
|
-
custom:
|
|
3551
|
-
function:
|
|
3552
|
-
transform:
|
|
3553
|
-
map:
|
|
3554
|
-
set:
|
|
3555
|
-
array:
|
|
3556
|
-
object:
|
|
3557
|
-
union:
|
|
3558
|
-
intersection:
|
|
3559
|
-
tuple:
|
|
3560
|
-
record:
|
|
3561
|
-
nullable:
|
|
3562
|
-
nonoptional:
|
|
3563
|
-
default:
|
|
3564
|
-
prefault:
|
|
3565
|
-
catch:
|
|
3566
|
-
pipe:
|
|
3567
|
-
readonly:
|
|
3568
|
-
promise:
|
|
3569
|
-
optional:
|
|
3570
|
-
lazy:
|
|
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
|
|
3491
|
+
function vo(e, t) {
|
|
3573
3492
|
if ("_idmap" in e) {
|
|
3574
|
-
let n = e, r =
|
|
3493
|
+
let n = e, r = fa({
|
|
3575
3494
|
...t,
|
|
3576
|
-
processors:
|
|
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
|
-
|
|
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 =
|
|
3513
|
+
let n = fa({
|
|
3595
3514
|
...t,
|
|
3596
|
-
processors:
|
|
3515
|
+
processors: _o
|
|
3597
3516
|
});
|
|
3598
|
-
return C(e, n),
|
|
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
|
|
3603
|
-
function
|
|
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
|
-
|
|
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
|
-
}),
|
|
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 }),
|
|
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
|
|
3642
|
-
v.localeError || We(
|
|
3560
|
+
function No() {
|
|
3561
|
+
v.localeError || We(ri());
|
|
3643
3562
|
}
|
|
3644
|
-
function
|
|
3645
|
-
v.memoizer || We({ memoizer:
|
|
3563
|
+
function Po() {
|
|
3564
|
+
v.memoizer || We({ memoizer: ei() });
|
|
3646
3565
|
}
|
|
3647
|
-
var E = /*@__PURE__*/ _("ZodType", (e, t) => (
|
|
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(
|
|
3588
|
+
return this.check(Ys(e, t));
|
|
3670
3589
|
},
|
|
3671
3590
|
superRefine(e, t) {
|
|
3672
|
-
return this.check(
|
|
3591
|
+
return this.check(Xs(e, t));
|
|
3673
3592
|
},
|
|
3674
3593
|
overwrite(e) {
|
|
3675
|
-
return this.check(/* @__PURE__ */
|
|
3594
|
+
return this.check(/* @__PURE__ */ ta(e));
|
|
3676
3595
|
},
|
|
3677
3596
|
optional() {
|
|
3678
|
-
return
|
|
3597
|
+
return ks(this);
|
|
3679
3598
|
},
|
|
3680
3599
|
exactOptional() {
|
|
3681
|
-
return
|
|
3600
|
+
return js(this);
|
|
3682
3601
|
},
|
|
3683
3602
|
nullable() {
|
|
3684
|
-
return
|
|
3603
|
+
return Ns(this);
|
|
3685
3604
|
},
|
|
3686
3605
|
nullish() {
|
|
3687
|
-
return
|
|
3606
|
+
return ks(Ns(this));
|
|
3688
3607
|
},
|
|
3689
3608
|
nonoptional(e) {
|
|
3690
|
-
return
|
|
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
|
|
3618
|
+
return Ss(this, e);
|
|
3700
3619
|
},
|
|
3701
3620
|
transform(e) {
|
|
3702
|
-
return
|
|
3621
|
+
return Us(this, Ds(e));
|
|
3703
3622
|
},
|
|
3704
3623
|
default(e) {
|
|
3705
|
-
return
|
|
3624
|
+
return Fs(this, e);
|
|
3706
3625
|
},
|
|
3707
3626
|
prefault(e) {
|
|
3708
|
-
return
|
|
3627
|
+
return Ls(this, e);
|
|
3709
3628
|
},
|
|
3710
3629
|
catch(e) {
|
|
3711
|
-
return
|
|
3630
|
+
return Vs(this, e);
|
|
3712
3631
|
},
|
|
3713
3632
|
pipe(e) {
|
|
3714
|
-
return
|
|
3633
|
+
return Us(this, e);
|
|
3715
3634
|
},
|
|
3716
3635
|
readonly() {
|
|
3717
|
-
return
|
|
3636
|
+
return Gs(this);
|
|
3718
3637
|
},
|
|
3719
3638
|
describe(e) {
|
|
3720
3639
|
let t = this.clone();
|
|
3721
|
-
return
|
|
3640
|
+
return si.add(t, { description: e }), t;
|
|
3722
3641
|
},
|
|
3723
3642
|
meta(...e) {
|
|
3724
|
-
if (e.length === 0) return
|
|
3643
|
+
if (e.length === 0) return si.get(this);
|
|
3725
3644
|
let t = this.clone();
|
|
3726
|
-
return
|
|
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:
|
|
3742
|
-
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
|
|
3669
|
+
return xo(this, t, n, { callee: e });
|
|
3751
3670
|
},
|
|
3752
3671
|
parseAsync: async function e(t, n) {
|
|
3753
|
-
return await
|
|
3672
|
+
return await So(this, t, n, { callee: e });
|
|
3754
3673
|
},
|
|
3755
3674
|
safeParse(e, t) {
|
|
3756
|
-
return
|
|
3675
|
+
return Co(this, e, t);
|
|
3757
3676
|
},
|
|
3758
3677
|
async safeParseAsync(e, t) {
|
|
3759
|
-
return
|
|
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
|
|
3687
|
+
return To(this, t, n, { callee: e });
|
|
3769
3688
|
},
|
|
3770
3689
|
decode: function e(t, n) {
|
|
3771
|
-
return
|
|
3690
|
+
return Eo(this, t, n, { callee: e });
|
|
3772
3691
|
},
|
|
3773
3692
|
encodeAsync: async function e(t, n) {
|
|
3774
|
-
return await
|
|
3693
|
+
return await Do(this, t, n, { callee: e });
|
|
3775
3694
|
},
|
|
3776
3695
|
decodeAsync: async function e(t, n) {
|
|
3777
|
-
return await
|
|
3696
|
+
return await Oo(this, t, n, { callee: e });
|
|
3778
3697
|
},
|
|
3779
3698
|
safeEncode(e, t) {
|
|
3780
|
-
return
|
|
3699
|
+
return ko(this, e, t);
|
|
3781
3700
|
},
|
|
3782
3701
|
safeDecode(e, t) {
|
|
3783
|
-
return
|
|
3702
|
+
return Ao(this, e, t);
|
|
3784
3703
|
},
|
|
3785
3704
|
async safeEncodeAsync(e, t) {
|
|
3786
|
-
return
|
|
3705
|
+
return jo(this, e, t);
|
|
3787
3706
|
},
|
|
3788
3707
|
async safeDecodeAsync(e, t) {
|
|
3789
|
-
return
|
|
3708
|
+
return Mo(this, e, t);
|
|
3790
3709
|
},
|
|
3791
3710
|
toJSONSchema(e) {
|
|
3792
|
-
return
|
|
3711
|
+
return Sa(this, {})(e);
|
|
3793
3712
|
},
|
|
3794
3713
|
get description() {
|
|
3795
|
-
return
|
|
3714
|
+
return si.get(this)?.description;
|
|
3796
3715
|
},
|
|
3797
3716
|
get _def() {
|
|
3798
3717
|
return this._zod.def;
|
|
3799
3718
|
}
|
|
3800
|
-
}),
|
|
3801
|
-
bn.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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__ */
|
|
3725
|
+
return this.check(/* @__PURE__ */ Yi(...e));
|
|
3807
3726
|
},
|
|
3808
3727
|
includes(...e) {
|
|
3809
|
-
return this.check(/* @__PURE__ */
|
|
3728
|
+
return this.check(/* @__PURE__ */ Qi(...e));
|
|
3810
3729
|
},
|
|
3811
3730
|
startsWith(...e) {
|
|
3812
|
-
return this.check(/* @__PURE__ */
|
|
3731
|
+
return this.check(/* @__PURE__ */ $i(...e));
|
|
3813
3732
|
},
|
|
3814
3733
|
endsWith(...e) {
|
|
3815
|
-
return this.check(/* @__PURE__ */
|
|
3734
|
+
return this.check(/* @__PURE__ */ ea(...e));
|
|
3816
3735
|
},
|
|
3817
3736
|
min(...e) {
|
|
3818
|
-
return this.check(/* @__PURE__ */
|
|
3737
|
+
return this.check(/* @__PURE__ */ qi(...e));
|
|
3819
3738
|
},
|
|
3820
3739
|
max(...e) {
|
|
3821
|
-
return this.check(/* @__PURE__ */
|
|
3740
|
+
return this.check(/* @__PURE__ */ Ki(...e));
|
|
3822
3741
|
},
|
|
3823
3742
|
length(...e) {
|
|
3824
|
-
return this.check(/* @__PURE__ */
|
|
3743
|
+
return this.check(/* @__PURE__ */ Ji(...e));
|
|
3825
3744
|
},
|
|
3826
3745
|
nonempty(...e) {
|
|
3827
|
-
return this.check(/* @__PURE__ */
|
|
3746
|
+
return this.check(/* @__PURE__ */ qi(1, ...e));
|
|
3828
3747
|
},
|
|
3829
3748
|
lowercase(e) {
|
|
3830
|
-
return this.check(/* @__PURE__ */
|
|
3749
|
+
return this.check(/* @__PURE__ */ Xi(e));
|
|
3831
3750
|
},
|
|
3832
3751
|
uppercase(e) {
|
|
3833
|
-
return this.check(/* @__PURE__ */
|
|
3752
|
+
return this.check(/* @__PURE__ */ Zi(e));
|
|
3834
3753
|
},
|
|
3835
3754
|
trim() {
|
|
3836
|
-
return this.check(/* @__PURE__ */
|
|
3755
|
+
return this.check(/* @__PURE__ */ ra());
|
|
3837
3756
|
},
|
|
3838
3757
|
normalize(...e) {
|
|
3839
|
-
return this.check(/* @__PURE__ */
|
|
3758
|
+
return this.check(/* @__PURE__ */ na(...e));
|
|
3840
3759
|
},
|
|
3841
3760
|
toLowerCase() {
|
|
3842
|
-
return this.check(/* @__PURE__ */
|
|
3761
|
+
return this.check(/* @__PURE__ */ ia());
|
|
3843
3762
|
},
|
|
3844
3763
|
toUpperCase() {
|
|
3845
|
-
return this.check(/* @__PURE__ */
|
|
3764
|
+
return this.check(/* @__PURE__ */ aa());
|
|
3846
3765
|
},
|
|
3847
3766
|
slugify() {
|
|
3848
|
-
return this.check(/* @__PURE__ */
|
|
3767
|
+
return this.check(/* @__PURE__ */ oa());
|
|
3849
3768
|
}
|
|
3850
|
-
}),
|
|
3851
|
-
bn.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__ */
|
|
3773
|
+
return this.check(/* @__PURE__ */ li(Vo, e));
|
|
3855
3774
|
},
|
|
3856
3775
|
url(e) {
|
|
3857
|
-
return this.check(/* @__PURE__ */
|
|
3776
|
+
return this.check(/* @__PURE__ */ hi(Wo, e));
|
|
3858
3777
|
},
|
|
3859
3778
|
jwt(e) {
|
|
3860
|
-
return this.check(/* @__PURE__ */
|
|
3779
|
+
return this.check(/* @__PURE__ */ Ai(as, e));
|
|
3861
3780
|
},
|
|
3862
3781
|
emoji(e) {
|
|
3863
|
-
return this.check(/* @__PURE__ */
|
|
3782
|
+
return this.check(/* @__PURE__ */ gi(Go, e));
|
|
3864
3783
|
},
|
|
3865
3784
|
guid(e) {
|
|
3866
|
-
return this.check(/* @__PURE__ */
|
|
3785
|
+
return this.check(/* @__PURE__ */ ui(Ho, e));
|
|
3867
3786
|
},
|
|
3868
3787
|
uuid(e) {
|
|
3869
|
-
return this.check(/* @__PURE__ */
|
|
3788
|
+
return this.check(/* @__PURE__ */ di(Uo, e));
|
|
3870
3789
|
},
|
|
3871
3790
|
uuidv4(e) {
|
|
3872
|
-
return this.check(/* @__PURE__ */
|
|
3791
|
+
return this.check(/* @__PURE__ */ fi(Uo, e));
|
|
3873
3792
|
},
|
|
3874
3793
|
uuidv6(e) {
|
|
3875
|
-
return this.check(/* @__PURE__ */
|
|
3794
|
+
return this.check(/* @__PURE__ */ pi(Uo, e));
|
|
3876
3795
|
},
|
|
3877
3796
|
uuidv7(e) {
|
|
3878
|
-
return this.check(/* @__PURE__ */
|
|
3797
|
+
return this.check(/* @__PURE__ */ mi(Uo, e));
|
|
3879
3798
|
},
|
|
3880
3799
|
nanoid(e) {
|
|
3881
|
-
return this.check(/* @__PURE__ */
|
|
3800
|
+
return this.check(/* @__PURE__ */ _i(Ko, e));
|
|
3882
3801
|
},
|
|
3883
3802
|
cuid(e) {
|
|
3884
|
-
return this.check(/* @__PURE__ */
|
|
3803
|
+
return this.check(/* @__PURE__ */ vi(qo, e));
|
|
3885
3804
|
},
|
|
3886
3805
|
cuid2(e) {
|
|
3887
|
-
return this.check(/* @__PURE__ */
|
|
3806
|
+
return this.check(/* @__PURE__ */ yi(Jo, e));
|
|
3888
3807
|
},
|
|
3889
3808
|
ulid(e) {
|
|
3890
|
-
return this.check(/* @__PURE__ */
|
|
3809
|
+
return this.check(/* @__PURE__ */ bi(Yo, e));
|
|
3891
3810
|
},
|
|
3892
3811
|
base64(e) {
|
|
3893
|
-
return this.check(/* @__PURE__ */
|
|
3812
|
+
return this.check(/* @__PURE__ */ Di(ns, e));
|
|
3894
3813
|
},
|
|
3895
3814
|
base64url(e) {
|
|
3896
|
-
return this.check(/* @__PURE__ */
|
|
3815
|
+
return this.check(/* @__PURE__ */ Oi(rs, e));
|
|
3897
3816
|
},
|
|
3898
3817
|
xid(e) {
|
|
3899
|
-
return this.check(/* @__PURE__ */
|
|
3818
|
+
return this.check(/* @__PURE__ */ xi(Xo, e));
|
|
3900
3819
|
},
|
|
3901
3820
|
ksuid(e) {
|
|
3902
|
-
return this.check(/* @__PURE__ */
|
|
3821
|
+
return this.check(/* @__PURE__ */ Si(Zo, e));
|
|
3903
3822
|
},
|
|
3904
3823
|
ipv4(e) {
|
|
3905
|
-
return this.check(/* @__PURE__ */
|
|
3824
|
+
return this.check(/* @__PURE__ */ Ci(Qo, e));
|
|
3906
3825
|
},
|
|
3907
3826
|
ipv6(e) {
|
|
3908
|
-
return this.check(/* @__PURE__ */
|
|
3827
|
+
return this.check(/* @__PURE__ */ wi($o, e));
|
|
3909
3828
|
},
|
|
3910
3829
|
cidrv4(e) {
|
|
3911
|
-
return this.check(/* @__PURE__ */
|
|
3830
|
+
return this.check(/* @__PURE__ */ Ti(es, e));
|
|
3912
3831
|
},
|
|
3913
3832
|
cidrv6(e) {
|
|
3914
|
-
return this.check(/* @__PURE__ */
|
|
3833
|
+
return this.check(/* @__PURE__ */ Ei(ts, e));
|
|
3915
3834
|
},
|
|
3916
3835
|
e164(e) {
|
|
3917
|
-
return this.check(/* @__PURE__ */
|
|
3836
|
+
return this.check(/* @__PURE__ */ ki(is, e));
|
|
3918
3837
|
},
|
|
3919
3838
|
datetime(e) {
|
|
3920
|
-
return this.check(/* @__PURE__ */
|
|
3839
|
+
return this.check(/* @__PURE__ */ ji(Lo, e));
|
|
3921
3840
|
},
|
|
3922
3841
|
date(e) {
|
|
3923
|
-
return this.check(/* @__PURE__ */
|
|
3842
|
+
return this.check(/* @__PURE__ */ Mi(Ro, e));
|
|
3924
3843
|
},
|
|
3925
3844
|
time(e) {
|
|
3926
|
-
return this.check(/* @__PURE__ */
|
|
3845
|
+
return this.check(/* @__PURE__ */ Ni(zo, e));
|
|
3927
3846
|
},
|
|
3928
3847
|
duration(e) {
|
|
3929
|
-
return this.check(/* @__PURE__ */
|
|
3848
|
+
return this.check(/* @__PURE__ */ Pi(Bo, e));
|
|
3930
3849
|
}
|
|
3931
3850
|
});
|
|
3932
3851
|
function D(e) {
|
|
3933
|
-
return /* @__PURE__ */
|
|
3852
|
+
return /* @__PURE__ */ ci(Io, e);
|
|
3934
3853
|
}
|
|
3935
3854
|
var O = /*@__PURE__*/ _("ZodStringFormat", (e, t) => {
|
|
3936
|
-
x.init(e, t),
|
|
3937
|
-
}),
|
|
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
|
-
}),
|
|
3858
|
+
}), Ro = /*@__PURE__*/ _("ZodISODate", (e, t) => {
|
|
3940
3859
|
Rn.init(e, t), O.init(e, t);
|
|
3941
|
-
}),
|
|
3860
|
+
}), zo = /*@__PURE__*/ _("ZodISOTime", (e, t) => {
|
|
3942
3861
|
zn.init(e, t), O.init(e, t);
|
|
3943
|
-
}),
|
|
3862
|
+
}), Bo = /*@__PURE__*/ _("ZodISODuration", (e, t) => {
|
|
3944
3863
|
Bn.init(e, t), O.init(e, t);
|
|
3945
|
-
}),
|
|
3864
|
+
}), Vo = /*@__PURE__*/ _("ZodEmail", (e, t) => {
|
|
3946
3865
|
Cn.init(e, t), O.init(e, t);
|
|
3947
|
-
}),
|
|
3866
|
+
}), Ho = /*@__PURE__*/ _("ZodGUID", (e, t) => {
|
|
3948
3867
|
xn.init(e, t), O.init(e, t);
|
|
3949
|
-
}),
|
|
3868
|
+
}), Uo = /*@__PURE__*/ _("ZodUUID", (e, t) => {
|
|
3950
3869
|
Sn.init(e, t), O.init(e, t);
|
|
3951
|
-
}),
|
|
3870
|
+
}), Wo = /*@__PURE__*/ _("ZodURL", (e, t) => {
|
|
3952
3871
|
kn.init(e, t), O.init(e, t);
|
|
3953
|
-
}),
|
|
3872
|
+
}), Go = /*@__PURE__*/ _("ZodEmoji", (e, t) => {
|
|
3954
3873
|
An.init(e, t), O.init(e, t);
|
|
3955
|
-
}),
|
|
3874
|
+
}), Ko = /*@__PURE__*/ _("ZodNanoID", (e, t) => {
|
|
3956
3875
|
jn.init(e, t), O.init(e, t);
|
|
3957
|
-
}),
|
|
3876
|
+
}), qo = /*@__PURE__*/ _("ZodCUID", (e, t) => {
|
|
3958
3877
|
Mn.init(e, t), O.init(e, t);
|
|
3959
|
-
}),
|
|
3878
|
+
}), Jo = /*@__PURE__*/ _("ZodCUID2", (e, t) => {
|
|
3960
3879
|
Nn.init(e, t), O.init(e, t);
|
|
3961
|
-
}),
|
|
3880
|
+
}), Yo = /*@__PURE__*/ _("ZodULID", (e, t) => {
|
|
3962
3881
|
Pn.init(e, t), O.init(e, t);
|
|
3963
|
-
}),
|
|
3882
|
+
}), Xo = /*@__PURE__*/ _("ZodXID", (e, t) => {
|
|
3964
3883
|
Fn.init(e, t), O.init(e, t);
|
|
3965
|
-
}),
|
|
3884
|
+
}), Zo = /*@__PURE__*/ _("ZodKSUID", (e, t) => {
|
|
3966
3885
|
In.init(e, t), O.init(e, t);
|
|
3967
|
-
}),
|
|
3886
|
+
}), Qo = /*@__PURE__*/ _("ZodIPv4", (e, t) => {
|
|
3968
3887
|
Vn.init(e, t), O.init(e, t);
|
|
3969
|
-
}),
|
|
3888
|
+
}), $o = /*@__PURE__*/ _("ZodIPv6", (e, t) => {
|
|
3970
3889
|
Wn.init(e, t), O.init(e, t);
|
|
3971
|
-
}),
|
|
3890
|
+
}), es = /*@__PURE__*/ _("ZodCIDRv4", (e, t) => {
|
|
3972
3891
|
Gn.init(e, t), O.init(e, t);
|
|
3973
|
-
}),
|
|
3892
|
+
}), ts = /*@__PURE__*/ _("ZodCIDRv6", (e, t) => {
|
|
3974
3893
|
qn.init(e, t), O.init(e, t);
|
|
3975
|
-
}),
|
|
3894
|
+
}), ns = /*@__PURE__*/ _("ZodBase64", (e, t) => {
|
|
3976
3895
|
Yn.init(e, t), O.init(e, t);
|
|
3977
|
-
}),
|
|
3896
|
+
}), rs = /*@__PURE__*/ _("ZodBase64URL", (e, t) => {
|
|
3978
3897
|
Zn.init(e, t), O.init(e, t);
|
|
3979
|
-
}),
|
|
3898
|
+
}), is = /*@__PURE__*/ _("ZodE164", (e, t) => {
|
|
3980
3899
|
Qn.init(e, t), O.init(e, t);
|
|
3981
|
-
}),
|
|
3900
|
+
}), as = /*@__PURE__*/ _("ZodJWT", (e, t) => {
|
|
3982
3901
|
er.init(e, t), O.init(e, t);
|
|
3983
|
-
}),
|
|
3984
|
-
tr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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__ */
|
|
3908
|
+
return this.check(/* @__PURE__ */ Ui(e, t));
|
|
3990
3909
|
},
|
|
3991
3910
|
gte(e, t) {
|
|
3992
|
-
return this.check(/* @__PURE__ */
|
|
3911
|
+
return this.check(/* @__PURE__ */ Wi(e, t));
|
|
3993
3912
|
},
|
|
3994
3913
|
min(e, t) {
|
|
3995
|
-
return this.check(/* @__PURE__ */
|
|
3914
|
+
return this.check(/* @__PURE__ */ Wi(e, t));
|
|
3996
3915
|
},
|
|
3997
3916
|
lt(e, t) {
|
|
3998
|
-
return this.check(/* @__PURE__ */
|
|
3917
|
+
return this.check(/* @__PURE__ */ Vi(e, t));
|
|
3999
3918
|
},
|
|
4000
3919
|
lte(e, t) {
|
|
4001
|
-
return this.check(/* @__PURE__ */
|
|
3920
|
+
return this.check(/* @__PURE__ */ Hi(e, t));
|
|
4002
3921
|
},
|
|
4003
3922
|
max(e, t) {
|
|
4004
|
-
return this.check(/* @__PURE__ */
|
|
3923
|
+
return this.check(/* @__PURE__ */ Hi(e, t));
|
|
4005
3924
|
},
|
|
4006
3925
|
int(e) {
|
|
4007
|
-
return this.check(
|
|
3926
|
+
return this.check(cs(e));
|
|
4008
3927
|
},
|
|
4009
3928
|
safe(e) {
|
|
4010
|
-
return this.check(
|
|
3929
|
+
return this.check(cs(e));
|
|
4011
3930
|
},
|
|
4012
3931
|
positive(e) {
|
|
4013
|
-
return this.check(/* @__PURE__ */
|
|
3932
|
+
return this.check(/* @__PURE__ */ Ui(0, e));
|
|
4014
3933
|
},
|
|
4015
3934
|
nonnegative(e) {
|
|
4016
|
-
return this.check(/* @__PURE__ */
|
|
3935
|
+
return this.check(/* @__PURE__ */ Wi(0, e));
|
|
4017
3936
|
},
|
|
4018
3937
|
negative(e) {
|
|
4019
|
-
return this.check(/* @__PURE__ */
|
|
3938
|
+
return this.check(/* @__PURE__ */ Vi(0, e));
|
|
4020
3939
|
},
|
|
4021
3940
|
nonpositive(e) {
|
|
4022
|
-
return this.check(/* @__PURE__ */
|
|
3941
|
+
return this.check(/* @__PURE__ */ Hi(0, e));
|
|
4023
3942
|
},
|
|
4024
3943
|
multipleOf(e, t) {
|
|
4025
|
-
return this.check(/* @__PURE__ */
|
|
3944
|
+
return this.check(/* @__PURE__ */ Gi(e, t));
|
|
4026
3945
|
},
|
|
4027
3946
|
step(e, t) {
|
|
4028
|
-
return this.check(/* @__PURE__ */
|
|
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__ */
|
|
3954
|
+
return /* @__PURE__ */ Fi(os, e);
|
|
4036
3955
|
}
|
|
4037
|
-
var
|
|
4038
|
-
nr.init(e, t),
|
|
3956
|
+
var ss = /*@__PURE__*/ _("ZodNumberFormat", (e, t) => {
|
|
3957
|
+
nr.init(e, t), os.init(e, t);
|
|
4039
3958
|
});
|
|
4040
|
-
function
|
|
4041
|
-
return /* @__PURE__ */
|
|
3959
|
+
function cs(e) {
|
|
3960
|
+
return /* @__PURE__ */ Ii(ss, e);
|
|
4042
3961
|
}
|
|
4043
|
-
var
|
|
4044
|
-
rr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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__ */
|
|
3966
|
+
return /* @__PURE__ */ Li(ls, e);
|
|
4048
3967
|
}
|
|
4049
|
-
var
|
|
4050
|
-
ir.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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
|
|
4053
|
-
return /* @__PURE__ */
|
|
3971
|
+
function ds(e) {
|
|
3972
|
+
return /* @__PURE__ */ Ri(us, e);
|
|
4054
3973
|
}
|
|
4055
|
-
var
|
|
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
|
|
4059
|
-
return /* @__PURE__ */
|
|
3977
|
+
function ps() {
|
|
3978
|
+
return /* @__PURE__ */ zi(fs);
|
|
4060
3979
|
}
|
|
4061
|
-
var
|
|
4062
|
-
or.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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
|
|
4065
|
-
return /* @__PURE__ */
|
|
3983
|
+
function hs(e) {
|
|
3984
|
+
return /* @__PURE__ */ Bi(ms, e);
|
|
4066
3985
|
}
|
|
4067
|
-
var
|
|
4068
|
-
|
|
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__ */
|
|
3990
|
+
return this.check(/* @__PURE__ */ qi(e, t));
|
|
4072
3991
|
},
|
|
4073
3992
|
nonempty(e) {
|
|
4074
|
-
return this.check(/* @__PURE__ */
|
|
3993
|
+
return this.check(/* @__PURE__ */ qi(1, e));
|
|
4075
3994
|
},
|
|
4076
3995
|
max(e, t) {
|
|
4077
|
-
return this.check(/* @__PURE__ */
|
|
3996
|
+
return this.check(/* @__PURE__ */ Ki(e, t));
|
|
4078
3997
|
},
|
|
4079
3998
|
length(e, t) {
|
|
4080
|
-
return this.check(/* @__PURE__ */
|
|
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__ */
|
|
4006
|
+
return /* @__PURE__ */ sa(gs, e, t);
|
|
4088
4007
|
}
|
|
4089
|
-
var
|
|
4090
|
-
|
|
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:
|
|
4023
|
+
catchall: ps()
|
|
4105
4024
|
});
|
|
4106
4025
|
},
|
|
4107
4026
|
loose() {
|
|
4108
4027
|
return this.clone({
|
|
4109
4028
|
...this._zod.def,
|
|
4110
|
-
catchall:
|
|
4029
|
+
catchall: ps()
|
|
4111
4030
|
});
|
|
4112
4031
|
},
|
|
4113
4032
|
strict() {
|
|
4114
4033
|
return this.clone({
|
|
4115
4034
|
...this._zod.def,
|
|
4116
|
-
catchall:
|
|
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(
|
|
4060
|
+
return me(Os, this, e[0]);
|
|
4142
4061
|
},
|
|
4143
4062
|
exactPartial(...e) {
|
|
4144
|
-
return me(
|
|
4063
|
+
return me(As, this, e[0], "exactPartial");
|
|
4145
4064
|
},
|
|
4146
4065
|
required(...e) {
|
|
4147
|
-
return he(
|
|
4066
|
+
return he(Rs, this, e[0]);
|
|
4148
4067
|
}
|
|
4149
4068
|
});
|
|
4150
4069
|
function M(e, t) {
|
|
4151
|
-
return new
|
|
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
|
|
4077
|
+
return new _s({
|
|
4159
4078
|
type: "object",
|
|
4160
4079
|
shape: e,
|
|
4161
|
-
catchall:
|
|
4080
|
+
catchall: hs(),
|
|
4162
4081
|
...h(t)
|
|
4163
4082
|
});
|
|
4164
4083
|
}
|
|
4165
|
-
var
|
|
4166
|
-
_r.init(e, t), E.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
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
|
|
4088
|
+
return new vs({
|
|
4170
4089
|
type: "union",
|
|
4171
4090
|
options: e,
|
|
4172
4091
|
...h(t)
|
|
4173
4092
|
});
|
|
4174
4093
|
}
|
|
4175
|
-
var
|
|
4176
|
-
|
|
4094
|
+
var ys = /*@__PURE__*/ _("ZodDiscriminatedUnion", (e, t) => {
|
|
4095
|
+
vs.init(e, t), vr.init(e, t);
|
|
4177
4096
|
});
|
|
4178
|
-
function
|
|
4179
|
-
return new
|
|
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
|
|
4187
|
-
yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (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
|
|
4190
|
-
return new
|
|
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
|
|
4197
|
-
|
|
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
|
|
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
|
|
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
|
|
4243
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
4275
|
-
|
|
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
|
|
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
|
|
4288
|
-
|
|
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
|
|
4302
|
-
return new
|
|
4190
|
+
function Ds(e) {
|
|
4191
|
+
return new Es({
|
|
4303
4192
|
type: "transform",
|
|
4304
4193
|
transform: e
|
|
4305
4194
|
});
|
|
4306
4195
|
}
|
|
4307
|
-
var
|
|
4308
|
-
|
|
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
|
|
4311
|
-
return new
|
|
4199
|
+
function ks(e) {
|
|
4200
|
+
return new Os({
|
|
4312
4201
|
type: "optional",
|
|
4313
4202
|
innerType: e
|
|
4314
4203
|
});
|
|
4315
4204
|
}
|
|
4316
|
-
var
|
|
4317
|
-
|
|
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
|
|
4320
|
-
return new
|
|
4208
|
+
function js(e) {
|
|
4209
|
+
return new As({
|
|
4321
4210
|
type: "optional",
|
|
4322
4211
|
innerType: e
|
|
4323
4212
|
});
|
|
4324
4213
|
}
|
|
4325
|
-
var
|
|
4326
|
-
|
|
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
|
|
4329
|
-
return new
|
|
4217
|
+
function Ns(e) {
|
|
4218
|
+
return new Ms({
|
|
4330
4219
|
type: "nullable",
|
|
4331
4220
|
innerType: e
|
|
4332
4221
|
});
|
|
4333
4222
|
}
|
|
4334
|
-
var
|
|
4335
|
-
|
|
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
|
|
4338
|
-
return new
|
|
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
|
|
4347
|
-
|
|
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
|
|
4350
|
-
return new
|
|
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
|
|
4359
|
-
|
|
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
|
|
4362
|
-
return new
|
|
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
|
|
4369
|
-
|
|
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
|
|
4372
|
-
return new
|
|
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
|
|
4379
|
-
|
|
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
|
|
4382
|
-
return new
|
|
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
|
|
4389
|
-
|
|
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
|
|
4392
|
-
return new
|
|
4280
|
+
function Gs(e) {
|
|
4281
|
+
return new Ws({
|
|
4393
4282
|
type: "readonly",
|
|
4394
4283
|
innerType: e
|
|
4395
4284
|
});
|
|
4396
4285
|
}
|
|
4397
|
-
var
|
|
4398
|
-
|
|
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
|
|
4401
|
-
return new
|
|
4289
|
+
function qs(e) {
|
|
4290
|
+
return new Ks({
|
|
4402
4291
|
type: "lazy",
|
|
4403
4292
|
getter: e
|
|
4404
4293
|
});
|
|
4405
4294
|
}
|
|
4406
|
-
var
|
|
4407
|
-
|
|
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
|
|
4410
|
-
return /* @__PURE__ */
|
|
4298
|
+
function Ys(e, t = {}) {
|
|
4299
|
+
return /* @__PURE__ */ ca(Js, e, t);
|
|
4411
4300
|
}
|
|
4412
|
-
function
|
|
4413
|
-
return /* @__PURE__ */
|
|
4301
|
+
function Xs(e, t) {
|
|
4302
|
+
return /* @__PURE__ */ la(e, t);
|
|
4414
4303
|
}
|
|
4415
|
-
function
|
|
4416
|
-
let t =
|
|
4304
|
+
function Zs(e) {
|
|
4305
|
+
let t = qs(() => P([
|
|
4417
4306
|
D(e),
|
|
4418
4307
|
k(),
|
|
4419
4308
|
A(),
|
|
4420
|
-
|
|
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
|
|
4429
|
-
function
|
|
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-- &&
|
|
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 (
|
|
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
|
|
4335
|
+
var ec = [
|
|
4447
4336
|
"canceled",
|
|
4448
4337
|
"completed",
|
|
4449
4338
|
"failed",
|
|
@@ -4453,44 +4342,58 @@ var oc = [
|
|
|
4453
4342
|
"starting",
|
|
4454
4343
|
"waiting"
|
|
4455
4344
|
];
|
|
4456
|
-
function
|
|
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))
|
|
4347
|
+
if (typeof e == "object" && e) for (let n of Object.values(e)) tc(n, t + 1);
|
|
4459
4348
|
}
|
|
4460
4349
|
//#endregion
|
|
4461
|
-
//#region src/flow/common/
|
|
4462
|
-
var
|
|
4350
|
+
//#region src/flow/common/triggerScheduleSchema.ts
|
|
4351
|
+
var nc = j(P([M({
|
|
4352
|
+
type: L("cron"),
|
|
4353
|
+
expression: D(),
|
|
4354
|
+
timezone: D()
|
|
4355
|
+
}), M({
|
|
4356
|
+
type: L("every"),
|
|
4357
|
+
unit: I([
|
|
4358
|
+
"day",
|
|
4359
|
+
"hour",
|
|
4360
|
+
"minute",
|
|
4361
|
+
"month",
|
|
4362
|
+
"week"
|
|
4363
|
+
]),
|
|
4364
|
+
value: k()
|
|
4365
|
+
})])), R = D(), z = Zs(), rc = j(R), ic = M({
|
|
4463
4366
|
description: R.optional(),
|
|
4464
4367
|
jsonSchema: z,
|
|
4465
4368
|
nullable: A(),
|
|
4466
4369
|
handle: R
|
|
4467
|
-
}), B =
|
|
4370
|
+
}), B = ic.extend({ value: z.optional() }), ac = M({
|
|
4468
4371
|
collapsed: A().optional(),
|
|
4469
4372
|
group: R
|
|
4470
|
-
}),
|
|
4373
|
+
}), oc = M({
|
|
4471
4374
|
kind: L("node"),
|
|
4472
4375
|
nodeId: R,
|
|
4473
4376
|
output: R
|
|
4474
|
-
}),
|
|
4377
|
+
}), sc = M({
|
|
4475
4378
|
kind: L("flow"),
|
|
4476
4379
|
input: R
|
|
4477
|
-
}),
|
|
4478
|
-
|
|
4479
|
-
|
|
4380
|
+
}), cc = P([
|
|
4381
|
+
oc,
|
|
4382
|
+
sc,
|
|
4480
4383
|
M({
|
|
4481
4384
|
kind: L("binding"),
|
|
4482
4385
|
bindingId: R
|
|
4483
4386
|
})
|
|
4484
|
-
]),
|
|
4387
|
+
]), lc = P([M({
|
|
4485
4388
|
kind: L("value"),
|
|
4486
4389
|
value: z
|
|
4487
4390
|
}), M({
|
|
4488
4391
|
kind: L("sources"),
|
|
4489
|
-
sources: j(
|
|
4490
|
-
})]),
|
|
4491
|
-
inputs: j(P([B,
|
|
4492
|
-
outputs: j(P([
|
|
4493
|
-
},
|
|
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({
|
|
4494
4397
|
kind: L("connector"),
|
|
4495
4398
|
action: R,
|
|
4496
4399
|
connectionId: R.optional(),
|
|
@@ -4498,19 +4401,19 @@ var R = D(), z = rc(), cc = j(R), lc = M({
|
|
|
4498
4401
|
connectionId: R,
|
|
4499
4402
|
alias: R.optional()
|
|
4500
4403
|
}))
|
|
4501
|
-
}),
|
|
4502
|
-
...
|
|
4404
|
+
}), pc = M({
|
|
4405
|
+
...dc,
|
|
4503
4406
|
name: R,
|
|
4504
4407
|
moduleId: R,
|
|
4505
|
-
capabilities: j(
|
|
4506
|
-
}),
|
|
4408
|
+
capabilities: j(fc).optional()
|
|
4409
|
+
}), mc = P([M({
|
|
4507
4410
|
kind: L("value"),
|
|
4508
4411
|
value: z
|
|
4509
4412
|
}), M({
|
|
4510
4413
|
kind: L("input"),
|
|
4511
4414
|
input: R
|
|
4512
|
-
})]),
|
|
4513
|
-
...
|
|
4415
|
+
})]), hc = P([mc, M({ kind: L("model") })]), gc = M({
|
|
4416
|
+
...dc,
|
|
4514
4417
|
name: R,
|
|
4515
4418
|
executor: P([
|
|
4516
4419
|
M({
|
|
@@ -4526,7 +4429,7 @@ var R = D(), z = rc(), cc = j(R), lc = M({
|
|
|
4526
4429
|
kind: L("agent"),
|
|
4527
4430
|
code: A().optional(),
|
|
4528
4431
|
model: R,
|
|
4529
|
-
prompt:
|
|
4432
|
+
prompt: mc,
|
|
4530
4433
|
system: R,
|
|
4531
4434
|
maxRounds: k(),
|
|
4532
4435
|
tools: j(M({
|
|
@@ -4536,16 +4439,16 @@ var R = D(), z = rc(), cc = j(R), lc = M({
|
|
|
4536
4439
|
action: R,
|
|
4537
4440
|
connectionId: R.optional(),
|
|
4538
4441
|
approval: A(),
|
|
4539
|
-
inputs: j(B.extend({ source:
|
|
4442
|
+
inputs: j(B.extend({ source: hc }))
|
|
4540
4443
|
})),
|
|
4541
4444
|
notification: M({
|
|
4542
4445
|
taskId: R,
|
|
4543
4446
|
messageHandle: R,
|
|
4544
|
-
inputs: F(R,
|
|
4447
|
+
inputs: F(R, mc)
|
|
4545
4448
|
}).optional()
|
|
4546
4449
|
})
|
|
4547
4450
|
])
|
|
4548
|
-
}),
|
|
4451
|
+
}), _c = {
|
|
4549
4452
|
input: B,
|
|
4550
4453
|
cases: j(M({
|
|
4551
4454
|
output: R,
|
|
@@ -4578,43 +4481,26 @@ var R = D(), z = rc(), cc = j(R), lc = M({
|
|
|
4578
4481
|
}))
|
|
4579
4482
|
})),
|
|
4580
4483
|
defaultOutput: R.optional()
|
|
4581
|
-
},
|
|
4582
|
-
|
|
4583
|
-
prompt: R
|
|
4584
|
-
}, wc = {
|
|
4585
|
-
inputsDef: j(B),
|
|
4484
|
+
}, vc = { prompt: R }, yc = {
|
|
4485
|
+
bodyFields: j(B),
|
|
4586
4486
|
options: M({
|
|
4587
|
-
allowedMethods:
|
|
4588
|
-
allowedOrigins:
|
|
4487
|
+
allowedMethods: rc.optional(),
|
|
4488
|
+
allowedOrigins: rc.optional(),
|
|
4589
4489
|
noResponseBody: A().optional(),
|
|
4590
4490
|
responseData: R.optional(),
|
|
4591
4491
|
responseHeaders: F(R, R).optional(),
|
|
4592
4492
|
responseStatusCode: k().optional()
|
|
4593
4493
|
}).optional()
|
|
4594
|
-
},
|
|
4595
|
-
type: L("cron"),
|
|
4596
|
-
expression: R,
|
|
4597
|
-
timezone: R
|
|
4598
|
-
}), M({
|
|
4599
|
-
type: L("every"),
|
|
4600
|
-
unit: I([
|
|
4601
|
-
"day",
|
|
4602
|
-
"hour",
|
|
4603
|
-
"minute",
|
|
4604
|
-
"month",
|
|
4605
|
-
"week"
|
|
4606
|
-
]),
|
|
4607
|
-
value: k()
|
|
4608
|
-
})])), Ec = {
|
|
4494
|
+
}, bc = {
|
|
4609
4495
|
configSchema: z,
|
|
4610
|
-
definitionVersion:
|
|
4496
|
+
definitionVersion: L(2),
|
|
4611
4497
|
description: R,
|
|
4612
4498
|
displayName: R,
|
|
4613
4499
|
key: R,
|
|
4614
4500
|
name: R,
|
|
4615
|
-
|
|
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
|
-
},
|
|
4503
|
+
}, xc = M({
|
|
4618
4504
|
body: M({
|
|
4619
4505
|
allowArray: A(),
|
|
4620
4506
|
allowEmpty: A(),
|
|
@@ -4634,132 +4520,139 @@ var R = D(), z = rc(), cc = j(R), lc = M({
|
|
|
4634
4520
|
"PUT"
|
|
4635
4521
|
])),
|
|
4636
4522
|
successStatus: k()
|
|
4637
|
-
}),
|
|
4523
|
+
}), Sc = {
|
|
4638
4524
|
name: R,
|
|
4639
4525
|
description: R.optional(),
|
|
4640
4526
|
icon: R.optional()
|
|
4641
|
-
},
|
|
4642
|
-
|
|
4527
|
+
}, Cc = {
|
|
4528
|
+
maxExecutions: k().int().positive().max(2 ** 53 - 1).optional(),
|
|
4529
|
+
inputs: uc,
|
|
4643
4530
|
name: R.optional(),
|
|
4644
4531
|
description: R.optional(),
|
|
4645
4532
|
icon: R.optional(),
|
|
4646
4533
|
timeoutMs: k().optional()
|
|
4647
|
-
},
|
|
4534
|
+
}, wc = P([
|
|
4648
4535
|
M({
|
|
4649
|
-
...
|
|
4536
|
+
...Cc,
|
|
4650
4537
|
kind: L("condition"),
|
|
4651
|
-
...
|
|
4538
|
+
..._c
|
|
4652
4539
|
}),
|
|
4653
4540
|
M({
|
|
4654
|
-
...
|
|
4655
|
-
inputs:
|
|
4541
|
+
...Cc,
|
|
4542
|
+
inputs: ps().transform(() => ({})).default({}),
|
|
4656
4543
|
kind: L("value"),
|
|
4657
4544
|
values: j(B)
|
|
4658
4545
|
}),
|
|
4659
4546
|
M({
|
|
4660
|
-
...
|
|
4547
|
+
...Cc,
|
|
4661
4548
|
kind: L("subflow"),
|
|
4662
4549
|
subflowId: R
|
|
4663
4550
|
}),
|
|
4664
4551
|
M({
|
|
4665
|
-
...
|
|
4552
|
+
...Cc,
|
|
4666
4553
|
kind: L("task"),
|
|
4667
|
-
task:
|
|
4554
|
+
task: pc,
|
|
4668
4555
|
additionalInputs: j(B).optional()
|
|
4669
4556
|
}),
|
|
4670
4557
|
M({
|
|
4671
|
-
...
|
|
4558
|
+
...Cc,
|
|
4672
4559
|
kind: L("task"),
|
|
4673
4560
|
taskId: R,
|
|
4674
4561
|
additionalInputs: j(B).optional()
|
|
4675
4562
|
}),
|
|
4676
4563
|
N({
|
|
4677
|
-
...
|
|
4564
|
+
...Cc,
|
|
4565
|
+
kind: L("approval"),
|
|
4566
|
+
input: B,
|
|
4567
|
+
...vc
|
|
4568
|
+
}).omit({ timeoutMs: !0 }),
|
|
4569
|
+
N({
|
|
4570
|
+
...Cc,
|
|
4678
4571
|
kind: L("wait"),
|
|
4679
4572
|
input: B,
|
|
4680
|
-
...
|
|
4573
|
+
...vc
|
|
4681
4574
|
}).omit({ timeoutMs: !0 }),
|
|
4682
4575
|
M({
|
|
4683
|
-
...
|
|
4576
|
+
...Sc,
|
|
4684
4577
|
kind: L("manual")
|
|
4685
4578
|
}),
|
|
4686
4579
|
M({
|
|
4687
|
-
...
|
|
4580
|
+
...Sc,
|
|
4688
4581
|
kind: L("webhook"),
|
|
4689
|
-
...
|
|
4582
|
+
...yc
|
|
4690
4583
|
}),
|
|
4691
4584
|
M({
|
|
4692
|
-
...
|
|
4585
|
+
...Sc,
|
|
4693
4586
|
kind: L("cron"),
|
|
4694
|
-
cronTimes:
|
|
4587
|
+
cronTimes: nc
|
|
4695
4588
|
}),
|
|
4696
4589
|
M({
|
|
4697
|
-
...
|
|
4590
|
+
...Sc,
|
|
4698
4591
|
kind: L("poll"),
|
|
4699
4592
|
bindingId: R,
|
|
4700
4593
|
config: F(R, z),
|
|
4701
4594
|
definition: M({
|
|
4702
|
-
...
|
|
4595
|
+
...bc,
|
|
4703
4596
|
type: L("poll")
|
|
4704
4597
|
}),
|
|
4705
|
-
pollTimes:
|
|
4598
|
+
pollTimes: nc
|
|
4706
4599
|
}),
|
|
4707
4600
|
M({
|
|
4708
|
-
...
|
|
4601
|
+
...Sc,
|
|
4709
4602
|
kind: L("integration"),
|
|
4710
4603
|
bindingId: R,
|
|
4711
4604
|
config: F(R, z),
|
|
4712
4605
|
definition: M({
|
|
4713
|
-
...
|
|
4606
|
+
...bc,
|
|
4714
4607
|
type: L("integration"),
|
|
4715
|
-
endpoint:
|
|
4608
|
+
endpoint: xc
|
|
4716
4609
|
})
|
|
4717
4610
|
})
|
|
4718
|
-
]),
|
|
4611
|
+
]), Tc = P([M({ kind: L("flow") }), M({
|
|
4719
4612
|
kind: L("subflow"),
|
|
4720
4613
|
id: R
|
|
4721
|
-
})]),
|
|
4614
|
+
})]), Ec = M({
|
|
4722
4615
|
source: R,
|
|
4723
4616
|
target: R,
|
|
4724
4617
|
sourceHandle: R.optional()
|
|
4725
4618
|
}), V = {
|
|
4726
4619
|
nodeId: R,
|
|
4727
|
-
target:
|
|
4728
|
-
},
|
|
4620
|
+
target: Tc
|
|
4621
|
+
}, Dc = M({
|
|
4729
4622
|
name: R,
|
|
4730
4623
|
inputs: j(B),
|
|
4731
|
-
outputs: j(
|
|
4732
|
-
}),
|
|
4733
|
-
nodes: F(R,
|
|
4734
|
-
edges: j(
|
|
4735
|
-
}),
|
|
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({
|
|
4736
4629
|
kind: I(["connection", "variable"]),
|
|
4737
4630
|
target: R
|
|
4738
|
-
}),
|
|
4631
|
+
}), Ac = M({
|
|
4739
4632
|
name: R,
|
|
4740
|
-
imports:
|
|
4633
|
+
imports: rc,
|
|
4741
4634
|
source: R
|
|
4742
|
-
}),
|
|
4743
|
-
bindings: F(R,
|
|
4744
|
-
graph:
|
|
4745
|
-
subflows: F(R,
|
|
4746
|
-
tasks: F(R,
|
|
4747
|
-
}),
|
|
4748
|
-
modelVersion: L(
|
|
4749
|
-
document:
|
|
4750
|
-
modules: F(R,
|
|
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({
|
|
4641
|
+
modelVersion: L(2),
|
|
4642
|
+
document: jc,
|
|
4643
|
+
modules: F(R, Ac)
|
|
4751
4644
|
});
|
|
4752
|
-
|
|
4645
|
+
Mc.extend({
|
|
4753
4646
|
kind: L("open-flow-flow-revision"),
|
|
4754
4647
|
version: L(1)
|
|
4755
4648
|
});
|
|
4756
|
-
function
|
|
4757
|
-
return
|
|
4649
|
+
function Nc(e) {
|
|
4650
|
+
return tc(e), Mc.parse(e);
|
|
4758
4651
|
}
|
|
4759
|
-
var
|
|
4652
|
+
var Pc = {
|
|
4760
4653
|
"binding.create": {
|
|
4761
4654
|
bindingId: R,
|
|
4762
|
-
binding:
|
|
4655
|
+
binding: kc
|
|
4763
4656
|
},
|
|
4764
4657
|
"binding.delete": { bindingId: R },
|
|
4765
4658
|
"binding.target.set": {
|
|
@@ -4768,40 +4661,50 @@ var Bc = {
|
|
|
4768
4661
|
value: R
|
|
4769
4662
|
},
|
|
4770
4663
|
"graph.edge.connect": {
|
|
4771
|
-
target:
|
|
4772
|
-
edge:
|
|
4664
|
+
target: Tc,
|
|
4665
|
+
edge: Ec
|
|
4773
4666
|
},
|
|
4774
4667
|
"graph.edge.disconnect": {
|
|
4775
|
-
target:
|
|
4776
|
-
edge:
|
|
4668
|
+
target: Tc,
|
|
4669
|
+
edge: Ec
|
|
4777
4670
|
},
|
|
4778
4671
|
"graph.node.create": {
|
|
4779
4672
|
...V,
|
|
4780
|
-
node:
|
|
4673
|
+
node: wc
|
|
4781
4674
|
},
|
|
4782
4675
|
"graph.node.delete": V,
|
|
4783
|
-
"graph.node.field.set": P([
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4676
|
+
"graph.node.field.set": P([
|
|
4677
|
+
M({
|
|
4678
|
+
...V,
|
|
4679
|
+
kind: L("graph.node.field.set"),
|
|
4680
|
+
field: I([
|
|
4681
|
+
"description",
|
|
4682
|
+
"icon",
|
|
4683
|
+
"name"
|
|
4684
|
+
]),
|
|
4685
|
+
before: R.optional(),
|
|
4686
|
+
value: R.optional()
|
|
4687
|
+
}),
|
|
4688
|
+
M({
|
|
4689
|
+
...V,
|
|
4690
|
+
kind: L("graph.node.field.set"),
|
|
4691
|
+
field: L("maxExecutions"),
|
|
4692
|
+
before: k().int().positive().max(2 ** 53 - 1).optional(),
|
|
4693
|
+
value: k().int().positive().max(2 ** 53 - 1).optional()
|
|
4694
|
+
}),
|
|
4695
|
+
M({
|
|
4696
|
+
...V,
|
|
4697
|
+
kind: L("graph.node.field.set"),
|
|
4698
|
+
field: L("timeoutMs"),
|
|
4699
|
+
before: k().optional(),
|
|
4700
|
+
value: k().optional()
|
|
4701
|
+
})
|
|
4702
|
+
]),
|
|
4800
4703
|
"graph.node.input.set": {
|
|
4801
4704
|
...V,
|
|
4802
4705
|
handle: R,
|
|
4803
|
-
before:
|
|
4804
|
-
value:
|
|
4706
|
+
before: lc.optional(),
|
|
4707
|
+
value: lc.optional()
|
|
4805
4708
|
},
|
|
4806
4709
|
"graph.node.additional-inputs.set": {
|
|
4807
4710
|
...V,
|
|
@@ -4810,30 +4713,30 @@ var Bc = {
|
|
|
4810
4713
|
},
|
|
4811
4714
|
"graph.node.condition.set": {
|
|
4812
4715
|
...V,
|
|
4813
|
-
before: M(
|
|
4814
|
-
value: M(
|
|
4716
|
+
before: M(_c),
|
|
4717
|
+
value: M(_c)
|
|
4815
4718
|
},
|
|
4816
4719
|
"graph.node.values.set": {
|
|
4817
4720
|
...V,
|
|
4818
4721
|
before: j(B),
|
|
4819
4722
|
value: j(B)
|
|
4820
4723
|
},
|
|
4821
|
-
"graph.node.
|
|
4724
|
+
"graph.node.resolution.set": {
|
|
4822
4725
|
...V,
|
|
4823
4726
|
target: M({ kind: L("flow") }),
|
|
4824
|
-
before: M(
|
|
4825
|
-
value: M(
|
|
4727
|
+
before: M(vc),
|
|
4728
|
+
value: M(vc)
|
|
4826
4729
|
},
|
|
4827
4730
|
"graph.node.webhook.set": {
|
|
4828
4731
|
...V,
|
|
4829
4732
|
target: M({ kind: L("flow") }),
|
|
4830
|
-
before: M(
|
|
4831
|
-
value: M(
|
|
4733
|
+
before: M(yc),
|
|
4734
|
+
value: M(yc)
|
|
4832
4735
|
},
|
|
4833
4736
|
"graph.node.task.ports.set": {
|
|
4834
4737
|
...V,
|
|
4835
|
-
before: M(
|
|
4836
|
-
value: M(
|
|
4738
|
+
before: M(dc),
|
|
4739
|
+
value: M(dc)
|
|
4837
4740
|
},
|
|
4838
4741
|
"graph.node.task.name.set": {
|
|
4839
4742
|
...V,
|
|
@@ -4842,8 +4745,8 @@ var Bc = {
|
|
|
4842
4745
|
},
|
|
4843
4746
|
"graph.node.task.capabilities.set": {
|
|
4844
4747
|
...V,
|
|
4845
|
-
before: j(
|
|
4846
|
-
value: j(
|
|
4748
|
+
before: j(fc).optional(),
|
|
4749
|
+
value: j(fc).optional()
|
|
4847
4750
|
},
|
|
4848
4751
|
"graph.trigger.config.set": {
|
|
4849
4752
|
nodeId: R,
|
|
@@ -4853,12 +4756,12 @@ var Bc = {
|
|
|
4853
4756
|
},
|
|
4854
4757
|
"graph.trigger.schedule.set": {
|
|
4855
4758
|
nodeId: R,
|
|
4856
|
-
before:
|
|
4857
|
-
value:
|
|
4759
|
+
before: nc,
|
|
4760
|
+
value: nc
|
|
4858
4761
|
},
|
|
4859
4762
|
"module.create": {
|
|
4860
4763
|
moduleId: R,
|
|
4861
|
-
module:
|
|
4764
|
+
module: Ac
|
|
4862
4765
|
},
|
|
4863
4766
|
"module.delete": { moduleId: R },
|
|
4864
4767
|
"module.rename": {
|
|
@@ -4868,24 +4771,24 @@ var Bc = {
|
|
|
4868
4771
|
},
|
|
4869
4772
|
"module.source.replace": {
|
|
4870
4773
|
moduleId: R,
|
|
4871
|
-
beforeImports:
|
|
4774
|
+
beforeImports: rc,
|
|
4872
4775
|
beforeSource: R,
|
|
4873
|
-
imports:
|
|
4776
|
+
imports: rc,
|
|
4874
4777
|
source: R
|
|
4875
4778
|
},
|
|
4876
4779
|
"subflow.create": {
|
|
4877
4780
|
subflowId: R,
|
|
4878
|
-
subflow:
|
|
4781
|
+
subflow: Dc.extend({ graph: Oc })
|
|
4879
4782
|
},
|
|
4880
4783
|
"subflow.definition.set": {
|
|
4881
4784
|
subflowId: R,
|
|
4882
|
-
before:
|
|
4883
|
-
definition:
|
|
4785
|
+
before: Dc,
|
|
4786
|
+
definition: Dc
|
|
4884
4787
|
},
|
|
4885
4788
|
"subflow.delete": { subflowId: R },
|
|
4886
4789
|
"task.create": {
|
|
4887
4790
|
taskId: R,
|
|
4888
|
-
task:
|
|
4791
|
+
task: gc
|
|
4889
4792
|
},
|
|
4890
4793
|
"task.delete": { taskId: R },
|
|
4891
4794
|
"task.connector.connection.set": {
|
|
@@ -4895,8 +4798,8 @@ var Bc = {
|
|
|
4895
4798
|
},
|
|
4896
4799
|
"task.agent.set": {
|
|
4897
4800
|
taskId: R,
|
|
4898
|
-
before:
|
|
4899
|
-
value:
|
|
4801
|
+
before: gc,
|
|
4802
|
+
value: gc
|
|
4900
4803
|
},
|
|
4901
4804
|
"task.llm.mode.set": {
|
|
4902
4805
|
taskId: R,
|
|
@@ -4909,13 +4812,13 @@ var Bc = {
|
|
|
4909
4812
|
value: R
|
|
4910
4813
|
}
|
|
4911
4814
|
};
|
|
4912
|
-
j(P([...new Map(Object.entries(
|
|
4815
|
+
j(P([...new Map(Object.entries(Pc).map(([e, t]) => [e, t instanceof E ? t : M({
|
|
4913
4816
|
kind: L(e),
|
|
4914
4817
|
...t
|
|
4915
4818
|
})])).values()])).min(1);
|
|
4916
4819
|
//#endregion
|
|
4917
4820
|
//#region src/flow/common/change.ts
|
|
4918
|
-
var
|
|
4821
|
+
var Fc = /* @__PURE__ */ new Set([
|
|
4919
4822
|
"const",
|
|
4920
4823
|
"enum",
|
|
4921
4824
|
"exclusiveMaximum",
|
|
@@ -4933,10 +4836,10 @@ var Vc = /* @__PURE__ */ new Set([
|
|
|
4933
4836
|
"required",
|
|
4934
4837
|
"type"
|
|
4935
4838
|
]);
|
|
4936
|
-
function
|
|
4937
|
-
return
|
|
4839
|
+
function Ic(e) {
|
|
4840
|
+
return Fc.has(e);
|
|
4938
4841
|
}
|
|
4939
|
-
function
|
|
4842
|
+
function Lc(e) {
|
|
4940
4843
|
let t = e.trim();
|
|
4941
4844
|
if (t.length == 0) return "empty";
|
|
4942
4845
|
if (t.length > 80) return "tooLong";
|
|
@@ -4948,23 +4851,23 @@ function Uc(e) {
|
|
|
4948
4851
|
}
|
|
4949
4852
|
//#endregion
|
|
4950
4853
|
//#region src/control/common/resultQuery.ts
|
|
4951
|
-
var
|
|
4854
|
+
var Rc = N({
|
|
4952
4855
|
pointer: D().max(4096).default(""),
|
|
4953
4856
|
offset: k().int().nonnegative().default(0),
|
|
4954
4857
|
limit: k().int().min(1).max(100).default(20),
|
|
4955
4858
|
maxBytes: k().int().min(1).max(1048576).default(15e3)
|
|
4956
|
-
}),
|
|
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({
|
|
4957
4860
|
version: L(1),
|
|
4958
|
-
sourceId:
|
|
4959
|
-
revision:
|
|
4960
|
-
name:
|
|
4861
|
+
sourceId: zc,
|
|
4862
|
+
revision: cs().positive(),
|
|
4863
|
+
name: Vc,
|
|
4961
4864
|
provider: I(["feishu", "feishu_app_bot"]),
|
|
4962
|
-
appId:
|
|
4963
|
-
tenantKey:
|
|
4964
|
-
connectionId:
|
|
4965
|
-
teamId:
|
|
4865
|
+
appId: zc,
|
|
4866
|
+
tenantKey: zc,
|
|
4867
|
+
connectionId: zc,
|
|
4868
|
+
teamId: zc.nullable(),
|
|
4966
4869
|
enabled: A(),
|
|
4967
|
-
eventTypes: j(
|
|
4870
|
+
eventTypes: j(Bc),
|
|
4968
4871
|
manageSubscriptions: A(),
|
|
4969
4872
|
verificationTokenConfigured: A(),
|
|
4970
4873
|
encryptKeyConfigured: A(),
|
|
@@ -4973,22 +4876,22 @@ var Wc = N({
|
|
|
4973
4876
|
lastReceivedAt: D().nullable(),
|
|
4974
4877
|
updatedAt: D(),
|
|
4975
4878
|
consumers: j(N({
|
|
4976
|
-
flowId:
|
|
4879
|
+
flowId: zc,
|
|
4977
4880
|
flowName: D(),
|
|
4978
|
-
triggerNodeId:
|
|
4881
|
+
triggerNodeId: zc
|
|
4979
4882
|
}))
|
|
4980
4883
|
});
|
|
4981
|
-
function
|
|
4982
|
-
return
|
|
4884
|
+
function Uc(e) {
|
|
4885
|
+
return Hc.parse(e);
|
|
4983
4886
|
}
|
|
4984
|
-
function
|
|
4887
|
+
function Wc(e) {
|
|
4985
4888
|
return N({
|
|
4986
4889
|
version: L(1),
|
|
4987
|
-
sources: j(
|
|
4988
|
-
teamId:
|
|
4890
|
+
sources: j(Hc),
|
|
4891
|
+
teamId: zc.nullable().optional()
|
|
4989
4892
|
}).parse(e);
|
|
4990
4893
|
}
|
|
4991
|
-
var
|
|
4894
|
+
var Gc = new Map([
|
|
4992
4895
|
"en",
|
|
4993
4896
|
"zh-CN",
|
|
4994
4897
|
"zh-TW",
|
|
@@ -4997,8 +4900,8 @@ var Zc = new Map([
|
|
|
4997
4900
|
"ru",
|
|
4998
4901
|
"fr"
|
|
4999
4902
|
].map((e) => [e.toLowerCase(), e]));
|
|
5000
|
-
function
|
|
5001
|
-
return typeof e == "string" &&
|
|
4903
|
+
function Kc(e) {
|
|
4904
|
+
return typeof e == "string" && Gc.get(e.toLowerCase()) == e;
|
|
5002
4905
|
}
|
|
5003
4906
|
//#endregion
|
|
5004
4907
|
//#region src/control/common/errors.ts
|
|
@@ -5017,6 +4920,8 @@ var H = {
|
|
|
5017
4920
|
eventSourceNotFound: "event-source.not-found",
|
|
5018
4921
|
eventSourceConflict: "event-source.conflict",
|
|
5019
4922
|
flowInvalid: "flow.invalid",
|
|
4923
|
+
flowRepairRequired: "flow.repair-required",
|
|
4924
|
+
flowUpgradeRequired: "flow.upgrade-required",
|
|
5020
4925
|
flowNotFound: "flow.not-found",
|
|
5021
4926
|
flowBusy: "flow.busy",
|
|
5022
4927
|
flowConflict: "flow.conflict",
|
|
@@ -5044,8 +4949,8 @@ var H = {
|
|
|
5044
4949
|
variableLimitReached: "variable.limit-reached",
|
|
5045
4950
|
variableNotFound: "variable.not-found"
|
|
5046
4951
|
};
|
|
5047
|
-
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.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;
|
|
5048
|
-
var
|
|
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;
|
|
4953
|
+
var qc = class extends Error {
|
|
5049
4954
|
constructor(e, t, n) {
|
|
5050
4955
|
super(n), this.code = t, this.name = "ApiError", this.status = e;
|
|
5051
4956
|
}
|
|
@@ -5053,7 +4958,7 @@ var $c = class extends Error {
|
|
|
5053
4958
|
//#endregion
|
|
5054
4959
|
//#region src/control/common/decoding.ts
|
|
5055
4960
|
function U() {
|
|
5056
|
-
throw new
|
|
4961
|
+
throw new qc(502, "response.invalid", "The Control API returned an invalid response.");
|
|
5057
4962
|
}
|
|
5058
4963
|
function W(e) {
|
|
5059
4964
|
return typeof e != "object" || !e || Array.isArray(e) ? U() : e;
|
|
@@ -5074,12 +4979,12 @@ function J(e) {
|
|
|
5074
4979
|
let t = W(e);
|
|
5075
4980
|
return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, J(t)]));
|
|
5076
4981
|
}
|
|
5077
|
-
function
|
|
4982
|
+
function Jc(e) {
|
|
5078
4983
|
if (e != null) return G(e);
|
|
5079
4984
|
}
|
|
5080
4985
|
//#endregion
|
|
5081
4986
|
//#region src/control/common/triggerDecoders.ts
|
|
5082
|
-
function
|
|
4987
|
+
function Yc(e) {
|
|
5083
4988
|
let t = W(e), n = t.type;
|
|
5084
4989
|
return n != "integration" && n != "poll" ? U() : {
|
|
5085
4990
|
description: typeof t.description == "string" ? t.description : U(),
|
|
@@ -5090,15 +4995,22 @@ function tl(e) {
|
|
|
5090
4995
|
type: n
|
|
5091
4996
|
};
|
|
5092
4997
|
}
|
|
5093
|
-
function
|
|
5094
|
-
let t = W(e), n =
|
|
4998
|
+
function Xc(e) {
|
|
4999
|
+
let t = W(e), n = Yc(t), r = {
|
|
5095
5000
|
configSchema: J(t.configSchema),
|
|
5096
|
-
definitionVersion:
|
|
5001
|
+
definitionVersion: t.definitionVersion === 2 ? 2 : U(),
|
|
5097
5002
|
description: n.description,
|
|
5098
5003
|
displayName: n.displayName,
|
|
5099
5004
|
key: n.key,
|
|
5100
5005
|
name: n.name,
|
|
5101
|
-
|
|
5006
|
+
outputs: (Array.isArray(t.outputs) ? t.outputs : U()).map((e) => {
|
|
5007
|
+
let t = W(e);
|
|
5008
|
+
return Object.assign({
|
|
5009
|
+
handle: G(t.handle),
|
|
5010
|
+
jsonSchema: J(t.jsonSchema),
|
|
5011
|
+
nullable: typeof t.nullable == "boolean" ? t.nullable : U()
|
|
5012
|
+
}, t.description == null ? {} : { description: G(t.description) });
|
|
5013
|
+
}),
|
|
5102
5014
|
provider: n.provider
|
|
5103
5015
|
};
|
|
5104
5016
|
if (n.type == "poll") return {
|
|
@@ -5134,18 +5046,18 @@ function nl(e) {
|
|
|
5134
5046
|
type: "integration"
|
|
5135
5047
|
};
|
|
5136
5048
|
}
|
|
5137
|
-
var
|
|
5049
|
+
var Zc = /* @__PURE__ */ new Set([
|
|
5138
5050
|
"cron",
|
|
5139
5051
|
"integration",
|
|
5140
5052
|
"poll",
|
|
5141
5053
|
"webhook"
|
|
5142
|
-
]),
|
|
5054
|
+
]), Qc = /* @__PURE__ */ new Set([
|
|
5143
5055
|
"failed",
|
|
5144
5056
|
"healthy",
|
|
5145
5057
|
"initializing",
|
|
5146
5058
|
"needs_reauth",
|
|
5147
5059
|
"suspended"
|
|
5148
|
-
]),
|
|
5060
|
+
]), $c = /* @__PURE__ */ new Set([
|
|
5149
5061
|
"delivery.failed",
|
|
5150
5062
|
"health.failed",
|
|
5151
5063
|
"health.needs_reauth",
|
|
@@ -5154,11 +5066,11 @@ var rl = /* @__PURE__ */ new Set([
|
|
|
5154
5066
|
"operator.paused",
|
|
5155
5067
|
"operator.resumed"
|
|
5156
5068
|
]);
|
|
5157
|
-
function
|
|
5069
|
+
function el(e) {
|
|
5158
5070
|
let t = W(e), n = t.health, r = t.listener == null ? void 0 : W(t.listener);
|
|
5159
5071
|
if (r != null && r.health != "healthy" && r.health != "failed" && r.health != "needs_reauth") return U();
|
|
5160
5072
|
let i = t.kind, a = t.operatorState, o = q(t.runtimeVersion);
|
|
5161
|
-
return t.version != 1 || typeof n != "string" || !
|
|
5073
|
+
return t.version != 1 || typeof n != "string" || !Qc.has(n) || typeof i != "string" || !Zc.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
|
|
5162
5074
|
...t.currentPublicationId == null ? {} : { currentPublicationId: G(t.currentPublicationId) },
|
|
5163
5075
|
...t.currentRevisionId == null ? {} : { currentRevisionId: G(t.currentRevisionId) },
|
|
5164
5076
|
...t.endpointUrl == null ? {} : { endpointUrl: G(t.endpointUrl) },
|
|
@@ -5177,17 +5089,17 @@ function ol(e) {
|
|
|
5177
5089
|
version: 1
|
|
5178
5090
|
};
|
|
5179
5091
|
}
|
|
5180
|
-
function
|
|
5092
|
+
function tl(e) {
|
|
5181
5093
|
let t = W(e);
|
|
5182
5094
|
return t.version == 1 ? {
|
|
5183
|
-
binding:
|
|
5095
|
+
binding: el(t.binding),
|
|
5184
5096
|
version: 1
|
|
5185
5097
|
} : U();
|
|
5186
5098
|
}
|
|
5187
|
-
function
|
|
5099
|
+
function nl(e) {
|
|
5188
5100
|
let t = W(e), n = t.kind;
|
|
5189
|
-
if (typeof n != "string" ||
|
|
5190
|
-
let r =
|
|
5101
|
+
if (typeof n != "string" || !$c.has(n)) return U();
|
|
5102
|
+
let r = Jc(t.errorCode), i = Jc(t.errorMessage);
|
|
5191
5103
|
return i != null && i.length > 512 ? U() : {
|
|
5192
5104
|
activityId: G(t.activityId),
|
|
5193
5105
|
createdAt: G(t.createdAt),
|
|
@@ -5196,15 +5108,15 @@ function cl(e) {
|
|
|
5196
5108
|
kind: n
|
|
5197
5109
|
};
|
|
5198
5110
|
}
|
|
5199
|
-
function
|
|
5200
|
-
let t = W(e), n =
|
|
5111
|
+
function rl(e) {
|
|
5112
|
+
let t = W(e), n = Jc(t.nextCursor);
|
|
5201
5113
|
return t.version != 1 || !Array.isArray(t.activities) ? U() : {
|
|
5202
|
-
activities: t.activities.map(
|
|
5114
|
+
activities: t.activities.map(nl),
|
|
5203
5115
|
...n == null ? {} : { nextCursor: n },
|
|
5204
5116
|
version: 1
|
|
5205
5117
|
};
|
|
5206
5118
|
}
|
|
5207
|
-
function
|
|
5119
|
+
function il(e) {
|
|
5208
5120
|
let t = W(e), n = q(t.filtered);
|
|
5209
5121
|
return t.version != 1 || !Array.isArray(t.events) || typeof t.hasMore != "boolean" || n < 0 ? U() : {
|
|
5210
5122
|
events: t.events.map((e) => {
|
|
@@ -5218,15 +5130,15 @@ function ul(e) {
|
|
|
5218
5130
|
}
|
|
5219
5131
|
//#endregion
|
|
5220
5132
|
//#region src/control/common/triggerCatalog.ts
|
|
5221
|
-
function
|
|
5133
|
+
function al(e) {
|
|
5222
5134
|
let t = W(e);
|
|
5223
5135
|
if (K(t, [
|
|
5224
5136
|
"version",
|
|
5225
5137
|
"locale",
|
|
5226
5138
|
"definitions",
|
|
5227
5139
|
"display"
|
|
5228
|
-
]), t.version != 1 || !
|
|
5229
|
-
let n = t.definitions.map(
|
|
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));
|
|
5230
5142
|
if (i.size != n.length || Object.keys(r).length != i.size) return U();
|
|
5231
5143
|
let a = Object.fromEntries(n.map(({ key: e }) => {
|
|
5232
5144
|
let t = W(r[e]);
|
|
@@ -5244,7 +5156,7 @@ function dl(e) {
|
|
|
5244
5156
|
}
|
|
5245
5157
|
//#endregion
|
|
5246
5158
|
//#region src/control/common/results.ts
|
|
5247
|
-
var
|
|
5159
|
+
var ol = Zs(), sl = N({
|
|
5248
5160
|
pointer: D(),
|
|
5249
5161
|
type: I([
|
|
5250
5162
|
"object",
|
|
@@ -5256,75 +5168,75 @@ var fl = rc(), pl = N({
|
|
|
5256
5168
|
]),
|
|
5257
5169
|
length: k().int().nonnegative().optional(),
|
|
5258
5170
|
complete: A(),
|
|
5259
|
-
value:
|
|
5260
|
-
}),
|
|
5171
|
+
value: ol.optional()
|
|
5172
|
+
}), cl = sl.extend({
|
|
5261
5173
|
offset: k().int().nonnegative(),
|
|
5262
5174
|
nextOffset: k().int().positive().optional(),
|
|
5263
|
-
entries: j(
|
|
5264
|
-
}),
|
|
5175
|
+
entries: j(sl).optional()
|
|
5176
|
+
}), ll = N({
|
|
5265
5177
|
resultId: D().min(1),
|
|
5266
5178
|
callId: D().min(1),
|
|
5267
5179
|
toolId: D().min(1),
|
|
5268
|
-
source:
|
|
5180
|
+
source: bs("kind", [N({
|
|
5269
5181
|
kind: L("connector"),
|
|
5270
5182
|
action: D().min(1)
|
|
5271
5183
|
}), N({ kind: L("code") })]),
|
|
5272
5184
|
bytes: k().int().nonnegative(),
|
|
5273
5185
|
digest: D().regex(/^[a-f0-9]{64}$/),
|
|
5274
5186
|
createdAt: D().datetime()
|
|
5275
|
-
}),
|
|
5187
|
+
}), ul = N({
|
|
5276
5188
|
version: L(1),
|
|
5277
5189
|
runId: D(),
|
|
5278
|
-
results: j(
|
|
5190
|
+
results: j(ll),
|
|
5279
5191
|
nextAfter: D().optional()
|
|
5280
|
-
}),
|
|
5192
|
+
}), dl = N({
|
|
5281
5193
|
version: L(1),
|
|
5282
5194
|
runId: D(),
|
|
5283
|
-
result:
|
|
5284
|
-
page:
|
|
5195
|
+
result: ll,
|
|
5196
|
+
page: cl
|
|
5285
5197
|
});
|
|
5286
|
-
function
|
|
5287
|
-
return
|
|
5198
|
+
function fl(e) {
|
|
5199
|
+
return ul.parse(e);
|
|
5288
5200
|
}
|
|
5289
|
-
function
|
|
5290
|
-
return
|
|
5201
|
+
function pl(e) {
|
|
5202
|
+
return dl.parse(e);
|
|
5291
5203
|
}
|
|
5292
5204
|
new TextEncoder();
|
|
5293
5205
|
//#endregion
|
|
5294
5206
|
//#region src/control/common/checkDecoders.ts
|
|
5295
|
-
function
|
|
5207
|
+
function ml(e) {
|
|
5296
5208
|
return Array.isArray(e) ? e.map((e) => typeof e == "string" || Number.isSafeInteger(e) ? e : U()) : U();
|
|
5297
5209
|
}
|
|
5298
|
-
function
|
|
5210
|
+
function hl(e) {
|
|
5299
5211
|
let t = W(e), n = G(t.kind);
|
|
5300
5212
|
return n == "artifact" || n == "binary" || n == "nullable" ? { kind: n } : n == "schema" ? {
|
|
5301
5213
|
kind: n,
|
|
5302
|
-
path: t.path == null ? void 0 :
|
|
5303
|
-
} : n != "keyword" || typeof t.keyword != "string" || !
|
|
5214
|
+
path: t.path == null ? void 0 : ml(t.path)
|
|
5215
|
+
} : n != "keyword" || typeof t.keyword != "string" || !Ic(t.keyword) ? U() : {
|
|
5304
5216
|
kind: n,
|
|
5305
5217
|
keyword: t.keyword,
|
|
5306
|
-
path:
|
|
5218
|
+
path: ml(t.path),
|
|
5307
5219
|
source: t.source === void 0 ? void 0 : J(t.source),
|
|
5308
5220
|
target: t.target === void 0 ? void 0 : J(t.target)
|
|
5309
5221
|
};
|
|
5310
5222
|
}
|
|
5311
|
-
function
|
|
5223
|
+
function gl(e) {
|
|
5312
5224
|
let t = W(e), n = t.values == null ? void 0 : W(t.values);
|
|
5313
5225
|
return {
|
|
5314
5226
|
code: G(t.code),
|
|
5315
5227
|
column: q(t.column),
|
|
5316
5228
|
line: q(t.line),
|
|
5317
5229
|
message: G(t.message),
|
|
5318
|
-
mismatch: t.mismatch == null ? void 0 :
|
|
5230
|
+
mismatch: t.mismatch == null ? void 0 : hl(t.mismatch),
|
|
5319
5231
|
path: typeof t.path == "string" ? t.path : U(),
|
|
5320
5232
|
...n == null ? {} : { values: Object.fromEntries(Object.entries(n).map(([e, t]) => [e, typeof t == "string" || typeof t == "number" ? t : U()])) }
|
|
5321
5233
|
};
|
|
5322
5234
|
}
|
|
5323
|
-
function
|
|
5235
|
+
function _l(e) {
|
|
5324
5236
|
let t = W(e);
|
|
5325
5237
|
return t.version != 1 || typeof t.valid != "boolean" || !Array.isArray(t.diagnostics) ? U() : {
|
|
5326
5238
|
closureDigest: G(t.closureDigest),
|
|
5327
|
-
diagnostics: t.diagnostics.map(
|
|
5239
|
+
diagnostics: t.diagnostics.map(gl),
|
|
5328
5240
|
engineContract: G(t.engineContract),
|
|
5329
5241
|
flowId: G(t.flowId),
|
|
5330
5242
|
modelVersion: q(t.modelVersion),
|
|
@@ -5336,7 +5248,7 @@ function Cl(e) {
|
|
|
5336
5248
|
}
|
|
5337
5249
|
//#endregion
|
|
5338
5250
|
//#region src/control/common/connectorDecoders.ts
|
|
5339
|
-
function
|
|
5251
|
+
function vl(e) {
|
|
5340
5252
|
let t = W(e);
|
|
5341
5253
|
if (K(t, [
|
|
5342
5254
|
...Object.hasOwn(t, "providerAccountId") ? ["providerAccountId"] : [],
|
|
@@ -5360,7 +5272,7 @@ function wl(e) {
|
|
|
5360
5272
|
status: n
|
|
5361
5273
|
};
|
|
5362
5274
|
}
|
|
5363
|
-
function
|
|
5275
|
+
function yl(e, t = !1) {
|
|
5364
5276
|
let n = W(e), r = n.description, i = t && Object.hasOwn(n, "value");
|
|
5365
5277
|
return K(n, [
|
|
5366
5278
|
"jsonSchema",
|
|
@@ -5374,13 +5286,13 @@ function Tl(e, t = !1) {
|
|
|
5374
5286
|
...i ? { value: J(n.value) } : {}
|
|
5375
5287
|
};
|
|
5376
5288
|
}
|
|
5377
|
-
function
|
|
5378
|
-
return
|
|
5289
|
+
function bl(e) {
|
|
5290
|
+
return yl(e, !0);
|
|
5379
5291
|
}
|
|
5380
|
-
function
|
|
5292
|
+
function xl(e, t) {
|
|
5381
5293
|
return Object.fromEntries(Object.entries(W(e)).map(([e, n]) => [e, t(n)]));
|
|
5382
5294
|
}
|
|
5383
|
-
function
|
|
5295
|
+
function Sl(e) {
|
|
5384
5296
|
let t = W(e), n = t.homepageUrl, r = t.icon;
|
|
5385
5297
|
return K(t, [
|
|
5386
5298
|
"actionId",
|
|
@@ -5405,23 +5317,23 @@ function Ol(e) {
|
|
|
5405
5317
|
description: typeof t.description == "string" ? t.description : U(),
|
|
5406
5318
|
...n == null ? {} : { homepageUrl: n },
|
|
5407
5319
|
...r == null ? {} : { icon: r },
|
|
5408
|
-
inputs:
|
|
5320
|
+
inputs: xl(t.inputs, bl),
|
|
5409
5321
|
name: G(t.name),
|
|
5410
|
-
outputs:
|
|
5322
|
+
outputs: xl(t.outputs, yl),
|
|
5411
5323
|
serviceId: G(t.serviceId),
|
|
5412
5324
|
serviceName: G(t.serviceName)
|
|
5413
5325
|
};
|
|
5414
5326
|
}
|
|
5415
|
-
function
|
|
5416
|
-
let { defaultConnection: t, ...n } = W(e), r =
|
|
5327
|
+
function Cl(e) {
|
|
5328
|
+
let { defaultConnection: t, ...n } = W(e), r = Sl(n);
|
|
5417
5329
|
if (t == null) return r;
|
|
5418
|
-
let i =
|
|
5330
|
+
let i = vl(t);
|
|
5419
5331
|
return i.serviceId != r.serviceId || i.status != "active" ? U() : {
|
|
5420
5332
|
...r,
|
|
5421
5333
|
defaultConnection: i
|
|
5422
5334
|
};
|
|
5423
5335
|
}
|
|
5424
|
-
function
|
|
5336
|
+
function wl(e) {
|
|
5425
5337
|
let t = W(e), n = t.homepageUrl, r = t.icon;
|
|
5426
5338
|
return t.noSetup !== void 0 && typeof t.noSetup != "boolean" || (K(t, [
|
|
5427
5339
|
...Object.hasOwn(t, "noSetup") ? ["noSetup"] : [],
|
|
@@ -5439,8 +5351,8 @@ function Al(e) {
|
|
|
5439
5351
|
}
|
|
5440
5352
|
//#endregion
|
|
5441
5353
|
//#region src/control/common/connectorQueries.ts
|
|
5442
|
-
var
|
|
5443
|
-
function
|
|
5354
|
+
var Tl = (e) => e == null ? "" : `?flowId=${encodeURIComponent(e)}`;
|
|
5355
|
+
function El(e, t) {
|
|
5444
5356
|
let n = new URLSearchParams({
|
|
5445
5357
|
...e == null ? {} : { flowId: e },
|
|
5446
5358
|
...t == null ? {} : { locale: t }
|
|
@@ -5449,11 +5361,11 @@ function Ml(e, t) {
|
|
|
5449
5361
|
path: `/v1/connector/providers${n ? `?${n}` : ""}`,
|
|
5450
5362
|
decode: (e) => {
|
|
5451
5363
|
let t = W(e);
|
|
5452
|
-
return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(
|
|
5364
|
+
return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(wl);
|
|
5453
5365
|
}
|
|
5454
5366
|
};
|
|
5455
5367
|
}
|
|
5456
|
-
function
|
|
5368
|
+
function Dl(e, t, n) {
|
|
5457
5369
|
let r = new URLSearchParams({
|
|
5458
5370
|
...t == null ? {} : { flowId: t },
|
|
5459
5371
|
...n == null ? {} : { locale: n }
|
|
@@ -5462,35 +5374,35 @@ function Nl(e, t, n) {
|
|
|
5462
5374
|
path: `/v1/connector/actions/${encodeURIComponent(e)}${r ? `?${r}` : ""}`,
|
|
5463
5375
|
decode: (e) => {
|
|
5464
5376
|
let t = W(e);
|
|
5465
|
-
return K(t, ["action", "version"]), t.version == 1 ?
|
|
5377
|
+
return K(t, ["action", "version"]), t.version == 1 ? Cl(t.action) : U();
|
|
5466
5378
|
}
|
|
5467
5379
|
};
|
|
5468
5380
|
}
|
|
5469
|
-
function
|
|
5381
|
+
function Ol(e) {
|
|
5470
5382
|
return {
|
|
5471
|
-
path: `/v1/connector/connections${
|
|
5383
|
+
path: `/v1/connector/connections${Tl(e)}`,
|
|
5472
5384
|
decode: (e) => {
|
|
5473
5385
|
let t = W(e);
|
|
5474
|
-
return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(
|
|
5386
|
+
return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(vl);
|
|
5475
5387
|
}
|
|
5476
5388
|
};
|
|
5477
5389
|
}
|
|
5478
|
-
function
|
|
5390
|
+
function kl(e, t) {
|
|
5479
5391
|
return {
|
|
5480
|
-
path: `/v1/connector/connections/${encodeURIComponent(e)}${
|
|
5392
|
+
path: `/v1/connector/connections/${encodeURIComponent(e)}${Tl(t)}`,
|
|
5481
5393
|
decode: (t) => {
|
|
5482
5394
|
let n = W(t);
|
|
5483
5395
|
return K(n, [
|
|
5484
5396
|
"connections",
|
|
5485
5397
|
"serviceId",
|
|
5486
5398
|
"version"
|
|
5487
|
-
]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(
|
|
5399
|
+
]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
|
|
5488
5400
|
}
|
|
5489
5401
|
};
|
|
5490
5402
|
}
|
|
5491
5403
|
//#endregion
|
|
5492
5404
|
//#region src/control/common/flowDecoders.ts
|
|
5493
|
-
function
|
|
5405
|
+
function Al(e) {
|
|
5494
5406
|
let t = W(e), n = t.status;
|
|
5495
5407
|
if (t.version != 1 || n != "active" && n != "retiring") return U();
|
|
5496
5408
|
let r = t.live == null ? void 0 : W(t.live);
|
|
@@ -5509,18 +5421,18 @@ function Il(e) {
|
|
|
5509
5421
|
version: 1
|
|
5510
5422
|
};
|
|
5511
5423
|
}
|
|
5512
|
-
function
|
|
5424
|
+
function jl(e) {
|
|
5513
5425
|
let t = W(e);
|
|
5514
5426
|
if (t.version != 1 || !Array.isArray(t.flows)) return U();
|
|
5515
5427
|
let n = t.nextCursor, r = t.total;
|
|
5516
5428
|
return n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
|
|
5517
5429
|
...n == null ? {} : { nextCursor: n },
|
|
5518
|
-
flows: t.flows.map(
|
|
5430
|
+
flows: t.flows.map(Al),
|
|
5519
5431
|
...r == null ? {} : { total: r },
|
|
5520
5432
|
version: 1
|
|
5521
5433
|
};
|
|
5522
5434
|
}
|
|
5523
|
-
function
|
|
5435
|
+
function Ml(e) {
|
|
5524
5436
|
let t = W(e);
|
|
5525
5437
|
if (K(t, [
|
|
5526
5438
|
"name",
|
|
@@ -5543,7 +5455,7 @@ function Rl(e) {
|
|
|
5543
5455
|
}
|
|
5544
5456
|
//#endregion
|
|
5545
5457
|
//#region src/control/common/publicationDecoders.ts
|
|
5546
|
-
function
|
|
5458
|
+
function Nl(e) {
|
|
5547
5459
|
let t = W(e), n = t.operation, r = t.sourcePublicationId;
|
|
5548
5460
|
return t.version != 1 || n != "publish" && n != "rollback" || r != null && typeof r != "string" ? U() : {
|
|
5549
5461
|
actorId: G(t.actorId),
|
|
@@ -5560,7 +5472,7 @@ function zl(e) {
|
|
|
5560
5472
|
version: 1
|
|
5561
5473
|
};
|
|
5562
5474
|
}
|
|
5563
|
-
function
|
|
5475
|
+
function Pl(e) {
|
|
5564
5476
|
let t = W(e), n = t.status, r = {
|
|
5565
5477
|
createdAt: G(t.createdAt),
|
|
5566
5478
|
flowId: G(t.flowId),
|
|
@@ -5626,35 +5538,35 @@ function Bl(e) {
|
|
|
5626
5538
|
default: return U();
|
|
5627
5539
|
}
|
|
5628
5540
|
}
|
|
5629
|
-
function
|
|
5541
|
+
function Fl(e) {
|
|
5630
5542
|
let t = W(e), n = t.status, r = t.publication;
|
|
5631
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() : {
|
|
5632
5544
|
flowId: G(t.flowId),
|
|
5633
5545
|
hasUnpublishedChanges: t.hasUnpublishedChanges,
|
|
5634
|
-
publication: r === null ? null :
|
|
5546
|
+
publication: r === null ? null : Nl(r),
|
|
5635
5547
|
revision: q(t.revision),
|
|
5636
5548
|
status: n,
|
|
5637
5549
|
version: 1
|
|
5638
5550
|
};
|
|
5639
5551
|
}
|
|
5640
|
-
function
|
|
5552
|
+
function Il(e) {
|
|
5641
5553
|
let t = W(e), n = t.nextCursor, r = t.total;
|
|
5642
5554
|
return t.version != 1 || !Array.isArray(t.publications) || n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
|
|
5643
5555
|
...n == null ? {} : { nextCursor: n },
|
|
5644
|
-
publications: t.publications.map(
|
|
5556
|
+
publications: t.publications.map(Nl),
|
|
5645
5557
|
...r == null ? {} : { total: r },
|
|
5646
5558
|
version: 1
|
|
5647
5559
|
};
|
|
5648
5560
|
}
|
|
5649
5561
|
new TextEncoder();
|
|
5650
|
-
var
|
|
5651
|
-
jsonSchema:
|
|
5562
|
+
var Ll = F(D(), ps()), Rl = M({
|
|
5563
|
+
jsonSchema: ps(),
|
|
5652
5564
|
nullable: A(),
|
|
5653
|
-
value:
|
|
5565
|
+
value: ps().optional(),
|
|
5654
5566
|
description: D().optional()
|
|
5655
|
-
}).strict(),
|
|
5567
|
+
}).strict(), zl = F(D(), Rl), Bl = P([M({
|
|
5656
5568
|
kind: L("value"),
|
|
5657
|
-
value:
|
|
5569
|
+
value: ps()
|
|
5658
5570
|
}).strict(), M({
|
|
5659
5571
|
kind: L("sources"),
|
|
5660
5572
|
sources: j(M({
|
|
@@ -5662,55 +5574,55 @@ var Ul = F(D(), _s()), Wl = M({
|
|
|
5662
5574
|
nodeId: D(),
|
|
5663
5575
|
output: D()
|
|
5664
5576
|
}).strict())
|
|
5665
|
-
}).strict()]),
|
|
5577
|
+
}).strict()]), Vl = {
|
|
5666
5578
|
name: D().optional(),
|
|
5667
5579
|
description: D().optional(),
|
|
5668
5580
|
icon: D().optional()
|
|
5669
|
-
},
|
|
5581
|
+
}, Hl = P([
|
|
5670
5582
|
M({
|
|
5671
|
-
...
|
|
5583
|
+
...Vl,
|
|
5672
5584
|
kind: L("cron"),
|
|
5673
|
-
cronTimes: j(
|
|
5585
|
+
cronTimes: j(ps())
|
|
5674
5586
|
}).strict(),
|
|
5675
5587
|
M({
|
|
5676
|
-
...
|
|
5588
|
+
...Vl,
|
|
5677
5589
|
kind: L("manual")
|
|
5678
5590
|
}).strict(),
|
|
5679
5591
|
M({
|
|
5680
|
-
...
|
|
5592
|
+
...Vl,
|
|
5681
5593
|
kind: L("task"),
|
|
5682
5594
|
concurrency: L(1).optional(),
|
|
5683
|
-
inputs: F(D(),
|
|
5595
|
+
inputs: F(D(), Bl),
|
|
5684
5596
|
task: M({
|
|
5685
5597
|
name: D(),
|
|
5686
5598
|
moduleId: D(),
|
|
5687
|
-
inputs:
|
|
5688
|
-
outputs: F(D(),
|
|
5599
|
+
inputs: zl,
|
|
5600
|
+
outputs: F(D(), Rl.omit({ value: !0 }))
|
|
5689
5601
|
}).strict()
|
|
5690
5602
|
}).strict()
|
|
5691
5603
|
]);
|
|
5692
5604
|
M({
|
|
5693
5605
|
name: D(),
|
|
5694
|
-
graph: M({ nodes: F(D(),
|
|
5606
|
+
graph: M({ nodes: F(D(), Hl) }).strict()
|
|
5695
5607
|
}).strict(), M({
|
|
5696
5608
|
kind: L("open-flow-project-revision"),
|
|
5697
5609
|
version: L(1),
|
|
5698
|
-
modelVersion: L(1),
|
|
5610
|
+
modelVersion: P([L(1), L(2)]),
|
|
5699
5611
|
modules: F(D(), M({
|
|
5700
5612
|
name: D(),
|
|
5701
5613
|
source: D(),
|
|
5702
5614
|
imports: j(D())
|
|
5703
5615
|
}).strict()),
|
|
5704
5616
|
document: M({
|
|
5705
|
-
bindings:
|
|
5706
|
-
flows:
|
|
5707
|
-
subflows:
|
|
5708
|
-
tasks:
|
|
5617
|
+
bindings: Ll,
|
|
5618
|
+
flows: Ll,
|
|
5619
|
+
subflows: Ll,
|
|
5620
|
+
tasks: Ll
|
|
5709
5621
|
}).strict()
|
|
5710
5622
|
}).strict();
|
|
5711
5623
|
//#endregion
|
|
5712
5624
|
//#region src/control/common/revisionDecoders.ts
|
|
5713
|
-
function
|
|
5625
|
+
function Ul(e) {
|
|
5714
5626
|
let t = W(e), n = t.parentRevisionId;
|
|
5715
5627
|
return t.version != 1 || n !== null && typeof n != "string" ? U() : {
|
|
5716
5628
|
actorId: G(t.actorId),
|
|
@@ -5723,18 +5635,18 @@ function Yl(e) {
|
|
|
5723
5635
|
version: 1
|
|
5724
5636
|
};
|
|
5725
5637
|
}
|
|
5726
|
-
function
|
|
5638
|
+
function Wl(e) {
|
|
5727
5639
|
let t = W(e);
|
|
5728
5640
|
try {
|
|
5729
5641
|
return {
|
|
5730
|
-
...
|
|
5731
|
-
content:
|
|
5642
|
+
...Ul(t),
|
|
5643
|
+
content: Nc(t.content)
|
|
5732
5644
|
};
|
|
5733
5645
|
} catch {
|
|
5734
5646
|
return U();
|
|
5735
5647
|
}
|
|
5736
5648
|
}
|
|
5737
|
-
function
|
|
5649
|
+
function Gl(e) {
|
|
5738
5650
|
let t = W(e);
|
|
5739
5651
|
return t.version != 1 || q(t.revision) < 1 ? U() : {
|
|
5740
5652
|
revision: q(t.revision),
|
|
@@ -5743,28 +5655,28 @@ function Zl(e) {
|
|
|
5743
5655
|
version: 1
|
|
5744
5656
|
};
|
|
5745
5657
|
}
|
|
5746
|
-
function
|
|
5658
|
+
function Kl(e) {
|
|
5747
5659
|
let t = W(e);
|
|
5748
5660
|
return t.version == 1 ? {
|
|
5749
|
-
revision:
|
|
5661
|
+
revision: Ul(t.revision),
|
|
5750
5662
|
version: 1
|
|
5751
5663
|
} : U();
|
|
5752
5664
|
}
|
|
5753
|
-
function
|
|
5665
|
+
function ql(e) {
|
|
5754
5666
|
let t = W(e);
|
|
5755
5667
|
return t.version != 1 || t.kind != "snapshot" ? U() : {
|
|
5756
|
-
draft:
|
|
5668
|
+
draft: Wl(t.draft),
|
|
5757
5669
|
kind: "snapshot",
|
|
5758
5670
|
version: 1
|
|
5759
5671
|
};
|
|
5760
5672
|
}
|
|
5761
5673
|
//#endregion
|
|
5762
5674
|
//#region src/control/common/runDecoders.ts
|
|
5763
|
-
var
|
|
5764
|
-
function
|
|
5765
|
-
return typeof e == "string" &&
|
|
5675
|
+
var Jl = new Set(ec);
|
|
5676
|
+
function Yl(e) {
|
|
5677
|
+
return typeof e == "string" && Jl.has(e) ? e : U();
|
|
5766
5678
|
}
|
|
5767
|
-
function
|
|
5679
|
+
function Xl(e) {
|
|
5768
5680
|
let t = W(e), n = t.source, r = t.startedAt, i = t.finishedAt;
|
|
5769
5681
|
return t.version != 1 || n != "draft" && n != "live" && n != "trigger" || r != null && typeof r != "string" || i != null && typeof i != "string" ? U() : {
|
|
5770
5682
|
createdAt: G(t.createdAt),
|
|
@@ -5774,11 +5686,11 @@ function nu(e) {
|
|
|
5774
5686
|
runId: G(t.runId),
|
|
5775
5687
|
source: n,
|
|
5776
5688
|
...r == null ? {} : { startedAt: r },
|
|
5777
|
-
status:
|
|
5689
|
+
status: Yl(t.status),
|
|
5778
5690
|
version: 1
|
|
5779
5691
|
};
|
|
5780
5692
|
}
|
|
5781
|
-
function
|
|
5693
|
+
function Zl(e) {
|
|
5782
5694
|
let t = W(e);
|
|
5783
5695
|
K(t, [
|
|
5784
5696
|
"actions",
|
|
@@ -5798,10 +5710,10 @@ function ru(e) {
|
|
|
5798
5710
|
waitingSince: G(t.waitingSince)
|
|
5799
5711
|
};
|
|
5800
5712
|
}
|
|
5801
|
-
function
|
|
5802
|
-
let t = W(e), n =
|
|
5713
|
+
function Ql(e) {
|
|
5714
|
+
let t = W(e), n = Xl(t), r = t.eventsExpiresAt;
|
|
5803
5715
|
if (r != null && typeof r != "string" || t.waiting !== void 0 || !Array.isArray(t.waits)) return U();
|
|
5804
|
-
let i = t.waits.map(
|
|
5716
|
+
let i = t.waits.map(Zl);
|
|
5805
5717
|
if (new Set(i.map((e) => e.waitId)).size != i.length || n.status == "waiting" && i.length == 0 || [
|
|
5806
5718
|
"completed",
|
|
5807
5719
|
"failed",
|
|
@@ -5840,17 +5752,17 @@ function iu(e) {
|
|
|
5840
5752
|
};
|
|
5841
5753
|
}
|
|
5842
5754
|
}
|
|
5843
|
-
function
|
|
5755
|
+
function $l(e) {
|
|
5844
5756
|
let t = W(e), n = t.nextCursor;
|
|
5845
5757
|
return t.version != 1 || !Array.isArray(t.runs) || n != null && typeof n != "string" ? U() : {
|
|
5846
5758
|
flowId: G(t.flowId),
|
|
5847
5759
|
...n == null ? {} : { nextCursor: n },
|
|
5848
|
-
runs: t.runs.map(
|
|
5760
|
+
runs: t.runs.map(Xl),
|
|
5849
5761
|
version: 1
|
|
5850
5762
|
};
|
|
5851
5763
|
}
|
|
5852
|
-
function
|
|
5853
|
-
let t = W(e), n =
|
|
5764
|
+
function eu(e) {
|
|
5765
|
+
let t = W(e), n = Yl(t.status);
|
|
5854
5766
|
return t.version != 1 || typeof t.cancelAccepted != "boolean" || n == "queued" || n == "starting" || n == "running" || n == "waiting" ? U() : {
|
|
5855
5767
|
cancelAccepted: t.cancelAccepted,
|
|
5856
5768
|
runId: G(t.runId),
|
|
@@ -5858,7 +5770,7 @@ function ou(e) {
|
|
|
5858
5770
|
version: 1
|
|
5859
5771
|
};
|
|
5860
5772
|
}
|
|
5861
|
-
function
|
|
5773
|
+
function tu(e) {
|
|
5862
5774
|
let t = W(e);
|
|
5863
5775
|
K(t, [
|
|
5864
5776
|
"action",
|
|
@@ -5875,12 +5787,12 @@ function su(e) {
|
|
|
5875
5787
|
resolutionAccepted: t.resolutionAccepted,
|
|
5876
5788
|
resolvedAt: r,
|
|
5877
5789
|
runId: G(t.runId),
|
|
5878
|
-
status:
|
|
5790
|
+
status: Yl(t.status),
|
|
5879
5791
|
version: 1,
|
|
5880
5792
|
waitId: G(t.waitId)
|
|
5881
5793
|
};
|
|
5882
5794
|
}
|
|
5883
|
-
function
|
|
5795
|
+
function nu(e) {
|
|
5884
5796
|
let t = W(e), n = t.status;
|
|
5885
5797
|
if (t.version != 1) return U();
|
|
5886
5798
|
let r = {
|
|
@@ -5923,7 +5835,7 @@ function cu(e) {
|
|
|
5923
5835
|
}
|
|
5924
5836
|
//#endregion
|
|
5925
5837
|
//#region src/control/common/random.ts
|
|
5926
|
-
function
|
|
5838
|
+
function ru() {
|
|
5927
5839
|
let e = globalThis.crypto;
|
|
5928
5840
|
if (e != null) {
|
|
5929
5841
|
try {
|
|
@@ -5940,7 +5852,7 @@ function lu() {
|
|
|
5940
5852
|
}
|
|
5941
5853
|
//#endregion
|
|
5942
5854
|
//#region src/control/common/api.ts
|
|
5943
|
-
function
|
|
5855
|
+
function iu(e) {
|
|
5944
5856
|
let t = W(e), n = q(t.sequence);
|
|
5945
5857
|
if (n < 0) return U();
|
|
5946
5858
|
let r = {
|
|
@@ -5968,7 +5880,7 @@ function uu(e) {
|
|
|
5968
5880
|
payload: {
|
|
5969
5881
|
flowId: G(i.flowId),
|
|
5970
5882
|
scopeId: G(i.scopeId),
|
|
5971
|
-
progress:
|
|
5883
|
+
progress: au(i.progress)
|
|
5972
5884
|
}
|
|
5973
5885
|
};
|
|
5974
5886
|
case "run.waiting": return Array.isArray(i.waitIds) ? {
|
|
@@ -6026,7 +5938,7 @@ function uu(e) {
|
|
|
6026
5938
|
switch (a) {
|
|
6027
5939
|
case "node.started": {
|
|
6028
5940
|
let t = i.nodeKind;
|
|
6029
|
-
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() : {
|
|
6030
5942
|
...r,
|
|
6031
5943
|
kind: a,
|
|
6032
5944
|
payload: {
|
|
@@ -6076,7 +5988,7 @@ function uu(e) {
|
|
|
6076
5988
|
kind: a,
|
|
6077
5989
|
payload: {
|
|
6078
5990
|
...e,
|
|
6079
|
-
progress:
|
|
5991
|
+
progress: au(i.progress)
|
|
6080
5992
|
}
|
|
6081
5993
|
};
|
|
6082
5994
|
case "node.artifact": {
|
|
@@ -6102,14 +6014,14 @@ function uu(e) {
|
|
|
6102
6014
|
default: return U();
|
|
6103
6015
|
}
|
|
6104
6016
|
}
|
|
6105
|
-
function
|
|
6017
|
+
function au(e) {
|
|
6106
6018
|
return typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 100 ? e : U();
|
|
6107
6019
|
}
|
|
6108
|
-
function
|
|
6020
|
+
function ou(e) {
|
|
6109
6021
|
let t = W(e), n = t.eventsExpiresAt, r = q(t.nextAfter);
|
|
6110
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() : {
|
|
6111
6023
|
done: t.done,
|
|
6112
|
-
events: t.events.map(
|
|
6024
|
+
events: t.events.map(iu),
|
|
6113
6025
|
...n == null ? {} : { eventsExpiresAt: n },
|
|
6114
6026
|
historyComplete: t.historyComplete,
|
|
6115
6027
|
nextAfter: r,
|
|
@@ -6118,10 +6030,10 @@ function fu(e) {
|
|
|
6118
6030
|
};
|
|
6119
6031
|
}
|
|
6120
6032
|
var Y = encodeURIComponent;
|
|
6121
|
-
function
|
|
6122
|
-
return `${e}-${
|
|
6033
|
+
function su(e) {
|
|
6034
|
+
return `${e}-${ru()}`;
|
|
6123
6035
|
}
|
|
6124
|
-
var
|
|
6036
|
+
var cu = class {
|
|
6125
6037
|
constructor(e) {
|
|
6126
6038
|
this.requestControl = e;
|
|
6127
6039
|
}
|
|
@@ -6129,23 +6041,23 @@ var mu = class {
|
|
|
6129
6041
|
let t = new URLSearchParams();
|
|
6130
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));
|
|
6131
6043
|
let n = t.size == 0 ? "" : `?${t}`;
|
|
6132
|
-
return
|
|
6044
|
+
return jl(await this.request(`/v1/flows${n}`));
|
|
6133
6045
|
}
|
|
6134
6046
|
async listEventSources(e, t) {
|
|
6135
|
-
return
|
|
6047
|
+
return Wc(await this.request("/v1/event-sources" + (e == null ? "" : `?flowId=${Y(e)}`), { signal: t }));
|
|
6136
6048
|
}
|
|
6137
6049
|
async listEventSourceConnections(e, t) {
|
|
6138
6050
|
let n = W(await this.request(`/v1/event-sources/connections${e == null ? "" : `?teamId=${Y(e)}`}`, { signal: t }));
|
|
6139
|
-
return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(
|
|
6051
|
+
return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
|
|
6140
6052
|
}
|
|
6141
6053
|
async createEventSource(e) {
|
|
6142
|
-
return
|
|
6054
|
+
return Uc(await this.request("/v1/event-sources", {
|
|
6143
6055
|
method: "POST",
|
|
6144
6056
|
body: JSON.stringify(e)
|
|
6145
6057
|
}));
|
|
6146
6058
|
}
|
|
6147
6059
|
async updateEventSource(e, t) {
|
|
6148
|
-
return
|
|
6060
|
+
return Uc(await this.request(`/v1/event-sources/${Y(e)}`, {
|
|
6149
6061
|
method: "PUT",
|
|
6150
6062
|
body: JSON.stringify(t)
|
|
6151
6063
|
}));
|
|
@@ -6162,15 +6074,15 @@ var mu = class {
|
|
|
6162
6074
|
async listVariables() {
|
|
6163
6075
|
let e = W(await this.request("/v1/variables"));
|
|
6164
6076
|
return K(e, ["variables", "version"]), e.version != 1 || !Array.isArray(e.variables) ? U() : {
|
|
6165
|
-
variables: e.variables.map(
|
|
6077
|
+
variables: e.variables.map(Ml),
|
|
6166
6078
|
version: 1
|
|
6167
6079
|
};
|
|
6168
6080
|
}
|
|
6169
6081
|
async getVariable(e) {
|
|
6170
|
-
return
|
|
6082
|
+
return Ml(await this.request(`/v1/variables/${Y(e)}`));
|
|
6171
6083
|
}
|
|
6172
6084
|
async putVariable(e, t) {
|
|
6173
|
-
return
|
|
6085
|
+
return Ml(await this.request(`/v1/variables/${Y(e)}`, {
|
|
6174
6086
|
body: JSON.stringify({ value: t }),
|
|
6175
6087
|
method: "PUT"
|
|
6176
6088
|
}));
|
|
@@ -6179,8 +6091,8 @@ var mu = class {
|
|
|
6179
6091
|
let t = W(await this.request(`/v1/variables/${Y(e)}`, { method: "DELETE" }));
|
|
6180
6092
|
if (K(t, ["version"]), t.version != 1) return U();
|
|
6181
6093
|
}
|
|
6182
|
-
async createFlow(e, t = `flow-${
|
|
6183
|
-
return
|
|
6094
|
+
async createFlow(e, t = `flow-${ru()}`) {
|
|
6095
|
+
return Al(await this.request("/v1/flows", {
|
|
6184
6096
|
body: JSON.stringify({
|
|
6185
6097
|
name: e,
|
|
6186
6098
|
version: 1
|
|
@@ -6190,10 +6102,10 @@ var mu = class {
|
|
|
6190
6102
|
}));
|
|
6191
6103
|
}
|
|
6192
6104
|
async getFlow(e) {
|
|
6193
|
-
return
|
|
6105
|
+
return Al(await this.request(`/v1/flows/${Y(e)}`));
|
|
6194
6106
|
}
|
|
6195
6107
|
async renameFlow(e, t) {
|
|
6196
|
-
return
|
|
6108
|
+
return Al(await this.request(`/v1/flows/${Y(e)}`, {
|
|
6197
6109
|
body: JSON.stringify({
|
|
6198
6110
|
name: t,
|
|
6199
6111
|
version: 1
|
|
@@ -6202,15 +6114,15 @@ var mu = class {
|
|
|
6202
6114
|
}));
|
|
6203
6115
|
}
|
|
6204
6116
|
async deleteFlow(e) {
|
|
6205
|
-
return
|
|
6117
|
+
return Al(await this.request(`/v1/flows/${Y(e)}`, { method: "DELETE" }));
|
|
6206
6118
|
}
|
|
6207
6119
|
async listTriggerKeys(e, t) {
|
|
6208
6120
|
let n = W(await this.request(`/v1/trigger-keys${t == null ? "" : `?locale=${encodeURIComponent(t)}`}`, { signal: e }));
|
|
6209
|
-
return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(
|
|
6121
|
+
return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(Yc);
|
|
6210
6122
|
}
|
|
6211
6123
|
async listTriggerDefinitions(e) {
|
|
6212
6124
|
let t = W(await this.request("/v1/trigger-keys/catalog", { signal: e }));
|
|
6213
|
-
return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(
|
|
6125
|
+
return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(Xc);
|
|
6214
6126
|
}
|
|
6215
6127
|
async readCatalog(e, t, n) {
|
|
6216
6128
|
let r = new Headers();
|
|
@@ -6239,41 +6151,41 @@ var mu = class {
|
|
|
6239
6151
|
...t,
|
|
6240
6152
|
etag: i.headers.get("etag")?.trim() || t.etag
|
|
6241
6153
|
} : {
|
|
6242
|
-
data:
|
|
6154
|
+
data: al(await i.json()),
|
|
6243
6155
|
etag: i.headers.get("etag")?.trim() || null
|
|
6244
6156
|
};
|
|
6245
6157
|
}
|
|
6246
6158
|
async getTriggerKey(e, t) {
|
|
6247
6159
|
let n = W(await this.request(`/v1/trigger-keys/${Y(e)}`, { signal: t }));
|
|
6248
|
-
return n.version == 1 ?
|
|
6160
|
+
return n.version == 1 ? Xc(n.definition) : U();
|
|
6249
6161
|
}
|
|
6250
6162
|
async listFlowTriggerBindings(e, t) {
|
|
6251
6163
|
let n = W(await this.request(`/v1/flows/${Y(e)}/triggers`, { signal: t }));
|
|
6252
|
-
return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(
|
|
6164
|
+
return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(el);
|
|
6253
6165
|
}
|
|
6254
6166
|
async getFlowTriggerBinding(e, t) {
|
|
6255
|
-
return
|
|
6167
|
+
return tl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}`));
|
|
6256
6168
|
}
|
|
6257
6169
|
async listFlowTriggerActivities(e, t, n = {}) {
|
|
6258
6170
|
let r = new URLSearchParams();
|
|
6259
6171
|
n.cursor != null && r.set("cursor", n.cursor), n.limit != null && r.set("limit", String(n.limit));
|
|
6260
6172
|
let i = r.size == 0 ? "" : `?${r}`;
|
|
6261
|
-
return
|
|
6173
|
+
return rl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/activities${i}`));
|
|
6262
6174
|
}
|
|
6263
6175
|
async pauseFlowTrigger(e, t) {
|
|
6264
|
-
return
|
|
6176
|
+
return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/pause`, {
|
|
6265
6177
|
body: JSON.stringify({ version: 1 }),
|
|
6266
6178
|
method: "POST"
|
|
6267
6179
|
}));
|
|
6268
6180
|
}
|
|
6269
6181
|
async resumeFlowTrigger(e, t) {
|
|
6270
|
-
return
|
|
6182
|
+
return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/resume`, {
|
|
6271
6183
|
body: JSON.stringify({ version: 1 }),
|
|
6272
6184
|
method: "POST"
|
|
6273
6185
|
}));
|
|
6274
6186
|
}
|
|
6275
6187
|
async testFlowPollTrigger(e, t) {
|
|
6276
|
-
return
|
|
6188
|
+
return il(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/test`, {
|
|
6277
6189
|
body: JSON.stringify({ version: 1 }),
|
|
6278
6190
|
method: "POST"
|
|
6279
6191
|
}));
|
|
@@ -6282,25 +6194,25 @@ var mu = class {
|
|
|
6282
6194
|
let t = W(await this.request(`/v1/flows/${Y(e)}/editor`));
|
|
6283
6195
|
if (t.version != 1) return U();
|
|
6284
6196
|
let n = {
|
|
6285
|
-
flow:
|
|
6286
|
-
draft:
|
|
6287
|
-
live:
|
|
6288
|
-
presentation:
|
|
6197
|
+
flow: Al(t.flow),
|
|
6198
|
+
draft: Wl(t.draft),
|
|
6199
|
+
live: Fl(t.live),
|
|
6200
|
+
presentation: Gl(t.presentation),
|
|
6289
6201
|
version: 1
|
|
6290
6202
|
};
|
|
6291
6203
|
return n.flow.flowId != e || n.draft.flowId != e || n.live.flowId != e || n.flow.draftRevisionId != n.draft.revisionId ? U() : n;
|
|
6292
6204
|
}
|
|
6293
6205
|
async getPresentation(e) {
|
|
6294
|
-
return
|
|
6206
|
+
return Gl(await this.request(`/v1/flows/${Y(e)}/presentation`));
|
|
6295
6207
|
}
|
|
6296
6208
|
async getDraft(e) {
|
|
6297
|
-
return
|
|
6209
|
+
return Wl(await this.request(`/v1/flows/${Y(e)}/draft`));
|
|
6298
6210
|
}
|
|
6299
6211
|
async syncDraft(e) {
|
|
6300
|
-
return
|
|
6212
|
+
return ql(await this.request(`/v1/flows/${Y(e)}/draft/sync`));
|
|
6301
6213
|
}
|
|
6302
6214
|
async getRevision(e, t) {
|
|
6303
|
-
return
|
|
6215
|
+
return Wl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}`));
|
|
6304
6216
|
}
|
|
6305
6217
|
async listTriggerConfigOptions(e, t, n, r) {
|
|
6306
6218
|
let i = W(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/options/${Y(n)}`, { signal: r }));
|
|
@@ -6323,7 +6235,7 @@ var mu = class {
|
|
|
6323
6235
|
});
|
|
6324
6236
|
}
|
|
6325
6237
|
async listConnectorProviders(e, t, n) {
|
|
6326
|
-
let r =
|
|
6238
|
+
let r = El(t, n);
|
|
6327
6239
|
return this.connectorRequest(r.path, "providers", e, r.decode);
|
|
6328
6240
|
}
|
|
6329
6241
|
async listConnectorActions(e, t, n, r) {
|
|
@@ -6341,15 +6253,15 @@ var mu = class {
|
|
|
6341
6253
|
}, t);
|
|
6342
6254
|
}
|
|
6343
6255
|
async getConnectorAction(e, t, n, r, i = !1) {
|
|
6344
|
-
let a =
|
|
6256
|
+
let a = Dl(e, n, r);
|
|
6345
6257
|
return this.connectorRequest(a.path, "actions", t, a.decode, i);
|
|
6346
6258
|
}
|
|
6347
6259
|
async listAllConnectorConnections(e, t, n = !1) {
|
|
6348
|
-
let r =
|
|
6260
|
+
let r = Ol(t);
|
|
6349
6261
|
return this.connectorRequest(r.path, "connections", e, r.decode, n);
|
|
6350
6262
|
}
|
|
6351
6263
|
async listConnectorConnections(e, t, n, r = !1) {
|
|
6352
|
-
let i =
|
|
6264
|
+
let i = kl(e, n);
|
|
6353
6265
|
return this.connectorRequest(i.path, "connections", t, i.decode, r);
|
|
6354
6266
|
}
|
|
6355
6267
|
async createConnectorConnectionPage(e, t, n) {
|
|
@@ -6367,8 +6279,8 @@ var mu = class {
|
|
|
6367
6279
|
return U();
|
|
6368
6280
|
}
|
|
6369
6281
|
}
|
|
6370
|
-
async changeDraft(e, t, n, r =
|
|
6371
|
-
return
|
|
6282
|
+
async changeDraft(e, t, n, r = su("change")) {
|
|
6283
|
+
return Kl(await this.request(`/v1/flows/${Y(e)}/draft/changes`, {
|
|
6372
6284
|
body: JSON.stringify({
|
|
6373
6285
|
expectedRevisionId: t,
|
|
6374
6286
|
operations: n,
|
|
@@ -6378,52 +6290,62 @@ var mu = class {
|
|
|
6378
6290
|
method: "POST"
|
|
6379
6291
|
}));
|
|
6380
6292
|
}
|
|
6293
|
+
async repairDraft(e, t, n = su("repair")) {
|
|
6294
|
+
return Kl(await this.request(`/v1/flows/${Y(e)}/draft/repair`, {
|
|
6295
|
+
body: JSON.stringify({
|
|
6296
|
+
expectedRevisionId: t,
|
|
6297
|
+
version: 1
|
|
6298
|
+
}),
|
|
6299
|
+
headers: { "idempotency-key": n },
|
|
6300
|
+
method: "POST"
|
|
6301
|
+
}));
|
|
6302
|
+
}
|
|
6381
6303
|
async checkFlow(e, t) {
|
|
6382
|
-
return
|
|
6304
|
+
return _l(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/check`, {
|
|
6383
6305
|
body: JSON.stringify({
|
|
6384
|
-
engineContract: "open-flow-engine/
|
|
6306
|
+
engineContract: "open-flow-engine/v5",
|
|
6385
6307
|
version: 1
|
|
6386
6308
|
}),
|
|
6387
6309
|
method: "POST"
|
|
6388
6310
|
}));
|
|
6389
6311
|
}
|
|
6390
6312
|
async getLive(e, t) {
|
|
6391
|
-
return
|
|
6313
|
+
return Fl(await this.request(`/v1/flows/${Y(e)}/live`, { signal: t }));
|
|
6392
6314
|
}
|
|
6393
6315
|
async listPublications(e, t = {}, n) {
|
|
6394
6316
|
let r = new URLSearchParams();
|
|
6395
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));
|
|
6396
6318
|
let i = r.size == 0 ? "" : `?${r}`;
|
|
6397
|
-
return
|
|
6319
|
+
return Il(await this.request(`/v1/flows/${Y(e)}/publications${i}`, { signal: n }));
|
|
6398
6320
|
}
|
|
6399
6321
|
async createDraftRun(e, t, n) {
|
|
6400
|
-
let r =
|
|
6322
|
+
let r = Ql(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/runs`, {
|
|
6401
6323
|
body: JSON.stringify({
|
|
6402
|
-
engineContract: "open-flow-engine/
|
|
6324
|
+
engineContract: "open-flow-engine/v5",
|
|
6403
6325
|
inputs: n.inputs ?? {},
|
|
6404
6326
|
trigger: n.trigger,
|
|
6405
|
-
version:
|
|
6327
|
+
version: 2
|
|
6406
6328
|
}),
|
|
6407
|
-
headers: { "idempotency-key": n.idempotencyKey ??
|
|
6329
|
+
headers: { "idempotency-key": n.idempotencyKey ?? su("run") },
|
|
6408
6330
|
method: "POST"
|
|
6409
6331
|
}));
|
|
6410
6332
|
return r.source == "draft" ? r : U();
|
|
6411
6333
|
}
|
|
6412
6334
|
async createLiveRun(e, t) {
|
|
6413
|
-
let n =
|
|
6335
|
+
let n = Ql(await this.request("/v1/runs", {
|
|
6414
6336
|
body: JSON.stringify({
|
|
6415
6337
|
inputs: t.inputs ?? {},
|
|
6416
6338
|
trigger: t.trigger,
|
|
6417
6339
|
publicationId: e,
|
|
6418
|
-
version:
|
|
6340
|
+
version: 2
|
|
6419
6341
|
}),
|
|
6420
|
-
headers: { "idempotency-key": t.idempotencyKey ??
|
|
6342
|
+
headers: { "idempotency-key": t.idempotencyKey ?? su("run") },
|
|
6421
6343
|
method: "POST"
|
|
6422
6344
|
}));
|
|
6423
6345
|
return n.source == "live" ? n : U();
|
|
6424
6346
|
}
|
|
6425
6347
|
async setFlowEnabled(e, t, n) {
|
|
6426
|
-
return
|
|
6348
|
+
return Al(await this.request(`/v1/flows/${Y(e)}/enabled`, {
|
|
6427
6349
|
method: "PUT",
|
|
6428
6350
|
body: JSON.stringify({
|
|
6429
6351
|
enabled: n,
|
|
@@ -6433,65 +6355,65 @@ var mu = class {
|
|
|
6433
6355
|
}));
|
|
6434
6356
|
}
|
|
6435
6357
|
async publishFlow(e, t, n, r = {}) {
|
|
6436
|
-
return
|
|
6358
|
+
return Pl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/publications`, {
|
|
6437
6359
|
body: JSON.stringify({
|
|
6438
|
-
engineContract: "open-flow-engine/
|
|
6360
|
+
engineContract: "open-flow-engine/v5",
|
|
6439
6361
|
expectedLivePublicationId: n,
|
|
6440
6362
|
version: 1
|
|
6441
6363
|
}),
|
|
6442
|
-
headers: { "idempotency-key": r.idempotencyKey ??
|
|
6364
|
+
headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
|
|
6443
6365
|
method: "POST"
|
|
6444
6366
|
}));
|
|
6445
6367
|
}
|
|
6446
6368
|
async getPublishOperation(e, t, n) {
|
|
6447
|
-
return
|
|
6369
|
+
return Pl(await this.request(`/v1/flows/${Y(e)}/publish-operations/${Y(t)}`, { signal: n }));
|
|
6448
6370
|
}
|
|
6449
6371
|
async rollbackFlow(e, t, n, r = {}) {
|
|
6450
|
-
return
|
|
6372
|
+
return Nl(await this.request(`/v1/flows/${Y(e)}/publications/${Y(t)}/rollback`, {
|
|
6451
6373
|
body: JSON.stringify({
|
|
6452
6374
|
expectedLivePublicationId: n,
|
|
6453
6375
|
version: 1
|
|
6454
6376
|
}),
|
|
6455
|
-
headers: { "idempotency-key": r.idempotencyKey ??
|
|
6377
|
+
headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
|
|
6456
6378
|
method: "POST"
|
|
6457
6379
|
}));
|
|
6458
6380
|
}
|
|
6459
6381
|
async getRun(e, t) {
|
|
6460
|
-
return
|
|
6382
|
+
return Ql(await this.request(`/v1/runs/${Y(e)}`, { signal: t }));
|
|
6461
6383
|
}
|
|
6462
6384
|
async listRuns(e, t = {}) {
|
|
6463
6385
|
let n = new URLSearchParams();
|
|
6464
|
-
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);
|
|
6465
6387
|
let r = n.size == 0 ? "" : `?${n}`;
|
|
6466
|
-
return
|
|
6388
|
+
return $l(await this.request(`/v1/flows/${Y(e)}/runs${r}`));
|
|
6467
6389
|
}
|
|
6468
6390
|
async getRunEvents(e, t = {}, n) {
|
|
6469
6391
|
let r = new URLSearchParams();
|
|
6470
6392
|
t.after != null && r.set("after", String(t.after)), t.limit != null && r.set("limit", String(t.limit));
|
|
6471
6393
|
let i = r.size == 0 ? "" : `?${r}`;
|
|
6472
|
-
return
|
|
6394
|
+
return ou(await this.request(`/v1/runs/${Y(e)}/events${i}`, { signal: n }));
|
|
6473
6395
|
}
|
|
6474
6396
|
async listRunResults(e, t, n) {
|
|
6475
|
-
return
|
|
6397
|
+
return fl(await this.request(`/v1/runs/${Y(e)}/results${t == null ? "" : `?after=${encodeURIComponent(t)}`}`, { signal: n }));
|
|
6476
6398
|
}
|
|
6477
6399
|
async readRunResult(e, t, n = {}, r) {
|
|
6478
6400
|
let i = new URLSearchParams(Object.entries(n).map(([e, t]) => [e, String(t)]));
|
|
6479
|
-
return
|
|
6401
|
+
return pl(await this.request(`/v1/runs/${Y(e)}/results/${Y(t)}?${i}`, { signal: r }));
|
|
6480
6402
|
}
|
|
6481
6403
|
async downloadRunResult(e, t, n) {
|
|
6482
6404
|
return (await this.response(`/v1/runs/${Y(e)}/results/${Y(t)}/content`, { signal: n })).blob();
|
|
6483
6405
|
}
|
|
6484
6406
|
async getRunResult(e, t) {
|
|
6485
|
-
return
|
|
6407
|
+
return nu(await this.request(`/v1/runs/${Y(e)}/result`, { signal: t }));
|
|
6486
6408
|
}
|
|
6487
6409
|
async cancelRun(e) {
|
|
6488
|
-
return
|
|
6410
|
+
return eu(await this.request(`/v1/runs/${Y(e)}/cancel`, {
|
|
6489
6411
|
body: JSON.stringify({ version: 1 }),
|
|
6490
6412
|
method: "POST"
|
|
6491
6413
|
}));
|
|
6492
6414
|
}
|
|
6493
6415
|
async resolveRunWait(e, t, n) {
|
|
6494
|
-
return
|
|
6416
|
+
return tu(await this.request(`/v1/runs/${Y(e)}/waits/${Y(t)}/resolve`, {
|
|
6495
6417
|
body: JSON.stringify({
|
|
6496
6418
|
action: n,
|
|
6497
6419
|
version: 1
|
|
@@ -6503,7 +6425,7 @@ var mu = class {
|
|
|
6503
6425
|
let n = Object.entries(e).map(([e, t]) => `${Y(e)}=${Y(t)}`).join("&"), r = n == "" ? "" : `?${n}`;
|
|
6504
6426
|
return this.connectorRequest(`/v1/connector/actions${r}`, "actions", t, (e) => {
|
|
6505
6427
|
let t = W(e);
|
|
6506
|
-
return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(
|
|
6428
|
+
return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(Cl);
|
|
6507
6429
|
});
|
|
6508
6430
|
}
|
|
6509
6431
|
async connectorRequest(e, t, n, r, i = !1) {
|
|
@@ -6524,7 +6446,7 @@ var mu = class {
|
|
|
6524
6446
|
return U();
|
|
6525
6447
|
}
|
|
6526
6448
|
let t = W(e).error, n = t == null ? void 0 : W(t);
|
|
6527
|
-
throw new
|
|
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}.`);
|
|
6528
6450
|
}
|
|
6529
6451
|
return i;
|
|
6530
6452
|
}
|
|
@@ -6542,13 +6464,13 @@ var mu = class {
|
|
|
6542
6464
|
function X(e, t) {
|
|
6543
6465
|
if (!e) throw Error(t);
|
|
6544
6466
|
}
|
|
6545
|
-
async function
|
|
6467
|
+
async function lu(e, t, n) {
|
|
6546
6468
|
let r = await e.request(new Request(new URL("/v1/mcp", e.origin), {
|
|
6547
6469
|
method: "POST",
|
|
6548
6470
|
headers: {
|
|
6549
6471
|
"content-type": "application/json",
|
|
6550
6472
|
accept: "application/json, text/event-stream",
|
|
6551
|
-
"mcp-protocol-version":
|
|
6473
|
+
"mcp-protocol-version": du,
|
|
6552
6474
|
"mcp-method": t,
|
|
6553
6475
|
...t == "tools/call" ? { "mcp-name": String(n?.name) } : {}
|
|
6554
6476
|
},
|
|
@@ -6559,7 +6481,7 @@ async function hu(e, t, n) {
|
|
|
6559
6481
|
params: {
|
|
6560
6482
|
...n,
|
|
6561
6483
|
_meta: {
|
|
6562
|
-
"io.modelcontextprotocol/protocolVersion":
|
|
6484
|
+
"io.modelcontextprotocol/protocolVersion": du,
|
|
6563
6485
|
"io.modelcontextprotocol/clientCapabilities": {}
|
|
6564
6486
|
}
|
|
6565
6487
|
}
|
|
@@ -6569,24 +6491,24 @@ async function hu(e, t, n) {
|
|
|
6569
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);
|
|
6570
6492
|
return X(a != null && a.error == null, `MCP ${t} failed: ${JSON.stringify(a)}.`), a.result;
|
|
6571
6493
|
}
|
|
6572
|
-
var
|
|
6494
|
+
var uu = [
|
|
6573
6495
|
{
|
|
6574
6496
|
name: "publishes the public MCP catalog, input schemas and annotations",
|
|
6575
6497
|
async verify(e) {
|
|
6576
|
-
let t = await
|
|
6577
|
-
X(Array.isArray(t.tools), "MCP tools must be an array."), X(t.tools.length == Object.keys(
|
|
6578
|
-
for (let [e, n] of Object.entries(
|
|
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)) {
|
|
6579
6501
|
let r = t.tools.find((t) => t.name == e);
|
|
6580
|
-
X(r != null, `Missing MCP tool ${e}.`), X(r.description == n.description, `${e} description differs.`), X(
|
|
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.`);
|
|
6581
6503
|
let { $schema: i, ...a } = n.inputSchema["~standard"].jsonSchema.input(), { $schema: o, ...s } = r.inputSchema;
|
|
6582
|
-
X(
|
|
6504
|
+
X($s(s, a), `${e} input schema differs.`);
|
|
6583
6505
|
}
|
|
6584
6506
|
}
|
|
6585
6507
|
},
|
|
6586
6508
|
{
|
|
6587
6509
|
name: "shares Run pagination, status filters and cancellation between MCP and REST",
|
|
6588
6510
|
async verify(e) {
|
|
6589
|
-
let t = new
|
|
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, [{
|
|
6590
6512
|
kind: "graph.node.create",
|
|
6591
6513
|
target: { kind: "flow" },
|
|
6592
6514
|
nodeId: "start",
|
|
@@ -6600,11 +6522,11 @@ var gu = [
|
|
|
6600
6522
|
revisionId: r.revision.revisionId,
|
|
6601
6523
|
trigger: {
|
|
6602
6524
|
nodeId: "start",
|
|
6603
|
-
|
|
6525
|
+
outputs: {}
|
|
6604
6526
|
}
|
|
6605
6527
|
}, a = [];
|
|
6606
6528
|
for (let t = 0; t < 2; t++) {
|
|
6607
|
-
let t = (await
|
|
6529
|
+
let t = (await lu(e, "tools/call", {
|
|
6608
6530
|
name: "flow_run",
|
|
6609
6531
|
arguments: {
|
|
6610
6532
|
...i,
|
|
@@ -6613,7 +6535,7 @@ var gu = [
|
|
|
6613
6535
|
})).structuredContent;
|
|
6614
6536
|
X(typeof t.runId == "string", "MCP must return an accepted Run ID."), a.push(t.runId);
|
|
6615
6537
|
}
|
|
6616
|
-
let o = (await
|
|
6538
|
+
let o = (await lu(e, "tools/call", {
|
|
6617
6539
|
name: "run_list",
|
|
6618
6540
|
arguments: {
|
|
6619
6541
|
flowId: n.flowId,
|
|
@@ -6627,24 +6549,24 @@ var gu = [
|
|
|
6627
6549
|
});
|
|
6628
6550
|
X(s.runs.length == 1 && s.runs[0]?.runId != o.runs[0]?.runId, "REST must continue the MCP Run cursor without duplicates.");
|
|
6629
6551
|
let c = await t.listRuns(n.flowId, { limit: 1 });
|
|
6630
|
-
X(
|
|
6552
|
+
X($s((await lu(e, "tools/call", {
|
|
6631
6553
|
name: "run_list",
|
|
6632
6554
|
arguments: {
|
|
6633
6555
|
flowId: n.flowId,
|
|
6634
6556
|
cursor: c.nextCursor,
|
|
6635
6557
|
limit: 1
|
|
6636
6558
|
}
|
|
6637
|
-
})).structuredContent, s), "MCP must continue the REST Run cursor."), await
|
|
6559
|
+
})).structuredContent, s), "MCP must continue the REST Run cursor."), await lu(e, "tools/call", {
|
|
6638
6560
|
name: "run_cancel",
|
|
6639
6561
|
arguments: { runId: a[0] }
|
|
6640
|
-
}), X(
|
|
6562
|
+
}), X($s((await lu(e, "tools/call", {
|
|
6641
6563
|
name: "run_list",
|
|
6642
6564
|
arguments: {
|
|
6643
6565
|
flowId: n.flowId,
|
|
6644
6566
|
status: "canceled"
|
|
6645
6567
|
}
|
|
6646
6568
|
})).structuredContent, await t.listRuns(n.flowId, { status: "canceled" })), "MCP and REST status filters differ.");
|
|
6647
|
-
let l = await
|
|
6569
|
+
let l = await lu(e, "tools/call", {
|
|
6648
6570
|
name: "run_list",
|
|
6649
6571
|
arguments: {
|
|
6650
6572
|
flowId: (await t.createFlow("Other Run scope")).flowId,
|
|
@@ -6660,16 +6582,16 @@ var gu = [
|
|
|
6660
6582
|
let t = {
|
|
6661
6583
|
name: "MCP conformance",
|
|
6662
6584
|
idempotencyKey: crypto.randomUUID()
|
|
6663
|
-
}, n = () =>
|
|
6585
|
+
}, n = () => lu(e, "tools/call", {
|
|
6664
6586
|
name: "flow_create",
|
|
6665
6587
|
arguments: t
|
|
6666
6588
|
}), r = await n();
|
|
6667
6589
|
X(r.isError != 1, "MCP Flow creation failed.");
|
|
6668
6590
|
let i = r.structuredContent;
|
|
6669
|
-
X(typeof i.flowId == "string", "MCP did not return a Flow ID."), X(
|
|
6591
|
+
X(typeof i.flowId == "string", "MCP did not return a Flow ID."), X($s((await n()).structuredContent, i), "MCP mutation replay changed identity.");
|
|
6670
6592
|
let a = await e.request(new Request(new URL(`/v1/flows/${encodeURIComponent(i.flowId)}/draft`, e.origin)));
|
|
6671
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.");
|
|
6672
|
-
let o = await
|
|
6594
|
+
let o = await lu(e, "tools/call", {
|
|
6673
6595
|
name: "flow_create",
|
|
6674
6596
|
arguments: {
|
|
6675
6597
|
...t,
|
|
@@ -6679,7 +6601,7 @@ var gu = [
|
|
|
6679
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.");
|
|
6680
6602
|
}
|
|
6681
6603
|
}
|
|
6682
|
-
],
|
|
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.";
|
|
6683
6605
|
function $(e, t, n) {
|
|
6684
6606
|
return {
|
|
6685
6607
|
description: e,
|
|
@@ -6693,8 +6615,8 @@ function $(e, t, n) {
|
|
|
6693
6615
|
version: 1,
|
|
6694
6616
|
vendor: "open-flow",
|
|
6695
6617
|
jsonSchema: {
|
|
6696
|
-
input: () =>
|
|
6697
|
-
output: () =>
|
|
6618
|
+
input: () => vo(t, { io: "input" }),
|
|
6619
|
+
output: () => vo(t)
|
|
6698
6620
|
},
|
|
6699
6621
|
validate(e) {
|
|
6700
6622
|
let n = t.safeParse(e);
|
|
@@ -6706,23 +6628,26 @@ function $(e, t, n) {
|
|
|
6706
6628
|
} }
|
|
6707
6629
|
};
|
|
6708
6630
|
}
|
|
6709
|
-
var
|
|
6631
|
+
var _u = {
|
|
6710
6632
|
flow_list: $("List Flows in this deployment. Continue with nextCursor; cursors are compatible with the Control API.", N({
|
|
6711
6633
|
cursor: Z.optional(),
|
|
6712
|
-
limit:
|
|
6634
|
+
limit: mu
|
|
6713
6635
|
}), !0),
|
|
6714
|
-
flow_get: $("Read Flow metadata, the full Draft and current Live publication. Use draft.revisionId as the base of an edit.", N({ flowId: Q }), !0),
|
|
6715
|
-
flow_schema: $("Get
|
|
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),
|
|
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({
|
|
6638
|
+
kind: Z.optional(),
|
|
6639
|
+
example: Z.optional()
|
|
6640
|
+
}).refine((e) => e.kind == null || e.example == null, "Choose kind or example, not both."), !0),
|
|
6716
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({
|
|
6717
|
-
name: Z.refine((e) => e == e.trim() &&
|
|
6718
|
-
idempotencyKey:
|
|
6642
|
+
name: Z.refine((e) => e == e.trim() && Lc(e) == null, "Flow name is invalid."),
|
|
6643
|
+
idempotencyKey: pu,
|
|
6719
6644
|
teamId: Z.optional()
|
|
6720
6645
|
}), !1),
|
|
6721
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({
|
|
6722
6647
|
flowId: Q,
|
|
6723
6648
|
expectedRevisionId: Z,
|
|
6724
|
-
idempotencyKey:
|
|
6725
|
-
operations: j(
|
|
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.")
|
|
6726
6651
|
}), !1),
|
|
6727
6652
|
flow_check: $("Validate a fixed Revision and return diagnostics. Get its revisionId from flow_get or flow_apply.", N({
|
|
6728
6653
|
flowId: Q,
|
|
@@ -6732,7 +6657,7 @@ var Cu = {
|
|
|
6732
6657
|
flowId: Q,
|
|
6733
6658
|
revisionId: Z,
|
|
6734
6659
|
expectedLivePublicationId: Z.nullable(),
|
|
6735
|
-
idempotencyKey:
|
|
6660
|
+
idempotencyKey: pu
|
|
6736
6661
|
}), !1),
|
|
6737
6662
|
flow_publish_status: $("Read a publish operation. Only succeeded confirms publication; failed includes the failure details. Keep polling while pending.", N({
|
|
6738
6663
|
flowId: Q,
|
|
@@ -6750,35 +6675,35 @@ var Cu = {
|
|
|
6750
6675
|
publicationId: Z.optional(),
|
|
6751
6676
|
trigger: N({
|
|
6752
6677
|
nodeId: Z,
|
|
6753
|
-
|
|
6678
|
+
outputs: F(D(), fu)
|
|
6754
6679
|
}),
|
|
6755
|
-
inputs: F(D(), F(D(),
|
|
6756
|
-
idempotencyKey:
|
|
6680
|
+
inputs: F(D(), F(D(), fu)).default({}),
|
|
6681
|
+
idempotencyKey: pu
|
|
6757
6682
|
}), !1),
|
|
6758
6683
|
run_list: $("List Runs for a Flow, optionally filtered by status. Continue with nextCursor; cursors are compatible with the Control API.", N({
|
|
6759
6684
|
flowId: Q,
|
|
6760
6685
|
pendingWait: A().optional(),
|
|
6761
|
-
status: I(
|
|
6686
|
+
status: I(ec).optional(),
|
|
6762
6687
|
cursor: Z.optional(),
|
|
6763
|
-
limit:
|
|
6688
|
+
limit: mu
|
|
6764
6689
|
}), !0),
|
|
6765
|
-
run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId:
|
|
6690
|
+
run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId: hu }), !0),
|
|
6766
6691
|
run_events: $("Read one page of Run events. Continue with nextAfter. Events can expire independently of the terminal result.", N({
|
|
6767
|
-
runId:
|
|
6768
|
-
after:
|
|
6769
|
-
limit:
|
|
6692
|
+
runId: hu,
|
|
6693
|
+
after: cs().min(0).default(0),
|
|
6694
|
+
limit: mu
|
|
6770
6695
|
}), !0),
|
|
6771
|
-
run_result: $("Read the terminal result. A queued, running or waiting Run returns run.not-terminal; inspect run_get first.", N({ runId:
|
|
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),
|
|
6772
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({
|
|
6773
|
-
runId:
|
|
6698
|
+
runId: hu,
|
|
6774
6699
|
after: Z.optional()
|
|
6775
6700
|
}), !0),
|
|
6776
|
-
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.",
|
|
6777
|
-
runId:
|
|
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,
|
|
6778
6703
|
resultId: Z
|
|
6779
6704
|
}), !0),
|
|
6780
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({
|
|
6781
|
-
runId:
|
|
6706
|
+
runId: hu,
|
|
6782
6707
|
waitId: Z,
|
|
6783
6708
|
action: I([
|
|
6784
6709
|
"approve",
|
|
@@ -6786,7 +6711,7 @@ var Cu = {
|
|
|
6786
6711
|
"reject"
|
|
6787
6712
|
])
|
|
6788
6713
|
}), !1),
|
|
6789
|
-
run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId:
|
|
6714
|
+
run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId: hu }), !1),
|
|
6790
6715
|
connector_teams: $("List OOMOL Teams available for Flow creation. An unconfigured or custom Connector may not provide Teams.", N({}), !0),
|
|
6791
6716
|
connector_list: $("List Connector providers available in the Flow scope.", N({ flowId: Q.optional() }), !0),
|
|
6792
6717
|
connector_search: $("Search Connector actions in the Flow scope.", N({
|
|
@@ -6805,4 +6730,4 @@ var Cu = {
|
|
|
6805
6730
|
trigger_get: $("Read a provider Trigger definition before creating its node.", N({ key: Z }), !0)
|
|
6806
6731
|
};
|
|
6807
6732
|
//#endregion
|
|
6808
|
-
export {
|
|
6733
|
+
export { uu as mcpConformanceCases, gu as mcpInstructions, du as mcpProtocolVersion, _u as mcpTools };
|