twenty-client-sdk 2.41.0 → 2.42.0
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/{application-BeF7traE.mjs → application-LO_ska5m.mjs} +506 -491
- package/dist/application-pbKrOsZ8.js +20 -0
- package/dist/generate/twenty-client-template.d.ts +15 -7
- package/dist/generate.cjs +197 -95
- package/dist/generate.mjs +3 -3
- package/dist/metadata/generated/index.d.ts +15 -7
- package/dist/metadata/generated/schema.d.ts +429 -199
- package/dist/metadata/generated/types.d.ts +184 -82
- package/dist/metadata.cjs +5 -3
- package/dist/metadata.mjs +2372 -2213
- package/dist/rest.cjs +1 -1
- package/dist/rest.mjs +1 -1
- package/package.json +1 -1
- package/dist/application-DxQ8pkY6.js +0 -20
|
@@ -491,7 +491,7 @@ var Pe = (e) => (t, n, r, i) => {
|
|
|
491
491
|
throw he(t, i?.callee), t;
|
|
492
492
|
}
|
|
493
493
|
return o.value;
|
|
494
|
-
},
|
|
494
|
+
}, Fe = (e) => async (t, n, r, i) => {
|
|
495
495
|
let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
|
|
496
496
|
value: n,
|
|
497
497
|
issues: []
|
|
@@ -501,7 +501,7 @@ var Pe = (e) => (t, n, r, i) => {
|
|
|
501
501
|
throw he(t, i?.callee), t;
|
|
502
502
|
}
|
|
503
503
|
return o.value;
|
|
504
|
-
},
|
|
504
|
+
}, j = (e) => (t, n, r) => {
|
|
505
505
|
let i = r ? {
|
|
506
506
|
...r,
|
|
507
507
|
async: !1
|
|
@@ -517,7 +517,7 @@ var Pe = (e) => (t, n, r, i) => {
|
|
|
517
517
|
success: !0,
|
|
518
518
|
data: a.value
|
|
519
519
|
};
|
|
520
|
-
},
|
|
520
|
+
}, Ie = /* @__PURE__*/ j(je), M = (e) => async (t, n, r) => {
|
|
521
521
|
let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
|
|
522
522
|
value: n,
|
|
523
523
|
issues: []
|
|
@@ -529,45 +529,45 @@ var Pe = (e) => (t, n, r, i) => {
|
|
|
529
529
|
success: !0,
|
|
530
530
|
data: a.value
|
|
531
531
|
};
|
|
532
|
-
},
|
|
532
|
+
}, Le = /* @__PURE__*/ M(je), Re = (e) => (t, n, r) => {
|
|
533
533
|
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
534
534
|
return Pe(e)(t, n, i);
|
|
535
|
-
},
|
|
535
|
+
}, ze = (e) => (t, n, r) => Pe(e)(t, n, r), Be = (e) => async (t, n, r) => {
|
|
536
|
+
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
537
|
+
return Fe(e)(t, n, i);
|
|
538
|
+
}, Ve = (e) => async (t, n, r) => Fe(e)(t, n, r), He = (e) => (t, n, r) => {
|
|
536
539
|
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
537
540
|
return j(e)(t, n, i);
|
|
538
|
-
},
|
|
541
|
+
}, Ue = (e) => (t, n, r) => j(e)(t, n, r), We = (e) => async (t, n, r) => {
|
|
539
542
|
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
540
543
|
return M(e)(t, n, i);
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
return
|
|
544
|
-
}, We = (e) => async (t, n, r) => N(e)(t, n, r), Ge = /^[cC][^\s-]{8,}$/, Ke = /^[0-9a-z]+$/, qe = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Je = /^[0-9a-vA-V]{20}$/, Ye = /^[A-Za-z0-9]{27}$/, Xe = /^[a-zA-Z0-9_-]{21}$/, Ze = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Qe = /^([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})$/, $e = (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)$/, et = /^(?!\.)(?!.*\.\.)([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})+$";
|
|
545
|
-
function nt() {
|
|
546
|
-
return new RegExp(tt, "u");
|
|
544
|
+
}, Ge = (e) => async (t, n, r) => M(e)(t, n, r), Ke = /^[cC][^\s-]{8,}$/, qe = /^[0-9a-z]+$/, Je = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ye = /^[0-9a-vA-V]{20}$/, Xe = /^[A-Za-z0-9]{27}$/, Ze = /^[a-zA-Z0-9_-]{21}$/, Qe = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, $e = /^([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})$/, et = (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)$/, tt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, nt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
545
|
+
function rt() {
|
|
546
|
+
return new RegExp(nt, "u");
|
|
547
547
|
}
|
|
548
|
-
var
|
|
549
|
-
function
|
|
548
|
+
var it = /^(?:(?: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])$/, 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}|:))$/, ot = /^((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])$/, st = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, ct = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lt = /^[A-Za-z0-9_-]*$/, ut = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, dt = /^\+(?:[0-9]){6,14}[0-9]$/, 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])))", pt = /*@__PURE__*/ RegExp(`^${ft}$`);
|
|
549
|
+
function mt(e) {
|
|
550
550
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
551
551
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
552
552
|
}
|
|
553
|
-
function mt(e) {
|
|
554
|
-
return RegExp(`^${pt(e)}$`);
|
|
555
|
-
}
|
|
556
553
|
function ht(e) {
|
|
557
|
-
|
|
554
|
+
return RegExp(`^${mt(e)}$`);
|
|
555
|
+
}
|
|
556
|
+
function gt(e) {
|
|
557
|
+
let t = mt({ precision: e.precision }), n = ["Z"];
|
|
558
558
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
559
559
|
let r = `${t}(?:${n.join("|")})`;
|
|
560
|
-
return RegExp(`^${
|
|
560
|
+
return RegExp(`^${ft}T(?:${r})$`);
|
|
561
561
|
}
|
|
562
|
-
var
|
|
562
|
+
var _t = (e) => {
|
|
563
563
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
564
564
|
return RegExp(`^${t}$`);
|
|
565
|
-
},
|
|
565
|
+
}, vt = /^[^A-Z]*$/, yt = /^[^a-z]*$/, N = /*@__PURE__*/ h("$ZodCheck", (e, t) => {
|
|
566
566
|
var n;
|
|
567
567
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
568
|
-
}),
|
|
568
|
+
}), bt = /*@__PURE__*/ h("$ZodCheckMaxLength", (e, t) => {
|
|
569
569
|
var n;
|
|
570
|
-
|
|
570
|
+
N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
571
571
|
let t = e.value;
|
|
572
572
|
return !de(t) && t.length !== void 0;
|
|
573
573
|
}), e._zod.onattach.push((e) => {
|
|
@@ -587,9 +587,9 @@ var gt = (e) => {
|
|
|
587
587
|
continue: !t.abort
|
|
588
588
|
});
|
|
589
589
|
};
|
|
590
|
-
}),
|
|
590
|
+
}), xt = /*@__PURE__*/ h("$ZodCheckMinLength", (e, t) => {
|
|
591
591
|
var n;
|
|
592
|
-
|
|
592
|
+
N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
593
593
|
let t = e.value;
|
|
594
594
|
return !de(t) && t.length !== void 0;
|
|
595
595
|
}), e._zod.onattach.push((e) => {
|
|
@@ -609,9 +609,9 @@ var gt = (e) => {
|
|
|
609
609
|
continue: !t.abort
|
|
610
610
|
});
|
|
611
611
|
};
|
|
612
|
-
}),
|
|
612
|
+
}), St = /*@__PURE__*/ h("$ZodCheckLengthEquals", (e, t) => {
|
|
613
613
|
var n;
|
|
614
|
-
|
|
614
|
+
N.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
615
615
|
let t = e.value;
|
|
616
616
|
return !de(t) && t.length !== void 0;
|
|
617
617
|
}), e._zod.onattach.push((e) => {
|
|
@@ -637,9 +637,9 @@ var gt = (e) => {
|
|
|
637
637
|
continue: !t.abort
|
|
638
638
|
});
|
|
639
639
|
};
|
|
640
|
-
}),
|
|
640
|
+
}), P = /*@__PURE__*/ h("$ZodCheckStringFormat", (e, t) => {
|
|
641
641
|
var n, r;
|
|
642
|
-
|
|
642
|
+
N.init(e, t), e._zod.onattach.push((e) => {
|
|
643
643
|
let n = e._zod.bag;
|
|
644
644
|
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
645
645
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -653,8 +653,8 @@ var gt = (e) => {
|
|
|
653
653
|
continue: !t.abort
|
|
654
654
|
});
|
|
655
655
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
656
|
-
}),
|
|
657
|
-
|
|
656
|
+
}), Ct = /*@__PURE__*/ h("$ZodCheckRegex", (e, t) => {
|
|
657
|
+
P.init(e, t), e._zod.check = (n) => {
|
|
658
658
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
659
659
|
origin: "string",
|
|
660
660
|
code: "invalid_format",
|
|
@@ -665,12 +665,12 @@ var gt = (e) => {
|
|
|
665
665
|
continue: !t.abort
|
|
666
666
|
});
|
|
667
667
|
};
|
|
668
|
-
}),
|
|
669
|
-
t.pattern ??=
|
|
670
|
-
}),
|
|
671
|
-
t.pattern ??=
|
|
672
|
-
}),
|
|
673
|
-
|
|
668
|
+
}), wt = /*@__PURE__*/ h("$ZodCheckLowerCase", (e, t) => {
|
|
669
|
+
t.pattern ??= vt, P.init(e, t);
|
|
670
|
+
}), Tt = /*@__PURE__*/ h("$ZodCheckUpperCase", (e, t) => {
|
|
671
|
+
t.pattern ??= yt, P.init(e, t);
|
|
672
|
+
}), Et = /*@__PURE__*/ h("$ZodCheckIncludes", (e, t) => {
|
|
673
|
+
N.init(e, t);
|
|
674
674
|
let n = w(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
675
675
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
676
676
|
let t = e._zod.bag;
|
|
@@ -686,8 +686,8 @@ var gt = (e) => {
|
|
|
686
686
|
continue: !t.abort
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
}),
|
|
690
|
-
|
|
689
|
+
}), Dt = /*@__PURE__*/ h("$ZodCheckStartsWith", (e, t) => {
|
|
690
|
+
N.init(e, t);
|
|
691
691
|
let n = RegExp(`^${w(t.prefix)}.*`);
|
|
692
692
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
693
693
|
let t = e._zod.bag;
|
|
@@ -703,8 +703,8 @@ var gt = (e) => {
|
|
|
703
703
|
continue: !t.abort
|
|
704
704
|
});
|
|
705
705
|
};
|
|
706
|
-
}),
|
|
707
|
-
|
|
706
|
+
}), Ot = /*@__PURE__*/ h("$ZodCheckEndsWith", (e, t) => {
|
|
707
|
+
N.init(e, t);
|
|
708
708
|
let n = RegExp(`.*${w(t.suffix)}$`);
|
|
709
709
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
710
710
|
let t = e._zod.bag;
|
|
@@ -720,11 +720,11 @@ var gt = (e) => {
|
|
|
720
720
|
continue: !t.abort
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
|
-
}),
|
|
724
|
-
|
|
723
|
+
}), kt = /*@__PURE__*/ h("$ZodCheckOverwrite", (e, t) => {
|
|
724
|
+
N.init(e, t), e._zod.check = (e) => {
|
|
725
725
|
e.value = t.tx(e.value);
|
|
726
726
|
};
|
|
727
|
-
}),
|
|
727
|
+
}), At = class {
|
|
728
728
|
constructor(e = []) {
|
|
729
729
|
this.content = [], this.indent = 0, this && (this.args = e);
|
|
730
730
|
}
|
|
@@ -743,13 +743,13 @@ var gt = (e) => {
|
|
|
743
743
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
744
744
|
return new e(...t, n.join("\n"));
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, jt = {
|
|
747
747
|
major: 4,
|
|
748
748
|
minor: 1,
|
|
749
749
|
patch: 11
|
|
750
|
-
},
|
|
750
|
+
}, F = /*@__PURE__*/ h("$ZodType", (e, t) => {
|
|
751
751
|
var n;
|
|
752
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
752
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = jt;
|
|
753
753
|
let r = [...e._zod.def.checks ?? []];
|
|
754
754
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
755
755
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -806,17 +806,17 @@ var gt = (e) => {
|
|
|
806
806
|
e["~standard"] = {
|
|
807
807
|
validate: (t) => {
|
|
808
808
|
try {
|
|
809
|
-
let n =
|
|
809
|
+
let n = Ie(e, t);
|
|
810
810
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
811
811
|
} catch {
|
|
812
|
-
return
|
|
812
|
+
return Le(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
|
|
813
813
|
}
|
|
814
814
|
},
|
|
815
815
|
vendor: "zod",
|
|
816
816
|
version: 1
|
|
817
817
|
};
|
|
818
|
-
}),
|
|
819
|
-
|
|
818
|
+
}), I = /*@__PURE__*/ h("$ZodString", (e, t) => {
|
|
819
|
+
F.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? _t(e._zod.bag), e._zod.parse = (n, r) => {
|
|
820
820
|
if (t.coerce) try {
|
|
821
821
|
n.value = String(n.value);
|
|
822
822
|
} catch {}
|
|
@@ -827,11 +827,11 @@ var gt = (e) => {
|
|
|
827
827
|
inst: e
|
|
828
828
|
}), n;
|
|
829
829
|
};
|
|
830
|
-
}),
|
|
831
|
-
|
|
832
|
-
}),
|
|
833
|
-
t.pattern ??=
|
|
834
|
-
}),
|
|
830
|
+
}), L = /*@__PURE__*/ h("$ZodStringFormat", (e, t) => {
|
|
831
|
+
P.init(e, t), I.init(e, t);
|
|
832
|
+
}), Mt = /*@__PURE__*/ h("$ZodGUID", (e, t) => {
|
|
833
|
+
t.pattern ??= $e, L.init(e, t);
|
|
834
|
+
}), Nt = /*@__PURE__*/ h("$ZodUUID", (e, t) => {
|
|
835
835
|
if (t.version) {
|
|
836
836
|
let e = {
|
|
837
837
|
v1: 1,
|
|
@@ -844,20 +844,20 @@ var gt = (e) => {
|
|
|
844
844
|
v8: 8
|
|
845
845
|
}[t.version];
|
|
846
846
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
847
|
-
t.pattern ??=
|
|
848
|
-
} else t.pattern ??=
|
|
849
|
-
|
|
850
|
-
}),
|
|
851
|
-
t.pattern ??=
|
|
852
|
-
}),
|
|
853
|
-
|
|
847
|
+
t.pattern ??= et(e);
|
|
848
|
+
} else t.pattern ??= et();
|
|
849
|
+
L.init(e, t);
|
|
850
|
+
}), Pt = /*@__PURE__*/ h("$ZodEmail", (e, t) => {
|
|
851
|
+
t.pattern ??= tt, L.init(e, t);
|
|
852
|
+
}), Ft = /*@__PURE__*/ h("$ZodURL", (e, t) => {
|
|
853
|
+
L.init(e, t), e._zod.check = (n) => {
|
|
854
854
|
try {
|
|
855
855
|
let r = n.value.trim(), i = new URL(r);
|
|
856
856
|
t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
|
|
857
857
|
code: "invalid_format",
|
|
858
858
|
format: "url",
|
|
859
859
|
note: "Invalid hostname",
|
|
860
|
-
pattern:
|
|
860
|
+
pattern: ut.source,
|
|
861
861
|
input: n.value,
|
|
862
862
|
inst: e,
|
|
863
863
|
continue: !t.abort
|
|
@@ -881,35 +881,35 @@ var gt = (e) => {
|
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
}),
|
|
885
|
-
t.pattern ??=
|
|
886
|
-
}),
|
|
887
|
-
t.pattern ??=
|
|
888
|
-
}),
|
|
889
|
-
t.pattern ??=
|
|
890
|
-
}),
|
|
891
|
-
t.pattern ??=
|
|
892
|
-
}),
|
|
893
|
-
t.pattern ??=
|
|
894
|
-
}),
|
|
895
|
-
t.pattern ??=
|
|
896
|
-
}),
|
|
897
|
-
t.pattern ??=
|
|
898
|
-
}),
|
|
899
|
-
t.pattern ??=
|
|
900
|
-
}),
|
|
901
|
-
t.pattern ??=
|
|
902
|
-
}),
|
|
903
|
-
t.pattern ??=
|
|
904
|
-
}),
|
|
905
|
-
t.pattern ??=
|
|
906
|
-
}),
|
|
907
|
-
t.pattern ??=
|
|
884
|
+
}), It = /*@__PURE__*/ h("$ZodEmoji", (e, t) => {
|
|
885
|
+
t.pattern ??= rt(), L.init(e, t);
|
|
886
|
+
}), Lt = /*@__PURE__*/ h("$ZodNanoID", (e, t) => {
|
|
887
|
+
t.pattern ??= Ze, L.init(e, t);
|
|
888
|
+
}), Rt = /*@__PURE__*/ h("$ZodCUID", (e, t) => {
|
|
889
|
+
t.pattern ??= Ke, L.init(e, t);
|
|
890
|
+
}), zt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
|
|
891
|
+
t.pattern ??= qe, L.init(e, t);
|
|
892
|
+
}), Bt = /*@__PURE__*/ h("$ZodULID", (e, t) => {
|
|
893
|
+
t.pattern ??= Je, L.init(e, t);
|
|
894
|
+
}), Vt = /*@__PURE__*/ h("$ZodXID", (e, t) => {
|
|
895
|
+
t.pattern ??= Ye, L.init(e, t);
|
|
896
|
+
}), Ht = /*@__PURE__*/ h("$ZodKSUID", (e, t) => {
|
|
897
|
+
t.pattern ??= Xe, L.init(e, t);
|
|
898
|
+
}), Ut = /*@__PURE__*/ h("$ZodISODateTime", (e, t) => {
|
|
899
|
+
t.pattern ??= gt(t), L.init(e, t);
|
|
900
|
+
}), Wt = /*@__PURE__*/ h("$ZodISODate", (e, t) => {
|
|
901
|
+
t.pattern ??= pt, L.init(e, t);
|
|
902
|
+
}), Gt = /*@__PURE__*/ h("$ZodISOTime", (e, t) => {
|
|
903
|
+
t.pattern ??= ht(t), L.init(e, t);
|
|
904
|
+
}), Kt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
|
|
905
|
+
t.pattern ??= Qe, L.init(e, t);
|
|
906
|
+
}), qt = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
|
|
907
|
+
t.pattern ??= it, L.init(e, t), e._zod.onattach.push((e) => {
|
|
908
908
|
let t = e._zod.bag;
|
|
909
909
|
t.format = "ipv4";
|
|
910
910
|
});
|
|
911
|
-
}),
|
|
912
|
-
t.pattern ??=
|
|
911
|
+
}), Jt = /*@__PURE__*/ h("$ZodIPv6", (e, t) => {
|
|
912
|
+
t.pattern ??= at, L.init(e, t), e._zod.onattach.push((e) => {
|
|
913
913
|
let t = e._zod.bag;
|
|
914
914
|
t.format = "ipv6";
|
|
915
915
|
}), e._zod.check = (n) => {
|
|
@@ -925,10 +925,10 @@ var gt = (e) => {
|
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
|
-
}),
|
|
929
|
-
t.pattern ??=
|
|
930
|
-
}),
|
|
931
|
-
t.pattern ??=
|
|
928
|
+
}), Yt = /*@__PURE__*/ h("$ZodCIDRv4", (e, t) => {
|
|
929
|
+
t.pattern ??= ot, L.init(e, t);
|
|
930
|
+
}), Xt = /*@__PURE__*/ h("$ZodCIDRv6", (e, t) => {
|
|
931
|
+
t.pattern ??= st, L.init(e, t), e._zod.check = (n) => {
|
|
932
932
|
let r = n.value.split("/");
|
|
933
933
|
try {
|
|
934
934
|
if (r.length !== 2) throw Error();
|
|
@@ -948,7 +948,7 @@ var gt = (e) => {
|
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
});
|
|
951
|
-
function
|
|
951
|
+
function Zt(e) {
|
|
952
952
|
if (e === "") return !0;
|
|
953
953
|
if (e.length % 4 != 0) return !1;
|
|
954
954
|
try {
|
|
@@ -957,11 +957,11 @@ function Xt(e) {
|
|
|
957
957
|
return !1;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
var
|
|
961
|
-
t.pattern ??=
|
|
960
|
+
var Qt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
|
|
961
|
+
t.pattern ??= ct, L.init(e, t), e._zod.onattach.push((e) => {
|
|
962
962
|
e._zod.bag.contentEncoding = "base64";
|
|
963
963
|
}), e._zod.check = (n) => {
|
|
964
|
-
|
|
964
|
+
Zt(n.value) || n.issues.push({
|
|
965
965
|
code: "invalid_format",
|
|
966
966
|
format: "base64",
|
|
967
967
|
input: n.value,
|
|
@@ -970,16 +970,16 @@ var Zt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
|
|
|
970
970
|
});
|
|
971
971
|
};
|
|
972
972
|
});
|
|
973
|
-
function
|
|
974
|
-
if (!
|
|
973
|
+
function $t(e) {
|
|
974
|
+
if (!lt.test(e)) return !1;
|
|
975
975
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
976
|
-
return
|
|
976
|
+
return Zt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
977
977
|
}
|
|
978
|
-
var
|
|
979
|
-
t.pattern ??=
|
|
978
|
+
var en = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
|
|
979
|
+
t.pattern ??= lt, L.init(e, t), e._zod.onattach.push((e) => {
|
|
980
980
|
e._zod.bag.contentEncoding = "base64url";
|
|
981
981
|
}), e._zod.check = (n) => {
|
|
982
|
-
|
|
982
|
+
$t(n.value) || n.issues.push({
|
|
983
983
|
code: "invalid_format",
|
|
984
984
|
format: "base64url",
|
|
985
985
|
input: n.value,
|
|
@@ -987,10 +987,10 @@ var $t = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
|
|
|
987
987
|
continue: !t.abort
|
|
988
988
|
});
|
|
989
989
|
};
|
|
990
|
-
}),
|
|
991
|
-
t.pattern ??=
|
|
990
|
+
}), tn = /*@__PURE__*/ h("$ZodE164", (e, t) => {
|
|
991
|
+
t.pattern ??= dt, L.init(e, t);
|
|
992
992
|
});
|
|
993
|
-
function
|
|
993
|
+
function nn(e, t = null) {
|
|
994
994
|
try {
|
|
995
995
|
let n = e.split(".");
|
|
996
996
|
if (n.length !== 3) return !1;
|
|
@@ -1002,9 +1002,9 @@ function tn(e, t = null) {
|
|
|
1002
1002
|
return !1;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1007
|
-
|
|
1005
|
+
var rn = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
|
|
1006
|
+
L.init(e, t), e._zod.check = (n) => {
|
|
1007
|
+
nn(n.value, t.alg) || n.issues.push({
|
|
1008
1008
|
code: "invalid_format",
|
|
1009
1009
|
format: "jwt",
|
|
1010
1010
|
input: n.value,
|
|
@@ -1012,21 +1012,21 @@ var nn = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
|
|
|
1012
1012
|
continue: !t.abort
|
|
1013
1013
|
});
|
|
1014
1014
|
};
|
|
1015
|
-
}),
|
|
1016
|
-
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
1015
|
+
}), an = /*@__PURE__*/ h("$ZodUnknown", (e, t) => {
|
|
1016
|
+
F.init(e, t), e._zod.parse = (e) => e;
|
|
1017
|
+
}), on = /*@__PURE__*/ h("$ZodNever", (e, t) => {
|
|
1018
|
+
F.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1019
1019
|
expected: "never",
|
|
1020
1020
|
code: "invalid_type",
|
|
1021
1021
|
input: t.value,
|
|
1022
1022
|
inst: e
|
|
1023
1023
|
}), t);
|
|
1024
1024
|
});
|
|
1025
|
-
function
|
|
1025
|
+
function sn(e, t, n) {
|
|
1026
1026
|
e.issues.length && t.issues.push(...De(n, e.issues)), t.value[n] = e.value;
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1028
|
+
var cn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
|
|
1029
|
+
F.init(e, t), e._zod.parse = (n, r) => {
|
|
1030
1030
|
let i = n.value;
|
|
1031
1031
|
if (!Array.isArray(i)) return n.issues.push({
|
|
1032
1032
|
expected: "array",
|
|
@@ -1041,15 +1041,15 @@ var sn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
|
|
|
1041
1041
|
value: o,
|
|
1042
1042
|
issues: []
|
|
1043
1043
|
}, r);
|
|
1044
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
1044
|
+
s instanceof Promise ? a.push(s.then((t) => sn(t, n, e))) : sn(s, n, e);
|
|
1045
1045
|
}
|
|
1046
1046
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1047
1047
|
};
|
|
1048
1048
|
});
|
|
1049
|
-
function
|
|
1049
|
+
function R(e, t, n, r) {
|
|
1050
1050
|
e.issues.length && t.issues.push(...De(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function ln(e) {
|
|
1053
1053
|
let t = Object.keys(e.shape);
|
|
1054
1054
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
1055
1055
|
let n = ye(e.shape);
|
|
@@ -1061,7 +1061,7 @@ function cn(e) {
|
|
|
1061
1061
|
optionalKeys: new Set(n)
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function un(e, t, n, r, i, a) {
|
|
1065
1065
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type;
|
|
1066
1066
|
for (let i of Object.keys(t)) {
|
|
1067
1067
|
if (s.has(i)) continue;
|
|
@@ -1073,7 +1073,7 @@ function ln(e, t, n, r, i, a) {
|
|
|
1073
1073
|
value: t[i],
|
|
1074
1074
|
issues: []
|
|
1075
1075
|
}, r);
|
|
1076
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1076
|
+
a instanceof Promise ? e.push(a.then((e) => R(e, n, i, t))) : R(a, n, i, t);
|
|
1077
1077
|
}
|
|
1078
1078
|
return o.length && n.issues.push({
|
|
1079
1079
|
code: "unrecognized_keys",
|
|
@@ -1082,15 +1082,15 @@ function ln(e, t, n, r, i, a) {
|
|
|
1082
1082
|
inst: a
|
|
1083
1083
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1084
1084
|
}
|
|
1085
|
-
var
|
|
1086
|
-
if (
|
|
1085
|
+
var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
1086
|
+
if (F.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1087
1087
|
let e = t.shape;
|
|
1088
1088
|
Object.defineProperty(t, "shape", { get: () => {
|
|
1089
1089
|
let n = { ...e };
|
|
1090
1090
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
1091
1091
|
} });
|
|
1092
1092
|
}
|
|
1093
|
-
let n = ue(() =>
|
|
1093
|
+
let n = ue(() => ln(t));
|
|
1094
1094
|
y(e._zod, "propValues", () => {
|
|
1095
1095
|
let e = t.shape, n = {};
|
|
1096
1096
|
for (let t in e) {
|
|
@@ -1119,14 +1119,14 @@ var un = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1119
1119
|
value: s[e],
|
|
1120
1120
|
issues: []
|
|
1121
1121
|
}, o);
|
|
1122
|
-
n instanceof Promise ? c.push(n.then((n) =>
|
|
1122
|
+
n instanceof Promise ? c.push(n.then((n) => R(n, t, e, s))) : R(n, t, e, s);
|
|
1123
1123
|
}
|
|
1124
|
-
return i ?
|
|
1124
|
+
return i ? un(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1125
1125
|
};
|
|
1126
|
-
}),
|
|
1127
|
-
|
|
1128
|
-
let n = e._zod.parse, r = ue(() =>
|
|
1129
|
-
let t = new
|
|
1126
|
+
}), fn = /*@__PURE__*/ h("$ZodObjectJIT", (e, t) => {
|
|
1127
|
+
dn.init(e, t);
|
|
1128
|
+
let n = e._zod.parse, r = ue(() => ln(t)), i = (e) => {
|
|
1129
|
+
let t = new At([
|
|
1130
1130
|
"shape",
|
|
1131
1131
|
"payload",
|
|
1132
1132
|
"ctx"
|
|
@@ -1166,7 +1166,7 @@ var un = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1166
1166
|
e._zod.parse = (d, f) => {
|
|
1167
1167
|
u ??= r.value;
|
|
1168
1168
|
let p = d.value;
|
|
1169
|
-
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ?
|
|
1169
|
+
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? un([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
|
|
1170
1170
|
expected: "object",
|
|
1171
1171
|
code: "invalid_type",
|
|
1172
1172
|
input: p,
|
|
@@ -1174,7 +1174,7 @@ var un = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1174
1174
|
}), d);
|
|
1175
1175
|
};
|
|
1176
1176
|
});
|
|
1177
|
-
function
|
|
1177
|
+
function pn(e, t, n, r) {
|
|
1178
1178
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1179
1179
|
let i = e.filter((e) => !D(e));
|
|
1180
1180
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
@@ -1184,8 +1184,8 @@ function fn(e, t, n, r) {
|
|
|
1184
1184
|
errors: e.map((e) => e.issues.map((e) => k(e, r, v())))
|
|
1185
1185
|
}), t);
|
|
1186
1186
|
}
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1187
|
+
var mn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
1188
|
+
F.init(e, t), y(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), y(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), y(e._zod, "values", () => {
|
|
1189
1189
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1190
1190
|
}), y(e._zod, "pattern", () => {
|
|
1191
1191
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
@@ -1208,10 +1208,10 @@ var pn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
|
1208
1208
|
s.push(t);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
return o ? Promise.all(s).then((t) =>
|
|
1211
|
+
return o ? Promise.all(s).then((t) => pn(t, i, e, a)) : pn(s, i, e, a);
|
|
1212
1212
|
};
|
|
1213
|
-
}),
|
|
1214
|
-
|
|
1213
|
+
}), hn = /*@__PURE__*/ h("$ZodIntersection", (e, t) => {
|
|
1214
|
+
F.init(e, t), e._zod.parse = (e, n) => {
|
|
1215
1215
|
let r = e.value, i = t.left._zod.run({
|
|
1216
1216
|
value: r,
|
|
1217
1217
|
issues: []
|
|
@@ -1219,10 +1219,10 @@ var pn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
|
1219
1219
|
value: r,
|
|
1220
1220
|
issues: []
|
|
1221
1221
|
}, n);
|
|
1222
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1222
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => gn(e, t, n)) : gn(e, i, a);
|
|
1223
1223
|
};
|
|
1224
1224
|
});
|
|
1225
|
-
function
|
|
1225
|
+
function z(e, t) {
|
|
1226
1226
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1227
1227
|
valid: !0,
|
|
1228
1228
|
data: e
|
|
@@ -1233,7 +1233,7 @@ function B(e, t) {
|
|
|
1233
1233
|
...t
|
|
1234
1234
|
};
|
|
1235
1235
|
for (let n of r) {
|
|
1236
|
-
let r =
|
|
1236
|
+
let r = z(e[n], t[n]);
|
|
1237
1237
|
if (!r.valid) return {
|
|
1238
1238
|
valid: !1,
|
|
1239
1239
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1252,7 +1252,7 @@ function B(e, t) {
|
|
|
1252
1252
|
};
|
|
1253
1253
|
let n = [];
|
|
1254
1254
|
for (let r = 0; r < e.length; r++) {
|
|
1255
|
-
let i = e[r], a = t[r], o =
|
|
1255
|
+
let i = e[r], a = t[r], o = z(i, a);
|
|
1256
1256
|
if (!o.valid) return {
|
|
1257
1257
|
valid: !1,
|
|
1258
1258
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1269,14 +1269,14 @@ function B(e, t) {
|
|
|
1269
1269
|
mergeErrorPath: []
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function gn(e, t, n) {
|
|
1273
1273
|
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), D(e)) return e;
|
|
1274
|
-
let r =
|
|
1274
|
+
let r = z(t.value, n.value);
|
|
1275
1275
|
if (!r.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1276
1276
|
return e.value = r.data, e;
|
|
1277
1277
|
}
|
|
1278
|
-
var
|
|
1279
|
-
|
|
1278
|
+
var _n = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
|
|
1279
|
+
F.init(e, t);
|
|
1280
1280
|
let n = ce(t.entries), r = new Set(n);
|
|
1281
1281
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ve.has(typeof e)).map((e) => typeof e == "string" ? w(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
1282
1282
|
let a = t.value;
|
|
@@ -1287,8 +1287,8 @@ var gn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
|
|
|
1287
1287
|
inst: e
|
|
1288
1288
|
}), t;
|
|
1289
1289
|
};
|
|
1290
|
-
}),
|
|
1291
|
-
|
|
1290
|
+
}), vn = /*@__PURE__*/ h("$ZodTransform", (e, t) => {
|
|
1291
|
+
F.init(e, t), e._zod.parse = (n, r) => {
|
|
1292
1292
|
if (r.direction === "backward") throw new se(e.constructor.name);
|
|
1293
1293
|
let i = t.transform(n.value, n);
|
|
1294
1294
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
@@ -1296,51 +1296,51 @@ var gn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
|
|
|
1296
1296
|
return n.value = i, n;
|
|
1297
1297
|
};
|
|
1298
1298
|
});
|
|
1299
|
-
function
|
|
1299
|
+
function yn(e, t) {
|
|
1300
1300
|
return e.issues.length && t === void 0 ? {
|
|
1301
1301
|
issues: [],
|
|
1302
1302
|
value: void 0
|
|
1303
1303
|
} : e;
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1306
|
-
|
|
1305
|
+
var bn = /*@__PURE__*/ h("$ZodOptional", (e, t) => {
|
|
1306
|
+
F.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", y(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), y(e._zod, "pattern", () => {
|
|
1307
1307
|
let e = t.innerType._zod.pattern;
|
|
1308
1308
|
return e ? RegExp(`^(${fe(e.source)})?$`) : void 0;
|
|
1309
1309
|
}), e._zod.parse = (e, n) => {
|
|
1310
1310
|
if (t.innerType._zod.optin === "optional") {
|
|
1311
1311
|
let r = t.innerType._zod.run(e, n);
|
|
1312
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1312
|
+
return r instanceof Promise ? r.then((t) => yn(t, e.value)) : yn(r, e.value);
|
|
1313
1313
|
}
|
|
1314
1314
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1315
1315
|
};
|
|
1316
|
-
}),
|
|
1317
|
-
|
|
1316
|
+
}), xn = /*@__PURE__*/ h("$ZodNullable", (e, t) => {
|
|
1317
|
+
F.init(e, t), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "pattern", () => {
|
|
1318
1318
|
let e = t.innerType._zod.pattern;
|
|
1319
1319
|
return e ? RegExp(`^(${fe(e.source)}|null)$`) : void 0;
|
|
1320
1320
|
}), y(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1321
|
-
}),
|
|
1322
|
-
|
|
1321
|
+
}), Sn = /*@__PURE__*/ h("$ZodDefault", (e, t) => {
|
|
1322
|
+
F.init(e, t), e._zod.optin = "optional", y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1323
1323
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1324
1324
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1325
1325
|
let r = t.innerType._zod.run(e, n);
|
|
1326
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1326
|
+
return r instanceof Promise ? r.then((e) => Cn(e, t)) : Cn(r, t);
|
|
1327
1327
|
};
|
|
1328
1328
|
});
|
|
1329
|
-
function
|
|
1329
|
+
function Cn(e, t) {
|
|
1330
1330
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
}),
|
|
1335
|
-
|
|
1332
|
+
var wn = /*@__PURE__*/ h("$ZodPrefault", (e, t) => {
|
|
1333
|
+
F.init(e, t), e._zod.optin = "optional", y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1334
|
+
}), Tn = /*@__PURE__*/ h("$ZodNonOptional", (e, t) => {
|
|
1335
|
+
F.init(e, t), y(e._zod, "values", () => {
|
|
1336
1336
|
let e = t.innerType._zod.values;
|
|
1337
1337
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1338
1338
|
}), e._zod.parse = (n, r) => {
|
|
1339
1339
|
let i = t.innerType._zod.run(n, r);
|
|
1340
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1340
|
+
return i instanceof Promise ? i.then((t) => En(t, e)) : En(i, e);
|
|
1341
1341
|
};
|
|
1342
1342
|
});
|
|
1343
|
-
function
|
|
1343
|
+
function En(e, t) {
|
|
1344
1344
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1345
1345
|
code: "invalid_type",
|
|
1346
1346
|
expected: "nonoptional",
|
|
@@ -1348,8 +1348,8 @@ function Tn(e, t) {
|
|
|
1348
1348
|
inst: t
|
|
1349
1349
|
}), e;
|
|
1350
1350
|
}
|
|
1351
|
-
var
|
|
1352
|
-
|
|
1351
|
+
var Dn = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
|
|
1352
|
+
F.init(e, t), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1353
1353
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1354
1354
|
let r = t.innerType._zod.run(e, n);
|
|
1355
1355
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
@@ -1362,40 +1362,40 @@ var En = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
|
|
|
1362
1362
|
input: e.value
|
|
1363
1363
|
}), e.issues = []), e);
|
|
1364
1364
|
};
|
|
1365
|
-
}),
|
|
1366
|
-
|
|
1365
|
+
}), On = /*@__PURE__*/ h("$ZodPipe", (e, t) => {
|
|
1366
|
+
F.init(e, t), y(e._zod, "values", () => t.in._zod.values), y(e._zod, "optin", () => t.in._zod.optin), y(e._zod, "optout", () => t.out._zod.optout), y(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1367
1367
|
if (n.direction === "backward") {
|
|
1368
1368
|
let r = t.out._zod.run(e, n);
|
|
1369
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1369
|
+
return r instanceof Promise ? r.then((e) => B(e, t.in, n)) : B(r, t.in, n);
|
|
1370
1370
|
}
|
|
1371
1371
|
let r = t.in._zod.run(e, n);
|
|
1372
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1372
|
+
return r instanceof Promise ? r.then((e) => B(e, t.out, n)) : B(r, t.out, n);
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
|
-
function
|
|
1375
|
+
function B(e, t, n) {
|
|
1376
1376
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1377
1377
|
value: e.value,
|
|
1378
1378
|
issues: e.issues
|
|
1379
1379
|
}, n);
|
|
1380
1380
|
}
|
|
1381
|
-
var
|
|
1382
|
-
|
|
1381
|
+
var kn = /*@__PURE__*/ h("$ZodReadonly", (e, t) => {
|
|
1382
|
+
F.init(e, t), y(e._zod, "propValues", () => t.innerType._zod.propValues), y(e._zod, "values", () => t.innerType._zod.values), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
|
|
1383
1383
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1384
1384
|
let r = t.innerType._zod.run(e, n);
|
|
1385
|
-
return r instanceof Promise ? r.then(
|
|
1385
|
+
return r instanceof Promise ? r.then(An) : An(r);
|
|
1386
1386
|
};
|
|
1387
1387
|
});
|
|
1388
|
-
function
|
|
1388
|
+
function An(e) {
|
|
1389
1389
|
return e.value = Object.freeze(e.value), e;
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1392
|
-
|
|
1391
|
+
var jn = /*@__PURE__*/ h("$ZodCustom", (e, t) => {
|
|
1392
|
+
N.init(e, t), F.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1393
1393
|
let r = n.value, i = t.fn(r);
|
|
1394
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1395
|
-
|
|
1394
|
+
if (i instanceof Promise) return i.then((t) => Mn(t, n, r, e));
|
|
1395
|
+
Mn(i, n, r, e);
|
|
1396
1396
|
};
|
|
1397
1397
|
});
|
|
1398
|
-
function
|
|
1398
|
+
function Mn(e, t, n, r) {
|
|
1399
1399
|
if (!e) {
|
|
1400
1400
|
let e = {
|
|
1401
1401
|
code: "custom",
|
|
@@ -1409,7 +1409,7 @@ function jn(e, t, n, r) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
//#endregion
|
|
1411
1411
|
//#region ../../node_modules/zod/v4/core/registries.js
|
|
1412
|
-
var
|
|
1412
|
+
var Nn = class {
|
|
1413
1413
|
constructor() {
|
|
1414
1414
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1415
1415
|
}
|
|
@@ -1445,19 +1445,19 @@ var Mn = class {
|
|
|
1445
1445
|
return this._map.has(e);
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
function
|
|
1449
|
-
return new
|
|
1448
|
+
function Pn() {
|
|
1449
|
+
return new Nn();
|
|
1450
1450
|
}
|
|
1451
|
-
var
|
|
1451
|
+
var V = /*@__PURE__*/ Pn();
|
|
1452
1452
|
//#endregion
|
|
1453
1453
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
1454
|
-
function
|
|
1454
|
+
function Fn(e, t) {
|
|
1455
1455
|
return new e({
|
|
1456
1456
|
type: "string",
|
|
1457
1457
|
...E(t)
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function In(e, t) {
|
|
1461
1461
|
return new e({
|
|
1462
1462
|
type: "string",
|
|
1463
1463
|
format: "email",
|
|
@@ -1466,7 +1466,7 @@ function Fn(e, t) {
|
|
|
1466
1466
|
...E(t)
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Ln(e, t) {
|
|
1470
1470
|
return new e({
|
|
1471
1471
|
type: "string",
|
|
1472
1472
|
format: "guid",
|
|
@@ -1475,7 +1475,7 @@ function In(e, t) {
|
|
|
1475
1475
|
...E(t)
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Rn(e, t) {
|
|
1479
1479
|
return new e({
|
|
1480
1480
|
type: "string",
|
|
1481
1481
|
format: "uuid",
|
|
@@ -1484,7 +1484,7 @@ function Ln(e, t) {
|
|
|
1484
1484
|
...E(t)
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function zn(e, t) {
|
|
1488
1488
|
return new e({
|
|
1489
1489
|
type: "string",
|
|
1490
1490
|
format: "uuid",
|
|
@@ -1494,7 +1494,7 @@ function Rn(e, t) {
|
|
|
1494
1494
|
...E(t)
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Bn(e, t) {
|
|
1498
1498
|
return new e({
|
|
1499
1499
|
type: "string",
|
|
1500
1500
|
format: "uuid",
|
|
@@ -1504,7 +1504,7 @@ function zn(e, t) {
|
|
|
1504
1504
|
...E(t)
|
|
1505
1505
|
});
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Vn(e, t) {
|
|
1508
1508
|
return new e({
|
|
1509
1509
|
type: "string",
|
|
1510
1510
|
format: "uuid",
|
|
@@ -1514,7 +1514,7 @@ function Bn(e, t) {
|
|
|
1514
1514
|
...E(t)
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function Hn(e, t) {
|
|
1518
1518
|
return new e({
|
|
1519
1519
|
type: "string",
|
|
1520
1520
|
format: "url",
|
|
@@ -1523,7 +1523,7 @@ function Vn(e, t) {
|
|
|
1523
1523
|
...E(t)
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Un(e, t) {
|
|
1527
1527
|
return new e({
|
|
1528
1528
|
type: "string",
|
|
1529
1529
|
format: "emoji",
|
|
@@ -1532,7 +1532,7 @@ function Hn(e, t) {
|
|
|
1532
1532
|
...E(t)
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Wn(e, t) {
|
|
1536
1536
|
return new e({
|
|
1537
1537
|
type: "string",
|
|
1538
1538
|
format: "nanoid",
|
|
@@ -1541,7 +1541,7 @@ function Un(e, t) {
|
|
|
1541
1541
|
...E(t)
|
|
1542
1542
|
});
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function Gn(e, t) {
|
|
1545
1545
|
return new e({
|
|
1546
1546
|
type: "string",
|
|
1547
1547
|
format: "cuid",
|
|
@@ -1550,7 +1550,7 @@ function Wn(e, t) {
|
|
|
1550
1550
|
...E(t)
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function Kn(e, t) {
|
|
1554
1554
|
return new e({
|
|
1555
1555
|
type: "string",
|
|
1556
1556
|
format: "cuid2",
|
|
@@ -1559,7 +1559,7 @@ function Gn(e, t) {
|
|
|
1559
1559
|
...E(t)
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function qn(e, t) {
|
|
1563
1563
|
return new e({
|
|
1564
1564
|
type: "string",
|
|
1565
1565
|
format: "ulid",
|
|
@@ -1568,7 +1568,7 @@ function Kn(e, t) {
|
|
|
1568
1568
|
...E(t)
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function Jn(e, t) {
|
|
1572
1572
|
return new e({
|
|
1573
1573
|
type: "string",
|
|
1574
1574
|
format: "xid",
|
|
@@ -1577,7 +1577,7 @@ function qn(e, t) {
|
|
|
1577
1577
|
...E(t)
|
|
1578
1578
|
});
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function Yn(e, t) {
|
|
1581
1581
|
return new e({
|
|
1582
1582
|
type: "string",
|
|
1583
1583
|
format: "ksuid",
|
|
@@ -1586,7 +1586,7 @@ function Jn(e, t) {
|
|
|
1586
1586
|
...E(t)
|
|
1587
1587
|
});
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function Xn(e, t) {
|
|
1590
1590
|
return new e({
|
|
1591
1591
|
type: "string",
|
|
1592
1592
|
format: "ipv4",
|
|
@@ -1595,7 +1595,7 @@ function Yn(e, t) {
|
|
|
1595
1595
|
...E(t)
|
|
1596
1596
|
});
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function Zn(e, t) {
|
|
1599
1599
|
return new e({
|
|
1600
1600
|
type: "string",
|
|
1601
1601
|
format: "ipv6",
|
|
@@ -1604,7 +1604,7 @@ function Xn(e, t) {
|
|
|
1604
1604
|
...E(t)
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Qn(e, t) {
|
|
1608
1608
|
return new e({
|
|
1609
1609
|
type: "string",
|
|
1610
1610
|
format: "cidrv4",
|
|
@@ -1613,7 +1613,7 @@ function Zn(e, t) {
|
|
|
1613
1613
|
...E(t)
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function $n(e, t) {
|
|
1617
1617
|
return new e({
|
|
1618
1618
|
type: "string",
|
|
1619
1619
|
format: "cidrv6",
|
|
@@ -1622,7 +1622,7 @@ function Qn(e, t) {
|
|
|
1622
1622
|
...E(t)
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function er(e, t) {
|
|
1626
1626
|
return new e({
|
|
1627
1627
|
type: "string",
|
|
1628
1628
|
format: "base64",
|
|
@@ -1631,7 +1631,7 @@ function $n(e, t) {
|
|
|
1631
1631
|
...E(t)
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function tr(e, t) {
|
|
1635
1635
|
return new e({
|
|
1636
1636
|
type: "string",
|
|
1637
1637
|
format: "base64url",
|
|
@@ -1640,7 +1640,7 @@ function er(e, t) {
|
|
|
1640
1640
|
...E(t)
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function nr(e, t) {
|
|
1644
1644
|
return new e({
|
|
1645
1645
|
type: "string",
|
|
1646
1646
|
format: "e164",
|
|
@@ -1649,7 +1649,7 @@ function tr(e, t) {
|
|
|
1649
1649
|
...E(t)
|
|
1650
1650
|
});
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function rr(e, t) {
|
|
1653
1653
|
return new e({
|
|
1654
1654
|
type: "string",
|
|
1655
1655
|
format: "jwt",
|
|
@@ -1658,7 +1658,7 @@ function nr(e, t) {
|
|
|
1658
1658
|
...E(t)
|
|
1659
1659
|
});
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function ir(e, t) {
|
|
1662
1662
|
return new e({
|
|
1663
1663
|
type: "string",
|
|
1664
1664
|
format: "datetime",
|
|
@@ -1669,7 +1669,7 @@ function rr(e, t) {
|
|
|
1669
1669
|
...E(t)
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function ar(e, t) {
|
|
1673
1673
|
return new e({
|
|
1674
1674
|
type: "string",
|
|
1675
1675
|
format: "date",
|
|
@@ -1677,7 +1677,7 @@ function ir(e, t) {
|
|
|
1677
1677
|
...E(t)
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function or(e, t) {
|
|
1681
1681
|
return new e({
|
|
1682
1682
|
type: "string",
|
|
1683
1683
|
format: "time",
|
|
@@ -1686,7 +1686,7 @@ function ar(e, t) {
|
|
|
1686
1686
|
...E(t)
|
|
1687
1687
|
});
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function sr(e, t) {
|
|
1690
1690
|
return new e({
|
|
1691
1691
|
type: "string",
|
|
1692
1692
|
format: "duration",
|
|
@@ -1694,108 +1694,108 @@ function or(e, t) {
|
|
|
1694
1694
|
...E(t)
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function cr(e) {
|
|
1698
1698
|
return new e({ type: "unknown" });
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function lr(e, t) {
|
|
1701
1701
|
return new e({
|
|
1702
1702
|
type: "never",
|
|
1703
1703
|
...E(t)
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1707
|
-
return new
|
|
1706
|
+
function ur(e, t) {
|
|
1707
|
+
return new bt({
|
|
1708
1708
|
check: "max_length",
|
|
1709
1709
|
...E(t),
|
|
1710
1710
|
maximum: e
|
|
1711
1711
|
});
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1714
|
-
return new
|
|
1713
|
+
function H(e, t) {
|
|
1714
|
+
return new xt({
|
|
1715
1715
|
check: "min_length",
|
|
1716
1716
|
...E(t),
|
|
1717
1717
|
minimum: e
|
|
1718
1718
|
});
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return new
|
|
1720
|
+
function dr(e, t) {
|
|
1721
|
+
return new St({
|
|
1722
1722
|
check: "length_equals",
|
|
1723
1723
|
...E(t),
|
|
1724
1724
|
length: e
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return new
|
|
1727
|
+
function fr(e, t) {
|
|
1728
|
+
return new Ct({
|
|
1729
1729
|
check: "string_format",
|
|
1730
1730
|
format: "regex",
|
|
1731
1731
|
...E(t),
|
|
1732
1732
|
pattern: e
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return new
|
|
1735
|
+
function pr(e) {
|
|
1736
|
+
return new wt({
|
|
1737
1737
|
check: "string_format",
|
|
1738
1738
|
format: "lowercase",
|
|
1739
1739
|
...E(e)
|
|
1740
1740
|
});
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
return new
|
|
1742
|
+
function mr(e) {
|
|
1743
|
+
return new Tt({
|
|
1744
1744
|
check: "string_format",
|
|
1745
1745
|
format: "uppercase",
|
|
1746
1746
|
...E(e)
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return new
|
|
1749
|
+
function hr(e, t) {
|
|
1750
|
+
return new Et({
|
|
1751
1751
|
check: "string_format",
|
|
1752
1752
|
format: "includes",
|
|
1753
1753
|
...E(t),
|
|
1754
1754
|
includes: e
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
return new
|
|
1757
|
+
function gr(e, t) {
|
|
1758
|
+
return new Dt({
|
|
1759
1759
|
check: "string_format",
|
|
1760
1760
|
format: "starts_with",
|
|
1761
1761
|
...E(t),
|
|
1762
1762
|
prefix: e
|
|
1763
1763
|
});
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return new
|
|
1765
|
+
function _r(e, t) {
|
|
1766
|
+
return new Ot({
|
|
1767
1767
|
check: "string_format",
|
|
1768
1768
|
format: "ends_with",
|
|
1769
1769
|
...E(t),
|
|
1770
1770
|
suffix: e
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return new
|
|
1773
|
+
function U(e) {
|
|
1774
|
+
return new kt({
|
|
1775
1775
|
check: "overwrite",
|
|
1776
1776
|
tx: e
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return
|
|
1781
|
-
}
|
|
1782
|
-
function vr() {
|
|
1783
|
-
return W((e) => e.trim());
|
|
1779
|
+
function vr(e) {
|
|
1780
|
+
return U((t) => t.normalize(e));
|
|
1784
1781
|
}
|
|
1785
1782
|
function yr() {
|
|
1786
|
-
return
|
|
1783
|
+
return U((e) => e.trim());
|
|
1787
1784
|
}
|
|
1788
1785
|
function br() {
|
|
1789
|
-
return
|
|
1786
|
+
return U((e) => e.toLowerCase());
|
|
1787
|
+
}
|
|
1788
|
+
function xr() {
|
|
1789
|
+
return U((e) => e.toUpperCase());
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Sr(e, t, n) {
|
|
1792
1792
|
return new e({
|
|
1793
1793
|
type: "array",
|
|
1794
1794
|
element: t,
|
|
1795
1795
|
...E(n)
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function Cr(e, t, n) {
|
|
1799
1799
|
return new e({
|
|
1800
1800
|
type: "custom",
|
|
1801
1801
|
check: "custom",
|
|
@@ -1803,8 +1803,8 @@ function Sr(e, t, n) {
|
|
|
1803
1803
|
...E(n)
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
let t =
|
|
1806
|
+
function wr(e) {
|
|
1807
|
+
let t = Tr((n) => (n.addIssue = (e) => {
|
|
1808
1808
|
if (typeof e == "string") n.issues.push(A(e, n.value, t._zod.def));
|
|
1809
1809
|
else {
|
|
1810
1810
|
let r = e;
|
|
@@ -1813,8 +1813,8 @@ function Cr(e) {
|
|
|
1813
1813
|
}, e(n.value, n)));
|
|
1814
1814
|
return t;
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1817
|
-
let n = new
|
|
1816
|
+
function Tr(e, t) {
|
|
1817
|
+
let n = new N({
|
|
1818
1818
|
check: "custom",
|
|
1819
1819
|
...E(t)
|
|
1820
1820
|
});
|
|
@@ -1822,33 +1822,33 @@ function wr(e, t) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
//#endregion
|
|
1824
1824
|
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1825
|
+
var Er = /*@__PURE__*/ h("ZodISODateTime", (e, t) => {
|
|
1826
|
+
Ut.init(e, t), K.init(e, t);
|
|
1827
1827
|
});
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1828
|
+
function Dr(e) {
|
|
1829
|
+
return ir(Er, e);
|
|
1830
1830
|
}
|
|
1831
|
-
var
|
|
1832
|
-
|
|
1831
|
+
var Or = /*@__PURE__*/ h("ZodISODate", (e, t) => {
|
|
1832
|
+
Wt.init(e, t), K.init(e, t);
|
|
1833
1833
|
});
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1834
|
+
function kr(e) {
|
|
1835
|
+
return ar(Or, e);
|
|
1836
1836
|
}
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1837
|
+
var Ar = /*@__PURE__*/ h("ZodISOTime", (e, t) => {
|
|
1838
|
+
Gt.init(e, t), K.init(e, t);
|
|
1839
1839
|
});
|
|
1840
|
-
function
|
|
1841
|
-
return
|
|
1840
|
+
function jr(e) {
|
|
1841
|
+
return or(Ar, e);
|
|
1842
1842
|
}
|
|
1843
|
-
var
|
|
1844
|
-
|
|
1843
|
+
var Mr = /*@__PURE__*/ h("ZodISODuration", (e, t) => {
|
|
1844
|
+
Kt.init(e, t), K.init(e, t);
|
|
1845
1845
|
});
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1846
|
+
function Nr(e) {
|
|
1847
|
+
return sr(Mr, e);
|
|
1848
1848
|
}
|
|
1849
1849
|
//#endregion
|
|
1850
1850
|
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
1851
|
-
var
|
|
1851
|
+
var Pr = (e, t) => {
|
|
1852
1852
|
Ae.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
1853
1853
|
format: { value: (t) => Ne(e, t) },
|
|
1854
1854
|
flatten: { value: (t) => Me(e, t) },
|
|
@@ -1863,144 +1863,144 @@ var Nr = (e, t) => {
|
|
|
1863
1863
|
} }
|
|
1864
1864
|
});
|
|
1865
1865
|
};
|
|
1866
|
-
h("ZodError",
|
|
1867
|
-
var
|
|
1866
|
+
h("ZodError", Pr);
|
|
1867
|
+
var W = h("ZodError", Pr, { Parent: Error }), Fr = /* @__PURE__ */ Pe(W), Ir = /* @__PURE__ */ Fe(W), Lr = /* @__PURE__ */ j(W), Rr = /* @__PURE__ */ M(W), zr = /* @__PURE__ */ Re(W), Br = /* @__PURE__ */ ze(W), Vr = /* @__PURE__ */ Be(W), Hr = /* @__PURE__ */ Ve(W), Ur = /* @__PURE__ */ He(W), Wr = /* @__PURE__ */ Ue(W), Gr = /* @__PURE__ */ We(W), Kr = /* @__PURE__ */ Ge(W), G = /*@__PURE__*/ h("ZodType", (e, t) => (F.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(x(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
|
|
1868
1868
|
check: e,
|
|
1869
1869
|
def: { check: "custom" },
|
|
1870
1870
|
onattach: []
|
|
1871
|
-
} } : e)] })), e.clone = (t, n) => T(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) =>
|
|
1871
|
+
} } : e)] })), e.clone = (t, n) => T(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Fr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Lr(e, t, n), e.parseAsync = async (t, n) => Ir(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Rr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => zr(e, t, n), e.decode = (t, n) => Br(e, t, n), e.encodeAsync = async (t, n) => Vr(e, t, n), e.decodeAsync = async (t, n) => Hr(e, t, n), e.safeEncode = (t, n) => Ur(e, t, n), e.safeDecode = (t, n) => Wr(e, t, n), e.safeEncodeAsync = async (t, n) => Gr(e, t, n), e.safeDecodeAsync = async (t, n) => Kr(e, t, n), e.refine = (t, n) => e.check(qi(t, n)), e.superRefine = (t) => e.check(Ji(t)), e.overwrite = (t) => e.check(U(t)), e.optional = () => ji(e), e.nullable = () => Ni(e), e.nullish = () => ji(Ni(e)), e.nonoptional = (t) => zi(e, t), e.array = () => yi(e), e.or = (t) => Ci([e, t]), e.and = (t) => Ti(e, t), e.transform = (t) => Ui(e, ki(t)), e.default = (t) => Fi(e, t), e.prefault = (t) => Li(e, t), e.catch = (t) => Vi(e, t), e.pipe = (t) => Ui(e, t), e.readonly = () => Gi(e), e.describe = (t) => {
|
|
1872
1872
|
let n = e.clone();
|
|
1873
|
-
return
|
|
1873
|
+
return V.add(n, { description: t }), n;
|
|
1874
1874
|
}, Object.defineProperty(e, "description", {
|
|
1875
1875
|
get() {
|
|
1876
|
-
return
|
|
1876
|
+
return V.get(e)?.description;
|
|
1877
1877
|
},
|
|
1878
1878
|
configurable: !0
|
|
1879
1879
|
}), e.meta = (...t) => {
|
|
1880
|
-
if (t.length === 0) return
|
|
1880
|
+
if (t.length === 0) return V.get(e);
|
|
1881
1881
|
let n = e.clone();
|
|
1882
|
-
return
|
|
1883
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
1884
|
-
|
|
1882
|
+
return V.add(n, t[0]), n;
|
|
1883
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), qr = /*@__PURE__*/ h("_ZodString", (e, t) => {
|
|
1884
|
+
I.init(e, t), G.init(e, t);
|
|
1885
1885
|
let n = e._zod.bag;
|
|
1886
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(
|
|
1887
|
-
}),
|
|
1888
|
-
|
|
1886
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(fr(...t)), e.includes = (...t) => e.check(hr(...t)), e.startsWith = (...t) => e.check(gr(...t)), e.endsWith = (...t) => e.check(_r(...t)), e.min = (...t) => e.check(H(...t)), e.max = (...t) => e.check(ur(...t)), e.length = (...t) => e.check(dr(...t)), e.nonempty = (...t) => e.check(H(1, ...t)), e.lowercase = (t) => e.check(pr(t)), e.uppercase = (t) => e.check(mr(t)), e.trim = () => e.check(yr()), e.normalize = (...t) => e.check(vr(...t)), e.toLowerCase = () => e.check(br()), e.toUpperCase = () => e.check(xr());
|
|
1887
|
+
}), Jr = /*@__PURE__*/ h("ZodString", (e, t) => {
|
|
1888
|
+
I.init(e, t), qr.init(e, t), e.email = (t) => e.check(In(Xr, t)), e.url = (t) => e.check(Hn(Qr, t)), e.jwt = (t) => e.check(rr(pi, t)), e.emoji = (t) => e.check(Un($r, t)), e.guid = (t) => e.check(Ln(Zr, t)), e.uuid = (t) => e.check(Rn(q, t)), e.uuidv4 = (t) => e.check(zn(q, t)), e.uuidv6 = (t) => e.check(Bn(q, t)), e.uuidv7 = (t) => e.check(Vn(q, t)), e.nanoid = (t) => e.check(Wn(ei, t)), e.guid = (t) => e.check(Ln(Zr, t)), e.cuid = (t) => e.check(Gn(ti, t)), e.cuid2 = (t) => e.check(Kn(ni, t)), e.ulid = (t) => e.check(qn(ri, t)), e.base64 = (t) => e.check(er(ui, t)), e.base64url = (t) => e.check(tr(di, t)), e.xid = (t) => e.check(Jn(ii, t)), e.ksuid = (t) => e.check(Yn(ai, t)), e.ipv4 = (t) => e.check(Xn(oi, t)), e.ipv6 = (t) => e.check(Zn(si, t)), e.cidrv4 = (t) => e.check(Qn(ci, t)), e.cidrv6 = (t) => e.check($n(li, t)), e.e164 = (t) => e.check(nr(fi, t)), e.datetime = (t) => e.check(Dr(t)), e.date = (t) => e.check(kr(t)), e.time = (t) => e.check(jr(t)), e.duration = (t) => e.check(Nr(t));
|
|
1889
1889
|
});
|
|
1890
|
-
function
|
|
1891
|
-
return
|
|
1892
|
-
}
|
|
1893
|
-
var
|
|
1894
|
-
|
|
1895
|
-
}),
|
|
1896
|
-
|
|
1897
|
-
}),
|
|
1898
|
-
|
|
1899
|
-
}),
|
|
1900
|
-
|
|
1901
|
-
}),
|
|
1902
|
-
|
|
1903
|
-
}),
|
|
1904
|
-
|
|
1905
|
-
}),
|
|
1906
|
-
|
|
1907
|
-
}),
|
|
1908
|
-
|
|
1909
|
-
}),
|
|
1910
|
-
|
|
1911
|
-
}),
|
|
1912
|
-
|
|
1913
|
-
}),
|
|
1914
|
-
|
|
1915
|
-
}),
|
|
1916
|
-
|
|
1917
|
-
}),
|
|
1918
|
-
|
|
1919
|
-
}),
|
|
1920
|
-
|
|
1921
|
-
}),
|
|
1922
|
-
|
|
1923
|
-
}),
|
|
1924
|
-
|
|
1925
|
-
}),
|
|
1926
|
-
|
|
1927
|
-
}),
|
|
1928
|
-
|
|
1929
|
-
}),
|
|
1930
|
-
|
|
1931
|
-
}),
|
|
1932
|
-
nn.init(e, t), q.init(e, t);
|
|
1933
|
-
}), pi = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
|
|
1890
|
+
function Yr(e) {
|
|
1891
|
+
return Fn(Jr, e);
|
|
1892
|
+
}
|
|
1893
|
+
var K = /*@__PURE__*/ h("ZodStringFormat", (e, t) => {
|
|
1894
|
+
L.init(e, t), qr.init(e, t);
|
|
1895
|
+
}), Xr = /*@__PURE__*/ h("ZodEmail", (e, t) => {
|
|
1896
|
+
Pt.init(e, t), K.init(e, t);
|
|
1897
|
+
}), Zr = /*@__PURE__*/ h("ZodGUID", (e, t) => {
|
|
1898
|
+
Mt.init(e, t), K.init(e, t);
|
|
1899
|
+
}), q = /*@__PURE__*/ h("ZodUUID", (e, t) => {
|
|
1900
|
+
Nt.init(e, t), K.init(e, t);
|
|
1901
|
+
}), Qr = /*@__PURE__*/ h("ZodURL", (e, t) => {
|
|
1902
|
+
Ft.init(e, t), K.init(e, t);
|
|
1903
|
+
}), $r = /*@__PURE__*/ h("ZodEmoji", (e, t) => {
|
|
1904
|
+
It.init(e, t), K.init(e, t);
|
|
1905
|
+
}), ei = /*@__PURE__*/ h("ZodNanoID", (e, t) => {
|
|
1906
|
+
Lt.init(e, t), K.init(e, t);
|
|
1907
|
+
}), ti = /*@__PURE__*/ h("ZodCUID", (e, t) => {
|
|
1908
|
+
Rt.init(e, t), K.init(e, t);
|
|
1909
|
+
}), ni = /*@__PURE__*/ h("ZodCUID2", (e, t) => {
|
|
1910
|
+
zt.init(e, t), K.init(e, t);
|
|
1911
|
+
}), ri = /*@__PURE__*/ h("ZodULID", (e, t) => {
|
|
1912
|
+
Bt.init(e, t), K.init(e, t);
|
|
1913
|
+
}), ii = /*@__PURE__*/ h("ZodXID", (e, t) => {
|
|
1914
|
+
Vt.init(e, t), K.init(e, t);
|
|
1915
|
+
}), ai = /*@__PURE__*/ h("ZodKSUID", (e, t) => {
|
|
1916
|
+
Ht.init(e, t), K.init(e, t);
|
|
1917
|
+
}), oi = /*@__PURE__*/ h("ZodIPv4", (e, t) => {
|
|
1918
|
+
qt.init(e, t), K.init(e, t);
|
|
1919
|
+
}), si = /*@__PURE__*/ h("ZodIPv6", (e, t) => {
|
|
1920
|
+
Jt.init(e, t), K.init(e, t);
|
|
1921
|
+
}), ci = /*@__PURE__*/ h("ZodCIDRv4", (e, t) => {
|
|
1922
|
+
Yt.init(e, t), K.init(e, t);
|
|
1923
|
+
}), li = /*@__PURE__*/ h("ZodCIDRv6", (e, t) => {
|
|
1924
|
+
Xt.init(e, t), K.init(e, t);
|
|
1925
|
+
}), ui = /*@__PURE__*/ h("ZodBase64", (e, t) => {
|
|
1926
|
+
Qt.init(e, t), K.init(e, t);
|
|
1927
|
+
}), di = /*@__PURE__*/ h("ZodBase64URL", (e, t) => {
|
|
1928
|
+
en.init(e, t), K.init(e, t);
|
|
1929
|
+
}), fi = /*@__PURE__*/ h("ZodE164", (e, t) => {
|
|
1930
|
+
tn.init(e, t), K.init(e, t);
|
|
1931
|
+
}), pi = /*@__PURE__*/ h("ZodJWT", (e, t) => {
|
|
1934
1932
|
rn.init(e, t), K.init(e, t);
|
|
1933
|
+
}), mi = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
|
|
1934
|
+
an.init(e, t), G.init(e, t);
|
|
1935
1935
|
});
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1936
|
+
function hi() {
|
|
1937
|
+
return cr(mi);
|
|
1938
1938
|
}
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1939
|
+
var gi = /*@__PURE__*/ h("ZodNever", (e, t) => {
|
|
1940
|
+
on.init(e, t), G.init(e, t);
|
|
1941
1941
|
});
|
|
1942
|
-
function
|
|
1943
|
-
return
|
|
1942
|
+
function _i(e) {
|
|
1943
|
+
return lr(gi, e);
|
|
1944
1944
|
}
|
|
1945
|
-
var
|
|
1946
|
-
|
|
1945
|
+
var vi = /*@__PURE__*/ h("ZodArray", (e, t) => {
|
|
1946
|
+
cn.init(e, t), G.init(e, t), e.element = t.element, e.min = (t, n) => e.check(H(t, n)), e.nonempty = (t) => e.check(H(1, t)), e.max = (t, n) => e.check(ur(t, n)), e.length = (t, n) => e.check(dr(t, n)), e.unwrap = () => e.element;
|
|
1947
1947
|
});
|
|
1948
|
-
function
|
|
1949
|
-
return
|
|
1948
|
+
function yi(e, t) {
|
|
1949
|
+
return Sr(vi, e, t);
|
|
1950
1950
|
}
|
|
1951
|
-
var
|
|
1952
|
-
|
|
1951
|
+
var bi = /*@__PURE__*/ h("ZodObject", (e, t) => {
|
|
1952
|
+
fn.init(e, t), G.init(e, t), y(e, "shape", () => t.shape), e.keyof = () => Di(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
|
|
1953
1953
|
...e._zod.def,
|
|
1954
1954
|
catchall: t
|
|
1955
1955
|
}), e.passthrough = () => e.clone({
|
|
1956
1956
|
...e._zod.def,
|
|
1957
|
-
catchall:
|
|
1957
|
+
catchall: hi()
|
|
1958
1958
|
}), e.loose = () => e.clone({
|
|
1959
1959
|
...e._zod.def,
|
|
1960
|
-
catchall:
|
|
1960
|
+
catchall: hi()
|
|
1961
1961
|
}), e.strict = () => e.clone({
|
|
1962
1962
|
...e._zod.def,
|
|
1963
|
-
catchall:
|
|
1963
|
+
catchall: _i()
|
|
1964
1964
|
}), e.strip = () => e.clone({
|
|
1965
1965
|
...e._zod.def,
|
|
1966
1966
|
catchall: void 0
|
|
1967
|
-
}), e.extend = (t) => Se(e, t), e.safeExtend = (t) => Ce(e, t), e.merge = (t) => we(e, t), e.pick = (t) => be(e, t), e.omit = (t) => xe(e, t), e.partial = (...t) => Te(
|
|
1967
|
+
}), e.extend = (t) => Se(e, t), e.safeExtend = (t) => Ce(e, t), e.merge = (t) => we(e, t), e.pick = (t) => be(e, t), e.omit = (t) => xe(e, t), e.partial = (...t) => Te(Ai, e, t[0]), e.required = (...t) => Ee(Ri, e, t[0]);
|
|
1968
1968
|
});
|
|
1969
|
-
function
|
|
1970
|
-
return new
|
|
1969
|
+
function xi(e, t) {
|
|
1970
|
+
return new bi({
|
|
1971
1971
|
type: "object",
|
|
1972
1972
|
shape: e ?? {},
|
|
1973
1973
|
...E(t)
|
|
1974
1974
|
});
|
|
1975
1975
|
}
|
|
1976
|
-
var
|
|
1977
|
-
|
|
1976
|
+
var Si = /*@__PURE__*/ h("ZodUnion", (e, t) => {
|
|
1977
|
+
mn.init(e, t), G.init(e, t), e.options = t.options;
|
|
1978
1978
|
});
|
|
1979
|
-
function
|
|
1980
|
-
return new
|
|
1979
|
+
function Ci(e, t) {
|
|
1980
|
+
return new Si({
|
|
1981
1981
|
type: "union",
|
|
1982
1982
|
options: e,
|
|
1983
1983
|
...E(t)
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
|
-
var
|
|
1987
|
-
|
|
1986
|
+
var wi = /*@__PURE__*/ h("ZodIntersection", (e, t) => {
|
|
1987
|
+
hn.init(e, t), G.init(e, t);
|
|
1988
1988
|
});
|
|
1989
|
-
function
|
|
1990
|
-
return new
|
|
1989
|
+
function Ti(e, t) {
|
|
1990
|
+
return new wi({
|
|
1991
1991
|
type: "intersection",
|
|
1992
1992
|
left: e,
|
|
1993
1993
|
right: t
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
|
-
var
|
|
1997
|
-
|
|
1996
|
+
var Ei = /*@__PURE__*/ h("ZodEnum", (e, t) => {
|
|
1997
|
+
_n.init(e, t), G.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
1998
1998
|
let n = new Set(Object.keys(t.entries));
|
|
1999
1999
|
e.extract = (e, r) => {
|
|
2000
2000
|
let i = {};
|
|
2001
2001
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
2002
2002
|
else throw Error(`Key ${r} not found in enum`);
|
|
2003
|
-
return new
|
|
2003
|
+
return new Ei({
|
|
2004
2004
|
...t,
|
|
2005
2005
|
checks: [],
|
|
2006
2006
|
...E(r),
|
|
@@ -2010,7 +2010,7 @@ var Ti = /*@__PURE__*/ h("ZodEnum", (e, t) => {
|
|
|
2010
2010
|
let i = { ...t.entries };
|
|
2011
2011
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
2012
2012
|
else throw Error(`Key ${t} not found in enum`);
|
|
2013
|
-
return new
|
|
2013
|
+
return new Ei({
|
|
2014
2014
|
...t,
|
|
2015
2015
|
checks: [],
|
|
2016
2016
|
...E(r),
|
|
@@ -2018,15 +2018,15 @@ var Ti = /*@__PURE__*/ h("ZodEnum", (e, t) => {
|
|
|
2018
2018
|
});
|
|
2019
2019
|
};
|
|
2020
2020
|
});
|
|
2021
|
-
function
|
|
2022
|
-
return new
|
|
2021
|
+
function Di(e, t) {
|
|
2022
|
+
return new Ei({
|
|
2023
2023
|
type: "enum",
|
|
2024
2024
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
2025
2025
|
...E(t)
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
|
-
var
|
|
2029
|
-
|
|
2028
|
+
var Oi = /*@__PURE__*/ h("ZodTransform", (e, t) => {
|
|
2029
|
+
vn.init(e, t), G.init(e, t), e._zod.parse = (n, r) => {
|
|
2030
2030
|
if (r.direction === "backward") throw new se(e.constructor.name);
|
|
2031
2031
|
n.addIssue = (r) => {
|
|
2032
2032
|
if (typeof r == "string") n.issues.push(A(r, n.value, t));
|
|
@@ -2039,35 +2039,35 @@ var Di = /*@__PURE__*/ h("ZodTransform", (e, t) => {
|
|
|
2039
2039
|
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
2040
2040
|
};
|
|
2041
2041
|
});
|
|
2042
|
-
function
|
|
2043
|
-
return new
|
|
2042
|
+
function ki(e) {
|
|
2043
|
+
return new Oi({
|
|
2044
2044
|
type: "transform",
|
|
2045
2045
|
transform: e
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
|
-
var
|
|
2049
|
-
|
|
2048
|
+
var Ai = /*@__PURE__*/ h("ZodOptional", (e, t) => {
|
|
2049
|
+
bn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2050
2050
|
});
|
|
2051
|
-
function
|
|
2052
|
-
return new
|
|
2051
|
+
function ji(e) {
|
|
2052
|
+
return new Ai({
|
|
2053
2053
|
type: "optional",
|
|
2054
2054
|
innerType: e
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
|
-
var
|
|
2058
|
-
|
|
2057
|
+
var Mi = /*@__PURE__*/ h("ZodNullable", (e, t) => {
|
|
2058
|
+
xn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2059
2059
|
});
|
|
2060
|
-
function
|
|
2061
|
-
return new
|
|
2060
|
+
function Ni(e) {
|
|
2061
|
+
return new Mi({
|
|
2062
2062
|
type: "nullable",
|
|
2063
2063
|
innerType: e
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2066
|
+
var Pi = /*@__PURE__*/ h("ZodDefault", (e, t) => {
|
|
2067
|
+
Sn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2068
2068
|
});
|
|
2069
|
-
function
|
|
2070
|
-
return new
|
|
2069
|
+
function Fi(e, t) {
|
|
2070
|
+
return new Pi({
|
|
2071
2071
|
type: "default",
|
|
2072
2072
|
innerType: e,
|
|
2073
2073
|
get defaultValue() {
|
|
@@ -2075,11 +2075,11 @@ function Pi(e, t) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2078
|
+
var Ii = /*@__PURE__*/ h("ZodPrefault", (e, t) => {
|
|
2079
|
+
wn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2080
2080
|
});
|
|
2081
|
-
function
|
|
2082
|
-
return new
|
|
2081
|
+
function Li(e, t) {
|
|
2082
|
+
return new Ii({
|
|
2083
2083
|
type: "prefault",
|
|
2084
2084
|
innerType: e,
|
|
2085
2085
|
get defaultValue() {
|
|
@@ -2087,62 +2087,62 @@ function Ii(e, t) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
|
-
var
|
|
2091
|
-
|
|
2090
|
+
var Ri = /*@__PURE__*/ h("ZodNonOptional", (e, t) => {
|
|
2091
|
+
Tn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2092
2092
|
});
|
|
2093
|
-
function
|
|
2094
|
-
return new
|
|
2093
|
+
function zi(e, t) {
|
|
2094
|
+
return new Ri({
|
|
2095
2095
|
type: "nonoptional",
|
|
2096
2096
|
innerType: e,
|
|
2097
2097
|
...E(t)
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
|
-
var
|
|
2101
|
-
|
|
2100
|
+
var Bi = /*@__PURE__*/ h("ZodCatch", (e, t) => {
|
|
2101
|
+
Dn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2102
2102
|
});
|
|
2103
|
-
function
|
|
2104
|
-
return new
|
|
2103
|
+
function Vi(e, t) {
|
|
2104
|
+
return new Bi({
|
|
2105
2105
|
type: "catch",
|
|
2106
2106
|
innerType: e,
|
|
2107
2107
|
catchValue: typeof t == "function" ? t : () => t
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
|
-
var
|
|
2111
|
-
|
|
2110
|
+
var Hi = /*@__PURE__*/ h("ZodPipe", (e, t) => {
|
|
2111
|
+
On.init(e, t), G.init(e, t), e.in = t.in, e.out = t.out;
|
|
2112
2112
|
});
|
|
2113
|
-
function
|
|
2114
|
-
return new
|
|
2113
|
+
function Ui(e, t) {
|
|
2114
|
+
return new Hi({
|
|
2115
2115
|
type: "pipe",
|
|
2116
2116
|
in: e,
|
|
2117
2117
|
out: t
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
|
-
var
|
|
2121
|
-
|
|
2120
|
+
var Wi = /*@__PURE__*/ h("ZodReadonly", (e, t) => {
|
|
2121
|
+
kn.init(e, t), G.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2122
2122
|
});
|
|
2123
|
-
function
|
|
2124
|
-
return new
|
|
2123
|
+
function Gi(e) {
|
|
2124
|
+
return new Wi({
|
|
2125
2125
|
type: "readonly",
|
|
2126
2126
|
innerType: e
|
|
2127
2127
|
});
|
|
2128
2128
|
}
|
|
2129
|
-
var
|
|
2130
|
-
|
|
2129
|
+
var Ki = /*@__PURE__*/ h("ZodCustom", (e, t) => {
|
|
2130
|
+
jn.init(e, t), G.init(e, t);
|
|
2131
2131
|
});
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2132
|
+
function qi(e, t = {}) {
|
|
2133
|
+
return Cr(Ki, e, t);
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2136
|
-
return
|
|
2135
|
+
function Ji(e) {
|
|
2136
|
+
return wr(e);
|
|
2137
2137
|
}
|
|
2138
2138
|
//#endregion
|
|
2139
2139
|
//#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ValidationMetadata.js
|
|
2140
|
-
var
|
|
2140
|
+
var Yi = function() {
|
|
2141
2141
|
function e(e) {
|
|
2142
2142
|
this.groups = [], this.each = !1, this.context = void 0, this.type = e.type, this.name = e.name, this.target = e.target, this.propertyName = e.propertyName, this.constraints = e?.constraints, this.constraintCls = e.constraintCls, this.validationTypeOptions = e.validationTypeOptions, e.validationOptions && (this.message = e.validationOptions.message, this.groups = e.validationOptions.groups, this.always = e.validationOptions.always, this.each = e.validationOptions.each, this.context = e.validationOptions.context);
|
|
2143
2143
|
}
|
|
2144
2144
|
return e;
|
|
2145
|
-
}(),
|
|
2145
|
+
}(), Xi = function() {
|
|
2146
2146
|
function e() {}
|
|
2147
2147
|
return e.prototype.transform = function(e) {
|
|
2148
2148
|
var t = [];
|
|
@@ -2162,11 +2162,11 @@ var Ji = function() {
|
|
|
2162
2162
|
validationTypeOptions: r.options,
|
|
2163
2163
|
validationOptions: i
|
|
2164
2164
|
};
|
|
2165
|
-
t.push(new
|
|
2165
|
+
t.push(new Yi(a));
|
|
2166
2166
|
});
|
|
2167
2167
|
}), t;
|
|
2168
2168
|
}, e;
|
|
2169
|
-
}(),
|
|
2169
|
+
}(), Zi = function(e) {
|
|
2170
2170
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
2171
2171
|
if (n) return n.call(e);
|
|
2172
2172
|
if (e && typeof e.length == "number") return { next: function() {
|
|
@@ -2176,7 +2176,7 @@ var Ji = function() {
|
|
|
2176
2176
|
};
|
|
2177
2177
|
} };
|
|
2178
2178
|
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2179
|
-
},
|
|
2179
|
+
}, Qi = function(e, t) {
|
|
2180
2180
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2181
2181
|
if (!n) return e;
|
|
2182
2182
|
var r = n.call(e), i, a = [], o;
|
|
@@ -2192,7 +2192,7 @@ var Ji = function() {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
return a;
|
|
2195
|
-
},
|
|
2195
|
+
}, $i = function(e, t, n) {
|
|
2196
2196
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2197
2197
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2198
2198
|
};
|
|
@@ -2208,7 +2208,7 @@ var Ji = function() {
|
|
|
2208
2208
|
configurable: !0
|
|
2209
2209
|
}), e.prototype.addValidationSchema = function(e) {
|
|
2210
2210
|
var t = this;
|
|
2211
|
-
new
|
|
2211
|
+
new Xi().transform(e).forEach(function(e) {
|
|
2212
2212
|
return t.addValidationMetadata(e);
|
|
2213
2213
|
});
|
|
2214
2214
|
}, e.prototype.addValidationMetadata = function(e) {
|
|
@@ -2233,9 +2233,9 @@ var Ji = function() {
|
|
|
2233
2233
|
}) : !0;
|
|
2234
2234
|
}), u = [];
|
|
2235
2235
|
try {
|
|
2236
|
-
for (var d =
|
|
2237
|
-
var p =
|
|
2238
|
-
e.prototype instanceof ee && u.push.apply(u,
|
|
2236
|
+
for (var d = Zi(this.validationMetadatas.entries()), f = d.next(); !f.done; f = d.next()) {
|
|
2237
|
+
var p = Qi(f.value, 2), ee = p[0], te = p[1];
|
|
2238
|
+
e.prototype instanceof ee && u.push.apply(u, $i([], Qi(te), !1));
|
|
2239
2239
|
}
|
|
2240
2240
|
} catch (e) {
|
|
2241
2241
|
a = { error: e };
|
|
@@ -2270,7 +2270,7 @@ var Ji = function() {
|
|
|
2270
2270
|
}();
|
|
2271
2271
|
//#endregion
|
|
2272
2272
|
//#region ../twenty-shared/node_modules/class-validator/esm5/validation/ValidationTypes.js
|
|
2273
|
-
var
|
|
2273
|
+
var ea = new (function() {
|
|
2274
2274
|
function e() {
|
|
2275
2275
|
this.instances = [];
|
|
2276
2276
|
}
|
|
@@ -2283,15 +2283,15 @@ var $i = new (function() {
|
|
|
2283
2283
|
object: new e()
|
|
2284
2284
|
}, this.instances.push(t)), t.object;
|
|
2285
2285
|
}, e;
|
|
2286
|
-
}())(),
|
|
2287
|
-
function
|
|
2288
|
-
if (
|
|
2289
|
-
var t =
|
|
2290
|
-
if (t || !
|
|
2286
|
+
}())(), ta, J;
|
|
2287
|
+
function na(e) {
|
|
2288
|
+
if (ta) try {
|
|
2289
|
+
var t = ta.get(e);
|
|
2290
|
+
if (t || !J || !J.fallback) return t;
|
|
2291
2291
|
} catch (e) {
|
|
2292
|
-
if (!
|
|
2292
|
+
if (!J || !J.fallbackOnErrors) throw e;
|
|
2293
2293
|
}
|
|
2294
|
-
return
|
|
2294
|
+
return ea.get(e);
|
|
2295
2295
|
}
|
|
2296
2296
|
(function() {
|
|
2297
2297
|
function e(e, t, n) {
|
|
@@ -2299,7 +2299,7 @@ function ta(e) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
return Object.defineProperty(e.prototype, "instance", {
|
|
2301
2301
|
get: function() {
|
|
2302
|
-
return
|
|
2302
|
+
return na(this.target);
|
|
2303
2303
|
},
|
|
2304
2304
|
enumerable: !1,
|
|
2305
2305
|
configurable: !0
|
|
@@ -2307,233 +2307,233 @@ function ta(e) {
|
|
|
2307
2307
|
})();
|
|
2308
2308
|
//#endregion
|
|
2309
2309
|
//#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
|
|
2310
|
-
var
|
|
2310
|
+
var Y = /* @__PURE__ */ function(e) {
|
|
2311
2311
|
return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
|
|
2312
|
-
}({}),
|
|
2312
|
+
}({}), ra = /* @__PURE__ */ function(e) {
|
|
2313
2313
|
return e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e;
|
|
2314
|
-
}({}),
|
|
2315
|
-
type:
|
|
2314
|
+
}({}), ia = {
|
|
2315
|
+
type: Y.ACTOR,
|
|
2316
2316
|
properties: [
|
|
2317
2317
|
{
|
|
2318
2318
|
name: "source",
|
|
2319
|
-
type:
|
|
2319
|
+
type: Y.SELECT,
|
|
2320
2320
|
hidden: !1,
|
|
2321
2321
|
isRequired: !0,
|
|
2322
|
-
options: Object.keys(
|
|
2322
|
+
options: Object.keys(ra).map((e, t) => ({
|
|
2323
2323
|
id: ne(),
|
|
2324
|
-
label: `${
|
|
2324
|
+
label: `${ra[e].toLowerCase()}`,
|
|
2325
2325
|
value: e,
|
|
2326
2326
|
position: t
|
|
2327
2327
|
}))
|
|
2328
2328
|
},
|
|
2329
2329
|
{
|
|
2330
2330
|
name: "workspaceMemberId",
|
|
2331
|
-
type:
|
|
2331
|
+
type: Y.UUID,
|
|
2332
2332
|
hidden: "input",
|
|
2333
2333
|
isRequired: !1
|
|
2334
2334
|
},
|
|
2335
2335
|
{
|
|
2336
2336
|
name: "name",
|
|
2337
|
-
type:
|
|
2337
|
+
type: Y.TEXT,
|
|
2338
2338
|
hidden: "input",
|
|
2339
2339
|
isRequired: !0
|
|
2340
2340
|
},
|
|
2341
2341
|
{
|
|
2342
2342
|
name: "context",
|
|
2343
|
-
type:
|
|
2343
|
+
type: Y.RAW_JSON,
|
|
2344
2344
|
hidden: !1,
|
|
2345
2345
|
isRequired: !1
|
|
2346
2346
|
}
|
|
2347
2347
|
]
|
|
2348
|
-
},
|
|
2349
|
-
type:
|
|
2348
|
+
}, aa = {
|
|
2349
|
+
type: Y.ADDRESS,
|
|
2350
2350
|
properties: [
|
|
2351
2351
|
{
|
|
2352
2352
|
name: "addressStreet1",
|
|
2353
|
-
type:
|
|
2353
|
+
type: Y.TEXT,
|
|
2354
2354
|
hidden: !1,
|
|
2355
2355
|
isRequired: !1
|
|
2356
2356
|
},
|
|
2357
2357
|
{
|
|
2358
2358
|
name: "addressStreet2",
|
|
2359
|
-
type:
|
|
2359
|
+
type: Y.TEXT,
|
|
2360
2360
|
hidden: !1,
|
|
2361
2361
|
isRequired: !1
|
|
2362
2362
|
},
|
|
2363
2363
|
{
|
|
2364
2364
|
name: "addressCity",
|
|
2365
|
-
type:
|
|
2365
|
+
type: Y.TEXT,
|
|
2366
2366
|
hidden: !1,
|
|
2367
2367
|
isRequired: !1
|
|
2368
2368
|
},
|
|
2369
2369
|
{
|
|
2370
2370
|
name: "addressPostcode",
|
|
2371
|
-
type:
|
|
2371
|
+
type: Y.TEXT,
|
|
2372
2372
|
hidden: !1,
|
|
2373
2373
|
isRequired: !1
|
|
2374
2374
|
},
|
|
2375
2375
|
{
|
|
2376
2376
|
name: "addressState",
|
|
2377
|
-
type:
|
|
2377
|
+
type: Y.TEXT,
|
|
2378
2378
|
hidden: !1,
|
|
2379
2379
|
isRequired: !1
|
|
2380
2380
|
},
|
|
2381
2381
|
{
|
|
2382
2382
|
name: "addressCountry",
|
|
2383
|
-
type:
|
|
2383
|
+
type: Y.TEXT,
|
|
2384
2384
|
hidden: !1,
|
|
2385
2385
|
isRequired: !1
|
|
2386
2386
|
},
|
|
2387
2387
|
{
|
|
2388
2388
|
name: "addressLat",
|
|
2389
|
-
type:
|
|
2389
|
+
type: Y.NUMERIC,
|
|
2390
2390
|
hidden: !1,
|
|
2391
2391
|
isRequired: !1
|
|
2392
2392
|
},
|
|
2393
2393
|
{
|
|
2394
2394
|
name: "addressLng",
|
|
2395
|
-
type:
|
|
2395
|
+
type: Y.NUMERIC,
|
|
2396
2396
|
hidden: !1,
|
|
2397
2397
|
isRequired: !1
|
|
2398
2398
|
}
|
|
2399
2399
|
]
|
|
2400
|
-
},
|
|
2401
|
-
type:
|
|
2400
|
+
}, oa = {
|
|
2401
|
+
type: Y.CURRENCY,
|
|
2402
2402
|
properties: [{
|
|
2403
2403
|
name: "amountMicros",
|
|
2404
|
-
type:
|
|
2404
|
+
type: Y.NUMERIC,
|
|
2405
2405
|
hidden: !1,
|
|
2406
2406
|
isRequired: !1
|
|
2407
2407
|
}, {
|
|
2408
2408
|
name: "currencyCode",
|
|
2409
|
-
type:
|
|
2409
|
+
type: Y.TEXT,
|
|
2410
2410
|
hidden: !1,
|
|
2411
2411
|
isRequired: !1
|
|
2412
2412
|
}]
|
|
2413
|
-
},
|
|
2414
|
-
type:
|
|
2413
|
+
}, sa = {
|
|
2414
|
+
type: Y.EMAILS,
|
|
2415
2415
|
properties: [{
|
|
2416
2416
|
name: "primaryEmail",
|
|
2417
|
-
type:
|
|
2417
|
+
type: Y.TEXT,
|
|
2418
2418
|
hidden: !1,
|
|
2419
2419
|
isRequired: !1,
|
|
2420
2420
|
isIncludedInUniqueConstraint: !0
|
|
2421
2421
|
}, {
|
|
2422
2422
|
name: "additionalEmails",
|
|
2423
|
-
type:
|
|
2423
|
+
type: Y.RAW_JSON,
|
|
2424
2424
|
hidden: !1,
|
|
2425
2425
|
isRequired: !1
|
|
2426
2426
|
}]
|
|
2427
|
-
},
|
|
2428
|
-
type:
|
|
2427
|
+
}, ca = {
|
|
2428
|
+
type: Y.FULL_NAME,
|
|
2429
2429
|
properties: [{
|
|
2430
2430
|
name: "firstName",
|
|
2431
|
-
type:
|
|
2431
|
+
type: Y.TEXT,
|
|
2432
2432
|
hidden: !1,
|
|
2433
2433
|
isRequired: !1,
|
|
2434
2434
|
isIncludedInUniqueConstraint: !1
|
|
2435
2435
|
}, {
|
|
2436
2436
|
name: "lastName",
|
|
2437
|
-
type:
|
|
2437
|
+
type: Y.TEXT,
|
|
2438
2438
|
hidden: !1,
|
|
2439
2439
|
isRequired: !1,
|
|
2440
2440
|
isIncludedInUniqueConstraint: !1
|
|
2441
2441
|
}]
|
|
2442
|
-
},
|
|
2443
|
-
type:
|
|
2442
|
+
}, la = {
|
|
2443
|
+
type: Y.LINKS,
|
|
2444
2444
|
properties: [
|
|
2445
2445
|
{
|
|
2446
2446
|
name: "primaryLinkLabel",
|
|
2447
|
-
type:
|
|
2447
|
+
type: Y.TEXT,
|
|
2448
2448
|
hidden: !1,
|
|
2449
2449
|
isRequired: !1
|
|
2450
2450
|
},
|
|
2451
2451
|
{
|
|
2452
2452
|
name: "primaryLinkUrl",
|
|
2453
|
-
type:
|
|
2453
|
+
type: Y.TEXT,
|
|
2454
2454
|
hidden: !1,
|
|
2455
2455
|
isRequired: !1,
|
|
2456
2456
|
isIncludedInUniqueConstraint: !0
|
|
2457
2457
|
},
|
|
2458
2458
|
{
|
|
2459
2459
|
name: "secondaryLinks",
|
|
2460
|
-
type:
|
|
2460
|
+
type: Y.RAW_JSON,
|
|
2461
2461
|
hidden: !1,
|
|
2462
2462
|
isRequired: !1
|
|
2463
2463
|
}
|
|
2464
2464
|
]
|
|
2465
|
-
},
|
|
2466
|
-
type:
|
|
2465
|
+
}, ua = {
|
|
2466
|
+
type: Y.PHONES,
|
|
2467
2467
|
properties: [
|
|
2468
2468
|
{
|
|
2469
2469
|
name: "primaryPhoneNumber",
|
|
2470
|
-
type:
|
|
2470
|
+
type: Y.TEXT,
|
|
2471
2471
|
hidden: !1,
|
|
2472
2472
|
isRequired: !1,
|
|
2473
2473
|
isIncludedInUniqueConstraint: !0
|
|
2474
2474
|
},
|
|
2475
2475
|
{
|
|
2476
2476
|
name: "primaryPhoneCountryCode",
|
|
2477
|
-
type:
|
|
2477
|
+
type: Y.TEXT,
|
|
2478
2478
|
hidden: !1,
|
|
2479
2479
|
isRequired: !1,
|
|
2480
2480
|
isIncludedInUniqueConstraint: !0
|
|
2481
2481
|
},
|
|
2482
2482
|
{
|
|
2483
2483
|
name: "primaryPhoneCallingCode",
|
|
2484
|
-
type:
|
|
2484
|
+
type: Y.TEXT,
|
|
2485
2485
|
hidden: !1,
|
|
2486
2486
|
isRequired: !1,
|
|
2487
2487
|
isIncludedInUniqueConstraint: !0
|
|
2488
2488
|
},
|
|
2489
2489
|
{
|
|
2490
2490
|
name: "additionalPhones",
|
|
2491
|
-
type:
|
|
2491
|
+
type: Y.RAW_JSON,
|
|
2492
2492
|
hidden: !1,
|
|
2493
2493
|
isRequired: !1
|
|
2494
2494
|
}
|
|
2495
2495
|
]
|
|
2496
|
-
},
|
|
2497
|
-
type:
|
|
2496
|
+
}, da = {
|
|
2497
|
+
type: Y.RICH_TEXT,
|
|
2498
2498
|
properties: [{
|
|
2499
2499
|
name: "blocknote",
|
|
2500
|
-
type:
|
|
2500
|
+
type: Y.TEXT,
|
|
2501
2501
|
hidden: !1,
|
|
2502
2502
|
isRequired: !1
|
|
2503
2503
|
}, {
|
|
2504
2504
|
name: "markdown",
|
|
2505
|
-
type:
|
|
2505
|
+
type: Y.TEXT,
|
|
2506
2506
|
hidden: !1,
|
|
2507
2507
|
isRequired: !1
|
|
2508
2508
|
}]
|
|
2509
2509
|
};
|
|
2510
|
-
|
|
2511
|
-
blocknote:
|
|
2512
|
-
markdown:
|
|
2510
|
+
xi({
|
|
2511
|
+
blocknote: Yr().nullable().optional(),
|
|
2512
|
+
markdown: Yr().nullable()
|
|
2513
2513
|
}), new Map([
|
|
2514
|
-
[
|
|
2515
|
-
[
|
|
2516
|
-
[
|
|
2517
|
-
[
|
|
2518
|
-
[
|
|
2519
|
-
[
|
|
2520
|
-
[
|
|
2521
|
-
[
|
|
2514
|
+
[Y.LINKS, la],
|
|
2515
|
+
[Y.CURRENCY, oa],
|
|
2516
|
+
[Y.FULL_NAME, ca],
|
|
2517
|
+
[Y.ADDRESS, aa],
|
|
2518
|
+
[Y.ACTOR, ia],
|
|
2519
|
+
[Y.EMAILS, sa],
|
|
2520
|
+
[Y.PHONES, ua],
|
|
2521
|
+
[Y.RICH_TEXT, da]
|
|
2522
2522
|
]);
|
|
2523
2523
|
//#endregion
|
|
2524
|
-
//#region ../twenty-shared/dist/types-
|
|
2525
|
-
var
|
|
2524
|
+
//#region ../twenty-shared/dist/types-CMWXLNI9.mjs
|
|
2525
|
+
var X = /* @__PURE__ */ function(e) {
|
|
2526
2526
|
return e.GOOGLE = "google", e.MICROSOFT = "microsoft", e.IMAP_SMTP_CALDAV = "imap_smtp_caldav", e.OIDC = "oidc", e.SAML = "saml", e.EMAIL_GROUP = "email_group", e.APP = "app", e;
|
|
2527
2527
|
}({});
|
|
2528
|
-
|
|
2529
|
-
var
|
|
2528
|
+
Y.RELATION, Y.MORPH_RELATION, Y.FILES, Y.TS_VECTOR;
|
|
2529
|
+
var fa = /* @__PURE__ */ function(e) {
|
|
2530
2530
|
return e.EMAIL = "EMAIL", e.SMS = "SMS", e.EMAIL_GROUP = "EMAIL_GROUP", e.APP = "APP", e;
|
|
2531
|
-
}({}),
|
|
2531
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
2532
2532
|
return e.DAY = "DAY", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.YEAR = "YEAR", e.WEEK = "WEEK", e.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", e.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", e.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", e.NONE = "NONE", e;
|
|
2533
|
-
}({}),
|
|
2533
|
+
}({}), Q = /* @__PURE__ */ function(e) {
|
|
2534
2534
|
return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
|
|
2535
2535
|
}({});
|
|
2536
|
-
|
|
2536
|
+
Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH_TEXT, Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH_TEXT, {
|
|
2537
2537
|
DEVELOPERS_CONTRIBUTE_CAPABILITIES_LOCAL_SETUP: "/developers/contribute/capabilities/local-setup",
|
|
2538
2538
|
DEVELOPERS_CONTRIBUTE_COMMANDS: "/developers/contribute/commands",
|
|
2539
2539
|
DEVELOPERS_CONTRIBUTE_STYLE_GUIDE: "/developers/contribute/style-guide",
|
|
@@ -2601,16 +2601,22 @@ X.CURRENCY, X.EMAILS, X.LINKS, X.PHONES, X.FULL_NAME, X.ADDRESS, X.ACTOR, X.RICH
|
|
|
2601
2601
|
GETTING_STARTED_KEY_FEATURES: "/getting-started/key-features",
|
|
2602
2602
|
GETTING_STARTED_QUICKSTART: "/getting-started/quickstart",
|
|
2603
2603
|
UI_ACCESSIBILITY: "/ui/accessibility",
|
|
2604
|
+
UI_COMPONENTS_CODE_EDITOR: "/ui/components/code-editor",
|
|
2605
|
+
UI_COMPONENTS_INPUT_ICON_BUTTON: "/ui/components/input/icon-button",
|
|
2604
2606
|
UI_COMPONENTS_INPUT_LIGHT_BUTTON: "/ui/components/input/light-button",
|
|
2607
|
+
UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON: "/ui/components/input/light-icon-button",
|
|
2605
2608
|
UI_COMPONENTS_INPUT_MAIN_BUTTON: "/ui/components/input/main-button",
|
|
2606
2609
|
UI_COMPONENTS_OVERVIEW: "/ui/components/overview",
|
|
2610
|
+
UI_COMPONENTS_SECTION: "/ui/components/section",
|
|
2611
|
+
UI_COMPONENTS_SETTINGS_ROW: "/ui/components/settings-row",
|
|
2612
|
+
UI_COMPONENTS_TAB_BUTTON: "/ui/components/tab-button",
|
|
2613
|
+
UI_COMPONENTS_TOAST: "/ui/components/toast",
|
|
2607
2614
|
UI_DARK_MODE: "/ui/dark-mode",
|
|
2608
2615
|
UI_GETTING_STARTED: "/ui/getting-started",
|
|
2609
2616
|
UI_PRIMITIVES_DATA_DISPLAY_AVATAR: "/ui/primitives/data-display/avatar",
|
|
2610
2617
|
UI_PRIMITIVES_DATA_DISPLAY_CHIP: "/ui/primitives/data-display/chip",
|
|
2611
2618
|
UI_PRIMITIVES_DATA_DISPLAY_STATUS: "/ui/primitives/data-display/status",
|
|
2612
2619
|
UI_PRIMITIVES_DATA_DISPLAY_TAG: "/ui/primitives/data-display/tag",
|
|
2613
|
-
UI_PRIMITIVES_FEEDBACK_TOAST: "/ui/primitives/feedback/toast",
|
|
2614
2620
|
UI_PRIMITIVES_INPUT_BUTTON: "/ui/primitives/input/button",
|
|
2615
2621
|
UI_PRIMITIVES_INPUT_BUTTON_GROUP: "/ui/primitives/input/button-group",
|
|
2616
2622
|
UI_PRIMITIVES_INPUT_CHECKBOX: "/ui/primitives/input/checkbox",
|
|
@@ -2627,8 +2633,11 @@ X.CURRENCY, X.EMAILS, X.LINKS, X.PHONES, X.FULL_NAME, X.ADDRESS, X.ACTOR, X.RICH
|
|
|
2627
2633
|
UI_PRIMITIVES_NAVIGATION_TABS: "/ui/primitives/navigation/tabs",
|
|
2628
2634
|
UI_PRIMITIVES_OVERVIEW: "/ui/primitives/overview",
|
|
2629
2635
|
UI_PRIMITIVES_SURFACES_ALERT_DIALOG: "/ui/primitives/surfaces/alert-dialog",
|
|
2636
|
+
UI_PRIMITIVES_SURFACES_DIALOG: "/ui/primitives/surfaces/dialog",
|
|
2630
2637
|
UI_PRIMITIVES_SURFACES_MENU: "/ui/primitives/surfaces/menu",
|
|
2631
2638
|
UI_PRIMITIVES_SURFACES_POPOVER: "/ui/primitives/surfaces/popover",
|
|
2639
|
+
UI_PRIMITIVES_SURFACES_TOOLTIP: "/ui/primitives/surfaces/tooltip",
|
|
2640
|
+
UI_PRIMITIVES_TYPOGRAPHY_HEADING: "/ui/primitives/typography/heading",
|
|
2632
2641
|
UI_PRIMITIVES_TYPOGRAPHY_TEXT: "/ui/primitives/typography/text",
|
|
2633
2642
|
UI_SSR: "/ui/ssr",
|
|
2634
2643
|
UI_THEMING: "/ui/theming",
|
|
@@ -2744,19 +2753,25 @@ X.CURRENCY, X.EMAILS, X.LINKS, X.PHONES, X.FULL_NAME, X.ADDRESS, X.ACTOR, X.RICH
|
|
|
2744
2753
|
USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING: "/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting",
|
|
2745
2754
|
USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ: "/user-guide/workflows/how-tos/need-more-help/workflows-faq",
|
|
2746
2755
|
USER_GUIDE_WORKFLOWS_OVERVIEW: "/user-guide/workflows/overview"
|
|
2747
|
-
}.GETTING_STARTED_INTRODUCTION,
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
]),
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
]),
|
|
2756
|
+
}.GETTING_STARTED_INTRODUCTION, X.GOOGLE, X.MICROSOFT, X.IMAP_SMTP_CALDAV, X.GOOGLE, X.MICROSOFT, X.IMAP_SMTP_CALDAV, X.EMAIL_GROUP, new Set([
|
|
2757
|
+
Y.TS_VECTOR,
|
|
2758
|
+
Y.RAW_JSON,
|
|
2759
|
+
Y.FILES,
|
|
2760
|
+
Y.POSITION
|
|
2761
|
+
]), Y.ACTOR, Y.ADDRESS, Y.ARRAY, Y.BOOLEAN, Y.CURRENCY, Y.DATE, Y.DATE_TIME, Y.EMAILS, Y.FILES, Y.FULL_NAME, Y.LINKS, Y.MORPH_RELATION, Y.MULTI_SELECT, Y.NUMBER, Y.NUMERIC, Y.PHONES, Y.POSITION, Y.RATING, Y.RAW_JSON, Y.RELATION, Y.RICH_TEXT, Y.SELECT, Y.TEXT, Y.TS_VECTOR, Y.UUID, new Set([
|
|
2762
|
+
Y.TS_VECTOR,
|
|
2763
|
+
Y.ARRAY,
|
|
2764
|
+
Y.MULTI_SELECT,
|
|
2765
|
+
Y.RAW_JSON
|
|
2766
|
+
]), Z.DAY, Z.WEEK, Z.MONTH, Z.QUARTER, Z.YEAR, Y.FILES, Y.LINKS, Y.TEXT, Y.FULL_NAME, Y.UUID, fa.EMAIL, Q.TABLE, Q.KANBAN, Q.CALENDAR, Q.LIST, Q.FIELDS_WIDGET, Q.TABLE_WIDGET, Q.KANBAN_WIDGET, Q.LIST_WIDGET, Q.CALENDAR_WIDGET;
|
|
2767
|
+
//#endregion
|
|
2768
|
+
//#region ../twenty-shared/dist/isPlainObject-BzQ9HkDs.mjs
|
|
2769
|
+
var $ = /* @__PURE__ */ function(e) {
|
|
2770
|
+
return e.OK = "OK", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e.WARNING = "WARNING", e.ERROR = "ERROR", e.NEUTRAL = "NEUTRAL", e.UNKNOWN = "UNKNOWN", e;
|
|
2771
|
+
}({});
|
|
2772
|
+
Object.values($).filter((e) => e !== $.OK && e !== $.UNKNOWN), Y.TEXT, Y.ARRAY, Y.BOOLEAN, Y.DATE, Y.DATE_TIME, Y.NUMBER, Y.NUMERIC, Y.RAW_JSON, Y.RICH_TEXT, Y.SELECT, Y.MULTI_SELECT;
|
|
2758
2773
|
//#endregion
|
|
2759
2774
|
//#region ../twenty-shared/dist/application.mjs
|
|
2760
|
-
var
|
|
2775
|
+
var pa = "TWENTY_API_KEY", ma = "TWENTY_API_URL", ha = "TWENTY_APP_ACCESS_TOKEN", ga = "TWENTY_APP_APPLICATION_ACCESS_TOKEN", _a = "TWENTY_FUNCTIONS_URL";
|
|
2761
2776
|
//#endregion
|
|
2762
|
-
export {
|
|
2777
|
+
export { ma as a, ga as i, _a as n, pa as r, ha as t };
|