@oomol-lab/open-flow 0.1.0-beta.31 → 0.1.0-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{createResourceDialog-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
- package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
- package/dist/browser/flow-authoring-node.d.ts +5 -3
- package/dist/browser/flow-authoring.js +1569 -1462
- package/dist/browser/flow-change.d.ts +44 -17
- package/dist/browser/flow-change.js +1614 -1492
- package/dist/browser/flow-input-value.d.ts +6 -0
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
- package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
- package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
- package/dist/browser/{inputValues-C21gYJuc.js → inputValues-CUyjbECo.js} +2 -2
- package/dist/browser/licenses.md +0 -58
- package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
- package/dist/browser/theme.css +2 -0
- package/dist/browser/ui.css +2 -1
- package/dist/browser/ui.d.ts +31 -3
- package/dist/browser/ui.js +3547 -772
- package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +3944 -1077
- package/dist/browser/{workbenchSelect-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +502 -388
- package/dist/common/control-api-errors.d.ts +16 -0
- package/dist/common/control-api.d.ts +49 -6
- package/dist/common/control-api.js +1715 -1564
- package/dist/common/control-requests.d.ts +10 -0
- package/dist/common/control-requests.js +1182 -1137
- package/dist/common/event-sources.d.ts +0 -1
- package/dist/common/feishu-events.d.ts +0 -1
- package/dist/common/flow-encoding.js +580 -557
- package/dist/common/flow-graph.d.ts +16 -9
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +2 -2
- package/dist/common/flow-semantics.js +2184 -1912
- package/dist/common/fr-ClB96SQY.js +298 -0
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/integration-trigger.js +7572 -88
- package/dist/common/ja-BJF-VrP2.js +298 -0
- package/dist/common/ko-Bght_VaB.js +298 -0
- package/dist/common/mcp.js +1718 -1571
- package/dist/common/poll-trigger.d.ts +3 -1
- package/dist/common/poll-trigger.js +7512 -28
- package/dist/common/provider-triggers.js +6798 -3518
- package/dist/common/ru-DrP4BRM5.js +298 -0
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +41 -27
- package/dist/common/scheduler.js +921 -738
- package/dist/common/trigger-catalog.d.ts +3 -1
- package/dist/common/trigger-config.d.ts +7 -0
- package/dist/common/zh-CN-D2od3TNw.js +298 -0
- package/dist/common/zh-TW-CRmc3FMz.js +298 -0
- package/package.json +1 -1
- package/dist/browser/flowChanges-ScpWTKtQ.js +0 -12293
- package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
- package/dist/common/fr-iv1541dF.js +0 -93
- package/dist/common/ja-Bq-ZDOD4.js +0 -93
- package/dist/common/ko-Z-k9R2c6.js +0 -93
- package/dist/common/ru-B4gFecYZ.js +0 -93
- package/dist/common/zh-CN-ByQ6nYam.js +0 -93
- package/dist/common/zh-TW-QjIarvX9.js +0 -93
|
@@ -68,7 +68,7 @@ function m(e) {
|
|
|
68
68
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
69
69
|
}
|
|
70
70
|
var ee = /* @__PURE__*/ r(() => {
|
|
71
|
-
if (
|
|
71
|
+
if (x.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
72
72
|
try {
|
|
73
73
|
return Function(""), !0;
|
|
74
74
|
} catch {
|
|
@@ -244,38 +244,38 @@ function ge(e, t = 0) {
|
|
|
244
244
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
245
245
|
return !1;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function _(e, t) {
|
|
248
248
|
return t.map((t) => {
|
|
249
249
|
var n;
|
|
250
250
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function _e(e) {
|
|
254
254
|
return typeof e == "string" ? e : e?.message;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ve(e, t, n) {
|
|
257
257
|
var r;
|
|
258
258
|
for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function v(e, t, n) {
|
|
261
261
|
var r;
|
|
262
262
|
let i = e.inst?._zod?.traits;
|
|
263
263
|
i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
264
|
-
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message :
|
|
264
|
+
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : _e(e.inst?._zod.def?.error?.(e)) ?? _e(a?.(e)) ?? _e(t?.error?.(e)) ?? _e(n.customError?.(e)) ?? _e(n.localeError?.(e)) ?? "Invalid input", { inst: s, schema: c, continue: l, input: u, ...d } = e;
|
|
265
265
|
return d.path ??= [], d.message = o, t?.reportInput && (d.input = u), d;
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
function
|
|
267
|
+
var ye = /[\uD800-\uDBFF]/;
|
|
268
|
+
function be(e) {
|
|
269
269
|
let t = e.length;
|
|
270
|
-
if (!
|
|
270
|
+
if (!ye.test(e)) return t;
|
|
271
271
|
let n = t;
|
|
272
272
|
for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
|
|
273
273
|
return n;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function xe(e) {
|
|
276
276
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Se(e) {
|
|
279
279
|
let t = typeof e;
|
|
280
280
|
switch (t) {
|
|
281
281
|
case "number": return Number.isNaN(e) ? "nan" : "number";
|
|
@@ -288,7 +288,7 @@ function Ce(e) {
|
|
|
288
288
|
}
|
|
289
289
|
return t;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ce(...e) {
|
|
292
292
|
let [t, n, r] = e;
|
|
293
293
|
return typeof t == "string" ? {
|
|
294
294
|
message: t,
|
|
@@ -297,7 +297,7 @@ function we(...e) {
|
|
|
297
297
|
inst: r
|
|
298
298
|
} : { ...t };
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function we(e, t) {
|
|
301
301
|
for (let n in t) {
|
|
302
302
|
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
303
303
|
r.get ? Object.defineProperty(e, n, {
|
|
@@ -306,7 +306,7 @@ function Te(e, t) {
|
|
|
306
306
|
}) : De(e, n, r.value);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Te(e, t, n, r = !0) {
|
|
310
310
|
return Object.defineProperty(e, t, {
|
|
311
311
|
configurable: !0,
|
|
312
312
|
writable: !0,
|
|
@@ -315,16 +315,16 @@ function v(e, t, n, r = !0) {
|
|
|
315
315
|
}), n;
|
|
316
316
|
}
|
|
317
317
|
function Ee(e, t, n) {
|
|
318
|
-
return
|
|
318
|
+
return Te(e, t, n, !1);
|
|
319
319
|
}
|
|
320
320
|
function De(e, t, n) {
|
|
321
321
|
Object.defineProperty(e, t, {
|
|
322
322
|
configurable: !0,
|
|
323
323
|
get() {
|
|
324
|
-
return this == null ? n :
|
|
324
|
+
return this == null ? n : Te(this, t, n.bind(this));
|
|
325
325
|
},
|
|
326
326
|
set(e) {
|
|
327
|
-
|
|
327
|
+
Te(this, t, e);
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
}
|
|
@@ -332,13 +332,13 @@ function Oe(e, t) {
|
|
|
332
332
|
let n = Object.getPrototypeOf(e);
|
|
333
333
|
return t in n ? void 0 : n;
|
|
334
334
|
}
|
|
335
|
-
var ke,
|
|
335
|
+
var ke, Ae = !1, je = {
|
|
336
336
|
configurable: !0,
|
|
337
337
|
get() {
|
|
338
|
-
|
|
338
|
+
Ae = !0;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
|
-
function
|
|
341
|
+
function y(e, t, n) {
|
|
342
342
|
let r = Object.getPrototypeOf(e._zod);
|
|
343
343
|
if (t in r && ke !== e._zod) {
|
|
344
344
|
ke = void 0;
|
|
@@ -347,18 +347,18 @@ function b(e, t, n) {
|
|
|
347
347
|
ke = e._zod, Object.defineProperty(r, t, {
|
|
348
348
|
configurable: !0,
|
|
349
349
|
get() {
|
|
350
|
-
Object.defineProperty(this, t,
|
|
351
|
-
let e =
|
|
352
|
-
|
|
350
|
+
Object.defineProperty(this, t, je);
|
|
351
|
+
let e = Ae;
|
|
352
|
+
Ae = !1;
|
|
353
353
|
try {
|
|
354
354
|
let r = n(this);
|
|
355
|
-
return
|
|
355
|
+
return Ae ? delete this[t] : Object.defineProperty(this, t, {
|
|
356
356
|
configurable: !0,
|
|
357
357
|
writable: !0,
|
|
358
358
|
value: r
|
|
359
|
-
}),
|
|
359
|
+
}), Ae ||= e, r;
|
|
360
360
|
} catch (n) {
|
|
361
|
-
throw delete this[t],
|
|
361
|
+
throw delete this[t], Ae ||= e, n;
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
set(e) {
|
|
@@ -370,7 +370,7 @@ function b(e, t, n) {
|
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Me(e, t, n, r) {
|
|
374
374
|
let i = Oe(e, t);
|
|
375
375
|
i && Object.defineProperty(i, t, {
|
|
376
376
|
configurable: !0,
|
|
@@ -393,26 +393,26 @@ function je(e, t, n, r) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
396
|
+
var Ne = "~constantCatch";
|
|
397
|
+
function Pe(e) {
|
|
398
398
|
let t = () => e;
|
|
399
|
-
return t[
|
|
399
|
+
return t[Ne] = !0, t;
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/core.js
|
|
403
|
-
var
|
|
403
|
+
var Fe, Ie = {
|
|
404
404
|
value: void 0,
|
|
405
405
|
enumerable: !1
|
|
406
|
-
},
|
|
407
|
-
function
|
|
408
|
-
let t =
|
|
406
|
+
}, Le = "captureStackTrace" in Error ? Error : null;
|
|
407
|
+
function Re(e) {
|
|
408
|
+
let t = Le;
|
|
409
409
|
if (t) {
|
|
410
410
|
let n = t.stackTraceLimit;
|
|
411
411
|
if (typeof n == "number") {
|
|
412
412
|
try {
|
|
413
413
|
t.stackTraceLimit = 0;
|
|
414
414
|
} catch {
|
|
415
|
-
return
|
|
415
|
+
return Le = null, new e();
|
|
416
416
|
}
|
|
417
417
|
try {
|
|
418
418
|
return new e();
|
|
@@ -423,7 +423,7 @@ function Le(e) {
|
|
|
423
423
|
}
|
|
424
424
|
return new e();
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function b(e, t, n, r) {
|
|
427
427
|
let i = {};
|
|
428
428
|
function a(e) {
|
|
429
429
|
this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
@@ -432,11 +432,11 @@ function x(e, t, n, r) {
|
|
|
432
432
|
let o = n, s = o && /* @__PURE__ */ new WeakSet();
|
|
433
433
|
function c(n, r) {
|
|
434
434
|
if (!n._zod) {
|
|
435
|
-
|
|
435
|
+
Ie.value = new a(r);
|
|
436
436
|
try {
|
|
437
|
-
Object.defineProperty(n, "_zod",
|
|
437
|
+
Object.defineProperty(n, "_zod", Ie);
|
|
438
438
|
} finally {
|
|
439
|
-
|
|
439
|
+
Ie.value = void 0;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
if (n._zod.traits.has(e)) return;
|
|
@@ -444,7 +444,7 @@ function x(e, t, n, r) {
|
|
|
444
444
|
let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
|
|
445
445
|
for (; r && r !== t;) r = Object.getPrototypeOf(r);
|
|
446
446
|
let i = r ?? e;
|
|
447
|
-
s.has(i) || (s.add(i),
|
|
447
|
+
s.has(i) || (s.add(i), we(i, o));
|
|
448
448
|
}
|
|
449
449
|
let i = d.prototype;
|
|
450
450
|
for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
|
|
@@ -453,7 +453,7 @@ function x(e, t, n, r) {
|
|
|
453
453
|
class u extends l {}
|
|
454
454
|
Object.defineProperty(u, "name", { value: e });
|
|
455
455
|
function d(e) {
|
|
456
|
-
let t = r?.Parent ?
|
|
456
|
+
let t = r?.Parent ? Re(u) : this;
|
|
457
457
|
c(t, e);
|
|
458
458
|
let n = t._zod.deferred;
|
|
459
459
|
if (n) {
|
|
@@ -465,44 +465,44 @@ function x(e, t, n, r) {
|
|
|
465
465
|
}
|
|
466
466
|
return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
|
|
467
467
|
}
|
|
468
|
-
var
|
|
468
|
+
var ze = class extends Error {
|
|
469
469
|
constructor() {
|
|
470
470
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
471
471
|
}
|
|
472
|
-
},
|
|
472
|
+
}, Be = class extends Error {
|
|
473
473
|
constructor(e) {
|
|
474
474
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
475
475
|
}
|
|
476
476
|
};
|
|
477
|
-
(
|
|
478
|
-
var
|
|
479
|
-
function
|
|
480
|
-
return e && Object.assign(
|
|
477
|
+
(Fe = globalThis).__zod_globalConfig ?? (Fe.__zod_globalConfig = {});
|
|
478
|
+
var x = globalThis.__zod_globalConfig;
|
|
479
|
+
function S(e) {
|
|
480
|
+
return e && Object.assign(x, e), x;
|
|
481
481
|
}
|
|
482
482
|
//#endregion
|
|
483
483
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/errors.js
|
|
484
|
-
function
|
|
484
|
+
function Ve() {
|
|
485
485
|
let e = this._zod;
|
|
486
486
|
return e.message ??= JSON.stringify(e.def, n, 2), e.message;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function He(e) {
|
|
489
489
|
this._zod.message = e;
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
get:
|
|
493
|
-
set:
|
|
491
|
+
var Ue = {
|
|
492
|
+
get: Ve,
|
|
493
|
+
set: He,
|
|
494
494
|
enumerable: !0,
|
|
495
495
|
configurable: !0
|
|
496
|
-
},
|
|
496
|
+
}, We = {
|
|
497
497
|
value: void 0,
|
|
498
498
|
enumerable: !1
|
|
499
|
-
},
|
|
499
|
+
}, Ge = {
|
|
500
500
|
value: void 0,
|
|
501
501
|
enumerable: !1
|
|
502
|
-
},
|
|
503
|
-
e.name = "$ZodError",
|
|
502
|
+
}, Ke = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), qe = (e, t) => {
|
|
503
|
+
e.name = "$ZodError", We.value = e._zod, Object.defineProperty(e, "_zod", We), Ge.value = t, Object.defineProperty(e, "issues", Ge), We.value = void 0, Ge.value = void 0, Object.defineProperty(e, "message", Ue);
|
|
504
504
|
let n = Object.getPrototypeOf(e);
|
|
505
|
-
|
|
505
|
+
Ke.has(n) || (Ke.add(n), Object.defineProperty(n, "toString", {
|
|
506
506
|
configurable: !0,
|
|
507
507
|
enumerable: !1,
|
|
508
508
|
get() {
|
|
@@ -521,8 +521,8 @@ var He = {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
}));
|
|
524
|
-
},
|
|
525
|
-
function
|
|
524
|
+
}, Je = b("$ZodError", qe), Ye = b("$ZodError", qe, void 0, { Parent: Error });
|
|
525
|
+
function Xe(e, t, n) {
|
|
526
526
|
return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
|
|
527
527
|
value: n(),
|
|
528
528
|
writable: !0,
|
|
@@ -530,15 +530,15 @@ function Ye(e, t, n) {
|
|
|
530
530
|
configurable: !0
|
|
531
531
|
}) : e[t] = n()), e[t];
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ze(e, t = (e) => e.message) {
|
|
534
534
|
let n = {}, r = [];
|
|
535
|
-
for (let i of e.issues) i.path.length > 0 ?
|
|
535
|
+
for (let i of e.issues) i.path.length > 0 ? Xe(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
|
|
536
536
|
return {
|
|
537
537
|
formErrors: r,
|
|
538
538
|
fieldErrors: n
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Qe(e, t = (e) => e.message) {
|
|
542
542
|
let n = { _errors: [] }, r = (e, i = []) => {
|
|
543
543
|
for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
|
|
544
544
|
else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
|
|
@@ -570,13 +570,13 @@ function Ze(e, t = (e) => e.message) {
|
|
|
570
570
|
}
|
|
571
571
|
//#endregion
|
|
572
572
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/parse.js
|
|
573
|
-
function
|
|
573
|
+
function $e(e, t) {
|
|
574
574
|
return {
|
|
575
575
|
callee: t?.callee ?? e,
|
|
576
576
|
Err: t?.Err
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var et = (e) => {
|
|
580
580
|
let t = (n, r, i, a) => {
|
|
581
581
|
let o = i ? {
|
|
582
582
|
...i,
|
|
@@ -585,15 +585,15 @@ var $e = (e) => {
|
|
|
585
585
|
value: r,
|
|
586
586
|
issues: []
|
|
587
587
|
}, o);
|
|
588
|
-
if (s instanceof Promise) throw new
|
|
588
|
+
if (s instanceof Promise) throw new ze();
|
|
589
589
|
if (s.issues.length) {
|
|
590
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
590
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => v(e, o, S())));
|
|
591
591
|
throw p(n, a?.callee ?? t), n;
|
|
592
592
|
}
|
|
593
593
|
return s.value;
|
|
594
594
|
};
|
|
595
595
|
return t;
|
|
596
|
-
},
|
|
596
|
+
}, tt = (e) => {
|
|
597
597
|
let t = async (n, r, i, a) => {
|
|
598
598
|
let o = i ? {
|
|
599
599
|
...i,
|
|
@@ -603,13 +603,13 @@ var $e = (e) => {
|
|
|
603
603
|
issues: []
|
|
604
604
|
}, o);
|
|
605
605
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
606
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
606
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => v(e, o, S())));
|
|
607
607
|
throw p(n, a?.callee ?? t), n;
|
|
608
608
|
}
|
|
609
609
|
return s.value;
|
|
610
610
|
};
|
|
611
611
|
return t;
|
|
612
|
-
},
|
|
612
|
+
}, nt = (e) => (t, n, r) => {
|
|
613
613
|
let i = r ? {
|
|
614
614
|
...r,
|
|
615
615
|
async: !1
|
|
@@ -617,15 +617,15 @@ var $e = (e) => {
|
|
|
617
617
|
value: n,
|
|
618
618
|
issues: []
|
|
619
619
|
}, i);
|
|
620
|
-
if (a instanceof Promise) throw new
|
|
620
|
+
if (a instanceof Promise) throw new ze();
|
|
621
621
|
return a.issues.length ? {
|
|
622
622
|
success: !1,
|
|
623
|
-
error: new (e ??
|
|
623
|
+
error: new (e ?? Je)(a.issues.map((e) => v(e, i, S())))
|
|
624
624
|
} : {
|
|
625
625
|
success: !0,
|
|
626
626
|
data: a.value
|
|
627
627
|
};
|
|
628
|
-
},
|
|
628
|
+
}, rt = /* @__PURE__*/ nt(Ye), it = (e) => async (t, n, r) => {
|
|
629
629
|
let i = r ? {
|
|
630
630
|
...r,
|
|
631
631
|
async: !0
|
|
@@ -635,98 +635,98 @@ var $e = (e) => {
|
|
|
635
635
|
}, i);
|
|
636
636
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
637
637
|
success: !1,
|
|
638
|
-
error: new e(a.issues.map((e) =>
|
|
638
|
+
error: new e(a.issues.map((e) => v(e, i, S())))
|
|
639
639
|
} : {
|
|
640
640
|
success: !0,
|
|
641
641
|
data: a.value
|
|
642
642
|
};
|
|
643
|
-
},
|
|
644
|
-
let t =
|
|
643
|
+
}, at = /* @__PURE__*/ it(Ye), ot = (e) => {
|
|
644
|
+
let t = et(e), n = (e, r, i, a) => {
|
|
645
645
|
let o = i ? {
|
|
646
646
|
...i,
|
|
647
647
|
direction: "backward"
|
|
648
648
|
} : { direction: "backward" };
|
|
649
|
-
return t(e, r, o,
|
|
649
|
+
return t(e, r, o, $e(n, a));
|
|
650
650
|
};
|
|
651
651
|
return n;
|
|
652
|
-
}, ot = (e) => {
|
|
653
|
-
let t = $e(e), n = (e, r, i, a) => t(e, r, i, Qe(n, a));
|
|
654
|
-
return n;
|
|
655
652
|
}, st = (e) => {
|
|
656
|
-
let t = et(e), n =
|
|
653
|
+
let t = et(e), n = (e, r, i, a) => t(e, r, i, $e(n, a));
|
|
654
|
+
return n;
|
|
655
|
+
}, ct = (e) => {
|
|
656
|
+
let t = tt(e), n = async (e, r, i, a) => {
|
|
657
657
|
let o = i ? {
|
|
658
658
|
...i,
|
|
659
659
|
direction: "backward"
|
|
660
660
|
} : { direction: "backward" };
|
|
661
|
-
return await t(e, r, o,
|
|
661
|
+
return await t(e, r, o, $e(n, a));
|
|
662
662
|
};
|
|
663
663
|
return n;
|
|
664
|
-
},
|
|
665
|
-
let t =
|
|
664
|
+
}, lt = (e) => {
|
|
665
|
+
let t = tt(e), n = async (e, r, i, a) => await t(e, r, i, $e(n, a));
|
|
666
666
|
return n;
|
|
667
|
-
},
|
|
667
|
+
}, ut = (e) => (t, n, r) => {
|
|
668
668
|
let i = r ? {
|
|
669
669
|
...r,
|
|
670
670
|
direction: "backward"
|
|
671
671
|
} : { direction: "backward" };
|
|
672
|
-
return
|
|
673
|
-
},
|
|
672
|
+
return nt(e)(t, n, i);
|
|
673
|
+
}, dt = (e) => (t, n, r) => nt(e)(t, n, r), ft = (e) => async (t, n, r) => {
|
|
674
674
|
let i = r ? {
|
|
675
675
|
...r,
|
|
676
676
|
direction: "backward"
|
|
677
677
|
} : { direction: "backward" };
|
|
678
|
-
return
|
|
679
|
-
},
|
|
680
|
-
function
|
|
678
|
+
return it(e)(t, n, i);
|
|
679
|
+
}, pt = (e) => async (t, n, r) => it(e)(t, n, r), mt = /^[cC][0-9a-z]{6,}$/, ht = /^[0-9a-z]+$/, gt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, _t = /^[0-9a-vA-V]{20}$/, vt = /^[A-Za-z0-9]{27}$/, yt = /^[a-zA-Z0-9_-]{21}$/;
|
|
680
|
+
function bt(e) {
|
|
681
681
|
return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
|
|
682
682
|
}
|
|
683
|
-
var
|
|
684
|
-
function
|
|
685
|
-
return new RegExp(
|
|
683
|
+
var xt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, St = /^([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})$/, Ct = (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)$/, wt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Tt = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
|
|
684
|
+
function Et() {
|
|
685
|
+
return new RegExp(Tt, "u");
|
|
686
686
|
}
|
|
687
|
-
var
|
|
688
|
-
function
|
|
687
|
+
var Dt = /^(?:(?: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])$/, Ot = /^(([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}|:))$/, kt = /^((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])$/, At = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, jt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Mt = /^[A-Za-z0-9_-]*$/, Nt = /^https?$/, Pt = /^\+[1-9]\d{6,14}$/, Ft = "(?:(?:\\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])))";
|
|
688
|
+
function It(e) {
|
|
689
689
|
return RegExp(`^${e}$`);
|
|
690
690
|
}
|
|
691
|
-
var
|
|
692
|
-
function
|
|
691
|
+
var Lt = /*@__PURE__*/ It(Ft);
|
|
692
|
+
function Rt(e) {
|
|
693
693
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
694
694
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
695
695
|
}
|
|
696
|
-
function Rt(e) {
|
|
697
|
-
return RegExp(`^${Lt(e)}$`);
|
|
698
|
-
}
|
|
699
696
|
function zt(e) {
|
|
697
|
+
return RegExp(`^${Rt(e)}$`);
|
|
698
|
+
}
|
|
699
|
+
function Bt(e) {
|
|
700
700
|
let t = ["Z"];
|
|
701
701
|
e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
702
|
-
let n = `${
|
|
702
|
+
let n = `${Rt({
|
|
703
703
|
precision: e.precision,
|
|
704
704
|
seconds: !0
|
|
705
|
-
})}(?:${t.join("|")})`, r = e.local ? `${n}|${
|
|
706
|
-
return RegExp(`^${
|
|
705
|
+
})}(?:${t.join("|")})`, r = e.local ? `${n}|${Rt({ precision: e.precision })}` : n;
|
|
706
|
+
return RegExp(`^${Ft}T(?:${r})$`);
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Vt = (e) => {
|
|
709
709
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
710
710
|
return RegExp(`^${t}$`);
|
|
711
|
-
},
|
|
711
|
+
}, Ht = /^-?\d+$/, Ut = /^-?\d+(?:\.\d+)?$/, Wt = /^(?:true|false)$/i, Gt = /^null$/i, Kt = /^[^A-Z]*$/, qt = /^[^a-z]*$/, C = /*@__PURE__*/ b("$ZodCheck", (e, t) => {
|
|
712
712
|
var n;
|
|
713
713
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
714
|
-
}),
|
|
714
|
+
}), Jt = (e) => {
|
|
715
715
|
let t = e.value;
|
|
716
716
|
return !i(t) && t.length !== void 0;
|
|
717
|
-
},
|
|
717
|
+
}, Yt = {
|
|
718
718
|
number: "number",
|
|
719
719
|
bigint: "bigint",
|
|
720
720
|
object: "date"
|
|
721
|
-
},
|
|
722
|
-
|
|
723
|
-
let n =
|
|
721
|
+
}, Xt = /*@__PURE__*/ b("$ZodCheckLessThan", (e, t) => {
|
|
722
|
+
C.init(e, t);
|
|
723
|
+
let n = Yt[typeof t.value];
|
|
724
724
|
e._zod.onattach.push((e) => {
|
|
725
725
|
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
726
726
|
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
727
727
|
}), e._zod.check = (r) => {
|
|
728
728
|
(t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
|
|
729
|
-
origin:
|
|
729
|
+
origin: Yt[typeof r.value] ?? n,
|
|
730
730
|
code: "too_big",
|
|
731
731
|
maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
732
732
|
input: r.value,
|
|
@@ -735,15 +735,15 @@ var Bt = (e) => {
|
|
|
735
735
|
continue: !t.abort
|
|
736
736
|
});
|
|
737
737
|
};
|
|
738
|
-
}),
|
|
739
|
-
|
|
740
|
-
let n =
|
|
738
|
+
}), Zt = /*@__PURE__*/ b("$ZodCheckGreaterThan", (e, t) => {
|
|
739
|
+
C.init(e, t);
|
|
740
|
+
let n = Yt[typeof t.value];
|
|
741
741
|
e._zod.onattach.push((e) => {
|
|
742
742
|
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
743
743
|
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
744
744
|
}), e._zod.check = (r) => {
|
|
745
745
|
(t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
|
|
746
|
-
origin:
|
|
746
|
+
origin: Yt[typeof r.value] ?? n,
|
|
747
747
|
code: "too_small",
|
|
748
748
|
minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
749
749
|
input: r.value,
|
|
@@ -752,8 +752,8 @@ var Bt = (e) => {
|
|
|
752
752
|
continue: !t.abort
|
|
753
753
|
});
|
|
754
754
|
};
|
|
755
|
-
}),
|
|
756
|
-
|
|
755
|
+
}), Qt = /*@__PURE__*/ b("$ZodCheckMultipleOf", (e, t) => {
|
|
756
|
+
C.init(e, t), e._zod.onattach.push((e) => {
|
|
757
757
|
var n;
|
|
758
758
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
759
759
|
}), e._zod.check = (n) => {
|
|
@@ -767,12 +767,12 @@ var Bt = (e) => {
|
|
|
767
767
|
continue: !t.abort
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
|
-
}),
|
|
771
|
-
|
|
770
|
+
}), $t = /*@__PURE__*/ b("$ZodCheckNumberFormat", (e, t) => {
|
|
771
|
+
C.init(e, t), t.format = t.format || "float64";
|
|
772
772
|
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = se[t.format];
|
|
773
773
|
e._zod.onattach.push((e) => {
|
|
774
774
|
let r = e._zod.bag;
|
|
775
|
-
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern =
|
|
775
|
+
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Ht);
|
|
776
776
|
}), e._zod.check = (o) => {
|
|
777
777
|
let s = o.value;
|
|
778
778
|
if (n) {
|
|
@@ -828,15 +828,15 @@ var Bt = (e) => {
|
|
|
828
828
|
continue: !t.abort
|
|
829
829
|
});
|
|
830
830
|
};
|
|
831
|
-
}),
|
|
831
|
+
}), en = /*@__PURE__*/ b("$ZodCheckMaxLength", (e, t) => {
|
|
832
832
|
var n;
|
|
833
|
-
|
|
833
|
+
C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
|
|
834
834
|
let n = e._zod.bag.maximum ?? Infinity;
|
|
835
835
|
t.maximum < n && (e._zod.bag.maximum = t.maximum);
|
|
836
836
|
}), e._zod.check = (n) => {
|
|
837
837
|
let r = n.value, i = r.length;
|
|
838
|
-
if ((typeof r == "string" && i > t.maximum ?
|
|
839
|
-
let a =
|
|
838
|
+
if ((typeof r == "string" && i > t.maximum ? be(r) : i) <= t.maximum) return;
|
|
839
|
+
let a = xe(r);
|
|
840
840
|
n.issues.push({
|
|
841
841
|
origin: a,
|
|
842
842
|
code: "too_big",
|
|
@@ -847,15 +847,15 @@ var Bt = (e) => {
|
|
|
847
847
|
continue: !t.abort
|
|
848
848
|
});
|
|
849
849
|
};
|
|
850
|
-
}),
|
|
850
|
+
}), tn = /*@__PURE__*/ b("$ZodCheckMinLength", (e, t) => {
|
|
851
851
|
var n;
|
|
852
|
-
|
|
852
|
+
C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
|
|
853
853
|
let n = e._zod.bag.minimum ?? -Infinity;
|
|
854
854
|
t.minimum > n && (e._zod.bag.minimum = t.minimum);
|
|
855
855
|
}), e._zod.check = (n) => {
|
|
856
856
|
let r = n.value, i = r.length;
|
|
857
|
-
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ?
|
|
858
|
-
let a =
|
|
857
|
+
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? be(r) : i) >= t.minimum) return;
|
|
858
|
+
let a = xe(r);
|
|
859
859
|
n.issues.push({
|
|
860
860
|
origin: a,
|
|
861
861
|
code: "too_small",
|
|
@@ -866,15 +866,15 @@ var Bt = (e) => {
|
|
|
866
866
|
continue: !t.abort
|
|
867
867
|
});
|
|
868
868
|
};
|
|
869
|
-
}),
|
|
869
|
+
}), nn = /*@__PURE__*/ b("$ZodCheckLengthEquals", (e, t) => {
|
|
870
870
|
var n;
|
|
871
|
-
|
|
871
|
+
C.init(e, t), (n = e._zod.def).when ?? (n.when = Jt), e._zod.onattach.push((e) => {
|
|
872
872
|
let n = e._zod.bag;
|
|
873
873
|
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
874
874
|
}), e._zod.check = (n) => {
|
|
875
|
-
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ?
|
|
875
|
+
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? be(r) : i;
|
|
876
876
|
if (a === t.length) return;
|
|
877
|
-
let o =
|
|
877
|
+
let o = xe(r), s = a > t.length;
|
|
878
878
|
n.issues.push({
|
|
879
879
|
origin: o,
|
|
880
880
|
...s ? {
|
|
@@ -891,9 +891,9 @@ var Bt = (e) => {
|
|
|
891
891
|
continue: !t.abort
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
|
-
}),
|
|
894
|
+
}), rn = /*@__PURE__*/ b("$ZodCheckStringFormat", (e, t) => {
|
|
895
895
|
var n, r;
|
|
896
|
-
|
|
896
|
+
C.init(e, t), e._zod.onattach.push((e) => {
|
|
897
897
|
let n = e._zod.bag;
|
|
898
898
|
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
899
899
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -907,8 +907,8 @@ var Bt = (e) => {
|
|
|
907
907
|
continue: !t.abort
|
|
908
908
|
});
|
|
909
909
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
910
|
-
}),
|
|
911
|
-
|
|
910
|
+
}), an = /*@__PURE__*/ b("$ZodCheckRegex", (e, t) => {
|
|
911
|
+
rn.init(e, t), e._zod.check = (n) => {
|
|
912
912
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
913
913
|
origin: "string",
|
|
914
914
|
code: "invalid_format",
|
|
@@ -919,12 +919,12 @@ var Bt = (e) => {
|
|
|
919
919
|
continue: !t.abort
|
|
920
920
|
});
|
|
921
921
|
};
|
|
922
|
-
}),
|
|
923
|
-
t.pattern ??=
|
|
924
|
-
}),
|
|
925
|
-
t.pattern ??=
|
|
926
|
-
}),
|
|
927
|
-
|
|
922
|
+
}), on = /*@__PURE__*/ b("$ZodCheckLowerCase", (e, t) => {
|
|
923
|
+
t.pattern ??= Kt, rn.init(e, t);
|
|
924
|
+
}), sn = /*@__PURE__*/ b("$ZodCheckUpperCase", (e, t) => {
|
|
925
|
+
t.pattern ??= qt, rn.init(e, t);
|
|
926
|
+
}), cn = /*@__PURE__*/ b("$ZodCheckIncludes", (e, t) => {
|
|
927
|
+
C.init(e, t);
|
|
928
928
|
let n = ie(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
|
|
929
929
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
930
930
|
let t = e._zod.bag;
|
|
@@ -940,8 +940,8 @@ var Bt = (e) => {
|
|
|
940
940
|
continue: !t.abort
|
|
941
941
|
});
|
|
942
942
|
};
|
|
943
|
-
}),
|
|
944
|
-
|
|
943
|
+
}), ln = /*@__PURE__*/ b("$ZodCheckStartsWith", (e, t) => {
|
|
944
|
+
C.init(e, t);
|
|
945
945
|
let n = RegExp(`^${ie(t.prefix)}.*`);
|
|
946
946
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
947
947
|
let t = e._zod.bag;
|
|
@@ -957,8 +957,8 @@ var Bt = (e) => {
|
|
|
957
957
|
continue: !t.abort
|
|
958
958
|
});
|
|
959
959
|
};
|
|
960
|
-
}),
|
|
961
|
-
|
|
960
|
+
}), un = /*@__PURE__*/ b("$ZodCheckEndsWith", (e, t) => {
|
|
961
|
+
C.init(e, t);
|
|
962
962
|
let n = RegExp(`.*${ie(t.suffix)}$`);
|
|
963
963
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
964
964
|
let t = e._zod.bag;
|
|
@@ -974,11 +974,11 @@ var Bt = (e) => {
|
|
|
974
974
|
continue: !t.abort
|
|
975
975
|
});
|
|
976
976
|
};
|
|
977
|
-
}),
|
|
978
|
-
|
|
977
|
+
}), dn = /*@__PURE__*/ b("$ZodCheckOverwrite", (e, t) => {
|
|
978
|
+
C.init(e, t), e._zod.check = (e) => {
|
|
979
979
|
e.value = t.tx(e.value);
|
|
980
980
|
};
|
|
981
|
-
}),
|
|
981
|
+
}), fn = class {
|
|
982
982
|
constructor(e = [], t = {}) {
|
|
983
983
|
this.content = [], this.indent = 0, this.args = e, this.closed = t;
|
|
984
984
|
}
|
|
@@ -997,13 +997,13 @@ var Bt = (e) => {
|
|
|
997
997
|
let e = Function, t = this?.content ?? [""];
|
|
998
998
|
return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
|
|
999
999
|
}
|
|
1000
|
-
},
|
|
1000
|
+
}, pn = {
|
|
1001
1001
|
major: 4,
|
|
1002
1002
|
minor: 5,
|
|
1003
1003
|
patch: 4
|
|
1004
|
-
},
|
|
1004
|
+
}, w = /*@__PURE__*/ b("$ZodType", (e, t) => {
|
|
1005
1005
|
var n;
|
|
1006
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1006
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = pn;
|
|
1007
1007
|
let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
|
|
1008
1008
|
for (let t of i) for (let n of t._zod.onattach) n(e);
|
|
1009
1009
|
if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
|
|
@@ -1018,13 +1018,13 @@ var Bt = (e) => {
|
|
|
1018
1018
|
if (ge(t) || !o._zod.def.when(t)) continue;
|
|
1019
1019
|
} else if (i) continue;
|
|
1020
1020
|
let n = t.issues.length, s = o._zod.check(t);
|
|
1021
|
-
if (s instanceof Promise && r?.async === !1) throw new
|
|
1021
|
+
if (s instanceof Promise && r?.async === !1) throw new ze();
|
|
1022
1022
|
if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
|
|
1023
|
-
await s, t.issues.length !== n && (
|
|
1023
|
+
await s, t.issues.length !== n && (ve(t.issues, n, e), i ||= he(t, n));
|
|
1024
1024
|
});
|
|
1025
1025
|
else {
|
|
1026
1026
|
if (t.issues.length === n) continue;
|
|
1027
|
-
|
|
1027
|
+
ve(t.issues, n, e), i ||= he(t, n);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
return a ? a.then(() => t) : t;
|
|
@@ -1032,7 +1032,7 @@ var Bt = (e) => {
|
|
|
1032
1032
|
if (he(n)) return n.aborted = !0, n;
|
|
1033
1033
|
let o = t(r, i, a);
|
|
1034
1034
|
if (o instanceof Promise) {
|
|
1035
|
-
if (a.async === !1) throw new
|
|
1035
|
+
if (a.async === !1) throw new ze();
|
|
1036
1036
|
return o.then((t) => e._zod.parse(t, a));
|
|
1037
1037
|
}
|
|
1038
1038
|
return e._zod.parse(o, a);
|
|
@@ -1051,7 +1051,7 @@ var Bt = (e) => {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
let o = e._zod.parse(r, a);
|
|
1053
1053
|
if (o instanceof Promise) {
|
|
1054
|
-
if (a.async === !1) throw new
|
|
1054
|
+
if (a.async === !1) throw new ze();
|
|
1055
1055
|
return o.then((e) => t(e, i, a));
|
|
1056
1056
|
}
|
|
1057
1057
|
return t(o, i, a);
|
|
@@ -1059,27 +1059,27 @@ var Bt = (e) => {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
}, {
|
|
1061
1061
|
get "~standard"() {
|
|
1062
|
-
return Ee(this, "~standard",
|
|
1062
|
+
return Ee(this, "~standard", hn(this));
|
|
1063
1063
|
},
|
|
1064
1064
|
set "~standard"(e) {
|
|
1065
|
-
|
|
1065
|
+
Te(this, "~standard", e);
|
|
1066
1066
|
}
|
|
1067
|
-
}),
|
|
1068
|
-
function
|
|
1067
|
+
}), mn = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
|
|
1068
|
+
function hn(e) {
|
|
1069
1069
|
return {
|
|
1070
1070
|
validate: (t) => {
|
|
1071
1071
|
try {
|
|
1072
|
-
return
|
|
1072
|
+
return mn(rt(e, t));
|
|
1073
1073
|
} catch {
|
|
1074
|
-
return
|
|
1074
|
+
return at(e, t).then(mn);
|
|
1075
1075
|
}
|
|
1076
1076
|
},
|
|
1077
1077
|
vendor: "zod",
|
|
1078
1078
|
version: 1
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1082
|
-
|
|
1081
|
+
var gn = /*@__PURE__*/ b("$ZodString", (e, t) => {
|
|
1082
|
+
w.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Vt(e._zod.bag), e._zod.parse = (n, r) => {
|
|
1083
1083
|
if (t.coerce) try {
|
|
1084
1084
|
n.value = String(n.value);
|
|
1085
1085
|
} catch {}
|
|
@@ -1090,11 +1090,11 @@ var hn = /*@__PURE__*/ x("$ZodString", (e, t) => {
|
|
|
1090
1090
|
inst: e
|
|
1091
1091
|
}), n;
|
|
1092
1092
|
};
|
|
1093
|
-
}),
|
|
1094
|
-
|
|
1095
|
-
}),
|
|
1096
|
-
t.pattern ??=
|
|
1097
|
-
}),
|
|
1093
|
+
}), T = /*@__PURE__*/ b("$ZodStringFormat", (e, t) => {
|
|
1094
|
+
rn.init(e, t), gn.init(e, t);
|
|
1095
|
+
}), _n = /*@__PURE__*/ b("$ZodGUID", (e, t) => {
|
|
1096
|
+
t.pattern ??= St, T.init(e, t);
|
|
1097
|
+
}), vn = /*@__PURE__*/ b("$ZodUUID", (e, t) => {
|
|
1098
1098
|
if (t.version) {
|
|
1099
1099
|
let e = {
|
|
1100
1100
|
v1: 1,
|
|
@@ -1107,34 +1107,34 @@ var hn = /*@__PURE__*/ x("$ZodString", (e, t) => {
|
|
|
1107
1107
|
v8: 8
|
|
1108
1108
|
}[t.version];
|
|
1109
1109
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
1110
|
-
t.pattern ??=
|
|
1111
|
-
} else t.pattern ??=
|
|
1112
|
-
|
|
1113
|
-
}),
|
|
1114
|
-
t.pattern ??=
|
|
1110
|
+
t.pattern ??= Ct(e);
|
|
1111
|
+
} else t.pattern ??= Ct();
|
|
1112
|
+
T.init(e, t);
|
|
1113
|
+
}), yn = /*@__PURE__*/ b("$ZodEmail", (e, t) => {
|
|
1114
|
+
t.pattern ??= wt, T.init(e, t);
|
|
1115
1115
|
});
|
|
1116
|
-
function
|
|
1117
|
-
if (!t.normalize && t.protocol?.source ===
|
|
1116
|
+
function bn(e, t) {
|
|
1117
|
+
if (!t.normalize && t.protocol?.source === Nt.source && !/^https?:\/\//i.test(e)) return 1;
|
|
1118
1118
|
try {
|
|
1119
1119
|
return new URL(e);
|
|
1120
1120
|
} catch {
|
|
1121
1121
|
return 2;
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
-
return e.replace(
|
|
1124
|
+
var xn = /[\t\n\r]/g;
|
|
1125
|
+
function Sn(e) {
|
|
1126
|
+
return e.replace(xn, "");
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function Cn(e, t) {
|
|
1129
1129
|
return t.lastIndex = 0, t.test(e.hostname);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function wn(e, t) {
|
|
1132
1132
|
return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1135
|
-
|
|
1134
|
+
var Tn = /*@__PURE__*/ b("$ZodURL", (e, t) => {
|
|
1135
|
+
T.init(e, t), e._zod.check = (n) => {
|
|
1136
1136
|
try {
|
|
1137
|
-
let r = n.value.trim(), i =
|
|
1137
|
+
let r = n.value.trim(), i = bn(r, t);
|
|
1138
1138
|
if (i === 1) {
|
|
1139
1139
|
n.issues.push({
|
|
1140
1140
|
code: "invalid_format",
|
|
@@ -1156,7 +1156,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
|
|
|
1156
1156
|
});
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
t.hostname && !
|
|
1159
|
+
t.hostname && !Cn(i, t.hostname) && n.issues.push({
|
|
1160
1160
|
code: "invalid_format",
|
|
1161
1161
|
format: "url",
|
|
1162
1162
|
note: "Invalid hostname",
|
|
@@ -1164,7 +1164,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
|
|
|
1164
1164
|
input: n.value,
|
|
1165
1165
|
inst: e,
|
|
1166
1166
|
continue: !t.abort
|
|
1167
|
-
}), t.protocol && !
|
|
1167
|
+
}), t.protocol && !wn(i, t.protocol) && n.issues.push({
|
|
1168
1168
|
code: "invalid_format",
|
|
1169
1169
|
format: "url",
|
|
1170
1170
|
note: "Invalid protocol",
|
|
@@ -1172,7 +1172,7 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
|
|
|
1172
1172
|
input: n.value,
|
|
1173
1173
|
inst: e,
|
|
1174
1174
|
continue: !t.abort
|
|
1175
|
-
}), n.value = t.normalize ? i.href :
|
|
1175
|
+
}), n.value = t.normalize ? i.href : Sn(r);
|
|
1176
1176
|
return;
|
|
1177
1177
|
} catch {
|
|
1178
1178
|
n.issues.push({
|
|
@@ -1184,45 +1184,45 @@ var wn = /*@__PURE__*/ x("$ZodURL", (e, t) => {
|
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
1186
|
};
|
|
1187
|
-
}),
|
|
1188
|
-
t.pattern ??=
|
|
1189
|
-
}),
|
|
1187
|
+
}), En = /*@__PURE__*/ b("$ZodEmoji", (e, t) => {
|
|
1188
|
+
t.pattern ??= Et(), T.init(e, t);
|
|
1189
|
+
}), Dn = /*@__PURE__*/ b("$ZodNanoID", (e, t) => {
|
|
1190
1190
|
if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
|
|
1191
|
-
t.pattern ??= t.length === void 0 ?
|
|
1192
|
-
}),
|
|
1193
|
-
t.pattern ??=
|
|
1194
|
-
}),
|
|
1195
|
-
t.pattern ??=
|
|
1196
|
-
}),
|
|
1197
|
-
t.pattern ??=
|
|
1198
|
-
}),
|
|
1199
|
-
t.pattern ??=
|
|
1200
|
-
}),
|
|
1201
|
-
t.pattern ??=
|
|
1202
|
-
}),
|
|
1203
|
-
t.pattern ??=
|
|
1191
|
+
t.pattern ??= t.length === void 0 ? yt : bt(t.length), T.init(e, t);
|
|
1192
|
+
}), On = /*@__PURE__*/ b("$ZodCUID", (e, t) => {
|
|
1193
|
+
t.pattern ??= mt, T.init(e, t);
|
|
1194
|
+
}), kn = /*@__PURE__*/ b("$ZodCUID2", (e, t) => {
|
|
1195
|
+
t.pattern ??= ht, T.init(e, t);
|
|
1196
|
+
}), An = /*@__PURE__*/ b("$ZodULID", (e, t) => {
|
|
1197
|
+
t.pattern ??= gt, T.init(e, t);
|
|
1198
|
+
}), jn = /*@__PURE__*/ b("$ZodXID", (e, t) => {
|
|
1199
|
+
t.pattern ??= _t, T.init(e, t);
|
|
1200
|
+
}), Mn = /*@__PURE__*/ b("$ZodKSUID", (e, t) => {
|
|
1201
|
+
t.pattern ??= vt, T.init(e, t);
|
|
1202
|
+
}), Nn = /*@__PURE__*/ b("$ZodISODateTime", (e, t) => {
|
|
1203
|
+
t.pattern ??= Bt(t), T.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
|
|
1204
1204
|
e._zod.bag.laxFormat = !0;
|
|
1205
1205
|
}));
|
|
1206
|
-
}),
|
|
1207
|
-
t.pattern ??=
|
|
1208
|
-
}),
|
|
1209
|
-
t.pattern ??=
|
|
1210
|
-
}),
|
|
1211
|
-
t.pattern ??=
|
|
1212
|
-
}),
|
|
1213
|
-
t.pattern ??=
|
|
1214
|
-
}),
|
|
1215
|
-
function
|
|
1216
|
-
if (!
|
|
1206
|
+
}), Pn = /*@__PURE__*/ b("$ZodISODate", (e, t) => {
|
|
1207
|
+
t.pattern ??= Lt, T.init(e, t);
|
|
1208
|
+
}), Fn = /*@__PURE__*/ b("$ZodISOTime", (e, t) => {
|
|
1209
|
+
t.pattern ??= zt(t), T.init(e, t);
|
|
1210
|
+
}), In = /*@__PURE__*/ b("$ZodISODuration", (e, t) => {
|
|
1211
|
+
t.pattern ??= xt, T.init(e, t);
|
|
1212
|
+
}), Ln = /*@__PURE__*/ b("$ZodIPv4", (e, t) => {
|
|
1213
|
+
t.pattern ??= Dt, T.init(e, t), e._zod.bag.format = "ipv4";
|
|
1214
|
+
}), Rn = /^[0-9a-fA-F:.]+$/;
|
|
1215
|
+
function zn(e) {
|
|
1216
|
+
if (!Rn.test(e)) return !1;
|
|
1217
1217
|
try {
|
|
1218
1218
|
return new URL(`http://[${e}]`), !0;
|
|
1219
1219
|
} catch {
|
|
1220
1220
|
return !1;
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1224
|
-
t.pattern ??=
|
|
1225
|
-
|
|
1223
|
+
var Bn = /*@__PURE__*/ b("$ZodIPv6", (e, t) => {
|
|
1224
|
+
t.pattern ??= Ot, T.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
1225
|
+
zn(n.value) || n.issues.push({
|
|
1226
1226
|
code: "invalid_format",
|
|
1227
1227
|
format: "ipv6",
|
|
1228
1228
|
input: n.value,
|
|
@@ -1230,20 +1230,20 @@ var zn = /*@__PURE__*/ x("$ZodIPv6", (e, t) => {
|
|
|
1230
1230
|
continue: !t.abort
|
|
1231
1231
|
});
|
|
1232
1232
|
};
|
|
1233
|
-
}),
|
|
1234
|
-
t.pattern ??=
|
|
1233
|
+
}), Vn = /*@__PURE__*/ b("$ZodCIDRv4", (e, t) => {
|
|
1234
|
+
t.pattern ??= kt, T.init(e, t);
|
|
1235
1235
|
});
|
|
1236
|
-
function
|
|
1236
|
+
function Hn(e) {
|
|
1237
1237
|
let t = e.split("/");
|
|
1238
1238
|
if (t.length !== 2) return !1;
|
|
1239
1239
|
let [n, r] = t;
|
|
1240
1240
|
if (!r) return !1;
|
|
1241
1241
|
let i = Number(r);
|
|
1242
|
-
return `${i}` !== r || i < 0 || i > 128 ? !1 :
|
|
1242
|
+
return `${i}` !== r || i < 0 || i > 128 ? !1 : zn(n);
|
|
1243
1243
|
}
|
|
1244
|
-
var
|
|
1245
|
-
t.pattern ??=
|
|
1246
|
-
|
|
1244
|
+
var Un = /*@__PURE__*/ b("$ZodCIDRv6", (e, t) => {
|
|
1245
|
+
t.pattern ??= At, T.init(e, t), e._zod.check = (n) => {
|
|
1246
|
+
Hn(n.value) || n.issues.push({
|
|
1247
1247
|
code: "invalid_format",
|
|
1248
1248
|
format: "cidrv6",
|
|
1249
1249
|
input: n.value,
|
|
@@ -1252,7 +1252,7 @@ var Hn = /*@__PURE__*/ x("$ZodCIDRv6", (e, t) => {
|
|
|
1252
1252
|
});
|
|
1253
1253
|
};
|
|
1254
1254
|
});
|
|
1255
|
-
function
|
|
1255
|
+
function Wn(e) {
|
|
1256
1256
|
if (e === "") return !0;
|
|
1257
1257
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
1258
1258
|
try {
|
|
@@ -1261,9 +1261,9 @@ function Un(e) {
|
|
|
1261
1261
|
return !1;
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
var
|
|
1265
|
-
t.pattern ??=
|
|
1266
|
-
|
|
1264
|
+
var Gn = /*@__PURE__*/ b("$ZodBase64", (e, t) => {
|
|
1265
|
+
t.pattern ??= jt, T.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
1266
|
+
Wn(n.value) || n.issues.push({
|
|
1267
1267
|
code: "invalid_format",
|
|
1268
1268
|
format: "base64",
|
|
1269
1269
|
input: n.value,
|
|
@@ -1272,14 +1272,14 @@ var Wn = /*@__PURE__*/ x("$ZodBase64", (e, t) => {
|
|
|
1272
1272
|
});
|
|
1273
1273
|
};
|
|
1274
1274
|
});
|
|
1275
|
-
function
|
|
1276
|
-
if (!
|
|
1275
|
+
function Kn(e) {
|
|
1276
|
+
if (!Mt.test(e)) return !1;
|
|
1277
1277
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1278
|
-
return
|
|
1278
|
+
return Wn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1281
|
-
t.pattern ??=
|
|
1282
|
-
|
|
1280
|
+
var qn = /*@__PURE__*/ b("$ZodBase64URL", (e, t) => {
|
|
1281
|
+
t.pattern ??= Mt, T.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
1282
|
+
Kn(n.value) || n.issues.push({
|
|
1283
1283
|
code: "invalid_format",
|
|
1284
1284
|
format: "base64url",
|
|
1285
1285
|
input: n.value,
|
|
@@ -1287,10 +1287,10 @@ var Kn = /*@__PURE__*/ x("$ZodBase64URL", (e, t) => {
|
|
|
1287
1287
|
continue: !t.abort
|
|
1288
1288
|
});
|
|
1289
1289
|
};
|
|
1290
|
-
}),
|
|
1291
|
-
t.pattern ??=
|
|
1290
|
+
}), Jn = /*@__PURE__*/ b("$ZodE164", (e, t) => {
|
|
1291
|
+
t.pattern ??= Pt, T.init(e, t);
|
|
1292
1292
|
});
|
|
1293
|
-
function
|
|
1293
|
+
function Yn(e, t = null) {
|
|
1294
1294
|
try {
|
|
1295
1295
|
let n = e.split(".");
|
|
1296
1296
|
if (n.length !== 3) return !1;
|
|
@@ -1302,9 +1302,9 @@ function Jn(e, t = null) {
|
|
|
1302
1302
|
return !1;
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1306
|
-
|
|
1307
|
-
|
|
1305
|
+
var Xn = /*@__PURE__*/ b("$ZodJWT", (e, t) => {
|
|
1306
|
+
T.init(e, t), e._zod.check = (n) => {
|
|
1307
|
+
Yn(n.value, t.alg) || n.issues.push({
|
|
1308
1308
|
code: "invalid_format",
|
|
1309
1309
|
format: "jwt",
|
|
1310
1310
|
input: n.value,
|
|
@@ -1312,8 +1312,8 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
|
|
|
1312
1312
|
continue: !t.abort
|
|
1313
1313
|
});
|
|
1314
1314
|
};
|
|
1315
|
-
}),
|
|
1316
|
-
|
|
1315
|
+
}), Zn = /*@__PURE__*/ b("$ZodNumber", (e, t) => {
|
|
1316
|
+
w.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Ut, e._zod.parse = (n, r) => {
|
|
1317
1317
|
if (t.coerce) try {
|
|
1318
1318
|
n.value = Number(n.value);
|
|
1319
1319
|
} catch {}
|
|
@@ -1328,10 +1328,10 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
|
|
|
1328
1328
|
...a ? { received: a } : {}
|
|
1329
1329
|
}), n;
|
|
1330
1330
|
};
|
|
1331
|
-
}),
|
|
1332
|
-
|
|
1333
|
-
}),
|
|
1334
|
-
|
|
1331
|
+
}), Qn = /*@__PURE__*/ b("$ZodNumberFormat", (e, t) => {
|
|
1332
|
+
$t.init(e, t), Zn.init(e, t);
|
|
1333
|
+
}), $n = /*@__PURE__*/ b("$ZodBoolean", (e, t) => {
|
|
1334
|
+
w.init(e, t), e._zod.pattern = Wt, e._zod.parse = (n, r) => {
|
|
1335
1335
|
if (t.coerce) try {
|
|
1336
1336
|
n.value = !!n.value;
|
|
1337
1337
|
} catch {}
|
|
@@ -1343,8 +1343,8 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
|
|
|
1343
1343
|
inst: e
|
|
1344
1344
|
}), n;
|
|
1345
1345
|
};
|
|
1346
|
-
}),
|
|
1347
|
-
|
|
1346
|
+
}), er = /*@__PURE__*/ b("$ZodNull", (e, t) => {
|
|
1347
|
+
w.init(e, t), e._zod.pattern = Gt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1348
1348
|
let r = t.value;
|
|
1349
1349
|
return r === null || t.issues.push({
|
|
1350
1350
|
expected: "null",
|
|
@@ -1353,22 +1353,22 @@ var Yn = /*@__PURE__*/ x("$ZodJWT", (e, t) => {
|
|
|
1353
1353
|
inst: e
|
|
1354
1354
|
}), t;
|
|
1355
1355
|
};
|
|
1356
|
-
}),
|
|
1357
|
-
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1356
|
+
}), tr = /*@__PURE__*/ b("$ZodUnknown", (e, t) => {
|
|
1357
|
+
w.init(e, t), e._zod.parse = (e) => e;
|
|
1358
|
+
}), nr = /*@__PURE__*/ b("$ZodNever", (e, t) => {
|
|
1359
|
+
w.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1360
1360
|
expected: "never",
|
|
1361
1361
|
code: "invalid_type",
|
|
1362
1362
|
input: t.value,
|
|
1363
1363
|
inst: e
|
|
1364
1364
|
}), t);
|
|
1365
1365
|
});
|
|
1366
|
-
function
|
|
1367
|
-
e.issues.length && t.issues.push(...
|
|
1366
|
+
function rr(e, t, n) {
|
|
1367
|
+
e.issues.length && t.issues.push(..._(n, e.issues)), t.value[n] = e.value;
|
|
1368
1368
|
}
|
|
1369
|
-
var
|
|
1370
|
-
|
|
1371
|
-
let n =
|
|
1369
|
+
var ir = /*@__PURE__*/ b("$ZodArray", (e, t) => {
|
|
1370
|
+
w.init(e, t);
|
|
1371
|
+
let n = x.memoizer;
|
|
1372
1372
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1373
1373
|
let a = r.value;
|
|
1374
1374
|
if (!Array.isArray(a)) return r.issues.push({
|
|
@@ -1384,17 +1384,17 @@ var rr = /*@__PURE__*/ x("$ZodArray", (e, t) => {
|
|
|
1384
1384
|
value: n,
|
|
1385
1385
|
issues: []
|
|
1386
1386
|
}, i);
|
|
1387
|
-
s instanceof Promise ? o.push(s.then((t) =>
|
|
1387
|
+
s instanceof Promise ? o.push(s.then((t) => rr(t, r, e))) : rr(s, r, e);
|
|
1388
1388
|
}
|
|
1389
1389
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1390
1390
|
};
|
|
1391
1391
|
});
|
|
1392
|
-
function
|
|
1392
|
+
function ar(e, t, n, r, i, a) {
|
|
1393
1393
|
let o = n in r, s = a === "optional";
|
|
1394
1394
|
if (!(!o && s && i === "optional")) {
|
|
1395
1395
|
if (e.issues.length) {
|
|
1396
1396
|
if (i !== void 0 && s && !o) return;
|
|
1397
|
-
t.issues.push(...
|
|
1397
|
+
t.issues.push(..._(n, e.issues));
|
|
1398
1398
|
}
|
|
1399
1399
|
if (!o && i === void 0) {
|
|
1400
1400
|
e.issues.length || t.issues.push({
|
|
@@ -1408,9 +1408,9 @@ function ir(e, t, n, r, i, a) {
|
|
|
1408
1408
|
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1413
|
-
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n :
|
|
1411
|
+
var or = [];
|
|
1412
|
+
function sr(e) {
|
|
1413
|
+
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : or, i = r.length ? [...t, ...r] : t;
|
|
1414
1414
|
for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
|
|
1415
1415
|
let a = oe(e.shape);
|
|
1416
1416
|
return {
|
|
@@ -1422,7 +1422,7 @@ function or(e) {
|
|
|
1422
1422
|
optionalKeys: new Set(a)
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function cr(e, t, n, r, i, a) {
|
|
1426
1426
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin, d = c.optout;
|
|
1427
1427
|
for (let i in t) {
|
|
1428
1428
|
if (s.has(i)) continue;
|
|
@@ -1438,7 +1438,7 @@ function sr(e, t, n, r, i, a) {
|
|
|
1438
1438
|
value: t[i],
|
|
1439
1439
|
issues: []
|
|
1440
1440
|
}, r);
|
|
1441
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1441
|
+
a instanceof Promise ? e.push(a.then((e) => ar(e, n, i, t, u, d))) : ar(a, n, i, t, u, d);
|
|
1442
1442
|
}
|
|
1443
1443
|
return o.length && n.issues.push({
|
|
1444
1444
|
code: "unrecognized_keys",
|
|
@@ -1448,16 +1448,16 @@ function sr(e, t, n, r, i, a) {
|
|
|
1448
1448
|
continue: !0
|
|
1449
1449
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1450
1450
|
}
|
|
1451
|
-
var
|
|
1452
|
-
if (
|
|
1451
|
+
var lr = /* @__PURE__ */ new WeakMap(), ur = /*@__PURE__*/ b("$ZodObject", (e, t) => {
|
|
1452
|
+
if (w.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1453
1453
|
let e = t.shape;
|
|
1454
|
-
|
|
1454
|
+
lr.set(t, e), Object.defineProperty(t, "shape", { get: () => {
|
|
1455
1455
|
let n = { ...e };
|
|
1456
|
-
return Object.defineProperty(t, "shape", { value: n }),
|
|
1456
|
+
return Object.defineProperty(t, "shape", { value: n }), lr.set(t, n), n;
|
|
1457
1457
|
} });
|
|
1458
1458
|
}
|
|
1459
|
-
let n = r(() =>
|
|
1460
|
-
|
|
1459
|
+
let n = r(() => sr(t));
|
|
1460
|
+
y(e, "propValues", (e) => {
|
|
1461
1461
|
let t = e.def.shape, n = {};
|
|
1462
1462
|
for (let e in t) {
|
|
1463
1463
|
let r = t[e]._zod;
|
|
@@ -1469,7 +1469,7 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
|
|
|
1469
1469
|
}
|
|
1470
1470
|
return n;
|
|
1471
1471
|
});
|
|
1472
|
-
let i = m, a = t.catchall, o, s =
|
|
1472
|
+
let i = m, a = t.catchall, o, s = x.memoizer;
|
|
1473
1473
|
s?.attach(e), e._zod.parse = (t, r) => {
|
|
1474
1474
|
o ??= n.value;
|
|
1475
1475
|
let c = t.value;
|
|
@@ -1487,14 +1487,14 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
|
|
|
1487
1487
|
value: c[e],
|
|
1488
1488
|
issues: []
|
|
1489
1489
|
}, r);
|
|
1490
|
-
o instanceof Promise ? l.push(o.then((n) =>
|
|
1490
|
+
o instanceof Promise ? l.push(o.then((n) => ar(n, t, e, c, i, a))) : ar(o, t, e, c, i, a);
|
|
1491
1491
|
}
|
|
1492
|
-
return a ?
|
|
1492
|
+
return a ? cr(l, c, t, r, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
|
|
1493
1493
|
};
|
|
1494
|
-
}),
|
|
1495
|
-
|
|
1496
|
-
let n = e._zod.parse, i = r(() =>
|
|
1497
|
-
let n = i.value, r = n.symbolKeys, o = new
|
|
1494
|
+
}), dr = /*@__PURE__*/ b("$ZodObjectJIT", (e, t) => {
|
|
1495
|
+
ur.init(e, t);
|
|
1496
|
+
let n = e._zod.parse, i = r(() => sr(t)), a = x.memoizer, o = (t) => {
|
|
1497
|
+
let n = i.value, r = n.symbolKeys, o = new fn(["payload", "ctx"], {
|
|
1498
1498
|
shape: t,
|
|
1499
1499
|
inst: e,
|
|
1500
1500
|
memo: a,
|
|
@@ -1558,11 +1558,11 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
|
|
|
1558
1558
|
`);
|
|
1559
1559
|
}
|
|
1560
1560
|
return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
|
|
1561
|
-
}, s, c = m, l = !
|
|
1561
|
+
}, s, c = m, l = !x.jitless, u = l && ee.value, f = t.catchall, p;
|
|
1562
1562
|
e._zod.parse = (r, a) => {
|
|
1563
1563
|
p ??= i.value;
|
|
1564
1564
|
let d = r.value;
|
|
1565
|
-
return c(d) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), r = s(r, a), f ?
|
|
1565
|
+
return c(d) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), r = s(r, a), f ? cr([], d, r, a, p, e) : r) : n(r, a) : (r.issues.push({
|
|
1566
1566
|
expected: "object",
|
|
1567
1567
|
code: "invalid_type",
|
|
1568
1568
|
input: d,
|
|
@@ -1570,20 +1570,20 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /*@__PURE__*/ x("$ZodObject", (e, t
|
|
|
1570
1570
|
}), r);
|
|
1571
1571
|
};
|
|
1572
1572
|
});
|
|
1573
|
-
function
|
|
1573
|
+
function fr(e, t, n, r) {
|
|
1574
1574
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1575
1575
|
let i = e.filter((e) => !he(e));
|
|
1576
1576
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1577
1577
|
code: "invalid_union",
|
|
1578
1578
|
input: t.value,
|
|
1579
1579
|
inst: n,
|
|
1580
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1580
|
+
errors: e.map((e) => e.issues.map((e) => v(e, r, S())))
|
|
1581
1581
|
}), t);
|
|
1582
1582
|
}
|
|
1583
|
-
var
|
|
1584
|
-
|
|
1583
|
+
var pr = /*@__PURE__*/ b("$ZodUnion", (e, t) => {
|
|
1584
|
+
w.init(e, t), y(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), y(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), y(e, "values", (e) => {
|
|
1585
1585
|
if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1586
|
-
}),
|
|
1586
|
+
}), y(e, "pattern", (e) => {
|
|
1587
1587
|
if (e.def.options.every((e) => e._zod.pattern)) {
|
|
1588
1588
|
let t = e.def.options.map((e) => e._zod.pattern);
|
|
1589
1589
|
return RegExp(`^(${t.map((e) => a(e.source)).join("|")})$`);
|
|
@@ -1604,10 +1604,10 @@ var fr = /*@__PURE__*/ x("$ZodUnion", (e, t) => {
|
|
|
1604
1604
|
o.push(t);
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
return a ? Promise.all(o).then((t) =>
|
|
1607
|
+
return a ? Promise.all(o).then((t) => fr(t, r, e, i)) : fr(o, r, e, i);
|
|
1608
1608
|
};
|
|
1609
|
-
}),
|
|
1610
|
-
|
|
1609
|
+
}), mr = /*@__PURE__*/ b("$ZodIntersection", (e, t) => {
|
|
1610
|
+
w.init(e, t), e._zod.parse = (e, n) => {
|
|
1611
1611
|
let r = e.value, i = t.left._zod.run({
|
|
1612
1612
|
value: r,
|
|
1613
1613
|
issues: []
|
|
@@ -1615,10 +1615,10 @@ var fr = /*@__PURE__*/ x("$ZodUnion", (e, t) => {
|
|
|
1615
1615
|
value: r,
|
|
1616
1616
|
issues: []
|
|
1617
1617
|
}, n);
|
|
1618
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1618
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => gr(e, t, n)) : gr(e, i, a);
|
|
1619
1619
|
};
|
|
1620
1620
|
});
|
|
1621
|
-
function
|
|
1621
|
+
function hr(e, t) {
|
|
1622
1622
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1623
1623
|
valid: !0,
|
|
1624
1624
|
data: e
|
|
@@ -1631,7 +1631,7 @@ function mr(e, t) {
|
|
|
1631
1631
|
Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
|
|
1632
1632
|
for (let n of r) {
|
|
1633
1633
|
if (n === "__proto__") continue;
|
|
1634
|
-
let r =
|
|
1634
|
+
let r = hr(e[n], t[n]);
|
|
1635
1635
|
if (!r.valid) return {
|
|
1636
1636
|
valid: !1,
|
|
1637
1637
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1650,7 +1650,7 @@ function mr(e, t) {
|
|
|
1650
1650
|
};
|
|
1651
1651
|
let n = [];
|
|
1652
1652
|
for (let r = 0; r < e.length; r++) {
|
|
1653
|
-
let i = e[r], a = t[r], o =
|
|
1653
|
+
let i = e[r], a = t[r], o = hr(i, a);
|
|
1654
1654
|
if (!o.valid) return {
|
|
1655
1655
|
valid: !1,
|
|
1656
1656
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1667,7 +1667,7 @@ function mr(e, t) {
|
|
|
1667
1667
|
mergeErrorPath: []
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function gr(e, t, n) {
|
|
1671
1671
|
let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
|
|
1672
1672
|
let n;
|
|
1673
1673
|
if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
|
|
@@ -1689,16 +1689,16 @@ function hr(e, t, n) {
|
|
|
1689
1689
|
});
|
|
1690
1690
|
for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
|
|
1691
1691
|
}
|
|
1692
|
-
let c =
|
|
1692
|
+
let c = hr(t.value, n.value);
|
|
1693
1693
|
if (!c.valid) {
|
|
1694
1694
|
if (he(e)) return e;
|
|
1695
1695
|
throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
|
|
1696
1696
|
}
|
|
1697
1697
|
return e.value = c.data, e;
|
|
1698
1698
|
}
|
|
1699
|
-
var
|
|
1700
|
-
|
|
1701
|
-
let n =
|
|
1699
|
+
var _r = /*@__PURE__*/ b("$ZodRecord", (e, t) => {
|
|
1700
|
+
w.init(e, t);
|
|
1701
|
+
let n = x.memoizer;
|
|
1702
1702
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1703
1703
|
let a = r.value;
|
|
1704
1704
|
if (!te(a)) return r.issues.push({
|
|
@@ -1722,7 +1722,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1722
1722
|
r.issues.push({
|
|
1723
1723
|
code: "invalid_key",
|
|
1724
1724
|
origin: "record",
|
|
1725
|
-
issues: s.issues.map((e) =>
|
|
1725
|
+
issues: s.issues.map((e) => v(e, i, S())),
|
|
1726
1726
|
input: n,
|
|
1727
1727
|
path: [n],
|
|
1728
1728
|
inst: e
|
|
@@ -1736,8 +1736,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1736
1736
|
issues: []
|
|
1737
1737
|
}, i);
|
|
1738
1738
|
u instanceof Promise ? o.push(u.then((e) => {
|
|
1739
|
-
e.issues.length && r.issues.push(...
|
|
1740
|
-
})) : (u.issues.length && r.issues.push(...
|
|
1739
|
+
e.issues.length && r.issues.push(..._(n, e.issues)), r.value[l] = e.value;
|
|
1740
|
+
})) : (u.issues.length && r.issues.push(..._(n, u.issues)), r.value[l] = u.value);
|
|
1741
1741
|
}
|
|
1742
1742
|
let l;
|
|
1743
1743
|
for (let e in a) if (!c.has(e)) {
|
|
@@ -1763,7 +1763,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1763
1763
|
issues: []
|
|
1764
1764
|
}, i);
|
|
1765
1765
|
if (l instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
1766
|
-
if (typeof n == "string" &&
|
|
1766
|
+
if (typeof n == "string" && Ut.test(n) && l.issues.length) {
|
|
1767
1767
|
let e = t.keyType._zod.run({
|
|
1768
1768
|
value: Number(n),
|
|
1769
1769
|
issues: []
|
|
@@ -1775,7 +1775,7 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1775
1775
|
t.mode === "loose" ? r.value[n] = a[n] : s ? (c ??= [], c.push(n)) : r.issues.push({
|
|
1776
1776
|
code: "invalid_key",
|
|
1777
1777
|
origin: "record",
|
|
1778
|
-
issues: l.issues.map((e) =>
|
|
1778
|
+
issues: l.issues.map((e) => v(e, i, S())),
|
|
1779
1779
|
input: n,
|
|
1780
1780
|
path: [n],
|
|
1781
1781
|
inst: e
|
|
@@ -1789,8 +1789,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1789
1789
|
issues: []
|
|
1790
1790
|
}, i);
|
|
1791
1791
|
d instanceof Promise ? o.push(d.then((e) => {
|
|
1792
|
-
e.issues.length && r.issues.push(...
|
|
1793
|
-
})) : (d.issues.length && r.issues.push(...
|
|
1792
|
+
e.issues.length && r.issues.push(..._(n, e.issues)), r.value[u] = e.value;
|
|
1793
|
+
})) : (d.issues.length && r.issues.push(..._(n, d.issues)), r.value[u] = d.value);
|
|
1794
1794
|
}
|
|
1795
1795
|
c && c.length > 0 && r.issues.push({
|
|
1796
1796
|
code: "unrecognized_keys",
|
|
@@ -1802,8 +1802,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1804
1804
|
};
|
|
1805
|
-
}),
|
|
1806
|
-
|
|
1805
|
+
}), vr = /*@__PURE__*/ b("$ZodEnum", (t, n) => {
|
|
1806
|
+
w.init(t, n);
|
|
1807
1807
|
let r = e(n.entries), i = new Set(r);
|
|
1808
1808
|
t._zod.values = i;
|
|
1809
1809
|
let a = r.filter((e) => re.has(typeof e));
|
|
@@ -1816,8 +1816,8 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1816
1816
|
inst: t
|
|
1817
1817
|
}), e;
|
|
1818
1818
|
};
|
|
1819
|
-
}),
|
|
1820
|
-
|
|
1819
|
+
}), yr = /*@__PURE__*/ b("$ZodLiteral", (e, t) => {
|
|
1820
|
+
w.init(e, t);
|
|
1821
1821
|
let n = new Set(t.values);
|
|
1822
1822
|
e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? ie(e) : e ? ie(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
|
|
1823
1823
|
let a = r.value;
|
|
@@ -1828,23 +1828,23 @@ var gr = /*@__PURE__*/ x("$ZodRecord", (e, t) => {
|
|
|
1828
1828
|
inst: e
|
|
1829
1829
|
}), r;
|
|
1830
1830
|
};
|
|
1831
|
-
}),
|
|
1832
|
-
|
|
1833
|
-
if (r.direction === "backward") throw new
|
|
1831
|
+
}), br = /*@__PURE__*/ b("$ZodTransform", (e, t) => {
|
|
1832
|
+
w.init(e, t), e._zod.optin = "optional", x.memoizer?.guard(e), e._zod.parse = (n, r) => {
|
|
1833
|
+
if (r.direction === "backward") throw new Be(e.constructor.name);
|
|
1834
1834
|
let i = t.transform(n.value, n);
|
|
1835
1835
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1836
|
-
if (i instanceof Promise) throw new
|
|
1836
|
+
if (i instanceof Promise) throw new ze();
|
|
1837
1837
|
return n.value = i, n;
|
|
1838
1838
|
};
|
|
1839
1839
|
});
|
|
1840
|
-
function
|
|
1840
|
+
function xr(e, t) {
|
|
1841
1841
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
1842
1842
|
}
|
|
1843
|
-
var
|
|
1844
|
-
|
|
1843
|
+
var Sr = /*@__PURE__*/ b("$ZodOptional", (e, t) => {
|
|
1844
|
+
w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", y(e, "values", (e) => {
|
|
1845
1845
|
let t = e.def.innerType._zod.values;
|
|
1846
1846
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
1847
|
-
}),
|
|
1847
|
+
}), y(e, "pattern", (e) => {
|
|
1848
1848
|
let t = e.def.innerType._zod.pattern;
|
|
1849
1849
|
return t ? RegExp(`^(${a(t.source)})?$`) : void 0;
|
|
1850
1850
|
}), e._zod.parse = (e, n) => {
|
|
@@ -1854,40 +1854,40 @@ var xr = /*@__PURE__*/ x("$ZodOptional", (e, t) => {
|
|
|
1854
1854
|
value: e.value,
|
|
1855
1855
|
issues: []
|
|
1856
1856
|
}, n);
|
|
1857
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1857
|
+
return r instanceof Promise ? r.then((t) => xr(e, t)) : xr(e, r);
|
|
1858
1858
|
}
|
|
1859
1859
|
return t.innerType._zod.run(e, n);
|
|
1860
1860
|
};
|
|
1861
|
-
}),
|
|
1862
|
-
|
|
1863
|
-
}),
|
|
1864
|
-
|
|
1861
|
+
}), Cr = /*@__PURE__*/ b("$ZodExactOptional", (e, t) => {
|
|
1862
|
+
Sr.init(e, t), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1863
|
+
}), wr = /*@__PURE__*/ b("$ZodNullable", (e, t) => {
|
|
1864
|
+
w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "pattern", (e) => {
|
|
1865
1865
|
let t = e.def.innerType._zod.pattern;
|
|
1866
1866
|
return t ? RegExp(`^(${a(t.source)}|null)$`) : void 0;
|
|
1867
|
-
}),
|
|
1868
|
-
}),
|
|
1869
|
-
|
|
1867
|
+
}), y(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1868
|
+
}), Tr = /*@__PURE__*/ b("$ZodDefault", (e, t) => {
|
|
1869
|
+
w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1870
1870
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1871
1871
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1872
1872
|
let r = t.innerType._zod.run(e, n);
|
|
1873
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1873
|
+
return r instanceof Promise ? r.then((e) => Er(e, t)) : Er(r, t);
|
|
1874
1874
|
};
|
|
1875
1875
|
});
|
|
1876
|
-
function
|
|
1876
|
+
function Er(e, t) {
|
|
1877
1877
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1878
1878
|
}
|
|
1879
|
-
var
|
|
1880
|
-
|
|
1881
|
-
}),
|
|
1882
|
-
|
|
1879
|
+
var Dr = /*@__PURE__*/ b("$ZodPrefault", (e, t) => {
|
|
1880
|
+
w.init(e, t), e._zod.optin = "defaulted", y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1881
|
+
}), Or = /*@__PURE__*/ b("$ZodNonOptional", (e, t) => {
|
|
1882
|
+
w.init(e, t), y(e, "values", (e) => {
|
|
1883
1883
|
let t = e.def.innerType._zod.values;
|
|
1884
1884
|
return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
|
|
1885
1885
|
}), e._zod.parse = (n, r) => {
|
|
1886
1886
|
let i = t.innerType._zod.run(n, r);
|
|
1887
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1887
|
+
return i instanceof Promise ? i.then((t) => kr(t, e)) : kr(i, e);
|
|
1888
1888
|
};
|
|
1889
1889
|
});
|
|
1890
|
-
function
|
|
1890
|
+
function kr(e, t) {
|
|
1891
1891
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1892
1892
|
code: "invalid_type",
|
|
1893
1893
|
expected: "nonoptional",
|
|
@@ -1895,62 +1895,62 @@ function Or(e, t) {
|
|
|
1895
1895
|
inst: t
|
|
1896
1896
|
}), e;
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Ar(e, t, n, r) {
|
|
1899
1899
|
return t.issues.length ? (e.value = n.catchValue({
|
|
1900
1900
|
...t,
|
|
1901
1901
|
value: e.value,
|
|
1902
|
-
error: { issues: t.issues.map((e) =>
|
|
1902
|
+
error: { issues: t.issues.map((e) => v(e, r, S())) },
|
|
1903
1903
|
input: e.value
|
|
1904
1904
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
1905
1905
|
}
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1906
|
+
var jr = /*@__PURE__*/ b("$ZodCatch", (e, t) => {
|
|
1907
|
+
w.init(e, t), y(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), y(e, "optout", (e) => e.def.innerType._zod.optout), y(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1908
1908
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1909
1909
|
let r = t.innerType._zod.run({
|
|
1910
1910
|
value: e.value,
|
|
1911
1911
|
issues: []
|
|
1912
1912
|
}, n);
|
|
1913
|
-
return r instanceof Promise ? r.then((r) =>
|
|
1913
|
+
return r instanceof Promise ? r.then((r) => Ar(e, r, t, n)) : Ar(e, r, t, n);
|
|
1914
1914
|
};
|
|
1915
|
-
}),
|
|
1916
|
-
|
|
1915
|
+
}), Mr = /*@__PURE__*/ b("$ZodPipe", (e, t) => {
|
|
1916
|
+
w.init(e, t), y(e, "values", (e) => e.def.in._zod.values), y(e, "optin", (e) => e.def.in._zod.optin), y(e, "optout", (e) => e.def.out._zod.optout), y(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1917
1917
|
if (n.direction === "backward") {
|
|
1918
1918
|
let r = t.out._zod.run(e, n);
|
|
1919
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1919
|
+
return r instanceof Promise ? r.then((e) => Nr(e, t.in, n)) : Nr(r, t.in, n);
|
|
1920
1920
|
}
|
|
1921
1921
|
let r = t.in._zod.run(e, n);
|
|
1922
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1922
|
+
return r instanceof Promise ? r.then((e) => Nr(e, t.out, n)) : Nr(r, t.out, n);
|
|
1923
1923
|
};
|
|
1924
1924
|
});
|
|
1925
|
-
function
|
|
1925
|
+
function Nr(e, t, n) {
|
|
1926
1926
|
return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
|
|
1927
1927
|
value: e.value,
|
|
1928
1928
|
issues: e.issues
|
|
1929
1929
|
}, n);
|
|
1930
1930
|
}
|
|
1931
|
-
var
|
|
1932
|
-
|
|
1931
|
+
var Pr = /*@__PURE__*/ b("$ZodReadonly", (e, t) => {
|
|
1932
|
+
w.init(e, t), y(e, "propValues", (e) => e.def.innerType._zod.propValues), y(e, "values", (e) => e.def.innerType._zod.values), y(e, "optin", (e) => e.def.innerType?._zod?.optin), y(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1933
1933
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1934
1934
|
let r = t.innerType._zod.run(e, n);
|
|
1935
|
-
return r instanceof Promise ? r.then(
|
|
1935
|
+
return r instanceof Promise ? r.then(Fr) : Fr(r);
|
|
1936
1936
|
};
|
|
1937
1937
|
});
|
|
1938
|
-
function
|
|
1938
|
+
function Fr(e) {
|
|
1939
1939
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
1940
1940
|
}
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1941
|
+
var Ir = /*@__PURE__*/ b("$ZodLazy", (e, t) => {
|
|
1942
|
+
w.init(e, t), c(e._zod, "innerType", () => {
|
|
1943
1943
|
let e = t;
|
|
1944
1944
|
return e._cachedInner ||= t.getter(), e._cachedInner;
|
|
1945
|
-
}),
|
|
1946
|
-
}),
|
|
1947
|
-
|
|
1945
|
+
}), y(e, "pattern", (e) => e.innerType?._zod?.pattern), y(e, "propValues", (e) => e.innerType?._zod?.propValues), y(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), y(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
|
|
1946
|
+
}), Lr = /*@__PURE__*/ b("$ZodCustom", (e, t) => {
|
|
1947
|
+
C.init(e, t), w.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1948
1948
|
let r = n.value, i = t.fn(r);
|
|
1949
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1950
|
-
|
|
1949
|
+
if (i instanceof Promise) return i.then((t) => Rr(t, n, r, e));
|
|
1950
|
+
Rr(i, n, r, e);
|
|
1951
1951
|
};
|
|
1952
1952
|
});
|
|
1953
|
-
function
|
|
1953
|
+
function Rr(e, t, n, r) {
|
|
1954
1954
|
if (!e) {
|
|
1955
1955
|
let e = {
|
|
1956
1956
|
code: "custom",
|
|
@@ -1959,30 +1959,30 @@ function Lr(e, t, n, r) {
|
|
|
1959
1959
|
path: [...r._zod.def.path ?? []],
|
|
1960
1960
|
continue: !r._zod.def.abort
|
|
1961
1961
|
};
|
|
1962
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
1962
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(Ce(e));
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
//#endregion
|
|
1966
1966
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
|
|
1967
|
-
var
|
|
1967
|
+
var zr = class extends Error {
|
|
1968
1968
|
constructor() {
|
|
1969
1969
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
1970
1970
|
}
|
|
1971
|
-
},
|
|
1972
|
-
function
|
|
1971
|
+
}, Br = "~memo", Vr = [];
|
|
1972
|
+
function Hr(e) {
|
|
1973
1973
|
return e.map((e) => e.path ? {
|
|
1974
1974
|
...e,
|
|
1975
1975
|
path: e.path.slice()
|
|
1976
1976
|
} : { ...e });
|
|
1977
1977
|
}
|
|
1978
|
-
var
|
|
1979
|
-
function
|
|
1980
|
-
let n =
|
|
1978
|
+
var Ur = /*@__PURE__*/ new WeakMap();
|
|
1979
|
+
function Wr(e, t) {
|
|
1980
|
+
let n = Ur.get(e);
|
|
1981
1981
|
if (n !== void 0) return n;
|
|
1982
1982
|
if (t.has(e)) return !0;
|
|
1983
1983
|
t.add(e);
|
|
1984
1984
|
let r = !1, i = (e) => {
|
|
1985
|
-
!r && e?._zod &&
|
|
1985
|
+
!r && e?._zod && Wr(e, t) && (r = !0);
|
|
1986
1986
|
}, a = e._zod.def;
|
|
1987
1987
|
switch (a.type) {
|
|
1988
1988
|
case "object":
|
|
@@ -2059,28 +2059,28 @@ function Ur(e, t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
return t.delete(e),
|
|
2062
|
+
return t.delete(e), Ur.set(e, r), r;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Gr(e, t) {
|
|
2065
2065
|
let n = e.buckets.get(t);
|
|
2066
2066
|
return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
|
|
2067
2067
|
}
|
|
2068
|
-
var
|
|
2068
|
+
var Kr, qr = [], Jr = {
|
|
2069
2069
|
alloc(e, t, n) {
|
|
2070
|
-
let r =
|
|
2070
|
+
let r = Kr;
|
|
2071
2071
|
if (!r) return n;
|
|
2072
|
-
|
|
2072
|
+
Kr = void 0;
|
|
2073
2073
|
let i = {
|
|
2074
2074
|
value: n,
|
|
2075
2075
|
issues: null
|
|
2076
2076
|
};
|
|
2077
|
-
return r.set(t.value, i),
|
|
2077
|
+
return r.set(t.value, i), qr.push(i), n;
|
|
2078
2078
|
},
|
|
2079
2079
|
guard(e) {
|
|
2080
2080
|
var t;
|
|
2081
2081
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2082
2082
|
let t = e._zod.parse, n = (e, n) => {
|
|
2083
|
-
if (n.direction !== "backward" &&
|
|
2083
|
+
if (n.direction !== "backward" && Xr(n, e.value)) throw new zr();
|
|
2084
2084
|
return t(e, n);
|
|
2085
2085
|
};
|
|
2086
2086
|
e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
|
|
@@ -2091,38 +2091,38 @@ var Gr, Kr = [], qr = {
|
|
|
2091
2091
|
let n, r, i;
|
|
2092
2092
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2093
2093
|
let t = e._zod.parse, a = (o, s) => {
|
|
2094
|
-
if (n === void 0 && (n =
|
|
2094
|
+
if (n === void 0 && (n = Wr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
|
|
2095
2095
|
let c = o.value;
|
|
2096
2096
|
if (typeof c != "object" || !c) return t(o, s);
|
|
2097
|
-
let l = s[
|
|
2097
|
+
let l = s[Br];
|
|
2098
2098
|
l || (l = {
|
|
2099
2099
|
buckets: /* @__PURE__ */ new Map(),
|
|
2100
2100
|
backEdges: void 0
|
|
2101
|
-
}, s[
|
|
2101
|
+
}, s[Br] = l);
|
|
2102
2102
|
let u;
|
|
2103
|
-
r === s ? u = i : (u =
|
|
2103
|
+
r === s ? u = i : (u = Gr(l, e), r = s, i = u);
|
|
2104
2104
|
let d = u.get(c);
|
|
2105
|
-
if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...
|
|
2106
|
-
|
|
2107
|
-
let f =
|
|
2108
|
-
|
|
2109
|
-
let m =
|
|
2110
|
-
return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ?
|
|
2105
|
+
if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Hr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
|
|
2106
|
+
Kr = u;
|
|
2107
|
+
let f = qr.length, p = t(o, s);
|
|
2108
|
+
Kr = void 0;
|
|
2109
|
+
let m = qr.length > f ? qr.pop() : void 0;
|
|
2110
|
+
return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Hr(e.issues) : Vr), e)) : (m && (m.issues = p.issues.length ? Hr(p.issues) : Vr), p);
|
|
2111
2111
|
};
|
|
2112
2112
|
e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
|
|
2113
2113
|
});
|
|
2114
2114
|
}
|
|
2115
2115
|
};
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2116
|
+
function Yr() {
|
|
2117
|
+
return Jr;
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
let n = e[
|
|
2119
|
+
function Xr(e, t) {
|
|
2120
|
+
let n = e[Br]?.backEdges;
|
|
2121
2121
|
return n !== void 0 && typeof t == "object" && !!t && n.has(t);
|
|
2122
2122
|
}
|
|
2123
2123
|
//#endregion
|
|
2124
2124
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
|
|
2125
|
-
var
|
|
2125
|
+
var Zr = () => {
|
|
2126
2126
|
let e = {
|
|
2127
2127
|
string: {
|
|
2128
2128
|
unit: "characters",
|
|
@@ -2185,7 +2185,7 @@ var Xr = () => {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
return (e) => {
|
|
2187
2187
|
switch (e.code) {
|
|
2188
|
-
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(
|
|
2188
|
+
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(Se(e.input), e.input)}`;
|
|
2189
2189
|
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ae(e.values[0])}` : `Invalid option: expected one of ${t(e.values, "|")}`;
|
|
2190
2190
|
case "too_big": {
|
|
2191
2191
|
let t = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = n(e.origin);
|
|
@@ -2208,12 +2208,12 @@ var Xr = () => {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
};
|
|
2210
2210
|
};
|
|
2211
|
-
function
|
|
2212
|
-
return { localeError:
|
|
2211
|
+
function Qr() {
|
|
2212
|
+
return { localeError: Zr() };
|
|
2213
2213
|
}
|
|
2214
2214
|
//#endregion
|
|
2215
2215
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
|
|
2216
|
-
var
|
|
2216
|
+
var $r, ei = class {
|
|
2217
2217
|
constructor() {
|
|
2218
2218
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
2219
2219
|
}
|
|
@@ -2245,22 +2245,22 @@ var Qr, $r = class {
|
|
|
2245
2245
|
return this._map.has(e);
|
|
2246
2246
|
}
|
|
2247
2247
|
};
|
|
2248
|
-
function
|
|
2249
|
-
return new
|
|
2248
|
+
function ti() {
|
|
2249
|
+
return new ei();
|
|
2250
2250
|
}
|
|
2251
|
-
(
|
|
2252
|
-
var
|
|
2251
|
+
($r = globalThis).__zod_globalRegistry ?? ($r.__zod_globalRegistry = ti());
|
|
2252
|
+
var ni = globalThis.__zod_globalRegistry;
|
|
2253
2253
|
//#endregion
|
|
2254
2254
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
|
|
2255
2255
|
// @__NO_SIDE_EFFECTS__
|
|
2256
|
-
function
|
|
2256
|
+
function ri(e, t) {
|
|
2257
2257
|
return new e({
|
|
2258
2258
|
type: "string",
|
|
2259
2259
|
...g(t)
|
|
2260
2260
|
});
|
|
2261
2261
|
}
|
|
2262
2262
|
// @__NO_SIDE_EFFECTS__
|
|
2263
|
-
function
|
|
2263
|
+
function ii(e, t) {
|
|
2264
2264
|
return new e({
|
|
2265
2265
|
type: "string",
|
|
2266
2266
|
format: "email",
|
|
@@ -2270,7 +2270,7 @@ function ri(e, t) {
|
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
2272
|
// @__NO_SIDE_EFFECTS__
|
|
2273
|
-
function
|
|
2273
|
+
function ai(e, t) {
|
|
2274
2274
|
return new e({
|
|
2275
2275
|
type: "string",
|
|
2276
2276
|
format: "guid",
|
|
@@ -2280,7 +2280,7 @@ function ii(e, t) {
|
|
|
2280
2280
|
});
|
|
2281
2281
|
}
|
|
2282
2282
|
// @__NO_SIDE_EFFECTS__
|
|
2283
|
-
function
|
|
2283
|
+
function oi(e, t) {
|
|
2284
2284
|
return new e({
|
|
2285
2285
|
type: "string",
|
|
2286
2286
|
format: "uuid",
|
|
@@ -2290,7 +2290,7 @@ function ai(e, t) {
|
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
2292
|
// @__NO_SIDE_EFFECTS__
|
|
2293
|
-
function
|
|
2293
|
+
function si(e, t) {
|
|
2294
2294
|
return new e({
|
|
2295
2295
|
type: "string",
|
|
2296
2296
|
format: "uuid",
|
|
@@ -2301,7 +2301,7 @@ function oi(e, t) {
|
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
2303
|
// @__NO_SIDE_EFFECTS__
|
|
2304
|
-
function
|
|
2304
|
+
function ci(e, t) {
|
|
2305
2305
|
return new e({
|
|
2306
2306
|
type: "string",
|
|
2307
2307
|
format: "uuid",
|
|
@@ -2312,7 +2312,7 @@ function si(e, t) {
|
|
|
2312
2312
|
});
|
|
2313
2313
|
}
|
|
2314
2314
|
// @__NO_SIDE_EFFECTS__
|
|
2315
|
-
function
|
|
2315
|
+
function li(e, t) {
|
|
2316
2316
|
return new e({
|
|
2317
2317
|
type: "string",
|
|
2318
2318
|
format: "uuid",
|
|
@@ -2323,7 +2323,7 @@ function ci(e, t) {
|
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
2325
2325
|
// @__NO_SIDE_EFFECTS__
|
|
2326
|
-
function
|
|
2326
|
+
function ui(e, t) {
|
|
2327
2327
|
return new e({
|
|
2328
2328
|
type: "string",
|
|
2329
2329
|
format: "url",
|
|
@@ -2333,7 +2333,7 @@ function li(e, t) {
|
|
|
2333
2333
|
});
|
|
2334
2334
|
}
|
|
2335
2335
|
// @__NO_SIDE_EFFECTS__
|
|
2336
|
-
function
|
|
2336
|
+
function di(e, t) {
|
|
2337
2337
|
return new e({
|
|
2338
2338
|
type: "string",
|
|
2339
2339
|
format: "emoji",
|
|
@@ -2343,7 +2343,7 @@ function ui(e, t) {
|
|
|
2343
2343
|
});
|
|
2344
2344
|
}
|
|
2345
2345
|
// @__NO_SIDE_EFFECTS__
|
|
2346
|
-
function
|
|
2346
|
+
function fi(e, t) {
|
|
2347
2347
|
return new e({
|
|
2348
2348
|
type: "string",
|
|
2349
2349
|
format: "nanoid",
|
|
@@ -2353,7 +2353,7 @@ function di(e, t) {
|
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
2355
|
// @__NO_SIDE_EFFECTS__
|
|
2356
|
-
function
|
|
2356
|
+
function pi(e, t) {
|
|
2357
2357
|
return new e({
|
|
2358
2358
|
type: "string",
|
|
2359
2359
|
format: "cuid",
|
|
@@ -2363,7 +2363,7 @@ function fi(e, t) {
|
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
// @__NO_SIDE_EFFECTS__
|
|
2366
|
-
function
|
|
2366
|
+
function mi(e, t) {
|
|
2367
2367
|
return new e({
|
|
2368
2368
|
type: "string",
|
|
2369
2369
|
format: "cuid2",
|
|
@@ -2373,7 +2373,7 @@ function pi(e, t) {
|
|
|
2373
2373
|
});
|
|
2374
2374
|
}
|
|
2375
2375
|
// @__NO_SIDE_EFFECTS__
|
|
2376
|
-
function
|
|
2376
|
+
function hi(e, t) {
|
|
2377
2377
|
return new e({
|
|
2378
2378
|
type: "string",
|
|
2379
2379
|
format: "ulid",
|
|
@@ -2383,7 +2383,7 @@ function mi(e, t) {
|
|
|
2383
2383
|
});
|
|
2384
2384
|
}
|
|
2385
2385
|
// @__NO_SIDE_EFFECTS__
|
|
2386
|
-
function
|
|
2386
|
+
function gi(e, t) {
|
|
2387
2387
|
return new e({
|
|
2388
2388
|
type: "string",
|
|
2389
2389
|
format: "xid",
|
|
@@ -2393,7 +2393,7 @@ function hi(e, t) {
|
|
|
2393
2393
|
});
|
|
2394
2394
|
}
|
|
2395
2395
|
// @__NO_SIDE_EFFECTS__
|
|
2396
|
-
function
|
|
2396
|
+
function _i(e, t) {
|
|
2397
2397
|
return new e({
|
|
2398
2398
|
type: "string",
|
|
2399
2399
|
format: "ksuid",
|
|
@@ -2403,7 +2403,7 @@ function gi(e, t) {
|
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
2405
|
// @__NO_SIDE_EFFECTS__
|
|
2406
|
-
function
|
|
2406
|
+
function vi(e, t) {
|
|
2407
2407
|
return new e({
|
|
2408
2408
|
type: "string",
|
|
2409
2409
|
format: "ipv4",
|
|
@@ -2413,7 +2413,7 @@ function _i(e, t) {
|
|
|
2413
2413
|
});
|
|
2414
2414
|
}
|
|
2415
2415
|
// @__NO_SIDE_EFFECTS__
|
|
2416
|
-
function
|
|
2416
|
+
function yi(e, t) {
|
|
2417
2417
|
return new e({
|
|
2418
2418
|
type: "string",
|
|
2419
2419
|
format: "ipv6",
|
|
@@ -2423,7 +2423,7 @@ function vi(e, t) {
|
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
2425
|
// @__NO_SIDE_EFFECTS__
|
|
2426
|
-
function
|
|
2426
|
+
function bi(e, t) {
|
|
2427
2427
|
return new e({
|
|
2428
2428
|
type: "string",
|
|
2429
2429
|
format: "cidrv4",
|
|
@@ -2433,7 +2433,7 @@ function yi(e, t) {
|
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
// @__NO_SIDE_EFFECTS__
|
|
2436
|
-
function
|
|
2436
|
+
function xi(e, t) {
|
|
2437
2437
|
return new e({
|
|
2438
2438
|
type: "string",
|
|
2439
2439
|
format: "cidrv6",
|
|
@@ -2443,7 +2443,7 @@ function bi(e, t) {
|
|
|
2443
2443
|
});
|
|
2444
2444
|
}
|
|
2445
2445
|
// @__NO_SIDE_EFFECTS__
|
|
2446
|
-
function
|
|
2446
|
+
function Si(e, t) {
|
|
2447
2447
|
return new e({
|
|
2448
2448
|
type: "string",
|
|
2449
2449
|
format: "base64",
|
|
@@ -2453,7 +2453,7 @@ function xi(e, t) {
|
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
2455
|
// @__NO_SIDE_EFFECTS__
|
|
2456
|
-
function
|
|
2456
|
+
function Ci(e, t) {
|
|
2457
2457
|
return new e({
|
|
2458
2458
|
type: "string",
|
|
2459
2459
|
format: "base64url",
|
|
@@ -2463,7 +2463,7 @@ function Si(e, t) {
|
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
2465
|
// @__NO_SIDE_EFFECTS__
|
|
2466
|
-
function
|
|
2466
|
+
function wi(e, t) {
|
|
2467
2467
|
return new e({
|
|
2468
2468
|
type: "string",
|
|
2469
2469
|
format: "e164",
|
|
@@ -2473,7 +2473,7 @@ function Ci(e, t) {
|
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
2475
|
// @__NO_SIDE_EFFECTS__
|
|
2476
|
-
function
|
|
2476
|
+
function Ti(e, t) {
|
|
2477
2477
|
return new e({
|
|
2478
2478
|
type: "string",
|
|
2479
2479
|
format: "jwt",
|
|
@@ -2483,7 +2483,7 @@ function wi(e, t) {
|
|
|
2483
2483
|
});
|
|
2484
2484
|
}
|
|
2485
2485
|
// @__NO_SIDE_EFFECTS__
|
|
2486
|
-
function
|
|
2486
|
+
function Ei(e, t) {
|
|
2487
2487
|
return new e({
|
|
2488
2488
|
type: "string",
|
|
2489
2489
|
format: "datetime",
|
|
@@ -2495,7 +2495,7 @@ function Ti(e, t) {
|
|
|
2495
2495
|
});
|
|
2496
2496
|
}
|
|
2497
2497
|
// @__NO_SIDE_EFFECTS__
|
|
2498
|
-
function
|
|
2498
|
+
function Di(e, t) {
|
|
2499
2499
|
return new e({
|
|
2500
2500
|
type: "string",
|
|
2501
2501
|
format: "date",
|
|
@@ -2504,7 +2504,7 @@ function Ei(e, t) {
|
|
|
2504
2504
|
});
|
|
2505
2505
|
}
|
|
2506
2506
|
// @__NO_SIDE_EFFECTS__
|
|
2507
|
-
function
|
|
2507
|
+
function Oi(e, t) {
|
|
2508
2508
|
return new e({
|
|
2509
2509
|
type: "string",
|
|
2510
2510
|
format: "time",
|
|
@@ -2514,7 +2514,7 @@ function Di(e, t) {
|
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
2516
|
// @__NO_SIDE_EFFECTS__
|
|
2517
|
-
function
|
|
2517
|
+
function ki(e, t) {
|
|
2518
2518
|
return new e({
|
|
2519
2519
|
type: "string",
|
|
2520
2520
|
format: "duration",
|
|
@@ -2523,7 +2523,7 @@ function Oi(e, t) {
|
|
|
2523
2523
|
});
|
|
2524
2524
|
}
|
|
2525
2525
|
// @__NO_SIDE_EFFECTS__
|
|
2526
|
-
function
|
|
2526
|
+
function Ai(e, t) {
|
|
2527
2527
|
return new e({
|
|
2528
2528
|
type: "number",
|
|
2529
2529
|
checks: [],
|
|
@@ -2531,7 +2531,7 @@ function ki(e, t) {
|
|
|
2531
2531
|
});
|
|
2532
2532
|
}
|
|
2533
2533
|
// @__NO_SIDE_EFFECTS__
|
|
2534
|
-
function
|
|
2534
|
+
function ji(e, t) {
|
|
2535
2535
|
return new e({
|
|
2536
2536
|
type: "number",
|
|
2537
2537
|
check: "number_format",
|
|
@@ -2541,33 +2541,33 @@ function Ai(e, t) {
|
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
2543
2543
|
// @__NO_SIDE_EFFECTS__
|
|
2544
|
-
function
|
|
2544
|
+
function Mi(e, t) {
|
|
2545
2545
|
return new e({
|
|
2546
2546
|
type: "boolean",
|
|
2547
2547
|
...g(t)
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
2550
|
// @__NO_SIDE_EFFECTS__
|
|
2551
|
-
function
|
|
2551
|
+
function Ni(e, t) {
|
|
2552
2552
|
return new e({
|
|
2553
2553
|
type: "null",
|
|
2554
2554
|
...g(t)
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
2557
|
// @__NO_SIDE_EFFECTS__
|
|
2558
|
-
function
|
|
2558
|
+
function Pi(e) {
|
|
2559
2559
|
return new e({ type: "unknown" });
|
|
2560
2560
|
}
|
|
2561
2561
|
// @__NO_SIDE_EFFECTS__
|
|
2562
|
-
function
|
|
2562
|
+
function Fi(e, t) {
|
|
2563
2563
|
return new e({
|
|
2564
2564
|
type: "never",
|
|
2565
2565
|
...g(t)
|
|
2566
2566
|
});
|
|
2567
2567
|
}
|
|
2568
2568
|
// @__NO_SIDE_EFFECTS__
|
|
2569
|
-
function
|
|
2570
|
-
return new
|
|
2569
|
+
function Ii(e, t) {
|
|
2570
|
+
return new Xt({
|
|
2571
2571
|
check: "less_than",
|
|
2572
2572
|
...g(t),
|
|
2573
2573
|
value: e,
|
|
@@ -2575,8 +2575,8 @@ function Fi(e, t) {
|
|
|
2575
2575
|
});
|
|
2576
2576
|
}
|
|
2577
2577
|
// @__NO_SIDE_EFFECTS__
|
|
2578
|
-
function
|
|
2579
|
-
return new
|
|
2578
|
+
function Li(e, t) {
|
|
2579
|
+
return new Xt({
|
|
2580
2580
|
check: "less_than",
|
|
2581
2581
|
...g(t),
|
|
2582
2582
|
value: e,
|
|
@@ -2584,8 +2584,8 @@ function Ii(e, t) {
|
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
2586
2586
|
// @__NO_SIDE_EFFECTS__
|
|
2587
|
-
function
|
|
2588
|
-
return new
|
|
2587
|
+
function Ri(e, t) {
|
|
2588
|
+
return new Zt({
|
|
2589
2589
|
check: "greater_than",
|
|
2590
2590
|
...g(t),
|
|
2591
2591
|
value: e,
|
|
@@ -2593,8 +2593,8 @@ function Li(e, t) {
|
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
2595
|
// @__NO_SIDE_EFFECTS__
|
|
2596
|
-
function
|
|
2597
|
-
return new
|
|
2596
|
+
function zi(e, t) {
|
|
2597
|
+
return new Zt({
|
|
2598
2598
|
check: "greater_than",
|
|
2599
2599
|
...g(t),
|
|
2600
2600
|
value: e,
|
|
@@ -2602,40 +2602,40 @@ function Ri(e, t) {
|
|
|
2602
2602
|
});
|
|
2603
2603
|
}
|
|
2604
2604
|
// @__NO_SIDE_EFFECTS__
|
|
2605
|
-
function
|
|
2606
|
-
return new
|
|
2605
|
+
function Bi(e, t) {
|
|
2606
|
+
return new Qt({
|
|
2607
2607
|
check: "multiple_of",
|
|
2608
2608
|
...g(t),
|
|
2609
2609
|
value: e
|
|
2610
2610
|
});
|
|
2611
2611
|
}
|
|
2612
2612
|
// @__NO_SIDE_EFFECTS__
|
|
2613
|
-
function
|
|
2614
|
-
return new
|
|
2613
|
+
function Vi(e, t) {
|
|
2614
|
+
return new en({
|
|
2615
2615
|
check: "max_length",
|
|
2616
2616
|
...g(t),
|
|
2617
2617
|
maximum: e
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
// @__NO_SIDE_EFFECTS__
|
|
2621
|
-
function
|
|
2622
|
-
return new
|
|
2621
|
+
function Hi(e, t) {
|
|
2622
|
+
return new tn({
|
|
2623
2623
|
check: "min_length",
|
|
2624
2624
|
...g(t),
|
|
2625
2625
|
minimum: e
|
|
2626
2626
|
});
|
|
2627
2627
|
}
|
|
2628
2628
|
// @__NO_SIDE_EFFECTS__
|
|
2629
|
-
function
|
|
2630
|
-
return new
|
|
2629
|
+
function Ui(e, t) {
|
|
2630
|
+
return new nn({
|
|
2631
2631
|
check: "length_equals",
|
|
2632
2632
|
...g(t),
|
|
2633
2633
|
length: e
|
|
2634
2634
|
});
|
|
2635
2635
|
}
|
|
2636
2636
|
// @__NO_SIDE_EFFECTS__
|
|
2637
|
-
function
|
|
2638
|
-
return new
|
|
2637
|
+
function Wi(e, t) {
|
|
2638
|
+
return new an({
|
|
2639
2639
|
check: "string_format",
|
|
2640
2640
|
format: "regex",
|
|
2641
2641
|
...g(t),
|
|
@@ -2643,24 +2643,24 @@ function Ui(e, t) {
|
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
2645
|
// @__NO_SIDE_EFFECTS__
|
|
2646
|
-
function
|
|
2647
|
-
return new
|
|
2646
|
+
function Gi(e) {
|
|
2647
|
+
return new on({
|
|
2648
2648
|
check: "string_format",
|
|
2649
2649
|
format: "lowercase",
|
|
2650
2650
|
...g(e)
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
2653
|
// @__NO_SIDE_EFFECTS__
|
|
2654
|
-
function
|
|
2655
|
-
return new
|
|
2654
|
+
function Ki(e) {
|
|
2655
|
+
return new sn({
|
|
2656
2656
|
check: "string_format",
|
|
2657
2657
|
format: "uppercase",
|
|
2658
2658
|
...g(e)
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
// @__NO_SIDE_EFFECTS__
|
|
2662
|
-
function
|
|
2663
|
-
return new
|
|
2662
|
+
function qi(e, t) {
|
|
2663
|
+
return new cn({
|
|
2664
2664
|
check: "string_format",
|
|
2665
2665
|
format: "includes",
|
|
2666
2666
|
...g(t),
|
|
@@ -2668,8 +2668,8 @@ function Ki(e, t) {
|
|
|
2668
2668
|
});
|
|
2669
2669
|
}
|
|
2670
2670
|
// @__NO_SIDE_EFFECTS__
|
|
2671
|
-
function
|
|
2672
|
-
return new
|
|
2671
|
+
function Ji(e, t) {
|
|
2672
|
+
return new ln({
|
|
2673
2673
|
check: "string_format",
|
|
2674
2674
|
format: "starts_with",
|
|
2675
2675
|
...g(t),
|
|
@@ -2677,8 +2677,8 @@ function qi(e, t) {
|
|
|
2677
2677
|
});
|
|
2678
2678
|
}
|
|
2679
2679
|
// @__NO_SIDE_EFFECTS__
|
|
2680
|
-
function
|
|
2681
|
-
return new
|
|
2680
|
+
function Yi(e, t) {
|
|
2681
|
+
return new un({
|
|
2682
2682
|
check: "string_format",
|
|
2683
2683
|
format: "ends_with",
|
|
2684
2684
|
...g(t),
|
|
@@ -2686,34 +2686,34 @@ function Ji(e, t) {
|
|
|
2686
2686
|
});
|
|
2687
2687
|
}
|
|
2688
2688
|
// @__NO_SIDE_EFFECTS__
|
|
2689
|
-
function
|
|
2690
|
-
return new
|
|
2689
|
+
function Xi(e) {
|
|
2690
|
+
return new dn({
|
|
2691
2691
|
check: "overwrite",
|
|
2692
2692
|
tx: e
|
|
2693
2693
|
});
|
|
2694
2694
|
}
|
|
2695
2695
|
// @__NO_SIDE_EFFECTS__
|
|
2696
|
-
function
|
|
2697
|
-
return /* @__PURE__ */
|
|
2698
|
-
}
|
|
2699
|
-
// @__NO_SIDE_EFFECTS__
|
|
2700
|
-
function Zi() {
|
|
2701
|
-
return /* @__PURE__ */ Yi((e) => e.trim());
|
|
2696
|
+
function Zi(e) {
|
|
2697
|
+
return /* @__PURE__ */ Xi((t) => t.normalize(e));
|
|
2702
2698
|
}
|
|
2703
2699
|
// @__NO_SIDE_EFFECTS__
|
|
2704
2700
|
function Qi() {
|
|
2705
|
-
return /* @__PURE__ */
|
|
2701
|
+
return /* @__PURE__ */ Xi((e) => e.trim());
|
|
2706
2702
|
}
|
|
2707
2703
|
// @__NO_SIDE_EFFECTS__
|
|
2708
2704
|
function $i() {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2705
|
+
return /* @__PURE__ */ Xi((e) => e.toLowerCase());
|
|
2710
2706
|
}
|
|
2711
2707
|
// @__NO_SIDE_EFFECTS__
|
|
2712
2708
|
function ea() {
|
|
2713
|
-
return /* @__PURE__ */
|
|
2709
|
+
return /* @__PURE__ */ Xi((e) => e.toUpperCase());
|
|
2714
2710
|
}
|
|
2715
2711
|
// @__NO_SIDE_EFFECTS__
|
|
2716
|
-
function ta(
|
|
2712
|
+
function ta() {
|
|
2713
|
+
return /* @__PURE__ */ Xi((e) => f(e));
|
|
2714
|
+
}
|
|
2715
|
+
// @__NO_SIDE_EFFECTS__
|
|
2716
|
+
function na(e, t, n) {
|
|
2717
2717
|
return new e({
|
|
2718
2718
|
type: "array",
|
|
2719
2719
|
element: t,
|
|
@@ -2721,7 +2721,7 @@ function ta(e, t, n) {
|
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
2723
|
// @__NO_SIDE_EFFECTS__
|
|
2724
|
-
function
|
|
2724
|
+
function ra(e, t, n) {
|
|
2725
2725
|
return new e({
|
|
2726
2726
|
type: "custom",
|
|
2727
2727
|
check: "custom",
|
|
@@ -2730,19 +2730,19 @@ function na(e, t, n) {
|
|
|
2730
2730
|
});
|
|
2731
2731
|
}
|
|
2732
2732
|
// @__NO_SIDE_EFFECTS__
|
|
2733
|
-
function
|
|
2734
|
-
let n = /* @__PURE__ */
|
|
2735
|
-
if (typeof e == "string") t.issues.push(
|
|
2733
|
+
function ia(e, t) {
|
|
2734
|
+
let n = /* @__PURE__ */ aa((t) => (t.addIssue = (e) => {
|
|
2735
|
+
if (typeof e == "string") t.issues.push(Ce(e, t.value, n._zod.def));
|
|
2736
2736
|
else {
|
|
2737
2737
|
let r = e;
|
|
2738
|
-
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(
|
|
2738
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(Ce(r));
|
|
2739
2739
|
}
|
|
2740
2740
|
}, e(t.value, t)), t);
|
|
2741
2741
|
return n;
|
|
2742
2742
|
}
|
|
2743
2743
|
// @__NO_SIDE_EFFECTS__
|
|
2744
|
-
function
|
|
2745
|
-
let n = new
|
|
2744
|
+
function aa(e, t) {
|
|
2745
|
+
let n = new C({
|
|
2746
2746
|
check: "custom",
|
|
2747
2747
|
...g(t)
|
|
2748
2748
|
});
|
|
@@ -2750,15 +2750,15 @@ function ia(e, t) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
//#endregion
|
|
2752
2752
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
|
|
2753
|
-
function
|
|
2753
|
+
function oa(e, ...t) {
|
|
2754
2754
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && l(e, t, n[t]);
|
|
2755
2755
|
return e;
|
|
2756
2756
|
}
|
|
2757
|
-
function
|
|
2757
|
+
function sa(e) {
|
|
2758
2758
|
let t = e?.target ?? "draft-2020-12";
|
|
2759
2759
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2760
2760
|
processors: e.processors ?? {},
|
|
2761
|
-
metadataRegistry: e?.metadata ??
|
|
2761
|
+
metadataRegistry: e?.metadata ?? ni,
|
|
2762
2762
|
target: t,
|
|
2763
2763
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2764
2764
|
override: e?.override ?? (() => {}),
|
|
@@ -2774,7 +2774,7 @@ function oa(e) {
|
|
|
2774
2774
|
external: e?.external ?? void 0
|
|
2775
2775
|
};
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function E(e, t, n, r, i) {
|
|
2778
2778
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2779
2779
|
zodSchema: e,
|
|
2780
2780
|
path: r.path,
|
|
@@ -2784,7 +2784,7 @@ function D(e, t, n, r, i) {
|
|
|
2784
2784
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
2785
2785
|
return Object.assign(n, a), !0;
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function D(e, t, n = {
|
|
2788
2788
|
path: [],
|
|
2789
2789
|
schemaPath: []
|
|
2790
2790
|
}) {
|
|
@@ -2813,15 +2813,15 @@ function O(e, t, n = {
|
|
|
2813
2813
|
a(e, t, n, r);
|
|
2814
2814
|
}
|
|
2815
2815
|
let a = e._zod.parent;
|
|
2816
|
-
a && (o.ref ||= a,
|
|
2816
|
+
a && (o.ref ||= a, D(a, t, r), t.seen.get(a).isParent = !0);
|
|
2817
2817
|
}
|
|
2818
2818
|
let c = t.metadataRegistry.get(e);
|
|
2819
|
-
return c &&
|
|
2819
|
+
return c && oa(o.schema, c), t.io === "input" && O(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function ca(e) {
|
|
2822
2822
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function la(e, t) {
|
|
2825
2825
|
let n = e.seen.get(t);
|
|
2826
2826
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2827
2827
|
if (e.external && e.sharedDefsExtractedFor === e.external) return;
|
|
@@ -2842,7 +2842,7 @@ function ca(e, t) {
|
|
|
2842
2842
|
let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
|
|
2843
2843
|
return t[1].defId = a, {
|
|
2844
2844
|
defId: a,
|
|
2845
|
-
ref: `${i("__shared")}#/${r}/${
|
|
2845
|
+
ref: `${i("__shared")}#/${r}/${ca(a)}`
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
2848
|
let i = `#/${r}/`;
|
|
@@ -2850,7 +2850,7 @@ function ca(e, t) {
|
|
|
2850
2850
|
let a = t[1].schema.id ?? `__schema${e.counter++}`;
|
|
2851
2851
|
return {
|
|
2852
2852
|
defId: a,
|
|
2853
|
-
ref: i +
|
|
2853
|
+
ref: i + ca(a)
|
|
2854
2854
|
};
|
|
2855
2855
|
}, a = (e) => {
|
|
2856
2856
|
if (e[1].schema.$ref) return;
|
|
@@ -2894,13 +2894,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2894
2894
|
}
|
|
2895
2895
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2897
|
+
function ua(e) {
|
|
2898
2898
|
let t = e.anyOf;
|
|
2899
2899
|
if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
|
|
2900
2900
|
let n = [];
|
|
2901
2901
|
for (let e of t) {
|
|
2902
2902
|
if (!e || typeof e != "object") return;
|
|
2903
|
-
|
|
2903
|
+
ua(e);
|
|
2904
2904
|
let t = Object.keys(e);
|
|
2905
2905
|
if (t.length !== 1 || t[0] !== "type") return;
|
|
2906
2906
|
let r = e.type;
|
|
@@ -2911,21 +2911,21 @@ function la(e) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
|
|
2913
2913
|
}
|
|
2914
|
-
var
|
|
2914
|
+
var da = /* @__PURE__ */ new Set([
|
|
2915
2915
|
"type",
|
|
2916
2916
|
"properties",
|
|
2917
2917
|
"required",
|
|
2918
2918
|
"additionalProperties"
|
|
2919
|
-
]),
|
|
2920
|
-
function
|
|
2919
|
+
]), fa = ["oneOf", "anyOf"];
|
|
2920
|
+
function pa(e) {
|
|
2921
2921
|
let t = e.additionalProperties;
|
|
2922
2922
|
return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function ma(e) {
|
|
2925
2925
|
let t = [];
|
|
2926
2926
|
for (let n of e) {
|
|
2927
2927
|
if (typeof n != "object" || n.type !== "object") return null;
|
|
2928
|
-
for (let e in n) if (!
|
|
2928
|
+
for (let e in n) if (!da.has(e)) return null;
|
|
2929
2929
|
t.push(n);
|
|
2930
2930
|
}
|
|
2931
2931
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
@@ -2934,10 +2934,10 @@ function pa(e) {
|
|
|
2934
2934
|
if (Object.prototype.hasOwnProperty.call(n, r)) continue;
|
|
2935
2935
|
let e = [];
|
|
2936
2936
|
for (let n of t) {
|
|
2937
|
-
let t = n.properties?.[r] ??
|
|
2937
|
+
let t = n.properties?.[r] ?? pa(n);
|
|
2938
2938
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
2939
2939
|
}
|
|
2940
|
-
l(n, r, e.length === 1 ? e[0] :
|
|
2940
|
+
l(n, r, e.length === 1 ? e[0] : ma(e) ?? { allOf: e });
|
|
2941
2941
|
}
|
|
2942
2942
|
for (let t of e.required ?? []) r.add(t);
|
|
2943
2943
|
}
|
|
@@ -2949,29 +2949,29 @@ function pa(e) {
|
|
|
2949
2949
|
else {
|
|
2950
2950
|
let e = [];
|
|
2951
2951
|
for (let n of t) {
|
|
2952
|
-
let t =
|
|
2952
|
+
let t = pa(n);
|
|
2953
2953
|
t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
|
|
2954
2954
|
}
|
|
2955
2955
|
e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
|
|
2956
2956
|
}
|
|
2957
2957
|
return i;
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function ha(e) {
|
|
2960
2960
|
let t = e.allOf;
|
|
2961
2961
|
if (!Array.isArray(t) || t.length < 2) return;
|
|
2962
|
-
for (let t of
|
|
2963
|
-
let n = t.filter((e) =>
|
|
2964
|
-
if (!n.length) r =
|
|
2962
|
+
for (let t of da) if (t in e) return;
|
|
2963
|
+
let n = t.filter((e) => fa.some((t) => Array.isArray(e[t]))), r = null;
|
|
2964
|
+
if (!n.length) r = ma(t);
|
|
2965
2965
|
else {
|
|
2966
|
-
let e = n[0], i =
|
|
2966
|
+
let e = n[0], i = fa.find((t) => Array.isArray(e[t]));
|
|
2967
2967
|
if (Object.keys(e).length !== 1) return;
|
|
2968
|
-
let a = t.filter((t) => t !== e), o = e[i].map((e) =>
|
|
2968
|
+
let a = t.filter((t) => t !== e), o = e[i].map((e) => ma([...a, e]));
|
|
2969
2969
|
if (o.some((e) => !e)) return;
|
|
2970
2970
|
r = { [i]: o };
|
|
2971
2971
|
}
|
|
2972
|
-
r && (delete e.allOf,
|
|
2972
|
+
r && (delete e.allOf, oa(e, r));
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2974
|
+
function ga(e, t) {
|
|
2975
2975
|
let n = e.seen.get(t);
|
|
2976
2976
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2977
2977
|
let r = (t) => {
|
|
@@ -2981,7 +2981,7 @@ function ha(e, t) {
|
|
|
2981
2981
|
if (n.ref = null, o) {
|
|
2982
2982
|
r(o);
|
|
2983
2983
|
let n = e.seen.get(o), s = n.schema;
|
|
2984
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
2984
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : oa(i, s), oa(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
2985
2985
|
if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
|
|
2986
2986
|
}
|
|
2987
2987
|
let s = t._zod.parent;
|
|
@@ -2998,7 +2998,7 @@ function ha(e, t) {
|
|
|
2998
2998
|
};
|
|
2999
2999
|
if (!e.external || e.sharedEmitDoneFor !== e.external) {
|
|
3000
3000
|
for (let t of [...e.seen.entries()].reverse()) r(t[0]);
|
|
3001
|
-
if (e.target !== "openapi-3.0") for (let t of e.seen.entries())
|
|
3001
|
+
if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ua(t[1].def ?? t[1].schema);
|
|
3002
3002
|
for (let t of e.deferred) t();
|
|
3003
3003
|
if (e.intersections.length) {
|
|
3004
3004
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -3008,7 +3008,7 @@ function ha(e, t) {
|
|
|
3008
3008
|
let r = t.get(n);
|
|
3009
3009
|
r ? r.push(e) : t.set(n, [e]);
|
|
3010
3010
|
}
|
|
3011
|
-
for (let n of e.intersections) for (let e of t.get(n) ?? [])
|
|
3011
|
+
for (let n of e.intersections) for (let e of t.get(n) ?? []) ha(e);
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
3014
|
let i = {};
|
|
@@ -3017,7 +3017,7 @@ function ha(e, t) {
|
|
|
3017
3017
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
3018
3018
|
i.$id = e.external.uri(n);
|
|
3019
3019
|
}
|
|
3020
|
-
|
|
3020
|
+
oa(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
3021
3021
|
let a = e.metadataRegistry.get(t)?.id;
|
|
3022
3022
|
a !== void 0 && i.id === a && delete i.id;
|
|
3023
3023
|
let o = e.external?.defs ?? {};
|
|
@@ -3032,8 +3032,8 @@ function ha(e, t) {
|
|
|
3032
3032
|
value: {
|
|
3033
3033
|
...t["~standard"],
|
|
3034
3034
|
jsonSchema: {
|
|
3035
|
-
input:
|
|
3036
|
-
output:
|
|
3035
|
+
input: va(t, "input", e.processors),
|
|
3036
|
+
output: va(t, "output", e.processors)
|
|
3037
3037
|
}
|
|
3038
3038
|
},
|
|
3039
3039
|
enumerable: !1,
|
|
@@ -3043,93 +3043,93 @@ function ha(e, t) {
|
|
|
3043
3043
|
throw Error("Error converting schema to JSON.");
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3046
|
+
function O(e, t) {
|
|
3047
3047
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3048
3048
|
if (n.seen.has(e)) return !1;
|
|
3049
3049
|
n.seen.add(e);
|
|
3050
3050
|
let r = e._zod.def;
|
|
3051
3051
|
if (r.type === "transform") return !0;
|
|
3052
|
-
if (r.type === "array") return
|
|
3053
|
-
if (r.type === "set") return
|
|
3054
|
-
if (r.type === "lazy") return
|
|
3055
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
3056
|
-
if (r.type === "intersection") return
|
|
3057
|
-
if (r.type === "record" || r.type === "map") return
|
|
3058
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3052
|
+
if (r.type === "array") return O(r.element, n);
|
|
3053
|
+
if (r.type === "set") return O(r.valueType, n);
|
|
3054
|
+
if (r.type === "lazy") return O(r.getter(), n);
|
|
3055
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return O(r.innerType, n);
|
|
3056
|
+
if (r.type === "intersection") return O(r.left, n) || O(r.right, n);
|
|
3057
|
+
if (r.type === "record" || r.type === "map") return O(r.keyType, n) || O(r.valueType, n);
|
|
3058
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : O(r.in, n) || O(r.out, n);
|
|
3059
3059
|
if (r.type === "object") {
|
|
3060
|
-
for (let e in r.shape) if (
|
|
3060
|
+
for (let e in r.shape) if (O(r.shape[e], n)) return !0;
|
|
3061
3061
|
return !1;
|
|
3062
3062
|
}
|
|
3063
3063
|
if (r.type === "union") {
|
|
3064
|
-
for (let e of r.options) if (
|
|
3064
|
+
for (let e of r.options) if (O(e, n)) return !0;
|
|
3065
3065
|
return !1;
|
|
3066
3066
|
}
|
|
3067
3067
|
if (r.type === "tuple") {
|
|
3068
|
-
for (let e of r.items) if (
|
|
3069
|
-
return !!(r.rest &&
|
|
3068
|
+
for (let e of r.items) if (O(e, n)) return !0;
|
|
3069
|
+
return !!(r.rest && O(r.rest, n));
|
|
3070
3070
|
}
|
|
3071
3071
|
return !1;
|
|
3072
3072
|
}
|
|
3073
|
-
var
|
|
3074
|
-
let r =
|
|
3073
|
+
var _a = (e, t = {}) => (n) => {
|
|
3074
|
+
let r = sa({
|
|
3075
3075
|
...n,
|
|
3076
3076
|
processors: t
|
|
3077
3077
|
});
|
|
3078
|
-
return
|
|
3079
|
-
},
|
|
3080
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
3078
|
+
return D(e, r), la(r, e), ga(r, e);
|
|
3079
|
+
}, va = (e, t, n = {}) => (r) => {
|
|
3080
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = sa({
|
|
3081
3081
|
...i ?? {},
|
|
3082
3082
|
target: a,
|
|
3083
3083
|
io: t,
|
|
3084
3084
|
processors: n
|
|
3085
3085
|
});
|
|
3086
|
-
return
|
|
3087
|
-
},
|
|
3086
|
+
return D(e, o), la(o, e), ga(o, e);
|
|
3087
|
+
}, ya = {
|
|
3088
3088
|
guid: "uuid",
|
|
3089
3089
|
url: "uri",
|
|
3090
3090
|
datetime: "date-time",
|
|
3091
3091
|
json_string: "json-string",
|
|
3092
3092
|
regex: ""
|
|
3093
|
-
},
|
|
3093
|
+
}, ba = (e, t, n, r) => {
|
|
3094
3094
|
let i = n;
|
|
3095
3095
|
i.type = "string";
|
|
3096
3096
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
|
|
3097
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
3097
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ya[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
3098
3098
|
let e = [...c];
|
|
3099
3099
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
3100
3100
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
3101
3101
|
pattern: e.source
|
|
3102
3102
|
}))]);
|
|
3103
3103
|
}
|
|
3104
|
-
},
|
|
3104
|
+
}, xa = (e, t, n, r) => {
|
|
3105
3105
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
3106
3106
|
i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
|
|
3107
3107
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3108
|
-
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) :
|
|
3109
|
-
}, xa = (e, t, n, r) => {
|
|
3110
|
-
n.type = "boolean";
|
|
3108
|
+
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : E(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
|
|
3111
3109
|
}, Sa = (e, t, n, r) => {
|
|
3112
|
-
|
|
3110
|
+
n.type = "boolean";
|
|
3113
3111
|
}, Ca = (e, t, n, r) => {
|
|
3114
|
-
|
|
3112
|
+
E(e, t, n, r, "BigInt cannot be represented in JSON Schema");
|
|
3115
3113
|
}, wa = (e, t, n, r) => {
|
|
3116
|
-
|
|
3114
|
+
E(e, t, n, r, "Symbols cannot be represented in JSON Schema");
|
|
3117
3115
|
}, Ta = (e, t, n, r) => {
|
|
3118
|
-
|
|
3116
|
+
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
3119
3117
|
}, Ea = (e, t, n, r) => {
|
|
3120
|
-
|
|
3118
|
+
E(e, t, n, r, "Undefined cannot be represented in JSON Schema");
|
|
3121
3119
|
}, Da = (e, t, n, r) => {
|
|
3120
|
+
E(e, t, n, r, "Void cannot be represented in JSON Schema");
|
|
3121
|
+
}, Oa = (e, t, n, r) => {
|
|
3122
3122
|
n.not = {};
|
|
3123
|
-
},
|
|
3124
|
-
|
|
3125
|
-
},
|
|
3123
|
+
}, ka = (e, t, n, r) => {}, Aa = (e, t, n, r) => {}, ja = (e, t, n, r) => {
|
|
3124
|
+
E(e, t, n, r, "Date cannot be represented in JSON Schema");
|
|
3125
|
+
}, Ma = (t, n, r, i) => {
|
|
3126
3126
|
let a = t._zod.def, o = e(a.entries);
|
|
3127
3127
|
if (o.length === 0) {
|
|
3128
3128
|
r.not = {};
|
|
3129
3129
|
return;
|
|
3130
3130
|
}
|
|
3131
3131
|
o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
|
|
3132
|
-
},
|
|
3132
|
+
}, Na = (e, t, n, r) => {
|
|
3133
3133
|
let i = e._zod.def;
|
|
3134
3134
|
if (i.values.length === 0) {
|
|
3135
3135
|
n.not = {};
|
|
@@ -3137,9 +3137,9 @@ var ga = (e, t = {}) => (n) => {
|
|
|
3137
3137
|
}
|
|
3138
3138
|
let a = [];
|
|
3139
3139
|
for (let o of i.values) if (o === void 0) {
|
|
3140
|
-
if (
|
|
3140
|
+
if (E(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
|
|
3141
3141
|
} else if (typeof o == "bigint") {
|
|
3142
|
-
if (
|
|
3142
|
+
if (E(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
|
|
3143
3143
|
a.push(Number(o));
|
|
3144
3144
|
} else a.push(o);
|
|
3145
3145
|
if (a.length !== 0) {
|
|
@@ -3148,47 +3148,47 @@ var ga = (e, t = {}) => (n) => {
|
|
|
3148
3148
|
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
3149
3149
|
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
3150
3150
|
}
|
|
3151
|
-
}, Na = (e, t, n, r) => {
|
|
3152
|
-
D(e, t, n, r, "NaN cannot be represented in JSON Schema");
|
|
3153
3151
|
}, Pa = (e, t, n, r) => {
|
|
3152
|
+
E(e, t, n, r, "NaN cannot be represented in JSON Schema");
|
|
3153
|
+
}, Fa = (e, t, n, r) => {
|
|
3154
3154
|
let i = n, a = e._zod.pattern;
|
|
3155
3155
|
if (!a) throw Error("Pattern not found in template literal");
|
|
3156
3156
|
i.type = "string", i.pattern = a.source;
|
|
3157
|
-
},
|
|
3157
|
+
}, Ia = (e, t, n, r) => {
|
|
3158
3158
|
let i = n, a = {
|
|
3159
3159
|
type: "string",
|
|
3160
3160
|
format: "binary",
|
|
3161
3161
|
contentEncoding: "binary"
|
|
3162
3162
|
}, { minimum: o, maximum: s, mime: c } = e._zod.bag;
|
|
3163
3163
|
o !== void 0 && (a.minLength = o), s !== void 0 && (a.maxLength = s), c ? c.length === 1 ? (a.contentMediaType = c[0], Object.assign(i, a)) : (Object.assign(i, a), i.anyOf = c.map((e) => ({ contentMediaType: e }))) : Object.assign(i, a);
|
|
3164
|
-
}, Ia = (e, t, n, r) => {
|
|
3165
|
-
n.type = "boolean";
|
|
3166
3164
|
}, La = (e, t, n, r) => {
|
|
3167
|
-
|
|
3165
|
+
n.type = "boolean";
|
|
3168
3166
|
}, Ra = (e, t, n, r) => {
|
|
3169
|
-
|
|
3167
|
+
E(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3170
3168
|
}, za = (e, t, n, r) => {
|
|
3171
|
-
|
|
3169
|
+
E(e, t, n, r, "Function types cannot be represented in JSON Schema");
|
|
3172
3170
|
}, Ba = (e, t, n, r) => {
|
|
3173
|
-
|
|
3171
|
+
E(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3174
3172
|
}, Va = (e, t, n, r) => {
|
|
3175
|
-
|
|
3173
|
+
E(e, t, n, r, "Map cannot be represented in JSON Schema");
|
|
3176
3174
|
}, Ha = (e, t, n, r) => {
|
|
3175
|
+
E(e, t, n, r, "Set cannot be represented in JSON Schema");
|
|
3176
|
+
}, Ua = (e, t, n, r) => {
|
|
3177
3177
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
3178
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
3178
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = D(a.element, t, {
|
|
3179
3179
|
...r,
|
|
3180
3180
|
path: [...r.path, "items"]
|
|
3181
3181
|
});
|
|
3182
3182
|
};
|
|
3183
|
-
function
|
|
3183
|
+
function Wa(e) {
|
|
3184
3184
|
let t = e._zod.def;
|
|
3185
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
3185
|
+
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Wa(t.out) : t.type === "catch" ? Wa(t.innerType) : e._zod.optin;
|
|
3186
3186
|
}
|
|
3187
|
-
var
|
|
3187
|
+
var Ga = (e, t, n, r) => {
|
|
3188
3188
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3189
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3189
|
+
if (Object.getOwnPropertySymbols(o).length && E(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3190
3190
|
i.type = "object", i.properties = {};
|
|
3191
|
-
for (let e in o) l(i.properties, e,
|
|
3191
|
+
for (let e in o) l(i.properties, e, D(o[e], t, {
|
|
3192
3192
|
...r,
|
|
3193
3193
|
path: [
|
|
3194
3194
|
...r.path,
|
|
@@ -3198,14 +3198,14 @@ var Wa = (e, t, n, r) => {
|
|
|
3198
3198
|
}));
|
|
3199
3199
|
let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
|
|
3200
3200
|
let n = a.shape[e];
|
|
3201
|
-
return t.io === "input" ?
|
|
3201
|
+
return t.io === "input" ? Wa(n) === void 0 : n._zod.optout === void 0;
|
|
3202
3202
|
}));
|
|
3203
|
-
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
3203
|
+
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = D(a.catchall, t, {
|
|
3204
3204
|
...r,
|
|
3205
3205
|
path: [...r.path, "additionalProperties"]
|
|
3206
3206
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3207
|
-
},
|
|
3208
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3207
|
+
}, Ka = (e, t, n, r) => {
|
|
3208
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => D(e, t, {
|
|
3209
3209
|
...r,
|
|
3210
3210
|
path: [
|
|
3211
3211
|
...r.path,
|
|
@@ -3214,15 +3214,15 @@ var Wa = (e, t, n, r) => {
|
|
|
3214
3214
|
]
|
|
3215
3215
|
}));
|
|
3216
3216
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3217
|
-
},
|
|
3218
|
-
let i = e._zod.def, a =
|
|
3217
|
+
}, qa = (e, t, n, r) => {
|
|
3218
|
+
let i = e._zod.def, a = D(i.left, t, {
|
|
3219
3219
|
...r,
|
|
3220
3220
|
path: [
|
|
3221
3221
|
...r.path,
|
|
3222
3222
|
"allOf",
|
|
3223
3223
|
0
|
|
3224
3224
|
]
|
|
3225
|
-
}), o =
|
|
3225
|
+
}), o = D(i.right, t, {
|
|
3226
3226
|
...r,
|
|
3227
3227
|
path: [
|
|
3228
3228
|
...r.path,
|
|
@@ -3231,17 +3231,17 @@ var Wa = (e, t, n, r) => {
|
|
|
3231
3231
|
]
|
|
3232
3232
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
3233
3233
|
n.allOf = c, t.intersections.push(c);
|
|
3234
|
-
},
|
|
3234
|
+
}, Ja = (e, t, n, r) => {
|
|
3235
3235
|
let i = n, a = e._zod.def;
|
|
3236
3236
|
i.type = "array";
|
|
3237
|
-
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) =>
|
|
3237
|
+
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => D(e, t, {
|
|
3238
3238
|
...r,
|
|
3239
3239
|
path: [
|
|
3240
3240
|
...r.path,
|
|
3241
3241
|
o,
|
|
3242
3242
|
n
|
|
3243
3243
|
]
|
|
3244
|
-
})), l = a.rest ?
|
|
3244
|
+
})), l = a.rest ? D(a.rest, t, {
|
|
3245
3245
|
...r,
|
|
3246
3246
|
path: [
|
|
3247
3247
|
...r.path,
|
|
@@ -3251,7 +3251,7 @@ var Wa = (e, t, n, r) => {
|
|
|
3251
3251
|
}) : null, u = a.items.length;
|
|
3252
3252
|
for (; u > 0;) {
|
|
3253
3253
|
let e = a.items[u - 1];
|
|
3254
|
-
if (!(t.io === "input" ?
|
|
3254
|
+
if (!(t.io === "input" ? Wa(e) !== void 0 : e._zod.optout === "optional")) break;
|
|
3255
3255
|
u--;
|
|
3256
3256
|
}
|
|
3257
3257
|
let d = a.items.length, f = !a.rest;
|
|
@@ -3259,19 +3259,19 @@ var Wa = (e, t, n, r) => {
|
|
|
3259
3259
|
let { minimum: p, maximum: m } = e._zod.bag;
|
|
3260
3260
|
typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
|
|
3261
3261
|
};
|
|
3262
|
-
function
|
|
3262
|
+
function Ya(e, t, n) {
|
|
3263
3263
|
if (t.$ref) {
|
|
3264
3264
|
if (n.has(t)) return t;
|
|
3265
3265
|
n.add(t);
|
|
3266
3266
|
let r = e.get(t)?.def;
|
|
3267
3267
|
if (!r) return t;
|
|
3268
|
-
let i =
|
|
3268
|
+
let i = Ya(e, r, n);
|
|
3269
3269
|
return i === r ? t : i;
|
|
3270
3270
|
}
|
|
3271
3271
|
for (let r of ["anyOf", "oneOf"]) {
|
|
3272
3272
|
let i = t[r];
|
|
3273
3273
|
if (!Array.isArray(i)) continue;
|
|
3274
|
-
let a = i.map((t) =>
|
|
3274
|
+
let a = i.map((t) => Ya(e, t, n));
|
|
3275
3275
|
a.some((e, t) => e !== i[t]) && (t = {
|
|
3276
3276
|
...t,
|
|
3277
3277
|
[r]: a
|
|
@@ -3280,17 +3280,17 @@ function Ja(e, t, n) {
|
|
|
3280
3280
|
let r = Array.isArray(t.type) ? t.type : [t.type], i = !r.includes("string") && r.some((e) => e === "number" || e === "integer"), a = t.enum ?? (t.const === void 0 ? void 0 : [t.const]);
|
|
3281
3281
|
if (!i && !a?.some((e) => typeof e == "number")) return t;
|
|
3282
3282
|
let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
|
|
3283
|
-
return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ?
|
|
3283
|
+
return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Ut : Ht).source), p) : p;
|
|
3284
3284
|
}
|
|
3285
|
-
var
|
|
3286
|
-
function
|
|
3285
|
+
var Xa = /* @__PURE__ */ new WeakMap();
|
|
3286
|
+
function Za(e) {
|
|
3287
3287
|
let t = /* @__PURE__ */ new Map();
|
|
3288
3288
|
for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
|
|
3289
3289
|
let n = /* @__PURE__ */ new Map();
|
|
3290
|
-
for (let r of
|
|
3290
|
+
for (let r of Xa.get(e) ?? []) {
|
|
3291
3291
|
let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
|
|
3292
3292
|
if (!a || a === !0 || n.has(a)) continue;
|
|
3293
|
-
let o =
|
|
3293
|
+
let o = Ya(t, a, /* @__PURE__ */ new Set());
|
|
3294
3294
|
o !== a && n.set(a, o);
|
|
3295
3295
|
}
|
|
3296
3296
|
if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
|
|
@@ -3298,12 +3298,12 @@ function Xa(e) {
|
|
|
3298
3298
|
t && (e.propertyNames = t);
|
|
3299
3299
|
}
|
|
3300
3300
|
}
|
|
3301
|
-
var
|
|
3301
|
+
var Qa = (e, t, n, r) => {
|
|
3302
3302
|
let i = n, a = e._zod.def;
|
|
3303
3303
|
i.type = "object";
|
|
3304
3304
|
let o = a.keyType, s = o._zod.bag?.patterns;
|
|
3305
3305
|
if (a.mode === "loose" && s && s.size > 0) {
|
|
3306
|
-
let e =
|
|
3306
|
+
let e = D(a.valueType, t, {
|
|
3307
3307
|
...r,
|
|
3308
3308
|
path: [
|
|
3309
3309
|
...r.path,
|
|
@@ -3315,138 +3315,138 @@ var Za = (e, t, n, r) => {
|
|
|
3315
3315
|
for (let t of s) l(i.patternProperties, t.source, e);
|
|
3316
3316
|
} else {
|
|
3317
3317
|
if (t.target === "draft-07" || t.target === "draft-2020-12") {
|
|
3318
|
-
i.propertyNames =
|
|
3318
|
+
i.propertyNames = D(a.keyType, t, {
|
|
3319
3319
|
...r,
|
|
3320
3320
|
path: [...r.path, "propertyNames"]
|
|
3321
3321
|
});
|
|
3322
|
-
let n =
|
|
3323
|
-
n || (n = [],
|
|
3322
|
+
let n = Xa.get(t);
|
|
3323
|
+
n || (n = [], Xa.set(t, n), t.deferred.push(() => Za(t))), n.push(e);
|
|
3324
3324
|
}
|
|
3325
|
-
i.additionalProperties =
|
|
3325
|
+
i.additionalProperties = D(a.valueType, t, {
|
|
3326
3326
|
...r,
|
|
3327
3327
|
path: [...r.path, "additionalProperties"]
|
|
3328
3328
|
});
|
|
3329
3329
|
}
|
|
3330
|
-
let c = o._zod.values, u = t.io === "input" &&
|
|
3330
|
+
let c = o._zod.values, u = t.io === "input" && Wa(a.valueType) !== void 0;
|
|
3331
3331
|
if (c && !a.partial && !u) {
|
|
3332
3332
|
let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
|
|
3333
3333
|
e.length > 0 && (i.required = e.map(String));
|
|
3334
3334
|
}
|
|
3335
|
-
}, Qa = (e, t, n, r) => {
|
|
3336
|
-
let i = e._zod.def, a = O(i.innerType, t, r), o = t.seen.get(e);
|
|
3337
|
-
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3338
3335
|
}, $a = (e, t, n, r) => {
|
|
3336
|
+
let i = e._zod.def, a = D(i.innerType, t, r), o = t.seen.get(e);
|
|
3337
|
+
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3338
|
+
}, eo = (e, t, n, r) => {
|
|
3339
3339
|
let i = e._zod.def;
|
|
3340
|
-
|
|
3340
|
+
D(i.innerType, t, r);
|
|
3341
3341
|
let a = t.seen.get(e);
|
|
3342
3342
|
a.ref = i.innerType;
|
|
3343
|
-
},
|
|
3344
|
-
function
|
|
3343
|
+
}, to = Symbol();
|
|
3344
|
+
function no(e, t, n, r, i) {
|
|
3345
3345
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3346
|
-
return a ? (
|
|
3346
|
+
return a ? (E(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), to) : JSON.parse(o);
|
|
3347
3347
|
}
|
|
3348
|
-
var
|
|
3348
|
+
var ro = (e, t, n, r) => {
|
|
3349
3349
|
let i = e._zod.def;
|
|
3350
|
-
|
|
3350
|
+
D(i.innerType, t, r);
|
|
3351
3351
|
let a = t.seen.get(e);
|
|
3352
3352
|
a.ref = i.innerType;
|
|
3353
|
-
let o =
|
|
3354
|
-
o !==
|
|
3355
|
-
},
|
|
3353
|
+
let o = no(i.defaultValue, e, t, n, r);
|
|
3354
|
+
o !== to && (n.default = o);
|
|
3355
|
+
}, io = (e, t, n, r) => {
|
|
3356
3356
|
let i = e._zod.def;
|
|
3357
|
-
|
|
3357
|
+
D(i.innerType, t, r);
|
|
3358
3358
|
let a = t.seen.get(e);
|
|
3359
3359
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3360
|
-
let o =
|
|
3361
|
-
o !==
|
|
3362
|
-
},
|
|
3360
|
+
let o = no(i.defaultValue, e, t, n, r);
|
|
3361
|
+
o !== to && (n._prefault = o);
|
|
3362
|
+
}, ao = (e, t, n, r) => {
|
|
3363
3363
|
let i = e._zod.def;
|
|
3364
|
-
|
|
3364
|
+
D(i.innerType, t, r);
|
|
3365
3365
|
let a = t.seen.get(e);
|
|
3366
3366
|
a.ref = i.innerType;
|
|
3367
3367
|
let o;
|
|
3368
3368
|
try {
|
|
3369
3369
|
o = i.catchValue(void 0);
|
|
3370
3370
|
} catch {
|
|
3371
|
-
|
|
3371
|
+
E(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
3374
|
n.default = o;
|
|
3375
|
-
},
|
|
3375
|
+
}, oo = (e, t, n, r) => {
|
|
3376
3376
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3377
|
-
|
|
3377
|
+
D(o, t, r);
|
|
3378
3378
|
let s = t.seen.get(e);
|
|
3379
3379
|
s.ref = o;
|
|
3380
|
-
},
|
|
3380
|
+
}, so = (e, t, n, r) => {
|
|
3381
3381
|
let i = e._zod.def;
|
|
3382
|
-
|
|
3382
|
+
D(i.innerType, t, r);
|
|
3383
3383
|
let a = t.seen.get(e);
|
|
3384
3384
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3385
|
-
},
|
|
3385
|
+
}, co = (e, t, n, r) => {
|
|
3386
3386
|
let i = e._zod.def;
|
|
3387
|
-
|
|
3387
|
+
D(i.innerType, t, r);
|
|
3388
3388
|
let a = t.seen.get(e);
|
|
3389
3389
|
a.ref = i.innerType;
|
|
3390
|
-
},
|
|
3390
|
+
}, lo = (e, t, n, r) => {
|
|
3391
3391
|
let i = e._zod.def;
|
|
3392
|
-
|
|
3392
|
+
D(i.innerType, t, r);
|
|
3393
3393
|
let a = t.seen.get(e);
|
|
3394
3394
|
a.ref = i.innerType;
|
|
3395
|
-
},
|
|
3395
|
+
}, uo = (e, t, n, r) => {
|
|
3396
3396
|
let i = e._zod.innerType;
|
|
3397
|
-
|
|
3397
|
+
D(i, t, r);
|
|
3398
3398
|
let a = t.seen.get(e);
|
|
3399
3399
|
a.ref = i;
|
|
3400
|
-
},
|
|
3401
|
-
string:
|
|
3402
|
-
number:
|
|
3403
|
-
boolean:
|
|
3404
|
-
bigint:
|
|
3405
|
-
symbol:
|
|
3406
|
-
null:
|
|
3407
|
-
undefined:
|
|
3408
|
-
void:
|
|
3409
|
-
never:
|
|
3410
|
-
any:
|
|
3411
|
-
unknown:
|
|
3412
|
-
date:
|
|
3413
|
-
enum:
|
|
3414
|
-
literal:
|
|
3415
|
-
nan:
|
|
3416
|
-
template_literal:
|
|
3417
|
-
file:
|
|
3418
|
-
success:
|
|
3419
|
-
custom:
|
|
3420
|
-
function:
|
|
3421
|
-
transform:
|
|
3422
|
-
map:
|
|
3423
|
-
set:
|
|
3424
|
-
array:
|
|
3425
|
-
object:
|
|
3426
|
-
union:
|
|
3427
|
-
intersection:
|
|
3428
|
-
tuple:
|
|
3429
|
-
record:
|
|
3430
|
-
nullable:
|
|
3431
|
-
nonoptional:
|
|
3432
|
-
default:
|
|
3433
|
-
prefault:
|
|
3434
|
-
catch:
|
|
3435
|
-
pipe:
|
|
3436
|
-
readonly:
|
|
3437
|
-
promise:
|
|
3438
|
-
optional:
|
|
3439
|
-
lazy:
|
|
3400
|
+
}, fo = {
|
|
3401
|
+
string: ba,
|
|
3402
|
+
number: xa,
|
|
3403
|
+
boolean: Sa,
|
|
3404
|
+
bigint: Ca,
|
|
3405
|
+
symbol: wa,
|
|
3406
|
+
null: Ta,
|
|
3407
|
+
undefined: Ea,
|
|
3408
|
+
void: Da,
|
|
3409
|
+
never: Oa,
|
|
3410
|
+
any: ka,
|
|
3411
|
+
unknown: Aa,
|
|
3412
|
+
date: ja,
|
|
3413
|
+
enum: Ma,
|
|
3414
|
+
literal: Na,
|
|
3415
|
+
nan: Pa,
|
|
3416
|
+
template_literal: Fa,
|
|
3417
|
+
file: Ia,
|
|
3418
|
+
success: La,
|
|
3419
|
+
custom: Ra,
|
|
3420
|
+
function: za,
|
|
3421
|
+
transform: Ba,
|
|
3422
|
+
map: Va,
|
|
3423
|
+
set: Ha,
|
|
3424
|
+
array: Ua,
|
|
3425
|
+
object: Ga,
|
|
3426
|
+
union: Ka,
|
|
3427
|
+
intersection: qa,
|
|
3428
|
+
tuple: Ja,
|
|
3429
|
+
record: Qa,
|
|
3430
|
+
nullable: $a,
|
|
3431
|
+
nonoptional: eo,
|
|
3432
|
+
default: ro,
|
|
3433
|
+
prefault: io,
|
|
3434
|
+
catch: ao,
|
|
3435
|
+
pipe: oo,
|
|
3436
|
+
readonly: so,
|
|
3437
|
+
promise: co,
|
|
3438
|
+
optional: lo,
|
|
3439
|
+
lazy: uo
|
|
3440
3440
|
};
|
|
3441
|
-
function
|
|
3441
|
+
function po(e, t) {
|
|
3442
3442
|
if ("_idmap" in e) {
|
|
3443
|
-
let n = e, r =
|
|
3443
|
+
let n = e, r = sa({
|
|
3444
3444
|
...t,
|
|
3445
|
-
processors:
|
|
3445
|
+
processors: fo
|
|
3446
3446
|
}), i = {};
|
|
3447
3447
|
for (let e of n._idmap.entries()) {
|
|
3448
3448
|
let [t, n] = e;
|
|
3449
|
-
|
|
3449
|
+
D(n, r);
|
|
3450
3450
|
}
|
|
3451
3451
|
let a = {};
|
|
3452
3452
|
r.external = {
|
|
@@ -3456,20 +3456,20 @@ function fo(e, t) {
|
|
|
3456
3456
|
};
|
|
3457
3457
|
for (let e of n._idmap.entries()) {
|
|
3458
3458
|
let [t, n] = e;
|
|
3459
|
-
|
|
3459
|
+
la(r, n), l(a, t, ga(r, n));
|
|
3460
3460
|
}
|
|
3461
3461
|
return Object.keys(i).length > 0 && (a.__shared = { [r.target === "draft-2020-12" ? "$defs" : "definitions"]: i }), { schemas: a };
|
|
3462
3462
|
}
|
|
3463
|
-
let n =
|
|
3463
|
+
let n = sa({
|
|
3464
3464
|
...t,
|
|
3465
|
-
processors:
|
|
3465
|
+
processors: fo
|
|
3466
3466
|
});
|
|
3467
|
-
return
|
|
3467
|
+
return D(e, n), la(n, e), ga(n, e);
|
|
3468
3468
|
}
|
|
3469
3469
|
//#endregion
|
|
3470
3470
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/errors.js
|
|
3471
|
-
var
|
|
3472
|
-
function
|
|
3471
|
+
var mo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
3472
|
+
function ho(e, t, n) {
|
|
3473
3473
|
Object.defineProperty(e, t, {
|
|
3474
3474
|
configurable: !0,
|
|
3475
3475
|
enumerable: !1,
|
|
@@ -3490,12 +3490,12 @@ function mo(e, t, n) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
});
|
|
3492
3492
|
}
|
|
3493
|
-
var
|
|
3494
|
-
|
|
3493
|
+
var go = (e, t) => {
|
|
3494
|
+
Je.init(e, t), e.name = "ZodError";
|
|
3495
3495
|
let r = Object.getPrototypeOf(e);
|
|
3496
|
-
|
|
3496
|
+
mo.has(r) || (mo.add(r), ho(r, "format", (e) => (t) => Qe(e, t)), ho(r, "flatten", (e) => (t) => Ze(e, t)), ho(r, "addIssue", (e) => (t) => {
|
|
3497
3497
|
e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
|
|
3498
|
-
}),
|
|
3498
|
+
}), ho(r, "addIssues", (e) => (t) => {
|
|
3499
3499
|
e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
|
|
3500
3500
|
}), Object.defineProperty(r, "isEmpty", {
|
|
3501
3501
|
configurable: !0,
|
|
@@ -3504,16 +3504,16 @@ var ho = (e, t) => {
|
|
|
3504
3504
|
return this.issues.length === 0;
|
|
3505
3505
|
}
|
|
3506
3506
|
}));
|
|
3507
|
-
},
|
|
3507
|
+
}, _o = /*@__PURE__*/ b("ZodError", go), k = /*@__PURE__*/ b("ZodError", go, void 0, { Parent: Error }), vo = /* @__PURE__ */ et(k), yo = /* @__PURE__ */ tt(k), bo = /* @__PURE__ */ nt(k), xo = /* @__PURE__ */ it(k), So = /* @__PURE__ */ ot(k), Co = /* @__PURE__ */ st(k), wo = /* @__PURE__ */ ct(k), To = /* @__PURE__ */ lt(k), Eo = /* @__PURE__ */ ut(k), Do = /* @__PURE__ */ dt(k), Oo = /* @__PURE__ */ ft(k), ko = /* @__PURE__ */ pt(k);
|
|
3508
3508
|
//#endregion
|
|
3509
3509
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
|
|
3510
|
-
function ko() {
|
|
3511
|
-
S.localeError || C(Zr());
|
|
3512
|
-
}
|
|
3513
3510
|
function Ao() {
|
|
3514
|
-
|
|
3511
|
+
x.localeError || S(Qr());
|
|
3512
|
+
}
|
|
3513
|
+
function jo() {
|
|
3514
|
+
x.memoizer || S({ memoizer: Yr() });
|
|
3515
3515
|
}
|
|
3516
|
-
var
|
|
3516
|
+
var A = /*@__PURE__*/ b("ZodType", (e, t) => (Ao(), w.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3517
3517
|
check(...e) {
|
|
3518
3518
|
let t = this.def;
|
|
3519
3519
|
return this.clone(u(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -3541,7 +3541,7 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
|
|
|
3541
3541
|
return this.check(Ws(e, t));
|
|
3542
3542
|
},
|
|
3543
3543
|
overwrite(e) {
|
|
3544
|
-
return this.check(/* @__PURE__ */
|
|
3544
|
+
return this.check(/* @__PURE__ */ Xi(e));
|
|
3545
3545
|
},
|
|
3546
3546
|
optional() {
|
|
3547
3547
|
return Cs(this);
|
|
@@ -3587,12 +3587,12 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
|
|
|
3587
3587
|
},
|
|
3588
3588
|
describe(e) {
|
|
3589
3589
|
let t = this.clone();
|
|
3590
|
-
return
|
|
3590
|
+
return ni.add(t, { description: e }), t;
|
|
3591
3591
|
},
|
|
3592
3592
|
meta(...e) {
|
|
3593
|
-
if (e.length === 0) return
|
|
3593
|
+
if (e.length === 0) return ni.get(this);
|
|
3594
3594
|
let t = this.clone();
|
|
3595
|
-
return
|
|
3595
|
+
return ni.add(t, e[0]), t;
|
|
3596
3596
|
},
|
|
3597
3597
|
isOptional() {
|
|
3598
3598
|
return this.safeParse(void 0).success;
|
|
@@ -3605,358 +3605,358 @@ var j = /*@__PURE__*/ x("ZodType", (e, t) => (ko(), T.init(e, t), e.def = t, e.t
|
|
|
3605
3605
|
},
|
|
3606
3606
|
get "~standard"() {
|
|
3607
3607
|
return Ee(this, "~standard", {
|
|
3608
|
-
...
|
|
3608
|
+
...hn(this),
|
|
3609
3609
|
jsonSchema: {
|
|
3610
|
-
input:
|
|
3611
|
-
output:
|
|
3610
|
+
input: va(this, "input"),
|
|
3611
|
+
output: va(this, "output")
|
|
3612
3612
|
}
|
|
3613
3613
|
});
|
|
3614
3614
|
},
|
|
3615
3615
|
set "~standard"(e) {
|
|
3616
|
-
|
|
3616
|
+
Te(this, "~standard", e);
|
|
3617
3617
|
},
|
|
3618
3618
|
parse: function e(t, n) {
|
|
3619
|
-
return
|
|
3619
|
+
return vo(this, t, n, { callee: e });
|
|
3620
3620
|
},
|
|
3621
3621
|
parseAsync: async function e(t, n) {
|
|
3622
|
-
return await
|
|
3622
|
+
return await yo(this, t, n, { callee: e });
|
|
3623
3623
|
},
|
|
3624
3624
|
safeParse(e, t) {
|
|
3625
|
-
return
|
|
3625
|
+
return bo(this, e, t);
|
|
3626
3626
|
},
|
|
3627
3627
|
async safeParseAsync(e, t) {
|
|
3628
|
-
return
|
|
3628
|
+
return xo(this, e, t);
|
|
3629
3629
|
},
|
|
3630
3630
|
get spa() {
|
|
3631
3631
|
return this?.safeParseAsync;
|
|
3632
3632
|
},
|
|
3633
3633
|
set spa(e) {
|
|
3634
|
-
|
|
3634
|
+
Te(this, "spa", e);
|
|
3635
3635
|
},
|
|
3636
3636
|
encode: function e(t, n) {
|
|
3637
|
-
return
|
|
3637
|
+
return So(this, t, n, { callee: e });
|
|
3638
3638
|
},
|
|
3639
3639
|
decode: function e(t, n) {
|
|
3640
|
-
return
|
|
3640
|
+
return Co(this, t, n, { callee: e });
|
|
3641
3641
|
},
|
|
3642
3642
|
encodeAsync: async function e(t, n) {
|
|
3643
|
-
return await
|
|
3643
|
+
return await wo(this, t, n, { callee: e });
|
|
3644
3644
|
},
|
|
3645
3645
|
decodeAsync: async function e(t, n) {
|
|
3646
|
-
return await
|
|
3646
|
+
return await To(this, t, n, { callee: e });
|
|
3647
3647
|
},
|
|
3648
3648
|
safeEncode(e, t) {
|
|
3649
|
-
return
|
|
3649
|
+
return Eo(this, e, t);
|
|
3650
3650
|
},
|
|
3651
3651
|
safeDecode(e, t) {
|
|
3652
|
-
return
|
|
3652
|
+
return Do(this, e, t);
|
|
3653
3653
|
},
|
|
3654
3654
|
async safeEncodeAsync(e, t) {
|
|
3655
|
-
return
|
|
3655
|
+
return Oo(this, e, t);
|
|
3656
3656
|
},
|
|
3657
3657
|
async safeDecodeAsync(e, t) {
|
|
3658
|
-
return
|
|
3658
|
+
return ko(this, e, t);
|
|
3659
3659
|
},
|
|
3660
3660
|
toJSONSchema(e) {
|
|
3661
|
-
return
|
|
3661
|
+
return _a(this, {})(e);
|
|
3662
3662
|
},
|
|
3663
3663
|
get description() {
|
|
3664
|
-
return
|
|
3664
|
+
return ni.get(this)?.description;
|
|
3665
3665
|
},
|
|
3666
3666
|
get _def() {
|
|
3667
3667
|
return this._zod.def;
|
|
3668
3668
|
}
|
|
3669
|
-
}),
|
|
3670
|
-
|
|
3669
|
+
}), Mo = /*@__PURE__*/ b("_ZodString", (e, t) => {
|
|
3670
|
+
gn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ba(e, t, n, r);
|
|
3671
3671
|
let n = e._zod.bag;
|
|
3672
3672
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
|
|
3673
3673
|
}, {
|
|
3674
3674
|
regex(...e) {
|
|
3675
|
-
return this.check(/* @__PURE__ */
|
|
3675
|
+
return this.check(/* @__PURE__ */ Wi(...e));
|
|
3676
3676
|
},
|
|
3677
3677
|
includes(...e) {
|
|
3678
|
-
return this.check(/* @__PURE__ */
|
|
3678
|
+
return this.check(/* @__PURE__ */ qi(...e));
|
|
3679
3679
|
},
|
|
3680
3680
|
startsWith(...e) {
|
|
3681
|
-
return this.check(/* @__PURE__ */
|
|
3681
|
+
return this.check(/* @__PURE__ */ Ji(...e));
|
|
3682
3682
|
},
|
|
3683
3683
|
endsWith(...e) {
|
|
3684
|
-
return this.check(/* @__PURE__ */
|
|
3684
|
+
return this.check(/* @__PURE__ */ Yi(...e));
|
|
3685
3685
|
},
|
|
3686
3686
|
min(...e) {
|
|
3687
|
-
return this.check(/* @__PURE__ */
|
|
3687
|
+
return this.check(/* @__PURE__ */ Hi(...e));
|
|
3688
3688
|
},
|
|
3689
3689
|
max(...e) {
|
|
3690
|
-
return this.check(/* @__PURE__ */
|
|
3690
|
+
return this.check(/* @__PURE__ */ Vi(...e));
|
|
3691
3691
|
},
|
|
3692
3692
|
length(...e) {
|
|
3693
|
-
return this.check(/* @__PURE__ */
|
|
3693
|
+
return this.check(/* @__PURE__ */ Ui(...e));
|
|
3694
3694
|
},
|
|
3695
3695
|
nonempty(...e) {
|
|
3696
|
-
return this.check(/* @__PURE__ */
|
|
3696
|
+
return this.check(/* @__PURE__ */ Hi(1, ...e));
|
|
3697
3697
|
},
|
|
3698
3698
|
lowercase(e) {
|
|
3699
|
-
return this.check(/* @__PURE__ */
|
|
3699
|
+
return this.check(/* @__PURE__ */ Gi(e));
|
|
3700
3700
|
},
|
|
3701
3701
|
uppercase(e) {
|
|
3702
|
-
return this.check(/* @__PURE__ */
|
|
3702
|
+
return this.check(/* @__PURE__ */ Ki(e));
|
|
3703
3703
|
},
|
|
3704
3704
|
trim() {
|
|
3705
|
-
return this.check(/* @__PURE__ */
|
|
3705
|
+
return this.check(/* @__PURE__ */ Qi());
|
|
3706
3706
|
},
|
|
3707
3707
|
normalize(...e) {
|
|
3708
|
-
return this.check(/* @__PURE__ */
|
|
3708
|
+
return this.check(/* @__PURE__ */ Zi(...e));
|
|
3709
3709
|
},
|
|
3710
3710
|
toLowerCase() {
|
|
3711
|
-
return this.check(/* @__PURE__ */
|
|
3711
|
+
return this.check(/* @__PURE__ */ $i());
|
|
3712
3712
|
},
|
|
3713
3713
|
toUpperCase() {
|
|
3714
|
-
return this.check(/* @__PURE__ */
|
|
3714
|
+
return this.check(/* @__PURE__ */ ea());
|
|
3715
3715
|
},
|
|
3716
3716
|
slugify() {
|
|
3717
|
-
return this.check(/* @__PURE__ */
|
|
3717
|
+
return this.check(/* @__PURE__ */ ta());
|
|
3718
3718
|
}
|
|
3719
|
-
}),
|
|
3720
|
-
|
|
3719
|
+
}), No = /*@__PURE__*/ b("ZodString", (e, t) => {
|
|
3720
|
+
gn.init(e, t), Mo.init(e, t);
|
|
3721
3721
|
}, {
|
|
3722
3722
|
email(e) {
|
|
3723
|
-
return this.check(/* @__PURE__ */
|
|
3723
|
+
return this.check(/* @__PURE__ */ ii(Ro, e));
|
|
3724
3724
|
},
|
|
3725
3725
|
url(e) {
|
|
3726
|
-
return this.check(/* @__PURE__ */
|
|
3726
|
+
return this.check(/* @__PURE__ */ ui(Vo, e));
|
|
3727
3727
|
},
|
|
3728
3728
|
jwt(e) {
|
|
3729
|
-
return this.check(/* @__PURE__ */
|
|
3729
|
+
return this.check(/* @__PURE__ */ Ti(ns, e));
|
|
3730
3730
|
},
|
|
3731
3731
|
emoji(e) {
|
|
3732
|
-
return this.check(/* @__PURE__ */
|
|
3732
|
+
return this.check(/* @__PURE__ */ di(Ho, e));
|
|
3733
3733
|
},
|
|
3734
3734
|
guid(e) {
|
|
3735
|
-
return this.check(/* @__PURE__ */
|
|
3735
|
+
return this.check(/* @__PURE__ */ ai(zo, e));
|
|
3736
3736
|
},
|
|
3737
3737
|
uuid(e) {
|
|
3738
|
-
return this.check(/* @__PURE__ */
|
|
3738
|
+
return this.check(/* @__PURE__ */ oi(Bo, e));
|
|
3739
3739
|
},
|
|
3740
3740
|
uuidv4(e) {
|
|
3741
|
-
return this.check(/* @__PURE__ */
|
|
3741
|
+
return this.check(/* @__PURE__ */ si(Bo, e));
|
|
3742
3742
|
},
|
|
3743
3743
|
uuidv6(e) {
|
|
3744
|
-
return this.check(/* @__PURE__ */
|
|
3744
|
+
return this.check(/* @__PURE__ */ ci(Bo, e));
|
|
3745
3745
|
},
|
|
3746
3746
|
uuidv7(e) {
|
|
3747
|
-
return this.check(/* @__PURE__ */
|
|
3747
|
+
return this.check(/* @__PURE__ */ li(Bo, e));
|
|
3748
3748
|
},
|
|
3749
3749
|
nanoid(e) {
|
|
3750
|
-
return this.check(/* @__PURE__ */
|
|
3750
|
+
return this.check(/* @__PURE__ */ fi(Uo, e));
|
|
3751
3751
|
},
|
|
3752
3752
|
cuid(e) {
|
|
3753
|
-
return this.check(/* @__PURE__ */
|
|
3753
|
+
return this.check(/* @__PURE__ */ pi(Wo, e));
|
|
3754
3754
|
},
|
|
3755
3755
|
cuid2(e) {
|
|
3756
|
-
return this.check(/* @__PURE__ */
|
|
3756
|
+
return this.check(/* @__PURE__ */ mi(Go, e));
|
|
3757
3757
|
},
|
|
3758
3758
|
ulid(e) {
|
|
3759
|
-
return this.check(/* @__PURE__ */
|
|
3759
|
+
return this.check(/* @__PURE__ */ hi(Ko, e));
|
|
3760
3760
|
},
|
|
3761
3761
|
base64(e) {
|
|
3762
|
-
return this.check(/* @__PURE__ */
|
|
3762
|
+
return this.check(/* @__PURE__ */ Si($o, e));
|
|
3763
3763
|
},
|
|
3764
3764
|
base64url(e) {
|
|
3765
|
-
return this.check(/* @__PURE__ */
|
|
3765
|
+
return this.check(/* @__PURE__ */ Ci(es, e));
|
|
3766
3766
|
},
|
|
3767
3767
|
xid(e) {
|
|
3768
|
-
return this.check(/* @__PURE__ */
|
|
3768
|
+
return this.check(/* @__PURE__ */ gi(qo, e));
|
|
3769
3769
|
},
|
|
3770
3770
|
ksuid(e) {
|
|
3771
|
-
return this.check(/* @__PURE__ */
|
|
3771
|
+
return this.check(/* @__PURE__ */ _i(Jo, e));
|
|
3772
3772
|
},
|
|
3773
3773
|
ipv4(e) {
|
|
3774
|
-
return this.check(/* @__PURE__ */
|
|
3774
|
+
return this.check(/* @__PURE__ */ vi(Yo, e));
|
|
3775
3775
|
},
|
|
3776
3776
|
ipv6(e) {
|
|
3777
|
-
return this.check(/* @__PURE__ */
|
|
3777
|
+
return this.check(/* @__PURE__ */ yi(Xo, e));
|
|
3778
3778
|
},
|
|
3779
3779
|
cidrv4(e) {
|
|
3780
|
-
return this.check(/* @__PURE__ */
|
|
3780
|
+
return this.check(/* @__PURE__ */ bi(Zo, e));
|
|
3781
3781
|
},
|
|
3782
3782
|
cidrv6(e) {
|
|
3783
|
-
return this.check(/* @__PURE__ */
|
|
3783
|
+
return this.check(/* @__PURE__ */ xi(Qo, e));
|
|
3784
3784
|
},
|
|
3785
3785
|
e164(e) {
|
|
3786
|
-
return this.check(/* @__PURE__ */
|
|
3786
|
+
return this.check(/* @__PURE__ */ wi(ts, e));
|
|
3787
3787
|
},
|
|
3788
3788
|
datetime(e) {
|
|
3789
|
-
return this.check(/* @__PURE__ */
|
|
3789
|
+
return this.check(/* @__PURE__ */ Ei(Po, e));
|
|
3790
3790
|
},
|
|
3791
3791
|
date(e) {
|
|
3792
|
-
return this.check(/* @__PURE__ */
|
|
3792
|
+
return this.check(/* @__PURE__ */ Di(Fo, e));
|
|
3793
3793
|
},
|
|
3794
3794
|
time(e) {
|
|
3795
|
-
return this.check(/* @__PURE__ */
|
|
3795
|
+
return this.check(/* @__PURE__ */ Oi(Io, e));
|
|
3796
3796
|
},
|
|
3797
3797
|
duration(e) {
|
|
3798
|
-
return this.check(/* @__PURE__ */
|
|
3798
|
+
return this.check(/* @__PURE__ */ ki(Lo, e));
|
|
3799
3799
|
}
|
|
3800
3800
|
});
|
|
3801
|
-
function
|
|
3802
|
-
return /* @__PURE__ */
|
|
3803
|
-
}
|
|
3804
|
-
var
|
|
3805
|
-
|
|
3806
|
-
}),
|
|
3807
|
-
|
|
3808
|
-
}),
|
|
3809
|
-
|
|
3810
|
-
}),
|
|
3811
|
-
|
|
3812
|
-
}),
|
|
3813
|
-
|
|
3814
|
-
}),
|
|
3815
|
-
|
|
3816
|
-
}),
|
|
3817
|
-
|
|
3818
|
-
}),
|
|
3819
|
-
|
|
3820
|
-
}),
|
|
3821
|
-
|
|
3822
|
-
}),
|
|
3823
|
-
|
|
3824
|
-
}),
|
|
3825
|
-
|
|
3826
|
-
}),
|
|
3827
|
-
|
|
3828
|
-
}),
|
|
3829
|
-
|
|
3830
|
-
}),
|
|
3831
|
-
|
|
3832
|
-
}),
|
|
3833
|
-
|
|
3834
|
-
}),
|
|
3835
|
-
|
|
3836
|
-
}),
|
|
3837
|
-
|
|
3838
|
-
}),
|
|
3839
|
-
|
|
3840
|
-
}),
|
|
3841
|
-
|
|
3842
|
-
}),
|
|
3843
|
-
|
|
3844
|
-
}),
|
|
3845
|
-
|
|
3846
|
-
}),
|
|
3847
|
-
|
|
3848
|
-
}),
|
|
3849
|
-
|
|
3850
|
-
}),
|
|
3851
|
-
|
|
3852
|
-
}),
|
|
3853
|
-
|
|
3801
|
+
function j(e) {
|
|
3802
|
+
return /* @__PURE__ */ ri(No, e);
|
|
3803
|
+
}
|
|
3804
|
+
var M = /*@__PURE__*/ b("ZodStringFormat", (e, t) => {
|
|
3805
|
+
T.init(e, t), Mo.init(e, t);
|
|
3806
|
+
}), Po = /*@__PURE__*/ b("ZodISODateTime", (e, t) => {
|
|
3807
|
+
Nn.init(e, t), M.init(e, t);
|
|
3808
|
+
}), Fo = /*@__PURE__*/ b("ZodISODate", (e, t) => {
|
|
3809
|
+
Pn.init(e, t), M.init(e, t);
|
|
3810
|
+
}), Io = /*@__PURE__*/ b("ZodISOTime", (e, t) => {
|
|
3811
|
+
Fn.init(e, t), M.init(e, t);
|
|
3812
|
+
}), Lo = /*@__PURE__*/ b("ZodISODuration", (e, t) => {
|
|
3813
|
+
In.init(e, t), M.init(e, t);
|
|
3814
|
+
}), Ro = /*@__PURE__*/ b("ZodEmail", (e, t) => {
|
|
3815
|
+
yn.init(e, t), M.init(e, t);
|
|
3816
|
+
}), zo = /*@__PURE__*/ b("ZodGUID", (e, t) => {
|
|
3817
|
+
_n.init(e, t), M.init(e, t);
|
|
3818
|
+
}), Bo = /*@__PURE__*/ b("ZodUUID", (e, t) => {
|
|
3819
|
+
vn.init(e, t), M.init(e, t);
|
|
3820
|
+
}), Vo = /*@__PURE__*/ b("ZodURL", (e, t) => {
|
|
3821
|
+
Tn.init(e, t), M.init(e, t);
|
|
3822
|
+
}), Ho = /*@__PURE__*/ b("ZodEmoji", (e, t) => {
|
|
3823
|
+
En.init(e, t), M.init(e, t);
|
|
3824
|
+
}), Uo = /*@__PURE__*/ b("ZodNanoID", (e, t) => {
|
|
3825
|
+
Dn.init(e, t), M.init(e, t);
|
|
3826
|
+
}), Wo = /*@__PURE__*/ b("ZodCUID", (e, t) => {
|
|
3827
|
+
On.init(e, t), M.init(e, t);
|
|
3828
|
+
}), Go = /*@__PURE__*/ b("ZodCUID2", (e, t) => {
|
|
3829
|
+
kn.init(e, t), M.init(e, t);
|
|
3830
|
+
}), Ko = /*@__PURE__*/ b("ZodULID", (e, t) => {
|
|
3831
|
+
An.init(e, t), M.init(e, t);
|
|
3832
|
+
}), qo = /*@__PURE__*/ b("ZodXID", (e, t) => {
|
|
3833
|
+
jn.init(e, t), M.init(e, t);
|
|
3834
|
+
}), Jo = /*@__PURE__*/ b("ZodKSUID", (e, t) => {
|
|
3835
|
+
Mn.init(e, t), M.init(e, t);
|
|
3836
|
+
}), Yo = /*@__PURE__*/ b("ZodIPv4", (e, t) => {
|
|
3837
|
+
Ln.init(e, t), M.init(e, t);
|
|
3838
|
+
}), Xo = /*@__PURE__*/ b("ZodIPv6", (e, t) => {
|
|
3839
|
+
Bn.init(e, t), M.init(e, t);
|
|
3840
|
+
}), Zo = /*@__PURE__*/ b("ZodCIDRv4", (e, t) => {
|
|
3841
|
+
Vn.init(e, t), M.init(e, t);
|
|
3842
|
+
}), Qo = /*@__PURE__*/ b("ZodCIDRv6", (e, t) => {
|
|
3843
|
+
Un.init(e, t), M.init(e, t);
|
|
3844
|
+
}), $o = /*@__PURE__*/ b("ZodBase64", (e, t) => {
|
|
3845
|
+
Gn.init(e, t), M.init(e, t);
|
|
3846
|
+
}), es = /*@__PURE__*/ b("ZodBase64URL", (e, t) => {
|
|
3847
|
+
qn.init(e, t), M.init(e, t);
|
|
3848
|
+
}), ts = /*@__PURE__*/ b("ZodE164", (e, t) => {
|
|
3849
|
+
Jn.init(e, t), M.init(e, t);
|
|
3850
|
+
}), ns = /*@__PURE__*/ b("ZodJWT", (e, t) => {
|
|
3851
|
+
Xn.init(e, t), M.init(e, t);
|
|
3852
|
+
}), rs = /*@__PURE__*/ b("ZodNumber", (e, t) => {
|
|
3853
|
+
Zn.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => xa(e, t, n, r);
|
|
3854
3854
|
let n = e._zod.bag;
|
|
3855
3855
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
3856
3856
|
}, {
|
|
3857
3857
|
gt(e, t) {
|
|
3858
|
-
return this.check(/* @__PURE__ */
|
|
3858
|
+
return this.check(/* @__PURE__ */ Ri(e, t));
|
|
3859
3859
|
},
|
|
3860
3860
|
gte(e, t) {
|
|
3861
|
-
return this.check(/* @__PURE__ */
|
|
3861
|
+
return this.check(/* @__PURE__ */ zi(e, t));
|
|
3862
3862
|
},
|
|
3863
3863
|
min(e, t) {
|
|
3864
|
-
return this.check(/* @__PURE__ */
|
|
3864
|
+
return this.check(/* @__PURE__ */ zi(e, t));
|
|
3865
3865
|
},
|
|
3866
3866
|
lt(e, t) {
|
|
3867
|
-
return this.check(/* @__PURE__ */
|
|
3867
|
+
return this.check(/* @__PURE__ */ Ii(e, t));
|
|
3868
3868
|
},
|
|
3869
3869
|
lte(e, t) {
|
|
3870
|
-
return this.check(/* @__PURE__ */
|
|
3870
|
+
return this.check(/* @__PURE__ */ Li(e, t));
|
|
3871
3871
|
},
|
|
3872
3872
|
max(e, t) {
|
|
3873
|
-
return this.check(/* @__PURE__ */
|
|
3873
|
+
return this.check(/* @__PURE__ */ Li(e, t));
|
|
3874
3874
|
},
|
|
3875
3875
|
int(e) {
|
|
3876
|
-
return this.check(
|
|
3876
|
+
return this.check(P(e));
|
|
3877
3877
|
},
|
|
3878
3878
|
safe(e) {
|
|
3879
|
-
return this.check(
|
|
3879
|
+
return this.check(P(e));
|
|
3880
3880
|
},
|
|
3881
3881
|
positive(e) {
|
|
3882
|
-
return this.check(/* @__PURE__ */
|
|
3882
|
+
return this.check(/* @__PURE__ */ Ri(0, e));
|
|
3883
3883
|
},
|
|
3884
3884
|
nonnegative(e) {
|
|
3885
|
-
return this.check(/* @__PURE__ */
|
|
3885
|
+
return this.check(/* @__PURE__ */ zi(0, e));
|
|
3886
3886
|
},
|
|
3887
3887
|
negative(e) {
|
|
3888
|
-
return this.check(/* @__PURE__ */
|
|
3888
|
+
return this.check(/* @__PURE__ */ Ii(0, e));
|
|
3889
3889
|
},
|
|
3890
3890
|
nonpositive(e) {
|
|
3891
|
-
return this.check(/* @__PURE__ */
|
|
3891
|
+
return this.check(/* @__PURE__ */ Li(0, e));
|
|
3892
3892
|
},
|
|
3893
3893
|
multipleOf(e, t) {
|
|
3894
|
-
return this.check(/* @__PURE__ */
|
|
3894
|
+
return this.check(/* @__PURE__ */ Bi(e, t));
|
|
3895
3895
|
},
|
|
3896
3896
|
step(e, t) {
|
|
3897
|
-
return this.check(/* @__PURE__ */
|
|
3897
|
+
return this.check(/* @__PURE__ */ Bi(e, t));
|
|
3898
3898
|
},
|
|
3899
3899
|
finite() {
|
|
3900
3900
|
return this;
|
|
3901
3901
|
}
|
|
3902
3902
|
});
|
|
3903
|
-
function
|
|
3904
|
-
return /* @__PURE__ */
|
|
3903
|
+
function N(e) {
|
|
3904
|
+
return /* @__PURE__ */ Ai(rs, e);
|
|
3905
3905
|
}
|
|
3906
|
-
var
|
|
3907
|
-
|
|
3906
|
+
var is = /*@__PURE__*/ b("ZodNumberFormat", (e, t) => {
|
|
3907
|
+
Qn.init(e, t), rs.init(e, t);
|
|
3908
3908
|
});
|
|
3909
|
-
function
|
|
3910
|
-
return /* @__PURE__ */
|
|
3909
|
+
function P(e) {
|
|
3910
|
+
return /* @__PURE__ */ ji(is, e);
|
|
3911
3911
|
}
|
|
3912
|
-
var as = /*@__PURE__*/
|
|
3913
|
-
|
|
3912
|
+
var as = /*@__PURE__*/ b("ZodBoolean", (e, t) => {
|
|
3913
|
+
$n.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sa(e, t, n, r);
|
|
3914
3914
|
});
|
|
3915
3915
|
function F(e) {
|
|
3916
|
-
return /* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ Mi(as, e);
|
|
3917
3917
|
}
|
|
3918
|
-
var os = /*@__PURE__*/
|
|
3919
|
-
|
|
3918
|
+
var os = /*@__PURE__*/ b("ZodNull", (e, t) => {
|
|
3919
|
+
er.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ta(e, t, n, r);
|
|
3920
3920
|
});
|
|
3921
3921
|
function ss(e) {
|
|
3922
|
-
return /* @__PURE__ */
|
|
3922
|
+
return /* @__PURE__ */ Ni(os, e);
|
|
3923
3923
|
}
|
|
3924
|
-
var cs = /*@__PURE__*/
|
|
3925
|
-
|
|
3924
|
+
var cs = /*@__PURE__*/ b("ZodUnknown", (e, t) => {
|
|
3925
|
+
tr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3926
3926
|
});
|
|
3927
3927
|
function ls() {
|
|
3928
|
-
return /* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ Pi(cs);
|
|
3929
3929
|
}
|
|
3930
|
-
var us = /*@__PURE__*/
|
|
3931
|
-
|
|
3930
|
+
var us = /*@__PURE__*/ b("ZodNever", (e, t) => {
|
|
3931
|
+
nr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oa(e, t, n, r);
|
|
3932
3932
|
});
|
|
3933
3933
|
function ds(e) {
|
|
3934
|
-
return /* @__PURE__ */
|
|
3934
|
+
return /* @__PURE__ */ Fi(us, e);
|
|
3935
3935
|
}
|
|
3936
|
-
var fs = /*@__PURE__*/
|
|
3937
|
-
|
|
3936
|
+
var fs = /*@__PURE__*/ b("ZodArray", (e, t) => {
|
|
3937
|
+
jo(), ir.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r), e.element = t.element;
|
|
3938
3938
|
}, {
|
|
3939
3939
|
min(e, t) {
|
|
3940
|
-
return this.check(/* @__PURE__ */
|
|
3940
|
+
return this.check(/* @__PURE__ */ Hi(e, t));
|
|
3941
3941
|
},
|
|
3942
3942
|
nonempty(e) {
|
|
3943
|
-
return this.check(/* @__PURE__ */
|
|
3943
|
+
return this.check(/* @__PURE__ */ Hi(1, e));
|
|
3944
3944
|
},
|
|
3945
3945
|
max(e, t) {
|
|
3946
|
-
return this.check(/* @__PURE__ */
|
|
3946
|
+
return this.check(/* @__PURE__ */ Vi(e, t));
|
|
3947
3947
|
},
|
|
3948
3948
|
length(e, t) {
|
|
3949
|
-
return this.check(/* @__PURE__ */
|
|
3949
|
+
return this.check(/* @__PURE__ */ Ui(e, t));
|
|
3950
3950
|
},
|
|
3951
3951
|
unwrap() {
|
|
3952
3952
|
return this.element;
|
|
3953
3953
|
}
|
|
3954
3954
|
});
|
|
3955
3955
|
function I(e, t) {
|
|
3956
|
-
return /* @__PURE__ */
|
|
3956
|
+
return /* @__PURE__ */ na(fs, e, t);
|
|
3957
3957
|
}
|
|
3958
|
-
var ps = /*@__PURE__*/
|
|
3959
|
-
|
|
3958
|
+
var ps = /*@__PURE__*/ b("ZodObject", (e, t) => {
|
|
3959
|
+
jo(), dr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), Me(e, "shape", (e) => e._zod.def.shape, !1);
|
|
3960
3960
|
}, {
|
|
3961
3961
|
keyof() {
|
|
3962
3962
|
return V(Object.keys(this._zod.def.shape));
|
|
@@ -4031,8 +4031,8 @@ function R(e, t) {
|
|
|
4031
4031
|
...g(t)
|
|
4032
4032
|
});
|
|
4033
4033
|
}
|
|
4034
|
-
var ms = /*@__PURE__*/
|
|
4035
|
-
|
|
4034
|
+
var ms = /*@__PURE__*/ b("ZodUnion", (e, t) => {
|
|
4035
|
+
pr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.options = t.options;
|
|
4036
4036
|
});
|
|
4037
4037
|
function z(e, t) {
|
|
4038
4038
|
return new ms({
|
|
@@ -4041,8 +4041,8 @@ function z(e, t) {
|
|
|
4041
4041
|
...g(t)
|
|
4042
4042
|
});
|
|
4043
4043
|
}
|
|
4044
|
-
var hs = /*@__PURE__*/
|
|
4045
|
-
|
|
4044
|
+
var hs = /*@__PURE__*/ b("ZodIntersection", (e, t) => {
|
|
4045
|
+
mr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r);
|
|
4046
4046
|
});
|
|
4047
4047
|
function gs(e, t) {
|
|
4048
4048
|
return new hs({
|
|
@@ -4051,13 +4051,13 @@ function gs(e, t) {
|
|
|
4051
4051
|
right: t
|
|
4052
4052
|
});
|
|
4053
4053
|
}
|
|
4054
|
-
var _s = /*@__PURE__*/
|
|
4055
|
-
|
|
4054
|
+
var _s = /*@__PURE__*/ b("ZodRecord", (e, t) => {
|
|
4055
|
+
jo(), _r.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
4056
4056
|
});
|
|
4057
4057
|
function B(e, t, n) {
|
|
4058
4058
|
return !t || !t._zod ? new _s({
|
|
4059
4059
|
type: "record",
|
|
4060
|
-
keyType:
|
|
4060
|
+
keyType: j(),
|
|
4061
4061
|
valueType: e,
|
|
4062
4062
|
...g(t)
|
|
4063
4063
|
}) : new _s({
|
|
@@ -4067,8 +4067,8 @@ function B(e, t, n) {
|
|
|
4067
4067
|
...g(n)
|
|
4068
4068
|
});
|
|
4069
4069
|
}
|
|
4070
|
-
var vs = /*@__PURE__*/
|
|
4071
|
-
|
|
4070
|
+
var vs = /*@__PURE__*/ b("ZodEnum", (e, t) => {
|
|
4071
|
+
vr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
4072
4072
|
let n = new Set(Object.keys(t.entries));
|
|
4073
4073
|
e.extract = (e, r) => {
|
|
4074
4074
|
let i = {};
|
|
@@ -4099,8 +4099,8 @@ function V(e, t) {
|
|
|
4099
4099
|
...g(t)
|
|
4100
4100
|
});
|
|
4101
4101
|
}
|
|
4102
|
-
var ys = /*@__PURE__*/
|
|
4103
|
-
|
|
4102
|
+
var ys = /*@__PURE__*/ b("ZodLiteral", (e, t) => {
|
|
4103
|
+
yr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
4104
4104
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
4105
4105
|
return t.values[0];
|
|
4106
4106
|
} });
|
|
@@ -4112,14 +4112,14 @@ function H(e, t) {
|
|
|
4112
4112
|
...g(t)
|
|
4113
4113
|
});
|
|
4114
4114
|
}
|
|
4115
|
-
var bs = /*@__PURE__*/
|
|
4116
|
-
|
|
4117
|
-
if (r.direction === "backward") throw new
|
|
4115
|
+
var bs = /*@__PURE__*/ b("ZodTransform", (e, t) => {
|
|
4116
|
+
jo(), br.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r), e._zod.parse = (n, r) => {
|
|
4117
|
+
if (r.direction === "backward") throw new Be(e.constructor.name);
|
|
4118
4118
|
n.addIssue = (r) => {
|
|
4119
|
-
if (typeof r == "string") n.issues.push(
|
|
4119
|
+
if (typeof r == "string") n.issues.push(Ce(r, n.value, t));
|
|
4120
4120
|
else {
|
|
4121
4121
|
let t = r;
|
|
4122
|
-
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(
|
|
4122
|
+
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(Ce(t));
|
|
4123
4123
|
}
|
|
4124
4124
|
};
|
|
4125
4125
|
let i = t.transform(n.value, n);
|
|
@@ -4132,8 +4132,8 @@ function xs(e) {
|
|
|
4132
4132
|
transform: e
|
|
4133
4133
|
});
|
|
4134
4134
|
}
|
|
4135
|
-
var Ss = /*@__PURE__*/
|
|
4136
|
-
|
|
4135
|
+
var Ss = /*@__PURE__*/ b("ZodOptional", (e, t) => {
|
|
4136
|
+
Sr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4137
4137
|
});
|
|
4138
4138
|
function Cs(e) {
|
|
4139
4139
|
return new Ss({
|
|
@@ -4141,8 +4141,8 @@ function Cs(e) {
|
|
|
4141
4141
|
innerType: e
|
|
4142
4142
|
});
|
|
4143
4143
|
}
|
|
4144
|
-
var ws = /*@__PURE__*/
|
|
4145
|
-
|
|
4144
|
+
var ws = /*@__PURE__*/ b("ZodExactOptional", (e, t) => {
|
|
4145
|
+
Cr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4146
4146
|
});
|
|
4147
4147
|
function Ts(e) {
|
|
4148
4148
|
return new ws({
|
|
@@ -4150,8 +4150,8 @@ function Ts(e) {
|
|
|
4150
4150
|
innerType: e
|
|
4151
4151
|
});
|
|
4152
4152
|
}
|
|
4153
|
-
var Es = /*@__PURE__*/
|
|
4154
|
-
|
|
4153
|
+
var Es = /*@__PURE__*/ b("ZodNullable", (e, t) => {
|
|
4154
|
+
wr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4155
4155
|
});
|
|
4156
4156
|
function Ds(e) {
|
|
4157
4157
|
return new Es({
|
|
@@ -4159,8 +4159,8 @@ function Ds(e) {
|
|
|
4159
4159
|
innerType: e
|
|
4160
4160
|
});
|
|
4161
4161
|
}
|
|
4162
|
-
var Os = /*@__PURE__*/
|
|
4163
|
-
|
|
4162
|
+
var Os = /*@__PURE__*/ b("ZodDefault", (e, t) => {
|
|
4163
|
+
Tr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
4164
4164
|
});
|
|
4165
4165
|
function ks(e, t) {
|
|
4166
4166
|
return new Os({
|
|
@@ -4171,8 +4171,8 @@ function ks(e, t) {
|
|
|
4171
4171
|
}
|
|
4172
4172
|
});
|
|
4173
4173
|
}
|
|
4174
|
-
var As = /*@__PURE__*/
|
|
4175
|
-
|
|
4174
|
+
var As = /*@__PURE__*/ b("ZodPrefault", (e, t) => {
|
|
4175
|
+
Dr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4176
4176
|
});
|
|
4177
4177
|
function js(e, t) {
|
|
4178
4178
|
return new As({
|
|
@@ -4183,8 +4183,8 @@ function js(e, t) {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
});
|
|
4185
4185
|
}
|
|
4186
|
-
var Ms = /*@__PURE__*/
|
|
4187
|
-
|
|
4186
|
+
var Ms = /*@__PURE__*/ b("ZodNonOptional", (e, t) => {
|
|
4187
|
+
Or.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => eo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4188
4188
|
});
|
|
4189
4189
|
function Ns(e, t) {
|
|
4190
4190
|
return new Ms({
|
|
@@ -4193,18 +4193,18 @@ function Ns(e, t) {
|
|
|
4193
4193
|
...g(t)
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
4196
|
-
var Ps = /*@__PURE__*/
|
|
4197
|
-
|
|
4196
|
+
var Ps = /*@__PURE__*/ b("ZodCatch", (e, t) => {
|
|
4197
|
+
jr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => ao(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
4198
4198
|
});
|
|
4199
4199
|
function Fs(e, t) {
|
|
4200
4200
|
return new Ps({
|
|
4201
4201
|
type: "catch",
|
|
4202
4202
|
innerType: e,
|
|
4203
|
-
catchValue: typeof t == "function" ? t :
|
|
4203
|
+
catchValue: typeof t == "function" ? t : Pe(t)
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
4206
|
-
var Is = /*@__PURE__*/
|
|
4207
|
-
|
|
4206
|
+
var Is = /*@__PURE__*/ b("ZodPipe", (e, t) => {
|
|
4207
|
+
Mr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
4208
4208
|
});
|
|
4209
4209
|
function Ls(e, t) {
|
|
4210
4210
|
return new Is({
|
|
@@ -4213,8 +4213,8 @@ function Ls(e, t) {
|
|
|
4213
4213
|
out: t
|
|
4214
4214
|
});
|
|
4215
4215
|
}
|
|
4216
|
-
var Rs = /*@__PURE__*/
|
|
4217
|
-
|
|
4216
|
+
var Rs = /*@__PURE__*/ b("ZodReadonly", (e, t) => {
|
|
4217
|
+
Pr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => so(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4218
4218
|
});
|
|
4219
4219
|
function zs(e) {
|
|
4220
4220
|
return new Rs({
|
|
@@ -4222,8 +4222,8 @@ function zs(e) {
|
|
|
4222
4222
|
innerType: e
|
|
4223
4223
|
});
|
|
4224
4224
|
}
|
|
4225
|
-
var Bs = /*@__PURE__*/
|
|
4226
|
-
|
|
4225
|
+
var Bs = /*@__PURE__*/ b("ZodLazy", (e, t) => {
|
|
4226
|
+
Ir.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => uo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
|
|
4227
4227
|
});
|
|
4228
4228
|
function Vs(e) {
|
|
4229
4229
|
return new Bs({
|
|
@@ -4231,39 +4231,47 @@ function Vs(e) {
|
|
|
4231
4231
|
getter: e
|
|
4232
4232
|
});
|
|
4233
4233
|
}
|
|
4234
|
-
var Hs = /*@__PURE__*/
|
|
4235
|
-
|
|
4234
|
+
var Hs = /*@__PURE__*/ b("ZodCustom", (e, t) => {
|
|
4235
|
+
Lr.init(e, t), A.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r);
|
|
4236
4236
|
});
|
|
4237
4237
|
function Us(e, t = {}) {
|
|
4238
|
-
return /* @__PURE__ */
|
|
4238
|
+
return /* @__PURE__ */ ra(Hs, e, t);
|
|
4239
4239
|
}
|
|
4240
4240
|
function Ws(e, t) {
|
|
4241
|
-
return /* @__PURE__ */
|
|
4241
|
+
return /* @__PURE__ */ ia(e, t);
|
|
4242
4242
|
}
|
|
4243
4243
|
function Gs(e) {
|
|
4244
4244
|
let t = Vs(() => z([
|
|
4245
|
-
|
|
4246
|
-
|
|
4245
|
+
j(e),
|
|
4246
|
+
N(),
|
|
4247
4247
|
F(),
|
|
4248
4248
|
ss(),
|
|
4249
4249
|
I(t),
|
|
4250
|
-
B(
|
|
4250
|
+
B(j(), t)
|
|
4251
4251
|
]));
|
|
4252
4252
|
return t;
|
|
4253
4253
|
}
|
|
4254
4254
|
//#endregion
|
|
4255
4255
|
//#region src/execution/common/wait.ts
|
|
4256
|
-
var Ks =
|
|
4257
|
-
|
|
4256
|
+
var Ks = j().trim().refine((e) => [...e].length <= 2e3, "Wait comment must contain at most 2,000 Unicode code points.").nullable().optional();
|
|
4257
|
+
//#endregion
|
|
4258
|
+
//#region src/flow/common/inputValue.ts
|
|
4259
|
+
function qs(e) {
|
|
4260
|
+
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
4261
|
+
kind: "value",
|
|
4262
|
+
value: t
|
|
4263
|
+
}]));
|
|
4264
|
+
}
|
|
4265
|
+
function Js(e, t = 0) {
|
|
4258
4266
|
if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
|
|
4259
|
-
if (typeof e == "object" && e) for (let n of Object.values(e))
|
|
4267
|
+
if (typeof e == "object" && e) for (let n of Object.values(e)) Js(n, t + 1);
|
|
4260
4268
|
}
|
|
4261
4269
|
//#endregion
|
|
4262
4270
|
//#region src/flow/common/triggerScheduleSchema.ts
|
|
4263
|
-
var
|
|
4271
|
+
var Ys = I(z([L({
|
|
4264
4272
|
type: H("cron"),
|
|
4265
|
-
expression:
|
|
4266
|
-
timezone:
|
|
4273
|
+
expression: j(),
|
|
4274
|
+
timezone: j()
|
|
4267
4275
|
}), L({
|
|
4268
4276
|
type: H("every"),
|
|
4269
4277
|
unit: V([
|
|
@@ -4273,59 +4281,68 @@ var Js = I(z([L({
|
|
|
4273
4281
|
"month",
|
|
4274
4282
|
"week"
|
|
4275
4283
|
]),
|
|
4276
|
-
value:
|
|
4277
|
-
})])), U =
|
|
4284
|
+
value: N()
|
|
4285
|
+
})])), U = j(), W = Gs(), Xs = I(U), Zs = L({
|
|
4278
4286
|
description: U.optional(),
|
|
4279
4287
|
jsonSchema: W,
|
|
4280
4288
|
nullable: F(),
|
|
4281
4289
|
handle: U
|
|
4282
|
-
}), G =
|
|
4290
|
+
}), G = Zs.extend({ value: W.optional() }), Qs = L({
|
|
4283
4291
|
collapsed: F().optional(),
|
|
4284
4292
|
group: U
|
|
4285
|
-
}),
|
|
4293
|
+
}), $s = L({
|
|
4286
4294
|
kind: H("node"),
|
|
4287
4295
|
nodeId: U,
|
|
4288
|
-
output: U
|
|
4289
|
-
|
|
4296
|
+
output: U,
|
|
4297
|
+
field: U.optional()
|
|
4298
|
+
}), ec = L({
|
|
4290
4299
|
kind: H("flow"),
|
|
4291
4300
|
input: U
|
|
4292
|
-
}),
|
|
4293
|
-
Qs,
|
|
4301
|
+
}), tc = z([
|
|
4294
4302
|
$s,
|
|
4303
|
+
ec,
|
|
4295
4304
|
L({
|
|
4296
4305
|
kind: H("binding"),
|
|
4297
4306
|
bindingId: U
|
|
4298
4307
|
})
|
|
4299
|
-
]),
|
|
4308
|
+
]), nc = z([L({ kind: H("unset") }), L({
|
|
4300
4309
|
kind: H("value"),
|
|
4301
4310
|
value: W
|
|
4302
|
-
}), L({
|
|
4311
|
+
})]), rc = z([nc, L({
|
|
4303
4312
|
kind: H("sources"),
|
|
4304
|
-
sources: I(
|
|
4305
|
-
})]),
|
|
4306
|
-
inputs: I(z([G,
|
|
4307
|
-
outputs: I(z([
|
|
4308
|
-
},
|
|
4313
|
+
sources: I(tc)
|
|
4314
|
+
})]), ic = B(U, rc), ac = {
|
|
4315
|
+
inputs: I(z([G, Qs])),
|
|
4316
|
+
outputs: I(z([Zs, Qs]))
|
|
4317
|
+
}, oc = z([R({
|
|
4309
4318
|
kind: H("connector"),
|
|
4310
4319
|
action: U,
|
|
4311
4320
|
connectionId: U.optional(),
|
|
4312
|
-
connections: I(
|
|
4321
|
+
connections: I(R({
|
|
4313
4322
|
connectionId: U,
|
|
4314
4323
|
alias: U.optional()
|
|
4315
4324
|
}))
|
|
4316
|
-
}),
|
|
4317
|
-
|
|
4325
|
+
}), R({
|
|
4326
|
+
kind: H("connector"),
|
|
4327
|
+
actionHints: I(U).optional(),
|
|
4328
|
+
connectionHints: I(R({
|
|
4329
|
+
action: U,
|
|
4330
|
+
connectionId: U,
|
|
4331
|
+
alias: U.optional()
|
|
4332
|
+
})).optional()
|
|
4333
|
+
})]), sc = L({
|
|
4334
|
+
...ac,
|
|
4318
4335
|
name: U,
|
|
4319
4336
|
moduleId: U,
|
|
4320
|
-
capabilities: I(
|
|
4321
|
-
}),
|
|
4337
|
+
capabilities: I(oc).optional()
|
|
4338
|
+
}), cc = z([L({
|
|
4322
4339
|
kind: H("value"),
|
|
4323
4340
|
value: W
|
|
4324
4341
|
}), L({
|
|
4325
4342
|
kind: H("input"),
|
|
4326
4343
|
input: U
|
|
4327
|
-
})]),
|
|
4328
|
-
...
|
|
4344
|
+
})]), lc = z([cc, L({ kind: H("model") })]), uc = L({
|
|
4345
|
+
...ac,
|
|
4329
4346
|
name: U,
|
|
4330
4347
|
executor: z([
|
|
4331
4348
|
L({
|
|
@@ -4341,9 +4358,9 @@ var Js = I(z([L({
|
|
|
4341
4358
|
kind: H("agent"),
|
|
4342
4359
|
code: F().optional(),
|
|
4343
4360
|
model: U,
|
|
4344
|
-
prompt:
|
|
4361
|
+
prompt: cc,
|
|
4345
4362
|
system: U,
|
|
4346
|
-
maxRounds:
|
|
4363
|
+
maxRounds: N(),
|
|
4347
4364
|
tools: I(L({
|
|
4348
4365
|
id: U,
|
|
4349
4366
|
name: U,
|
|
@@ -4351,22 +4368,29 @@ var Js = I(z([L({
|
|
|
4351
4368
|
action: U,
|
|
4352
4369
|
connectionId: U.optional(),
|
|
4353
4370
|
approval: F(),
|
|
4354
|
-
inputs: I(G.extend({ source:
|
|
4371
|
+
inputs: I(G.extend({ source: lc }))
|
|
4355
4372
|
})),
|
|
4356
4373
|
notification: L({
|
|
4357
4374
|
taskId: U,
|
|
4358
4375
|
messageHandle: U,
|
|
4359
|
-
inputs: B(U,
|
|
4376
|
+
inputs: B(U, cc)
|
|
4360
4377
|
}).optional()
|
|
4361
4378
|
})
|
|
4362
4379
|
])
|
|
4363
|
-
}),
|
|
4364
|
-
|
|
4380
|
+
}), dc = z([L({
|
|
4381
|
+
kind: H("value"),
|
|
4382
|
+
value: W.optional(),
|
|
4383
|
+
jsonSchema: W.optional()
|
|
4384
|
+
}), L({
|
|
4385
|
+
kind: H("source"),
|
|
4386
|
+
source: tc
|
|
4387
|
+
})]), fc = {
|
|
4388
|
+
matchMode: V(["first", "all"]),
|
|
4365
4389
|
cases: I(L({
|
|
4390
|
+
description: U.optional(),
|
|
4366
4391
|
output: U,
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
input: U,
|
|
4392
|
+
groups: I(L({ expressions: I(L({
|
|
4393
|
+
left: dc,
|
|
4370
4394
|
operator: V([
|
|
4371
4395
|
"!=",
|
|
4372
4396
|
"<",
|
|
@@ -4389,33 +4413,32 @@ var Js = I(z([L({
|
|
|
4389
4413
|
"notHasValue",
|
|
4390
4414
|
"startsWith"
|
|
4391
4415
|
]),
|
|
4392
|
-
|
|
4393
|
-
}))
|
|
4394
|
-
}))
|
|
4395
|
-
|
|
4396
|
-
}, uc = {
|
|
4416
|
+
right: dc.optional()
|
|
4417
|
+
})) }))
|
|
4418
|
+
}))
|
|
4419
|
+
}, pc = {
|
|
4397
4420
|
inputDefinitions: I(G),
|
|
4398
4421
|
prompt: U
|
|
4399
|
-
},
|
|
4422
|
+
}, mc = {
|
|
4400
4423
|
bodyFields: I(G),
|
|
4401
4424
|
options: L({
|
|
4402
|
-
allowedMethods:
|
|
4403
|
-
allowedOrigins:
|
|
4425
|
+
allowedMethods: Xs.optional(),
|
|
4426
|
+
allowedOrigins: Xs.optional(),
|
|
4404
4427
|
noResponseBody: F().optional(),
|
|
4405
4428
|
responseData: U.optional(),
|
|
4406
4429
|
responseHeaders: B(U, U).optional(),
|
|
4407
|
-
responseStatusCode:
|
|
4430
|
+
responseStatusCode: N().optional()
|
|
4408
4431
|
}).optional()
|
|
4409
|
-
},
|
|
4410
|
-
|
|
4432
|
+
}, hc = {
|
|
4433
|
+
configInputs: ac.inputs,
|
|
4411
4434
|
definitionVersion: H(2),
|
|
4412
4435
|
description: U,
|
|
4413
4436
|
displayName: U,
|
|
4414
4437
|
key: U,
|
|
4415
4438
|
name: U,
|
|
4416
|
-
outputs: I(
|
|
4439
|
+
outputs: I(Zs).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
|
|
4417
4440
|
provider: U
|
|
4418
|
-
},
|
|
4441
|
+
}, gc = L({
|
|
4419
4442
|
body: L({
|
|
4420
4443
|
allowArray: F(),
|
|
4421
4444
|
allowEmpty: F(),
|
|
@@ -4434,23 +4457,24 @@ var Js = I(z([L({
|
|
|
4434
4457
|
"POST",
|
|
4435
4458
|
"PUT"
|
|
4436
4459
|
])),
|
|
4437
|
-
successStatus:
|
|
4438
|
-
}),
|
|
4460
|
+
successStatus: N()
|
|
4461
|
+
}), _c = {
|
|
4439
4462
|
name: U,
|
|
4440
4463
|
description: U.optional(),
|
|
4441
4464
|
icon: U.optional()
|
|
4442
4465
|
}, K = {
|
|
4443
|
-
maxExecutions:
|
|
4444
|
-
inputs:
|
|
4466
|
+
maxExecutions: N().int().positive().max(2 ** 53 - 1).optional(),
|
|
4467
|
+
inputs: ic,
|
|
4445
4468
|
name: U.optional(),
|
|
4446
4469
|
description: U.optional(),
|
|
4447
4470
|
icon: U.optional(),
|
|
4448
|
-
timeoutMs:
|
|
4449
|
-
},
|
|
4471
|
+
timeoutMs: N().optional()
|
|
4472
|
+
}, vc = z([
|
|
4450
4473
|
L({
|
|
4451
4474
|
...K,
|
|
4475
|
+
inputs: B(U, ds()),
|
|
4452
4476
|
kind: H("condition"),
|
|
4453
|
-
...
|
|
4477
|
+
...fc
|
|
4454
4478
|
}),
|
|
4455
4479
|
L({
|
|
4456
4480
|
...K,
|
|
@@ -4466,7 +4490,7 @@ var Js = I(z([L({
|
|
|
4466
4490
|
L({
|
|
4467
4491
|
...K,
|
|
4468
4492
|
kind: H("task"),
|
|
4469
|
-
task:
|
|
4493
|
+
task: sc,
|
|
4470
4494
|
additionalInputs: I(G).optional()
|
|
4471
4495
|
}),
|
|
4472
4496
|
L({
|
|
@@ -4478,91 +4502,91 @@ var Js = I(z([L({
|
|
|
4478
4502
|
R({
|
|
4479
4503
|
...K,
|
|
4480
4504
|
kind: H("approval"),
|
|
4481
|
-
...
|
|
4505
|
+
...pc
|
|
4482
4506
|
}).omit({ timeoutMs: !0 }),
|
|
4483
4507
|
R({
|
|
4484
4508
|
...K,
|
|
4485
4509
|
kind: H("wait"),
|
|
4486
|
-
...
|
|
4510
|
+
...pc
|
|
4487
4511
|
}).omit({ timeoutMs: !0 }),
|
|
4488
4512
|
L({
|
|
4489
|
-
...
|
|
4513
|
+
..._c,
|
|
4490
4514
|
kind: H("manual")
|
|
4491
4515
|
}),
|
|
4492
4516
|
L({
|
|
4493
|
-
...
|
|
4517
|
+
..._c,
|
|
4494
4518
|
kind: H("webhook"),
|
|
4495
|
-
...
|
|
4519
|
+
...mc
|
|
4496
4520
|
}),
|
|
4497
4521
|
L({
|
|
4498
|
-
...
|
|
4522
|
+
..._c,
|
|
4499
4523
|
kind: H("cron"),
|
|
4500
|
-
cronTimes:
|
|
4524
|
+
cronTimes: Ys
|
|
4501
4525
|
}),
|
|
4502
4526
|
L({
|
|
4503
|
-
...
|
|
4527
|
+
..._c,
|
|
4504
4528
|
kind: H("poll"),
|
|
4505
4529
|
bindingId: U,
|
|
4506
|
-
config: B(U,
|
|
4530
|
+
config: B(U, nc),
|
|
4507
4531
|
definition: L({
|
|
4508
|
-
...
|
|
4532
|
+
...hc,
|
|
4509
4533
|
type: H("poll")
|
|
4510
4534
|
}),
|
|
4511
|
-
pollTimes:
|
|
4535
|
+
pollTimes: Ys
|
|
4512
4536
|
}),
|
|
4513
4537
|
L({
|
|
4514
|
-
...
|
|
4538
|
+
..._c,
|
|
4515
4539
|
kind: H("integration"),
|
|
4516
4540
|
bindingId: U,
|
|
4517
|
-
config: B(U,
|
|
4541
|
+
config: B(U, nc),
|
|
4518
4542
|
definition: L({
|
|
4519
|
-
...
|
|
4543
|
+
...hc,
|
|
4520
4544
|
type: H("integration"),
|
|
4521
|
-
endpoint:
|
|
4545
|
+
endpoint: gc
|
|
4522
4546
|
})
|
|
4523
4547
|
})
|
|
4524
|
-
]),
|
|
4548
|
+
]), yc = z([L({ kind: H("flow") }), L({
|
|
4525
4549
|
kind: H("subflow"),
|
|
4526
4550
|
id: U
|
|
4527
|
-
})]),
|
|
4551
|
+
})]), bc = L({
|
|
4528
4552
|
source: U,
|
|
4529
4553
|
target: U,
|
|
4530
4554
|
sourceHandle: U.optional()
|
|
4531
4555
|
}), q = {
|
|
4532
4556
|
nodeId: U,
|
|
4533
|
-
target:
|
|
4534
|
-
},
|
|
4557
|
+
target: yc
|
|
4558
|
+
}, xc = L({
|
|
4535
4559
|
name: U,
|
|
4536
4560
|
inputs: I(G),
|
|
4537
|
-
outputs: I(
|
|
4538
|
-
}),
|
|
4539
|
-
nodes: B(U,
|
|
4540
|
-
edges: I(
|
|
4541
|
-
}),
|
|
4561
|
+
outputs: I(Zs.extend({ sources: I(z([$s, ec])) }))
|
|
4562
|
+
}), Sc = L({
|
|
4563
|
+
nodes: B(U, vc),
|
|
4564
|
+
edges: I(bc).default([])
|
|
4565
|
+
}), Cc = L({
|
|
4542
4566
|
kind: V(["connection", "variable"]),
|
|
4543
4567
|
target: U
|
|
4544
|
-
}),
|
|
4568
|
+
}), wc = L({
|
|
4545
4569
|
name: U,
|
|
4546
|
-
imports:
|
|
4570
|
+
imports: Xs,
|
|
4547
4571
|
source: U
|
|
4548
|
-
}),
|
|
4549
|
-
bindings: B(U,
|
|
4550
|
-
graph:
|
|
4551
|
-
subflows: B(U,
|
|
4552
|
-
tasks: B(U,
|
|
4572
|
+
}), Tc = L({
|
|
4573
|
+
bindings: B(U, Cc),
|
|
4574
|
+
graph: Sc,
|
|
4575
|
+
subflows: B(U, xc.extend({ graph: Sc })),
|
|
4576
|
+
tasks: B(U, uc)
|
|
4553
4577
|
});
|
|
4554
4578
|
L({
|
|
4555
4579
|
modelVersion: z([H(2), H(3)]),
|
|
4556
|
-
document:
|
|
4557
|
-
modules: B(U,
|
|
4580
|
+
document: Tc,
|
|
4581
|
+
modules: B(U, wc)
|
|
4558
4582
|
}).extend({
|
|
4559
4583
|
kind: H("open-flow-flow-revision"),
|
|
4560
4584
|
version: H(1)
|
|
4561
4585
|
});
|
|
4562
|
-
var
|
|
4586
|
+
var Ec = {
|
|
4563
4587
|
"binding.create": {
|
|
4564
4588
|
bindingId: U,
|
|
4565
|
-
binding:
|
|
4589
|
+
binding: Cc
|
|
4566
4590
|
},
|
|
4567
4591
|
"binding.delete": { bindingId: U },
|
|
4568
4592
|
"binding.target.set": {
|
|
@@ -4571,16 +4595,16 @@ var Cc = {
|
|
|
4571
4595
|
value: U
|
|
4572
4596
|
},
|
|
4573
4597
|
"graph.edge.connect": {
|
|
4574
|
-
target:
|
|
4575
|
-
edge:
|
|
4598
|
+
target: yc,
|
|
4599
|
+
edge: bc
|
|
4576
4600
|
},
|
|
4577
4601
|
"graph.edge.disconnect": {
|
|
4578
|
-
target:
|
|
4579
|
-
edge:
|
|
4602
|
+
target: yc,
|
|
4603
|
+
edge: bc
|
|
4580
4604
|
},
|
|
4581
4605
|
"graph.node.create": {
|
|
4582
4606
|
...q,
|
|
4583
|
-
node:
|
|
4607
|
+
node: vc
|
|
4584
4608
|
},
|
|
4585
4609
|
"graph.node.delete": q,
|
|
4586
4610
|
"graph.node.field.set": z([
|
|
@@ -4599,22 +4623,22 @@ var Cc = {
|
|
|
4599
4623
|
...q,
|
|
4600
4624
|
kind: H("graph.node.field.set"),
|
|
4601
4625
|
field: H("maxExecutions"),
|
|
4602
|
-
before:
|
|
4603
|
-
value:
|
|
4626
|
+
before: N().int().positive().max(2 ** 53 - 1).optional(),
|
|
4627
|
+
value: N().int().positive().max(2 ** 53 - 1).optional()
|
|
4604
4628
|
}),
|
|
4605
4629
|
L({
|
|
4606
4630
|
...q,
|
|
4607
4631
|
kind: H("graph.node.field.set"),
|
|
4608
4632
|
field: H("timeoutMs"),
|
|
4609
|
-
before:
|
|
4610
|
-
value:
|
|
4633
|
+
before: N().optional(),
|
|
4634
|
+
value: N().optional()
|
|
4611
4635
|
})
|
|
4612
4636
|
]),
|
|
4613
4637
|
"graph.node.input.set": {
|
|
4614
4638
|
...q,
|
|
4615
4639
|
handle: U,
|
|
4616
|
-
before:
|
|
4617
|
-
value:
|
|
4640
|
+
before: rc.optional(),
|
|
4641
|
+
value: rc.optional()
|
|
4618
4642
|
},
|
|
4619
4643
|
"graph.node.additional-inputs.set": {
|
|
4620
4644
|
...q,
|
|
@@ -4623,8 +4647,8 @@ var Cc = {
|
|
|
4623
4647
|
},
|
|
4624
4648
|
"graph.node.condition.set": {
|
|
4625
4649
|
...q,
|
|
4626
|
-
before: L(
|
|
4627
|
-
value: L(
|
|
4650
|
+
before: L(fc),
|
|
4651
|
+
value: L(fc)
|
|
4628
4652
|
},
|
|
4629
4653
|
"graph.node.values.set": {
|
|
4630
4654
|
...q,
|
|
@@ -4634,19 +4658,19 @@ var Cc = {
|
|
|
4634
4658
|
"graph.node.resolution.set": {
|
|
4635
4659
|
...q,
|
|
4636
4660
|
target: L({ kind: H("flow") }),
|
|
4637
|
-
before: L(
|
|
4638
|
-
value: L(
|
|
4661
|
+
before: L(pc),
|
|
4662
|
+
value: L(pc)
|
|
4639
4663
|
},
|
|
4640
4664
|
"graph.node.webhook.set": {
|
|
4641
4665
|
...q,
|
|
4642
4666
|
target: L({ kind: H("flow") }),
|
|
4643
|
-
before: L(
|
|
4644
|
-
value: L(
|
|
4667
|
+
before: L(mc),
|
|
4668
|
+
value: L(mc)
|
|
4645
4669
|
},
|
|
4646
4670
|
"graph.node.task.ports.set": {
|
|
4647
4671
|
...q,
|
|
4648
|
-
before: L(
|
|
4649
|
-
value: L(
|
|
4672
|
+
before: L(ac),
|
|
4673
|
+
value: L(ac)
|
|
4650
4674
|
},
|
|
4651
4675
|
"graph.node.task.name.set": {
|
|
4652
4676
|
...q,
|
|
@@ -4655,23 +4679,23 @@ var Cc = {
|
|
|
4655
4679
|
},
|
|
4656
4680
|
"graph.node.task.capabilities.set": {
|
|
4657
4681
|
...q,
|
|
4658
|
-
before: I(
|
|
4659
|
-
value: I(
|
|
4682
|
+
before: I(oc).optional(),
|
|
4683
|
+
value: I(oc).optional()
|
|
4660
4684
|
},
|
|
4661
4685
|
"graph.trigger.config.set": {
|
|
4662
4686
|
nodeId: U,
|
|
4663
4687
|
name: U,
|
|
4664
|
-
before:
|
|
4665
|
-
value:
|
|
4688
|
+
before: nc.optional(),
|
|
4689
|
+
value: nc.optional()
|
|
4666
4690
|
},
|
|
4667
4691
|
"graph.trigger.schedule.set": {
|
|
4668
4692
|
nodeId: U,
|
|
4669
|
-
before:
|
|
4670
|
-
value:
|
|
4693
|
+
before: Ys,
|
|
4694
|
+
value: Ys
|
|
4671
4695
|
},
|
|
4672
4696
|
"module.create": {
|
|
4673
4697
|
moduleId: U,
|
|
4674
|
-
module:
|
|
4698
|
+
module: wc
|
|
4675
4699
|
},
|
|
4676
4700
|
"module.delete": { moduleId: U },
|
|
4677
4701
|
"module.rename": {
|
|
@@ -4681,24 +4705,24 @@ var Cc = {
|
|
|
4681
4705
|
},
|
|
4682
4706
|
"module.source.replace": {
|
|
4683
4707
|
moduleId: U,
|
|
4684
|
-
beforeImports:
|
|
4708
|
+
beforeImports: Xs,
|
|
4685
4709
|
beforeSource: U,
|
|
4686
|
-
imports:
|
|
4710
|
+
imports: Xs,
|
|
4687
4711
|
source: U
|
|
4688
4712
|
},
|
|
4689
4713
|
"subflow.create": {
|
|
4690
4714
|
subflowId: U,
|
|
4691
|
-
subflow:
|
|
4715
|
+
subflow: xc.extend({ graph: Sc })
|
|
4692
4716
|
},
|
|
4693
4717
|
"subflow.definition.set": {
|
|
4694
4718
|
subflowId: U,
|
|
4695
|
-
before:
|
|
4696
|
-
definition:
|
|
4719
|
+
before: xc,
|
|
4720
|
+
definition: xc
|
|
4697
4721
|
},
|
|
4698
4722
|
"subflow.delete": { subflowId: U },
|
|
4699
4723
|
"task.create": {
|
|
4700
4724
|
taskId: U,
|
|
4701
|
-
task:
|
|
4725
|
+
task: uc
|
|
4702
4726
|
},
|
|
4703
4727
|
"task.delete": { taskId: U },
|
|
4704
4728
|
"task.connector.connection.set": {
|
|
@@ -4708,8 +4732,8 @@ var Cc = {
|
|
|
4708
4732
|
},
|
|
4709
4733
|
"task.agent.set": {
|
|
4710
4734
|
taskId: U,
|
|
4711
|
-
before:
|
|
4712
|
-
value:
|
|
4735
|
+
before: uc,
|
|
4736
|
+
value: uc
|
|
4713
4737
|
},
|
|
4714
4738
|
"task.llm.mode.set": {
|
|
4715
4739
|
taskId: U,
|
|
@@ -4721,28 +4745,28 @@ var Cc = {
|
|
|
4721
4745
|
before: U,
|
|
4722
4746
|
value: U
|
|
4723
4747
|
}
|
|
4724
|
-
},
|
|
4748
|
+
}, Dc = new Map(Object.entries(Ec).map(([e, t]) => [e, t instanceof A ? t : L({
|
|
4725
4749
|
kind: H(e),
|
|
4726
4750
|
...t
|
|
4727
|
-
})])),
|
|
4728
|
-
function
|
|
4751
|
+
})])), Oc = I(z([...Dc.values()])).min(1);
|
|
4752
|
+
function kc(e, t, n) {
|
|
4729
4753
|
try {
|
|
4730
4754
|
return n(e);
|
|
4731
4755
|
} catch (e) {
|
|
4732
|
-
throw e instanceof
|
|
4756
|
+
throw e instanceof _o ? TypeError(`operations[${t}]: ${e.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join("; ")}`, { cause: e }) : e;
|
|
4733
4757
|
}
|
|
4734
4758
|
}
|
|
4735
|
-
function
|
|
4736
|
-
let { kind: n } =
|
|
4759
|
+
function Ac(e, t) {
|
|
4760
|
+
let { kind: n } = kc(e, t, L({ kind: U }).parse), r = Dc.get(n);
|
|
4737
4761
|
if (r == null) throw TypeError(`operations[${t}]: Unknown operation ${JSON.stringify(n)}.`);
|
|
4738
|
-
return
|
|
4762
|
+
return kc(e, t, r.parse);
|
|
4739
4763
|
}
|
|
4740
|
-
function
|
|
4741
|
-
let t = e == null ?
|
|
4764
|
+
function jc(e) {
|
|
4765
|
+
let t = e == null ? Oc : Dc.get(e);
|
|
4742
4766
|
if (t == null) throw TypeError(`Unknown operation ${JSON.stringify(e)}.`);
|
|
4743
|
-
return
|
|
4767
|
+
return po(t, { io: "input" });
|
|
4744
4768
|
}
|
|
4745
|
-
function
|
|
4769
|
+
function Mc(e) {
|
|
4746
4770
|
let t = e.trim();
|
|
4747
4771
|
if (t.length == 0) return "empty";
|
|
4748
4772
|
if (t.length > 80) return "tooLong";
|
|
@@ -4754,13 +4778,13 @@ function kc(e) {
|
|
|
4754
4778
|
}
|
|
4755
4779
|
//#endregion
|
|
4756
4780
|
//#region src/flow/common/nodeChanges.ts
|
|
4757
|
-
var
|
|
4758
|
-
function
|
|
4781
|
+
var Nc = "export default async function (inputs, context) {\n return { result: inputs.value }\n}\n";
|
|
4782
|
+
function Pc(e, t, n, r = void 0, i = {
|
|
4759
4783
|
inputs: [{
|
|
4760
4784
|
handle: "value",
|
|
4761
|
-
jsonSchema: {},
|
|
4785
|
+
jsonSchema: { type: "string" },
|
|
4762
4786
|
nullable: !0,
|
|
4763
|
-
value:
|
|
4787
|
+
value: "foo"
|
|
4764
4788
|
}],
|
|
4765
4789
|
outputs: [{
|
|
4766
4790
|
handle: "result",
|
|
@@ -4773,7 +4797,7 @@ function jc(e, t, n, r = void 0, i = {
|
|
|
4773
4797
|
module: {
|
|
4774
4798
|
...r ?? {
|
|
4775
4799
|
imports: [],
|
|
4776
|
-
source:
|
|
4800
|
+
source: Nc
|
|
4777
4801
|
},
|
|
4778
4802
|
name: n
|
|
4779
4803
|
},
|
|
@@ -4781,7 +4805,7 @@ function jc(e, t, n, r = void 0, i = {
|
|
|
4781
4805
|
}, {
|
|
4782
4806
|
kind: "graph.node.create",
|
|
4783
4807
|
node: {
|
|
4784
|
-
inputs:
|
|
4808
|
+
inputs: Uc(i.inputs),
|
|
4785
4809
|
kind: "task",
|
|
4786
4810
|
name: n,
|
|
4787
4811
|
task: {
|
|
@@ -4796,7 +4820,7 @@ function jc(e, t, n, r = void 0, i = {
|
|
|
4796
4820
|
target: e
|
|
4797
4821
|
}];
|
|
4798
4822
|
}
|
|
4799
|
-
function
|
|
4823
|
+
function Fc(e, t, n) {
|
|
4800
4824
|
return [{
|
|
4801
4825
|
kind: "task.create",
|
|
4802
4826
|
task: n,
|
|
@@ -4804,7 +4828,7 @@ function Mc(e, t, n) {
|
|
|
4804
4828
|
}, {
|
|
4805
4829
|
kind: "graph.node.create",
|
|
4806
4830
|
node: {
|
|
4807
|
-
inputs:
|
|
4831
|
+
inputs: Uc(n.inputs),
|
|
4808
4832
|
kind: "task",
|
|
4809
4833
|
name: n.name,
|
|
4810
4834
|
taskId: t.taskId
|
|
@@ -4813,9 +4837,9 @@ function Mc(e, t, n) {
|
|
|
4813
4837
|
target: e
|
|
4814
4838
|
}];
|
|
4815
4839
|
}
|
|
4816
|
-
function
|
|
4840
|
+
function Ic(e, t, n, r, i, a = {}) {
|
|
4817
4841
|
let o = a.inputs ?? {};
|
|
4818
|
-
return
|
|
4842
|
+
return Fc(e, t, {
|
|
4819
4843
|
executor: {
|
|
4820
4844
|
kind: "llm",
|
|
4821
4845
|
mode: r
|
|
@@ -4828,13 +4852,13 @@ function Nc(e, t, n, r, i, a = {}) {
|
|
|
4828
4852
|
type: "array"
|
|
4829
4853
|
},
|
|
4830
4854
|
nullable: !0,
|
|
4831
|
-
value:
|
|
4855
|
+
value: Wc(o, "messages", null)
|
|
4832
4856
|
},
|
|
4833
4857
|
{
|
|
4834
4858
|
handle: "input",
|
|
4835
4859
|
jsonSchema: { type: "string" },
|
|
4836
4860
|
nullable: !1,
|
|
4837
|
-
value:
|
|
4861
|
+
value: Wc(o, "input", "Alex")
|
|
4838
4862
|
},
|
|
4839
4863
|
{
|
|
4840
4864
|
handle: "template",
|
|
@@ -4844,7 +4868,7 @@ function Nc(e, t, n, r, i, a = {}) {
|
|
|
4844
4868
|
type: "array"
|
|
4845
4869
|
},
|
|
4846
4870
|
nullable: !1,
|
|
4847
|
-
value:
|
|
4871
|
+
value: Wc(o, "template", [{
|
|
4848
4872
|
content: "Hello, I'm {{input}}",
|
|
4849
4873
|
role: "user"
|
|
4850
4874
|
}])
|
|
@@ -4853,7 +4877,7 @@ function Nc(e, t, n, r, i, a = {}) {
|
|
|
4853
4877
|
handle: "model",
|
|
4854
4878
|
jsonSchema: { type: "object" },
|
|
4855
4879
|
nullable: !1,
|
|
4856
|
-
value:
|
|
4880
|
+
value: Wc(o, "model", { model: "deepseek-v4-flash" })
|
|
4857
4881
|
}
|
|
4858
4882
|
],
|
|
4859
4883
|
name: n,
|
|
@@ -4866,29 +4890,20 @@ function Nc(e, t, n, r, i, a = {}) {
|
|
|
4866
4890
|
}]
|
|
4867
4891
|
});
|
|
4868
4892
|
}
|
|
4869
|
-
function
|
|
4893
|
+
function Lc(e, t, n) {
|
|
4870
4894
|
return [{
|
|
4871
4895
|
kind: "graph.node.create",
|
|
4872
4896
|
node: {
|
|
4873
4897
|
cases: [{
|
|
4874
|
-
expressions: [{
|
|
4875
|
-
|
|
4876
|
-
operator: "
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4898
|
+
groups: [{ expressions: [{
|
|
4899
|
+
left: { kind: "value" },
|
|
4900
|
+
operator: "==",
|
|
4901
|
+
right: { kind: "value" }
|
|
4902
|
+
}] }],
|
|
4903
|
+
output: "case"
|
|
4880
4904
|
}],
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
handle: "value",
|
|
4884
|
-
jsonSchema: {},
|
|
4885
|
-
nullable: !0,
|
|
4886
|
-
value: null
|
|
4887
|
-
},
|
|
4888
|
-
inputs: { value: {
|
|
4889
|
-
kind: "value",
|
|
4890
|
-
value: null
|
|
4891
|
-
} },
|
|
4905
|
+
matchMode: "first",
|
|
4906
|
+
inputs: {},
|
|
4892
4907
|
kind: "condition",
|
|
4893
4908
|
name: n
|
|
4894
4909
|
},
|
|
@@ -4896,7 +4911,7 @@ function Pc(e, t, n) {
|
|
|
4896
4911
|
target: e
|
|
4897
4912
|
}];
|
|
4898
4913
|
}
|
|
4899
|
-
function
|
|
4914
|
+
function Rc(e, t, n) {
|
|
4900
4915
|
return [{
|
|
4901
4916
|
kind: "graph.node.create",
|
|
4902
4917
|
node: {
|
|
@@ -4914,7 +4929,7 @@ function Fc(e, t, n) {
|
|
|
4914
4929
|
target: e
|
|
4915
4930
|
}];
|
|
4916
4931
|
}
|
|
4917
|
-
function
|
|
4932
|
+
function zc(e, t, n) {
|
|
4918
4933
|
return [{
|
|
4919
4934
|
kind: "graph.node.create",
|
|
4920
4935
|
node: {
|
|
@@ -4928,7 +4943,7 @@ function Ic(e, t, n) {
|
|
|
4928
4943
|
target: e
|
|
4929
4944
|
}];
|
|
4930
4945
|
}
|
|
4931
|
-
function
|
|
4946
|
+
function Bc(e, t, n) {
|
|
4932
4947
|
return [{
|
|
4933
4948
|
kind: "graph.node.create",
|
|
4934
4949
|
node: {
|
|
@@ -4942,7 +4957,7 @@ function Lc(e, t, n) {
|
|
|
4942
4957
|
target: e
|
|
4943
4958
|
}];
|
|
4944
4959
|
}
|
|
4945
|
-
function
|
|
4960
|
+
function Vc(e, t, n) {
|
|
4946
4961
|
return [{
|
|
4947
4962
|
kind: "graph.node.create",
|
|
4948
4963
|
node: n,
|
|
@@ -4950,10 +4965,10 @@ function Rc(e, t, n) {
|
|
|
4950
4965
|
target: e
|
|
4951
4966
|
}];
|
|
4952
4967
|
}
|
|
4953
|
-
function
|
|
4968
|
+
function Hc(e, t, n, r) {
|
|
4954
4969
|
let i = r.name ?? n.displayName, a = n.type == "poll" ? {
|
|
4955
4970
|
bindingId: t.bindingId,
|
|
4956
|
-
config: r.config,
|
|
4971
|
+
config: qs(r.config),
|
|
4957
4972
|
definition: n,
|
|
4958
4973
|
kind: "poll",
|
|
4959
4974
|
name: i,
|
|
@@ -4964,7 +4979,7 @@ function zc(e, t, n, r) {
|
|
|
4964
4979
|
}]
|
|
4965
4980
|
} : {
|
|
4966
4981
|
bindingId: t.bindingId,
|
|
4967
|
-
config: r.config,
|
|
4982
|
+
config: qs(r.config),
|
|
4968
4983
|
definition: n,
|
|
4969
4984
|
kind: "integration",
|
|
4970
4985
|
name: i
|
|
@@ -4983,74 +4998,74 @@ function zc(e, t, n, r) {
|
|
|
4983
4998
|
target: e
|
|
4984
4999
|
}];
|
|
4985
5000
|
}
|
|
4986
|
-
function
|
|
5001
|
+
function Uc(e) {
|
|
4987
5002
|
return Object.fromEntries(e.flatMap((e) => "handle" in e && Object.hasOwn(e, "value") ? [[e.handle, {
|
|
4988
5003
|
kind: "value",
|
|
4989
5004
|
value: e.value
|
|
4990
5005
|
}]] : []));
|
|
4991
5006
|
}
|
|
4992
|
-
function
|
|
5007
|
+
function Wc(e, t, n) {
|
|
4993
5008
|
return e != null && Object.hasOwn(e, t) ? e[t] : n;
|
|
4994
5009
|
}
|
|
4995
5010
|
//#endregion
|
|
4996
5011
|
//#region src/control/common/draftOperations.ts
|
|
4997
|
-
var J =
|
|
5012
|
+
var J = j().min(1), Gc = Gs(), Kc = R({
|
|
4998
5013
|
kind: H("graph.trigger.create"),
|
|
4999
5014
|
nodeId: J,
|
|
5000
5015
|
bindingId: J,
|
|
5001
5016
|
key: J,
|
|
5002
5017
|
connectionId: J.optional(),
|
|
5003
5018
|
name: J.optional(),
|
|
5004
|
-
config: B(J,
|
|
5005
|
-
schedule:
|
|
5019
|
+
config: B(J, Gc),
|
|
5020
|
+
schedule: Ys.readonly().optional()
|
|
5006
5021
|
});
|
|
5007
|
-
function
|
|
5008
|
-
return
|
|
5009
|
-
let { kind: n } =
|
|
5010
|
-
return n == "graph.trigger.create" ?
|
|
5022
|
+
function qc(e) {
|
|
5023
|
+
return Js(e), I(ls()).min(1).parse(e).map((e, t) => {
|
|
5024
|
+
let { kind: n } = kc(e, t, L({ kind: J }).parse);
|
|
5025
|
+
return n == "graph.trigger.create" ? kc(e, t, Kc.parse) : Ac(e, t);
|
|
5011
5026
|
});
|
|
5012
5027
|
}
|
|
5013
|
-
function
|
|
5014
|
-
if (e != null && e != "graph.trigger.create") return
|
|
5015
|
-
let t =
|
|
5028
|
+
function Jc(e) {
|
|
5029
|
+
if (e != null && e != "graph.trigger.create") return jc(e);
|
|
5030
|
+
let t = po(Kc);
|
|
5016
5031
|
if (e == "graph.trigger.create") return t;
|
|
5017
|
-
let n =
|
|
5032
|
+
let n = jc();
|
|
5018
5033
|
return {
|
|
5019
5034
|
...n,
|
|
5020
5035
|
items: { anyOf: [n.items, t] }
|
|
5021
5036
|
};
|
|
5022
5037
|
}
|
|
5023
|
-
function
|
|
5038
|
+
function Yc(e, t) {
|
|
5024
5039
|
return e.flatMap((e) => {
|
|
5025
5040
|
if (e.kind != "graph.trigger.create") return [e];
|
|
5026
5041
|
let n = t(e.key);
|
|
5027
5042
|
if (n.type != "poll" && e.schedule != null) throw Error("Only Poll triggers accept a schedule.");
|
|
5028
|
-
return
|
|
5043
|
+
return Hc({ kind: "flow" }, e, n, e);
|
|
5029
5044
|
});
|
|
5030
5045
|
}
|
|
5031
5046
|
//#endregion
|
|
5032
5047
|
//#region src/control/common/eventSourceSchemas.ts
|
|
5033
|
-
var
|
|
5048
|
+
var Xc = j().min(1).max(256), Zc = j().regex(/^[a-z][a-z0-9_.]{0,127}$/), Qc = j().trim().min(1).max(128), $c = j().min(1).max(256), el = R({
|
|
5034
5049
|
version: H(1),
|
|
5035
|
-
name:
|
|
5036
|
-
connectionId:
|
|
5037
|
-
teamId:
|
|
5038
|
-
verificationToken:
|
|
5039
|
-
encryptKey:
|
|
5040
|
-
eventTypes: I(
|
|
5050
|
+
name: Qc,
|
|
5051
|
+
connectionId: Xc,
|
|
5052
|
+
teamId: Xc.nullable(),
|
|
5053
|
+
verificationToken: $c,
|
|
5054
|
+
encryptKey: $c,
|
|
5055
|
+
eventTypes: I(Zc).min(1).max(200).refine((e) => new Set(e).size == e.length),
|
|
5041
5056
|
manageSubscriptions: F()
|
|
5042
|
-
}),
|
|
5057
|
+
}), tl = R({
|
|
5043
5058
|
version: H(1),
|
|
5044
|
-
expectedRevision:
|
|
5045
|
-
name:
|
|
5059
|
+
expectedRevision: P().positive(),
|
|
5060
|
+
name: Qc,
|
|
5046
5061
|
enabled: F(),
|
|
5047
|
-
eventTypes: I(
|
|
5048
|
-
verificationToken:
|
|
5049
|
-
encryptKey:
|
|
5050
|
-
}),
|
|
5062
|
+
eventTypes: I(Zc).min(1).max(200).refine((e) => new Set(e).size == e.length),
|
|
5063
|
+
verificationToken: $c.optional(),
|
|
5064
|
+
encryptKey: $c.optional()
|
|
5065
|
+
}), nl = R({
|
|
5051
5066
|
version: H(1),
|
|
5052
|
-
expectedRevision:
|
|
5053
|
-
}), Y = { kind: "flow" },
|
|
5067
|
+
expectedRevision: P().positive()
|
|
5068
|
+
}), Y = { kind: "flow" }, rl = {
|
|
5054
5069
|
manual: "A Manual start node.",
|
|
5055
5070
|
webhook: "A Webhook start node.",
|
|
5056
5071
|
cron: "An hourly scheduled start node.",
|
|
@@ -5066,28 +5081,28 @@ var qc = M().min(1).max(256), Jc = M().regex(/^[a-z][a-z0-9_.]{0,127}$/), Yc = M
|
|
|
5066
5081
|
"llm-chat": "An LLM chat Task and its node; configure a model available in the deployment.",
|
|
5067
5082
|
"llm-json": "An LLM JSON Task and its node; configure a model available in the deployment.",
|
|
5068
5083
|
"poll-notification": "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports."
|
|
5069
|
-
},
|
|
5084
|
+
}, il = Object.keys(rl).map((e) => ({
|
|
5070
5085
|
name: e,
|
|
5071
|
-
description:
|
|
5086
|
+
description: rl[e]
|
|
5072
5087
|
}));
|
|
5073
|
-
function
|
|
5088
|
+
function al(e) {
|
|
5074
5089
|
let t;
|
|
5075
5090
|
switch (e) {
|
|
5076
5091
|
case "manual":
|
|
5077
|
-
t =
|
|
5092
|
+
t = Vc(Y, "start", {
|
|
5078
5093
|
kind: "manual",
|
|
5079
5094
|
name: "Start"
|
|
5080
5095
|
});
|
|
5081
5096
|
break;
|
|
5082
5097
|
case "webhook":
|
|
5083
|
-
t =
|
|
5098
|
+
t = Vc(Y, "start", {
|
|
5084
5099
|
kind: "webhook",
|
|
5085
5100
|
name: "Webhook",
|
|
5086
5101
|
bodyFields: []
|
|
5087
5102
|
});
|
|
5088
5103
|
break;
|
|
5089
5104
|
case "cron":
|
|
5090
|
-
t =
|
|
5105
|
+
t = Vc(Y, "start", {
|
|
5091
5106
|
kind: "cron",
|
|
5092
5107
|
name: "Schedule",
|
|
5093
5108
|
cronTimes: [{
|
|
@@ -5123,7 +5138,7 @@ function nl(e) {
|
|
|
5123
5138
|
}];
|
|
5124
5139
|
break;
|
|
5125
5140
|
case "agent":
|
|
5126
|
-
t =
|
|
5141
|
+
t = Fc(Y, {
|
|
5127
5142
|
nodeId: "agent",
|
|
5128
5143
|
taskId: "agent-task"
|
|
5129
5144
|
}, {
|
|
@@ -5154,7 +5169,7 @@ function nl(e) {
|
|
|
5154
5169
|
});
|
|
5155
5170
|
break;
|
|
5156
5171
|
case "connector":
|
|
5157
|
-
t =
|
|
5172
|
+
t = Fc(Y, {
|
|
5158
5173
|
nodeId: "notify",
|
|
5159
5174
|
taskId: "notify-task"
|
|
5160
5175
|
}, {
|
|
@@ -5174,25 +5189,21 @@ function nl(e) {
|
|
|
5174
5189
|
});
|
|
5175
5190
|
break;
|
|
5176
5191
|
case "code":
|
|
5177
|
-
t =
|
|
5192
|
+
t = Pc(Y, {
|
|
5178
5193
|
nodeId: "format",
|
|
5179
5194
|
moduleId: "format-module"
|
|
5180
5195
|
}, "Format", {
|
|
5181
5196
|
imports: [],
|
|
5182
|
-
source: "export default async function (inputs) { return { text: inputs.
|
|
5197
|
+
source: "export default async function (inputs) { return { text: inputs.events.map(event => `${event.sender}: ${event.subject}`).join(\"\\n\") } }"
|
|
5183
5198
|
}, {
|
|
5184
5199
|
inputs: [{
|
|
5185
|
-
handle: "
|
|
5200
|
+
handle: "events",
|
|
5186
5201
|
jsonSchema: {
|
|
5187
|
-
type: "
|
|
5188
|
-
|
|
5189
|
-
type: "array",
|
|
5190
|
-
items: { type: "object" }
|
|
5191
|
-
} },
|
|
5192
|
-
required: ["events"]
|
|
5202
|
+
type: "array",
|
|
5203
|
+
items: { type: "object" }
|
|
5193
5204
|
},
|
|
5194
5205
|
nullable: !1,
|
|
5195
|
-
value:
|
|
5206
|
+
value: []
|
|
5196
5207
|
}],
|
|
5197
5208
|
outputs: [{
|
|
5198
5209
|
handle: "text",
|
|
@@ -5202,29 +5213,51 @@ function nl(e) {
|
|
|
5202
5213
|
});
|
|
5203
5214
|
break;
|
|
5204
5215
|
case "condition":
|
|
5205
|
-
t =
|
|
5216
|
+
t = [
|
|
5217
|
+
...Lc(Y, "condition", "Condition"),
|
|
5218
|
+
{
|
|
5219
|
+
kind: "graph.node.input.set",
|
|
5220
|
+
target: Y,
|
|
5221
|
+
nodeId: "condition",
|
|
5222
|
+
handle: "0/0/0/left",
|
|
5223
|
+
value: {
|
|
5224
|
+
kind: "value",
|
|
5225
|
+
value: 100
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
{
|
|
5229
|
+
kind: "graph.node.input.set",
|
|
5230
|
+
target: Y,
|
|
5231
|
+
nodeId: "condition",
|
|
5232
|
+
handle: "0/0/0/right",
|
|
5233
|
+
value: {
|
|
5234
|
+
kind: "value",
|
|
5235
|
+
value: 100
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
];
|
|
5206
5239
|
break;
|
|
5207
5240
|
case "value":
|
|
5208
|
-
t =
|
|
5241
|
+
t = Rc(Y, "value", "Value");
|
|
5209
5242
|
break;
|
|
5210
5243
|
case "approval":
|
|
5211
|
-
t =
|
|
5244
|
+
t = Bc(Y, "approval", "Approve?");
|
|
5212
5245
|
break;
|
|
5213
5246
|
case "wait":
|
|
5214
|
-
t =
|
|
5247
|
+
t = zc(Y, "wait", "Continue?");
|
|
5215
5248
|
break;
|
|
5216
5249
|
case "llm-chat":
|
|
5217
5250
|
case "llm-json":
|
|
5218
|
-
t =
|
|
5251
|
+
t = Ic(Y, {
|
|
5219
5252
|
nodeId: "llm",
|
|
5220
5253
|
taskId: "llm-task"
|
|
5221
5254
|
}, "LLM", e == "llm-chat" ? "chat" : "json", "Generated response.");
|
|
5222
5255
|
break;
|
|
5223
5256
|
case "poll-notification":
|
|
5224
5257
|
t = [
|
|
5225
|
-
...
|
|
5226
|
-
...
|
|
5227
|
-
...
|
|
5258
|
+
...al("poll").operations,
|
|
5259
|
+
...al("code").operations,
|
|
5260
|
+
...al("connector").operations,
|
|
5228
5261
|
{
|
|
5229
5262
|
kind: "graph.edge.connect",
|
|
5230
5263
|
target: Y,
|
|
@@ -5245,17 +5278,17 @@ function nl(e) {
|
|
|
5245
5278
|
kind: "graph.node.input.set",
|
|
5246
5279
|
target: Y,
|
|
5247
5280
|
nodeId: "format",
|
|
5248
|
-
handle: "
|
|
5281
|
+
handle: "events",
|
|
5249
5282
|
before: {
|
|
5250
5283
|
kind: "value",
|
|
5251
|
-
value:
|
|
5284
|
+
value: []
|
|
5252
5285
|
},
|
|
5253
5286
|
value: {
|
|
5254
5287
|
kind: "sources",
|
|
5255
5288
|
sources: [{
|
|
5256
5289
|
kind: "node",
|
|
5257
5290
|
nodeId: "mail",
|
|
5258
|
-
output: "
|
|
5291
|
+
output: "events"
|
|
5259
5292
|
}]
|
|
5260
5293
|
}
|
|
5261
5294
|
},
|
|
@@ -5288,24 +5321,24 @@ function nl(e) {
|
|
|
5288
5321
|
}
|
|
5289
5322
|
//#endregion
|
|
5290
5323
|
//#region src/control/common/requests.ts
|
|
5291
|
-
var
|
|
5324
|
+
var ol = R({ comment: Ks }), sl = Gs(), X = j().min(1), Z = H(1), cl = X.refine((e) => e == e.trim() && Mc(e) == null, "Flow name is invalid."), ll = B(j(), B(j(), sl)), ul = R({
|
|
5292
5325
|
nodeId: X,
|
|
5293
|
-
outputs: B(
|
|
5326
|
+
outputs: B(j(), sl)
|
|
5294
5327
|
}), Q = {
|
|
5295
|
-
createEventSource:
|
|
5296
|
-
updateEventSource:
|
|
5297
|
-
eventSourceRevision:
|
|
5328
|
+
createEventSource: el,
|
|
5329
|
+
updateEventSource: tl,
|
|
5330
|
+
eventSourceRevision: nl,
|
|
5298
5331
|
createFlow: R({
|
|
5299
|
-
name:
|
|
5332
|
+
name: cl,
|
|
5300
5333
|
version: Z
|
|
5301
5334
|
}),
|
|
5302
5335
|
renameFlow: R({
|
|
5303
|
-
name:
|
|
5336
|
+
name: cl,
|
|
5304
5337
|
version: Z
|
|
5305
5338
|
}),
|
|
5306
5339
|
changeDraft: R({
|
|
5307
5340
|
expectedRevisionId: X,
|
|
5308
|
-
operations: I(
|
|
5341
|
+
operations: I(sl).min(1),
|
|
5309
5342
|
version: Z
|
|
5310
5343
|
}),
|
|
5311
5344
|
repairDraft: R({
|
|
@@ -5318,8 +5351,8 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
|
|
|
5318
5351
|
version: Z
|
|
5319
5352
|
}),
|
|
5320
5353
|
updatePresentation: R({
|
|
5321
|
-
expectedRevision:
|
|
5322
|
-
value: B(
|
|
5354
|
+
expectedRevision: P().positive(),
|
|
5355
|
+
value: B(j(), sl),
|
|
5323
5356
|
version: Z
|
|
5324
5357
|
}),
|
|
5325
5358
|
checkFlow: R({
|
|
@@ -5337,14 +5370,14 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
|
|
|
5337
5370
|
}),
|
|
5338
5371
|
createDraftRun: R({
|
|
5339
5372
|
engineContract: X,
|
|
5340
|
-
inputs:
|
|
5341
|
-
trigger:
|
|
5373
|
+
inputs: ll,
|
|
5374
|
+
trigger: ul,
|
|
5342
5375
|
version: H(2)
|
|
5343
5376
|
}),
|
|
5344
5377
|
createLiveRun: R({
|
|
5345
5378
|
publicationId: X,
|
|
5346
|
-
inputs:
|
|
5347
|
-
trigger:
|
|
5379
|
+
inputs: ll,
|
|
5380
|
+
trigger: ul,
|
|
5348
5381
|
version: H(2)
|
|
5349
5382
|
}),
|
|
5350
5383
|
resolveWait: R({
|
|
@@ -5356,13 +5389,23 @@ var rl = R({ comment: Ks }), il = Gs(), X = M().min(1), Z = H(1), al = X.refine(
|
|
|
5356
5389
|
comment: Ks,
|
|
5357
5390
|
version: Z
|
|
5358
5391
|
}),
|
|
5359
|
-
putVariable: R({ value:
|
|
5392
|
+
putVariable: R({ value: j().refine((e) => new TextEncoder().encode(e).byteLength <= 65536, "Environment variable value is too large.") }),
|
|
5393
|
+
addProviderAccessBinding: R({
|
|
5394
|
+
accessBindingId: X,
|
|
5395
|
+
expectedAccessRevision: P().nonnegative(),
|
|
5396
|
+
version: Z
|
|
5397
|
+
}),
|
|
5398
|
+
removeProviderAccessBinding: R({
|
|
5399
|
+
accessBindingId: X,
|
|
5400
|
+
expectedAccessRevision: P().nonnegative(),
|
|
5401
|
+
version: Z
|
|
5402
|
+
}),
|
|
5360
5403
|
versionOnly: R({ version: Z })
|
|
5361
5404
|
};
|
|
5362
5405
|
function $(e) {
|
|
5363
5406
|
return (t) => e.parse(t);
|
|
5364
5407
|
}
|
|
5365
|
-
var
|
|
5408
|
+
var dl = {
|
|
5366
5409
|
createEventSource: $(Q.createEventSource),
|
|
5367
5410
|
updateEventSource: $(Q.updateEventSource),
|
|
5368
5411
|
eventSourceRevision: $(Q.eventSourceRevision),
|
|
@@ -5372,7 +5415,7 @@ var cl = {
|
|
|
5372
5415
|
let t = Q.changeDraft.parse(e);
|
|
5373
5416
|
return {
|
|
5374
5417
|
...t,
|
|
5375
|
-
operations:
|
|
5418
|
+
operations: qc(t.operations)
|
|
5376
5419
|
};
|
|
5377
5420
|
},
|
|
5378
5421
|
repairDraft: $(Q.repairDraft),
|
|
@@ -5385,17 +5428,19 @@ var cl = {
|
|
|
5385
5428
|
createLiveRun: $(Q.createLiveRun),
|
|
5386
5429
|
resolveWait: $(Q.resolveWait),
|
|
5387
5430
|
putVariable: $(Q.putVariable),
|
|
5431
|
+
addProviderAccessBinding: $(Q.addProviderAccessBinding),
|
|
5432
|
+
removeProviderAccessBinding: $(Q.removeProviderAccessBinding),
|
|
5388
5433
|
versionOnly: $(Q.versionOnly)
|
|
5389
5434
|
};
|
|
5390
|
-
function
|
|
5391
|
-
let t =
|
|
5435
|
+
function fl(e) {
|
|
5436
|
+
let t = po(Q[e]);
|
|
5392
5437
|
return e == "changeDraft" ? {
|
|
5393
5438
|
...t,
|
|
5394
5439
|
properties: {
|
|
5395
5440
|
...t.properties,
|
|
5396
|
-
operations:
|
|
5441
|
+
operations: Jc()
|
|
5397
5442
|
}
|
|
5398
5443
|
} : t;
|
|
5399
5444
|
}
|
|
5400
5445
|
//#endregion
|
|
5401
|
-
export {
|
|
5446
|
+
export { al as authoringExample, il as authoringExamples, fl as controlRequestSchema, dl as controlRequests, qc as decodeDraftOperations, Jc as draftOperationsSchema, Yc as resolveDraftOperations, ol as waitActionBodySchema };
|