@pagelines/sdk 1.0.829 → 1.0.831
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/AgentWrap.js +1 -1
- package/dist/AgentWrap.js.map +1 -1
- package/dist/agent/voice/voice-session-client.d.ts +5 -6
- package/dist/agent.js +29 -8
- package/dist/agent.js.map +1 -1
- package/dist/contract.js +811 -791
- package/dist/contract.js.map +1 -1
- package/dist/sdk.css +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -334,7 +334,7 @@ var f = /* @__PURE__ */ e((e, t) => {
|
|
|
334
334
|
value: () => e.message,
|
|
335
335
|
enumerable: !1
|
|
336
336
|
});
|
|
337
|
-
}, "initializer"), p = $constructor("$ZodError", f),
|
|
337
|
+
}, "initializer"), p = $constructor("$ZodError", f), m = $constructor("$ZodError", f, { Parent: Error });
|
|
338
338
|
function flattenError(e, t = (e) => e.message) {
|
|
339
339
|
let n = {}, r = [];
|
|
340
340
|
for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
@@ -407,7 +407,7 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
407
407
|
success: !0,
|
|
408
408
|
data: a.value
|
|
409
409
|
};
|
|
410
|
-
},
|
|
410
|
+
}, h = /* @__PURE__*/ _safeParse(m), _safeParseAsync = (e) => async (t, n, r) => {
|
|
411
411
|
let i = r ? {
|
|
412
412
|
...r,
|
|
413
413
|
async: !0
|
|
@@ -422,7 +422,7 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
422
422
|
success: !0,
|
|
423
423
|
data: a.value
|
|
424
424
|
};
|
|
425
|
-
},
|
|
425
|
+
}, ee = /* @__PURE__*/ _safeParseAsync(m), _encode = (e) => (t, n, r) => {
|
|
426
426
|
let i = r ? {
|
|
427
427
|
...r,
|
|
428
428
|
direction: "backward"
|
|
@@ -446,11 +446,11 @@ var _parse = (e) => (t, n, r, i) => {
|
|
|
446
446
|
direction: "backward"
|
|
447
447
|
} : { direction: "backward" };
|
|
448
448
|
return _safeParseAsync(e)(t, n, i);
|
|
449
|
-
}, _safeDecodeAsync = (e) => async (t, n, r) => _safeParseAsync(e)(t, n, r),
|
|
449
|
+
}, _safeDecodeAsync = (e) => async (t, n, r) => _safeParseAsync(e)(t, n, r), te = /^[cC][0-9a-z]{6,}$/, ne = /^[0-9a-z]+$/, re = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ie = /^[0-9a-vA-V]{20}$/, ae = /^[A-Za-z0-9]{27}$/, oe = /^[a-zA-Z0-9_-]{21}$/, se = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ce = /^([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})$/, le = /* @__PURE__ */ 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)$/, "uuid"), ue = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, de = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
450
450
|
function emoji() {
|
|
451
|
-
return new RegExp(
|
|
451
|
+
return new RegExp(de, "u");
|
|
452
452
|
}
|
|
453
|
-
var
|
|
453
|
+
var fe = /^(?:(?: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])$/, pe = /^(([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}|:))$/, me = /^((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])$/, he = /^(([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])$/, ge = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _e = /^[A-Za-z0-9_-]*$/, ve = /^https?$/, ye = /^\+[1-9]\d{6,14}$/, be = "(?:(?:\\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])))", xe = /*@__PURE__*/ RegExp(`^${be}$`);
|
|
454
454
|
function timeSource(e) {
|
|
455
455
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
456
456
|
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+)?)?`;
|
|
@@ -463,22 +463,22 @@ function datetime$1(e) {
|
|
|
463
463
|
let t = timeSource({ precision: e.precision }), n = ["Z"];
|
|
464
464
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
465
465
|
let r = `${t}(?:${n.join("|")})`;
|
|
466
|
-
return RegExp(`^${
|
|
466
|
+
return RegExp(`^${be}T(?:${r})$`);
|
|
467
467
|
}
|
|
468
468
|
e(datetime$1, "datetime");
|
|
469
|
-
var
|
|
469
|
+
var Se = /* @__PURE__ */ e((e) => {
|
|
470
470
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
471
471
|
return RegExp(`^${t}$`);
|
|
472
|
-
}, "string"),
|
|
472
|
+
}, "string"), Ce = /^-?\d+$/, we = /^-?\d+(?:\.\d+)?$/, Te = /^(?:true|false)$/i, Ee = /^null$/i, De = /^[^A-Z]*$/, Oe = /^[^a-z]*$/, g = /*@__PURE__*/ $constructor("$ZodCheck", (e, t) => {
|
|
473
473
|
var n;
|
|
474
474
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
475
|
-
}),
|
|
475
|
+
}), ke = {
|
|
476
476
|
number: "number",
|
|
477
477
|
bigint: "bigint",
|
|
478
478
|
object: "date"
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
let n =
|
|
479
|
+
}, Ae = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (e, t) => {
|
|
480
|
+
g.init(e, t);
|
|
481
|
+
let n = ke[typeof t.value];
|
|
482
482
|
e._zod.onattach.push((e) => {
|
|
483
483
|
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
484
484
|
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
@@ -493,9 +493,9 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
493
493
|
continue: !t.abort
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
}),
|
|
497
|
-
|
|
498
|
-
let n =
|
|
496
|
+
}), je = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (e, t) => {
|
|
497
|
+
g.init(e, t);
|
|
498
|
+
let n = ke[typeof t.value];
|
|
499
499
|
e._zod.onattach.push((e) => {
|
|
500
500
|
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
501
501
|
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
@@ -510,8 +510,8 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
510
510
|
continue: !t.abort
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
|
-
}),
|
|
514
|
-
|
|
513
|
+
}), Me = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (e, t) => {
|
|
514
|
+
g.init(e, t), e._zod.onattach.push((e) => {
|
|
515
515
|
var n;
|
|
516
516
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
517
517
|
}), e._zod.check = (n) => {
|
|
@@ -525,12 +525,12 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
525
525
|
continue: !t.abort
|
|
526
526
|
});
|
|
527
527
|
};
|
|
528
|
-
}),
|
|
529
|
-
|
|
528
|
+
}), Ne = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (e, t) => {
|
|
529
|
+
g.init(e, t), t.format = t.format || "float64";
|
|
530
530
|
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = d[t.format];
|
|
531
531
|
e._zod.onattach.push((e) => {
|
|
532
532
|
let r = e._zod.bag;
|
|
533
|
-
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern =
|
|
533
|
+
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Ce);
|
|
534
534
|
}), e._zod.check = (o) => {
|
|
535
535
|
let s = o.value;
|
|
536
536
|
if (n) {
|
|
@@ -586,9 +586,9 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
586
586
|
continue: !t.abort
|
|
587
587
|
});
|
|
588
588
|
};
|
|
589
|
-
}),
|
|
589
|
+
}), Pe = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (e, t) => {
|
|
590
590
|
var n;
|
|
591
|
-
|
|
591
|
+
g.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
592
592
|
let t = e.value;
|
|
593
593
|
return !nullish(t) && t.length !== void 0;
|
|
594
594
|
}), e._zod.onattach.push((e) => {
|
|
@@ -608,9 +608,9 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
608
608
|
continue: !t.abort
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
|
-
}),
|
|
611
|
+
}), Fe = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (e, t) => {
|
|
612
612
|
var n;
|
|
613
|
-
|
|
613
|
+
g.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
614
614
|
let t = e.value;
|
|
615
615
|
return !nullish(t) && t.length !== void 0;
|
|
616
616
|
}), e._zod.onattach.push((e) => {
|
|
@@ -630,9 +630,9 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
630
630
|
continue: !t.abort
|
|
631
631
|
});
|
|
632
632
|
};
|
|
633
|
-
}),
|
|
633
|
+
}), Ie = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (e, t) => {
|
|
634
634
|
var n;
|
|
635
|
-
|
|
635
|
+
g.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
636
636
|
let t = e.value;
|
|
637
637
|
return !nullish(t) && t.length !== void 0;
|
|
638
638
|
}), e._zod.onattach.push((e) => {
|
|
@@ -658,9 +658,9 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
658
658
|
continue: !t.abort
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
}),
|
|
661
|
+
}), v = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (e, t) => {
|
|
662
662
|
var n, r;
|
|
663
|
-
|
|
663
|
+
g.init(e, t), e._zod.onattach.push((e) => {
|
|
664
664
|
let n = e._zod.bag;
|
|
665
665
|
n.format = t.format, t.pattern && (n.patterns ?? (n.patterns = /* @__PURE__ */ new Set()), n.patterns.add(t.pattern));
|
|
666
666
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -674,8 +674,8 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
674
674
|
continue: !t.abort
|
|
675
675
|
});
|
|
676
676
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
677
|
-
}),
|
|
678
|
-
|
|
677
|
+
}), Le = /*@__PURE__*/ $constructor("$ZodCheckRegex", (e, t) => {
|
|
678
|
+
v.init(e, t), e._zod.check = (n) => {
|
|
679
679
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
680
680
|
origin: "string",
|
|
681
681
|
code: "invalid_format",
|
|
@@ -686,12 +686,12 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
686
686
|
continue: !t.abort
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
}),
|
|
690
|
-
t.pattern ?? (t.pattern =
|
|
691
|
-
}),
|
|
692
|
-
t.pattern ?? (t.pattern =
|
|
693
|
-
}),
|
|
694
|
-
|
|
689
|
+
}), Re = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (e, t) => {
|
|
690
|
+
t.pattern ?? (t.pattern = De), v.init(e, t);
|
|
691
|
+
}), ze = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (e, t) => {
|
|
692
|
+
t.pattern ?? (t.pattern = Oe), v.init(e, t);
|
|
693
|
+
}), Be = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (e, t) => {
|
|
694
|
+
g.init(e, t);
|
|
695
695
|
let n = escapeRegex(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
696
696
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
697
697
|
let t = e._zod.bag;
|
|
@@ -707,8 +707,8 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
707
707
|
continue: !t.abort
|
|
708
708
|
});
|
|
709
709
|
};
|
|
710
|
-
}),
|
|
711
|
-
|
|
710
|
+
}), Ve = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (e, t) => {
|
|
711
|
+
g.init(e, t);
|
|
712
712
|
let n = RegExp(`^${escapeRegex(t.prefix)}.*`);
|
|
713
713
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((e) => {
|
|
714
714
|
let t = e._zod.bag;
|
|
@@ -724,8 +724,8 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
724
724
|
continue: !t.abort
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
|
-
}),
|
|
728
|
-
|
|
727
|
+
}), He = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (e, t) => {
|
|
728
|
+
g.init(e, t);
|
|
729
729
|
let n = RegExp(`.*${escapeRegex(t.suffix)}$`);
|
|
730
730
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((e) => {
|
|
731
731
|
let t = e._zod.bag;
|
|
@@ -741,8 +741,8 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
741
741
|
continue: !t.abort
|
|
742
742
|
});
|
|
743
743
|
};
|
|
744
|
-
}),
|
|
745
|
-
|
|
744
|
+
}), Ue = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (e, t) => {
|
|
745
|
+
g.init(e, t), e._zod.check = (e) => {
|
|
746
746
|
e.value = t.tx(e.value);
|
|
747
747
|
};
|
|
748
748
|
}), Doc = class {
|
|
@@ -764,13 +764,13 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
764
764
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
765
765
|
return new e(...t, n.join("\n"));
|
|
766
766
|
}
|
|
767
|
-
},
|
|
767
|
+
}, We = {
|
|
768
768
|
major: 4,
|
|
769
769
|
minor: 4,
|
|
770
770
|
patch: 3
|
|
771
|
-
},
|
|
771
|
+
}, y = /*@__PURE__*/ $constructor("$ZodType", (e, t) => {
|
|
772
772
|
var n;
|
|
773
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
773
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = We;
|
|
774
774
|
let r = [...e._zod.def.checks ?? []];
|
|
775
775
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
776
776
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -827,17 +827,17 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
827
827
|
defineLazy(e, "~standard", () => ({
|
|
828
828
|
validate: (t) => {
|
|
829
829
|
try {
|
|
830
|
-
let n =
|
|
830
|
+
let n = h(e, t);
|
|
831
831
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
832
832
|
} catch {
|
|
833
|
-
return
|
|
833
|
+
return ee(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
|
|
834
834
|
}
|
|
835
835
|
},
|
|
836
836
|
vendor: "zod",
|
|
837
837
|
version: 1
|
|
838
838
|
}));
|
|
839
|
-
}),
|
|
840
|
-
|
|
839
|
+
}), Ge = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
|
|
840
|
+
y.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Se(e._zod.bag), e._zod.parse = (n, r) => {
|
|
841
841
|
if (t.coerce) try {
|
|
842
842
|
n.value = String(n.value);
|
|
843
843
|
} catch {}
|
|
@@ -848,11 +848,11 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
848
848
|
inst: e
|
|
849
849
|
}), n;
|
|
850
850
|
};
|
|
851
|
-
}),
|
|
852
|
-
|
|
853
|
-
}),
|
|
854
|
-
t.pattern ?? (t.pattern =
|
|
855
|
-
}),
|
|
851
|
+
}), b = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
|
|
852
|
+
v.init(e, t), Ge.init(e, t);
|
|
853
|
+
}), Ke = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
|
|
854
|
+
t.pattern ?? (t.pattern = ce), b.init(e, t);
|
|
855
|
+
}), qe = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
|
|
856
856
|
if (t.version) {
|
|
857
857
|
let e = {
|
|
858
858
|
v1: 1,
|
|
@@ -865,16 +865,16 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
865
865
|
v8: 8
|
|
866
866
|
}[t.version];
|
|
867
867
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
868
|
-
t.pattern ?? (t.pattern =
|
|
869
|
-
} else t.pattern ?? (t.pattern =
|
|
870
|
-
|
|
871
|
-
}),
|
|
872
|
-
t.pattern ?? (t.pattern =
|
|
873
|
-
}),
|
|
874
|
-
|
|
868
|
+
t.pattern ?? (t.pattern = le(e));
|
|
869
|
+
} else t.pattern ?? (t.pattern = le());
|
|
870
|
+
b.init(e, t);
|
|
871
|
+
}), Je = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
|
|
872
|
+
t.pattern ?? (t.pattern = ue), b.init(e, t);
|
|
873
|
+
}), Ye = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
|
|
874
|
+
b.init(e, t), e._zod.check = (n) => {
|
|
875
875
|
try {
|
|
876
876
|
let r = n.value.trim();
|
|
877
|
-
if (!t.normalize && t.protocol?.source ===
|
|
877
|
+
if (!t.normalize && t.protocol?.source === ve.source && !/^https?:\/\//i.test(r)) {
|
|
878
878
|
n.issues.push({
|
|
879
879
|
code: "invalid_format",
|
|
880
880
|
format: "url",
|
|
@@ -914,32 +914,32 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
|
-
}),
|
|
918
|
-
t.pattern ?? (t.pattern = emoji()),
|
|
919
|
-
}),
|
|
920
|
-
t.pattern ?? (t.pattern =
|
|
921
|
-
}),
|
|
922
|
-
t.pattern ?? (t.pattern =
|
|
923
|
-
}),
|
|
924
|
-
t.pattern ?? (t.pattern =
|
|
925
|
-
}),
|
|
926
|
-
t.pattern ?? (t.pattern =
|
|
927
|
-
}),
|
|
928
|
-
t.pattern ?? (t.pattern =
|
|
929
|
-
}),
|
|
930
|
-
t.pattern ?? (t.pattern =
|
|
931
|
-
}),
|
|
932
|
-
t.pattern ?? (t.pattern = datetime$1(t)),
|
|
933
|
-
}),
|
|
934
|
-
t.pattern ?? (t.pattern =
|
|
935
|
-
}),
|
|
936
|
-
t.pattern ?? (t.pattern = time$1(t)),
|
|
937
|
-
}),
|
|
938
|
-
t.pattern ?? (t.pattern =
|
|
939
|
-
}),
|
|
940
|
-
t.pattern ?? (t.pattern =
|
|
941
|
-
}),
|
|
942
|
-
t.pattern ?? (t.pattern =
|
|
917
|
+
}), Xe = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
|
|
918
|
+
t.pattern ?? (t.pattern = emoji()), b.init(e, t);
|
|
919
|
+
}), Ze = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
|
|
920
|
+
t.pattern ?? (t.pattern = oe), b.init(e, t);
|
|
921
|
+
}), Qe = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
|
|
922
|
+
t.pattern ?? (t.pattern = te), b.init(e, t);
|
|
923
|
+
}), $e = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
|
|
924
|
+
t.pattern ?? (t.pattern = ne), b.init(e, t);
|
|
925
|
+
}), et = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
|
|
926
|
+
t.pattern ?? (t.pattern = re), b.init(e, t);
|
|
927
|
+
}), tt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
|
|
928
|
+
t.pattern ?? (t.pattern = ie), b.init(e, t);
|
|
929
|
+
}), nt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
|
|
930
|
+
t.pattern ?? (t.pattern = ae), b.init(e, t);
|
|
931
|
+
}), rt = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
|
|
932
|
+
t.pattern ?? (t.pattern = datetime$1(t)), b.init(e, t);
|
|
933
|
+
}), it = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
|
|
934
|
+
t.pattern ?? (t.pattern = xe), b.init(e, t);
|
|
935
|
+
}), at = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
|
|
936
|
+
t.pattern ?? (t.pattern = time$1(t)), b.init(e, t);
|
|
937
|
+
}), ot = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
|
|
938
|
+
t.pattern ?? (t.pattern = se), b.init(e, t);
|
|
939
|
+
}), st = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
|
|
940
|
+
t.pattern ?? (t.pattern = fe), b.init(e, t), e._zod.bag.format = "ipv4";
|
|
941
|
+
}), ct = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
|
|
942
|
+
t.pattern ?? (t.pattern = pe), b.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
943
943
|
try {
|
|
944
944
|
new URL(`http://[${n.value}]`);
|
|
945
945
|
} catch {
|
|
@@ -952,10 +952,10 @@ var Ce = /* @__PURE__ */ e((e) => {
|
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
|
-
}),
|
|
956
|
-
t.pattern ?? (t.pattern =
|
|
957
|
-
}),
|
|
958
|
-
t.pattern ?? (t.pattern =
|
|
955
|
+
}), lt = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
|
|
956
|
+
t.pattern ?? (t.pattern = me), b.init(e, t);
|
|
957
|
+
}), ut = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
|
|
958
|
+
t.pattern ?? (t.pattern = he), b.init(e, t), e._zod.check = (n) => {
|
|
959
959
|
let r = n.value.split("/");
|
|
960
960
|
try {
|
|
961
961
|
if (r.length !== 2) throw Error();
|
|
@@ -984,8 +984,8 @@ function isValidBase64(e) {
|
|
|
984
984
|
return !1;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
var
|
|
988
|
-
t.pattern ?? (t.pattern =
|
|
987
|
+
var dt = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
988
|
+
t.pattern ?? (t.pattern = ge), b.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
989
989
|
isValidBase64(n.value) || n.issues.push({
|
|
990
990
|
code: "invalid_format",
|
|
991
991
|
format: "base64",
|
|
@@ -996,12 +996,12 @@ var ft = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
|
996
996
|
};
|
|
997
997
|
});
|
|
998
998
|
function isValidBase64URL(e) {
|
|
999
|
-
if (!
|
|
999
|
+
if (!_e.test(e)) return !1;
|
|
1000
1000
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1001
1001
|
return isValidBase64(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1004
|
-
t.pattern ?? (t.pattern =
|
|
1003
|
+
var ft = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
1004
|
+
t.pattern ?? (t.pattern = _e), b.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
1005
1005
|
isValidBase64URL(n.value) || n.issues.push({
|
|
1006
1006
|
code: "invalid_format",
|
|
1007
1007
|
format: "base64url",
|
|
@@ -1010,8 +1010,8 @@ var pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
|
1010
1010
|
continue: !t.abort
|
|
1011
1011
|
});
|
|
1012
1012
|
};
|
|
1013
|
-
}),
|
|
1014
|
-
t.pattern ?? (t.pattern =
|
|
1013
|
+
}), pt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
|
|
1014
|
+
t.pattern ?? (t.pattern = ye), b.init(e, t);
|
|
1015
1015
|
});
|
|
1016
1016
|
function isValidJWT(e, t = null) {
|
|
1017
1017
|
try {
|
|
@@ -1025,8 +1025,8 @@ function isValidJWT(e, t = null) {
|
|
|
1025
1025
|
return !1;
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1028
|
+
var mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
1029
|
+
b.init(e, t), e._zod.check = (n) => {
|
|
1030
1030
|
isValidJWT(n.value, t.alg) || n.issues.push({
|
|
1031
1031
|
code: "invalid_format",
|
|
1032
1032
|
format: "jwt",
|
|
@@ -1035,8 +1035,8 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1035
1035
|
continue: !t.abort
|
|
1036
1036
|
});
|
|
1037
1037
|
};
|
|
1038
|
-
}),
|
|
1039
|
-
|
|
1038
|
+
}), ht = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
|
|
1039
|
+
y.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? we, e._zod.parse = (n, r) => {
|
|
1040
1040
|
if (t.coerce) try {
|
|
1041
1041
|
n.value = Number(n.value);
|
|
1042
1042
|
} catch {}
|
|
@@ -1051,10 +1051,10 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1051
1051
|
...a ? { received: a } : {}
|
|
1052
1052
|
}), n;
|
|
1053
1053
|
};
|
|
1054
|
-
}),
|
|
1055
|
-
|
|
1056
|
-
}),
|
|
1057
|
-
|
|
1054
|
+
}), gt = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
|
|
1055
|
+
Ne.init(e, t), ht.init(e, t);
|
|
1056
|
+
}), _t = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
|
|
1057
|
+
y.init(e, t), e._zod.pattern = Te, e._zod.parse = (n, r) => {
|
|
1058
1058
|
if (t.coerce) try {
|
|
1059
1059
|
n.value = !!n.value;
|
|
1060
1060
|
} catch {}
|
|
@@ -1066,8 +1066,8 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1066
1066
|
inst: e
|
|
1067
1067
|
}), n;
|
|
1068
1068
|
};
|
|
1069
|
-
}),
|
|
1070
|
-
|
|
1069
|
+
}), vt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
|
|
1070
|
+
y.init(e, t), e._zod.pattern = Ee, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1071
1071
|
let r = t.value;
|
|
1072
1072
|
return r === null || t.issues.push({
|
|
1073
1073
|
expected: "null",
|
|
@@ -1076,12 +1076,12 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1076
1076
|
inst: e
|
|
1077
1077
|
}), t;
|
|
1078
1078
|
};
|
|
1079
|
-
}),
|
|
1080
|
-
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1079
|
+
}), yt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
|
|
1080
|
+
y.init(e, t), e._zod.parse = (e) => e;
|
|
1081
|
+
}), bt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
|
|
1082
|
+
y.init(e, t), e._zod.parse = (e) => e;
|
|
1083
|
+
}), xt = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
|
|
1084
|
+
y.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1085
1085
|
expected: "never",
|
|
1086
1086
|
code: "invalid_type",
|
|
1087
1087
|
input: t.value,
|
|
@@ -1091,8 +1091,8 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1091
1091
|
function handleArrayResult(e, t, n) {
|
|
1092
1092
|
e.issues.length && t.issues.push(...prefixIssues(n, e.issues)), t.value[n] = e.value;
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1094
|
+
var St = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
|
|
1095
|
+
y.init(e, t), e._zod.parse = (n, r) => {
|
|
1096
1096
|
let i = n.value;
|
|
1097
1097
|
if (!Array.isArray(i)) return n.issues.push({
|
|
1098
1098
|
expected: "array",
|
|
@@ -1162,8 +1162,8 @@ function handleCatchall(e, t, n, r, i, a) {
|
|
|
1162
1162
|
inst: a
|
|
1163
1163
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1164
1164
|
}
|
|
1165
|
-
var
|
|
1166
|
-
if (
|
|
1165
|
+
var Ct = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
1166
|
+
if (y.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1167
1167
|
let e = t.shape;
|
|
1168
1168
|
Object.defineProperty(t, "shape", { get: () => {
|
|
1169
1169
|
let n = { ...e };
|
|
@@ -1203,8 +1203,8 @@ var wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
return i ? handleCatchall(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1205
1205
|
};
|
|
1206
|
-
}),
|
|
1207
|
-
|
|
1206
|
+
}), wt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
|
|
1207
|
+
Ct.init(e, t);
|
|
1208
1208
|
let n = e._zod.parse, r = cached(() => normalizeDef(t)), generateFastpass = (e) => {
|
|
1209
1209
|
let t = new Doc([
|
|
1210
1210
|
"shape",
|
|
@@ -1306,8 +1306,8 @@ function handleUnionResults(e, t, n, r) {
|
|
|
1306
1306
|
errors: e.map((e) => e.issues.map((e) => finalizeIssue(e, r, config())))
|
|
1307
1307
|
}), t);
|
|
1308
1308
|
}
|
|
1309
|
-
var
|
|
1310
|
-
|
|
1309
|
+
var Tt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
1310
|
+
y.init(e, t), defineLazy(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), defineLazy(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), defineLazy(e._zod, "values", () => {
|
|
1311
1311
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1312
1312
|
}), defineLazy(e._zod, "pattern", () => {
|
|
1313
1313
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
@@ -1332,8 +1332,8 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return a ? Promise.all(o).then((t) => handleUnionResults(t, r, e, i)) : handleUnionResults(o, r, e, i);
|
|
1334
1334
|
};
|
|
1335
|
-
}),
|
|
1336
|
-
t.inclusive = !1,
|
|
1335
|
+
}), Et = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
|
|
1336
|
+
t.inclusive = !1, Tt.init(e, t);
|
|
1337
1337
|
let n = e._zod.parse;
|
|
1338
1338
|
defineLazy(e._zod, "propValues", () => {
|
|
1339
1339
|
let e = {};
|
|
@@ -1379,8 +1379,8 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
|
1379
1379
|
inst: e
|
|
1380
1380
|
}), i);
|
|
1381
1381
|
};
|
|
1382
|
-
}),
|
|
1383
|
-
|
|
1382
|
+
}), Dt = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
|
|
1383
|
+
y.init(e, t), e._zod.parse = (e, n) => {
|
|
1384
1384
|
let r = e.value, i = t.left._zod.run({
|
|
1385
1385
|
value: r,
|
|
1386
1386
|
issues: []
|
|
@@ -1455,8 +1455,8 @@ function handleIntersectionResults(e, t, n) {
|
|
|
1455
1455
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1456
1456
|
return e.value = o.data, e;
|
|
1457
1457
|
}
|
|
1458
|
-
var
|
|
1459
|
-
|
|
1458
|
+
var Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
1459
|
+
y.init(e, t), e._zod.parse = (n, r) => {
|
|
1460
1460
|
let i = n.value;
|
|
1461
1461
|
if (!isPlainObject(i)) return n.issues.push({
|
|
1462
1462
|
expected: "record",
|
|
@@ -1511,7 +1511,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1511
1511
|
issues: []
|
|
1512
1512
|
}, r);
|
|
1513
1513
|
if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
1514
|
-
if (typeof o == "string" &&
|
|
1514
|
+
if (typeof o == "string" && we.test(o) && s.issues.length) {
|
|
1515
1515
|
let e = t.keyType._zod.run({
|
|
1516
1516
|
value: Number(o),
|
|
1517
1517
|
issues: []
|
|
@@ -1541,8 +1541,8 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1543
1543
|
};
|
|
1544
|
-
}),
|
|
1545
|
-
|
|
1544
|
+
}), kt = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
|
|
1545
|
+
y.init(e, t);
|
|
1546
1546
|
let n = getEnumValues(t.entries), r = new Set(n);
|
|
1547
1547
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => u.has(typeof e)).map((e) => typeof e == "string" ? escapeRegex(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
1548
1548
|
let a = t.value;
|
|
@@ -1553,8 +1553,8 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1553
1553
|
inst: e
|
|
1554
1554
|
}), t;
|
|
1555
1555
|
};
|
|
1556
|
-
}),
|
|
1557
|
-
if (
|
|
1556
|
+
}), At = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
|
|
1557
|
+
if (y.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
|
|
1558
1558
|
let n = new Set(t.values);
|
|
1559
1559
|
e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? escapeRegex(e) : e ? escapeRegex(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
|
|
1560
1560
|
let a = r.value;
|
|
@@ -1565,8 +1565,8 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1565
1565
|
inst: e
|
|
1566
1566
|
}), r;
|
|
1567
1567
|
};
|
|
1568
|
-
}),
|
|
1569
|
-
|
|
1568
|
+
}), jt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
|
|
1569
|
+
y.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
1570
1570
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
1571
1571
|
let i = t.transform(n.value, n);
|
|
1572
1572
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
|
|
@@ -1580,8 +1580,8 @@ function handleOptionalResult(e, t) {
|
|
|
1580
1580
|
value: void 0
|
|
1581
1581
|
} : e;
|
|
1582
1582
|
}
|
|
1583
|
-
var
|
|
1584
|
-
|
|
1583
|
+
var Mt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
1584
|
+
y.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), defineLazy(e._zod, "pattern", () => {
|
|
1585
1585
|
let e = t.innerType._zod.pattern;
|
|
1586
1586
|
return e ? RegExp(`^(${cleanRegex(e.source)})?$`) : void 0;
|
|
1587
1587
|
}), e._zod.parse = (e, n) => {
|
|
@@ -1591,15 +1591,15 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1593
1593
|
};
|
|
1594
|
-
}),
|
|
1595
|
-
|
|
1596
|
-
}),
|
|
1597
|
-
|
|
1594
|
+
}), Nt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
|
|
1595
|
+
Mt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1596
|
+
}), Pt = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
|
|
1597
|
+
y.init(e, t), defineLazy(e._zod, "optin", () => t.innerType._zod.optin), defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "pattern", () => {
|
|
1598
1598
|
let e = t.innerType._zod.pattern;
|
|
1599
1599
|
return e ? RegExp(`^(${cleanRegex(e.source)}|null)$`) : void 0;
|
|
1600
1600
|
}), defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1601
|
-
}),
|
|
1602
|
-
|
|
1601
|
+
}), Ft = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
|
|
1602
|
+
y.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1603
1603
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1604
1604
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1605
1605
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -1609,10 +1609,10 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
|
1609
1609
|
function handleDefaultResult(e, t) {
|
|
1610
1610
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1613
|
-
|
|
1614
|
-
}),
|
|
1615
|
-
|
|
1612
|
+
var It = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
|
|
1613
|
+
y.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1614
|
+
}), Lt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
|
|
1615
|
+
y.init(e, t), defineLazy(e._zod, "values", () => {
|
|
1616
1616
|
let e = t.innerType._zod.values;
|
|
1617
1617
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1618
1618
|
}), e._zod.parse = (n, r) => {
|
|
@@ -1628,8 +1628,8 @@ function handleNonOptionalResult(e, t) {
|
|
|
1628
1628
|
inst: t
|
|
1629
1629
|
}), e;
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1632
|
-
|
|
1631
|
+
var Rt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
1632
|
+
y.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1633
1633
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1634
1634
|
let r = t.innerType._zod.run(e, n);
|
|
1635
1635
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
@@ -1642,8 +1642,8 @@ var zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
|
1642
1642
|
input: e.value
|
|
1643
1643
|
}), e.issues = [], e.fallback = !0), e);
|
|
1644
1644
|
};
|
|
1645
|
-
}),
|
|
1646
|
-
|
|
1645
|
+
}), zt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
|
|
1646
|
+
y.init(e, t), defineLazy(e._zod, "values", () => t.in._zod.values), defineLazy(e._zod, "optin", () => t.in._zod.optin), defineLazy(e._zod, "optout", () => t.out._zod.optout), defineLazy(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1647
1647
|
if (n.direction === "backward") {
|
|
1648
1648
|
let r = t.out._zod.run(e, n);
|
|
1649
1649
|
return r instanceof Promise ? r.then((e) => handlePipeResult(e, t.in, n)) : handlePipeResult(r, t.in, n);
|
|
@@ -1659,10 +1659,10 @@ function handlePipeResult(e, t, n) {
|
|
|
1659
1659
|
fallback: e.fallback
|
|
1660
1660
|
}, n);
|
|
1661
1661
|
}
|
|
1662
|
-
var
|
|
1663
|
-
|
|
1664
|
-
}),
|
|
1665
|
-
|
|
1662
|
+
var Bt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
|
|
1663
|
+
zt.init(e, t);
|
|
1664
|
+
}), Vt = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
|
|
1665
|
+
y.init(e, t), defineLazy(e._zod, "propValues", () => t.innerType._zod.propValues), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "optin", () => t.innerType?._zod?.optin), defineLazy(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1666
1666
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1667
1667
|
let r = t.innerType._zod.run(e, n);
|
|
1668
1668
|
return r instanceof Promise ? r.then(handleReadonlyResult) : handleReadonlyResult(r);
|
|
@@ -1671,8 +1671,8 @@ var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
|
|
|
1671
1671
|
function handleReadonlyResult(e) {
|
|
1672
1672
|
return e.value = Object.freeze(e.value), e;
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1675
|
-
|
|
1674
|
+
var Ht = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
|
|
1675
|
+
g.init(e, t), y.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1676
1676
|
let r = n.value, i = t.fn(r);
|
|
1677
1677
|
if (i instanceof Promise) return i.then((t) => handleRefineResult(t, n, r, e));
|
|
1678
1678
|
handleRefineResult(i, n, r, e);
|
|
@@ -1692,7 +1692,7 @@ function handleRefineResult(e, t, n, r) {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
//#endregion
|
|
1694
1694
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
1695
|
-
var
|
|
1695
|
+
var Ut, $ZodRegistry = class {
|
|
1696
1696
|
constructor() {
|
|
1697
1697
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1698
1698
|
}
|
|
@@ -1727,8 +1727,8 @@ var Wt, $ZodRegistry = class {
|
|
|
1727
1727
|
function registry() {
|
|
1728
1728
|
return new $ZodRegistry();
|
|
1729
1729
|
}
|
|
1730
|
-
(
|
|
1731
|
-
var
|
|
1730
|
+
(Ut = globalThis).__zod_globalRegistry ?? (Ut.__zod_globalRegistry = registry());
|
|
1731
|
+
var x = globalThis.__zod_globalRegistry;
|
|
1732
1732
|
//#endregion
|
|
1733
1733
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
1734
1734
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2051,7 +2051,7 @@ function _never(e, t) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
// @__NO_SIDE_EFFECTS__
|
|
2053
2053
|
function _lt(e, t) {
|
|
2054
|
-
return new
|
|
2054
|
+
return new Ae({
|
|
2055
2055
|
check: "less_than",
|
|
2056
2056
|
...normalizeParams(t),
|
|
2057
2057
|
value: e,
|
|
@@ -2060,7 +2060,7 @@ function _lt(e, t) {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
// @__NO_SIDE_EFFECTS__
|
|
2062
2062
|
function _lte(e, t) {
|
|
2063
|
-
return new
|
|
2063
|
+
return new Ae({
|
|
2064
2064
|
check: "less_than",
|
|
2065
2065
|
...normalizeParams(t),
|
|
2066
2066
|
value: e,
|
|
@@ -2069,7 +2069,7 @@ function _lte(e, t) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
// @__NO_SIDE_EFFECTS__
|
|
2071
2071
|
function _gt(e, t) {
|
|
2072
|
-
return new
|
|
2072
|
+
return new je({
|
|
2073
2073
|
check: "greater_than",
|
|
2074
2074
|
...normalizeParams(t),
|
|
2075
2075
|
value: e,
|
|
@@ -2078,7 +2078,7 @@ function _gt(e, t) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
// @__NO_SIDE_EFFECTS__
|
|
2080
2080
|
function _gte(e, t) {
|
|
2081
|
-
return new
|
|
2081
|
+
return new je({
|
|
2082
2082
|
check: "greater_than",
|
|
2083
2083
|
...normalizeParams(t),
|
|
2084
2084
|
value: e,
|
|
@@ -2087,7 +2087,7 @@ function _gte(e, t) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
// @__NO_SIDE_EFFECTS__
|
|
2089
2089
|
function _multipleOf(e, t) {
|
|
2090
|
-
return new
|
|
2090
|
+
return new Me({
|
|
2091
2091
|
check: "multiple_of",
|
|
2092
2092
|
...normalizeParams(t),
|
|
2093
2093
|
value: e
|
|
@@ -2095,7 +2095,7 @@ function _multipleOf(e, t) {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
// @__NO_SIDE_EFFECTS__
|
|
2097
2097
|
function _maxLength(e, t) {
|
|
2098
|
-
return new
|
|
2098
|
+
return new Pe({
|
|
2099
2099
|
check: "max_length",
|
|
2100
2100
|
...normalizeParams(t),
|
|
2101
2101
|
maximum: e
|
|
@@ -2103,7 +2103,7 @@ function _maxLength(e, t) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
// @__NO_SIDE_EFFECTS__
|
|
2105
2105
|
function _minLength(e, t) {
|
|
2106
|
-
return new
|
|
2106
|
+
return new Fe({
|
|
2107
2107
|
check: "min_length",
|
|
2108
2108
|
...normalizeParams(t),
|
|
2109
2109
|
minimum: e
|
|
@@ -2111,7 +2111,7 @@ function _minLength(e, t) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
// @__NO_SIDE_EFFECTS__
|
|
2113
2113
|
function _length(e, t) {
|
|
2114
|
-
return new
|
|
2114
|
+
return new Ie({
|
|
2115
2115
|
check: "length_equals",
|
|
2116
2116
|
...normalizeParams(t),
|
|
2117
2117
|
length: e
|
|
@@ -2119,7 +2119,7 @@ function _length(e, t) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
// @__NO_SIDE_EFFECTS__
|
|
2121
2121
|
function _regex(e, t) {
|
|
2122
|
-
return new
|
|
2122
|
+
return new Le({
|
|
2123
2123
|
check: "string_format",
|
|
2124
2124
|
format: "regex",
|
|
2125
2125
|
...normalizeParams(t),
|
|
@@ -2128,7 +2128,7 @@ function _regex(e, t) {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
// @__NO_SIDE_EFFECTS__
|
|
2130
2130
|
function _lowercase(e) {
|
|
2131
|
-
return new
|
|
2131
|
+
return new Re({
|
|
2132
2132
|
check: "string_format",
|
|
2133
2133
|
format: "lowercase",
|
|
2134
2134
|
...normalizeParams(e)
|
|
@@ -2136,7 +2136,7 @@ function _lowercase(e) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
// @__NO_SIDE_EFFECTS__
|
|
2138
2138
|
function _uppercase(e) {
|
|
2139
|
-
return new
|
|
2139
|
+
return new ze({
|
|
2140
2140
|
check: "string_format",
|
|
2141
2141
|
format: "uppercase",
|
|
2142
2142
|
...normalizeParams(e)
|
|
@@ -2144,7 +2144,7 @@ function _uppercase(e) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
// @__NO_SIDE_EFFECTS__
|
|
2146
2146
|
function _includes(e, t) {
|
|
2147
|
-
return new
|
|
2147
|
+
return new Be({
|
|
2148
2148
|
check: "string_format",
|
|
2149
2149
|
format: "includes",
|
|
2150
2150
|
...normalizeParams(t),
|
|
@@ -2153,7 +2153,7 @@ function _includes(e, t) {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
// @__NO_SIDE_EFFECTS__
|
|
2155
2155
|
function _startsWith(e, t) {
|
|
2156
|
-
return new
|
|
2156
|
+
return new Ve({
|
|
2157
2157
|
check: "string_format",
|
|
2158
2158
|
format: "starts_with",
|
|
2159
2159
|
...normalizeParams(t),
|
|
@@ -2162,7 +2162,7 @@ function _startsWith(e, t) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
// @__NO_SIDE_EFFECTS__
|
|
2164
2164
|
function _endsWith(e, t) {
|
|
2165
|
-
return new
|
|
2165
|
+
return new He({
|
|
2166
2166
|
check: "string_format",
|
|
2167
2167
|
format: "ends_with",
|
|
2168
2168
|
...normalizeParams(t),
|
|
@@ -2171,7 +2171,7 @@ function _endsWith(e, t) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
// @__NO_SIDE_EFFECTS__
|
|
2173
2173
|
function _overwrite(e) {
|
|
2174
|
-
return new
|
|
2174
|
+
return new Ue({
|
|
2175
2175
|
check: "overwrite",
|
|
2176
2176
|
tx: e
|
|
2177
2177
|
});
|
|
@@ -2226,7 +2226,7 @@ function _superRefine(e, t) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
// @__NO_SIDE_EFFECTS__
|
|
2228
2228
|
function _check(e, t) {
|
|
2229
|
-
let n = new
|
|
2229
|
+
let n = new g({
|
|
2230
2230
|
check: "custom",
|
|
2231
2231
|
...normalizeParams(t)
|
|
2232
2232
|
});
|
|
@@ -2238,7 +2238,7 @@ function initializeContext(e) {
|
|
|
2238
2238
|
let t = e?.target ?? "draft-2020-12";
|
|
2239
2239
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2240
2240
|
processors: e.processors ?? {},
|
|
2241
|
-
metadataRegistry: e?.metadata ??
|
|
2241
|
+
metadataRegistry: e?.metadata ?? x,
|
|
2242
2242
|
target: t,
|
|
2243
2243
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2244
2244
|
override: e?.override ?? (() => {}),
|
|
@@ -2454,7 +2454,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2454
2454
|
processors: n
|
|
2455
2455
|
});
|
|
2456
2456
|
return process$1(e, o), extractDefs(o, e), finalize(o, e);
|
|
2457
|
-
},
|
|
2457
|
+
}, Wt = {
|
|
2458
2458
|
guid: "uuid",
|
|
2459
2459
|
url: "uri",
|
|
2460
2460
|
datetime: "date-time",
|
|
@@ -2464,7 +2464,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2464
2464
|
let i = n;
|
|
2465
2465
|
i.type = "string";
|
|
2466
2466
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
2467
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2467
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Wt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
2468
2468
|
let e = [...c];
|
|
2469
2469
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2470
2470
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
@@ -2688,7 +2688,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
|
|
|
2688
2688
|
process$1(i, t, r);
|
|
2689
2689
|
let a = t.seen.get(e);
|
|
2690
2690
|
a.ref = i;
|
|
2691
|
-
},
|
|
2691
|
+
}, Gt = {
|
|
2692
2692
|
string: stringProcessor,
|
|
2693
2693
|
number: numberProcessor,
|
|
2694
2694
|
boolean: booleanProcessor,
|
|
@@ -2733,7 +2733,7 @@ function toJSONSchema(e, t) {
|
|
|
2733
2733
|
if ("_idmap" in e) {
|
|
2734
2734
|
let n = e, r = initializeContext({
|
|
2735
2735
|
...t,
|
|
2736
|
-
processors:
|
|
2736
|
+
processors: Gt
|
|
2737
2737
|
}), i = {};
|
|
2738
2738
|
for (let e of n._idmap.entries()) {
|
|
2739
2739
|
let [t, n] = e;
|
|
@@ -2753,35 +2753,35 @@ function toJSONSchema(e, t) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
let n = initializeContext({
|
|
2755
2755
|
...t,
|
|
2756
|
-
processors:
|
|
2756
|
+
processors: Gt
|
|
2757
2757
|
});
|
|
2758
2758
|
return process$1(e, n), extractDefs(n, e), finalize(n, e);
|
|
2759
2759
|
}
|
|
2760
2760
|
//#endregion
|
|
2761
2761
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
2762
|
-
var
|
|
2763
|
-
|
|
2762
|
+
var Kt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
|
|
2763
|
+
rt.init(e, t), w.init(e, t);
|
|
2764
2764
|
});
|
|
2765
2765
|
function datetime(e) {
|
|
2766
|
-
return /* @__PURE__ */ _isoDateTime(
|
|
2766
|
+
return /* @__PURE__ */ _isoDateTime(Kt, e);
|
|
2767
2767
|
}
|
|
2768
|
-
var
|
|
2769
|
-
|
|
2768
|
+
var qt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
|
|
2769
|
+
it.init(e, t), w.init(e, t);
|
|
2770
2770
|
});
|
|
2771
2771
|
function date(e) {
|
|
2772
|
-
return /* @__PURE__ */ _isoDate(
|
|
2772
|
+
return /* @__PURE__ */ _isoDate(qt, e);
|
|
2773
2773
|
}
|
|
2774
|
-
var
|
|
2775
|
-
|
|
2774
|
+
var Jt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
|
|
2775
|
+
at.init(e, t), w.init(e, t);
|
|
2776
2776
|
});
|
|
2777
2777
|
function time(e) {
|
|
2778
|
-
return /* @__PURE__ */ _isoTime(
|
|
2778
|
+
return /* @__PURE__ */ _isoTime(Jt, e);
|
|
2779
2779
|
}
|
|
2780
|
-
var
|
|
2781
|
-
|
|
2780
|
+
var Yt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
|
|
2781
|
+
ot.init(e, t), w.init(e, t);
|
|
2782
2782
|
});
|
|
2783
2783
|
function duration(e) {
|
|
2784
|
-
return /* @__PURE__ */ _isoDuration(
|
|
2784
|
+
return /* @__PURE__ */ _isoDuration(Yt, e);
|
|
2785
2785
|
}
|
|
2786
2786
|
//#endregion
|
|
2787
2787
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
@@ -2799,10 +2799,10 @@ var initializer = (e, t) => {
|
|
|
2799
2799
|
return e.issues.length === 0;
|
|
2800
2800
|
} }
|
|
2801
2801
|
});
|
|
2802
|
-
},
|
|
2802
|
+
}, S = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Xt = /* @__PURE__ */ _parse(S), Zt = /* @__PURE__ */ _parseAsync(S), Qt = /* @__PURE__ */ _safeParse(S), $t = /* @__PURE__ */ _safeParseAsync(S), en = /* @__PURE__ */ _encode(S), tn = /* @__PURE__ */ _decode(S), nn = /* @__PURE__ */ _encodeAsync(S), rn = /* @__PURE__ */ _decodeAsync(S), an = /* @__PURE__ */ _safeEncode(S), on = /* @__PURE__ */ _safeDecode(S), sn = /* @__PURE__ */ _safeEncodeAsync(S), cn = /* @__PURE__ */ _safeDecodeAsync(S), ln = /* @__PURE__ */ new WeakMap();
|
|
2803
2803
|
function _installLazyMethods(e, t, n) {
|
|
2804
|
-
let r = Object.getPrototypeOf(e), i =
|
|
2805
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
2804
|
+
let r = Object.getPrototypeOf(e), i = ln.get(r);
|
|
2805
|
+
if (i || (i = /* @__PURE__ */ new Set(), ln.set(r, i)), !i.has(t)) {
|
|
2806
2806
|
i.add(t);
|
|
2807
2807
|
for (let e in n) {
|
|
2808
2808
|
let t = n[e];
|
|
@@ -2830,10 +2830,10 @@ function _installLazyMethods(e, t, n) {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
|
-
var
|
|
2833
|
+
var C = /*@__PURE__*/ $constructor("ZodType", (e, t) => (y.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
2834
2834
|
input: createStandardJSONSchemaMethod(e, "input"),
|
|
2835
2835
|
output: createStandardJSONSchemaMethod(e, "output")
|
|
2836
|
-
} }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) =>
|
|
2836
|
+
} }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Xt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Qt(e, t, n), e.parseAsync = async (t, n) => Zt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => $t(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => en(e, t, n), e.decode = (t, n) => tn(e, t, n), e.encodeAsync = async (t, n) => nn(e, t, n), e.decodeAsync = async (t, n) => rn(e, t, n), e.safeEncode = (t, n) => an(e, t, n), e.safeDecode = (t, n) => on(e, t, n), e.safeEncodeAsync = async (t, n) => sn(e, t, n), e.safeDecodeAsync = async (t, n) => cn(e, t, n), _installLazyMethods(e, "ZodType", {
|
|
2837
2837
|
check(...e) {
|
|
2838
2838
|
let t = this.def;
|
|
2839
2839
|
return this.clone(mergeDefs(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -2907,12 +2907,12 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
|
|
|
2907
2907
|
},
|
|
2908
2908
|
describe(e) {
|
|
2909
2909
|
let t = this.clone();
|
|
2910
|
-
return
|
|
2910
|
+
return x.add(t, { description: e }), t;
|
|
2911
2911
|
},
|
|
2912
2912
|
meta(...e) {
|
|
2913
|
-
if (e.length === 0) return
|
|
2913
|
+
if (e.length === 0) return x.get(this);
|
|
2914
2914
|
let t = this.clone();
|
|
2915
|
-
return
|
|
2915
|
+
return x.add(t, e[0]), t;
|
|
2916
2916
|
},
|
|
2917
2917
|
isOptional() {
|
|
2918
2918
|
return this.safeParse(void 0).success;
|
|
@@ -2925,11 +2925,11 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
|
|
|
2925
2925
|
}
|
|
2926
2926
|
}), Object.defineProperty(e, "description", {
|
|
2927
2927
|
get() {
|
|
2928
|
-
return
|
|
2928
|
+
return x.get(e)?.description;
|
|
2929
2929
|
},
|
|
2930
2930
|
configurable: !0
|
|
2931
|
-
}), e)),
|
|
2932
|
-
|
|
2931
|
+
}), e)), un = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
|
|
2932
|
+
Ge.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
|
|
2933
2933
|
let n = e._zod.bag;
|
|
2934
2934
|
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, _installLazyMethods(e, "_ZodString", {
|
|
2935
2935
|
regex(...e) {
|
|
@@ -2978,62 +2978,62 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
|
|
|
2978
2978
|
return this.check(/* @__PURE__ */ _slugify());
|
|
2979
2979
|
}
|
|
2980
2980
|
});
|
|
2981
|
-
}),
|
|
2982
|
-
|
|
2981
|
+
}), dn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
|
|
2982
|
+
Ge.init(e, t), un.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(fn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(mn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(kn, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(hn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(T, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(T, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(T, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(T, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(_n, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(vn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(yn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(En, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(Dn, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(bn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(xn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Sn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(Cn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(wn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(Tn, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(On, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
|
|
2983
2983
|
});
|
|
2984
2984
|
function string(e) {
|
|
2985
|
-
return /* @__PURE__ */ _string(
|
|
2985
|
+
return /* @__PURE__ */ _string(dn, e);
|
|
2986
2986
|
}
|
|
2987
|
-
var
|
|
2988
|
-
|
|
2989
|
-
}),
|
|
2990
|
-
|
|
2987
|
+
var w = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
|
|
2988
|
+
b.init(e, t), un.init(e, t);
|
|
2989
|
+
}), fn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
|
|
2990
|
+
Je.init(e, t), w.init(e, t);
|
|
2991
2991
|
});
|
|
2992
2992
|
function email(e) {
|
|
2993
|
-
return /* @__PURE__ */ _email(
|
|
2994
|
-
}
|
|
2995
|
-
var
|
|
2996
|
-
|
|
2997
|
-
}),
|
|
2998
|
-
|
|
2999
|
-
}),
|
|
3000
|
-
|
|
2993
|
+
return /* @__PURE__ */ _email(fn, e);
|
|
2994
|
+
}
|
|
2995
|
+
var pn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
|
|
2996
|
+
Ke.init(e, t), w.init(e, t);
|
|
2997
|
+
}), T = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
|
|
2998
|
+
qe.init(e, t), w.init(e, t);
|
|
2999
|
+
}), mn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
|
|
3000
|
+
Ye.init(e, t), w.init(e, t);
|
|
3001
3001
|
});
|
|
3002
3002
|
function url(e) {
|
|
3003
|
-
return /* @__PURE__ */ _url(
|
|
3004
|
-
}
|
|
3005
|
-
var
|
|
3006
|
-
|
|
3007
|
-
}),
|
|
3008
|
-
|
|
3009
|
-
}),
|
|
3010
|
-
|
|
3011
|
-
}),
|
|
3012
|
-
|
|
3013
|
-
}),
|
|
3014
|
-
|
|
3015
|
-
}),
|
|
3016
|
-
|
|
3017
|
-
}),
|
|
3018
|
-
|
|
3019
|
-
}),
|
|
3020
|
-
|
|
3021
|
-
}),
|
|
3022
|
-
|
|
3023
|
-
}),
|
|
3024
|
-
|
|
3025
|
-
}),
|
|
3026
|
-
|
|
3027
|
-
}),
|
|
3028
|
-
|
|
3029
|
-
}),
|
|
3030
|
-
|
|
3031
|
-
}),
|
|
3032
|
-
|
|
3033
|
-
}),
|
|
3034
|
-
|
|
3035
|
-
}),
|
|
3036
|
-
|
|
3003
|
+
return /* @__PURE__ */ _url(mn, e);
|
|
3004
|
+
}
|
|
3005
|
+
var hn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
3006
|
+
Xe.init(e, t), w.init(e, t);
|
|
3007
|
+
}), gn = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
|
|
3008
|
+
Ze.init(e, t), w.init(e, t);
|
|
3009
|
+
}), _n = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
|
|
3010
|
+
Qe.init(e, t), w.init(e, t);
|
|
3011
|
+
}), vn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
|
|
3012
|
+
$e.init(e, t), w.init(e, t);
|
|
3013
|
+
}), yn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
|
|
3014
|
+
et.init(e, t), w.init(e, t);
|
|
3015
|
+
}), bn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
|
|
3016
|
+
tt.init(e, t), w.init(e, t);
|
|
3017
|
+
}), xn = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
|
|
3018
|
+
nt.init(e, t), w.init(e, t);
|
|
3019
|
+
}), Sn = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
|
|
3020
|
+
st.init(e, t), w.init(e, t);
|
|
3021
|
+
}), Cn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
|
|
3022
|
+
ct.init(e, t), w.init(e, t);
|
|
3023
|
+
}), wn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
|
|
3024
|
+
lt.init(e, t), w.init(e, t);
|
|
3025
|
+
}), Tn = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
|
|
3026
|
+
ut.init(e, t), w.init(e, t);
|
|
3027
|
+
}), En = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
|
|
3028
|
+
dt.init(e, t), w.init(e, t);
|
|
3029
|
+
}), Dn = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
|
|
3030
|
+
ft.init(e, t), w.init(e, t);
|
|
3031
|
+
}), On = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
|
|
3032
|
+
pt.init(e, t), w.init(e, t);
|
|
3033
|
+
}), kn = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
|
|
3034
|
+
mt.init(e, t), w.init(e, t);
|
|
3035
|
+
}), An = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
|
|
3036
|
+
ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
|
|
3037
3037
|
gt(e, t) {
|
|
3038
3038
|
return this.check(/* @__PURE__ */ _gt(e, t));
|
|
3039
3039
|
},
|
|
@@ -3084,46 +3084,46 @@ var gn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
|
3084
3084
|
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;
|
|
3085
3085
|
});
|
|
3086
3086
|
function number(e) {
|
|
3087
|
-
return /* @__PURE__ */ _number(
|
|
3087
|
+
return /* @__PURE__ */ _number(An, e);
|
|
3088
3088
|
}
|
|
3089
|
-
var
|
|
3090
|
-
|
|
3089
|
+
var jn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
|
|
3090
|
+
gt.init(e, t), An.init(e, t);
|
|
3091
3091
|
});
|
|
3092
3092
|
function int(e) {
|
|
3093
|
-
return /* @__PURE__ */ _int(
|
|
3093
|
+
return /* @__PURE__ */ _int(jn, e);
|
|
3094
3094
|
}
|
|
3095
|
-
var
|
|
3096
|
-
|
|
3095
|
+
var Mn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
|
|
3096
|
+
_t.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
|
|
3097
3097
|
});
|
|
3098
3098
|
function boolean(e) {
|
|
3099
|
-
return /* @__PURE__ */ _boolean(
|
|
3099
|
+
return /* @__PURE__ */ _boolean(Mn, e);
|
|
3100
3100
|
}
|
|
3101
|
-
var
|
|
3102
|
-
|
|
3101
|
+
var Nn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
|
|
3102
|
+
vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
|
|
3103
3103
|
});
|
|
3104
3104
|
function _null(e) {
|
|
3105
|
-
return /* @__PURE__ */ _null$1(
|
|
3105
|
+
return /* @__PURE__ */ _null$1(Nn, e);
|
|
3106
3106
|
}
|
|
3107
|
-
var
|
|
3108
|
-
|
|
3107
|
+
var Pn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
|
|
3108
|
+
yt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3109
3109
|
});
|
|
3110
3110
|
function any() {
|
|
3111
|
-
return /* @__PURE__ */ _any(
|
|
3111
|
+
return /* @__PURE__ */ _any(Pn);
|
|
3112
3112
|
}
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3113
|
+
var Fn = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
|
|
3114
|
+
bt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3115
3115
|
});
|
|
3116
3116
|
function unknown() {
|
|
3117
|
-
return /* @__PURE__ */ _unknown(
|
|
3117
|
+
return /* @__PURE__ */ _unknown(Fn);
|
|
3118
3118
|
}
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3119
|
+
var In = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
|
|
3120
|
+
xt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
|
|
3121
3121
|
});
|
|
3122
3122
|
function never(e) {
|
|
3123
|
-
return /* @__PURE__ */ _never(
|
|
3123
|
+
return /* @__PURE__ */ _never(In, e);
|
|
3124
3124
|
}
|
|
3125
|
-
var
|
|
3126
|
-
|
|
3125
|
+
var Ln = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
3126
|
+
St.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => arrayProcessor(e, t, n, r), e.element = t.element, _installLazyMethods(e, "ZodArray", {
|
|
3127
3127
|
min(e, t) {
|
|
3128
3128
|
return this.check(/* @__PURE__ */ _minLength(e, t));
|
|
3129
3129
|
},
|
|
@@ -3142,10 +3142,10 @@ var Rn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
|
3142
3142
|
});
|
|
3143
3143
|
});
|
|
3144
3144
|
function array(e, t) {
|
|
3145
|
-
return /* @__PURE__ */ _array(
|
|
3145
|
+
return /* @__PURE__ */ _array(Ln, e, t);
|
|
3146
3146
|
}
|
|
3147
|
-
var
|
|
3148
|
-
|
|
3147
|
+
var Rn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
3148
|
+
wt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => objectProcessor(e, t, n, r), defineLazy(e, "shape", () => t.shape), _installLazyMethods(e, "ZodObject", {
|
|
3149
3149
|
keyof() {
|
|
3150
3150
|
return _enum(Object.keys(this._zod.def.shape));
|
|
3151
3151
|
},
|
|
@@ -3195,75 +3195,75 @@ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
|
3195
3195
|
return omit(this, e);
|
|
3196
3196
|
},
|
|
3197
3197
|
partial(...e) {
|
|
3198
|
-
return partial(
|
|
3198
|
+
return partial(Kn, this, e[0]);
|
|
3199
3199
|
},
|
|
3200
3200
|
required(...e) {
|
|
3201
|
-
return required(
|
|
3201
|
+
return required(Zn, this, e[0]);
|
|
3202
3202
|
}
|
|
3203
3203
|
});
|
|
3204
3204
|
});
|
|
3205
3205
|
function object(e, t) {
|
|
3206
|
-
return new
|
|
3206
|
+
return new Rn({
|
|
3207
3207
|
type: "object",
|
|
3208
3208
|
shape: e ?? {},
|
|
3209
3209
|
...normalizeParams(t)
|
|
3210
3210
|
});
|
|
3211
3211
|
}
|
|
3212
|
-
var
|
|
3213
|
-
|
|
3212
|
+
var zn = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
|
|
3213
|
+
Tt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
|
|
3214
3214
|
});
|
|
3215
3215
|
function union(e, t) {
|
|
3216
|
-
return new
|
|
3216
|
+
return new zn({
|
|
3217
3217
|
type: "union",
|
|
3218
3218
|
options: e,
|
|
3219
3219
|
...normalizeParams(t)
|
|
3220
3220
|
});
|
|
3221
3221
|
}
|
|
3222
|
-
var
|
|
3223
|
-
|
|
3222
|
+
var Bn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
|
|
3223
|
+
zn.init(e, t), Et.init(e, t);
|
|
3224
3224
|
});
|
|
3225
3225
|
function discriminatedUnion(e, t, n) {
|
|
3226
|
-
return new
|
|
3226
|
+
return new Bn({
|
|
3227
3227
|
type: "union",
|
|
3228
3228
|
options: t,
|
|
3229
3229
|
discriminator: e,
|
|
3230
3230
|
...normalizeParams(n)
|
|
3231
3231
|
});
|
|
3232
3232
|
}
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3233
|
+
var Vn = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
|
|
3234
|
+
Dt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
|
|
3235
3235
|
});
|
|
3236
3236
|
function intersection(e, t) {
|
|
3237
|
-
return new
|
|
3237
|
+
return new Vn({
|
|
3238
3238
|
type: "intersection",
|
|
3239
3239
|
left: e,
|
|
3240
3240
|
right: t
|
|
3241
3241
|
});
|
|
3242
3242
|
}
|
|
3243
|
-
var
|
|
3244
|
-
|
|
3243
|
+
var Hn = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
|
|
3244
|
+
Ot.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => recordProcessor(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
3245
3245
|
});
|
|
3246
3246
|
function record(e, t, n) {
|
|
3247
|
-
return !t || !t._zod ? new
|
|
3247
|
+
return !t || !t._zod ? new Hn({
|
|
3248
3248
|
type: "record",
|
|
3249
3249
|
keyType: string(),
|
|
3250
3250
|
valueType: e,
|
|
3251
3251
|
...normalizeParams(t)
|
|
3252
|
-
}) : new
|
|
3252
|
+
}) : new Hn({
|
|
3253
3253
|
type: "record",
|
|
3254
3254
|
keyType: e,
|
|
3255
3255
|
valueType: t,
|
|
3256
3256
|
...normalizeParams(n)
|
|
3257
3257
|
});
|
|
3258
3258
|
}
|
|
3259
|
-
var
|
|
3260
|
-
|
|
3259
|
+
var Un = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
3260
|
+
kt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3261
3261
|
let n = new Set(Object.keys(t.entries));
|
|
3262
3262
|
e.extract = (e, r) => {
|
|
3263
3263
|
let i = {};
|
|
3264
3264
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3265
3265
|
else throw Error(`Key ${r} not found in enum`);
|
|
3266
|
-
return new
|
|
3266
|
+
return new Un({
|
|
3267
3267
|
...t,
|
|
3268
3268
|
checks: [],
|
|
3269
3269
|
...normalizeParams(r),
|
|
@@ -3273,7 +3273,7 @@ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3273
3273
|
let i = { ...t.entries };
|
|
3274
3274
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3275
3275
|
else throw Error(`Key ${t} not found in enum`);
|
|
3276
|
-
return new
|
|
3276
|
+
return new Un({
|
|
3277
3277
|
...t,
|
|
3278
3278
|
checks: [],
|
|
3279
3279
|
...normalizeParams(r),
|
|
@@ -3282,27 +3282,27 @@ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3282
3282
|
};
|
|
3283
3283
|
});
|
|
3284
3284
|
function _enum(e, t) {
|
|
3285
|
-
return new
|
|
3285
|
+
return new Un({
|
|
3286
3286
|
type: "enum",
|
|
3287
3287
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3288
3288
|
...normalizeParams(t)
|
|
3289
3289
|
});
|
|
3290
3290
|
}
|
|
3291
|
-
var
|
|
3292
|
-
|
|
3291
|
+
var Wn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
|
|
3292
|
+
At.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
3293
3293
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3294
3294
|
return t.values[0];
|
|
3295
3295
|
} });
|
|
3296
3296
|
});
|
|
3297
3297
|
function literal(e, t) {
|
|
3298
|
-
return new
|
|
3298
|
+
return new Wn({
|
|
3299
3299
|
type: "literal",
|
|
3300
3300
|
values: Array.isArray(e) ? e : [e],
|
|
3301
3301
|
...normalizeParams(t)
|
|
3302
3302
|
});
|
|
3303
3303
|
}
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3304
|
+
var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
3305
|
+
jt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3306
3306
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
3307
3307
|
n.addIssue = (r) => {
|
|
3308
3308
|
if (typeof r == "string") n.issues.push(issue(r, n.value, t));
|
|
@@ -3316,43 +3316,43 @@ var Kn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
|
3316
3316
|
};
|
|
3317
3317
|
});
|
|
3318
3318
|
function transform(e) {
|
|
3319
|
-
return new
|
|
3319
|
+
return new Gn({
|
|
3320
3320
|
type: "transform",
|
|
3321
3321
|
transform: e
|
|
3322
3322
|
});
|
|
3323
3323
|
}
|
|
3324
|
-
var
|
|
3325
|
-
|
|
3324
|
+
var Kn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
|
|
3325
|
+
Mt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3326
3326
|
});
|
|
3327
3327
|
function optional(e) {
|
|
3328
|
-
return new
|
|
3328
|
+
return new Kn({
|
|
3329
3329
|
type: "optional",
|
|
3330
3330
|
innerType: e
|
|
3331
3331
|
});
|
|
3332
3332
|
}
|
|
3333
|
-
var
|
|
3334
|
-
|
|
3333
|
+
var qn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
|
|
3334
|
+
Nt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3335
3335
|
});
|
|
3336
3336
|
function exactOptional(e) {
|
|
3337
|
-
return new
|
|
3337
|
+
return new qn({
|
|
3338
3338
|
type: "optional",
|
|
3339
3339
|
innerType: e
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
|
-
var
|
|
3343
|
-
|
|
3342
|
+
var Jn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
|
|
3343
|
+
Pt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3344
3344
|
});
|
|
3345
3345
|
function nullable(e) {
|
|
3346
|
-
return new
|
|
3346
|
+
return new Jn({
|
|
3347
3347
|
type: "nullable",
|
|
3348
3348
|
innerType: e
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
|
-
var
|
|
3352
|
-
|
|
3351
|
+
var Yn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
|
|
3352
|
+
Ft.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3353
3353
|
});
|
|
3354
3354
|
function _default(e, t) {
|
|
3355
|
-
return new
|
|
3355
|
+
return new Yn({
|
|
3356
3356
|
type: "default",
|
|
3357
3357
|
innerType: e,
|
|
3358
3358
|
get defaultValue() {
|
|
@@ -3360,11 +3360,11 @@ function _default(e, t) {
|
|
|
3360
3360
|
}
|
|
3361
3361
|
});
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3364
|
-
|
|
3363
|
+
var Xn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
|
|
3364
|
+
It.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3365
3365
|
});
|
|
3366
3366
|
function prefault(e, t) {
|
|
3367
|
-
return new
|
|
3367
|
+
return new Xn({
|
|
3368
3368
|
type: "prefault",
|
|
3369
3369
|
innerType: e,
|
|
3370
3370
|
get defaultValue() {
|
|
@@ -3372,58 +3372,58 @@ function prefault(e, t) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
});
|
|
3374
3374
|
}
|
|
3375
|
-
var
|
|
3376
|
-
|
|
3375
|
+
var Zn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
|
|
3376
|
+
Lt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3377
3377
|
});
|
|
3378
3378
|
function nonoptional(e, t) {
|
|
3379
|
-
return new
|
|
3379
|
+
return new Zn({
|
|
3380
3380
|
type: "nonoptional",
|
|
3381
3381
|
innerType: e,
|
|
3382
3382
|
...normalizeParams(t)
|
|
3383
3383
|
});
|
|
3384
3384
|
}
|
|
3385
|
-
var
|
|
3386
|
-
|
|
3385
|
+
var Qn = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
|
|
3386
|
+
Rt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3387
3387
|
});
|
|
3388
3388
|
function _catch(e, t) {
|
|
3389
|
-
return new
|
|
3389
|
+
return new Qn({
|
|
3390
3390
|
type: "catch",
|
|
3391
3391
|
innerType: e,
|
|
3392
3392
|
catchValue: typeof t == "function" ? t : () => t
|
|
3393
3393
|
});
|
|
3394
3394
|
}
|
|
3395
|
-
var
|
|
3396
|
-
|
|
3395
|
+
var $n = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
|
|
3396
|
+
zt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3397
3397
|
});
|
|
3398
3398
|
function pipe(e, t) {
|
|
3399
|
-
return new
|
|
3399
|
+
return new $n({
|
|
3400
3400
|
type: "pipe",
|
|
3401
3401
|
in: e,
|
|
3402
3402
|
out: t
|
|
3403
3403
|
});
|
|
3404
3404
|
}
|
|
3405
|
-
var
|
|
3406
|
-
|
|
3407
|
-
}),
|
|
3408
|
-
|
|
3405
|
+
var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
|
|
3406
|
+
$n.init(e, t), Bt.init(e, t);
|
|
3407
|
+
}), tr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
|
|
3408
|
+
Vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3409
3409
|
});
|
|
3410
3410
|
function readonly(e) {
|
|
3411
|
-
return new
|
|
3411
|
+
return new tr({
|
|
3412
3412
|
type: "readonly",
|
|
3413
3413
|
innerType: e
|
|
3414
3414
|
});
|
|
3415
3415
|
}
|
|
3416
|
-
var
|
|
3417
|
-
|
|
3416
|
+
var nr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
|
|
3417
|
+
Ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
|
|
3418
3418
|
});
|
|
3419
3419
|
function refine(e, t = {}) {
|
|
3420
|
-
return /* @__PURE__ */ _refine(
|
|
3420
|
+
return /* @__PURE__ */ _refine(nr, e, t);
|
|
3421
3421
|
}
|
|
3422
3422
|
function superRefine(e, t) {
|
|
3423
3423
|
return /* @__PURE__ */ _superRefine(e, t);
|
|
3424
3424
|
}
|
|
3425
3425
|
function preprocess(e, t) {
|
|
3426
|
-
return new
|
|
3426
|
+
return new er({
|
|
3427
3427
|
type: "pipe",
|
|
3428
3428
|
in: transform(e),
|
|
3429
3429
|
out: t
|
|
@@ -3431,15 +3431,15 @@ function preprocess(e, t) {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
//#endregion
|
|
3433
3433
|
//#region ../core/dist/heartbeat.js
|
|
3434
|
-
var
|
|
3434
|
+
var rr = _enum([
|
|
3435
3435
|
"briefing",
|
|
3436
3436
|
"checkin",
|
|
3437
3437
|
"closeout"
|
|
3438
|
-
]),
|
|
3438
|
+
]), E = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ir = {
|
|
3439
3439
|
briefing: "07:30",
|
|
3440
3440
|
checkin: "12:30",
|
|
3441
3441
|
closeout: "17:30"
|
|
3442
|
-
},
|
|
3442
|
+
}, D = globalThis.process, O = typeof window < "u", k = D !== void 0 && !O, A = O ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : k && D !== void 0 && D.env?.NODE_ENV === "production", ar = !A, j = {
|
|
3443
3443
|
error: {
|
|
3444
3444
|
priority: 50,
|
|
3445
3445
|
color: "#FF0000",
|
|
@@ -3465,7 +3465,7 @@ var ir = _enum([
|
|
|
3465
3465
|
color: "#5233FF",
|
|
3466
3466
|
nodeColor: "\x1B[35m"
|
|
3467
3467
|
}
|
|
3468
|
-
},
|
|
3468
|
+
}, or = [
|
|
3469
3469
|
"password",
|
|
3470
3470
|
"token",
|
|
3471
3471
|
"secret",
|
|
@@ -3475,11 +3475,11 @@ var ir = _enum([
|
|
|
3475
3475
|
];
|
|
3476
3476
|
function isSensitiveKey(e) {
|
|
3477
3477
|
let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3478
|
-
if (
|
|
3478
|
+
if (or.includes(t)) return !0;
|
|
3479
3479
|
let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
3480
|
-
return
|
|
3480
|
+
return or.some((e) => n.includes(e));
|
|
3481
3481
|
}
|
|
3482
|
-
var
|
|
3482
|
+
var sr = /* @__PURE__ */ new Set([
|
|
3483
3483
|
"CONNECT_TIMEOUT",
|
|
3484
3484
|
"ECONNREFUSED",
|
|
3485
3485
|
"ECONNRESET",
|
|
@@ -3487,48 +3487,48 @@ var cr = /* @__PURE__ */ new Set([
|
|
|
3487
3487
|
"ENOTFOUND",
|
|
3488
3488
|
"EHOSTUNREACH",
|
|
3489
3489
|
"EPIPE"
|
|
3490
|
-
]),
|
|
3491
|
-
...
|
|
3490
|
+
]), cr = /* @__PURE__ */ new Set([
|
|
3491
|
+
...sr,
|
|
3492
3492
|
"CONNECTION_CLOSED",
|
|
3493
3493
|
"53300"
|
|
3494
3494
|
]);
|
|
3495
3495
|
function findInfraError(e, t = 0) {
|
|
3496
3496
|
if (t > 4 || !(e instanceof Error)) return;
|
|
3497
3497
|
let n = e.code;
|
|
3498
|
-
return typeof n == "string" &&
|
|
3498
|
+
return typeof n == "string" && cr.has(n) ? {
|
|
3499
3499
|
code: n,
|
|
3500
3500
|
error: e
|
|
3501
3501
|
} : findInfraError(e.cause, t + 1);
|
|
3502
3502
|
}
|
|
3503
3503
|
function infraEndpoint({ code: e, error: t }) {
|
|
3504
|
-
if (!(!
|
|
3504
|
+
if (!(!sr.has(e) || !t.message.includes(e) || t.message.length > 240)) return t.message.match(/(?:localhost|(?:[a-z0-9-]+\.)+[a-z0-9-]+|\d{1,3}(?:\.\d{1,3}){3}|\[[a-f0-9:]+\])(?::\d{1,5})?/iu)?.[0];
|
|
3505
3505
|
}
|
|
3506
3506
|
function firstAppFrame(e) {
|
|
3507
3507
|
if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
|
|
3508
3508
|
}
|
|
3509
|
-
var
|
|
3509
|
+
var M = class Logger {
|
|
3510
3510
|
constructor(e = {}, t) {
|
|
3511
3511
|
this.enabledInBrowser = !1, this.context = t, this.settings = {
|
|
3512
3512
|
enabled: e.enabled ?? !0,
|
|
3513
3513
|
minLevel: e.minLevel ?? this.getDefaultLevel(),
|
|
3514
3514
|
timestamps: e.timestamps ?? !0
|
|
3515
|
-
},
|
|
3515
|
+
}, O && this.initBrowserLogging();
|
|
3516
3516
|
}
|
|
3517
3517
|
getDefaultLevel() {
|
|
3518
|
-
if (
|
|
3519
|
-
if (
|
|
3518
|
+
if (k && D !== void 0 && D.env?.LOG_LEVEL) return D.env.LOG_LEVEL;
|
|
3519
|
+
if (O && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
|
|
3520
3520
|
let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
|
|
3521
3521
|
if (e) return e;
|
|
3522
3522
|
}
|
|
3523
3523
|
return "info";
|
|
3524
3524
|
}
|
|
3525
3525
|
initBrowserLogging() {
|
|
3526
|
-
if (!
|
|
3526
|
+
if (!O) return;
|
|
3527
3527
|
let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
|
|
3528
|
-
this.enabledInBrowser =
|
|
3528
|
+
this.enabledInBrowser = ar || e || t === "localhost" || t.includes("127.0.0.1"), A && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
|
|
3529
3529
|
}
|
|
3530
3530
|
shouldLog(e) {
|
|
3531
|
-
return !this.settings.enabled ||
|
|
3531
|
+
return !this.settings.enabled || O && !this.enabledInBrowser ? !1 : j[e].priority >= j[this.settings.minLevel].priority;
|
|
3532
3532
|
}
|
|
3533
3533
|
formatTimestamp() {
|
|
3534
3534
|
return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
|
|
@@ -3565,16 +3565,16 @@ var j = class Logger {
|
|
|
3565
3565
|
let i = {
|
|
3566
3566
|
name: e.name,
|
|
3567
3567
|
message: e.message,
|
|
3568
|
-
stack:
|
|
3568
|
+
stack: A ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
|
|
3569
3569
|
};
|
|
3570
3570
|
for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
|
|
3571
3571
|
return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
|
|
3572
3572
|
}
|
|
3573
3573
|
if (e instanceof Date) return e.toISOString();
|
|
3574
3574
|
if (typeof e != "object") return e;
|
|
3575
|
-
if (Array.isArray(e)) return e.length > 20 &&
|
|
3575
|
+
if (Array.isArray(e)) return e.length > 20 && A ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
|
|
3576
3576
|
try {
|
|
3577
|
-
let r = {}, i = Object.entries(e), a =
|
|
3577
|
+
let r = {}, i = Object.entries(e), a = A ? 50 : 200;
|
|
3578
3578
|
for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
|
|
3579
3579
|
return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
|
|
3580
3580
|
} catch {
|
|
@@ -3582,14 +3582,14 @@ var j = class Logger {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
3584
|
logToBrowser(e) {
|
|
3585
|
-
if (!
|
|
3586
|
-
let { level: t, description: n, context: r, data: i, error: a } = e, o =
|
|
3585
|
+
if (!O || !this.shouldLog(e.level)) return;
|
|
3586
|
+
let { level: t, description: n, context: r, data: i, error: a } = e, o = j[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
|
|
3587
3587
|
i === void 0 ? console[t](`%c${s}`, c, n) : console[t](`%c${s}`, c, n, this.formatData(i)), a && (a instanceof Error ? console.error(a) : console.error("Error details:", a));
|
|
3588
3588
|
}
|
|
3589
3589
|
logToNode(e) {
|
|
3590
|
-
if (!
|
|
3590
|
+
if (!k || !this.shouldLog(e.level)) return;
|
|
3591
3591
|
let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
|
|
3592
|
-
if (
|
|
3592
|
+
if (A) {
|
|
3593
3593
|
let e = {
|
|
3594
3594
|
timestamp: this.formatISOTimestamp(),
|
|
3595
3595
|
level: t.toUpperCase(),
|
|
@@ -3601,12 +3601,12 @@ var j = class Logger {
|
|
|
3601
3601
|
let r = JSON.stringify(e);
|
|
3602
3602
|
t === "trace" ? console.log(r) : console[t](r);
|
|
3603
3603
|
} else {
|
|
3604
|
-
let e =
|
|
3604
|
+
let e = j[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `[2m${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
|
|
3605
3605
|
console[t](c), i !== void 0 && console.log(JSON.stringify(this.formatData(i), null, 2)), a && (a instanceof Error ? (console.error(`\x1B[31mError:${s}`, a.message), a.stack && console.error(`\x1B[90m${a.stack}${s}`)) : console.error("Error:", a));
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
log(e) {
|
|
3609
|
-
|
|
3609
|
+
O ? this.logToBrowser(e) : k && this.logToNode(e);
|
|
3610
3610
|
}
|
|
3611
3611
|
error(e, t) {
|
|
3612
3612
|
this.log({
|
|
@@ -3649,7 +3649,7 @@ var j = class Logger {
|
|
|
3649
3649
|
});
|
|
3650
3650
|
}
|
|
3651
3651
|
isEnabled() {
|
|
3652
|
-
return !
|
|
3652
|
+
return !O || this.enabledInBrowser;
|
|
3653
3653
|
}
|
|
3654
3654
|
setLevel(e) {
|
|
3655
3655
|
this.settings.minLevel = e;
|
|
@@ -3667,11 +3667,11 @@ var j = class Logger {
|
|
|
3667
3667
|
};
|
|
3668
3668
|
}
|
|
3669
3669
|
};
|
|
3670
|
-
|
|
3670
|
+
M.hasShownHelp = !1;
|
|
3671
3671
|
function createLogger(e) {
|
|
3672
|
-
return new
|
|
3672
|
+
return new M({}, e);
|
|
3673
3673
|
}
|
|
3674
|
-
var
|
|
3674
|
+
var N = new M(), lr = N.error.bind(N), ur = N.warn.bind(N), dr = N.info.bind(N), fr = N.debug.bind(N), pr = N.trace.bind(N), SettingsObject = class {
|
|
3675
3675
|
constructor(e, t) {
|
|
3676
3676
|
this.objectName = e, this.settings = t, this.logger = createLogger(e);
|
|
3677
3677
|
}
|
|
@@ -3699,7 +3699,7 @@ function uuid() {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
//#endregion
|
|
3701
3701
|
//#region ../core/dist/utils/color.js
|
|
3702
|
-
var
|
|
3702
|
+
var mr = {
|
|
3703
3703
|
green: {
|
|
3704
3704
|
50: "oklch(98.2% 0.018 155.826)",
|
|
3705
3705
|
100: "oklch(96.2% 0.044 156.743)",
|
|
@@ -3832,7 +3832,7 @@ var hr = {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
};
|
|
3834
3834
|
function getColorSchemeOklch(e) {
|
|
3835
|
-
return
|
|
3835
|
+
return mr[e] || mr.blue;
|
|
3836
3836
|
}
|
|
3837
3837
|
//#endregion
|
|
3838
3838
|
//#region ../core/dist/utils/cookies.js
|
|
@@ -3905,18 +3905,18 @@ var CookieUtil = class {
|
|
|
3905
3905
|
getDeviceId() {
|
|
3906
3906
|
return this.getCookie(this.deviceIdName);
|
|
3907
3907
|
}
|
|
3908
|
-
},
|
|
3908
|
+
}, hr = new CookieUtil(), gr = ["https://redirect-a.invalid", "https://redirect-b.invalid"];
|
|
3909
3909
|
function isSafeRedirectPath(e) {
|
|
3910
3910
|
if (typeof e != "string" || !e.startsWith("/")) return !1;
|
|
3911
3911
|
try {
|
|
3912
|
-
return
|
|
3912
|
+
return gr.every((t) => new URL(e, t).origin === t);
|
|
3913
3913
|
} catch {
|
|
3914
3914
|
return !1;
|
|
3915
3915
|
}
|
|
3916
3916
|
}
|
|
3917
3917
|
//#endregion
|
|
3918
3918
|
//#region ../core/dist/utils/auth-errors.js
|
|
3919
|
-
var
|
|
3919
|
+
var P = {
|
|
3920
3920
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
3921
3921
|
AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
|
|
3922
3922
|
AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
|
|
@@ -3932,16 +3932,16 @@ var N = {
|
|
|
3932
3932
|
AUTH_UNKNOWN: "Something went wrong. Try again."
|
|
3933
3933
|
};
|
|
3934
3934
|
function mapAuthErrorCode(e) {
|
|
3935
|
-
return e ?
|
|
3935
|
+
return e ? P[e] ?? P.AUTH_UNKNOWN : P.AUTH_UNKNOWN;
|
|
3936
3936
|
}
|
|
3937
3937
|
function authErrorMessage(e) {
|
|
3938
|
-
return e.code ? mapAuthErrorCode(e.code) : e.error ||
|
|
3938
|
+
return e.code ? mapAuthErrorCode(e.code) : e.error || P.AUTH_UNKNOWN;
|
|
3939
3939
|
}
|
|
3940
3940
|
var AuthApiError = class extends Error {
|
|
3941
3941
|
constructor(e, t) {
|
|
3942
3942
|
super(e), this.name = "AuthApiError", this.code = t;
|
|
3943
3943
|
}
|
|
3944
|
-
},
|
|
3944
|
+
}, _r = object({
|
|
3945
3945
|
platform: _enum([
|
|
3946
3946
|
"linkedin",
|
|
3947
3947
|
"x",
|
|
@@ -3958,38 +3958,38 @@ var AuthApiError = class extends Error {
|
|
|
3958
3958
|
]),
|
|
3959
3959
|
handle: string(),
|
|
3960
3960
|
url: string().optional()
|
|
3961
|
-
}),
|
|
3961
|
+
}), vr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(_r)), yr = [
|
|
3962
3962
|
"image",
|
|
3963
3963
|
"audio",
|
|
3964
3964
|
"video",
|
|
3965
3965
|
"document"
|
|
3966
|
-
],
|
|
3966
|
+
], F = _enum(yr), br = [
|
|
3967
3967
|
"avatar",
|
|
3968
3968
|
"cover",
|
|
3969
3969
|
"general"
|
|
3970
|
-
],
|
|
3970
|
+
], xr = _enum(br), Sr = _enum([
|
|
3971
3971
|
"processing",
|
|
3972
3972
|
"active",
|
|
3973
3973
|
"failed",
|
|
3974
3974
|
"deleted"
|
|
3975
|
-
]),
|
|
3975
|
+
]), Cr = _enum([
|
|
3976
3976
|
"low",
|
|
3977
3977
|
"standard",
|
|
3978
3978
|
"high"
|
|
3979
|
-
]),
|
|
3979
|
+
]), wr = _enum([
|
|
3980
3980
|
"jpg",
|
|
3981
3981
|
"jpeg",
|
|
3982
3982
|
"png",
|
|
3983
3983
|
"gif",
|
|
3984
3984
|
"webp",
|
|
3985
3985
|
"svg"
|
|
3986
|
-
]),
|
|
3986
|
+
]), Tr = _enum([
|
|
3987
3987
|
"mp4",
|
|
3988
3988
|
"webm",
|
|
3989
3989
|
"ogg",
|
|
3990
3990
|
"mov",
|
|
3991
3991
|
"avi"
|
|
3992
|
-
]),
|
|
3992
|
+
]), Er = _enum([
|
|
3993
3993
|
"mp3",
|
|
3994
3994
|
"wav",
|
|
3995
3995
|
"ogg",
|
|
@@ -3999,7 +3999,7 @@ var AuthApiError = class extends Error {
|
|
|
3999
3999
|
"webm",
|
|
4000
4000
|
"m4a",
|
|
4001
4001
|
"mp4"
|
|
4002
|
-
]),
|
|
4002
|
+
]), I = object({
|
|
4003
4003
|
mediaId: string(),
|
|
4004
4004
|
userId: string(),
|
|
4005
4005
|
orgId: string(),
|
|
@@ -4009,56 +4009,56 @@ var AuthApiError = class extends Error {
|
|
|
4009
4009
|
size: number(),
|
|
4010
4010
|
src: string(),
|
|
4011
4011
|
alt: string().optional(),
|
|
4012
|
-
context:
|
|
4013
|
-
status:
|
|
4014
|
-
quality:
|
|
4012
|
+
context: xr.default("general"),
|
|
4013
|
+
status: Sr.default("processing"),
|
|
4014
|
+
quality: Cr.default("standard"),
|
|
4015
4015
|
createdAt: string().optional(),
|
|
4016
4016
|
updatedAt: string().optional()
|
|
4017
4017
|
}).extend({
|
|
4018
|
-
type:
|
|
4019
|
-
mediaType:
|
|
4018
|
+
type: F.optional(),
|
|
4019
|
+
mediaType: F.optional(),
|
|
4020
4020
|
className: string().optional(),
|
|
4021
4021
|
width: number().optional(),
|
|
4022
4022
|
height: number().optional(),
|
|
4023
4023
|
duration: number().optional(),
|
|
4024
4024
|
blurhash: string().optional()
|
|
4025
|
-
}).partial(),
|
|
4025
|
+
}).partial(), Dr = object({
|
|
4026
4026
|
duration: number().optional(),
|
|
4027
4027
|
thumbnail: string().optional(),
|
|
4028
4028
|
autoplay: boolean().optional(),
|
|
4029
4029
|
loop: boolean().optional(),
|
|
4030
4030
|
muted: boolean().optional(),
|
|
4031
4031
|
controls: boolean().optional()
|
|
4032
|
-
}),
|
|
4032
|
+
}), Or = object({
|
|
4033
4033
|
duration: number().optional(),
|
|
4034
4034
|
autoplay: boolean().optional(),
|
|
4035
4035
|
loop: boolean().optional(),
|
|
4036
4036
|
muted: boolean().optional(),
|
|
4037
4037
|
controls: boolean().optional()
|
|
4038
|
-
}),
|
|
4038
|
+
}), kr = I.extend({
|
|
4039
4039
|
mediaType: literal("image"),
|
|
4040
|
-
imageFormat:
|
|
4041
|
-
}),
|
|
4040
|
+
imageFormat: wr.optional()
|
|
4041
|
+
}), Ar = I.extend({
|
|
4042
4042
|
mediaType: literal("video"),
|
|
4043
|
-
videoFormat:
|
|
4044
|
-
video:
|
|
4045
|
-
}),
|
|
4043
|
+
videoFormat: Tr.optional(),
|
|
4044
|
+
video: Dr.optional()
|
|
4045
|
+
}), jr = I.extend({
|
|
4046
4046
|
mediaType: literal("audio"),
|
|
4047
|
-
audioFormat:
|
|
4048
|
-
audio:
|
|
4049
|
-
}),
|
|
4047
|
+
audioFormat: Er.optional(),
|
|
4048
|
+
audio: Or.optional()
|
|
4049
|
+
}), Mr = I.extend({ mediaType: literal("document") }), Nr = discriminatedUnion("mediaType", [
|
|
4050
|
+
kr,
|
|
4050
4051
|
Ar,
|
|
4051
4052
|
jr,
|
|
4052
|
-
Mr
|
|
4053
|
-
|
|
4054
|
-
]), Fr = _enum([
|
|
4053
|
+
Mr
|
|
4054
|
+
]), Pr = _enum([
|
|
4055
4055
|
"xxs",
|
|
4056
4056
|
"xs",
|
|
4057
4057
|
"sm",
|
|
4058
4058
|
"md",
|
|
4059
4059
|
"lg",
|
|
4060
4060
|
"xl"
|
|
4061
|
-
]),
|
|
4061
|
+
]), Fr = _enum([
|
|
4062
4062
|
"primary",
|
|
4063
4063
|
"default",
|
|
4064
4064
|
"overlay",
|
|
@@ -4066,20 +4066,20 @@ var AuthApiError = class extends Error {
|
|
|
4066
4066
|
"green",
|
|
4067
4067
|
"indigo",
|
|
4068
4068
|
"orange"
|
|
4069
|
-
]),
|
|
4069
|
+
]), Ir = _enum([
|
|
4070
4070
|
"ghost",
|
|
4071
4071
|
"link",
|
|
4072
4072
|
"outline",
|
|
4073
4073
|
"solid"
|
|
4074
|
-
]),
|
|
4074
|
+
]), L = object({
|
|
4075
4075
|
key: string().optional(),
|
|
4076
4076
|
label: string().optional(),
|
|
4077
4077
|
href: string().optional(),
|
|
4078
|
-
size:
|
|
4079
|
-
theme:
|
|
4080
|
-
design:
|
|
4081
|
-
icon: union([string(),
|
|
4082
|
-
iconAfter: union([string(),
|
|
4078
|
+
size: Pr.optional(),
|
|
4079
|
+
theme: Fr.optional(),
|
|
4080
|
+
design: Ir.optional(),
|
|
4081
|
+
icon: union([string(), I]).optional(),
|
|
4082
|
+
iconAfter: union([string(), I]).optional(),
|
|
4083
4083
|
rounding: _enum([
|
|
4084
4084
|
"full",
|
|
4085
4085
|
"md",
|
|
@@ -4096,12 +4096,12 @@ var AuthApiError = class extends Error {
|
|
|
4096
4096
|
"submit",
|
|
4097
4097
|
"reset"
|
|
4098
4098
|
]).optional()
|
|
4099
|
-
}),
|
|
4100
|
-
buttons: array(
|
|
4101
|
-
size:
|
|
4102
|
-
theme:
|
|
4103
|
-
design:
|
|
4104
|
-
}),
|
|
4099
|
+
}), Lr = object({
|
|
4100
|
+
buttons: array(L).optional(),
|
|
4101
|
+
size: Pr.optional(),
|
|
4102
|
+
theme: Fr.optional(),
|
|
4103
|
+
design: Ir.optional()
|
|
4104
|
+
}), Rr = 3900, zr = `$${Rr / 100}/month`, Br = _enum(["account", "error"]), Vr = [
|
|
4105
4105
|
"billing_no_plan",
|
|
4106
4106
|
"billing_seat_limit",
|
|
4107
4107
|
"billing_past_due",
|
|
@@ -4129,9 +4129,9 @@ var AuthApiError = class extends Error {
|
|
|
4129
4129
|
billing_no_plan: {
|
|
4130
4130
|
bucket: "account",
|
|
4131
4131
|
title: "Billing needed",
|
|
4132
|
-
help: `Add a payment method to turn live replies back on. Plans start at ${
|
|
4132
|
+
help: `Add a payment method to turn live replies back on. Plans start at ${zr} per active assistant, cancel anytime.`,
|
|
4133
4133
|
actionLabel: "Open billing",
|
|
4134
|
-
oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${
|
|
4134
|
+
oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${zr} per active assistant.`
|
|
4135
4135
|
},
|
|
4136
4136
|
billing_seat_limit: {
|
|
4137
4137
|
bucket: "account",
|
|
@@ -4401,11 +4401,11 @@ var ei = object({
|
|
|
4401
4401
|
state: Jr.optional(),
|
|
4402
4402
|
count: number().optional(),
|
|
4403
4403
|
className: string().optional(),
|
|
4404
|
-
media:
|
|
4405
|
-
subMedia:
|
|
4406
|
-
cover:
|
|
4407
|
-
icon:
|
|
4408
|
-
iconAfter:
|
|
4404
|
+
media: I.optional(),
|
|
4405
|
+
subMedia: I.optional(),
|
|
4406
|
+
cover: I.optional(),
|
|
4407
|
+
icon: I.optional(),
|
|
4408
|
+
iconAfter: I.optional(),
|
|
4409
4409
|
subIcon: string().optional(),
|
|
4410
4410
|
href: string().optional(),
|
|
4411
4411
|
target: _enum(["_self", "_blank"]).optional(),
|
|
@@ -4417,8 +4417,8 @@ var ei = object({
|
|
|
4417
4417
|
priority: number().optional(),
|
|
4418
4418
|
testId: string().optional(),
|
|
4419
4419
|
items: array(any()).optional(),
|
|
4420
|
-
badges: array(
|
|
4421
|
-
meta: array(
|
|
4420
|
+
badges: array(L).optional(),
|
|
4421
|
+
meta: array(L).optional(),
|
|
4422
4422
|
menuItems: array(any()).optional()
|
|
4423
4423
|
}), ti = object({
|
|
4424
4424
|
title: string().optional(),
|
|
@@ -4598,7 +4598,26 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4598
4598
|
surfaceGuidance: string().optional(),
|
|
4599
4599
|
maxDurationSeconds: number().int().positive().max(3600).optional(),
|
|
4600
4600
|
expiresAt: datetime()
|
|
4601
|
-
}), si = _enum(["elevenlabs", "livekit"]), ci =
|
|
4601
|
+
}), si = _enum(["elevenlabs", "livekit"]), ci = object({
|
|
4602
|
+
name: _enum([
|
|
4603
|
+
"voice.ready",
|
|
4604
|
+
"voice.first_playback",
|
|
4605
|
+
"voice.failed"
|
|
4606
|
+
]),
|
|
4607
|
+
client: _enum(["web", "ios"]),
|
|
4608
|
+
agentId: string().min(1).max(64).optional(),
|
|
4609
|
+
conversationId: string().min(1).max(64).optional(),
|
|
4610
|
+
provider: si.optional(),
|
|
4611
|
+
durationMs: number().int().min(0).max(36e5),
|
|
4612
|
+
phase: _enum([
|
|
4613
|
+
"idle",
|
|
4614
|
+
"minting",
|
|
4615
|
+
"connecting",
|
|
4616
|
+
"live",
|
|
4617
|
+
"ended"
|
|
4618
|
+
]).optional(),
|
|
4619
|
+
code: string().min(1).max(64).optional()
|
|
4620
|
+
}).strict(), li = discriminatedUnion("provider", [object({
|
|
4602
4621
|
provider: literal("elevenlabs"),
|
|
4603
4622
|
conversationToken: string().min(1),
|
|
4604
4623
|
voiceId: string().min(1)
|
|
@@ -4607,7 +4626,7 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4607
4626
|
url: string().min(1),
|
|
4608
4627
|
token: string().min(1),
|
|
4609
4628
|
room: string().min(1)
|
|
4610
|
-
}).strict()]),
|
|
4629
|
+
}).strict()]), ui = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4611
4630
|
platform: _enum([
|
|
4612
4631
|
"linkedin",
|
|
4613
4632
|
"x",
|
|
@@ -4626,7 +4645,7 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4626
4645
|
"essential",
|
|
4627
4646
|
"professional",
|
|
4628
4647
|
"business"
|
|
4629
|
-
]),
|
|
4648
|
+
]), di = object({
|
|
4630
4649
|
agentId: string().optional(),
|
|
4631
4650
|
handle: string().optional(),
|
|
4632
4651
|
ownerId: string().optional(),
|
|
@@ -4638,11 +4657,11 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4638
4657
|
entityType: string().optional(),
|
|
4639
4658
|
avatarId: string().nullable().optional(),
|
|
4640
4659
|
coverId: string().nullable().optional(),
|
|
4641
|
-
avatar:
|
|
4642
|
-
cover:
|
|
4660
|
+
avatar: I.optional(),
|
|
4661
|
+
cover: I.optional(),
|
|
4643
4662
|
email: string().nullable().optional(),
|
|
4644
4663
|
website: string().url().nullable().optional(),
|
|
4645
|
-
accounts:
|
|
4664
|
+
accounts: ui.nullable().optional(),
|
|
4646
4665
|
model: string().nullable().optional(),
|
|
4647
4666
|
gender: H.optional(),
|
|
4648
4667
|
voiceKey: W.nullable().optional(),
|
|
@@ -4654,9 +4673,9 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4654
4673
|
desiredStatus: V.nullable().optional(),
|
|
4655
4674
|
automationPrimaryChannel: string().optional(),
|
|
4656
4675
|
heartbeatEnabled: boolean().optional(),
|
|
4657
|
-
heartbeatBriefingTime:
|
|
4658
|
-
heartbeatCheckinTime:
|
|
4659
|
-
heartbeatCloseoutTime:
|
|
4676
|
+
heartbeatBriefingTime: E.nullable().optional(),
|
|
4677
|
+
heartbeatCheckinTime: E.nullable().optional(),
|
|
4678
|
+
heartbeatCloseoutTime: E.nullable().optional(),
|
|
4660
4679
|
onboardedAt: string().nullable().optional(),
|
|
4661
4680
|
org: object({
|
|
4662
4681
|
orgId: string(),
|
|
@@ -4669,7 +4688,7 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4669
4688
|
owner: object({
|
|
4670
4689
|
userId: string(),
|
|
4671
4690
|
fullName: string().optional(),
|
|
4672
|
-
avatar:
|
|
4691
|
+
avatar: I.optional()
|
|
4673
4692
|
}).optional(),
|
|
4674
4693
|
visibility: _enum([
|
|
4675
4694
|
"private",
|
|
@@ -4679,14 +4698,14 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4679
4698
|
status: string().optional(),
|
|
4680
4699
|
createdAt: string().optional(),
|
|
4681
4700
|
updatedAt: string().optional()
|
|
4682
|
-
}),
|
|
4701
|
+
}), fi = di.extend({
|
|
4683
4702
|
isPrimary: boolean().optional(),
|
|
4684
4703
|
lifecycle: B.optional(),
|
|
4685
4704
|
changedAt: string().datetime().optional(),
|
|
4686
4705
|
detail: string().optional(),
|
|
4687
4706
|
blocker: R.optional(),
|
|
4688
4707
|
operation: Wr.optional()
|
|
4689
|
-
}),
|
|
4708
|
+
}), pi = Object.keys(fi.shape), mi = class Agent extends SettingsObject {
|
|
4690
4709
|
constructor(e) {
|
|
4691
4710
|
let t = "config" in e ? {
|
|
4692
4711
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4704,7 +4723,7 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4704
4723
|
}), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
|
|
4705
4724
|
}
|
|
4706
4725
|
merge(e) {
|
|
4707
|
-
for (let t of
|
|
4726
|
+
for (let t of pi) {
|
|
4708
4727
|
if (!(t in e)) continue;
|
|
4709
4728
|
let n = this[t];
|
|
4710
4729
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4712,7 +4731,7 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4712
4731
|
}
|
|
4713
4732
|
toConfig() {
|
|
4714
4733
|
let e = {};
|
|
4715
|
-
for (let t of
|
|
4734
|
+
for (let t of pi) {
|
|
4716
4735
|
let n = this[t];
|
|
4717
4736
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4718
4737
|
}
|
|
@@ -4723,24 +4742,24 @@ var ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
|
4723
4742
|
}
|
|
4724
4743
|
};
|
|
4725
4744
|
function createAgent(e) {
|
|
4726
|
-
return new
|
|
4745
|
+
return new mi(e);
|
|
4727
4746
|
}
|
|
4728
4747
|
function createAgents(e) {
|
|
4729
|
-
return e.configs.map((t) => new
|
|
4748
|
+
return e.configs.map((t) => new mi({
|
|
4730
4749
|
config: t,
|
|
4731
4750
|
context: e.context
|
|
4732
4751
|
}));
|
|
4733
4752
|
}
|
|
4734
4753
|
//#endregion
|
|
4735
4754
|
//#region ../core/dist/types/user.js
|
|
4736
|
-
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"),
|
|
4755
|
+
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), hi = string().trim().toLowerCase().pipe(email()), gi = object({
|
|
4737
4756
|
userId: string(),
|
|
4738
4757
|
email: string().optional(),
|
|
4739
4758
|
handle: string().optional(),
|
|
4740
4759
|
fullName: string().optional(),
|
|
4741
4760
|
linkedinUsername: K.optional(),
|
|
4742
4761
|
avatarId: string().optional(),
|
|
4743
|
-
avatar:
|
|
4762
|
+
avatar: I.optional(),
|
|
4744
4763
|
isEmailVerified: boolean().optional(),
|
|
4745
4764
|
primaryAgentId: string().optional(),
|
|
4746
4765
|
primaryOrgId: string().optional(),
|
|
@@ -4755,7 +4774,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4755
4774
|
createdAt: string().optional(),
|
|
4756
4775
|
updatedAt: string().optional(),
|
|
4757
4776
|
onboarded: boolean().optional()
|
|
4758
|
-
}),
|
|
4777
|
+
}), _i = object({
|
|
4759
4778
|
name: string().min(1).max(100).optional(),
|
|
4760
4779
|
linkedinUsername: K.nullable().optional(),
|
|
4761
4780
|
avatar: object({
|
|
@@ -4766,16 +4785,16 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4766
4785
|
primaryOrgId: string().optional(),
|
|
4767
4786
|
lastActiveOrgId: string().optional(),
|
|
4768
4787
|
onboarding: any().optional()
|
|
4769
|
-
}).partial(),
|
|
4770
|
-
email:
|
|
4788
|
+
}).partial(), vi = object({ email: hi }), yi = object({
|
|
4789
|
+
email: hi,
|
|
4771
4790
|
code: string().min(6, "Verification code is required"),
|
|
4772
4791
|
timezone: string().max(64).optional()
|
|
4773
|
-
}),
|
|
4792
|
+
}), bi = object({ newEmail: hi }), xi = object({
|
|
4774
4793
|
credential: string().optional(),
|
|
4775
4794
|
code: string().optional(),
|
|
4776
4795
|
timezone: string().max(64).optional(),
|
|
4777
4796
|
source: _enum(["web", "ios"]).optional()
|
|
4778
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4797
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), Si = object({
|
|
4779
4798
|
identityToken: string().min(1),
|
|
4780
4799
|
fullName: string().optional(),
|
|
4781
4800
|
timezone: string().max(64).optional()
|
|
@@ -4787,10 +4806,10 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4787
4806
|
website: string().url().nullable().optional(),
|
|
4788
4807
|
summary: string().nullable().optional(),
|
|
4789
4808
|
avatarId: string().nullable().optional(),
|
|
4790
|
-
avatar:
|
|
4809
|
+
avatar: I.optional(),
|
|
4791
4810
|
coverId: string().nullable().optional(),
|
|
4792
|
-
cover:
|
|
4793
|
-
accounts:
|
|
4811
|
+
cover: I.optional(),
|
|
4812
|
+
accounts: vr.nullable().optional(),
|
|
4794
4813
|
ownerId: string().optional(),
|
|
4795
4814
|
isPersonal: boolean().optional(),
|
|
4796
4815
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
@@ -4809,7 +4828,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4809
4828
|
status: string().optional(),
|
|
4810
4829
|
createdAt: string().optional(),
|
|
4811
4830
|
updatedAt: string().optional()
|
|
4812
|
-
}),
|
|
4831
|
+
}), Ci = q.extend({
|
|
4813
4832
|
defaultAgent: object({
|
|
4814
4833
|
agentId: string(),
|
|
4815
4834
|
handle: string(),
|
|
@@ -4817,22 +4836,22 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4817
4836
|
orgId: string()
|
|
4818
4837
|
}),
|
|
4819
4838
|
onboardingCompleted: boolean().optional()
|
|
4820
|
-
}),
|
|
4839
|
+
}), wi = object({
|
|
4821
4840
|
completedAt: string().datetime().optional(),
|
|
4822
4841
|
setupBy: string().optional(),
|
|
4823
4842
|
billingSetup: boolean().optional(),
|
|
4824
4843
|
teamInvitesSetup: boolean().optional(),
|
|
4825
4844
|
brandingSetup: boolean().optional(),
|
|
4826
4845
|
domainsSetup: boolean().optional()
|
|
4827
|
-
}),
|
|
4846
|
+
}), Ti = object({
|
|
4828
4847
|
membershipId: string(),
|
|
4829
4848
|
orgId: string(),
|
|
4830
4849
|
name: string(),
|
|
4831
4850
|
handle: string(),
|
|
4832
4851
|
avatarId: string().optional(),
|
|
4833
|
-
avatar:
|
|
4852
|
+
avatar: I.optional(),
|
|
4834
4853
|
coverId: string().optional(),
|
|
4835
|
-
cover:
|
|
4854
|
+
cover: I.optional(),
|
|
4836
4855
|
role: _enum([
|
|
4837
4856
|
"owner",
|
|
4838
4857
|
"admin",
|
|
@@ -4842,10 +4861,10 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4842
4861
|
memberCount: number().optional(),
|
|
4843
4862
|
agentCount: number().optional(),
|
|
4844
4863
|
joinedAt: string().datetime(),
|
|
4845
|
-
onboarding:
|
|
4846
|
-
}),
|
|
4847
|
-
orgs: array(
|
|
4848
|
-
agents: array(
|
|
4864
|
+
onboarding: wi.optional()
|
|
4865
|
+
}), Ei = gi.extend({
|
|
4866
|
+
orgs: array(Ti).optional(),
|
|
4867
|
+
agents: array(di).optional()
|
|
4849
4868
|
});
|
|
4850
4869
|
//#endregion
|
|
4851
4870
|
//#region ../core/dist/state.js
|
|
@@ -4868,7 +4887,7 @@ function derive(e) {
|
|
|
4868
4887
|
}
|
|
4869
4888
|
//#endregion
|
|
4870
4889
|
//#region ../core/dist/bot-ua.js
|
|
4871
|
-
var
|
|
4890
|
+
var Di = "pagelines-agent/1.0", Oi = [
|
|
4872
4891
|
"[SILENT]",
|
|
4873
4892
|
"SILENT",
|
|
4874
4893
|
"NO_REPLY",
|
|
@@ -4882,21 +4901,21 @@ var Ei = "pagelines-agent/1.0", Di = [
|
|
|
4882
4901
|
"[NO_OP]",
|
|
4883
4902
|
"[NO OP]",
|
|
4884
4903
|
"HEARTBEAT_OK"
|
|
4885
|
-
],
|
|
4904
|
+
], ki = new Set(Oi);
|
|
4886
4905
|
function normalizeAssistantControl(e) {
|
|
4887
4906
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4888
4907
|
}
|
|
4889
4908
|
function isAssistantSilenceControl(e) {
|
|
4890
4909
|
let t = normalizeAssistantControl(e);
|
|
4891
|
-
return t.length <= 64 &&
|
|
4910
|
+
return t.length <= 64 && ki.has(t);
|
|
4892
4911
|
}
|
|
4893
4912
|
function isAssistantSilenceControlPrefix(e) {
|
|
4894
4913
|
let t = normalizeAssistantControl(e);
|
|
4895
|
-
return t.length <= 64 &&
|
|
4914
|
+
return t.length <= 64 && Oi.some((e) => e.startsWith(t));
|
|
4896
4915
|
}
|
|
4897
4916
|
//#endregion
|
|
4898
4917
|
//#region ../core/dist/timingBudgets.js
|
|
4899
|
-
var
|
|
4918
|
+
var Ai = {
|
|
4900
4919
|
wake: 300 * 1e3,
|
|
4901
4920
|
bootGrace: 420 * 1e3,
|
|
4902
4921
|
stop: 30 * 1e3
|
|
@@ -4914,12 +4933,12 @@ function formatBudgetDuration(e) {
|
|
|
4914
4933
|
}
|
|
4915
4934
|
//#endregion
|
|
4916
4935
|
//#region ../core/dist/paths.js
|
|
4917
|
-
var
|
|
4936
|
+
var ji = "/api/bot-api", Mi = "/api/bot-api/v1";
|
|
4918
4937
|
function botApiLlmUrl(e) {
|
|
4919
|
-
return `${e}${
|
|
4938
|
+
return `${e}${Mi}`;
|
|
4920
4939
|
}
|
|
4921
4940
|
function botApiUrl(e) {
|
|
4922
|
-
return `${e}${
|
|
4941
|
+
return `${e}${ji}`;
|
|
4923
4942
|
}
|
|
4924
4943
|
//#endregion
|
|
4925
4944
|
//#region ../core/dist/errorCopy.js
|
|
@@ -4954,7 +4973,7 @@ var J = {
|
|
|
4954
4973
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4955
4974
|
FORBIDDEN: "You don't have access to this.",
|
|
4956
4975
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4957
|
-
},
|
|
4976
|
+
}, Ni = {
|
|
4958
4977
|
notFound: "Not found. Try refreshing.",
|
|
4959
4978
|
busy: "Busy — try again in a moment.",
|
|
4960
4979
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4967,11 +4986,11 @@ function errorCopy(e, t) {
|
|
|
4967
4986
|
return e && e in J ? J[e] : t;
|
|
4968
4987
|
}
|
|
4969
4988
|
function errorFromApiResponse(e, t) {
|
|
4970
|
-
return e.code && e.code in J ? J[e.code] : e.providerErrorKind &&
|
|
4989
|
+
return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Ni[e.providerErrorKind] ? Ni[e.providerErrorKind] : e.error || t;
|
|
4971
4990
|
}
|
|
4972
4991
|
//#endregion
|
|
4973
4992
|
//#region ../core/dist/retryPolicy.js
|
|
4974
|
-
var
|
|
4993
|
+
var Pi = {
|
|
4975
4994
|
shouldRetry: !1,
|
|
4976
4995
|
maxAttempts: 1,
|
|
4977
4996
|
strategy: "none",
|
|
@@ -4989,7 +5008,7 @@ function retryPolicyFor(e) {
|
|
|
4989
5008
|
"FORBIDDEN",
|
|
4990
5009
|
"AGENT_NOT_FOUND"
|
|
4991
5010
|
]);
|
|
4992
|
-
if (e.code && t.has(e.code)) return
|
|
5011
|
+
if (e.code && t.has(e.code)) return Pi;
|
|
4993
5012
|
switch (e.providerErrorKind) {
|
|
4994
5013
|
case "busy": return {
|
|
4995
5014
|
shouldRetry: !0,
|
|
@@ -5024,8 +5043,8 @@ function retryPolicyFor(e) {
|
|
|
5024
5043
|
};
|
|
5025
5044
|
case "notFound":
|
|
5026
5045
|
case "invalidConfig":
|
|
5027
|
-
case "fatal": return
|
|
5028
|
-
default: return
|
|
5046
|
+
case "fatal": return Pi;
|
|
5047
|
+
default: return Pi;
|
|
5029
5048
|
}
|
|
5030
5049
|
}
|
|
5031
5050
|
//#endregion
|
|
@@ -5036,7 +5055,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5036
5055
|
} catch {
|
|
5037
5056
|
return !1;
|
|
5038
5057
|
}
|
|
5039
|
-
}, "Invalid IANA timezone"),
|
|
5058
|
+
}, "Invalid IANA timezone"), Fi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ii = object({
|
|
5040
5059
|
orgId: string(),
|
|
5041
5060
|
name: string().min(1).max(100),
|
|
5042
5061
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5050,7 +5069,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5050
5069
|
"org",
|
|
5051
5070
|
"public"
|
|
5052
5071
|
]).optional()
|
|
5053
|
-
}).strict(),
|
|
5072
|
+
}).strict(), Li = object({
|
|
5054
5073
|
name: string().min(1).max(100).optional(),
|
|
5055
5074
|
handle: string().min(2).max(50).optional(),
|
|
5056
5075
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5070,16 +5089,16 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5070
5089
|
"org",
|
|
5071
5090
|
"public"
|
|
5072
5091
|
]).optional(),
|
|
5073
|
-
automationPrimaryChannel:
|
|
5092
|
+
automationPrimaryChannel: Fi.optional(),
|
|
5074
5093
|
heartbeatEnabled: boolean().optional(),
|
|
5075
|
-
heartbeatBriefingTime:
|
|
5076
|
-
heartbeatCheckinTime:
|
|
5077
|
-
heartbeatCloseoutTime:
|
|
5078
|
-
}).strict(),
|
|
5094
|
+
heartbeatBriefingTime: E.nullable().optional(),
|
|
5095
|
+
heartbeatCheckinTime: E.nullable().optional(),
|
|
5096
|
+
heartbeatCloseoutTime: E.nullable().optional()
|
|
5097
|
+
}).strict(), Ri = fi, zi = object({
|
|
5079
5098
|
id: string(),
|
|
5080
5099
|
label: string(),
|
|
5081
5100
|
prompt: string()
|
|
5082
|
-
}),
|
|
5101
|
+
}), Bi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_DEMO_SPENT.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), Vi = _enum(Bi), Hi = _enum([
|
|
5083
5102
|
"notFound",
|
|
5084
5103
|
"busy",
|
|
5085
5104
|
"rateLimited",
|
|
@@ -5090,21 +5109,21 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5090
5109
|
]), zApiOk = (e) => object({
|
|
5091
5110
|
ok: literal(!0),
|
|
5092
5111
|
data: e
|
|
5093
|
-
}),
|
|
5112
|
+
}), Ui = object({
|
|
5094
5113
|
ok: literal(!1),
|
|
5095
5114
|
error: string(),
|
|
5096
|
-
code:
|
|
5115
|
+
code: Vi.optional(),
|
|
5097
5116
|
issue: R.optional(),
|
|
5098
|
-
providerErrorKind:
|
|
5099
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
5117
|
+
providerErrorKind: Hi.optional()
|
|
5118
|
+
}), zApiResponse = (e) => union([zApiOk(e), Ui]), Wi = {
|
|
5100
5119
|
400: "Invalid body.",
|
|
5101
5120
|
401: "Not authenticated.",
|
|
5102
5121
|
500: "Server error."
|
|
5103
5122
|
};
|
|
5104
5123
|
function zErrorResponses(e) {
|
|
5105
5124
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
5106
|
-
description: t === !0 ?
|
|
5107
|
-
content: { "application/json": { schema:
|
|
5125
|
+
description: t === !0 ? Wi[Number(e)] ?? "Request failed." : t,
|
|
5126
|
+
content: { "application/json": { schema: Ui } }
|
|
5108
5127
|
}]));
|
|
5109
5128
|
}
|
|
5110
5129
|
function apiError(e, t, n) {
|
|
@@ -5127,7 +5146,7 @@ function apiOk(e) {
|
|
|
5127
5146
|
}
|
|
5128
5147
|
//#endregion
|
|
5129
5148
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
5130
|
-
var
|
|
5149
|
+
var Gi = object({
|
|
5131
5150
|
kind: _enum([
|
|
5132
5151
|
"icon",
|
|
5133
5152
|
"favicon",
|
|
@@ -5136,7 +5155,7 @@ var Wi = object({
|
|
|
5136
5155
|
icon: string().min(1).optional(),
|
|
5137
5156
|
domain: string().min(1).optional(),
|
|
5138
5157
|
serviceKey: string().min(1).optional()
|
|
5139
|
-
}).strict(),
|
|
5158
|
+
}).strict(), Ki = object({
|
|
5140
5159
|
activityId: string().min(1),
|
|
5141
5160
|
turnId: string().min(1),
|
|
5142
5161
|
status: _enum([
|
|
@@ -5160,12 +5179,12 @@ var Wi = object({
|
|
|
5160
5179
|
endedAt: string().datetime().optional(),
|
|
5161
5180
|
durationMs: number().int().nonnegative().optional(),
|
|
5162
5181
|
note: string().trim().min(1).optional(),
|
|
5163
|
-
visual:
|
|
5164
|
-
}).strict(),
|
|
5182
|
+
visual: Gi.optional()
|
|
5183
|
+
}).strict(), qi = Ki.extend({ status: _enum(["completed", "failed"]) }), Ji = F, Yi = object({
|
|
5165
5184
|
kind: literal("inline"),
|
|
5166
5185
|
offset: number().int().nonnegative()
|
|
5167
|
-
}),
|
|
5168
|
-
type:
|
|
5186
|
+
}), Xi = object({
|
|
5187
|
+
type: Ji,
|
|
5169
5188
|
src: url(),
|
|
5170
5189
|
filename: string().min(1),
|
|
5171
5190
|
mimeType: string().min(1),
|
|
@@ -5175,12 +5194,12 @@ var Wi = object({
|
|
|
5175
5194
|
height: number().int().positive().optional(),
|
|
5176
5195
|
duration: number().nonnegative().optional(),
|
|
5177
5196
|
text: string().optional(),
|
|
5178
|
-
placement:
|
|
5179
|
-
}),
|
|
5197
|
+
placement: Yi.optional()
|
|
5198
|
+
}), Zi = object({ ref: string().min(1).max(256) }).strict(), Qi = _enum([
|
|
5180
5199
|
"handled",
|
|
5181
5200
|
"dismissed",
|
|
5182
5201
|
"deferred"
|
|
5183
|
-
]),
|
|
5202
|
+
]), $i = datetime();
|
|
5184
5203
|
function validateAttentionRevisit(e, t) {
|
|
5185
5204
|
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
5186
5205
|
code: "custom",
|
|
@@ -5188,17 +5207,17 @@ function validateAttentionRevisit(e, t) {
|
|
|
5188
5207
|
message: "revisitAt requires deferred disposition"
|
|
5189
5208
|
});
|
|
5190
5209
|
}
|
|
5191
|
-
var
|
|
5192
|
-
disposition:
|
|
5193
|
-
revisitAt:
|
|
5194
|
-
}).superRefine(validateAttentionRevisit),
|
|
5195
|
-
disposition:
|
|
5196
|
-
revisitAt:
|
|
5197
|
-
}).superRefine(validateAttentionRevisit),
|
|
5210
|
+
var ea = Zi.extend({
|
|
5211
|
+
disposition: Qi.optional(),
|
|
5212
|
+
revisitAt: $i.optional()
|
|
5213
|
+
}).superRefine(validateAttentionRevisit), ta = Zi.extend({
|
|
5214
|
+
disposition: Qi,
|
|
5215
|
+
revisitAt: $i.optional()
|
|
5216
|
+
}).superRefine(validateAttentionRevisit), na = object({
|
|
5198
5217
|
turnId: string().min(1).optional(),
|
|
5199
5218
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
5200
|
-
attachments: array(
|
|
5201
|
-
toolActivities: array(
|
|
5219
|
+
attachments: array(Xi).optional(),
|
|
5220
|
+
toolActivities: array(qi).optional(),
|
|
5202
5221
|
issue: object({
|
|
5203
5222
|
code: string(),
|
|
5204
5223
|
bucket: _enum(["account", "error"]),
|
|
@@ -5230,8 +5249,8 @@ var $i = Xi.extend({
|
|
|
5230
5249
|
])
|
|
5231
5250
|
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
5232
5251
|
ownerHandoff: literal(!0).optional(),
|
|
5233
|
-
attention: array(
|
|
5234
|
-
}).catchall(unknown()),
|
|
5252
|
+
attention: array(ea).max(20).optional()
|
|
5253
|
+
}).catchall(unknown()), ra = object({
|
|
5235
5254
|
messageId: string().min(1),
|
|
5236
5255
|
conversationId: string().min(1),
|
|
5237
5256
|
role: _enum([
|
|
@@ -5244,12 +5263,12 @@ var $i = Xi.extend({
|
|
|
5244
5263
|
content: string(),
|
|
5245
5264
|
sequence: string().min(1),
|
|
5246
5265
|
clientNonce: string().nullable().optional(),
|
|
5247
|
-
metadata:
|
|
5266
|
+
metadata: na.nullable().optional(),
|
|
5248
5267
|
status: string().nullable().optional(),
|
|
5249
5268
|
createdAt: string(),
|
|
5250
5269
|
updatedAt: string()
|
|
5251
|
-
}),
|
|
5252
|
-
type:
|
|
5270
|
+
}), ia = object({
|
|
5271
|
+
type: Ji,
|
|
5253
5272
|
mediaId: string().min(1).optional(),
|
|
5254
5273
|
url: url().optional(),
|
|
5255
5274
|
name: string().min(1).optional(),
|
|
@@ -5265,11 +5284,11 @@ var $i = Xi.extend({
|
|
|
5265
5284
|
path: [n],
|
|
5266
5285
|
message: `${n} is required when mediaId is absent`
|
|
5267
5286
|
});
|
|
5268
|
-
}),
|
|
5287
|
+
}), aa = object({
|
|
5269
5288
|
conversationId: string().min(1),
|
|
5270
5289
|
content: string().max(1e4).default(""),
|
|
5271
5290
|
clientNonce: string().max(64).optional(),
|
|
5272
|
-
attachments: array(
|
|
5291
|
+
attachments: array(ia).max(10).optional(),
|
|
5273
5292
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5274
5293
|
actionUrls: object({
|
|
5275
5294
|
billing: string().max(500),
|
|
@@ -5279,7 +5298,7 @@ var $i = Xi.extend({
|
|
|
5279
5298
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5280
5299
|
path: ["content"],
|
|
5281
5300
|
message: "Message or attachment required"
|
|
5282
|
-
}),
|
|
5301
|
+
}), oa = object({
|
|
5283
5302
|
type: _enum(["user", "agent"]),
|
|
5284
5303
|
id: string().min(1)
|
|
5285
5304
|
}).strict();
|
|
@@ -5294,44 +5313,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5294
5313
|
}), n.add(e);
|
|
5295
5314
|
}
|
|
5296
5315
|
}
|
|
5297
|
-
var
|
|
5316
|
+
var sa = object({
|
|
5298
5317
|
orgId: string().min(1),
|
|
5299
|
-
participants: array(
|
|
5300
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5318
|
+
participants: array(oa).min(1).max(20)
|
|
5319
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), ca = object({
|
|
5301
5320
|
orgId: string().min(1),
|
|
5302
|
-
participants: array(
|
|
5321
|
+
participants: array(oa).min(1).max(20)
|
|
5303
5322
|
}).strict().superRefine((e, t) => {
|
|
5304
5323
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5305
5324
|
code: "custom",
|
|
5306
5325
|
path: ["participants"],
|
|
5307
5326
|
message: "New sessions require at least one agent participant."
|
|
5308
5327
|
});
|
|
5309
|
-
}),
|
|
5328
|
+
}), la = object({
|
|
5310
5329
|
category: string().min(1).max(30).optional(),
|
|
5311
5330
|
reason: string().max(2e3).optional()
|
|
5312
|
-
}).strict(),
|
|
5331
|
+
}).strict(), ua = _enum([
|
|
5313
5332
|
"1:1",
|
|
5314
5333
|
"4:3",
|
|
5315
5334
|
"3:4",
|
|
5316
5335
|
"16:9",
|
|
5317
5336
|
"9:16"
|
|
5318
|
-
]),
|
|
5337
|
+
]), da = _enum([
|
|
5319
5338
|
"1K",
|
|
5320
5339
|
"2K",
|
|
5321
5340
|
"4K"
|
|
5322
|
-
]),
|
|
5341
|
+
]), fa = object({
|
|
5323
5342
|
prompt: string().trim().min(1).max(4e3),
|
|
5324
|
-
aspectRatio:
|
|
5343
|
+
aspectRatio: ua.default("1:1"),
|
|
5325
5344
|
outputFormat: _enum([
|
|
5326
5345
|
"png",
|
|
5327
5346
|
"jpeg",
|
|
5328
5347
|
"webp"
|
|
5329
5348
|
]).default("webp"),
|
|
5330
|
-
resolution:
|
|
5349
|
+
resolution: da.default("2K"),
|
|
5331
5350
|
style: string().trim().max(200).optional(),
|
|
5332
5351
|
altText: string().trim().max(500).optional(),
|
|
5333
5352
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5334
|
-
}).strict(),
|
|
5353
|
+
}).strict(), pa = object({
|
|
5335
5354
|
mediaId: string().min(1),
|
|
5336
5355
|
src: url(),
|
|
5337
5356
|
filename: string().min(1),
|
|
@@ -5341,54 +5360,54 @@ var oa = object({
|
|
|
5341
5360
|
provider: string().min(1).optional(),
|
|
5342
5361
|
providerRequestId: string().min(1).optional(),
|
|
5343
5362
|
media: string().startsWith("MEDIA:"),
|
|
5344
|
-
attachment:
|
|
5345
|
-
}),
|
|
5363
|
+
attachment: Xi.extend({ type: literal("image") })
|
|
5364
|
+
}), ma = object({
|
|
5346
5365
|
identityToken: string().min(1),
|
|
5347
5366
|
fullName: string().optional()
|
|
5348
|
-
}),
|
|
5367
|
+
}), ha = object({
|
|
5349
5368
|
redirect: string(),
|
|
5350
5369
|
redirectReason: string(),
|
|
5351
5370
|
isNew: boolean(),
|
|
5352
5371
|
deviceId: string()
|
|
5353
|
-
}),
|
|
5372
|
+
}), ga = object({
|
|
5354
5373
|
ok: literal(!0),
|
|
5355
|
-
data:
|
|
5374
|
+
data: ha,
|
|
5356
5375
|
token: string()
|
|
5357
|
-
}),
|
|
5376
|
+
}), _a = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine(isSafeRedirectPath, "path must be a relative dashboard path") }), va = object({ url: string() }), ya = object({
|
|
5358
5377
|
ok: literal(!0),
|
|
5359
|
-
data:
|
|
5360
|
-
}),
|
|
5378
|
+
data: va
|
|
5379
|
+
}), ba = object({ token: string().min(1) }), xa = object({
|
|
5361
5380
|
redirect: string(),
|
|
5362
5381
|
redirectReason: string(),
|
|
5363
5382
|
deviceId: string()
|
|
5364
|
-
}),
|
|
5383
|
+
}), Sa = object({
|
|
5365
5384
|
ok: literal(!0),
|
|
5366
|
-
data:
|
|
5385
|
+
data: xa,
|
|
5367
5386
|
token: string()
|
|
5368
|
-
}),
|
|
5387
|
+
}), Ca = _enum(["none", "active_assistant"]), wa = _enum([
|
|
5369
5388
|
"none",
|
|
5370
5389
|
"active",
|
|
5371
5390
|
"trial",
|
|
5372
5391
|
"canceling",
|
|
5373
5392
|
"past_due",
|
|
5374
5393
|
"paused"
|
|
5375
|
-
]),
|
|
5394
|
+
]), Ta = object({
|
|
5376
5395
|
brand: string(),
|
|
5377
5396
|
last4: string(),
|
|
5378
5397
|
expMonth: number(),
|
|
5379
5398
|
expYear: number()
|
|
5380
|
-
}),
|
|
5399
|
+
}), Ea = object({
|
|
5381
5400
|
date: string(),
|
|
5382
5401
|
amount: number(),
|
|
5383
5402
|
status: string(),
|
|
5384
5403
|
invoicePdf: string().optional()
|
|
5385
|
-
}),
|
|
5404
|
+
}), Da = object({
|
|
5386
5405
|
graceEndsAt: string().optional(),
|
|
5387
5406
|
suspended: boolean(),
|
|
5388
5407
|
url: string().optional()
|
|
5389
|
-
}),
|
|
5390
|
-
plan:
|
|
5391
|
-
status:
|
|
5408
|
+
}), Oa = object({
|
|
5409
|
+
plan: Ca,
|
|
5410
|
+
status: wa,
|
|
5392
5411
|
price: number(),
|
|
5393
5412
|
tierRates: record(string(), number()).optional(),
|
|
5394
5413
|
maxAgents: number(),
|
|
@@ -5401,34 +5420,34 @@ var oa = object({
|
|
|
5401
5420
|
cancelAt: string().optional(),
|
|
5402
5421
|
trialEnd: string().optional(),
|
|
5403
5422
|
trialDaysRemaining: number().optional(),
|
|
5404
|
-
paymentMethod:
|
|
5405
|
-
paymentRecovery:
|
|
5406
|
-
invoices: array(
|
|
5423
|
+
paymentMethod: Ta.optional(),
|
|
5424
|
+
paymentRecovery: Da.optional(),
|
|
5425
|
+
invoices: array(Ea),
|
|
5407
5426
|
stripeError: string().optional()
|
|
5408
|
-
}),
|
|
5427
|
+
}), ka = _enum([
|
|
5409
5428
|
"demo_agent_exists",
|
|
5410
5429
|
"demo_usage_exhausted",
|
|
5411
5430
|
"subscription_required",
|
|
5412
5431
|
"plan_limit"
|
|
5413
|
-
]),
|
|
5432
|
+
]), Aa = object({
|
|
5414
5433
|
canCreate: boolean(),
|
|
5415
5434
|
activeAgents: number().int().nonnegative(),
|
|
5416
5435
|
agentLimit: number().int().nonnegative(),
|
|
5417
5436
|
isDemo: boolean(),
|
|
5418
|
-
reason:
|
|
5419
|
-
}),
|
|
5437
|
+
reason: ka.optional()
|
|
5438
|
+
}), ja = object({
|
|
5420
5439
|
orgId: string(),
|
|
5421
5440
|
agentName: string().optional(),
|
|
5422
5441
|
runtime: string().optional()
|
|
5423
|
-
}),
|
|
5442
|
+
}), Ma = object({
|
|
5424
5443
|
created: number(),
|
|
5425
5444
|
skipped: number(),
|
|
5426
5445
|
errors: array(string())
|
|
5427
|
-
}),
|
|
5446
|
+
}), Na = object({
|
|
5428
5447
|
updated: number(),
|
|
5429
5448
|
errors: array(string())
|
|
5430
|
-
}),
|
|
5431
|
-
code:
|
|
5449
|
+
}), Pa = Gr, Fa = object({
|
|
5450
|
+
code: Vi,
|
|
5432
5451
|
message: string(),
|
|
5433
5452
|
bucket: _enum(["account", "error"]).optional(),
|
|
5434
5453
|
actionLabel: string().optional(),
|
|
@@ -5445,14 +5464,14 @@ function toChatStreamError(e) {
|
|
|
5445
5464
|
...e.help ? { help: e.help } : {}
|
|
5446
5465
|
};
|
|
5447
5466
|
}
|
|
5448
|
-
var
|
|
5467
|
+
var Ia = discriminatedUnion("event", [
|
|
5449
5468
|
object({
|
|
5450
5469
|
event: literal("status"),
|
|
5451
|
-
data:
|
|
5470
|
+
data: Pa
|
|
5452
5471
|
}),
|
|
5453
5472
|
object({
|
|
5454
5473
|
event: literal("message"),
|
|
5455
|
-
data: object({ message:
|
|
5474
|
+
data: object({ message: ra })
|
|
5456
5475
|
}),
|
|
5457
5476
|
object({
|
|
5458
5477
|
event: literal("message_delta"),
|
|
@@ -5472,7 +5491,7 @@ var Fa = discriminatedUnion("event", [
|
|
|
5472
5491
|
}),
|
|
5473
5492
|
object({
|
|
5474
5493
|
event: literal("tool_activity"),
|
|
5475
|
-
data:
|
|
5494
|
+
data: Ki
|
|
5476
5495
|
}),
|
|
5477
5496
|
object({
|
|
5478
5497
|
event: literal("working_end"),
|
|
@@ -5484,7 +5503,7 @@ var Fa = discriminatedUnion("event", [
|
|
|
5484
5503
|
}),
|
|
5485
5504
|
object({
|
|
5486
5505
|
event: literal("error"),
|
|
5487
|
-
data:
|
|
5506
|
+
data: Fa
|
|
5488
5507
|
})
|
|
5489
5508
|
]);
|
|
5490
5509
|
function chatEventUserTurnId(e) {
|
|
@@ -5518,7 +5537,7 @@ function withChatEventTurnId(e, t) {
|
|
|
5518
5537
|
//#endregion
|
|
5519
5538
|
//#region ../core/dist/wire/chat-turn-stream.js
|
|
5520
5539
|
async function runAuthenticatedChatTurnStream(e) {
|
|
5521
|
-
let t = e.fetchFn ?? fetch, n = e.headers ?? {}, r = !1, i = !1, a = !1, o = !1, s, c = !1, l = !1, u, d = new AbortController(), f = !1, p, resolveStreamReady = () => {},
|
|
5540
|
+
let t = e.fetchFn ?? fetch, n = e.headers ?? {}, r = !1, i = !1, a = !1, o = !1, s, c = !1, l = !1, u, d = new AbortController(), f = !1, p, resolveStreamReady = () => {}, m = new Promise((e) => {
|
|
5522
5541
|
resolveStreamReady = e;
|
|
5523
5542
|
}), settleStreamReady = (e) => {
|
|
5524
5543
|
f || (f = !0, p && clearTimeout(p), resolveStreamReady(e));
|
|
@@ -5533,7 +5552,7 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5533
5552
|
p = setTimeout(() => {
|
|
5534
5553
|
l = !0, fail("stream-open", "Timed out opening stream"), d.abort(), settleStreamReady("failed");
|
|
5535
5554
|
}, e.streamOpenTimeoutMs ?? 1e4);
|
|
5536
|
-
let
|
|
5555
|
+
let h = (async () => {
|
|
5537
5556
|
try {
|
|
5538
5557
|
let c = await t(e.streamUrl, {
|
|
5539
5558
|
headers: n,
|
|
@@ -5575,12 +5594,12 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5575
5594
|
} catch {}
|
|
5576
5595
|
}
|
|
5577
5596
|
})();
|
|
5578
|
-
if (await
|
|
5579
|
-
await
|
|
5597
|
+
if (await m === "failed") {
|
|
5598
|
+
await h;
|
|
5580
5599
|
return;
|
|
5581
5600
|
}
|
|
5582
5601
|
if (c) {
|
|
5583
|
-
fail("stream-open", "Stream closed before send"), await
|
|
5602
|
+
fail("stream-open", "Stream closed before send"), await h;
|
|
5584
5603
|
return;
|
|
5585
5604
|
}
|
|
5586
5605
|
try {
|
|
@@ -5598,15 +5617,15 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5598
5617
|
stage: "api",
|
|
5599
5618
|
message: c.error || `Send failed: HTTP ${o.status}`,
|
|
5600
5619
|
...c.code ? { code: c.code } : {}
|
|
5601
|
-
}), await
|
|
5620
|
+
}), await h;
|
|
5602
5621
|
return;
|
|
5603
5622
|
}
|
|
5604
5623
|
s = c.data.messageId, e.onUserMessage?.(c.data);
|
|
5605
5624
|
} catch (e) {
|
|
5606
|
-
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await
|
|
5625
|
+
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await h;
|
|
5607
5626
|
return;
|
|
5608
5627
|
}
|
|
5609
|
-
await
|
|
5628
|
+
await h;
|
|
5610
5629
|
}
|
|
5611
5630
|
async function streamOpenErrorMessage(e) {
|
|
5612
5631
|
let t = "";
|
|
@@ -5636,7 +5655,7 @@ function parseChatEvent(e) {
|
|
|
5636
5655
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5637
5656
|
if (!n || r === void 0) return null;
|
|
5638
5657
|
try {
|
|
5639
|
-
let e =
|
|
5658
|
+
let e = Ia.safeParse({
|
|
5640
5659
|
event: n,
|
|
5641
5660
|
data: JSON.parse(r)
|
|
5642
5661
|
});
|
|
@@ -5647,7 +5666,7 @@ function parseChatEvent(e) {
|
|
|
5647
5666
|
}
|
|
5648
5667
|
//#endregion
|
|
5649
5668
|
//#region ../core/dist/wire/chat-card.js
|
|
5650
|
-
var
|
|
5669
|
+
var La = object({
|
|
5651
5670
|
label: string().trim().min(1).max(40),
|
|
5652
5671
|
reply: string().trim().min(1).max(500),
|
|
5653
5672
|
style: _enum([
|
|
@@ -5655,11 +5674,11 @@ var Ia = object({
|
|
|
5655
5674
|
"default",
|
|
5656
5675
|
"destructive"
|
|
5657
5676
|
]).optional()
|
|
5658
|
-
}).strip(),
|
|
5677
|
+
}).strip(), Ra = object({
|
|
5659
5678
|
version: literal(1),
|
|
5660
5679
|
title: string().trim().min(1).max(200),
|
|
5661
5680
|
body: string().trim().min(1).max(8e3).optional(),
|
|
5662
|
-
actions: array(
|
|
5681
|
+
actions: array(La).min(1).max(3).optional()
|
|
5663
5682
|
}).strip();
|
|
5664
5683
|
function parseChatCardFencePayload(e) {
|
|
5665
5684
|
let t;
|
|
@@ -5672,7 +5691,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5672
5691
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5673
5692
|
};
|
|
5674
5693
|
}
|
|
5675
|
-
let n =
|
|
5694
|
+
let n = Ra.safeParse(t);
|
|
5676
5695
|
return n.success ? {
|
|
5677
5696
|
ok: !0,
|
|
5678
5697
|
spec: n.data
|
|
@@ -5684,36 +5703,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5684
5703
|
}
|
|
5685
5704
|
//#endregion
|
|
5686
5705
|
//#region ../core/dist/wire/chat-visual.js
|
|
5687
|
-
var
|
|
5706
|
+
var za = string().trim().min(1).max(240), Ba = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), Va = record(X, union([
|
|
5688
5707
|
string().max(500),
|
|
5689
5708
|
number().finite(),
|
|
5690
5709
|
boolean(),
|
|
5691
5710
|
_null()
|
|
5692
|
-
])),
|
|
5711
|
+
])), Ha = _enum([
|
|
5693
5712
|
"compact",
|
|
5694
5713
|
"currency",
|
|
5695
5714
|
"duration",
|
|
5696
5715
|
"integer",
|
|
5697
5716
|
"percent",
|
|
5698
5717
|
"raw"
|
|
5699
|
-
]),
|
|
5700
|
-
title:
|
|
5701
|
-
description:
|
|
5702
|
-
footer:
|
|
5703
|
-
}).strip(),
|
|
5718
|
+
]), Ua = object({
|
|
5719
|
+
title: za,
|
|
5720
|
+
description: Ba.optional(),
|
|
5721
|
+
footer: Ba.optional()
|
|
5722
|
+
}).strip(), Wa = object({
|
|
5704
5723
|
dataKey: X,
|
|
5705
5724
|
label: Z.optional(),
|
|
5706
5725
|
axisLabel: Z.optional(),
|
|
5707
|
-
valueFormat:
|
|
5726
|
+
valueFormat: Ha.optional(),
|
|
5708
5727
|
valuePrefix: string().trim().max(12).optional(),
|
|
5709
5728
|
valueSuffix: string().trim().max(12).optional()
|
|
5710
|
-
}).strip(),
|
|
5729
|
+
}).strip(), Ga = object({
|
|
5711
5730
|
kind: literal("linear"),
|
|
5712
5731
|
dataKey: X,
|
|
5713
5732
|
label: Z.optional()
|
|
5714
|
-
}).strip(),
|
|
5733
|
+
}).strip(), Ka = object({
|
|
5715
5734
|
version: literal(1),
|
|
5716
|
-
meta:
|
|
5735
|
+
meta: Ua,
|
|
5717
5736
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5718
5737
|
}).strip();
|
|
5719
5738
|
function dataKeys(e) {
|
|
@@ -5755,7 +5774,7 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5755
5774
|
});
|
|
5756
5775
|
}
|
|
5757
5776
|
}
|
|
5758
|
-
var
|
|
5777
|
+
var qa = discriminatedUnion("chartType", [Ka.extend({
|
|
5759
5778
|
visualType: literal("chart"),
|
|
5760
5779
|
chartType: _enum([
|
|
5761
5780
|
"bar",
|
|
@@ -5764,11 +5783,11 @@ var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
|
5764
5783
|
]),
|
|
5765
5784
|
xKey: X,
|
|
5766
5785
|
xAxisLabel: Z.optional(),
|
|
5767
|
-
series: array(
|
|
5768
|
-
data: array(
|
|
5786
|
+
series: array(Wa).min(1).max(6),
|
|
5787
|
+
data: array(Va).min(1).max(120),
|
|
5769
5788
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5770
5789
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5771
|
-
trendLine:
|
|
5790
|
+
trendLine: Ga.optional()
|
|
5772
5791
|
}).strip().superRefine((e, t) => {
|
|
5773
5792
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5774
5793
|
code: "custom",
|
|
@@ -5806,13 +5825,13 @@ var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
|
5806
5825
|
path: ["trendLine", "dataKey"],
|
|
5807
5826
|
value: e.trendLine.dataKey
|
|
5808
5827
|
}] : []], t);
|
|
5809
|
-
}),
|
|
5828
|
+
}), Ka.extend({
|
|
5810
5829
|
visualType: literal("chart"),
|
|
5811
5830
|
chartType: literal("pie"),
|
|
5812
5831
|
nameKey: X,
|
|
5813
5832
|
valueKey: X,
|
|
5814
|
-
series: array(
|
|
5815
|
-
data: array(
|
|
5833
|
+
series: array(Wa).max(1).optional(),
|
|
5834
|
+
data: array(Va).min(1).max(16)
|
|
5816
5835
|
}).strip().superRefine((e, t) => {
|
|
5817
5836
|
requireDataKeys(e.data, [
|
|
5818
5837
|
{
|
|
@@ -5836,10 +5855,10 @@ var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
|
5836
5855
|
value: e.valueKey,
|
|
5837
5856
|
nonnegative: !0
|
|
5838
5857
|
}], t);
|
|
5839
|
-
})]),
|
|
5858
|
+
})]), Ja = object({
|
|
5840
5859
|
id: X,
|
|
5841
5860
|
label: Z,
|
|
5842
|
-
detail:
|
|
5861
|
+
detail: Ba.optional(),
|
|
5843
5862
|
kind: _enum([
|
|
5844
5863
|
"actor",
|
|
5845
5864
|
"agent",
|
|
@@ -5850,11 +5869,11 @@ var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
|
5850
5869
|
"system",
|
|
5851
5870
|
"task"
|
|
5852
5871
|
]).optional()
|
|
5853
|
-
}).strip(),
|
|
5872
|
+
}).strip(), Ya = object({
|
|
5854
5873
|
from: X,
|
|
5855
5874
|
to: X,
|
|
5856
5875
|
label: Z.optional()
|
|
5857
|
-
}).strip(),
|
|
5876
|
+
}).strip(), Q = union([qa, Ka.extend({
|
|
5858
5877
|
visualType: literal("diagram"),
|
|
5859
5878
|
diagramType: _enum([
|
|
5860
5879
|
"flow",
|
|
@@ -5868,8 +5887,8 @@ var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
|
5868
5887
|
"radial",
|
|
5869
5888
|
"top-to-bottom"
|
|
5870
5889
|
]).default("auto"),
|
|
5871
|
-
nodes: array(
|
|
5872
|
-
edges: array(
|
|
5890
|
+
nodes: array(Ja).min(1).max(24),
|
|
5891
|
+
edges: array(Ya).max(48)
|
|
5873
5892
|
}).strip().superRefine((e, t) => {
|
|
5874
5893
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5875
5894
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -6028,11 +6047,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
6028
6047
|
fallbackMarkdown: r
|
|
6029
6048
|
};
|
|
6030
6049
|
}
|
|
6031
|
-
let n =
|
|
6050
|
+
let n = Q.safeParse(t);
|
|
6032
6051
|
if (!n.success) {
|
|
6033
6052
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
6034
6053
|
if (e) {
|
|
6035
|
-
let t =
|
|
6054
|
+
let t = Q.safeParse(e);
|
|
6036
6055
|
if (t.success) return {
|
|
6037
6056
|
ok: !0,
|
|
6038
6057
|
spec: t.data
|
|
@@ -6116,7 +6135,7 @@ var Xa = object({
|
|
|
6116
6135
|
lastMessage: Za.nullable(),
|
|
6117
6136
|
unreadCount: number().int().nonnegative(),
|
|
6118
6137
|
latestSequence: string().nullable()
|
|
6119
|
-
}),
|
|
6138
|
+
}), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), io = preprocess((e) => e === void 0 ? null : e, B.nullable()), ao = preprocess((e) => e === void 0 ? null : e, V.nullable()), oo = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
6120
6139
|
"user",
|
|
6121
6140
|
"assistant",
|
|
6122
6141
|
"system"
|
|
@@ -6125,24 +6144,24 @@ var Xa = object({
|
|
|
6125
6144
|
handle: string(),
|
|
6126
6145
|
name: string(),
|
|
6127
6146
|
orgId: string(),
|
|
6128
|
-
orgName:
|
|
6129
|
-
orgHandle:
|
|
6130
|
-
ownerEmail:
|
|
6131
|
-
ownerName:
|
|
6147
|
+
orgName: $,
|
|
6148
|
+
orgHandle: $,
|
|
6149
|
+
ownerEmail: $,
|
|
6150
|
+
ownerName: $,
|
|
6132
6151
|
state: io,
|
|
6133
6152
|
desiredStatus: ao,
|
|
6134
6153
|
runtime: string(),
|
|
6135
|
-
imageVersion:
|
|
6136
|
-
lastHealthyAt:
|
|
6137
|
-
lastActiveAt:
|
|
6138
|
-
lastUserMessageAt:
|
|
6139
|
-
lastMessageAt:
|
|
6154
|
+
imageVersion: $,
|
|
6155
|
+
lastHealthyAt: $,
|
|
6156
|
+
lastActiveAt: $,
|
|
6157
|
+
lastUserMessageAt: $,
|
|
6158
|
+
lastMessageAt: $,
|
|
6140
6159
|
lastMessageRole: oo,
|
|
6141
|
-
lastMessageChannel:
|
|
6142
|
-
primaryChannel:
|
|
6160
|
+
lastMessageChannel: $,
|
|
6161
|
+
primaryChannel: $,
|
|
6143
6162
|
totalMessages: so,
|
|
6144
6163
|
totalSessions: so,
|
|
6145
|
-
error:
|
|
6164
|
+
error: $,
|
|
6146
6165
|
appHandle: string(),
|
|
6147
6166
|
flyAppExists: boolean(),
|
|
6148
6167
|
plan: string(),
|
|
@@ -6257,7 +6276,7 @@ function buildHeroState(e) {
|
|
|
6257
6276
|
}
|
|
6258
6277
|
//#endregion
|
|
6259
6278
|
//#region ../core/dist/wire/media.js
|
|
6260
|
-
var po =
|
|
6279
|
+
var po = xr, mo = F, ho = object({
|
|
6261
6280
|
mediaId: string(),
|
|
6262
6281
|
src: string(),
|
|
6263
6282
|
alt: string().nullable().optional(),
|
|
@@ -6279,13 +6298,13 @@ var po = Sr, mo = P, $ = object({
|
|
|
6279
6298
|
agentId: string().nullable().optional(),
|
|
6280
6299
|
createdAt: string().optional(),
|
|
6281
6300
|
updatedAt: string().optional()
|
|
6282
|
-
}),
|
|
6301
|
+
}), go = object({
|
|
6283
6302
|
file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
|
|
6284
6303
|
context: po.optional().default("general"),
|
|
6285
6304
|
agentId: string().optional(),
|
|
6286
6305
|
orgId: string().optional(),
|
|
6287
6306
|
duration: number().optional()
|
|
6288
|
-
}),
|
|
6307
|
+
}), _o = object({
|
|
6289
6308
|
mediaId: string().optional(),
|
|
6290
6309
|
src: string().optional(),
|
|
6291
6310
|
alt: string().optional(),
|
|
@@ -6294,7 +6313,7 @@ var po = Sr, mo = P, $ = object({
|
|
|
6294
6313
|
mimeType: string().optional(),
|
|
6295
6314
|
mediaType: string().optional(),
|
|
6296
6315
|
blurhash: string().optional()
|
|
6297
|
-
}),
|
|
6316
|
+
}), vo = object({
|
|
6298
6317
|
membershipId: string(),
|
|
6299
6318
|
userId: string(),
|
|
6300
6319
|
orgId: string(),
|
|
@@ -6309,15 +6328,15 @@ var po = Sr, mo = P, $ = object({
|
|
|
6309
6328
|
status: _enum(["active", "suspended"]),
|
|
6310
6329
|
joinedAt: string(),
|
|
6311
6330
|
lastSeenAt: string().optional(),
|
|
6312
|
-
avatar:
|
|
6313
|
-
}),
|
|
6331
|
+
avatar: _o.optional()
|
|
6332
|
+
}), yo = object({
|
|
6314
6333
|
invitationId: string(),
|
|
6315
6334
|
email: string(),
|
|
6316
6335
|
role: _enum(["admin", "member"]),
|
|
6317
6336
|
status: string(),
|
|
6318
6337
|
expiresAt: string(),
|
|
6319
6338
|
createdAt: string()
|
|
6320
|
-
}),
|
|
6339
|
+
}), bo = object({
|
|
6321
6340
|
token: string(),
|
|
6322
6341
|
email: string(),
|
|
6323
6342
|
orgId: string(),
|
|
@@ -6339,27 +6358,27 @@ var po = Sr, mo = P, $ = object({
|
|
|
6339
6358
|
]),
|
|
6340
6359
|
expiresAt: string(),
|
|
6341
6360
|
memberCount: number().optional()
|
|
6342
|
-
}),
|
|
6361
|
+
}), xo = object({
|
|
6343
6362
|
email: string().email(),
|
|
6344
6363
|
role: _enum(["admin", "member"]).optional(),
|
|
6345
6364
|
message: string().max(500).optional()
|
|
6346
|
-
}).strict(),
|
|
6365
|
+
}).strict(), So = object({ role: _enum(["admin", "member"]) }).strict(), Co = object({ token: string().min(1) }).strict(), wo = _enum([
|
|
6347
6366
|
"planLimit",
|
|
6348
6367
|
"billingOverdue",
|
|
6349
6368
|
"rebuilding",
|
|
6350
6369
|
"agentNotFound"
|
|
6351
|
-
]),
|
|
6370
|
+
]), To = _enum([
|
|
6352
6371
|
"rebuilding",
|
|
6353
6372
|
"provisioning",
|
|
6354
6373
|
"billingOverdue"
|
|
6355
|
-
]),
|
|
6374
|
+
]), Eo = object({
|
|
6356
6375
|
agentId: string(),
|
|
6357
6376
|
name: string(),
|
|
6358
|
-
avatar:
|
|
6377
|
+
avatar: I.optional(),
|
|
6359
6378
|
summary: string().nullable().optional(),
|
|
6360
6379
|
ownerId: string(),
|
|
6361
6380
|
ownerFirstName: string(),
|
|
6362
|
-
ownerAvatar:
|
|
6381
|
+
ownerAvatar: I.optional(),
|
|
6363
6382
|
ownerLabel: string(),
|
|
6364
6383
|
avatarInitial: string(),
|
|
6365
6384
|
isYours: boolean(),
|
|
@@ -6372,21 +6391,21 @@ var po = Sr, mo = P, $ = object({
|
|
|
6372
6391
|
detail: string().optional(),
|
|
6373
6392
|
blocker: R.optional(),
|
|
6374
6393
|
canWake: boolean(),
|
|
6375
|
-
cantWakeReason:
|
|
6394
|
+
cantWakeReason: wo.optional(),
|
|
6376
6395
|
canRebuild: boolean(),
|
|
6377
|
-
cantRebuildReason:
|
|
6378
|
-
}),
|
|
6379
|
-
zNotificationTelemetryAck: () =>
|
|
6380
|
-
zNotificationTelemetryEvent: () =>
|
|
6381
|
-
zRegisterDeviceRequest: () =>
|
|
6382
|
-
zRegisterDeviceResponse: () =>
|
|
6383
|
-
}),
|
|
6396
|
+
cantRebuildReason: To.optional()
|
|
6397
|
+
}), Do = /* @__PURE__ */ t({
|
|
6398
|
+
zNotificationTelemetryAck: () => jo,
|
|
6399
|
+
zNotificationTelemetryEvent: () => Ao,
|
|
6400
|
+
zRegisterDeviceRequest: () => Oo,
|
|
6401
|
+
zRegisterDeviceResponse: () => ko
|
|
6402
|
+
}), Oo = object({
|
|
6384
6403
|
deviceId: string().min(1).max(64),
|
|
6385
6404
|
pushToken: string().min(1).max(200),
|
|
6386
6405
|
appVersion: string().max(40).optional(),
|
|
6387
6406
|
osVersion: string().max(40).optional(),
|
|
6388
6407
|
model: string().max(80).optional()
|
|
6389
|
-
}),
|
|
6408
|
+
}), ko = object({ deviceId: string().min(1).max(64) }), Ao = object({
|
|
6390
6409
|
deviceId: string().min(1).max(64),
|
|
6391
6410
|
kind: string().min(1).max(30),
|
|
6392
6411
|
action: _enum([
|
|
@@ -6395,7 +6414,7 @@ var po = Sr, mo = P, $ = object({
|
|
|
6395
6414
|
"dismissed"
|
|
6396
6415
|
]),
|
|
6397
6416
|
messageId: string().max(32).optional()
|
|
6398
|
-
}),
|
|
6417
|
+
}), jo = object({ updated: boolean() }), Mo = q.pick({
|
|
6399
6418
|
orgId: !0,
|
|
6400
6419
|
handle: !0,
|
|
6401
6420
|
name: !0,
|
|
@@ -6409,13 +6428,13 @@ var po = Sr, mo = P, $ = object({
|
|
|
6409
6428
|
status: !0,
|
|
6410
6429
|
updatedAt: !0
|
|
6411
6430
|
}).extend({
|
|
6412
|
-
avatar:
|
|
6413
|
-
cover:
|
|
6414
|
-
}),
|
|
6431
|
+
avatar: ho.nullable().optional(),
|
|
6432
|
+
cover: ho.nullable().optional()
|
|
6433
|
+
}), No = object({
|
|
6415
6434
|
name: string().min(1).max(255),
|
|
6416
6435
|
handle: string().min(2).max(50).optional(),
|
|
6417
6436
|
timezone: Y.optional()
|
|
6418
|
-
}).strict(),
|
|
6437
|
+
}).strict(), Po = q.pick({
|
|
6419
6438
|
name: !0,
|
|
6420
6439
|
email: !0,
|
|
6421
6440
|
website: !0,
|
|
@@ -6427,7 +6446,7 @@ var po = Sr, mo = P, $ = object({
|
|
|
6427
6446
|
timezone: Y.optional(),
|
|
6428
6447
|
avatarMediaId: string().nullable().optional(),
|
|
6429
6448
|
coverMediaId: string().nullable().optional()
|
|
6430
|
-
}).strict(),
|
|
6449
|
+
}).strict(), Fo = object({
|
|
6431
6450
|
messagesHandled: number().int().nonnegative(),
|
|
6432
6451
|
proactiveRuns: number().int().nonnegative(),
|
|
6433
6452
|
approvalsWaiting: number().int().nonnegative(),
|
|
@@ -6444,11 +6463,11 @@ var po = Sr, mo = P, $ = object({
|
|
|
6444
6463
|
prev30BriefingsDelivered: number().int().nonnegative(),
|
|
6445
6464
|
prev30ScheduledRuns: number().int().nonnegative(),
|
|
6446
6465
|
since: string()
|
|
6447
|
-
}),
|
|
6466
|
+
}), Io = _enum([
|
|
6448
6467
|
"success",
|
|
6449
6468
|
"info",
|
|
6450
6469
|
"warning"
|
|
6451
|
-
]),
|
|
6470
|
+
]), Lo = object({
|
|
6452
6471
|
org: object({
|
|
6453
6472
|
orgId: string(),
|
|
6454
6473
|
name: string(),
|
|
@@ -6457,7 +6476,7 @@ var po = Sr, mo = P, $ = object({
|
|
|
6457
6476
|
plan: object({
|
|
6458
6477
|
key: string(),
|
|
6459
6478
|
label: string(),
|
|
6460
|
-
tone:
|
|
6479
|
+
tone: Io,
|
|
6461
6480
|
status: string(),
|
|
6462
6481
|
trialDaysRemaining: number().optional()
|
|
6463
6482
|
}),
|
|
@@ -6478,15 +6497,15 @@ function zPaginatedResponse(e) {
|
|
|
6478
6497
|
}
|
|
6479
6498
|
//#endregion
|
|
6480
6499
|
//#region ../core/dist/wire/public-services.js
|
|
6481
|
-
var
|
|
6500
|
+
var Ro = object({
|
|
6482
6501
|
sender: _enum(["user", "agent"]),
|
|
6483
6502
|
text: string()
|
|
6484
|
-
}),
|
|
6503
|
+
}), zo = _enum([
|
|
6485
6504
|
"works-now",
|
|
6486
6505
|
"guided-setup",
|
|
6487
6506
|
"coming-soon",
|
|
6488
6507
|
"custom-workflow"
|
|
6489
|
-
]),
|
|
6508
|
+
]), Bo = object({
|
|
6490
6509
|
docsUrl: string(),
|
|
6491
6510
|
verifiedAt: string(),
|
|
6492
6511
|
version: string().optional(),
|
|
@@ -6498,11 +6517,11 @@ var Lo = object({
|
|
|
6498
6517
|
"unversioned"
|
|
6499
6518
|
]),
|
|
6500
6519
|
note: string().optional()
|
|
6501
|
-
}),
|
|
6520
|
+
}), Vo = object({
|
|
6502
6521
|
key: string(),
|
|
6503
6522
|
label: string(),
|
|
6504
6523
|
rank: number()
|
|
6505
|
-
}),
|
|
6524
|
+
}), Ho = object({
|
|
6506
6525
|
text: string(),
|
|
6507
6526
|
tone: _enum([
|
|
6508
6527
|
"info",
|
|
@@ -6510,7 +6529,7 @@ var Lo = object({
|
|
|
6510
6529
|
"success",
|
|
6511
6530
|
"danger"
|
|
6512
6531
|
])
|
|
6513
|
-
}),
|
|
6532
|
+
}), Uo = object({
|
|
6514
6533
|
serviceKey: string(),
|
|
6515
6534
|
name: string(),
|
|
6516
6535
|
description: string(),
|
|
@@ -6520,16 +6539,16 @@ var Lo = object({
|
|
|
6520
6539
|
category: string(),
|
|
6521
6540
|
categoryLabel: string(),
|
|
6522
6541
|
categoryRank: number(),
|
|
6523
|
-
secondaryCategories: array(
|
|
6524
|
-
badges: array(
|
|
6542
|
+
secondaryCategories: array(Vo),
|
|
6543
|
+
badges: array(Ho),
|
|
6525
6544
|
tags: array(string()),
|
|
6526
6545
|
searchAliases: array(string()),
|
|
6527
6546
|
jtbd: string(),
|
|
6528
6547
|
useCase: string(),
|
|
6529
6548
|
demoScenario: string(),
|
|
6530
|
-
sampleConversation: array(
|
|
6531
|
-
publicStatus:
|
|
6532
|
-
apiVerification:
|
|
6549
|
+
sampleConversation: array(Ro),
|
|
6550
|
+
publicStatus: zo,
|
|
6551
|
+
apiVerification: Bo.optional(),
|
|
6533
6552
|
setupDifficulty: string(),
|
|
6534
6553
|
risk: string(),
|
|
6535
6554
|
price: string(),
|
|
@@ -6542,89 +6561,89 @@ var Lo = object({
|
|
|
6542
6561
|
]),
|
|
6543
6562
|
setupSummary: string().optional(),
|
|
6544
6563
|
pagePath: string()
|
|
6545
|
-
}),
|
|
6564
|
+
}), Wo = object({
|
|
6546
6565
|
fullName: string().min(1).max(100).optional(),
|
|
6547
6566
|
linkedinUsername: K.nullable().optional(),
|
|
6548
6567
|
avatarMediaId: string().nullable().optional(),
|
|
6549
6568
|
primaryAgentId: string().nullable().optional(),
|
|
6550
6569
|
lastActiveOrgId: string().nullable().optional()
|
|
6551
|
-
}).strict(),
|
|
6552
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6553
|
-
ActionAreaSchema: () =>
|
|
6554
|
-
ActionButtonSchema: () =>
|
|
6555
|
-
Agent: () =>
|
|
6556
|
-
AudioFormatSchema: () =>
|
|
6557
|
-
AudioMediaSchema: () =>
|
|
6558
|
-
AudioPropertiesSchema: () =>
|
|
6570
|
+
}).strict(), Go = /* @__PURE__ */ t({
|
|
6571
|
+
ASSISTANT_SILENCE_CONTROLS: () => Oi,
|
|
6572
|
+
ActionAreaSchema: () => Lr,
|
|
6573
|
+
ActionButtonSchema: () => L,
|
|
6574
|
+
Agent: () => mi,
|
|
6575
|
+
AudioFormatSchema: () => Er,
|
|
6576
|
+
AudioMediaSchema: () => jr,
|
|
6577
|
+
AudioPropertiesSchema: () => Or,
|
|
6559
6578
|
AuthApiError: () => AuthApiError,
|
|
6560
|
-
BOT_API_LLM_PATH: () =>
|
|
6561
|
-
BOT_API_PATH: () =>
|
|
6562
|
-
BOT_USER_AGENT: () =>
|
|
6563
|
-
ButtonDesignSchema: () =>
|
|
6564
|
-
ButtonThemeSchema: () =>
|
|
6579
|
+
BOT_API_LLM_PATH: () => Mi,
|
|
6580
|
+
BOT_API_PATH: () => ji,
|
|
6581
|
+
BOT_USER_AGENT: () => Di,
|
|
6582
|
+
ButtonDesignSchema: () => Ir,
|
|
6583
|
+
ButtonThemeSchema: () => Fr,
|
|
6565
6584
|
CHART_THEME: () => ni,
|
|
6566
6585
|
CHAT_ISSUE_CODES: () => Vr,
|
|
6567
6586
|
CHAT_ISSUE_COPY: () => z,
|
|
6568
6587
|
CUSTOMER_AGENT_STATE_COLOR: () => Xr,
|
|
6569
6588
|
CUSTOMER_AGENT_STATE_LABEL: () => Yr,
|
|
6570
6589
|
CookieUtil: () => CookieUtil,
|
|
6571
|
-
DEFAULT_HEARTBEAT_TIMES: () =>
|
|
6572
|
-
DocumentMediaSchema: () =>
|
|
6573
|
-
ENTRY_TIER_MONTHLY_PRICE_CENTS: () =>
|
|
6574
|
-
ENTRY_TIER_MONTHLY_PRICE_LABEL: () =>
|
|
6575
|
-
ERROR_CODES: () =>
|
|
6576
|
-
EnrichedAgentSchema: () =>
|
|
6577
|
-
ImageFormatSchema: () =>
|
|
6578
|
-
ImageMediaSchema: () =>
|
|
6590
|
+
DEFAULT_HEARTBEAT_TIMES: () => ir,
|
|
6591
|
+
DocumentMediaSchema: () => Mr,
|
|
6592
|
+
ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Rr,
|
|
6593
|
+
ENTRY_TIER_MONTHLY_PRICE_LABEL: () => zr,
|
|
6594
|
+
ERROR_CODES: () => Bi,
|
|
6595
|
+
EnrichedAgentSchema: () => fi,
|
|
6596
|
+
ImageFormatSchema: () => wr,
|
|
6597
|
+
ImageMediaSchema: () => kr,
|
|
6579
6598
|
LIFECYCLE_COLOR: () => qr,
|
|
6580
|
-
Logger: () =>
|
|
6581
|
-
MEDIA_CONTEXTS: () =>
|
|
6582
|
-
MEDIA_TYPES: () =>
|
|
6583
|
-
MediaContextSchema: () =>
|
|
6584
|
-
MediaSchema: () =>
|
|
6585
|
-
MediaStatusSchema: () =>
|
|
6586
|
-
MediaTypeSchema: () =>
|
|
6587
|
-
MediaUnionSchema: () =>
|
|
6599
|
+
Logger: () => M,
|
|
6600
|
+
MEDIA_CONTEXTS: () => br,
|
|
6601
|
+
MEDIA_TYPES: () => yr,
|
|
6602
|
+
MediaContextSchema: () => xr,
|
|
6603
|
+
MediaSchema: () => I,
|
|
6604
|
+
MediaStatusSchema: () => Sr,
|
|
6605
|
+
MediaTypeSchema: () => F,
|
|
6606
|
+
MediaUnionSchema: () => Nr,
|
|
6588
6607
|
NavItemSchema: () => ei,
|
|
6589
6608
|
NavListSchema: () => ti,
|
|
6590
6609
|
PAGELINES_APP_CONFIG: () => i,
|
|
6591
6610
|
PERSONA_DEFAULTS: () => ii,
|
|
6592
6611
|
SettingsObject: () => SettingsObject,
|
|
6593
|
-
SizeSchema: () =>
|
|
6594
|
-
SocialAccountSchema: () =>
|
|
6595
|
-
SocialAccountsSchema: () =>
|
|
6612
|
+
SizeSchema: () => Pr,
|
|
6613
|
+
SocialAccountSchema: () => _r,
|
|
6614
|
+
SocialAccountsSchema: () => vr,
|
|
6596
6615
|
UNKNOWN_STATUS: () => Kr,
|
|
6597
6616
|
VOICE_CATALOG: () => U,
|
|
6598
|
-
VideoFormatSchema: () =>
|
|
6599
|
-
VideoMediaSchema: () =>
|
|
6600
|
-
VideoPropertiesSchema: () =>
|
|
6601
|
-
agentSchema: () =>
|
|
6617
|
+
VideoFormatSchema: () => Tr,
|
|
6618
|
+
VideoMediaSchema: () => Ar,
|
|
6619
|
+
VideoPropertiesSchema: () => Dr,
|
|
6620
|
+
agentSchema: () => di,
|
|
6602
6621
|
apiError: () => apiError,
|
|
6603
6622
|
apiOk: () => apiOk,
|
|
6604
|
-
appleAuthSchema: () =>
|
|
6623
|
+
appleAuthSchema: () => Si,
|
|
6605
6624
|
authErrorMessage: () => authErrorMessage,
|
|
6606
6625
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6607
6626
|
botApiUrl: () => botApiUrl,
|
|
6608
6627
|
budgetMinutes: () => budgetMinutes,
|
|
6609
6628
|
buildChatIssue: () => buildChatIssue,
|
|
6610
6629
|
buildHeroState: () => buildHeroState,
|
|
6611
|
-
changeEmailSchema: () =>
|
|
6630
|
+
changeEmailSchema: () => bi,
|
|
6612
6631
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6613
6632
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6614
6633
|
chatEventTurnId: () => chatEventTurnId,
|
|
6615
6634
|
chatEventUserTurnId: () => chatEventUserTurnId,
|
|
6616
6635
|
chatIssueCatalogLines: () => chatIssueCatalogLines,
|
|
6617
6636
|
chatIssueToErrorData: () => chatIssueToErrorData,
|
|
6618
|
-
cookieUtil: () =>
|
|
6637
|
+
cookieUtil: () => hr,
|
|
6619
6638
|
createAgent: () => createAgent,
|
|
6620
6639
|
createAgents: () => createAgents,
|
|
6621
6640
|
createLogger: () => createLogger,
|
|
6622
6641
|
customerAgentState: () => customerAgentState,
|
|
6623
|
-
debug: () =>
|
|
6642
|
+
debug: () => fr,
|
|
6624
6643
|
derive: () => derive,
|
|
6625
|
-
emailSchema: () =>
|
|
6626
|
-
enrichedUserSchema: () =>
|
|
6627
|
-
error: () =>
|
|
6644
|
+
emailSchema: () => vi,
|
|
6645
|
+
enrichedUserSchema: () => Ei,
|
|
6646
|
+
error: () => lr,
|
|
6628
6647
|
errorCopy: () => errorCopy,
|
|
6629
6648
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
6630
6649
|
extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
|
|
@@ -6633,8 +6652,8 @@ var Lo = object({
|
|
|
6633
6652
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6634
6653
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6635
6654
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6636
|
-
googleAuthSchema: () =>
|
|
6637
|
-
info: () =>
|
|
6655
|
+
googleAuthSchema: () => xi,
|
|
6656
|
+
info: () => dr,
|
|
6638
6657
|
isAgentReady: () => isAgentReady,
|
|
6639
6658
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
6640
6659
|
isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
|
|
@@ -6642,14 +6661,14 @@ var Lo = object({
|
|
|
6642
6661
|
isSafeRedirectPath: () => isSafeRedirectPath,
|
|
6643
6662
|
isTransitioning: () => isTransitioning,
|
|
6644
6663
|
linkedinUsernameSchema: () => K,
|
|
6645
|
-
logger: () =>
|
|
6664
|
+
logger: () => N,
|
|
6646
6665
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6647
6666
|
nanoid: () => nanoid,
|
|
6648
|
-
notificationWire: () =>
|
|
6667
|
+
notificationWire: () => Do,
|
|
6649
6668
|
objectId: () => objectId,
|
|
6650
|
-
orgInfoSchema: () =>
|
|
6669
|
+
orgInfoSchema: () => Ti,
|
|
6651
6670
|
orgSchema: () => q,
|
|
6652
|
-
orgWithDefaultAgentSchema: () =>
|
|
6671
|
+
orgWithDefaultAgentSchema: () => Ci,
|
|
6653
6672
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6654
6673
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6655
6674
|
readChatEventStream: () => readChatEventStream,
|
|
@@ -6658,137 +6677,138 @@ var Lo = object({
|
|
|
6658
6677
|
resolveVoice: () => resolveVoice,
|
|
6659
6678
|
retryPolicyFor: () => retryPolicyFor,
|
|
6660
6679
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6661
|
-
serverTransitionBudgets: () =>
|
|
6680
|
+
serverTransitionBudgets: () => Ai,
|
|
6662
6681
|
shortId: () => shortId,
|
|
6663
6682
|
toAgentState: () => toAgentState,
|
|
6664
6683
|
toChatStreamError: () => toChatStreamError,
|
|
6665
|
-
trace: () =>
|
|
6666
|
-
updateUserSchema: () =>
|
|
6667
|
-
userSchema: () =>
|
|
6684
|
+
trace: () => pr,
|
|
6685
|
+
updateUserSchema: () => _i,
|
|
6686
|
+
userSchema: () => gi,
|
|
6668
6687
|
uuid: () => uuid,
|
|
6669
|
-
verifyCodeSchema: () =>
|
|
6670
|
-
warn: () =>
|
|
6688
|
+
verifyCodeSchema: () => yi,
|
|
6689
|
+
warn: () => ur,
|
|
6671
6690
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6672
|
-
zAcceptInvitationBody: () =>
|
|
6673
|
-
zAccessibleAgentRow: () =>
|
|
6674
|
-
zAgentCreateAllowance: () =>
|
|
6675
|
-
zAgentCreateAllowanceReason: () =>
|
|
6691
|
+
zAcceptInvitationBody: () => Co,
|
|
6692
|
+
zAccessibleAgentRow: () => Eo,
|
|
6693
|
+
zAgentCreateAllowance: () => Aa,
|
|
6694
|
+
zAgentCreateAllowanceReason: () => ka,
|
|
6676
6695
|
zAgentGender: () => H,
|
|
6677
|
-
zAgentRow: () =>
|
|
6678
|
-
zApiError: () =>
|
|
6696
|
+
zAgentRow: () => Ri,
|
|
6697
|
+
zApiError: () => Ui,
|
|
6679
6698
|
zApiOk: () => zApiOk,
|
|
6680
6699
|
zApiResponse: () => zApiResponse,
|
|
6681
|
-
zAppleAuthBody: () =>
|
|
6682
|
-
zAuthSessionData: () =>
|
|
6683
|
-
zAuthSessionResponse: () =>
|
|
6684
|
-
zAutomationPrimaryChannel: () =>
|
|
6685
|
-
zBackfillBillingData: () =>
|
|
6686
|
-
zBackfillCustomersData: () =>
|
|
6687
|
-
zBillingDetails: () =>
|
|
6688
|
-
zBillingInvoice: () =>
|
|
6689
|
-
zBillingPaymentMethod: () =>
|
|
6690
|
-
zBillingPlanKey: () =>
|
|
6691
|
-
zBillingStatus: () =>
|
|
6700
|
+
zAppleAuthBody: () => ma,
|
|
6701
|
+
zAuthSessionData: () => ha,
|
|
6702
|
+
zAuthSessionResponse: () => ga,
|
|
6703
|
+
zAutomationPrimaryChannel: () => Fi,
|
|
6704
|
+
zBackfillBillingData: () => Na,
|
|
6705
|
+
zBackfillCustomersData: () => Ma,
|
|
6706
|
+
zBillingDetails: () => Oa,
|
|
6707
|
+
zBillingInvoice: () => Ea,
|
|
6708
|
+
zBillingPaymentMethod: () => Ta,
|
|
6709
|
+
zBillingPlanKey: () => Ca,
|
|
6710
|
+
zBillingStatus: () => wa,
|
|
6692
6711
|
zBillingTier: () => G,
|
|
6693
|
-
zBotGenerateImageBody: () =>
|
|
6694
|
-
zBotGenerateImageResponse: () =>
|
|
6712
|
+
zBotGenerateImageBody: () => fa,
|
|
6713
|
+
zBotGenerateImageResponse: () => pa,
|
|
6695
6714
|
zCancelConversationTurnBody: () => eo,
|
|
6696
6715
|
zCancelConversationTurnResponse: () => to,
|
|
6697
|
-
zCantRebuildReason: () =>
|
|
6698
|
-
zCantWakeReason: () =>
|
|
6699
|
-
zChatAttachment: () =>
|
|
6700
|
-
zChatAttachmentInput: () =>
|
|
6701
|
-
zChatAttachmentPlacement: () =>
|
|
6702
|
-
zChatCardSpec: () =>
|
|
6703
|
-
zChatErrorData: () =>
|
|
6704
|
-
zChatEvent: () =>
|
|
6716
|
+
zCantRebuildReason: () => To,
|
|
6717
|
+
zCantWakeReason: () => wo,
|
|
6718
|
+
zChatAttachment: () => Xi,
|
|
6719
|
+
zChatAttachmentInput: () => ia,
|
|
6720
|
+
zChatAttachmentPlacement: () => Yi,
|
|
6721
|
+
zChatCardSpec: () => Ra,
|
|
6722
|
+
zChatErrorData: () => Fa,
|
|
6723
|
+
zChatEvent: () => Ia,
|
|
6705
6724
|
zChatIssue: () => R,
|
|
6706
|
-
zChatMessage: () =>
|
|
6707
|
-
zChatMessageAttentionItem: () =>
|
|
6708
|
-
zChatMessageAttentionRef: () =>
|
|
6709
|
-
zChatMessageAttentionUpdate: () =>
|
|
6710
|
-
zChatMessageMetadata: () =>
|
|
6711
|
-
zChatStatusData: () =>
|
|
6712
|
-
zChatToolActivityData: () =>
|
|
6713
|
-
zChatToolActivityVisual: () =>
|
|
6714
|
-
zChatVisualSpec: () =>
|
|
6715
|
-
zCompleteCheckoutData: () =>
|
|
6725
|
+
zChatMessage: () => ra,
|
|
6726
|
+
zChatMessageAttentionItem: () => ea,
|
|
6727
|
+
zChatMessageAttentionRef: () => Zi,
|
|
6728
|
+
zChatMessageAttentionUpdate: () => ta,
|
|
6729
|
+
zChatMessageMetadata: () => na,
|
|
6730
|
+
zChatStatusData: () => Pa,
|
|
6731
|
+
zChatToolActivityData: () => Ki,
|
|
6732
|
+
zChatToolActivityVisual: () => Gi,
|
|
6733
|
+
zChatVisualSpec: () => Q,
|
|
6734
|
+
zCompleteCheckoutData: () => ja,
|
|
6716
6735
|
zConversationLastMessage: () => Za,
|
|
6717
6736
|
zConversationParticipant: () => Xa,
|
|
6718
6737
|
zConversationSummary: () => Qa,
|
|
6719
|
-
zConversationTarget: () =>
|
|
6738
|
+
zConversationTarget: () => oa,
|
|
6720
6739
|
zConversationUpdatedEvent: () => ro,
|
|
6721
|
-
zCreateAgentBody: () =>
|
|
6722
|
-
zCreateConversationBody: () =>
|
|
6723
|
-
zCreateConversationSessionBody: () =>
|
|
6724
|
-
zCreateOrgBody: () =>
|
|
6740
|
+
zCreateAgentBody: () => Ii,
|
|
6741
|
+
zCreateConversationBody: () => sa,
|
|
6742
|
+
zCreateConversationSessionBody: () => ca,
|
|
6743
|
+
zCreateOrgBody: () => No,
|
|
6725
6744
|
zDesiredStatus: () => V,
|
|
6726
|
-
zErrorCode: () =>
|
|
6745
|
+
zErrorCode: () => Vi,
|
|
6727
6746
|
zErrorResponses: () => zErrorResponses,
|
|
6728
6747
|
zFleetAgent: () => co,
|
|
6729
6748
|
zFleetSummary: () => lo,
|
|
6730
6749
|
zFleetSyncResponse: () => uo,
|
|
6731
|
-
zHandoffConsumeBody: () =>
|
|
6732
|
-
zHandoffConsumeData: () =>
|
|
6733
|
-
zHandoffConsumeResponse: () =>
|
|
6734
|
-
zHandoffMintBody: () =>
|
|
6735
|
-
zHandoffMintData: () =>
|
|
6736
|
-
zHandoffMintResponse: () =>
|
|
6737
|
-
zHeartbeatLocalTime: () =>
|
|
6738
|
-
zHeartbeatMoment: () =>
|
|
6739
|
-
zHomeStats: () =>
|
|
6750
|
+
zHandoffConsumeBody: () => ba,
|
|
6751
|
+
zHandoffConsumeData: () => xa,
|
|
6752
|
+
zHandoffConsumeResponse: () => Sa,
|
|
6753
|
+
zHandoffMintBody: () => _a,
|
|
6754
|
+
zHandoffMintData: () => va,
|
|
6755
|
+
zHandoffMintResponse: () => ya,
|
|
6756
|
+
zHeartbeatLocalTime: () => E,
|
|
6757
|
+
zHeartbeatMoment: () => rr,
|
|
6758
|
+
zHomeStats: () => Fo,
|
|
6740
6759
|
zIanaTimezone: () => Y,
|
|
6741
|
-
zImageAspectRatio: () =>
|
|
6742
|
-
zImageResolution: () =>
|
|
6743
|
-
zInvitationPreview: () =>
|
|
6744
|
-
zInvitationRow: () =>
|
|
6745
|
-
zInviteBody: () =>
|
|
6760
|
+
zImageAspectRatio: () => ua,
|
|
6761
|
+
zImageResolution: () => da,
|
|
6762
|
+
zInvitationPreview: () => bo,
|
|
6763
|
+
zInvitationRow: () => yo,
|
|
6764
|
+
zInviteBody: () => xo,
|
|
6746
6765
|
zLifecycle: () => B,
|
|
6747
6766
|
zLifecycleVerb: () => $r,
|
|
6748
6767
|
zLiveStatus: () => Gr,
|
|
6749
6768
|
zMarkReadBody: () => $a,
|
|
6750
6769
|
zMediaContext: () => po,
|
|
6751
|
-
zMediaObject: () =>
|
|
6770
|
+
zMediaObject: () => ho,
|
|
6752
6771
|
zMediaType: () => mo,
|
|
6753
|
-
zMemberRow: () =>
|
|
6772
|
+
zMemberRow: () => vo,
|
|
6754
6773
|
zMessageSearchResult: () => no,
|
|
6755
|
-
zOrgRow: () =>
|
|
6756
|
-
zOrgSummary: () =>
|
|
6774
|
+
zOrgRow: () => Mo,
|
|
6775
|
+
zOrgSummary: () => Lo,
|
|
6757
6776
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6758
|
-
zPlanTone: () =>
|
|
6759
|
-
zProviderErrorKind: () =>
|
|
6760
|
-
zPublicServiceOverview: () =>
|
|
6761
|
-
zReportMessageBody: () =>
|
|
6777
|
+
zPlanTone: () => Io,
|
|
6778
|
+
zProviderErrorKind: () => Hi,
|
|
6779
|
+
zPublicServiceOverview: () => Uo,
|
|
6780
|
+
zReportMessageBody: () => la,
|
|
6762
6781
|
zRuntimeOperation: () => Wr,
|
|
6763
6782
|
zRuntimeOperationKind: () => Hr,
|
|
6764
6783
|
zRuntimeOperationStatus: () => Ur,
|
|
6765
|
-
zSendMessageBody: () =>
|
|
6766
|
-
zSuggestedPrompt: () =>
|
|
6767
|
-
zUpdateAgentBody: () =>
|
|
6768
|
-
zUpdateOrgBody: () =>
|
|
6769
|
-
zUpdateRoleBody: () =>
|
|
6770
|
-
zUpdateUserBody: () =>
|
|
6771
|
-
zUploadMediaBody: () =>
|
|
6784
|
+
zSendMessageBody: () => aa,
|
|
6785
|
+
zSuggestedPrompt: () => zi,
|
|
6786
|
+
zUpdateAgentBody: () => Li,
|
|
6787
|
+
zUpdateOrgBody: () => Po,
|
|
6788
|
+
zUpdateRoleBody: () => So,
|
|
6789
|
+
zUpdateUserBody: () => Wo,
|
|
6790
|
+
zUploadMediaBody: () => go,
|
|
6791
|
+
zVoiceClientMetric: () => ci,
|
|
6772
6792
|
zVoiceKey: () => W,
|
|
6773
6793
|
zVoiceProviderName: () => si,
|
|
6774
6794
|
zVoiceProviderSession: () => oi,
|
|
6775
|
-
zVoiceSessionMint: () =>
|
|
6795
|
+
zVoiceSessionMint: () => li,
|
|
6776
6796
|
zVoiceSessionMintBody: () => ai
|
|
6777
|
-
}),
|
|
6797
|
+
}), Ko = "1.0.0";
|
|
6778
6798
|
function buildContract(e = {}) {
|
|
6779
6799
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6780
6800
|
let r = contractNameFor(e);
|
|
6781
6801
|
r && (n[r] = toSchema(t));
|
|
6782
6802
|
};
|
|
6783
|
-
for (let [e, t] of Object.entries(
|
|
6784
|
-
if (t instanceof
|
|
6803
|
+
for (let [e, t] of Object.entries(Go)) {
|
|
6804
|
+
if (t instanceof C) {
|
|
6785
6805
|
addSchema(e, t);
|
|
6786
6806
|
continue;
|
|
6787
6807
|
}
|
|
6788
|
-
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof
|
|
6808
|
+
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof C && addSchema(e, n);
|
|
6789
6809
|
}
|
|
6790
6810
|
return {
|
|
6791
|
-
version:
|
|
6811
|
+
version: Ko,
|
|
6792
6812
|
generatedAt: t.toISOString(),
|
|
6793
6813
|
schemas: n
|
|
6794
6814
|
};
|
|
@@ -6808,6 +6828,6 @@ function sortedReplacer(e, t) {
|
|
|
6808
6828
|
return t;
|
|
6809
6829
|
}
|
|
6810
6830
|
//#endregion
|
|
6811
|
-
export {
|
|
6831
|
+
export { Ko as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6812
6832
|
|
|
6813
6833
|
//# sourceMappingURL=contract.js.map
|