@pagelines/sdk 1.0.684 → 1.0.686
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/README.md +2 -2
- package/dist/contract.js +704 -703
- package/dist/contract.js.map +1 -1
- package/dist/sdk.css +1 -1
- package/dist/sdkClient.js +41 -40
- package/dist/sdkClient.js.map +1 -1
- package/dist/widget.js +143 -143
- package/dist/widget.js.map +1 -1
- package/package.json +2 -2
package/dist/contract.js
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { n as e, t } from "./rolldown-runtime.js";
|
|
2
2
|
import { computed as n, ref as r } from "vue";
|
|
3
|
-
//#region ../core/dist/
|
|
4
|
-
var i =
|
|
3
|
+
//#region ../core/dist/master.js
|
|
4
|
+
var i = {
|
|
5
|
+
appName: "pagelines-app",
|
|
6
|
+
port: 3222,
|
|
7
|
+
primaryRegion: "lax",
|
|
8
|
+
urls: {
|
|
9
|
+
app: "https://www.pagelines.com",
|
|
10
|
+
dev: "https://dev-api.pagelines.com",
|
|
11
|
+
appStore: "https://apps.apple.com/us/app/pagelines/id6764094785"
|
|
12
|
+
}
|
|
13
|
+
}, a = globalThis.process, o = typeof window < "u", s = a !== void 0 && !o, c = o ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : s && a !== void 0 && a.env?.NODE_ENV === "production", l = !c, u = {
|
|
5
14
|
error: {
|
|
6
15
|
priority: 50,
|
|
7
16
|
color: "#FF0000",
|
|
@@ -27,7 +36,7 @@ var i = globalThis.process, a = typeof window < "u", o = i !== void 0 && !a, s =
|
|
|
27
36
|
color: "#5233FF",
|
|
28
37
|
nodeColor: "\x1B[35m"
|
|
29
38
|
}
|
|
30
|
-
},
|
|
39
|
+
}, d = [
|
|
31
40
|
"password",
|
|
32
41
|
"token",
|
|
33
42
|
"secret",
|
|
@@ -37,11 +46,11 @@ var i = globalThis.process, a = typeof window < "u", o = i !== void 0 && !a, s =
|
|
|
37
46
|
];
|
|
38
47
|
function isSensitiveKey(e) {
|
|
39
48
|
let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
40
|
-
if (
|
|
49
|
+
if (d.includes(t)) return !0;
|
|
41
50
|
let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
42
|
-
return
|
|
51
|
+
return d.some((e) => n.includes(e));
|
|
43
52
|
}
|
|
44
|
-
var
|
|
53
|
+
var f = /* @__PURE__ */ new Set([
|
|
45
54
|
"CONNECT_TIMEOUT",
|
|
46
55
|
"ECONNREFUSED",
|
|
47
56
|
"ECONNRESET",
|
|
@@ -53,34 +62,34 @@ var d = /* @__PURE__ */ new Set([
|
|
|
53
62
|
function infraErrorCode(e, t = 0) {
|
|
54
63
|
if (t > 4 || !(e instanceof Error)) return;
|
|
55
64
|
let n = e.code;
|
|
56
|
-
return typeof n == "string" &&
|
|
65
|
+
return typeof n == "string" && f.has(n) ? n : infraErrorCode(e.cause, t + 1);
|
|
57
66
|
}
|
|
58
67
|
function firstAppFrame(e) {
|
|
59
68
|
if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
|
|
60
69
|
}
|
|
61
|
-
var
|
|
70
|
+
var p = class Logger {
|
|
62
71
|
constructor(e = {}, t) {
|
|
63
72
|
this.enabledInBrowser = !1, this.context = t, this.settings = {
|
|
64
73
|
enabled: e.enabled ?? !0,
|
|
65
74
|
minLevel: e.minLevel ?? this.getDefaultLevel(),
|
|
66
75
|
timestamps: e.timestamps ?? !0
|
|
67
|
-
},
|
|
76
|
+
}, o && this.initBrowserLogging();
|
|
68
77
|
}
|
|
69
78
|
getDefaultLevel() {
|
|
70
|
-
if (
|
|
71
|
-
if (
|
|
79
|
+
if (s && a !== void 0 && a.env?.LOG_LEVEL) return a.env.LOG_LEVEL;
|
|
80
|
+
if (o && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
|
|
72
81
|
let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
|
|
73
82
|
if (e) return e;
|
|
74
83
|
}
|
|
75
84
|
return "info";
|
|
76
85
|
}
|
|
77
86
|
initBrowserLogging() {
|
|
78
|
-
if (!
|
|
87
|
+
if (!o) return;
|
|
79
88
|
let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
|
|
80
|
-
this.enabledInBrowser =
|
|
89
|
+
this.enabledInBrowser = l || e || t === "localhost" || t.includes("127.0.0.1"), c && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
|
|
81
90
|
}
|
|
82
91
|
shouldLog(e) {
|
|
83
|
-
return !this.settings.enabled ||
|
|
92
|
+
return !this.settings.enabled || o && !this.enabledInBrowser ? !1 : u[e].priority >= u[this.settings.minLevel].priority;
|
|
84
93
|
}
|
|
85
94
|
formatTimestamp() {
|
|
86
95
|
return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
|
|
@@ -116,16 +125,16 @@ var f = class Logger {
|
|
|
116
125
|
let i = {
|
|
117
126
|
name: e.name,
|
|
118
127
|
message: e.message,
|
|
119
|
-
stack:
|
|
128
|
+
stack: c ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
|
|
120
129
|
};
|
|
121
130
|
for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
|
|
122
131
|
return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
|
|
123
132
|
}
|
|
124
133
|
if (e instanceof Date) return e.toISOString();
|
|
125
134
|
if (typeof e != "object") return e;
|
|
126
|
-
if (Array.isArray(e)) return e.length > 20 &&
|
|
135
|
+
if (Array.isArray(e)) return e.length > 20 && c ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
|
|
127
136
|
try {
|
|
128
|
-
let r = {}, i = Object.entries(e), a =
|
|
137
|
+
let r = {}, i = Object.entries(e), a = c ? 50 : 200;
|
|
129
138
|
for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
|
|
130
139
|
return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
|
|
131
140
|
} catch {
|
|
@@ -133,18 +142,18 @@ var f = class Logger {
|
|
|
133
142
|
}
|
|
134
143
|
}
|
|
135
144
|
logToBrowser(e) {
|
|
136
|
-
if (!
|
|
137
|
-
let { level: t, description: n, context: r, data: i, error:
|
|
138
|
-
i === void 0 ? console[t](`%c${c}`,
|
|
145
|
+
if (!o || !this.shouldLog(e.level)) return;
|
|
146
|
+
let { level: t, description: n, context: r, data: i, error: a } = e, s = u[t], c = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, l = `color: ${s.color}; font-weight: bold;`;
|
|
147
|
+
i === void 0 ? console[t](`%c${c}`, l, n) : console[t](`%c${c}`, l, n, this.formatData(i)), a && (a instanceof Error ? console.error(a) : console.error("Error details:", a));
|
|
139
148
|
}
|
|
140
149
|
logToNode(e) {
|
|
141
|
-
if (!
|
|
142
|
-
let { level: t, description: n, context: r, data: i, error: a } = e,
|
|
143
|
-
if (
|
|
150
|
+
if (!s || !this.shouldLog(e.level)) return;
|
|
151
|
+
let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
|
|
152
|
+
if (c) {
|
|
144
153
|
let e = {
|
|
145
154
|
timestamp: this.formatISOTimestamp(),
|
|
146
155
|
level: t.toUpperCase(),
|
|
147
|
-
context:
|
|
156
|
+
context: o,
|
|
148
157
|
msg: n,
|
|
149
158
|
message: n
|
|
150
159
|
};
|
|
@@ -152,12 +161,12 @@ var f = class Logger {
|
|
|
152
161
|
let r = JSON.stringify(e);
|
|
153
162
|
t === "trace" ? console.log(r) : console[t](r);
|
|
154
163
|
} else {
|
|
155
|
-
let e =
|
|
156
|
-
console[t](
|
|
164
|
+
let e = u[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `[2m${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
|
|
165
|
+
console[t](c), i !== void 0 && console.log(JSON.stringify(this.formatData(i), null, 2)), a && (a instanceof Error ? (console.error(`\x1B[31mError:${s}`, a.message), a.stack && console.error(`\x1B[90m${a.stack}${s}`)) : console.error("Error:", a));
|
|
157
166
|
}
|
|
158
167
|
}
|
|
159
168
|
log(e) {
|
|
160
|
-
|
|
169
|
+
o ? this.logToBrowser(e) : s && this.logToNode(e);
|
|
161
170
|
}
|
|
162
171
|
error(e, t) {
|
|
163
172
|
this.log({
|
|
@@ -200,7 +209,7 @@ var f = class Logger {
|
|
|
200
209
|
});
|
|
201
210
|
}
|
|
202
211
|
isEnabled() {
|
|
203
|
-
return !
|
|
212
|
+
return !o || this.enabledInBrowser;
|
|
204
213
|
}
|
|
205
214
|
setLevel(e) {
|
|
206
215
|
this.settings.minLevel = e;
|
|
@@ -218,11 +227,11 @@ var f = class Logger {
|
|
|
218
227
|
};
|
|
219
228
|
}
|
|
220
229
|
};
|
|
221
|
-
|
|
230
|
+
p.hasShownHelp = !1;
|
|
222
231
|
function createLogger(e) {
|
|
223
|
-
return new
|
|
232
|
+
return new p({}, e);
|
|
224
233
|
}
|
|
225
|
-
var
|
|
234
|
+
var m = new p(), h = m.error.bind(m), ee = m.warn.bind(m), te = m.info.bind(m), ne = m.debug.bind(m), re = m.trace.bind(m), SettingsObject = class {
|
|
226
235
|
constructor(e, t) {
|
|
227
236
|
this.objectName = e, this.settings = t, this.logger = createLogger(e);
|
|
228
237
|
}
|
|
@@ -389,21 +398,19 @@ function getColorSchemeOklch(e) {
|
|
|
389
398
|
}
|
|
390
399
|
//#endregion
|
|
391
400
|
//#region ../core/dist/utils/cookies.js
|
|
392
|
-
function authCookieOptionsForLocation(e
|
|
393
|
-
|
|
394
|
-
let n = e.hostname.toLowerCase(), r = n === "pagelines.com" || n.endsWith(".pagelines.com");
|
|
395
|
-
return {
|
|
401
|
+
function authCookieOptionsForLocation(e) {
|
|
402
|
+
return e ? {
|
|
396
403
|
secure: e.protocol === "https:",
|
|
397
|
-
domain:
|
|
404
|
+
domain: void 0,
|
|
398
405
|
path: "/"
|
|
399
|
-
};
|
|
406
|
+
} : { path: "/" };
|
|
400
407
|
}
|
|
401
408
|
var CookieUtil = class {
|
|
402
409
|
constructor() {
|
|
403
|
-
this.tokenName = "auth-token", this.deviceIdName = "pl-device-id", this.tokenMaxAge = 3600 * 24 * 90, this.fallbackStorageKey = "token"
|
|
410
|
+
this.tokenName = "auth-token", this.deviceIdName = "pl-device-id", this.tokenMaxAge = 3600 * 24 * 90, this.fallbackStorageKey = "token";
|
|
404
411
|
}
|
|
405
412
|
currentCookieOptions() {
|
|
406
|
-
return authCookieOptionsForLocation(typeof window > "u" ? void 0 : window.location
|
|
413
|
+
return authCookieOptionsForLocation(typeof window > "u" ? void 0 : window.location);
|
|
407
414
|
}
|
|
408
415
|
getCookie(e) {
|
|
409
416
|
if (typeof document > "u") return null;
|
|
@@ -457,7 +464,7 @@ var CookieUtil = class {
|
|
|
457
464
|
getDeviceId() {
|
|
458
465
|
return this.getCookie(this.deviceIdName);
|
|
459
466
|
}
|
|
460
|
-
}, ae = new CookieUtil(),
|
|
467
|
+
}, ae = new CookieUtil(), g = {
|
|
461
468
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
462
469
|
AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
|
|
463
470
|
AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
|
|
@@ -473,21 +480,16 @@ var CookieUtil = class {
|
|
|
473
480
|
AUTH_UNKNOWN: "Something went wrong. Try again."
|
|
474
481
|
};
|
|
475
482
|
function mapAuthErrorCode(e) {
|
|
476
|
-
return e ?
|
|
483
|
+
return e ? g[e] ?? g.AUTH_UNKNOWN : g.AUTH_UNKNOWN;
|
|
477
484
|
}
|
|
478
485
|
function authErrorMessage(e) {
|
|
479
|
-
return e.code ? mapAuthErrorCode(e.code) : e.error ||
|
|
486
|
+
return e.code ? mapAuthErrorCode(e.code) : e.error || g.AUTH_UNKNOWN;
|
|
480
487
|
}
|
|
481
488
|
var AuthApiError = class extends Error {
|
|
482
489
|
constructor(e, t) {
|
|
483
490
|
super(e), this.name = "AuthApiError", this.code = t;
|
|
484
491
|
}
|
|
485
|
-
}, oe
|
|
486
|
-
app: "https://app.pagelines.com",
|
|
487
|
-
dev: "https://dev-api.pagelines.com",
|
|
488
|
-
marketing: "https://pagelines.com",
|
|
489
|
-
appStore: "https://apps.apple.com/us/app/pagelines/id6764094785"
|
|
490
|
-
}, ce;
|
|
492
|
+
}, oe;
|
|
491
493
|
function $constructor(e, t, n) {
|
|
492
494
|
function init(n, r) {
|
|
493
495
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
@@ -526,10 +528,10 @@ var $ZodAsyncError = class extends Error {
|
|
|
526
528
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
527
529
|
}
|
|
528
530
|
};
|
|
529
|
-
(
|
|
530
|
-
var
|
|
531
|
+
(oe = globalThis).__zod_globalConfig ?? (oe.__zod_globalConfig = {});
|
|
532
|
+
var v = globalThis.__zod_globalConfig;
|
|
531
533
|
function config(e) {
|
|
532
|
-
return e && Object.assign(
|
|
534
|
+
return e && Object.assign(v, e), v;
|
|
533
535
|
}
|
|
534
536
|
//#endregion
|
|
535
537
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
@@ -560,12 +562,12 @@ function floatSafeRemainder(e, t) {
|
|
|
560
562
|
let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
|
|
561
563
|
return Math.abs(n - r) < i ? 0 : n - r;
|
|
562
564
|
}
|
|
563
|
-
var
|
|
565
|
+
var se = /* @__PURE__*/ Symbol("evaluating");
|
|
564
566
|
function defineLazy(e, t, n) {
|
|
565
567
|
let r;
|
|
566
568
|
Object.defineProperty(e, t, {
|
|
567
569
|
get() {
|
|
568
|
-
if (r !==
|
|
570
|
+
if (r !== se) return r === void 0 && (r = se, r = n()), r;
|
|
569
571
|
},
|
|
570
572
|
set(n) {
|
|
571
573
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -595,12 +597,12 @@ function esc(e) {
|
|
|
595
597
|
function slugify(e) {
|
|
596
598
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
597
599
|
}
|
|
598
|
-
var
|
|
600
|
+
var ce = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
599
601
|
function isObject(e) {
|
|
600
602
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
601
603
|
}
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
604
|
+
var le = /* @__PURE__*/ cached(() => {
|
|
605
|
+
if (v.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
604
606
|
try {
|
|
605
607
|
return Function(""), !0;
|
|
606
608
|
} catch {
|
|
@@ -617,7 +619,7 @@ function isPlainObject(e) {
|
|
|
617
619
|
function shallowClone(e) {
|
|
618
620
|
return isPlainObject(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
619
621
|
}
|
|
620
|
-
var
|
|
622
|
+
var ue = /* @__PURE__*/ new Set([
|
|
621
623
|
"string",
|
|
622
624
|
"number",
|
|
623
625
|
"symbol"
|
|
@@ -645,7 +647,7 @@ function normalizeParams(e) {
|
|
|
645
647
|
function optionalKeys(e) {
|
|
646
648
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
647
649
|
}
|
|
648
|
-
var
|
|
650
|
+
var de = {
|
|
649
651
|
safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
|
|
650
652
|
int32: [-2147483648, 2147483647],
|
|
651
653
|
uint32: [0, 4294967295],
|
|
@@ -799,7 +801,7 @@ function issue(...e) {
|
|
|
799
801
|
}
|
|
800
802
|
//#endregion
|
|
801
803
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
802
|
-
var
|
|
804
|
+
var fe = /* @__PURE__ */ e((e, t) => {
|
|
803
805
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
804
806
|
value: e._zod,
|
|
805
807
|
enumerable: !1
|
|
@@ -810,7 +812,7 @@ var me = /* @__PURE__ */ e((e, t) => {
|
|
|
810
812
|
value: () => e.message,
|
|
811
813
|
enumerable: !1
|
|
812
814
|
});
|
|
813
|
-
}, "initializer"),
|
|
815
|
+
}, "initializer"), pe = $constructor("$ZodError", fe), me = $constructor("$ZodError", fe, { Parent: Error });
|
|
814
816
|
function flattenError(e, t = (e) => e.message) {
|
|
815
817
|
let n = {}, r = [];
|
|
816
818
|
for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
@@ -851,7 +853,7 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
851
853
|
if (o instanceof Promise) throw new $ZodAsyncError();
|
|
852
854
|
if (o.issues.length) {
|
|
853
855
|
let t = new ((i?.Err) ?? e)(o.issues.map((e) => finalizeIssue(e, a, config())));
|
|
854
|
-
throw
|
|
856
|
+
throw ce(t, i?.callee), t;
|
|
855
857
|
}
|
|
856
858
|
return o.value;
|
|
857
859
|
}, _parseAsync = (e) => async (t, n, r, i) => {
|
|
@@ -864,7 +866,7 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
864
866
|
}, a);
|
|
865
867
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
866
868
|
let t = new ((i?.Err) ?? e)(o.issues.map((e) => finalizeIssue(e, a, config())));
|
|
867
|
-
throw
|
|
869
|
+
throw ce(t, i?.callee), t;
|
|
868
870
|
}
|
|
869
871
|
return o.value;
|
|
870
872
|
}, _safeParse = (e) => (t, n, r) => {
|
|
@@ -878,12 +880,12 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
878
880
|
if (a instanceof Promise) throw new $ZodAsyncError();
|
|
879
881
|
return a.issues.length ? {
|
|
880
882
|
success: !1,
|
|
881
|
-
error: new (e ??
|
|
883
|
+
error: new (e ?? pe)(a.issues.map((e) => finalizeIssue(e, i, config())))
|
|
882
884
|
} : {
|
|
883
885
|
success: !0,
|
|
884
886
|
data: a.value
|
|
885
887
|
};
|
|
886
|
-
},
|
|
888
|
+
}, he = /* @__PURE__*/ _safeParse(me), _safeParseAsync = (e) => async (t, n, r) => {
|
|
887
889
|
let i = r ? {
|
|
888
890
|
...r,
|
|
889
891
|
async: !0
|
|
@@ -898,7 +900,7 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
898
900
|
success: !0,
|
|
899
901
|
data: a.value
|
|
900
902
|
};
|
|
901
|
-
},
|
|
903
|
+
}, ge = /* @__PURE__*/ _safeParseAsync(me), _encode = (e) => (t, n, r) => {
|
|
902
904
|
let i = r ? {
|
|
903
905
|
...r,
|
|
904
906
|
direction: "backward"
|
|
@@ -922,11 +924,11 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
922
924
|
direction: "backward"
|
|
923
925
|
} : { direction: "backward" };
|
|
924
926
|
return _safeParseAsync(e)(t, n, i);
|
|
925
|
-
}, _safeDecodeAsync = (e) => async (t, n, r) => _safeParseAsync(e)(t, n, r),
|
|
927
|
+
}, _safeDecodeAsync = (e) => async (t, n, r) => _safeParseAsync(e)(t, n, r), _e = /^[cC][0-9a-z]{6,}$/, ve = /^[0-9a-z]+$/, ye = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, be = /^[0-9a-vA-V]{20}$/, xe = /^[A-Za-z0-9]{27}$/, Se = /^[a-zA-Z0-9_-]{21}$/, Ce = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, we = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, uuid = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Te = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ee = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
926
928
|
function emoji() {
|
|
927
|
-
return new RegExp(
|
|
929
|
+
return new RegExp(Ee, "u");
|
|
928
930
|
}
|
|
929
|
-
var
|
|
931
|
+
var De = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Oe = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, ke = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ae = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, je = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Me = /^[A-Za-z0-9_-]*$/, Ne = /^https?$/, Pe = /^\+[1-9]\d{6,14}$/, Fe = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ie = /*@__PURE__*/ RegExp(`^${Fe}$`);
|
|
930
932
|
function timeSource(e) {
|
|
931
933
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
932
934
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -939,22 +941,22 @@ function datetime$1(e) {
|
|
|
939
941
|
let t = timeSource({ precision: e.precision }), n = ["Z"];
|
|
940
942
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
941
943
|
let r = `${t}(?:${n.join("|")})`;
|
|
942
|
-
return RegExp(`^${
|
|
944
|
+
return RegExp(`^${Fe}T(?:${r})$`);
|
|
943
945
|
}
|
|
944
946
|
e(datetime$1, "datetime");
|
|
945
|
-
var
|
|
947
|
+
var Le = /* @__PURE__ */ e((e) => {
|
|
946
948
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
947
949
|
return RegExp(`^${t}$`);
|
|
948
|
-
}, "string"),
|
|
950
|
+
}, "string"), Re = /^-?\d+$/, ze = /^-?\d+(?:\.\d+)?$/, Be = /^(?:true|false)$/i, Ve = /^null$/i, He = /^[^A-Z]*$/, Ue = /^[^a-z]*$/, y = /*@__PURE__*/ $constructor("$ZodCheck", (e, t) => {
|
|
949
951
|
var n;
|
|
950
952
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
951
|
-
}),
|
|
953
|
+
}), We = {
|
|
952
954
|
number: "number",
|
|
953
955
|
bigint: "bigint",
|
|
954
956
|
object: "date"
|
|
955
|
-
},
|
|
956
|
-
|
|
957
|
-
let n =
|
|
957
|
+
}, Ge = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (e, t) => {
|
|
958
|
+
y.init(e, t);
|
|
959
|
+
let n = We[typeof t.value];
|
|
958
960
|
e._zod.onattach.push((e) => {
|
|
959
961
|
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
960
962
|
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
@@ -969,9 +971,9 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
969
971
|
continue: !t.abort
|
|
970
972
|
});
|
|
971
973
|
};
|
|
972
|
-
}),
|
|
973
|
-
|
|
974
|
-
let n =
|
|
974
|
+
}), Ke = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (e, t) => {
|
|
975
|
+
y.init(e, t);
|
|
976
|
+
let n = We[typeof t.value];
|
|
975
977
|
e._zod.onattach.push((e) => {
|
|
976
978
|
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
977
979
|
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
@@ -986,8 +988,8 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
986
988
|
continue: !t.abort
|
|
987
989
|
});
|
|
988
990
|
};
|
|
989
|
-
}),
|
|
990
|
-
|
|
991
|
+
}), qe = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (e, t) => {
|
|
992
|
+
y.init(e, t), e._zod.onattach.push((e) => {
|
|
991
993
|
var n;
|
|
992
994
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
993
995
|
}), e._zod.check = (n) => {
|
|
@@ -1001,12 +1003,12 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1001
1003
|
continue: !t.abort
|
|
1002
1004
|
});
|
|
1003
1005
|
};
|
|
1004
|
-
}),
|
|
1005
|
-
|
|
1006
|
-
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] =
|
|
1006
|
+
}), Je = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (e, t) => {
|
|
1007
|
+
y.init(e, t), t.format = t.format || "float64";
|
|
1008
|
+
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = de[t.format];
|
|
1007
1009
|
e._zod.onattach.push((e) => {
|
|
1008
1010
|
let r = e._zod.bag;
|
|
1009
|
-
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern =
|
|
1011
|
+
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Re);
|
|
1010
1012
|
}), e._zod.check = (o) => {
|
|
1011
1013
|
let s = o.value;
|
|
1012
1014
|
if (n) {
|
|
@@ -1062,9 +1064,9 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1062
1064
|
continue: !t.abort
|
|
1063
1065
|
});
|
|
1064
1066
|
};
|
|
1065
|
-
}),
|
|
1067
|
+
}), Ye = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (e, t) => {
|
|
1066
1068
|
var n;
|
|
1067
|
-
|
|
1069
|
+
y.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
1068
1070
|
let t = e.value;
|
|
1069
1071
|
return !nullish(t) && t.length !== void 0;
|
|
1070
1072
|
}), e._zod.onattach.push((e) => {
|
|
@@ -1084,9 +1086,9 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1084
1086
|
continue: !t.abort
|
|
1085
1087
|
});
|
|
1086
1088
|
};
|
|
1087
|
-
}),
|
|
1089
|
+
}), Xe = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (e, t) => {
|
|
1088
1090
|
var n;
|
|
1089
|
-
|
|
1091
|
+
y.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
1090
1092
|
let t = e.value;
|
|
1091
1093
|
return !nullish(t) && t.length !== void 0;
|
|
1092
1094
|
}), e._zod.onattach.push((e) => {
|
|
@@ -1106,9 +1108,9 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1106
1108
|
continue: !t.abort
|
|
1107
1109
|
});
|
|
1108
1110
|
};
|
|
1109
|
-
}),
|
|
1111
|
+
}), Ze = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (e, t) => {
|
|
1110
1112
|
var n;
|
|
1111
|
-
|
|
1113
|
+
y.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
1112
1114
|
let t = e.value;
|
|
1113
1115
|
return !nullish(t) && t.length !== void 0;
|
|
1114
1116
|
}), e._zod.onattach.push((e) => {
|
|
@@ -1134,9 +1136,9 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1134
1136
|
continue: !t.abort
|
|
1135
1137
|
});
|
|
1136
1138
|
};
|
|
1137
|
-
}),
|
|
1139
|
+
}), b = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (e, t) => {
|
|
1138
1140
|
var n, r;
|
|
1139
|
-
|
|
1141
|
+
y.init(e, t), e._zod.onattach.push((e) => {
|
|
1140
1142
|
let n = e._zod.bag;
|
|
1141
1143
|
n.format = t.format, t.pattern && (n.patterns ?? (n.patterns = /* @__PURE__ */ new Set()), n.patterns.add(t.pattern));
|
|
1142
1144
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -1150,8 +1152,8 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1150
1152
|
continue: !t.abort
|
|
1151
1153
|
});
|
|
1152
1154
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
1153
|
-
}),
|
|
1154
|
-
|
|
1155
|
+
}), Qe = /*@__PURE__*/ $constructor("$ZodCheckRegex", (e, t) => {
|
|
1156
|
+
b.init(e, t), e._zod.check = (n) => {
|
|
1155
1157
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
1156
1158
|
origin: "string",
|
|
1157
1159
|
code: "invalid_format",
|
|
@@ -1162,12 +1164,12 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1162
1164
|
continue: !t.abort
|
|
1163
1165
|
});
|
|
1164
1166
|
};
|
|
1165
|
-
}),
|
|
1166
|
-
t.pattern ?? (t.pattern =
|
|
1167
|
-
}),
|
|
1168
|
-
t.pattern ?? (t.pattern =
|
|
1169
|
-
}),
|
|
1170
|
-
|
|
1167
|
+
}), $e = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (e, t) => {
|
|
1168
|
+
t.pattern ?? (t.pattern = He), b.init(e, t);
|
|
1169
|
+
}), et = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (e, t) => {
|
|
1170
|
+
t.pattern ?? (t.pattern = Ue), b.init(e, t);
|
|
1171
|
+
}), tt = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (e, t) => {
|
|
1172
|
+
y.init(e, t);
|
|
1171
1173
|
let n = escapeRegex(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
1172
1174
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
1173
1175
|
let t = e._zod.bag;
|
|
@@ -1183,8 +1185,8 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1183
1185
|
continue: !t.abort
|
|
1184
1186
|
});
|
|
1185
1187
|
};
|
|
1186
|
-
}),
|
|
1187
|
-
|
|
1188
|
+
}), nt = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (e, t) => {
|
|
1189
|
+
y.init(e, t);
|
|
1188
1190
|
let n = RegExp(`^${escapeRegex(t.prefix)}.*`);
|
|
1189
1191
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((e) => {
|
|
1190
1192
|
let t = e._zod.bag;
|
|
@@ -1200,8 +1202,8 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1200
1202
|
continue: !t.abort
|
|
1201
1203
|
});
|
|
1202
1204
|
};
|
|
1203
|
-
}),
|
|
1204
|
-
|
|
1205
|
+
}), rt = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (e, t) => {
|
|
1206
|
+
y.init(e, t);
|
|
1205
1207
|
let n = RegExp(`.*${escapeRegex(t.suffix)}$`);
|
|
1206
1208
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((e) => {
|
|
1207
1209
|
let t = e._zod.bag;
|
|
@@ -1217,8 +1219,8 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1217
1219
|
continue: !t.abort
|
|
1218
1220
|
});
|
|
1219
1221
|
};
|
|
1220
|
-
}),
|
|
1221
|
-
|
|
1222
|
+
}), it = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (e, t) => {
|
|
1223
|
+
y.init(e, t), e._zod.check = (e) => {
|
|
1222
1224
|
e.value = t.tx(e.value);
|
|
1223
1225
|
};
|
|
1224
1226
|
}), Doc = class {
|
|
@@ -1240,13 +1242,13 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1240
1242
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
1241
1243
|
return new e(...t, n.join("\n"));
|
|
1242
1244
|
}
|
|
1243
|
-
},
|
|
1245
|
+
}, at = {
|
|
1244
1246
|
major: 4,
|
|
1245
1247
|
minor: 4,
|
|
1246
1248
|
patch: 3
|
|
1247
|
-
},
|
|
1249
|
+
}, x = /*@__PURE__*/ $constructor("$ZodType", (e, t) => {
|
|
1248
1250
|
var n;
|
|
1249
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1251
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = at;
|
|
1250
1252
|
let r = [...e._zod.def.checks ?? []];
|
|
1251
1253
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
1252
1254
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -1303,17 +1305,17 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1303
1305
|
defineLazy(e, "~standard", () => ({
|
|
1304
1306
|
validate: (t) => {
|
|
1305
1307
|
try {
|
|
1306
|
-
let n =
|
|
1308
|
+
let n = he(e, t);
|
|
1307
1309
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
1308
1310
|
} catch {
|
|
1309
|
-
return
|
|
1311
|
+
return ge(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
|
|
1310
1312
|
}
|
|
1311
1313
|
},
|
|
1312
1314
|
vendor: "zod",
|
|
1313
1315
|
version: 1
|
|
1314
1316
|
}));
|
|
1315
|
-
}),
|
|
1316
|
-
|
|
1317
|
+
}), ot = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
|
|
1318
|
+
x.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Le(e._zod.bag), e._zod.parse = (n, r) => {
|
|
1317
1319
|
if (t.coerce) try {
|
|
1318
1320
|
n.value = String(n.value);
|
|
1319
1321
|
} catch {}
|
|
@@ -1324,11 +1326,11 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1324
1326
|
inst: e
|
|
1325
1327
|
}), n;
|
|
1326
1328
|
};
|
|
1327
|
-
}),
|
|
1328
|
-
|
|
1329
|
-
}),
|
|
1330
|
-
t.pattern ?? (t.pattern =
|
|
1331
|
-
}),
|
|
1329
|
+
}), S = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
|
|
1330
|
+
b.init(e, t), ot.init(e, t);
|
|
1331
|
+
}), st = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
|
|
1332
|
+
t.pattern ?? (t.pattern = we), S.init(e, t);
|
|
1333
|
+
}), ct = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
|
|
1332
1334
|
if (t.version) {
|
|
1333
1335
|
let e = {
|
|
1334
1336
|
v1: 1,
|
|
@@ -1343,14 +1345,14 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1343
1345
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
1344
1346
|
t.pattern ?? (t.pattern = uuid(e));
|
|
1345
1347
|
} else t.pattern ?? (t.pattern = uuid());
|
|
1346
|
-
|
|
1347
|
-
}),
|
|
1348
|
-
t.pattern ?? (t.pattern =
|
|
1349
|
-
}),
|
|
1350
|
-
|
|
1348
|
+
S.init(e, t);
|
|
1349
|
+
}), lt = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
|
|
1350
|
+
t.pattern ?? (t.pattern = Te), S.init(e, t);
|
|
1351
|
+
}), ut = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
|
|
1352
|
+
S.init(e, t), e._zod.check = (n) => {
|
|
1351
1353
|
try {
|
|
1352
1354
|
let r = n.value.trim();
|
|
1353
|
-
if (!t.normalize && t.protocol?.source ===
|
|
1355
|
+
if (!t.normalize && t.protocol?.source === Ne.source && !/^https?:\/\//i.test(r)) {
|
|
1354
1356
|
n.issues.push({
|
|
1355
1357
|
code: "invalid_format",
|
|
1356
1358
|
format: "url",
|
|
@@ -1390,32 +1392,32 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1390
1392
|
});
|
|
1391
1393
|
}
|
|
1392
1394
|
};
|
|
1393
|
-
}),
|
|
1394
|
-
t.pattern ?? (t.pattern = emoji()),
|
|
1395
|
-
}),
|
|
1396
|
-
t.pattern ?? (t.pattern =
|
|
1397
|
-
}),
|
|
1398
|
-
t.pattern ?? (t.pattern =
|
|
1399
|
-
}),
|
|
1400
|
-
t.pattern ?? (t.pattern =
|
|
1401
|
-
}),
|
|
1402
|
-
t.pattern ?? (t.pattern =
|
|
1403
|
-
}),
|
|
1404
|
-
t.pattern ?? (t.pattern =
|
|
1405
|
-
}),
|
|
1406
|
-
t.pattern ?? (t.pattern =
|
|
1407
|
-
}),
|
|
1408
|
-
t.pattern ?? (t.pattern = datetime$1(t)),
|
|
1409
|
-
}),
|
|
1410
|
-
t.pattern ?? (t.pattern =
|
|
1411
|
-
}),
|
|
1412
|
-
t.pattern ?? (t.pattern = time$1(t)),
|
|
1413
|
-
}),
|
|
1414
|
-
t.pattern ?? (t.pattern =
|
|
1415
|
-
}),
|
|
1416
|
-
t.pattern ?? (t.pattern =
|
|
1417
|
-
}),
|
|
1418
|
-
t.pattern ?? (t.pattern =
|
|
1395
|
+
}), dt = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
|
|
1396
|
+
t.pattern ?? (t.pattern = emoji()), S.init(e, t);
|
|
1397
|
+
}), ft = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
|
|
1398
|
+
t.pattern ?? (t.pattern = Se), S.init(e, t);
|
|
1399
|
+
}), pt = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
|
|
1400
|
+
t.pattern ?? (t.pattern = _e), S.init(e, t);
|
|
1401
|
+
}), mt = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
|
|
1402
|
+
t.pattern ?? (t.pattern = ve), S.init(e, t);
|
|
1403
|
+
}), ht = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
|
|
1404
|
+
t.pattern ?? (t.pattern = ye), S.init(e, t);
|
|
1405
|
+
}), gt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
|
|
1406
|
+
t.pattern ?? (t.pattern = be), S.init(e, t);
|
|
1407
|
+
}), _t = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
|
|
1408
|
+
t.pattern ?? (t.pattern = xe), S.init(e, t);
|
|
1409
|
+
}), vt = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
|
|
1410
|
+
t.pattern ?? (t.pattern = datetime$1(t)), S.init(e, t);
|
|
1411
|
+
}), yt = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
|
|
1412
|
+
t.pattern ?? (t.pattern = Ie), S.init(e, t);
|
|
1413
|
+
}), bt = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
|
|
1414
|
+
t.pattern ?? (t.pattern = time$1(t)), S.init(e, t);
|
|
1415
|
+
}), xt = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
|
|
1416
|
+
t.pattern ?? (t.pattern = Ce), S.init(e, t);
|
|
1417
|
+
}), St = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
|
|
1418
|
+
t.pattern ?? (t.pattern = De), S.init(e, t), e._zod.bag.format = "ipv4";
|
|
1419
|
+
}), Ct = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
|
|
1420
|
+
t.pattern ?? (t.pattern = Oe), S.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
1419
1421
|
try {
|
|
1420
1422
|
new URL(`http://[${n.value}]`);
|
|
1421
1423
|
} catch {
|
|
@@ -1428,10 +1430,10 @@ var ze = /* @__PURE__ */ e((e) => {
|
|
|
1428
1430
|
});
|
|
1429
1431
|
}
|
|
1430
1432
|
};
|
|
1431
|
-
}),
|
|
1432
|
-
t.pattern ?? (t.pattern =
|
|
1433
|
-
}),
|
|
1434
|
-
t.pattern ?? (t.pattern =
|
|
1433
|
+
}), wt = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
|
|
1434
|
+
t.pattern ?? (t.pattern = ke), S.init(e, t);
|
|
1435
|
+
}), Tt = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
|
|
1436
|
+
t.pattern ?? (t.pattern = Ae), S.init(e, t), e._zod.check = (n) => {
|
|
1435
1437
|
let r = n.value.split("/");
|
|
1436
1438
|
try {
|
|
1437
1439
|
if (r.length !== 2) throw Error();
|
|
@@ -1460,8 +1462,8 @@ function isValidBase64(e) {
|
|
|
1460
1462
|
return !1;
|
|
1461
1463
|
}
|
|
1462
1464
|
}
|
|
1463
|
-
var
|
|
1464
|
-
t.pattern ?? (t.pattern =
|
|
1465
|
+
var Et = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
1466
|
+
t.pattern ?? (t.pattern = je), S.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
1465
1467
|
isValidBase64(n.value) || n.issues.push({
|
|
1466
1468
|
code: "invalid_format",
|
|
1467
1469
|
format: "base64",
|
|
@@ -1472,12 +1474,12 @@ var Ot = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
|
1472
1474
|
};
|
|
1473
1475
|
});
|
|
1474
1476
|
function isValidBase64URL(e) {
|
|
1475
|
-
if (!
|
|
1477
|
+
if (!Me.test(e)) return !1;
|
|
1476
1478
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1477
1479
|
return isValidBase64(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1478
1480
|
}
|
|
1479
|
-
var
|
|
1480
|
-
t.pattern ?? (t.pattern =
|
|
1481
|
+
var Dt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
1482
|
+
t.pattern ?? (t.pattern = Me), S.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
1481
1483
|
isValidBase64URL(n.value) || n.issues.push({
|
|
1482
1484
|
code: "invalid_format",
|
|
1483
1485
|
format: "base64url",
|
|
@@ -1486,8 +1488,8 @@ var kt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
|
1486
1488
|
continue: !t.abort
|
|
1487
1489
|
});
|
|
1488
1490
|
};
|
|
1489
|
-
}),
|
|
1490
|
-
t.pattern ?? (t.pattern =
|
|
1491
|
+
}), Ot = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
|
|
1492
|
+
t.pattern ?? (t.pattern = Pe), S.init(e, t);
|
|
1491
1493
|
});
|
|
1492
1494
|
function isValidJWT(e, t = null) {
|
|
1493
1495
|
try {
|
|
@@ -1501,8 +1503,8 @@ function isValidJWT(e, t = null) {
|
|
|
1501
1503
|
return !1;
|
|
1502
1504
|
}
|
|
1503
1505
|
}
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
+
var kt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
1507
|
+
S.init(e, t), e._zod.check = (n) => {
|
|
1506
1508
|
isValidJWT(n.value, t.alg) || n.issues.push({
|
|
1507
1509
|
code: "invalid_format",
|
|
1508
1510
|
format: "jwt",
|
|
@@ -1511,8 +1513,8 @@ var jt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1511
1513
|
continue: !t.abort
|
|
1512
1514
|
});
|
|
1513
1515
|
};
|
|
1514
|
-
}),
|
|
1515
|
-
|
|
1516
|
+
}), At = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
|
|
1517
|
+
x.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ze, e._zod.parse = (n, r) => {
|
|
1516
1518
|
if (t.coerce) try {
|
|
1517
1519
|
n.value = Number(n.value);
|
|
1518
1520
|
} catch {}
|
|
@@ -1527,10 +1529,10 @@ var jt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1527
1529
|
...a ? { received: a } : {}
|
|
1528
1530
|
}), n;
|
|
1529
1531
|
};
|
|
1530
|
-
}),
|
|
1531
|
-
|
|
1532
|
-
}),
|
|
1533
|
-
|
|
1532
|
+
}), jt = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
|
|
1533
|
+
Je.init(e, t), At.init(e, t);
|
|
1534
|
+
}), Mt = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
|
|
1535
|
+
x.init(e, t), e._zod.pattern = Be, e._zod.parse = (n, r) => {
|
|
1534
1536
|
if (t.coerce) try {
|
|
1535
1537
|
n.value = !!n.value;
|
|
1536
1538
|
} catch {}
|
|
@@ -1542,8 +1544,8 @@ var jt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1542
1544
|
inst: e
|
|
1543
1545
|
}), n;
|
|
1544
1546
|
};
|
|
1545
|
-
}),
|
|
1546
|
-
|
|
1547
|
+
}), Nt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
|
|
1548
|
+
x.init(e, t), e._zod.pattern = Ve, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1547
1549
|
let r = t.value;
|
|
1548
1550
|
return r === null || t.issues.push({
|
|
1549
1551
|
expected: "null",
|
|
@@ -1552,12 +1554,12 @@ var jt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1552
1554
|
inst: e
|
|
1553
1555
|
}), t;
|
|
1554
1556
|
};
|
|
1555
|
-
}),
|
|
1556
|
-
|
|
1557
|
-
}),
|
|
1558
|
-
|
|
1559
|
-
}),
|
|
1560
|
-
|
|
1557
|
+
}), Pt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
|
|
1558
|
+
x.init(e, t), e._zod.parse = (e) => e;
|
|
1559
|
+
}), Ft = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
|
|
1560
|
+
x.init(e, t), e._zod.parse = (e) => e;
|
|
1561
|
+
}), It = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
|
|
1562
|
+
x.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1561
1563
|
expected: "never",
|
|
1562
1564
|
code: "invalid_type",
|
|
1563
1565
|
input: t.value,
|
|
@@ -1567,8 +1569,8 @@ var jt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1567
1569
|
function handleArrayResult(e, t, n) {
|
|
1568
1570
|
e.issues.length && t.issues.push(...prefixIssues(n, e.issues)), t.value[n] = e.value;
|
|
1569
1571
|
}
|
|
1570
|
-
var
|
|
1571
|
-
|
|
1572
|
+
var Lt = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
|
|
1573
|
+
x.init(e, t), e._zod.parse = (n, r) => {
|
|
1572
1574
|
let i = n.value;
|
|
1573
1575
|
if (!Array.isArray(i)) return n.issues.push({
|
|
1574
1576
|
expected: "array",
|
|
@@ -1638,8 +1640,8 @@ function handleCatchall(e, t, n, r, i, a) {
|
|
|
1638
1640
|
inst: a
|
|
1639
1641
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1640
1642
|
}
|
|
1641
|
-
var
|
|
1642
|
-
if (
|
|
1643
|
+
var Rt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
1644
|
+
if (x.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1643
1645
|
let e = t.shape;
|
|
1644
1646
|
Object.defineProperty(t, "shape", { get: () => {
|
|
1645
1647
|
let n = { ...e };
|
|
@@ -1679,8 +1681,8 @@ var Bt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
|
1679
1681
|
}
|
|
1680
1682
|
return i ? handleCatchall(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1681
1683
|
};
|
|
1682
|
-
}),
|
|
1683
|
-
|
|
1684
|
+
}), zt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
|
|
1685
|
+
Rt.init(e, t);
|
|
1684
1686
|
let n = e._zod.parse, r = cached(() => normalizeDef(t)), generateFastpass = (e) => {
|
|
1685
1687
|
let t = new Doc([
|
|
1686
1688
|
"shape",
|
|
@@ -1760,7 +1762,7 @@ var Bt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
|
1760
1762
|
t.write("payload.value = newResult;"), t.write("return payload;");
|
|
1761
1763
|
let o = t.compile();
|
|
1762
1764
|
return (t, n) => o(e, t, n);
|
|
1763
|
-
}, i, a = isObject, o = !
|
|
1765
|
+
}, i, a = isObject, o = !v.jitless, s = o && le.value, c = t.catchall, l;
|
|
1764
1766
|
e._zod.parse = (u, d) => {
|
|
1765
1767
|
l ?? (l = r.value);
|
|
1766
1768
|
let f = u.value;
|
|
@@ -1782,8 +1784,8 @@ function handleUnionResults(e, t, n, r) {
|
|
|
1782
1784
|
errors: e.map((e) => e.issues.map((e) => finalizeIssue(e, r, config())))
|
|
1783
1785
|
}), t);
|
|
1784
1786
|
}
|
|
1785
|
-
var
|
|
1786
|
-
|
|
1787
|
+
var Bt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
1788
|
+
x.init(e, t), defineLazy(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), defineLazy(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), defineLazy(e._zod, "values", () => {
|
|
1787
1789
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1788
1790
|
}), defineLazy(e._zod, "pattern", () => {
|
|
1789
1791
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
@@ -1808,8 +1810,8 @@ var Ht = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
|
1808
1810
|
}
|
|
1809
1811
|
return a ? Promise.all(o).then((t) => handleUnionResults(t, r, e, i)) : handleUnionResults(o, r, e, i);
|
|
1810
1812
|
};
|
|
1811
|
-
}),
|
|
1812
|
-
t.inclusive = !1,
|
|
1813
|
+
}), Vt = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
|
|
1814
|
+
t.inclusive = !1, Bt.init(e, t);
|
|
1813
1815
|
let n = e._zod.parse;
|
|
1814
1816
|
defineLazy(e._zod, "propValues", () => {
|
|
1815
1817
|
let e = {};
|
|
@@ -1855,8 +1857,8 @@ var Ht = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
|
1855
1857
|
inst: e
|
|
1856
1858
|
}), i);
|
|
1857
1859
|
};
|
|
1858
|
-
}),
|
|
1859
|
-
|
|
1860
|
+
}), Ht = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
|
|
1861
|
+
x.init(e, t), e._zod.parse = (e, n) => {
|
|
1860
1862
|
let r = e.value, i = t.left._zod.run({
|
|
1861
1863
|
value: r,
|
|
1862
1864
|
issues: []
|
|
@@ -1931,8 +1933,8 @@ function handleIntersectionResults(e, t, n) {
|
|
|
1931
1933
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1932
1934
|
return e.value = o.data, e;
|
|
1933
1935
|
}
|
|
1934
|
-
var
|
|
1935
|
-
|
|
1936
|
+
var Ut = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
1937
|
+
x.init(e, t), e._zod.parse = (n, r) => {
|
|
1936
1938
|
let i = n.value;
|
|
1937
1939
|
if (!isPlainObject(i)) return n.issues.push({
|
|
1938
1940
|
expected: "record",
|
|
@@ -1987,7 +1989,7 @@ var Gt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1987
1989
|
issues: []
|
|
1988
1990
|
}, r);
|
|
1989
1991
|
if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
1990
|
-
if (typeof o == "string" &&
|
|
1992
|
+
if (typeof o == "string" && ze.test(o) && s.issues.length) {
|
|
1991
1993
|
let e = t.keyType._zod.run({
|
|
1992
1994
|
value: Number(o),
|
|
1993
1995
|
issues: []
|
|
@@ -2017,10 +2019,10 @@ var Gt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
2017
2019
|
}
|
|
2018
2020
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
2019
2021
|
};
|
|
2020
|
-
}),
|
|
2021
|
-
|
|
2022
|
+
}), Wt = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
|
|
2023
|
+
x.init(e, t);
|
|
2022
2024
|
let n = getEnumValues(t.entries), r = new Set(n);
|
|
2023
|
-
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) =>
|
|
2025
|
+
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ue.has(typeof e)).map((e) => typeof e == "string" ? escapeRegex(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
2024
2026
|
let a = t.value;
|
|
2025
2027
|
return r.has(a) || t.issues.push({
|
|
2026
2028
|
code: "invalid_value",
|
|
@@ -2029,8 +2031,8 @@ var Gt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
2029
2031
|
inst: e
|
|
2030
2032
|
}), t;
|
|
2031
2033
|
};
|
|
2032
|
-
}),
|
|
2033
|
-
if (
|
|
2034
|
+
}), Gt = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
|
|
2035
|
+
if (x.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
|
|
2034
2036
|
let n = new Set(t.values);
|
|
2035
2037
|
e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? escapeRegex(e) : e ? escapeRegex(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
|
|
2036
2038
|
let a = r.value;
|
|
@@ -2041,8 +2043,8 @@ var Gt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
2041
2043
|
inst: e
|
|
2042
2044
|
}), r;
|
|
2043
2045
|
};
|
|
2044
|
-
}),
|
|
2045
|
-
|
|
2046
|
+
}), Kt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
|
|
2047
|
+
x.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
2046
2048
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
2047
2049
|
let i = t.transform(n.value, n);
|
|
2048
2050
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
|
|
@@ -2056,8 +2058,8 @@ function handleOptionalResult(e, t) {
|
|
|
2056
2058
|
value: void 0
|
|
2057
2059
|
} : e;
|
|
2058
2060
|
}
|
|
2059
|
-
var
|
|
2060
|
-
|
|
2061
|
+
var qt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
2062
|
+
x.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), defineLazy(e._zod, "pattern", () => {
|
|
2061
2063
|
let e = t.innerType._zod.pattern;
|
|
2062
2064
|
return e ? RegExp(`^(${cleanRegex(e.source)})?$`) : void 0;
|
|
2063
2065
|
}), e._zod.parse = (e, n) => {
|
|
@@ -2067,15 +2069,15 @@ var Yt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
|
2067
2069
|
}
|
|
2068
2070
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
2069
2071
|
};
|
|
2070
|
-
}),
|
|
2071
|
-
|
|
2072
|
-
}),
|
|
2073
|
-
|
|
2072
|
+
}), Jt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
|
|
2073
|
+
qt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
2074
|
+
}), Yt = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
|
|
2075
|
+
x.init(e, t), defineLazy(e._zod, "optin", () => t.innerType._zod.optin), defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "pattern", () => {
|
|
2074
2076
|
let e = t.innerType._zod.pattern;
|
|
2075
2077
|
return e ? RegExp(`^(${cleanRegex(e.source)}|null)$`) : void 0;
|
|
2076
2078
|
}), defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
2077
|
-
}),
|
|
2078
|
-
|
|
2079
|
+
}), Xt = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
|
|
2080
|
+
x.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2079
2081
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2080
2082
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
2081
2083
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -2085,10 +2087,10 @@ var Yt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
|
2085
2087
|
function handleDefaultResult(e, t) {
|
|
2086
2088
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
2087
2089
|
}
|
|
2088
|
-
var
|
|
2089
|
-
|
|
2090
|
-
}),
|
|
2091
|
-
|
|
2090
|
+
var Zt = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
|
|
2091
|
+
x.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
2092
|
+
}), Qt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
|
|
2093
|
+
x.init(e, t), defineLazy(e._zod, "values", () => {
|
|
2092
2094
|
let e = t.innerType._zod.values;
|
|
2093
2095
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
2094
2096
|
}), e._zod.parse = (n, r) => {
|
|
@@ -2104,8 +2106,8 @@ function handleNonOptionalResult(e, t) {
|
|
|
2104
2106
|
inst: t
|
|
2105
2107
|
}), e;
|
|
2106
2108
|
}
|
|
2107
|
-
var
|
|
2108
|
-
|
|
2109
|
+
var $t = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
2110
|
+
x.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2109
2111
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2110
2112
|
let r = t.innerType._zod.run(e, n);
|
|
2111
2113
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
@@ -2118,8 +2120,8 @@ var tn = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
|
2118
2120
|
input: e.value
|
|
2119
2121
|
}), e.issues = [], e.fallback = !0), e);
|
|
2120
2122
|
};
|
|
2121
|
-
}),
|
|
2122
|
-
|
|
2123
|
+
}), en = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
|
|
2124
|
+
x.init(e, t), defineLazy(e._zod, "values", () => t.in._zod.values), defineLazy(e._zod, "optin", () => t.in._zod.optin), defineLazy(e._zod, "optout", () => t.out._zod.optout), defineLazy(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
2123
2125
|
if (n.direction === "backward") {
|
|
2124
2126
|
let r = t.out._zod.run(e, n);
|
|
2125
2127
|
return r instanceof Promise ? r.then((e) => handlePipeResult(e, t.in, n)) : handlePipeResult(r, t.in, n);
|
|
@@ -2135,10 +2137,10 @@ function handlePipeResult(e, t, n) {
|
|
|
2135
2137
|
fallback: e.fallback
|
|
2136
2138
|
}, n);
|
|
2137
2139
|
}
|
|
2138
|
-
var
|
|
2139
|
-
|
|
2140
|
-
}),
|
|
2141
|
-
|
|
2140
|
+
var tn = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
|
|
2141
|
+
en.init(e, t);
|
|
2142
|
+
}), nn = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
|
|
2143
|
+
x.init(e, t), defineLazy(e._zod, "propValues", () => t.innerType._zod.propValues), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "optin", () => t.innerType?._zod?.optin), defineLazy(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
2142
2144
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2143
2145
|
let r = t.innerType._zod.run(e, n);
|
|
2144
2146
|
return r instanceof Promise ? r.then(handleReadonlyResult) : handleReadonlyResult(r);
|
|
@@ -2147,8 +2149,8 @@ var rn = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
|
|
|
2147
2149
|
function handleReadonlyResult(e) {
|
|
2148
2150
|
return e.value = Object.freeze(e.value), e;
|
|
2149
2151
|
}
|
|
2150
|
-
var
|
|
2151
|
-
|
|
2152
|
+
var rn = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
|
|
2153
|
+
y.init(e, t), x.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
2152
2154
|
let r = n.value, i = t.fn(r);
|
|
2153
2155
|
if (i instanceof Promise) return i.then((t) => handleRefineResult(t, n, r, e));
|
|
2154
2156
|
handleRefineResult(i, n, r, e);
|
|
@@ -2168,7 +2170,7 @@ function handleRefineResult(e, t, n, r) {
|
|
|
2168
2170
|
}
|
|
2169
2171
|
//#endregion
|
|
2170
2172
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2171
|
-
var
|
|
2173
|
+
var an, $ZodRegistry = class {
|
|
2172
2174
|
constructor() {
|
|
2173
2175
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
2174
2176
|
}
|
|
@@ -2203,8 +2205,8 @@ var sn, $ZodRegistry = class {
|
|
|
2203
2205
|
function registry() {
|
|
2204
2206
|
return new $ZodRegistry();
|
|
2205
2207
|
}
|
|
2206
|
-
(
|
|
2207
|
-
var
|
|
2208
|
+
(an = globalThis).__zod_globalRegistry ?? (an.__zod_globalRegistry = registry());
|
|
2209
|
+
var C = globalThis.__zod_globalRegistry;
|
|
2208
2210
|
//#endregion
|
|
2209
2211
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2210
2212
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2527,7 +2529,7 @@ function _never(e, t) {
|
|
|
2527
2529
|
}
|
|
2528
2530
|
// @__NO_SIDE_EFFECTS__
|
|
2529
2531
|
function _lt(e, t) {
|
|
2530
|
-
return new
|
|
2532
|
+
return new Ge({
|
|
2531
2533
|
check: "less_than",
|
|
2532
2534
|
...normalizeParams(t),
|
|
2533
2535
|
value: e,
|
|
@@ -2536,7 +2538,7 @@ function _lt(e, t) {
|
|
|
2536
2538
|
}
|
|
2537
2539
|
// @__NO_SIDE_EFFECTS__
|
|
2538
2540
|
function _lte(e, t) {
|
|
2539
|
-
return new
|
|
2541
|
+
return new Ge({
|
|
2540
2542
|
check: "less_than",
|
|
2541
2543
|
...normalizeParams(t),
|
|
2542
2544
|
value: e,
|
|
@@ -2545,7 +2547,7 @@ function _lte(e, t) {
|
|
|
2545
2547
|
}
|
|
2546
2548
|
// @__NO_SIDE_EFFECTS__
|
|
2547
2549
|
function _gt(e, t) {
|
|
2548
|
-
return new
|
|
2550
|
+
return new Ke({
|
|
2549
2551
|
check: "greater_than",
|
|
2550
2552
|
...normalizeParams(t),
|
|
2551
2553
|
value: e,
|
|
@@ -2554,7 +2556,7 @@ function _gt(e, t) {
|
|
|
2554
2556
|
}
|
|
2555
2557
|
// @__NO_SIDE_EFFECTS__
|
|
2556
2558
|
function _gte(e, t) {
|
|
2557
|
-
return new
|
|
2559
|
+
return new Ke({
|
|
2558
2560
|
check: "greater_than",
|
|
2559
2561
|
...normalizeParams(t),
|
|
2560
2562
|
value: e,
|
|
@@ -2563,7 +2565,7 @@ function _gte(e, t) {
|
|
|
2563
2565
|
}
|
|
2564
2566
|
// @__NO_SIDE_EFFECTS__
|
|
2565
2567
|
function _multipleOf(e, t) {
|
|
2566
|
-
return new
|
|
2568
|
+
return new qe({
|
|
2567
2569
|
check: "multiple_of",
|
|
2568
2570
|
...normalizeParams(t),
|
|
2569
2571
|
value: e
|
|
@@ -2571,7 +2573,7 @@ function _multipleOf(e, t) {
|
|
|
2571
2573
|
}
|
|
2572
2574
|
// @__NO_SIDE_EFFECTS__
|
|
2573
2575
|
function _maxLength(e, t) {
|
|
2574
|
-
return new
|
|
2576
|
+
return new Ye({
|
|
2575
2577
|
check: "max_length",
|
|
2576
2578
|
...normalizeParams(t),
|
|
2577
2579
|
maximum: e
|
|
@@ -2579,7 +2581,7 @@ function _maxLength(e, t) {
|
|
|
2579
2581
|
}
|
|
2580
2582
|
// @__NO_SIDE_EFFECTS__
|
|
2581
2583
|
function _minLength(e, t) {
|
|
2582
|
-
return new
|
|
2584
|
+
return new Xe({
|
|
2583
2585
|
check: "min_length",
|
|
2584
2586
|
...normalizeParams(t),
|
|
2585
2587
|
minimum: e
|
|
@@ -2587,7 +2589,7 @@ function _minLength(e, t) {
|
|
|
2587
2589
|
}
|
|
2588
2590
|
// @__NO_SIDE_EFFECTS__
|
|
2589
2591
|
function _length(e, t) {
|
|
2590
|
-
return new
|
|
2592
|
+
return new Ze({
|
|
2591
2593
|
check: "length_equals",
|
|
2592
2594
|
...normalizeParams(t),
|
|
2593
2595
|
length: e
|
|
@@ -2595,7 +2597,7 @@ function _length(e, t) {
|
|
|
2595
2597
|
}
|
|
2596
2598
|
// @__NO_SIDE_EFFECTS__
|
|
2597
2599
|
function _regex(e, t) {
|
|
2598
|
-
return new
|
|
2600
|
+
return new Qe({
|
|
2599
2601
|
check: "string_format",
|
|
2600
2602
|
format: "regex",
|
|
2601
2603
|
...normalizeParams(t),
|
|
@@ -2604,7 +2606,7 @@ function _regex(e, t) {
|
|
|
2604
2606
|
}
|
|
2605
2607
|
// @__NO_SIDE_EFFECTS__
|
|
2606
2608
|
function _lowercase(e) {
|
|
2607
|
-
return new
|
|
2609
|
+
return new $e({
|
|
2608
2610
|
check: "string_format",
|
|
2609
2611
|
format: "lowercase",
|
|
2610
2612
|
...normalizeParams(e)
|
|
@@ -2612,7 +2614,7 @@ function _lowercase(e) {
|
|
|
2612
2614
|
}
|
|
2613
2615
|
// @__NO_SIDE_EFFECTS__
|
|
2614
2616
|
function _uppercase(e) {
|
|
2615
|
-
return new
|
|
2617
|
+
return new et({
|
|
2616
2618
|
check: "string_format",
|
|
2617
2619
|
format: "uppercase",
|
|
2618
2620
|
...normalizeParams(e)
|
|
@@ -2620,7 +2622,7 @@ function _uppercase(e) {
|
|
|
2620
2622
|
}
|
|
2621
2623
|
// @__NO_SIDE_EFFECTS__
|
|
2622
2624
|
function _includes(e, t) {
|
|
2623
|
-
return new
|
|
2625
|
+
return new tt({
|
|
2624
2626
|
check: "string_format",
|
|
2625
2627
|
format: "includes",
|
|
2626
2628
|
...normalizeParams(t),
|
|
@@ -2629,7 +2631,7 @@ function _includes(e, t) {
|
|
|
2629
2631
|
}
|
|
2630
2632
|
// @__NO_SIDE_EFFECTS__
|
|
2631
2633
|
function _startsWith(e, t) {
|
|
2632
|
-
return new
|
|
2634
|
+
return new nt({
|
|
2633
2635
|
check: "string_format",
|
|
2634
2636
|
format: "starts_with",
|
|
2635
2637
|
...normalizeParams(t),
|
|
@@ -2638,7 +2640,7 @@ function _startsWith(e, t) {
|
|
|
2638
2640
|
}
|
|
2639
2641
|
// @__NO_SIDE_EFFECTS__
|
|
2640
2642
|
function _endsWith(e, t) {
|
|
2641
|
-
return new
|
|
2643
|
+
return new rt({
|
|
2642
2644
|
check: "string_format",
|
|
2643
2645
|
format: "ends_with",
|
|
2644
2646
|
...normalizeParams(t),
|
|
@@ -2647,7 +2649,7 @@ function _endsWith(e, t) {
|
|
|
2647
2649
|
}
|
|
2648
2650
|
// @__NO_SIDE_EFFECTS__
|
|
2649
2651
|
function _overwrite(e) {
|
|
2650
|
-
return new
|
|
2652
|
+
return new it({
|
|
2651
2653
|
check: "overwrite",
|
|
2652
2654
|
tx: e
|
|
2653
2655
|
});
|
|
@@ -2702,7 +2704,7 @@ function _superRefine(e, t) {
|
|
|
2702
2704
|
}
|
|
2703
2705
|
// @__NO_SIDE_EFFECTS__
|
|
2704
2706
|
function _check(e, t) {
|
|
2705
|
-
let n = new
|
|
2707
|
+
let n = new y({
|
|
2706
2708
|
check: "custom",
|
|
2707
2709
|
...normalizeParams(t)
|
|
2708
2710
|
});
|
|
@@ -2714,7 +2716,7 @@ function initializeContext(e) {
|
|
|
2714
2716
|
let t = e?.target ?? "draft-2020-12";
|
|
2715
2717
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2716
2718
|
processors: e.processors ?? {},
|
|
2717
|
-
metadataRegistry: e?.metadata ??
|
|
2719
|
+
metadataRegistry: e?.metadata ?? C,
|
|
2718
2720
|
target: t,
|
|
2719
2721
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2720
2722
|
override: e?.override ?? (() => {}),
|
|
@@ -2929,7 +2931,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2929
2931
|
processors: n
|
|
2930
2932
|
});
|
|
2931
2933
|
return process(e, o), extractDefs(o, e), finalize(o, e);
|
|
2932
|
-
},
|
|
2934
|
+
}, on = {
|
|
2933
2935
|
guid: "uuid",
|
|
2934
2936
|
url: "uri",
|
|
2935
2937
|
datetime: "date-time",
|
|
@@ -2939,7 +2941,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2939
2941
|
let i = n;
|
|
2940
2942
|
i.type = "string";
|
|
2941
2943
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
2942
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2944
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = on[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
2943
2945
|
let e = [...c];
|
|
2944
2946
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2945
2947
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
@@ -3163,7 +3165,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
3163
3165
|
process(i, t, r);
|
|
3164
3166
|
let a = t.seen.get(e);
|
|
3165
3167
|
a.ref = i;
|
|
3166
|
-
},
|
|
3168
|
+
}, sn = {
|
|
3167
3169
|
string: stringProcessor,
|
|
3168
3170
|
number: numberProcessor,
|
|
3169
3171
|
boolean: booleanProcessor,
|
|
@@ -3208,7 +3210,7 @@ function toJSONSchema(e, t) {
|
|
|
3208
3210
|
if ("_idmap" in e) {
|
|
3209
3211
|
let n = e, r = initializeContext({
|
|
3210
3212
|
...t,
|
|
3211
|
-
processors:
|
|
3213
|
+
processors: sn
|
|
3212
3214
|
}), i = {};
|
|
3213
3215
|
for (let e of n._idmap.entries()) {
|
|
3214
3216
|
let [t, n] = e;
|
|
@@ -3228,40 +3230,40 @@ function toJSONSchema(e, t) {
|
|
|
3228
3230
|
}
|
|
3229
3231
|
let n = initializeContext({
|
|
3230
3232
|
...t,
|
|
3231
|
-
processors:
|
|
3233
|
+
processors: sn
|
|
3232
3234
|
});
|
|
3233
3235
|
return process(e, n), extractDefs(n, e), finalize(n, e);
|
|
3234
3236
|
}
|
|
3235
3237
|
//#endregion
|
|
3236
3238
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3237
|
-
var
|
|
3238
|
-
|
|
3239
|
+
var cn = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
|
|
3240
|
+
vt.init(e, t), E.init(e, t);
|
|
3239
3241
|
});
|
|
3240
3242
|
function datetime(e) {
|
|
3241
|
-
return /* @__PURE__ */ _isoDateTime(
|
|
3243
|
+
return /* @__PURE__ */ _isoDateTime(cn, e);
|
|
3242
3244
|
}
|
|
3243
|
-
var
|
|
3244
|
-
|
|
3245
|
+
var ln = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
|
|
3246
|
+
yt.init(e, t), E.init(e, t);
|
|
3245
3247
|
});
|
|
3246
3248
|
function date(e) {
|
|
3247
|
-
return /* @__PURE__ */ _isoDate(
|
|
3249
|
+
return /* @__PURE__ */ _isoDate(ln, e);
|
|
3248
3250
|
}
|
|
3249
|
-
var
|
|
3250
|
-
|
|
3251
|
+
var un = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
|
|
3252
|
+
bt.init(e, t), E.init(e, t);
|
|
3251
3253
|
});
|
|
3252
3254
|
function time(e) {
|
|
3253
|
-
return /* @__PURE__ */ _isoTime(
|
|
3255
|
+
return /* @__PURE__ */ _isoTime(un, e);
|
|
3254
3256
|
}
|
|
3255
|
-
var
|
|
3256
|
-
|
|
3257
|
+
var dn = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
|
|
3258
|
+
xt.init(e, t), E.init(e, t);
|
|
3257
3259
|
});
|
|
3258
3260
|
function duration(e) {
|
|
3259
|
-
return /* @__PURE__ */ _isoDuration(
|
|
3261
|
+
return /* @__PURE__ */ _isoDuration(dn, e);
|
|
3260
3262
|
}
|
|
3261
3263
|
//#endregion
|
|
3262
3264
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3263
3265
|
var initializer = (e, t) => {
|
|
3264
|
-
|
|
3266
|
+
pe.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
3265
3267
|
format: { value: (t) => formatError(e, t) },
|
|
3266
3268
|
flatten: { value: (t) => flattenError(e, t) },
|
|
3267
3269
|
addIssue: { value: (t) => {
|
|
@@ -3274,10 +3276,10 @@ var initializer = (e, t) => {
|
|
|
3274
3276
|
return e.issues.length === 0;
|
|
3275
3277
|
} }
|
|
3276
3278
|
});
|
|
3277
|
-
},
|
|
3279
|
+
}, w = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), fn = /* @__PURE__ */ _parse(w), pn = /* @__PURE__ */ _parseAsync(w), mn = /* @__PURE__ */ _safeParse(w), hn = /* @__PURE__ */ _safeParseAsync(w), gn = /* @__PURE__ */ _encode(w), _n = /* @__PURE__ */ _decode(w), vn = /* @__PURE__ */ _encodeAsync(w), yn = /* @__PURE__ */ _decodeAsync(w), bn = /* @__PURE__ */ _safeEncode(w), xn = /* @__PURE__ */ _safeDecode(w), Sn = /* @__PURE__ */ _safeEncodeAsync(w), Cn = /* @__PURE__ */ _safeDecodeAsync(w), wn = /* @__PURE__ */ new WeakMap();
|
|
3278
3280
|
function _installLazyMethods(e, t, n) {
|
|
3279
|
-
let r = Object.getPrototypeOf(e), i =
|
|
3280
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
3281
|
+
let r = Object.getPrototypeOf(e), i = wn.get(r);
|
|
3282
|
+
if (i || (i = /* @__PURE__ */ new Set(), wn.set(r, i)), !i.has(t)) {
|
|
3281
3283
|
i.add(t);
|
|
3282
3284
|
for (let e in n) {
|
|
3283
3285
|
let t = n[e];
|
|
@@ -3305,10 +3307,10 @@ function _installLazyMethods(e, t, n) {
|
|
|
3305
3307
|
}
|
|
3306
3308
|
}
|
|
3307
3309
|
}
|
|
3308
|
-
var
|
|
3310
|
+
var T = /*@__PURE__*/ $constructor("ZodType", (e, t) => (x.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
3309
3311
|
input: createStandardJSONSchemaMethod(e, "input"),
|
|
3310
3312
|
output: createStandardJSONSchemaMethod(e, "output")
|
|
3311
|
-
} }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) =>
|
|
3313
|
+
} }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => fn(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => mn(e, t, n), e.parseAsync = async (t, n) => pn(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => hn(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => gn(e, t, n), e.decode = (t, n) => _n(e, t, n), e.encodeAsync = async (t, n) => vn(e, t, n), e.decodeAsync = async (t, n) => yn(e, t, n), e.safeEncode = (t, n) => bn(e, t, n), e.safeDecode = (t, n) => xn(e, t, n), e.safeEncodeAsync = async (t, n) => Sn(e, t, n), e.safeDecodeAsync = async (t, n) => Cn(e, t, n), _installLazyMethods(e, "ZodType", {
|
|
3312
3314
|
check(...e) {
|
|
3313
3315
|
let t = this.def;
|
|
3314
3316
|
return this.clone(mergeDefs(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -3382,12 +3384,12 @@ var w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (b.init(e, t), Object.as
|
|
|
3382
3384
|
},
|
|
3383
3385
|
describe(e) {
|
|
3384
3386
|
let t = this.clone();
|
|
3385
|
-
return
|
|
3387
|
+
return C.add(t, { description: e }), t;
|
|
3386
3388
|
},
|
|
3387
3389
|
meta(...e) {
|
|
3388
|
-
if (e.length === 0) return
|
|
3390
|
+
if (e.length === 0) return C.get(this);
|
|
3389
3391
|
let t = this.clone();
|
|
3390
|
-
return
|
|
3392
|
+
return C.add(t, e[0]), t;
|
|
3391
3393
|
},
|
|
3392
3394
|
isOptional() {
|
|
3393
3395
|
return this.safeParse(void 0).success;
|
|
@@ -3400,11 +3402,11 @@ var w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (b.init(e, t), Object.as
|
|
|
3400
3402
|
}
|
|
3401
3403
|
}), Object.defineProperty(e, "description", {
|
|
3402
3404
|
get() {
|
|
3403
|
-
return
|
|
3405
|
+
return C.get(e)?.description;
|
|
3404
3406
|
},
|
|
3405
3407
|
configurable: !0
|
|
3406
|
-
}), e)),
|
|
3407
|
-
|
|
3408
|
+
}), e)), Tn = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
|
|
3409
|
+
ot.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
|
|
3408
3410
|
let n = e._zod.bag;
|
|
3409
3411
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, _installLazyMethods(e, "_ZodString", {
|
|
3410
3412
|
regex(...e) {
|
|
@@ -3453,58 +3455,58 @@ var w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (b.init(e, t), Object.as
|
|
|
3453
3455
|
return this.check(/* @__PURE__ */ _slugify());
|
|
3454
3456
|
}
|
|
3455
3457
|
});
|
|
3456
|
-
}),
|
|
3457
|
-
|
|
3458
|
+
}), En = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
|
|
3459
|
+
ot.init(e, t), Tn.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(Dn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(kn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(Wn, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(An, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(On, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(D, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(D, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(D, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(D, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(jn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(On, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(Mn, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(Nn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(Pn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(Vn, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(Hn, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(Fn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(In, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Ln, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(Rn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(zn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(Bn, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(Un, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
|
|
3458
3460
|
});
|
|
3459
3461
|
function string(e) {
|
|
3460
|
-
return /* @__PURE__ */ _string(
|
|
3461
|
-
}
|
|
3462
|
-
var
|
|
3463
|
-
|
|
3464
|
-
}),
|
|
3465
|
-
|
|
3466
|
-
}),
|
|
3467
|
-
|
|
3468
|
-
}),
|
|
3469
|
-
|
|
3470
|
-
}),
|
|
3471
|
-
|
|
3462
|
+
return /* @__PURE__ */ _string(En, e);
|
|
3463
|
+
}
|
|
3464
|
+
var E = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
|
|
3465
|
+
S.init(e, t), Tn.init(e, t);
|
|
3466
|
+
}), Dn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
|
|
3467
|
+
lt.init(e, t), E.init(e, t);
|
|
3468
|
+
}), On = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
|
|
3469
|
+
st.init(e, t), E.init(e, t);
|
|
3470
|
+
}), D = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
|
|
3471
|
+
ct.init(e, t), E.init(e, t);
|
|
3472
|
+
}), kn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
|
|
3473
|
+
ut.init(e, t), E.init(e, t);
|
|
3472
3474
|
});
|
|
3473
3475
|
function url(e) {
|
|
3474
|
-
return /* @__PURE__ */ _url(
|
|
3475
|
-
}
|
|
3476
|
-
var
|
|
3477
|
-
|
|
3478
|
-
}),
|
|
3479
|
-
|
|
3480
|
-
}),
|
|
3481
|
-
|
|
3482
|
-
}),
|
|
3483
|
-
|
|
3484
|
-
}),
|
|
3485
|
-
|
|
3486
|
-
}),
|
|
3487
|
-
|
|
3488
|
-
}),
|
|
3489
|
-
|
|
3490
|
-
}),
|
|
3491
|
-
|
|
3492
|
-
}),
|
|
3493
|
-
|
|
3494
|
-
}),
|
|
3495
|
-
|
|
3496
|
-
}),
|
|
3497
|
-
|
|
3498
|
-
}),
|
|
3499
|
-
|
|
3500
|
-
}),
|
|
3501
|
-
|
|
3502
|
-
}),
|
|
3503
|
-
|
|
3504
|
-
}),
|
|
3505
|
-
|
|
3506
|
-
}),
|
|
3507
|
-
|
|
3476
|
+
return /* @__PURE__ */ _url(kn, e);
|
|
3477
|
+
}
|
|
3478
|
+
var An = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
3479
|
+
dt.init(e, t), E.init(e, t);
|
|
3480
|
+
}), jn = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
|
|
3481
|
+
ft.init(e, t), E.init(e, t);
|
|
3482
|
+
}), Mn = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
|
|
3483
|
+
pt.init(e, t), E.init(e, t);
|
|
3484
|
+
}), Nn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
|
|
3485
|
+
mt.init(e, t), E.init(e, t);
|
|
3486
|
+
}), Pn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
|
|
3487
|
+
ht.init(e, t), E.init(e, t);
|
|
3488
|
+
}), Fn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
|
|
3489
|
+
gt.init(e, t), E.init(e, t);
|
|
3490
|
+
}), In = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
|
|
3491
|
+
_t.init(e, t), E.init(e, t);
|
|
3492
|
+
}), Ln = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
|
|
3493
|
+
St.init(e, t), E.init(e, t);
|
|
3494
|
+
}), Rn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
|
|
3495
|
+
Ct.init(e, t), E.init(e, t);
|
|
3496
|
+
}), zn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
|
|
3497
|
+
wt.init(e, t), E.init(e, t);
|
|
3498
|
+
}), Bn = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
|
|
3499
|
+
Tt.init(e, t), E.init(e, t);
|
|
3500
|
+
}), Vn = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
|
|
3501
|
+
Et.init(e, t), E.init(e, t);
|
|
3502
|
+
}), Hn = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
|
|
3503
|
+
Dt.init(e, t), E.init(e, t);
|
|
3504
|
+
}), Un = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
|
|
3505
|
+
Ot.init(e, t), E.init(e, t);
|
|
3506
|
+
}), Wn = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
|
|
3507
|
+
kt.init(e, t), E.init(e, t);
|
|
3508
|
+
}), Gn = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
|
|
3509
|
+
At.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
|
|
3508
3510
|
gt(e, t) {
|
|
3509
3511
|
return this.check(/* @__PURE__ */ _gt(e, t));
|
|
3510
3512
|
},
|
|
@@ -3555,46 +3557,46 @@ var Mn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
|
3555
3557
|
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;
|
|
3556
3558
|
});
|
|
3557
3559
|
function number(e) {
|
|
3558
|
-
return /* @__PURE__ */ _number(
|
|
3560
|
+
return /* @__PURE__ */ _number(Gn, e);
|
|
3559
3561
|
}
|
|
3560
|
-
var
|
|
3561
|
-
|
|
3562
|
+
var Kn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
|
|
3563
|
+
jt.init(e, t), Gn.init(e, t);
|
|
3562
3564
|
});
|
|
3563
3565
|
function int(e) {
|
|
3564
|
-
return /* @__PURE__ */ _int(
|
|
3566
|
+
return /* @__PURE__ */ _int(Kn, e);
|
|
3565
3567
|
}
|
|
3566
|
-
var
|
|
3567
|
-
|
|
3568
|
+
var qn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
|
|
3569
|
+
Mt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
|
|
3568
3570
|
});
|
|
3569
3571
|
function boolean(e) {
|
|
3570
|
-
return /* @__PURE__ */ _boolean(
|
|
3572
|
+
return /* @__PURE__ */ _boolean(qn, e);
|
|
3571
3573
|
}
|
|
3572
|
-
var
|
|
3573
|
-
|
|
3574
|
+
var Jn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
|
|
3575
|
+
Nt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
|
|
3574
3576
|
});
|
|
3575
3577
|
function _null(e) {
|
|
3576
|
-
return /* @__PURE__ */ _null$1(
|
|
3578
|
+
return /* @__PURE__ */ _null$1(Jn, e);
|
|
3577
3579
|
}
|
|
3578
|
-
var
|
|
3579
|
-
|
|
3580
|
+
var Yn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
|
|
3581
|
+
Pt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3580
3582
|
});
|
|
3581
3583
|
function any() {
|
|
3582
|
-
return /* @__PURE__ */ _any(
|
|
3584
|
+
return /* @__PURE__ */ _any(Yn);
|
|
3583
3585
|
}
|
|
3584
|
-
var
|
|
3585
|
-
|
|
3586
|
+
var Xn = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
|
|
3587
|
+
Ft.init(e, t), T.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3586
3588
|
});
|
|
3587
3589
|
function unknown() {
|
|
3588
|
-
return /* @__PURE__ */ _unknown(
|
|
3590
|
+
return /* @__PURE__ */ _unknown(Xn);
|
|
3589
3591
|
}
|
|
3590
|
-
var
|
|
3591
|
-
|
|
3592
|
+
var Zn = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
|
|
3593
|
+
It.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
|
|
3592
3594
|
});
|
|
3593
3595
|
function never(e) {
|
|
3594
|
-
return /* @__PURE__ */ _never(
|
|
3596
|
+
return /* @__PURE__ */ _never(Zn, e);
|
|
3595
3597
|
}
|
|
3596
|
-
var
|
|
3597
|
-
|
|
3598
|
+
var Qn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
3599
|
+
Lt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => arrayProcessor(e, t, n, r), e.element = t.element, _installLazyMethods(e, "ZodArray", {
|
|
3598
3600
|
min(e, t) {
|
|
3599
3601
|
return this.check(/* @__PURE__ */ _minLength(e, t));
|
|
3600
3602
|
},
|
|
@@ -3613,10 +3615,10 @@ var er = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
|
3613
3615
|
});
|
|
3614
3616
|
});
|
|
3615
3617
|
function array(e, t) {
|
|
3616
|
-
return /* @__PURE__ */ _array(
|
|
3618
|
+
return /* @__PURE__ */ _array(Qn, e, t);
|
|
3617
3619
|
}
|
|
3618
|
-
var
|
|
3619
|
-
|
|
3620
|
+
var $n = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
3621
|
+
zt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => objectProcessor(e, t, n, r), defineLazy(e, "shape", () => t.shape), _installLazyMethods(e, "ZodObject", {
|
|
3620
3622
|
keyof() {
|
|
3621
3623
|
return _enum(Object.keys(this._zod.def.shape));
|
|
3622
3624
|
},
|
|
@@ -3666,75 +3668,75 @@ var tr = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
|
3666
3668
|
return omit(this, e);
|
|
3667
3669
|
},
|
|
3668
3670
|
partial(...e) {
|
|
3669
|
-
return partial(
|
|
3671
|
+
return partial(sr, this, e[0]);
|
|
3670
3672
|
},
|
|
3671
3673
|
required(...e) {
|
|
3672
|
-
return required(
|
|
3674
|
+
return required(fr, this, e[0]);
|
|
3673
3675
|
}
|
|
3674
3676
|
});
|
|
3675
3677
|
});
|
|
3676
3678
|
function object(e, t) {
|
|
3677
|
-
return new
|
|
3679
|
+
return new $n({
|
|
3678
3680
|
type: "object",
|
|
3679
3681
|
shape: e ?? {},
|
|
3680
3682
|
...normalizeParams(t)
|
|
3681
3683
|
});
|
|
3682
3684
|
}
|
|
3683
|
-
var
|
|
3684
|
-
|
|
3685
|
+
var er = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
|
|
3686
|
+
Bt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
|
|
3685
3687
|
});
|
|
3686
3688
|
function union(e, t) {
|
|
3687
|
-
return new
|
|
3689
|
+
return new er({
|
|
3688
3690
|
type: "union",
|
|
3689
3691
|
options: e,
|
|
3690
3692
|
...normalizeParams(t)
|
|
3691
3693
|
});
|
|
3692
3694
|
}
|
|
3693
|
-
var
|
|
3694
|
-
|
|
3695
|
+
var tr = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
|
|
3696
|
+
er.init(e, t), Vt.init(e, t);
|
|
3695
3697
|
});
|
|
3696
3698
|
function discriminatedUnion(e, t, n) {
|
|
3697
|
-
return new
|
|
3699
|
+
return new tr({
|
|
3698
3700
|
type: "union",
|
|
3699
3701
|
options: t,
|
|
3700
3702
|
discriminator: e,
|
|
3701
3703
|
...normalizeParams(n)
|
|
3702
3704
|
});
|
|
3703
3705
|
}
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3706
|
+
var nr = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
|
|
3707
|
+
Ht.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
|
|
3706
3708
|
});
|
|
3707
3709
|
function intersection(e, t) {
|
|
3708
|
-
return new
|
|
3710
|
+
return new nr({
|
|
3709
3711
|
type: "intersection",
|
|
3710
3712
|
left: e,
|
|
3711
3713
|
right: t
|
|
3712
3714
|
});
|
|
3713
3715
|
}
|
|
3714
|
-
var
|
|
3715
|
-
|
|
3716
|
+
var rr = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
|
|
3717
|
+
Ut.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => recordProcessor(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
3716
3718
|
});
|
|
3717
3719
|
function record(e, t, n) {
|
|
3718
|
-
return !t || !t._zod ? new
|
|
3720
|
+
return !t || !t._zod ? new rr({
|
|
3719
3721
|
type: "record",
|
|
3720
3722
|
keyType: string(),
|
|
3721
3723
|
valueType: e,
|
|
3722
3724
|
...normalizeParams(t)
|
|
3723
|
-
}) : new
|
|
3725
|
+
}) : new rr({
|
|
3724
3726
|
type: "record",
|
|
3725
3727
|
keyType: e,
|
|
3726
3728
|
valueType: t,
|
|
3727
3729
|
...normalizeParams(n)
|
|
3728
3730
|
});
|
|
3729
3731
|
}
|
|
3730
|
-
var
|
|
3731
|
-
|
|
3732
|
+
var ir = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
3733
|
+
Wt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3732
3734
|
let n = new Set(Object.keys(t.entries));
|
|
3733
3735
|
e.extract = (e, r) => {
|
|
3734
3736
|
let i = {};
|
|
3735
3737
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3736
3738
|
else throw Error(`Key ${r} not found in enum`);
|
|
3737
|
-
return new
|
|
3739
|
+
return new ir({
|
|
3738
3740
|
...t,
|
|
3739
3741
|
checks: [],
|
|
3740
3742
|
...normalizeParams(r),
|
|
@@ -3744,7 +3746,7 @@ var D = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3744
3746
|
let i = { ...t.entries };
|
|
3745
3747
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3746
3748
|
else throw Error(`Key ${t} not found in enum`);
|
|
3747
|
-
return new
|
|
3749
|
+
return new ir({
|
|
3748
3750
|
...t,
|
|
3749
3751
|
checks: [],
|
|
3750
3752
|
...normalizeParams(r),
|
|
@@ -3753,27 +3755,27 @@ var D = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3753
3755
|
};
|
|
3754
3756
|
});
|
|
3755
3757
|
function _enum(e, t) {
|
|
3756
|
-
return new
|
|
3758
|
+
return new ir({
|
|
3757
3759
|
type: "enum",
|
|
3758
3760
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3759
3761
|
...normalizeParams(t)
|
|
3760
3762
|
});
|
|
3761
3763
|
}
|
|
3762
|
-
var
|
|
3763
|
-
|
|
3764
|
+
var ar = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
|
|
3765
|
+
Gt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
3764
3766
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3765
3767
|
return t.values[0];
|
|
3766
3768
|
} });
|
|
3767
3769
|
});
|
|
3768
3770
|
function literal(e, t) {
|
|
3769
|
-
return new
|
|
3771
|
+
return new ar({
|
|
3770
3772
|
type: "literal",
|
|
3771
3773
|
values: Array.isArray(e) ? e : [e],
|
|
3772
3774
|
...normalizeParams(t)
|
|
3773
3775
|
});
|
|
3774
3776
|
}
|
|
3775
|
-
var
|
|
3776
|
-
|
|
3777
|
+
var or = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
3778
|
+
Kt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3777
3779
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
3778
3780
|
n.addIssue = (r) => {
|
|
3779
3781
|
if (typeof r == "string") n.issues.push(issue(r, n.value, t));
|
|
@@ -3787,43 +3789,43 @@ var sr = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
|
3787
3789
|
};
|
|
3788
3790
|
});
|
|
3789
3791
|
function transform(e) {
|
|
3790
|
-
return new
|
|
3792
|
+
return new or({
|
|
3791
3793
|
type: "transform",
|
|
3792
3794
|
transform: e
|
|
3793
3795
|
});
|
|
3794
3796
|
}
|
|
3795
|
-
var
|
|
3796
|
-
|
|
3797
|
+
var sr = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
|
|
3798
|
+
qt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3797
3799
|
});
|
|
3798
3800
|
function optional(e) {
|
|
3799
|
-
return new
|
|
3801
|
+
return new sr({
|
|
3800
3802
|
type: "optional",
|
|
3801
3803
|
innerType: e
|
|
3802
3804
|
});
|
|
3803
3805
|
}
|
|
3804
|
-
var
|
|
3805
|
-
|
|
3806
|
+
var cr = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
|
|
3807
|
+
Jt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3806
3808
|
});
|
|
3807
3809
|
function exactOptional(e) {
|
|
3808
|
-
return new
|
|
3810
|
+
return new cr({
|
|
3809
3811
|
type: "optional",
|
|
3810
3812
|
innerType: e
|
|
3811
3813
|
});
|
|
3812
3814
|
}
|
|
3813
|
-
var
|
|
3814
|
-
|
|
3815
|
+
var lr = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
|
|
3816
|
+
Yt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3815
3817
|
});
|
|
3816
3818
|
function nullable(e) {
|
|
3817
|
-
return new
|
|
3819
|
+
return new lr({
|
|
3818
3820
|
type: "nullable",
|
|
3819
3821
|
innerType: e
|
|
3820
3822
|
});
|
|
3821
3823
|
}
|
|
3822
|
-
var
|
|
3823
|
-
|
|
3824
|
+
var ur = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
|
|
3825
|
+
Xt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3824
3826
|
});
|
|
3825
3827
|
function _default(e, t) {
|
|
3826
|
-
return new
|
|
3828
|
+
return new ur({
|
|
3827
3829
|
type: "default",
|
|
3828
3830
|
innerType: e,
|
|
3829
3831
|
get defaultValue() {
|
|
@@ -3831,11 +3833,11 @@ function _default(e, t) {
|
|
|
3831
3833
|
}
|
|
3832
3834
|
});
|
|
3833
3835
|
}
|
|
3834
|
-
var
|
|
3835
|
-
|
|
3836
|
+
var dr = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
|
|
3837
|
+
Zt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3836
3838
|
});
|
|
3837
3839
|
function prefault(e, t) {
|
|
3838
|
-
return new
|
|
3840
|
+
return new dr({
|
|
3839
3841
|
type: "prefault",
|
|
3840
3842
|
innerType: e,
|
|
3841
3843
|
get defaultValue() {
|
|
@@ -3843,64 +3845,64 @@ function prefault(e, t) {
|
|
|
3843
3845
|
}
|
|
3844
3846
|
});
|
|
3845
3847
|
}
|
|
3846
|
-
var
|
|
3847
|
-
|
|
3848
|
+
var fr = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
|
|
3849
|
+
Qt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3848
3850
|
});
|
|
3849
3851
|
function nonoptional(e, t) {
|
|
3850
|
-
return new
|
|
3852
|
+
return new fr({
|
|
3851
3853
|
type: "nonoptional",
|
|
3852
3854
|
innerType: e,
|
|
3853
3855
|
...normalizeParams(t)
|
|
3854
3856
|
});
|
|
3855
3857
|
}
|
|
3856
|
-
var
|
|
3857
|
-
|
|
3858
|
+
var pr = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
|
|
3859
|
+
$t.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3858
3860
|
});
|
|
3859
3861
|
function _catch(e, t) {
|
|
3860
|
-
return new
|
|
3862
|
+
return new pr({
|
|
3861
3863
|
type: "catch",
|
|
3862
3864
|
innerType: e,
|
|
3863
3865
|
catchValue: typeof t == "function" ? t : () => t
|
|
3864
3866
|
});
|
|
3865
3867
|
}
|
|
3866
|
-
var
|
|
3867
|
-
|
|
3868
|
+
var mr = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
|
|
3869
|
+
en.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3868
3870
|
});
|
|
3869
3871
|
function pipe(e, t) {
|
|
3870
|
-
return new
|
|
3872
|
+
return new mr({
|
|
3871
3873
|
type: "pipe",
|
|
3872
3874
|
in: e,
|
|
3873
3875
|
out: t
|
|
3874
3876
|
});
|
|
3875
3877
|
}
|
|
3876
|
-
var
|
|
3877
|
-
|
|
3878
|
-
}),
|
|
3879
|
-
|
|
3878
|
+
var hr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
|
|
3879
|
+
mr.init(e, t), tn.init(e, t);
|
|
3880
|
+
}), gr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
|
|
3881
|
+
nn.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3880
3882
|
});
|
|
3881
3883
|
function readonly(e) {
|
|
3882
|
-
return new
|
|
3884
|
+
return new gr({
|
|
3883
3885
|
type: "readonly",
|
|
3884
3886
|
innerType: e
|
|
3885
3887
|
});
|
|
3886
3888
|
}
|
|
3887
|
-
var
|
|
3888
|
-
|
|
3889
|
+
var _r = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
|
|
3890
|
+
rn.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
|
|
3889
3891
|
});
|
|
3890
3892
|
function refine(e, t = {}) {
|
|
3891
|
-
return /* @__PURE__ */ _refine(
|
|
3893
|
+
return /* @__PURE__ */ _refine(_r, e, t);
|
|
3892
3894
|
}
|
|
3893
3895
|
function superRefine(e, t) {
|
|
3894
3896
|
return /* @__PURE__ */ _superRefine(e, t);
|
|
3895
3897
|
}
|
|
3896
3898
|
function preprocess(e, t) {
|
|
3897
|
-
return new
|
|
3899
|
+
return new hr({
|
|
3898
3900
|
type: "pipe",
|
|
3899
3901
|
in: transform(e),
|
|
3900
3902
|
out: t
|
|
3901
3903
|
});
|
|
3902
3904
|
}
|
|
3903
|
-
var
|
|
3905
|
+
var vr = object({
|
|
3904
3906
|
platform: _enum([
|
|
3905
3907
|
"linkedin",
|
|
3906
3908
|
"x",
|
|
@@ -3917,38 +3919,38 @@ var yr = object({
|
|
|
3917
3919
|
]),
|
|
3918
3920
|
handle: string(),
|
|
3919
3921
|
url: string().optional()
|
|
3920
|
-
}),
|
|
3922
|
+
}), yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(vr)), br = [
|
|
3921
3923
|
"image",
|
|
3922
3924
|
"audio",
|
|
3923
3925
|
"video",
|
|
3924
3926
|
"document"
|
|
3925
|
-
], O = _enum(
|
|
3927
|
+
], O = _enum(br), xr = [
|
|
3926
3928
|
"avatar",
|
|
3927
3929
|
"cover",
|
|
3928
3930
|
"general"
|
|
3929
|
-
],
|
|
3931
|
+
], k = _enum(xr), Sr = _enum([
|
|
3930
3932
|
"processing",
|
|
3931
3933
|
"active",
|
|
3932
3934
|
"failed",
|
|
3933
3935
|
"deleted"
|
|
3934
|
-
]),
|
|
3936
|
+
]), Cr = _enum([
|
|
3935
3937
|
"low",
|
|
3936
3938
|
"standard",
|
|
3937
3939
|
"high"
|
|
3938
|
-
]),
|
|
3940
|
+
]), wr = _enum([
|
|
3939
3941
|
"jpg",
|
|
3940
3942
|
"jpeg",
|
|
3941
3943
|
"png",
|
|
3942
3944
|
"gif",
|
|
3943
3945
|
"webp",
|
|
3944
3946
|
"svg"
|
|
3945
|
-
]),
|
|
3947
|
+
]), Tr = _enum([
|
|
3946
3948
|
"mp4",
|
|
3947
3949
|
"webm",
|
|
3948
3950
|
"ogg",
|
|
3949
3951
|
"mov",
|
|
3950
3952
|
"avi"
|
|
3951
|
-
]),
|
|
3953
|
+
]), Er = _enum([
|
|
3952
3954
|
"mp3",
|
|
3953
3955
|
"wav",
|
|
3954
3956
|
"ogg",
|
|
@@ -3958,7 +3960,7 @@ var yr = object({
|
|
|
3958
3960
|
"webm",
|
|
3959
3961
|
"m4a",
|
|
3960
3962
|
"mp4"
|
|
3961
|
-
]),
|
|
3963
|
+
]), A = object({
|
|
3962
3964
|
mediaId: string(),
|
|
3963
3965
|
userId: string(),
|
|
3964
3966
|
orgId: string(),
|
|
@@ -3968,9 +3970,9 @@ var yr = object({
|
|
|
3968
3970
|
size: number(),
|
|
3969
3971
|
src: string(),
|
|
3970
3972
|
alt: string().optional(),
|
|
3971
|
-
context:
|
|
3972
|
-
status:
|
|
3973
|
-
quality:
|
|
3973
|
+
context: k.default("general"),
|
|
3974
|
+
status: Sr.default("processing"),
|
|
3975
|
+
quality: Cr.default("standard"),
|
|
3974
3976
|
createdAt: string().optional(),
|
|
3975
3977
|
updatedAt: string().optional()
|
|
3976
3978
|
}).extend({
|
|
@@ -3981,43 +3983,43 @@ var yr = object({
|
|
|
3981
3983
|
height: number().optional(),
|
|
3982
3984
|
duration: number().optional(),
|
|
3983
3985
|
blurhash: string().optional()
|
|
3984
|
-
}).partial(),
|
|
3986
|
+
}).partial(), Dr = object({
|
|
3985
3987
|
duration: number().optional(),
|
|
3986
3988
|
thumbnail: string().optional(),
|
|
3987
3989
|
autoplay: boolean().optional(),
|
|
3988
3990
|
loop: boolean().optional(),
|
|
3989
3991
|
muted: boolean().optional(),
|
|
3990
3992
|
controls: boolean().optional()
|
|
3991
|
-
}),
|
|
3993
|
+
}), Or = object({
|
|
3992
3994
|
duration: number().optional(),
|
|
3993
3995
|
autoplay: boolean().optional(),
|
|
3994
3996
|
loop: boolean().optional(),
|
|
3995
3997
|
muted: boolean().optional(),
|
|
3996
3998
|
controls: boolean().optional()
|
|
3997
|
-
}),
|
|
3999
|
+
}), kr = A.extend({
|
|
3998
4000
|
mediaType: literal("image"),
|
|
3999
|
-
imageFormat:
|
|
4000
|
-
}),
|
|
4001
|
+
imageFormat: wr.optional()
|
|
4002
|
+
}), Ar = A.extend({
|
|
4001
4003
|
mediaType: literal("video"),
|
|
4002
|
-
videoFormat:
|
|
4003
|
-
video:
|
|
4004
|
-
}),
|
|
4004
|
+
videoFormat: Tr.optional(),
|
|
4005
|
+
video: Dr.optional()
|
|
4006
|
+
}), jr = A.extend({
|
|
4005
4007
|
mediaType: literal("audio"),
|
|
4006
|
-
audioFormat:
|
|
4007
|
-
audio:
|
|
4008
|
-
}),
|
|
4008
|
+
audioFormat: Er.optional(),
|
|
4009
|
+
audio: Or.optional()
|
|
4010
|
+
}), Mr = A.extend({ mediaType: literal("document") }), Nr = discriminatedUnion("mediaType", [
|
|
4011
|
+
kr,
|
|
4012
|
+
Ar,
|
|
4009
4013
|
jr,
|
|
4010
|
-
Mr
|
|
4011
|
-
|
|
4012
|
-
Pr
|
|
4013
|
-
]), A = _enum([
|
|
4014
|
+
Mr
|
|
4015
|
+
]), Pr = _enum([
|
|
4014
4016
|
"xxs",
|
|
4015
4017
|
"xs",
|
|
4016
4018
|
"sm",
|
|
4017
4019
|
"md",
|
|
4018
4020
|
"lg",
|
|
4019
4021
|
"xl"
|
|
4020
|
-
]),
|
|
4022
|
+
]), Fr = _enum([
|
|
4021
4023
|
"primary",
|
|
4022
4024
|
"default",
|
|
4023
4025
|
"overlay",
|
|
@@ -4025,7 +4027,7 @@ var yr = object({
|
|
|
4025
4027
|
"green",
|
|
4026
4028
|
"indigo",
|
|
4027
4029
|
"orange"
|
|
4028
|
-
]),
|
|
4030
|
+
]), j = _enum([
|
|
4029
4031
|
"ghost",
|
|
4030
4032
|
"link",
|
|
4031
4033
|
"outline",
|
|
@@ -4034,11 +4036,11 @@ var yr = object({
|
|
|
4034
4036
|
key: string().optional(),
|
|
4035
4037
|
label: string().optional(),
|
|
4036
4038
|
href: string().optional(),
|
|
4037
|
-
size:
|
|
4038
|
-
theme:
|
|
4039
|
-
design:
|
|
4040
|
-
icon: union([string(),
|
|
4041
|
-
iconAfter: union([string(),
|
|
4039
|
+
size: Pr.optional(),
|
|
4040
|
+
theme: Fr.optional(),
|
|
4041
|
+
design: j.optional(),
|
|
4042
|
+
icon: union([string(), A]).optional(),
|
|
4043
|
+
iconAfter: union([string(), A]).optional(),
|
|
4042
4044
|
rounding: _enum([
|
|
4043
4045
|
"full",
|
|
4044
4046
|
"md",
|
|
@@ -4055,12 +4057,12 @@ var yr = object({
|
|
|
4055
4057
|
"submit",
|
|
4056
4058
|
"reset"
|
|
4057
4059
|
]).optional()
|
|
4058
|
-
}),
|
|
4060
|
+
}), Ir = object({
|
|
4059
4061
|
buttons: array(M).optional(),
|
|
4060
|
-
size:
|
|
4061
|
-
theme:
|
|
4062
|
-
design:
|
|
4063
|
-
}),
|
|
4062
|
+
size: Pr.optional(),
|
|
4063
|
+
theme: Fr.optional(),
|
|
4064
|
+
design: j.optional()
|
|
4065
|
+
}), Lr = object({
|
|
4064
4066
|
key: string().optional(),
|
|
4065
4067
|
id: string().optional(),
|
|
4066
4068
|
label: string().optional(),
|
|
@@ -4071,11 +4073,11 @@ var yr = object({
|
|
|
4071
4073
|
info: string().optional(),
|
|
4072
4074
|
count: number().optional(),
|
|
4073
4075
|
className: string().optional(),
|
|
4074
|
-
media:
|
|
4075
|
-
subMedia:
|
|
4076
|
-
cover:
|
|
4077
|
-
icon:
|
|
4078
|
-
iconAfter:
|
|
4076
|
+
media: A.optional(),
|
|
4077
|
+
subMedia: A.optional(),
|
|
4078
|
+
cover: A.optional(),
|
|
4079
|
+
icon: A.optional(),
|
|
4080
|
+
iconAfter: A.optional(),
|
|
4079
4081
|
subIcon: string().optional(),
|
|
4080
4082
|
href: string().optional(),
|
|
4081
4083
|
target: _enum(["_self", "_blank"]).optional(),
|
|
@@ -4090,11 +4092,11 @@ var yr = object({
|
|
|
4090
4092
|
badges: array(M).optional(),
|
|
4091
4093
|
meta: array(M).optional(),
|
|
4092
4094
|
menuItems: array(any()).optional()
|
|
4093
|
-
}),
|
|
4095
|
+
}), Rr = object({
|
|
4094
4096
|
title: string().optional(),
|
|
4095
4097
|
description: string().optional(),
|
|
4096
|
-
items: array(
|
|
4097
|
-
}),
|
|
4098
|
+
items: array(Lr).optional()
|
|
4099
|
+
}), zr = {
|
|
4098
4100
|
colors: {
|
|
4099
4101
|
primary: "#3b82f6",
|
|
4100
4102
|
secondary: "#93c5fd",
|
|
@@ -4113,7 +4115,7 @@ var yr = object({
|
|
|
4113
4115
|
compact: 4,
|
|
4114
4116
|
comfortable: 6
|
|
4115
4117
|
}
|
|
4116
|
-
},
|
|
4118
|
+
}, Br = [
|
|
4117
4119
|
["#6366f1", "#8b5cf6"],
|
|
4118
4120
|
["#3b82f6", "#06b6d4"],
|
|
4119
4121
|
["#10b981", "#34d399"],
|
|
@@ -4129,7 +4131,7 @@ function hashName(e) {
|
|
|
4129
4131
|
return Math.abs(t);
|
|
4130
4132
|
}
|
|
4131
4133
|
function getGradientPair(e) {
|
|
4132
|
-
return
|
|
4134
|
+
return Br[(e ? hashName(e) : 0) % Br.length];
|
|
4133
4135
|
}
|
|
4134
4136
|
function getDefaultAvatarUrl(e) {
|
|
4135
4137
|
let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
|
|
@@ -4159,7 +4161,7 @@ function getWorkspaceMarkUrl(e) {
|
|
|
4159
4161
|
}
|
|
4160
4162
|
//#endregion
|
|
4161
4163
|
//#region ../core/dist/chatIssue.js
|
|
4162
|
-
var
|
|
4164
|
+
var Vr = _enum(["account", "error"]), N = [
|
|
4163
4165
|
"billing_no_plan",
|
|
4164
4166
|
"billing_seat_limit",
|
|
4165
4167
|
"billing_past_due",
|
|
@@ -4176,7 +4178,7 @@ var Hr = _enum(["account", "error"]), N = [
|
|
|
4176
4178
|
"tool_protocol",
|
|
4177
4179
|
"rate_limit"
|
|
4178
4180
|
], P = object({
|
|
4179
|
-
bucket:
|
|
4181
|
+
bucket: Vr,
|
|
4180
4182
|
code: _enum(N),
|
|
4181
4183
|
title: string(),
|
|
4182
4184
|
help: string().optional(),
|
|
@@ -4318,28 +4320,28 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4318
4320
|
"unreachable",
|
|
4319
4321
|
"stopping",
|
|
4320
4322
|
"error"
|
|
4321
|
-
]),
|
|
4323
|
+
]), Hr = _enum([
|
|
4322
4324
|
"wake",
|
|
4323
4325
|
"sleep",
|
|
4324
4326
|
"restart",
|
|
4325
4327
|
"rebuild",
|
|
4326
4328
|
"config_apply"
|
|
4327
|
-
]),
|
|
4329
|
+
]), Ur = _enum([
|
|
4328
4330
|
"running",
|
|
4329
4331
|
"coalesced",
|
|
4330
4332
|
"failed"
|
|
4331
4333
|
]), R = object({
|
|
4332
|
-
kind:
|
|
4333
|
-
status:
|
|
4334
|
+
kind: Hr,
|
|
4335
|
+
status: Ur,
|
|
4334
4336
|
startedAt: string().datetime(),
|
|
4335
4337
|
detail: string().optional()
|
|
4336
|
-
}).strict(),
|
|
4338
|
+
}).strict(), Wr = object({
|
|
4337
4339
|
lifecycle: L,
|
|
4338
4340
|
changedAt: string().datetime().optional(),
|
|
4339
4341
|
detail: string().optional(),
|
|
4340
4342
|
blocker: P.optional(),
|
|
4341
4343
|
operation: R.optional()
|
|
4342
|
-
}).strict(),
|
|
4344
|
+
}).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
|
|
4343
4345
|
running: "green",
|
|
4344
4346
|
starting: "amber",
|
|
4345
4347
|
stopping: "amber",
|
|
@@ -4348,7 +4350,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4348
4350
|
error: "red",
|
|
4349
4351
|
stopped: "grey",
|
|
4350
4352
|
unknown: "grey"
|
|
4351
|
-
},
|
|
4353
|
+
}, qr = {
|
|
4352
4354
|
running: "Online",
|
|
4353
4355
|
starting: "Waking up",
|
|
4354
4356
|
stopping: "Stopping",
|
|
@@ -4357,7 +4359,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4357
4359
|
error: "Error",
|
|
4358
4360
|
stopped: "Asleep",
|
|
4359
4361
|
unknown: "Checking"
|
|
4360
|
-
},
|
|
4362
|
+
}, Jr = {
|
|
4361
4363
|
wake: "Waking up",
|
|
4362
4364
|
sleep: "Stopping",
|
|
4363
4365
|
restart: "Restarting",
|
|
@@ -4365,7 +4367,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4365
4367
|
config_apply: "Applying config"
|
|
4366
4368
|
};
|
|
4367
4369
|
function toAgentState(e, t) {
|
|
4368
|
-
let n = e.operation, r =
|
|
4370
|
+
let n = e.operation, r = qr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Jr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
|
|
4369
4371
|
return {
|
|
4370
4372
|
...e,
|
|
4371
4373
|
color: s,
|
|
@@ -4373,7 +4375,7 @@ function toAgentState(e, t) {
|
|
|
4373
4375
|
tooltip: c
|
|
4374
4376
|
};
|
|
4375
4377
|
}
|
|
4376
|
-
var
|
|
4378
|
+
var Yr = _enum([
|
|
4377
4379
|
"wake",
|
|
4378
4380
|
"sleep",
|
|
4379
4381
|
"restart",
|
|
@@ -4394,7 +4396,7 @@ function isAgentReady(e) {
|
|
|
4394
4396
|
default: return !1;
|
|
4395
4397
|
}
|
|
4396
4398
|
}
|
|
4397
|
-
var
|
|
4399
|
+
var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4398
4400
|
platform: _enum([
|
|
4399
4401
|
"linkedin",
|
|
4400
4402
|
"x",
|
|
@@ -4421,11 +4423,11 @@ var Zr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4421
4423
|
entityType: string().optional(),
|
|
4422
4424
|
avatarId: string().nullable().optional(),
|
|
4423
4425
|
coverId: string().nullable().optional(),
|
|
4424
|
-
avatar:
|
|
4425
|
-
cover:
|
|
4426
|
+
avatar: A.optional(),
|
|
4427
|
+
cover: A.optional(),
|
|
4426
4428
|
email: string().nullable().optional(),
|
|
4427
4429
|
website: string().url().nullable().optional(),
|
|
4428
|
-
accounts:
|
|
4430
|
+
accounts: Xr.nullable().optional(),
|
|
4429
4431
|
model: string().nullable().optional(),
|
|
4430
4432
|
lastActiveAt: string().nullable().optional(),
|
|
4431
4433
|
lastMessageAt: string().nullable().optional(),
|
|
@@ -4458,7 +4460,7 @@ var Zr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4458
4460
|
detail: string().optional(),
|
|
4459
4461
|
blocker: P.optional(),
|
|
4460
4462
|
operation: R.optional()
|
|
4461
|
-
}),
|
|
4463
|
+
}), Zr = Object.keys(B.shape), V = class Agent extends SettingsObject {
|
|
4462
4464
|
constructor(e) {
|
|
4463
4465
|
let t = "config" in e ? {
|
|
4464
4466
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4473,7 +4475,7 @@ var Zr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4473
4475
|
}, this.displayName.value)), this.avatarUrl = n(() => this.avatar.value?.src || getDefaultAvatarUrl(this.name.value)), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
|
|
4474
4476
|
}
|
|
4475
4477
|
merge(e) {
|
|
4476
|
-
for (let t of
|
|
4478
|
+
for (let t of Zr) {
|
|
4477
4479
|
if (!(t in e)) continue;
|
|
4478
4480
|
let n = this[t];
|
|
4479
4481
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4481,7 +4483,7 @@ var Zr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4481
4483
|
}
|
|
4482
4484
|
toConfig() {
|
|
4483
4485
|
let e = {};
|
|
4484
|
-
for (let t of
|
|
4486
|
+
for (let t of Zr) {
|
|
4485
4487
|
let n = this[t];
|
|
4486
4488
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4487
4489
|
}
|
|
@@ -4502,13 +4504,13 @@ function createAgents(e) {
|
|
|
4502
4504
|
}
|
|
4503
4505
|
//#endregion
|
|
4504
4506
|
//#region ../core/dist/types/user.js
|
|
4505
|
-
var
|
|
4507
|
+
var Qr = object({
|
|
4506
4508
|
userId: string(),
|
|
4507
4509
|
email: string().optional(),
|
|
4508
4510
|
handle: string().optional(),
|
|
4509
4511
|
fullName: string().optional(),
|
|
4510
4512
|
avatarId: string().optional(),
|
|
4511
|
-
avatar:
|
|
4513
|
+
avatar: A.optional(),
|
|
4512
4514
|
isEmailVerified: boolean().optional(),
|
|
4513
4515
|
primaryAgentId: string().optional(),
|
|
4514
4516
|
primaryOrgId: string().optional(),
|
|
@@ -4523,7 +4525,7 @@ var $r = object({
|
|
|
4523
4525
|
createdAt: string().optional(),
|
|
4524
4526
|
updatedAt: string().optional(),
|
|
4525
4527
|
onboarded: boolean().optional()
|
|
4526
|
-
}),
|
|
4528
|
+
}), $r = object({
|
|
4527
4529
|
name: string().min(1).max(100).optional(),
|
|
4528
4530
|
avatar: object({
|
|
4529
4531
|
src: string(),
|
|
@@ -4533,27 +4535,27 @@ var $r = object({
|
|
|
4533
4535
|
primaryOrgId: string().optional(),
|
|
4534
4536
|
lastActiveOrgId: string().optional(),
|
|
4535
4537
|
onboarding: any().optional()
|
|
4536
|
-
}).partial(),
|
|
4538
|
+
}).partial(), ei = object({ email: string() }), ti = object({
|
|
4537
4539
|
email: string(),
|
|
4538
4540
|
password: string().min(8, "Password must be at least 8 characters")
|
|
4539
|
-
}),
|
|
4541
|
+
}), ni = object({
|
|
4540
4542
|
email: string(),
|
|
4541
4543
|
password: string().min(8, "Password must be at least 8 characters"),
|
|
4542
4544
|
fullName: string().min(1, "Name is required")
|
|
4543
|
-
}),
|
|
4545
|
+
}), ri = object({
|
|
4544
4546
|
email: string(),
|
|
4545
4547
|
code: string().min(6, "Verification code is required"),
|
|
4546
4548
|
timezone: string().max(64).optional()
|
|
4547
|
-
}),
|
|
4549
|
+
}), ii = object({
|
|
4548
4550
|
email: string(),
|
|
4549
4551
|
code: string().min(6, "Verification code is required"),
|
|
4550
4552
|
newPassword: string().min(8, "New password must be at least 8 characters")
|
|
4551
|
-
}),
|
|
4553
|
+
}), ai = object({ newEmail: string() }), oi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), si = object({
|
|
4552
4554
|
credential: string().optional(),
|
|
4553
4555
|
code: string().optional(),
|
|
4554
4556
|
timezone: string().max(64).optional(),
|
|
4555
4557
|
source: _enum(["web", "ios"]).optional()
|
|
4556
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4558
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), ci = object({
|
|
4557
4559
|
identityToken: string().min(1),
|
|
4558
4560
|
fullName: string().optional(),
|
|
4559
4561
|
timezone: string().max(64).optional()
|
|
@@ -4565,10 +4567,10 @@ var $r = object({
|
|
|
4565
4567
|
website: string().url().nullable().optional(),
|
|
4566
4568
|
summary: string().nullable().optional(),
|
|
4567
4569
|
avatarId: string().nullable().optional(),
|
|
4568
|
-
avatar:
|
|
4570
|
+
avatar: A.optional(),
|
|
4569
4571
|
coverId: string().nullable().optional(),
|
|
4570
|
-
cover:
|
|
4571
|
-
accounts:
|
|
4572
|
+
cover: A.optional(),
|
|
4573
|
+
accounts: yr.nullable().optional(),
|
|
4572
4574
|
ownerId: string().optional(),
|
|
4573
4575
|
isPersonal: boolean().optional(),
|
|
4574
4576
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
@@ -4587,7 +4589,7 @@ var $r = object({
|
|
|
4587
4589
|
status: string().optional(),
|
|
4588
4590
|
createdAt: string().optional(),
|
|
4589
4591
|
updatedAt: string().optional()
|
|
4590
|
-
}),
|
|
4592
|
+
}), li = H.extend({
|
|
4591
4593
|
defaultAgent: object({
|
|
4592
4594
|
agentId: string(),
|
|
4593
4595
|
handle: string(),
|
|
@@ -4595,22 +4597,22 @@ var $r = object({
|
|
|
4595
4597
|
orgId: string()
|
|
4596
4598
|
}),
|
|
4597
4599
|
onboardingCompleted: boolean().optional()
|
|
4598
|
-
}),
|
|
4600
|
+
}), ui = object({
|
|
4599
4601
|
completedAt: string().datetime().optional(),
|
|
4600
4602
|
setupBy: string().optional(),
|
|
4601
4603
|
billingSetup: boolean().optional(),
|
|
4602
4604
|
teamInvitesSetup: boolean().optional(),
|
|
4603
4605
|
brandingSetup: boolean().optional(),
|
|
4604
4606
|
domainsSetup: boolean().optional()
|
|
4605
|
-
}),
|
|
4607
|
+
}), di = object({
|
|
4606
4608
|
membershipId: string(),
|
|
4607
4609
|
orgId: string(),
|
|
4608
4610
|
name: string(),
|
|
4609
4611
|
handle: string(),
|
|
4610
4612
|
avatarId: string().optional(),
|
|
4611
|
-
avatar:
|
|
4613
|
+
avatar: A.optional(),
|
|
4612
4614
|
coverId: string().optional(),
|
|
4613
|
-
cover:
|
|
4615
|
+
cover: A.optional(),
|
|
4614
4616
|
role: _enum([
|
|
4615
4617
|
"owner",
|
|
4616
4618
|
"admin",
|
|
@@ -4620,9 +4622,9 @@ var $r = object({
|
|
|
4620
4622
|
memberCount: number().optional(),
|
|
4621
4623
|
agentCount: number().optional(),
|
|
4622
4624
|
joinedAt: string().datetime(),
|
|
4623
|
-
onboarding:
|
|
4624
|
-
}),
|
|
4625
|
-
orgs: array(
|
|
4625
|
+
onboarding: ui.optional()
|
|
4626
|
+
}), fi = Qr.extend({
|
|
4627
|
+
orgs: array(di).optional(),
|
|
4626
4628
|
agents: array(z).optional()
|
|
4627
4629
|
});
|
|
4628
4630
|
//#endregion
|
|
@@ -4646,7 +4648,7 @@ function derive(e) {
|
|
|
4646
4648
|
}
|
|
4647
4649
|
//#endregion
|
|
4648
4650
|
//#region ../core/dist/bot-ua.js
|
|
4649
|
-
var
|
|
4651
|
+
var pi = "pagelines-agent/1.0", U = [
|
|
4650
4652
|
"[SILENT]",
|
|
4651
4653
|
"SILENT",
|
|
4652
4654
|
"NO_REPLY",
|
|
@@ -4660,13 +4662,13 @@ var mi = "pagelines-agent/1.0", U = [
|
|
|
4660
4662
|
"[NO_OP]",
|
|
4661
4663
|
"[NO OP]",
|
|
4662
4664
|
"HEARTBEAT_OK"
|
|
4663
|
-
],
|
|
4665
|
+
], mi = new Set(U);
|
|
4664
4666
|
function normalizeAssistantControl(e) {
|
|
4665
4667
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4666
4668
|
}
|
|
4667
4669
|
function isAssistantSilenceControl(e) {
|
|
4668
4670
|
let t = normalizeAssistantControl(e);
|
|
4669
|
-
return t.length <= 64 &&
|
|
4671
|
+
return t.length <= 64 && mi.has(t);
|
|
4670
4672
|
}
|
|
4671
4673
|
function isAssistantSilenceControlPrefix(e) {
|
|
4672
4674
|
let t = normalizeAssistantControl(e);
|
|
@@ -4674,7 +4676,7 @@ function isAssistantSilenceControlPrefix(e) {
|
|
|
4674
4676
|
}
|
|
4675
4677
|
//#endregion
|
|
4676
4678
|
//#region ../core/dist/timingBudgets.js
|
|
4677
|
-
var
|
|
4679
|
+
var hi = {
|
|
4678
4680
|
wake: 300 * 1e3,
|
|
4679
4681
|
bootGrace: 420 * 1e3,
|
|
4680
4682
|
stop: 30 * 1e3
|
|
@@ -4692,12 +4694,12 @@ function formatBudgetDuration(e) {
|
|
|
4692
4694
|
}
|
|
4693
4695
|
//#endregion
|
|
4694
4696
|
//#region ../core/dist/paths.js
|
|
4695
|
-
var
|
|
4697
|
+
var gi = "/api/bot-api", _i = "/api/bot-api/v1";
|
|
4696
4698
|
function botApiLlmUrl(e) {
|
|
4697
|
-
return `${e}${
|
|
4699
|
+
return `${e}${_i}`;
|
|
4698
4700
|
}
|
|
4699
4701
|
function botApiUrl(e) {
|
|
4700
|
-
return `${e}${
|
|
4702
|
+
return `${e}${gi}`;
|
|
4701
4703
|
}
|
|
4702
4704
|
//#endregion
|
|
4703
4705
|
//#region ../core/dist/errorCopy.js
|
|
@@ -4730,7 +4732,7 @@ var W = {
|
|
|
4730
4732
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4731
4733
|
FORBIDDEN: "You don't have access to this.",
|
|
4732
4734
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4733
|
-
},
|
|
4735
|
+
}, vi = {
|
|
4734
4736
|
notFound: "Not found. Try refreshing.",
|
|
4735
4737
|
busy: "Busy — try again in a moment.",
|
|
4736
4738
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4743,7 +4745,7 @@ function errorCopy(e, t) {
|
|
|
4743
4745
|
return e && e in W ? W[e] : t;
|
|
4744
4746
|
}
|
|
4745
4747
|
function errorFromApiResponse(e, t) {
|
|
4746
|
-
return e.code && e.code in W ? W[e.code] : e.providerErrorKind &&
|
|
4748
|
+
return e.code && e.code in W ? W[e.code] : e.providerErrorKind && vi[e.providerErrorKind] ? vi[e.providerErrorKind] : e.error || t;
|
|
4747
4749
|
}
|
|
4748
4750
|
//#endregion
|
|
4749
4751
|
//#region ../core/dist/retryPolicy.js
|
|
@@ -4812,7 +4814,7 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4812
4814
|
} catch {
|
|
4813
4815
|
return !1;
|
|
4814
4816
|
}
|
|
4815
|
-
}, "Invalid IANA timezone"),
|
|
4817
|
+
}, "Invalid IANA timezone"), yi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), bi = object({
|
|
4816
4818
|
orgId: string(),
|
|
4817
4819
|
name: string().min(1).max(100),
|
|
4818
4820
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -4826,7 +4828,7 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4826
4828
|
"org",
|
|
4827
4829
|
"public"
|
|
4828
4830
|
]).optional()
|
|
4829
|
-
}).strict(),
|
|
4831
|
+
}).strict(), xi = object({
|
|
4830
4832
|
name: string().min(1).max(100).optional(),
|
|
4831
4833
|
handle: string().min(2).max(50).optional(),
|
|
4832
4834
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -4843,13 +4845,13 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4843
4845
|
"org",
|
|
4844
4846
|
"public"
|
|
4845
4847
|
]).optional(),
|
|
4846
|
-
automationPrimaryChannel:
|
|
4848
|
+
automationPrimaryChannel: yi.optional(),
|
|
4847
4849
|
heartbeatEnabled: boolean().optional()
|
|
4848
|
-
}).strict(),
|
|
4850
|
+
}).strict(), Si = B, Ci = object({
|
|
4849
4851
|
id: string(),
|
|
4850
4852
|
label: string(),
|
|
4851
4853
|
prompt: string()
|
|
4852
|
-
}),
|
|
4854
|
+
}), wi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.WAKE_FAILED".split("."), q = _enum(wi), Ti = _enum([
|
|
4853
4855
|
"notFound",
|
|
4854
4856
|
"busy",
|
|
4855
4857
|
"rateLimited",
|
|
@@ -4860,13 +4862,13 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4860
4862
|
]), zApiOk = (e) => object({
|
|
4861
4863
|
ok: literal(!0),
|
|
4862
4864
|
data: e
|
|
4863
|
-
}),
|
|
4865
|
+
}), Ei = object({
|
|
4864
4866
|
ok: literal(!1),
|
|
4865
4867
|
error: string(),
|
|
4866
4868
|
code: q.optional(),
|
|
4867
4869
|
issue: P.optional(),
|
|
4868
|
-
providerErrorKind:
|
|
4869
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
4870
|
+
providerErrorKind: Ti.optional()
|
|
4871
|
+
}), zApiResponse = (e) => union([zApiOk(e), Ei]);
|
|
4870
4872
|
function apiError(e, t, n) {
|
|
4871
4873
|
return n ? {
|
|
4872
4874
|
ok: !1,
|
|
@@ -4887,7 +4889,7 @@ function apiOk(e) {
|
|
|
4887
4889
|
}
|
|
4888
4890
|
//#endregion
|
|
4889
4891
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
4890
|
-
var
|
|
4892
|
+
var Di = object({
|
|
4891
4893
|
kind: _enum([
|
|
4892
4894
|
"icon",
|
|
4893
4895
|
"favicon",
|
|
@@ -4920,12 +4922,12 @@ var Oi = object({
|
|
|
4920
4922
|
endedAt: string().datetime().optional(),
|
|
4921
4923
|
durationMs: number().int().nonnegative().optional(),
|
|
4922
4924
|
note: string().trim().min(1).optional(),
|
|
4923
|
-
visual:
|
|
4924
|
-
}).strict(),
|
|
4925
|
+
visual: Di.optional()
|
|
4926
|
+
}).strict(), Oi = J.extend({ status: _enum(["completed", "failed"]) }), ki = O, Ai = object({
|
|
4925
4927
|
kind: literal("inline"),
|
|
4926
4928
|
offset: number().int().nonnegative()
|
|
4927
4929
|
}), Y = object({
|
|
4928
|
-
type:
|
|
4930
|
+
type: ki,
|
|
4929
4931
|
src: url(),
|
|
4930
4932
|
filename: string().min(1),
|
|
4931
4933
|
mimeType: string().min(1),
|
|
@@ -4935,12 +4937,12 @@ var Oi = object({
|
|
|
4935
4937
|
height: number().int().positive().optional(),
|
|
4936
4938
|
duration: number().nonnegative().optional(),
|
|
4937
4939
|
text: string().optional(),
|
|
4938
|
-
placement:
|
|
4939
|
-
}),
|
|
4940
|
+
placement: Ai.optional()
|
|
4941
|
+
}), ji = object({
|
|
4940
4942
|
turnId: string().min(1).optional(),
|
|
4941
4943
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
4942
4944
|
attachments: array(Y).optional(),
|
|
4943
|
-
toolActivities: array(
|
|
4945
|
+
toolActivities: array(Oi).optional(),
|
|
4944
4946
|
issue: object({
|
|
4945
4947
|
code: string(),
|
|
4946
4948
|
bucket: _enum(["account", "error"]),
|
|
@@ -4949,7 +4951,7 @@ var Oi = object({
|
|
|
4949
4951
|
help: string().optional()
|
|
4950
4952
|
}).optional(),
|
|
4951
4953
|
notification: object({ push: boolean().optional() }).optional()
|
|
4952
|
-
}).catchall(unknown()),
|
|
4954
|
+
}).catchall(unknown()), Mi = object({
|
|
4953
4955
|
messageId: string().min(1),
|
|
4954
4956
|
conversationId: string().min(1),
|
|
4955
4957
|
role: _enum([
|
|
@@ -4962,12 +4964,12 @@ var Oi = object({
|
|
|
4962
4964
|
content: string(),
|
|
4963
4965
|
sequence: string().min(1),
|
|
4964
4966
|
clientNonce: string().nullable().optional(),
|
|
4965
|
-
metadata:
|
|
4967
|
+
metadata: ji.nullable().optional(),
|
|
4966
4968
|
status: string().nullable().optional(),
|
|
4967
4969
|
createdAt: string(),
|
|
4968
4970
|
updatedAt: string()
|
|
4969
|
-
}),
|
|
4970
|
-
type:
|
|
4971
|
+
}), Ni = object({
|
|
4972
|
+
type: ki,
|
|
4971
4973
|
mediaId: string().min(1).optional(),
|
|
4972
4974
|
url: url().optional(),
|
|
4973
4975
|
name: string().min(1).optional(),
|
|
@@ -4983,11 +4985,11 @@ var Oi = object({
|
|
|
4983
4985
|
path: [n],
|
|
4984
4986
|
message: `${n} is required when mediaId is absent`
|
|
4985
4987
|
});
|
|
4986
|
-
}),
|
|
4988
|
+
}), Pi = object({
|
|
4987
4989
|
conversationId: string().min(1),
|
|
4988
4990
|
content: string().max(1e4).default(""),
|
|
4989
4991
|
clientNonce: string().max(64).optional(),
|
|
4990
|
-
attachments: array(
|
|
4992
|
+
attachments: array(Ni).max(10).optional(),
|
|
4991
4993
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
4992
4994
|
actionUrls: object({
|
|
4993
4995
|
billing: string().max(500),
|
|
@@ -4997,7 +4999,7 @@ var Oi = object({
|
|
|
4997
4999
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
4998
5000
|
path: ["content"],
|
|
4999
5001
|
message: "Message or attachment required"
|
|
5000
|
-
}),
|
|
5002
|
+
}), Fi = object({
|
|
5001
5003
|
type: _enum(["user", "agent"]),
|
|
5002
5004
|
id: string().min(1)
|
|
5003
5005
|
}).strict();
|
|
@@ -5014,10 +5016,10 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5014
5016
|
}
|
|
5015
5017
|
var Ii = object({
|
|
5016
5018
|
orgId: string().min(1),
|
|
5017
|
-
participants: array(
|
|
5019
|
+
participants: array(Fi).min(1).max(20)
|
|
5018
5020
|
}).strict().superRefine(addDuplicateConversationTargetIssues), Li = object({
|
|
5019
5021
|
orgId: string().min(1),
|
|
5020
|
-
participants: array(
|
|
5022
|
+
participants: array(Fi).min(1).max(20)
|
|
5021
5023
|
}).strict().superRefine((e, t) => {
|
|
5022
5024
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5023
5025
|
code: "custom",
|
|
@@ -5124,7 +5126,7 @@ var Ii = object({
|
|
|
5124
5126
|
}), aa = object({
|
|
5125
5127
|
updated: number(),
|
|
5126
5128
|
errors: array(string())
|
|
5127
|
-
}), oa =
|
|
5129
|
+
}), oa = Wr, sa = object({
|
|
5128
5130
|
code: q,
|
|
5129
5131
|
message: string(),
|
|
5130
5132
|
bucket: _enum(["account", "error"]).optional(),
|
|
@@ -5138,7 +5140,7 @@ var Ii = object({
|
|
|
5138
5140
|
}),
|
|
5139
5141
|
object({
|
|
5140
5142
|
event: literal("message"),
|
|
5141
|
-
data: object({ message:
|
|
5143
|
+
data: object({ message: Mi })
|
|
5142
5144
|
}),
|
|
5143
5145
|
object({
|
|
5144
5146
|
event: literal("message_delta"),
|
|
@@ -5204,7 +5206,7 @@ function withChatEventTurnId(e, t) {
|
|
|
5204
5206
|
//#endregion
|
|
5205
5207
|
//#region ../core/dist/wire/chat-turn-stream.js
|
|
5206
5208
|
async function runAuthenticatedChatTurnStream(e) {
|
|
5207
|
-
let t = e.fetchFn ?? fetch, n = e.headers ?? {}, r = !1, i = !1, a = !1, o = !1, s, c = !1, l = !1, u, d = new AbortController(), f = !1, p, resolveStreamReady = () => {},
|
|
5209
|
+
let t = e.fetchFn ?? fetch, n = e.headers ?? {}, r = !1, i = !1, a = !1, o = !1, s, c = !1, l = !1, u, d = new AbortController(), f = !1, p, resolveStreamReady = () => {}, m = new Promise((e) => {
|
|
5208
5210
|
resolveStreamReady = e;
|
|
5209
5211
|
}), settleStreamReady = (e) => {
|
|
5210
5212
|
f || (f = !0, p && clearTimeout(p), resolveStreamReady(e));
|
|
@@ -5219,7 +5221,7 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5219
5221
|
p = setTimeout(() => {
|
|
5220
5222
|
l = !0, fail("stream-open", "Timed out opening stream"), d.abort(), settleStreamReady("failed");
|
|
5221
5223
|
}, e.streamOpenTimeoutMs ?? 1e4);
|
|
5222
|
-
let
|
|
5224
|
+
let h = (async () => {
|
|
5223
5225
|
try {
|
|
5224
5226
|
let c = await t(e.streamUrl, {
|
|
5225
5227
|
headers: n,
|
|
@@ -5261,12 +5263,12 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5261
5263
|
} catch {}
|
|
5262
5264
|
}
|
|
5263
5265
|
})();
|
|
5264
|
-
if (await
|
|
5265
|
-
await
|
|
5266
|
+
if (await m === "failed") {
|
|
5267
|
+
await h;
|
|
5266
5268
|
return;
|
|
5267
5269
|
}
|
|
5268
5270
|
if (c) {
|
|
5269
|
-
fail("stream-open", "Stream closed before send"), await
|
|
5271
|
+
fail("stream-open", "Stream closed before send"), await h;
|
|
5270
5272
|
return;
|
|
5271
5273
|
}
|
|
5272
5274
|
try {
|
|
@@ -5284,15 +5286,15 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5284
5286
|
stage: "api",
|
|
5285
5287
|
message: c.error || `Send failed: HTTP ${o.status}`,
|
|
5286
5288
|
...c.code ? { code: c.code } : {}
|
|
5287
|
-
}), await
|
|
5289
|
+
}), await h;
|
|
5288
5290
|
return;
|
|
5289
5291
|
}
|
|
5290
5292
|
s = c.data.messageId, e.onUserMessage?.(c.data);
|
|
5291
5293
|
} catch (e) {
|
|
5292
|
-
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await
|
|
5294
|
+
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await h;
|
|
5293
5295
|
return;
|
|
5294
5296
|
}
|
|
5295
|
-
await
|
|
5297
|
+
await h;
|
|
5296
5298
|
}
|
|
5297
5299
|
async function streamOpenErrorMessage(e) {
|
|
5298
5300
|
let t = "";
|
|
@@ -5333,7 +5335,7 @@ function parseChatEvent(e) {
|
|
|
5333
5335
|
}
|
|
5334
5336
|
//#endregion
|
|
5335
5337
|
//#region ../core/dist/wire/chat-visual.js
|
|
5336
|
-
var la = string().trim().min(1).max(240), ua = string().trim().min(1).max(800),
|
|
5338
|
+
var la = string().trim().min(1).max(240), ua = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), da = record(X, union([
|
|
5337
5339
|
string().max(500),
|
|
5338
5340
|
number().finite(),
|
|
5339
5341
|
boolean(),
|
|
@@ -5350,16 +5352,16 @@ var la = string().trim().min(1).max(240), ua = string().trim().min(1).max(800),
|
|
|
5350
5352
|
description: ua.optional(),
|
|
5351
5353
|
footer: ua.optional()
|
|
5352
5354
|
}).strip(), ma = object({
|
|
5353
|
-
dataKey:
|
|
5354
|
-
label:
|
|
5355
|
-
axisLabel:
|
|
5355
|
+
dataKey: X,
|
|
5356
|
+
label: Z.optional(),
|
|
5357
|
+
axisLabel: Z.optional(),
|
|
5356
5358
|
valueFormat: fa.optional(),
|
|
5357
5359
|
valuePrefix: string().trim().max(12).optional(),
|
|
5358
5360
|
valueSuffix: string().trim().max(12).optional()
|
|
5359
5361
|
}).strip(), ha = object({
|
|
5360
5362
|
kind: literal("linear"),
|
|
5361
|
-
dataKey:
|
|
5362
|
-
label:
|
|
5363
|
+
dataKey: X,
|
|
5364
|
+
label: Z.optional()
|
|
5363
5365
|
}).strip(), ga = object({
|
|
5364
5366
|
version: literal(1),
|
|
5365
5367
|
meta: pa,
|
|
@@ -5411,8 +5413,8 @@ var _a = discriminatedUnion("chartType", [ga.extend({
|
|
|
5411
5413
|
"line",
|
|
5412
5414
|
"scatter"
|
|
5413
5415
|
]),
|
|
5414
|
-
xKey:
|
|
5415
|
-
xAxisLabel:
|
|
5416
|
+
xKey: X,
|
|
5417
|
+
xAxisLabel: Z.optional(),
|
|
5416
5418
|
series: array(ma).min(1).max(6),
|
|
5417
5419
|
data: array(da).min(1).max(120),
|
|
5418
5420
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
@@ -5458,8 +5460,8 @@ var _a = discriminatedUnion("chartType", [ga.extend({
|
|
|
5458
5460
|
}), ga.extend({
|
|
5459
5461
|
visualType: literal("chart"),
|
|
5460
5462
|
chartType: literal("pie"),
|
|
5461
|
-
nameKey:
|
|
5462
|
-
valueKey:
|
|
5463
|
+
nameKey: X,
|
|
5464
|
+
valueKey: X,
|
|
5463
5465
|
series: array(ma).max(1).optional(),
|
|
5464
5466
|
data: array(da).min(1).max(16)
|
|
5465
5467
|
}).strip().superRefine((e, t) => {
|
|
@@ -5486,8 +5488,8 @@ var _a = discriminatedUnion("chartType", [ga.extend({
|
|
|
5486
5488
|
nonnegative: !0
|
|
5487
5489
|
}], t);
|
|
5488
5490
|
})]), va = object({
|
|
5489
|
-
id:
|
|
5490
|
-
label:
|
|
5491
|
+
id: X,
|
|
5492
|
+
label: Z,
|
|
5491
5493
|
detail: ua.optional(),
|
|
5492
5494
|
kind: _enum([
|
|
5493
5495
|
"actor",
|
|
@@ -5500,9 +5502,9 @@ var _a = discriminatedUnion("chartType", [ga.extend({
|
|
|
5500
5502
|
"task"
|
|
5501
5503
|
]).optional()
|
|
5502
5504
|
}).strip(), ya = object({
|
|
5503
|
-
from:
|
|
5504
|
-
to:
|
|
5505
|
-
label:
|
|
5505
|
+
from: X,
|
|
5506
|
+
to: X,
|
|
5507
|
+
label: Z.optional()
|
|
5506
5508
|
}).strip(), ba = union([_a, ga.extend({
|
|
5507
5509
|
visualType: literal("diagram"),
|
|
5508
5510
|
diagramType: _enum([
|
|
@@ -5722,7 +5724,7 @@ var xa = object({
|
|
|
5722
5724
|
lastMessage: Sa.nullable(),
|
|
5723
5725
|
unreadCount: number().int().nonnegative(),
|
|
5724
5726
|
latestSequence: string().nullable()
|
|
5725
|
-
}),
|
|
5727
|
+
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), ka = preprocess((e) => e === void 0 ? null : e, L.nullable()), Aa = preprocess((e) => e === void 0 ? null : e, I.nullable()), ja = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
5726
5728
|
"user",
|
|
5727
5729
|
"assistant",
|
|
5728
5730
|
"system"
|
|
@@ -5731,24 +5733,24 @@ var xa = object({
|
|
|
5731
5733
|
handle: string(),
|
|
5732
5734
|
name: string(),
|
|
5733
5735
|
orgId: string(),
|
|
5734
|
-
orgName:
|
|
5735
|
-
orgHandle:
|
|
5736
|
-
ownerEmail:
|
|
5737
|
-
ownerName:
|
|
5736
|
+
orgName: Q,
|
|
5737
|
+
orgHandle: Q,
|
|
5738
|
+
ownerEmail: Q,
|
|
5739
|
+
ownerName: Q,
|
|
5738
5740
|
state: ka,
|
|
5739
5741
|
desiredStatus: Aa,
|
|
5740
5742
|
runtime: string(),
|
|
5741
|
-
imageVersion:
|
|
5742
|
-
lastHealthyAt:
|
|
5743
|
-
lastActiveAt:
|
|
5744
|
-
lastUserMessageAt:
|
|
5745
|
-
lastMessageAt:
|
|
5743
|
+
imageVersion: Q,
|
|
5744
|
+
lastHealthyAt: Q,
|
|
5745
|
+
lastActiveAt: Q,
|
|
5746
|
+
lastUserMessageAt: Q,
|
|
5747
|
+
lastMessageAt: Q,
|
|
5746
5748
|
lastMessageRole: ja,
|
|
5747
|
-
lastMessageChannel:
|
|
5748
|
-
primaryChannel:
|
|
5749
|
+
lastMessageChannel: Q,
|
|
5750
|
+
primaryChannel: Q,
|
|
5749
5751
|
totalMessages: Ma,
|
|
5750
5752
|
totalSessions: Ma,
|
|
5751
|
-
error:
|
|
5753
|
+
error: Q,
|
|
5752
5754
|
appHandle: string(),
|
|
5753
5755
|
flyAppExists: boolean(),
|
|
5754
5756
|
plan: string(),
|
|
@@ -5771,15 +5773,15 @@ var xa = object({
|
|
|
5771
5773
|
flyAppCount: number().optional(),
|
|
5772
5774
|
latestVersion: string().optional(),
|
|
5773
5775
|
latestVersions: record(string(), string()).optional()
|
|
5774
|
-
}), Ia =
|
|
5776
|
+
}), Ia = k, $ = O, La = object({
|
|
5775
5777
|
mediaId: string(),
|
|
5776
5778
|
src: string(),
|
|
5777
5779
|
alt: string().nullable().optional(),
|
|
5778
5780
|
filename: string().optional(),
|
|
5779
5781
|
displayName: string().nullable().optional(),
|
|
5780
5782
|
mimeType: string().optional(),
|
|
5781
|
-
mediaType:
|
|
5782
|
-
type:
|
|
5783
|
+
mediaType: $.optional(),
|
|
5784
|
+
type: $.optional(),
|
|
5783
5785
|
size: number().optional(),
|
|
5784
5786
|
width: number().nullable().optional(),
|
|
5785
5787
|
height: number().nullable().optional(),
|
|
@@ -5793,13 +5795,13 @@ var xa = object({
|
|
|
5793
5795
|
agentId: string().nullable().optional(),
|
|
5794
5796
|
createdAt: string().optional(),
|
|
5795
5797
|
updatedAt: string().optional()
|
|
5796
|
-
}),
|
|
5798
|
+
}), Ra = object({
|
|
5797
5799
|
file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
|
|
5798
5800
|
context: Ia.optional().default("general"),
|
|
5799
5801
|
agentId: string().optional(),
|
|
5800
5802
|
orgId: string().optional(),
|
|
5801
5803
|
duration: number().optional()
|
|
5802
|
-
}),
|
|
5804
|
+
}), za = object({
|
|
5803
5805
|
mediaId: string().optional(),
|
|
5804
5806
|
src: string().optional(),
|
|
5805
5807
|
alt: string().optional(),
|
|
@@ -5808,7 +5810,7 @@ var xa = object({
|
|
|
5808
5810
|
mimeType: string().optional(),
|
|
5809
5811
|
mediaType: string().optional(),
|
|
5810
5812
|
blurhash: string().optional()
|
|
5811
|
-
}),
|
|
5813
|
+
}), Ba = object({
|
|
5812
5814
|
membershipId: string(),
|
|
5813
5815
|
userId: string(),
|
|
5814
5816
|
orgId: string(),
|
|
@@ -5823,15 +5825,15 @@ var xa = object({
|
|
|
5823
5825
|
status: _enum(["active", "suspended"]),
|
|
5824
5826
|
joinedAt: string(),
|
|
5825
5827
|
lastSeenAt: string().optional(),
|
|
5826
|
-
avatar:
|
|
5827
|
-
}),
|
|
5828
|
+
avatar: za.optional()
|
|
5829
|
+
}), Va = object({
|
|
5828
5830
|
invitationId: string(),
|
|
5829
5831
|
email: string(),
|
|
5830
5832
|
role: string(),
|
|
5831
5833
|
status: string(),
|
|
5832
5834
|
expiresAt: string(),
|
|
5833
5835
|
createdAt: string()
|
|
5834
|
-
}),
|
|
5836
|
+
}), Ha = object({
|
|
5835
5837
|
token: string(),
|
|
5836
5838
|
email: string(),
|
|
5837
5839
|
orgId: string(),
|
|
@@ -5853,31 +5855,31 @@ var xa = object({
|
|
|
5853
5855
|
]),
|
|
5854
5856
|
expiresAt: string(),
|
|
5855
5857
|
memberCount: number().optional()
|
|
5856
|
-
}),
|
|
5858
|
+
}), Ua = object({
|
|
5857
5859
|
email: string().email(),
|
|
5858
5860
|
message: string().max(500).optional()
|
|
5859
|
-
}).strict(),
|
|
5861
|
+
}).strict(), Wa = object({ role: _enum([
|
|
5860
5862
|
"owner",
|
|
5861
5863
|
"admin",
|
|
5862
5864
|
"member",
|
|
5863
5865
|
"observer"
|
|
5864
|
-
]) }).strict(),
|
|
5866
|
+
]) }).strict(), Ga = object({ token: string().min(1) }).strict(), Ka = _enum([
|
|
5865
5867
|
"planLimit",
|
|
5866
5868
|
"billingOverdue",
|
|
5867
5869
|
"rebuilding",
|
|
5868
5870
|
"agentNotFound"
|
|
5869
|
-
]),
|
|
5871
|
+
]), qa = _enum([
|
|
5870
5872
|
"rebuilding",
|
|
5871
5873
|
"provisioning",
|
|
5872
5874
|
"billingOverdue"
|
|
5873
|
-
]),
|
|
5875
|
+
]), Ja = object({
|
|
5874
5876
|
agentId: string(),
|
|
5875
5877
|
name: string(),
|
|
5876
|
-
avatar:
|
|
5878
|
+
avatar: A.optional(),
|
|
5877
5879
|
summary: string().nullable().optional(),
|
|
5878
5880
|
ownerId: string(),
|
|
5879
5881
|
ownerFirstName: string(),
|
|
5880
|
-
ownerAvatar:
|
|
5882
|
+
ownerAvatar: A.optional(),
|
|
5881
5883
|
ownerLabel: string(),
|
|
5882
5884
|
avatarInitial: string(),
|
|
5883
5885
|
isYours: boolean(),
|
|
@@ -5890,21 +5892,21 @@ var xa = object({
|
|
|
5890
5892
|
detail: string().optional(),
|
|
5891
5893
|
blocker: P.optional(),
|
|
5892
5894
|
canWake: boolean(),
|
|
5893
|
-
cantWakeReason:
|
|
5895
|
+
cantWakeReason: Ka.optional(),
|
|
5894
5896
|
canRebuild: boolean(),
|
|
5895
|
-
cantRebuildReason:
|
|
5896
|
-
}),
|
|
5897
|
-
zNotificationTelemetryAck: () =>
|
|
5898
|
-
zNotificationTelemetryEvent: () =>
|
|
5899
|
-
zRegisterDeviceRequest: () =>
|
|
5900
|
-
zRegisterDeviceResponse: () =>
|
|
5901
|
-
}),
|
|
5897
|
+
cantRebuildReason: qa.optional()
|
|
5898
|
+
}), Ya = /* @__PURE__ */ t({
|
|
5899
|
+
zNotificationTelemetryAck: () => $a,
|
|
5900
|
+
zNotificationTelemetryEvent: () => Qa,
|
|
5901
|
+
zRegisterDeviceRequest: () => Xa,
|
|
5902
|
+
zRegisterDeviceResponse: () => Za
|
|
5903
|
+
}), Xa = object({
|
|
5902
5904
|
deviceId: string().min(1).max(64),
|
|
5903
5905
|
pushToken: string().min(1).max(200),
|
|
5904
5906
|
appVersion: string().max(40).optional(),
|
|
5905
5907
|
osVersion: string().max(40).optional(),
|
|
5906
5908
|
model: string().max(80).optional()
|
|
5907
|
-
}),
|
|
5909
|
+
}), Za = object({ deviceId: string().min(1).max(64) }), Qa = object({
|
|
5908
5910
|
deviceId: string().min(1).max(64),
|
|
5909
5911
|
kind: string().min(1).max(30),
|
|
5910
5912
|
action: _enum([
|
|
@@ -5913,7 +5915,7 @@ var xa = object({
|
|
|
5913
5915
|
"dismissed"
|
|
5914
5916
|
]),
|
|
5915
5917
|
messageId: string().max(32).optional()
|
|
5916
|
-
}),
|
|
5918
|
+
}), $a = object({ updated: boolean() }), eo = H.pick({
|
|
5917
5919
|
orgId: !0,
|
|
5918
5920
|
handle: !0,
|
|
5919
5921
|
name: !0,
|
|
@@ -5927,13 +5929,13 @@ var xa = object({
|
|
|
5927
5929
|
status: !0,
|
|
5928
5930
|
updatedAt: !0
|
|
5929
5931
|
}).extend({
|
|
5930
|
-
avatar:
|
|
5931
|
-
cover:
|
|
5932
|
-
}),
|
|
5932
|
+
avatar: La.nullable().optional(),
|
|
5933
|
+
cover: La.nullable().optional()
|
|
5934
|
+
}), to = object({
|
|
5933
5935
|
name: string().min(1).max(255),
|
|
5934
5936
|
handle: string().min(2).max(50).optional(),
|
|
5935
5937
|
timezone: K.optional()
|
|
5936
|
-
}).strict(),
|
|
5938
|
+
}).strict(), no = H.pick({
|
|
5937
5939
|
name: !0,
|
|
5938
5940
|
email: !0,
|
|
5939
5941
|
website: !0,
|
|
@@ -5945,11 +5947,11 @@ var xa = object({
|
|
|
5945
5947
|
timezone: K.optional(),
|
|
5946
5948
|
avatarMediaId: string().nullable().optional(),
|
|
5947
5949
|
coverMediaId: string().nullable().optional()
|
|
5948
|
-
}).strict(),
|
|
5950
|
+
}).strict(), ro = _enum([
|
|
5949
5951
|
"success",
|
|
5950
5952
|
"info",
|
|
5951
5953
|
"warning"
|
|
5952
|
-
]),
|
|
5954
|
+
]), io = object({
|
|
5953
5955
|
org: object({
|
|
5954
5956
|
orgId: string(),
|
|
5955
5957
|
name: string(),
|
|
@@ -5958,7 +5960,7 @@ var xa = object({
|
|
|
5958
5960
|
plan: object({
|
|
5959
5961
|
key: string(),
|
|
5960
5962
|
label: string(),
|
|
5961
|
-
tone:
|
|
5963
|
+
tone: ro,
|
|
5962
5964
|
status: string(),
|
|
5963
5965
|
trialDaysRemaining: number().optional()
|
|
5964
5966
|
}),
|
|
@@ -5979,15 +5981,15 @@ function zPaginatedResponse(e) {
|
|
|
5979
5981
|
}
|
|
5980
5982
|
//#endregion
|
|
5981
5983
|
//#region ../core/dist/wire/public-services.js
|
|
5982
|
-
var
|
|
5984
|
+
var ao = object({
|
|
5983
5985
|
sender: _enum(["user", "agent"]),
|
|
5984
5986
|
text: string()
|
|
5985
|
-
}),
|
|
5987
|
+
}), oo = _enum([
|
|
5986
5988
|
"works-now",
|
|
5987
5989
|
"guided-setup",
|
|
5988
5990
|
"coming-soon",
|
|
5989
5991
|
"custom-workflow"
|
|
5990
|
-
]),
|
|
5992
|
+
]), so = object({
|
|
5991
5993
|
docsUrl: string(),
|
|
5992
5994
|
verifiedAt: string(),
|
|
5993
5995
|
version: string().optional(),
|
|
@@ -5999,11 +6001,11 @@ var oo = object({
|
|
|
5999
6001
|
"unversioned"
|
|
6000
6002
|
]),
|
|
6001
6003
|
note: string().optional()
|
|
6002
|
-
}),
|
|
6004
|
+
}), co = object({
|
|
6003
6005
|
key: string(),
|
|
6004
6006
|
label: string(),
|
|
6005
6007
|
rank: number()
|
|
6006
|
-
}),
|
|
6008
|
+
}), lo = object({
|
|
6007
6009
|
text: string(),
|
|
6008
6010
|
tone: _enum([
|
|
6009
6011
|
"info",
|
|
@@ -6011,7 +6013,7 @@ var oo = object({
|
|
|
6011
6013
|
"success",
|
|
6012
6014
|
"danger"
|
|
6013
6015
|
])
|
|
6014
|
-
}),
|
|
6016
|
+
}), uo = object({
|
|
6015
6017
|
serviceKey: string(),
|
|
6016
6018
|
name: string(),
|
|
6017
6019
|
description: string(),
|
|
@@ -6021,16 +6023,16 @@ var oo = object({
|
|
|
6021
6023
|
category: string(),
|
|
6022
6024
|
categoryLabel: string(),
|
|
6023
6025
|
categoryRank: number(),
|
|
6024
|
-
secondaryCategories: array(
|
|
6025
|
-
badges: array(
|
|
6026
|
+
secondaryCategories: array(co),
|
|
6027
|
+
badges: array(lo),
|
|
6026
6028
|
tags: array(string()),
|
|
6027
6029
|
searchAliases: array(string()),
|
|
6028
6030
|
jtbd: string(),
|
|
6029
6031
|
useCase: string(),
|
|
6030
6032
|
demoScenario: string(),
|
|
6031
|
-
sampleConversation: array(
|
|
6032
|
-
publicStatus:
|
|
6033
|
-
apiVerification:
|
|
6033
|
+
sampleConversation: array(ao),
|
|
6034
|
+
publicStatus: oo,
|
|
6035
|
+
apiVerification: so.optional(),
|
|
6034
6036
|
setupDifficulty: string(),
|
|
6035
6037
|
risk: string(),
|
|
6036
6038
|
price: string(),
|
|
@@ -6043,66 +6045,65 @@ var oo = object({
|
|
|
6043
6045
|
]),
|
|
6044
6046
|
setupSummary: string().optional(),
|
|
6045
6047
|
pagePath: string()
|
|
6046
|
-
}),
|
|
6048
|
+
}), fo = object({
|
|
6047
6049
|
fullName: string().min(1).max(100).optional(),
|
|
6048
6050
|
avatarMediaId: string().nullable().optional(),
|
|
6049
6051
|
primaryAgentId: string().nullable().optional(),
|
|
6050
6052
|
lastActiveOrgId: string().nullable().optional()
|
|
6051
|
-
}).strict(),
|
|
6052
|
-
APP_PORT: () => oe,
|
|
6053
|
+
}).strict(), po = /* @__PURE__ */ t({
|
|
6053
6054
|
ASSISTANT_SILENCE_CONTROLS: () => U,
|
|
6054
|
-
ActionAreaSchema: () =>
|
|
6055
|
+
ActionAreaSchema: () => Ir,
|
|
6055
6056
|
ActionButtonSchema: () => M,
|
|
6056
6057
|
Agent: () => V,
|
|
6057
|
-
AudioFormatSchema: () =>
|
|
6058
|
-
AudioMediaSchema: () =>
|
|
6059
|
-
AudioPropertiesSchema: () =>
|
|
6058
|
+
AudioFormatSchema: () => Er,
|
|
6059
|
+
AudioMediaSchema: () => jr,
|
|
6060
|
+
AudioPropertiesSchema: () => Or,
|
|
6060
6061
|
AuthApiError: () => AuthApiError,
|
|
6061
|
-
BOT_API_LLM_PATH: () =>
|
|
6062
|
-
BOT_API_PATH: () =>
|
|
6063
|
-
BOT_USER_AGENT: () =>
|
|
6064
|
-
ButtonDesignSchema: () =>
|
|
6065
|
-
ButtonThemeSchema: () =>
|
|
6066
|
-
CHART_THEME: () =>
|
|
6062
|
+
BOT_API_LLM_PATH: () => _i,
|
|
6063
|
+
BOT_API_PATH: () => gi,
|
|
6064
|
+
BOT_USER_AGENT: () => pi,
|
|
6065
|
+
ButtonDesignSchema: () => j,
|
|
6066
|
+
ButtonThemeSchema: () => Fr,
|
|
6067
|
+
CHART_THEME: () => zr,
|
|
6067
6068
|
CHAT_ISSUE_CODES: () => N,
|
|
6068
6069
|
CHAT_ISSUE_COPY: () => F,
|
|
6069
6070
|
CookieUtil: () => CookieUtil,
|
|
6070
|
-
DocumentMediaSchema: () =>
|
|
6071
|
-
ERROR_CODES: () =>
|
|
6071
|
+
DocumentMediaSchema: () => Mr,
|
|
6072
|
+
ERROR_CODES: () => wi,
|
|
6072
6073
|
EnrichedAgentSchema: () => B,
|
|
6073
|
-
ImageFormatSchema: () =>
|
|
6074
|
-
ImageMediaSchema: () =>
|
|
6075
|
-
LIFECYCLE_COLOR: () =>
|
|
6076
|
-
Logger: () =>
|
|
6077
|
-
MEDIA_CONTEXTS: () =>
|
|
6078
|
-
MEDIA_TYPES: () =>
|
|
6079
|
-
MediaContextSchema: () =>
|
|
6080
|
-
MediaSchema: () =>
|
|
6081
|
-
MediaStatusSchema: () =>
|
|
6074
|
+
ImageFormatSchema: () => wr,
|
|
6075
|
+
ImageMediaSchema: () => kr,
|
|
6076
|
+
LIFECYCLE_COLOR: () => Kr,
|
|
6077
|
+
Logger: () => p,
|
|
6078
|
+
MEDIA_CONTEXTS: () => xr,
|
|
6079
|
+
MEDIA_TYPES: () => br,
|
|
6080
|
+
MediaContextSchema: () => k,
|
|
6081
|
+
MediaSchema: () => A,
|
|
6082
|
+
MediaStatusSchema: () => Sr,
|
|
6082
6083
|
MediaTypeSchema: () => O,
|
|
6083
|
-
MediaUnionSchema: () =>
|
|
6084
|
-
NavItemSchema: () =>
|
|
6085
|
-
NavListSchema: () =>
|
|
6086
|
-
|
|
6084
|
+
MediaUnionSchema: () => Nr,
|
|
6085
|
+
NavItemSchema: () => Lr,
|
|
6086
|
+
NavListSchema: () => Rr,
|
|
6087
|
+
PAGELINES_APP_CONFIG: () => i,
|
|
6087
6088
|
SettingsObject: () => SettingsObject,
|
|
6088
|
-
SizeSchema: () =>
|
|
6089
|
-
SocialAccountSchema: () =>
|
|
6090
|
-
SocialAccountsSchema: () =>
|
|
6091
|
-
UNKNOWN_STATUS: () =>
|
|
6092
|
-
VideoFormatSchema: () =>
|
|
6093
|
-
VideoMediaSchema: () =>
|
|
6094
|
-
VideoPropertiesSchema: () =>
|
|
6089
|
+
SizeSchema: () => Pr,
|
|
6090
|
+
SocialAccountSchema: () => vr,
|
|
6091
|
+
SocialAccountsSchema: () => yr,
|
|
6092
|
+
UNKNOWN_STATUS: () => Gr,
|
|
6093
|
+
VideoFormatSchema: () => Tr,
|
|
6094
|
+
VideoMediaSchema: () => Ar,
|
|
6095
|
+
VideoPropertiesSchema: () => Dr,
|
|
6095
6096
|
agentSchema: () => z,
|
|
6096
6097
|
apiError: () => apiError,
|
|
6097
6098
|
apiOk: () => apiOk,
|
|
6098
|
-
appleAuthSchema: () =>
|
|
6099
|
+
appleAuthSchema: () => ci,
|
|
6099
6100
|
authErrorMessage: () => authErrorMessage,
|
|
6100
6101
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6101
6102
|
botApiUrl: () => botApiUrl,
|
|
6102
6103
|
budgetMinutes: () => budgetMinutes,
|
|
6103
6104
|
buildChatIssue: () => buildChatIssue,
|
|
6104
|
-
changeEmailSchema: () =>
|
|
6105
|
-
changePasswordSchema: () =>
|
|
6105
|
+
changeEmailSchema: () => ai,
|
|
6106
|
+
changePasswordSchema: () => oi,
|
|
6106
6107
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6107
6108
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6108
6109
|
chatEventTurnId: () => chatEventTurnId,
|
|
@@ -6114,9 +6115,9 @@ var oo = object({
|
|
|
6114
6115
|
createLogger: () => createLogger,
|
|
6115
6116
|
debug: () => ne,
|
|
6116
6117
|
derive: () => derive,
|
|
6117
|
-
emailSchema: () =>
|
|
6118
|
-
enrichedUserSchema: () =>
|
|
6119
|
-
error: () =>
|
|
6118
|
+
emailSchema: () => ei,
|
|
6119
|
+
enrichedUserSchema: () => fi,
|
|
6120
|
+
error: () => h,
|
|
6120
6121
|
errorCopy: () => errorCopy,
|
|
6121
6122
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
6122
6123
|
extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
|
|
@@ -6125,48 +6126,48 @@ var oo = object({
|
|
|
6125
6126
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6126
6127
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6127
6128
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6128
|
-
googleAuthSchema: () =>
|
|
6129
|
+
googleAuthSchema: () => si,
|
|
6129
6130
|
info: () => te,
|
|
6130
6131
|
isAgentReady: () => isAgentReady,
|
|
6131
6132
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
6132
6133
|
isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
|
|
6133
6134
|
isOperationActive: () => isOperationActive,
|
|
6134
6135
|
isTransitioning: () => isTransitioning,
|
|
6135
|
-
logger: () =>
|
|
6136
|
-
loginSchema: () =>
|
|
6136
|
+
logger: () => m,
|
|
6137
|
+
loginSchema: () => ti,
|
|
6137
6138
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6138
6139
|
nanoid: () => nanoid$1,
|
|
6139
|
-
notificationWire: () =>
|
|
6140
|
+
notificationWire: () => Ya,
|
|
6140
6141
|
objectId: () => objectId,
|
|
6141
|
-
orgInfoSchema: () =>
|
|
6142
|
+
orgInfoSchema: () => di,
|
|
6142
6143
|
orgSchema: () => H,
|
|
6143
|
-
orgWithDefaultAgentSchema: () =>
|
|
6144
|
+
orgWithDefaultAgentSchema: () => li,
|
|
6144
6145
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6145
|
-
registerSchema: () =>
|
|
6146
|
+
registerSchema: () => ni,
|
|
6146
6147
|
renderIssueAsMarkdown: () => renderIssueAsMarkdown,
|
|
6147
|
-
resetPasswordSchema: () =>
|
|
6148
|
+
resetPasswordSchema: () => ii,
|
|
6148
6149
|
retryPolicyFor: () => retryPolicyFor,
|
|
6149
6150
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6150
|
-
serverTransitionBudgets: () =>
|
|
6151
|
+
serverTransitionBudgets: () => hi,
|
|
6151
6152
|
shortId: () => shortId,
|
|
6152
6153
|
toAgentState: () => toAgentState,
|
|
6153
6154
|
trace: () => re,
|
|
6154
|
-
updateUserSchema: () =>
|
|
6155
|
-
userSchema: () =>
|
|
6155
|
+
updateUserSchema: () => $r,
|
|
6156
|
+
userSchema: () => Qr,
|
|
6156
6157
|
uuid: () => uuid$1,
|
|
6157
|
-
verifyCodeSchema: () =>
|
|
6158
|
-
warn: () =>
|
|
6158
|
+
verifyCodeSchema: () => ri,
|
|
6159
|
+
warn: () => ee,
|
|
6159
6160
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6160
|
-
zAcceptInvitationBody: () =>
|
|
6161
|
-
zAccessibleAgentRow: () =>
|
|
6162
|
-
zAgentRow: () =>
|
|
6163
|
-
zApiError: () =>
|
|
6161
|
+
zAcceptInvitationBody: () => Ga,
|
|
6162
|
+
zAccessibleAgentRow: () => Ja,
|
|
6163
|
+
zAgentRow: () => Si,
|
|
6164
|
+
zApiError: () => Ei,
|
|
6164
6165
|
zApiOk: () => zApiOk,
|
|
6165
6166
|
zApiResponse: () => zApiResponse,
|
|
6166
6167
|
zAppleAuthBody: () => Ui,
|
|
6167
6168
|
zAuthSessionData: () => Wi,
|
|
6168
6169
|
zAuthSessionResponse: () => Gi,
|
|
6169
|
-
zAutomationPrimaryChannel: () =>
|
|
6170
|
+
zAutomationPrimaryChannel: () => yi,
|
|
6170
6171
|
zBackfillBillingData: () => aa,
|
|
6171
6172
|
zBackfillCustomersData: () => ia,
|
|
6172
6173
|
zBillingDetails: () => na,
|
|
@@ -6178,30 +6179,30 @@ var oo = object({
|
|
|
6178
6179
|
zBotGenerateImageResponse: () => Hi,
|
|
6179
6180
|
zCancelConversationTurnBody: () => Ta,
|
|
6180
6181
|
zCancelConversationTurnResponse: () => Ea,
|
|
6181
|
-
zCantRebuildReason: () =>
|
|
6182
|
-
zCantWakeReason: () =>
|
|
6182
|
+
zCantRebuildReason: () => qa,
|
|
6183
|
+
zCantWakeReason: () => Ka,
|
|
6183
6184
|
zChatAttachment: () => Y,
|
|
6184
|
-
zChatAttachmentInput: () =>
|
|
6185
|
-
zChatAttachmentPlacement: () =>
|
|
6185
|
+
zChatAttachmentInput: () => Ni,
|
|
6186
|
+
zChatAttachmentPlacement: () => Ai,
|
|
6186
6187
|
zChatErrorData: () => sa,
|
|
6187
6188
|
zChatEvent: () => ca,
|
|
6188
6189
|
zChatIssue: () => P,
|
|
6189
|
-
zChatMessage: () =>
|
|
6190
|
-
zChatMessageMetadata: () =>
|
|
6190
|
+
zChatMessage: () => Mi,
|
|
6191
|
+
zChatMessageMetadata: () => ji,
|
|
6191
6192
|
zChatStatusData: () => oa,
|
|
6192
6193
|
zChatToolActivityData: () => J,
|
|
6193
|
-
zChatToolActivityVisual: () =>
|
|
6194
|
+
zChatToolActivityVisual: () => Di,
|
|
6194
6195
|
zChatVisualSpec: () => ba,
|
|
6195
6196
|
zCompleteCheckoutData: () => ra,
|
|
6196
6197
|
zConversationLastMessage: () => Sa,
|
|
6197
6198
|
zConversationParticipant: () => xa,
|
|
6198
6199
|
zConversationSummary: () => Ca,
|
|
6199
|
-
zConversationTarget: () =>
|
|
6200
|
+
zConversationTarget: () => Fi,
|
|
6200
6201
|
zConversationUpdatedEvent: () => Oa,
|
|
6201
|
-
zCreateAgentBody: () =>
|
|
6202
|
+
zCreateAgentBody: () => bi,
|
|
6202
6203
|
zCreateConversationBody: () => Ii,
|
|
6203
6204
|
zCreateConversationSessionBody: () => Li,
|
|
6204
|
-
zCreateOrgBody: () =>
|
|
6205
|
+
zCreateOrgBody: () => to,
|
|
6205
6206
|
zDesiredStatus: () => I,
|
|
6206
6207
|
zErrorCode: () => q,
|
|
6207
6208
|
zFleetAgent: () => Na,
|
|
@@ -6216,50 +6217,50 @@ var oo = object({
|
|
|
6216
6217
|
zIanaTimezone: () => K,
|
|
6217
6218
|
zImageAspectRatio: () => zi,
|
|
6218
6219
|
zImageResolution: () => Bi,
|
|
6219
|
-
zInvitationPreview: () =>
|
|
6220
|
-
zInvitationRow: () =>
|
|
6221
|
-
zInviteBody: () =>
|
|
6220
|
+
zInvitationPreview: () => Ha,
|
|
6221
|
+
zInvitationRow: () => Va,
|
|
6222
|
+
zInviteBody: () => Ua,
|
|
6222
6223
|
zLifecycle: () => L,
|
|
6223
|
-
zLifecycleVerb: () =>
|
|
6224
|
-
zLiveStatus: () =>
|
|
6224
|
+
zLifecycleVerb: () => Yr,
|
|
6225
|
+
zLiveStatus: () => Wr,
|
|
6225
6226
|
zMarkReadBody: () => wa,
|
|
6226
6227
|
zMediaContext: () => Ia,
|
|
6227
|
-
zMediaObject: () =>
|
|
6228
|
-
zMediaType: () =>
|
|
6229
|
-
zMemberRow: () =>
|
|
6228
|
+
zMediaObject: () => La,
|
|
6229
|
+
zMediaType: () => $,
|
|
6230
|
+
zMemberRow: () => Ba,
|
|
6230
6231
|
zMessageSearchResult: () => Da,
|
|
6231
|
-
zOrgRow: () =>
|
|
6232
|
-
zOrgSummary: () =>
|
|
6232
|
+
zOrgRow: () => eo,
|
|
6233
|
+
zOrgSummary: () => io,
|
|
6233
6234
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6234
|
-
zPlanTone: () =>
|
|
6235
|
-
zProviderErrorKind: () =>
|
|
6236
|
-
zPublicServiceOverview: () =>
|
|
6235
|
+
zPlanTone: () => ro,
|
|
6236
|
+
zProviderErrorKind: () => Ti,
|
|
6237
|
+
zPublicServiceOverview: () => uo,
|
|
6237
6238
|
zReportMessageBody: () => Ri,
|
|
6238
6239
|
zRuntimeOperation: () => R,
|
|
6239
|
-
zRuntimeOperationKind: () =>
|
|
6240
|
-
zRuntimeOperationStatus: () =>
|
|
6241
|
-
zSendMessageBody: () =>
|
|
6242
|
-
zSuggestedPrompt: () =>
|
|
6243
|
-
zUpdateAgentBody: () =>
|
|
6244
|
-
zUpdateOrgBody: () =>
|
|
6245
|
-
zUpdateRoleBody: () =>
|
|
6246
|
-
zUpdateUserBody: () =>
|
|
6247
|
-
zUploadMediaBody: () =>
|
|
6248
|
-
}),
|
|
6240
|
+
zRuntimeOperationKind: () => Hr,
|
|
6241
|
+
zRuntimeOperationStatus: () => Ur,
|
|
6242
|
+
zSendMessageBody: () => Pi,
|
|
6243
|
+
zSuggestedPrompt: () => Ci,
|
|
6244
|
+
zUpdateAgentBody: () => xi,
|
|
6245
|
+
zUpdateOrgBody: () => no,
|
|
6246
|
+
zUpdateRoleBody: () => Wa,
|
|
6247
|
+
zUpdateUserBody: () => fo,
|
|
6248
|
+
zUploadMediaBody: () => Ra
|
|
6249
|
+
}), mo = "1.0.0";
|
|
6249
6250
|
function buildContract(e = {}) {
|
|
6250
6251
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6251
6252
|
let r = contractNameFor(e);
|
|
6252
6253
|
r && (n[r] = toSchema(t));
|
|
6253
6254
|
};
|
|
6254
|
-
for (let [e, t] of Object.entries(
|
|
6255
|
-
if (t instanceof
|
|
6255
|
+
for (let [e, t] of Object.entries(po)) {
|
|
6256
|
+
if (t instanceof T) {
|
|
6256
6257
|
addSchema(e, t);
|
|
6257
6258
|
continue;
|
|
6258
6259
|
}
|
|
6259
|
-
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof
|
|
6260
|
+
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
|
|
6260
6261
|
}
|
|
6261
6262
|
return {
|
|
6262
|
-
version:
|
|
6263
|
+
version: mo,
|
|
6263
6264
|
generatedAt: t.toISOString(),
|
|
6264
6265
|
schemas: n
|
|
6265
6266
|
};
|
|
@@ -6279,6 +6280,6 @@ function sortedReplacer(e, t) {
|
|
|
6279
6280
|
return t;
|
|
6280
6281
|
}
|
|
6281
6282
|
//#endregion
|
|
6282
|
-
export {
|
|
6283
|
+
export { mo as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6283
6284
|
|
|
6284
6285
|
//# sourceMappingURL=contract.js.map
|