@pagelines/sdk 1.0.763 → 1.0.765
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 +3 -3
- package/dist/AgentWrap.js.map +1 -1
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +4 -2
- package/dist/agent/voice/providers/elevenlabs/provider.d.ts +13 -0
- package/dist/contract.js +989 -913
- package/dist/contract.js.map +1 -1
- package/dist/demo/index.d.ts +2 -1
- package/dist/provider2.js.map +1 -1
- package/dist/sdkClient.d.ts +6 -3
- package/dist/widget/composables/useWidgetState.d.ts +6 -3
- package/dist/widget.js +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), ee = $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
|
+
}, m = /* @__PURE__*/ _safeParse(ee), _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
|
+
}, te = /* @__PURE__*/ _safeParseAsync(ee), _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), ne = /^[cC][0-9a-z]{6,}$/, re = /^[0-9a-z]+$/, ie = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ae = /^[0-9a-vA-V]{20}$/, oe = /^[A-Za-z0-9]{27}$/, se = /^[a-zA-Z0-9_-]{21}$/, ce = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, le = /^([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})$/, ue = /* @__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"), de = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, fe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
450
450
|
function emoji() {
|
|
451
|
-
return new RegExp(
|
|
451
|
+
return new RegExp(fe, "u");
|
|
452
452
|
}
|
|
453
|
-
var
|
|
453
|
+
var pe = /^(?:(?: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])$/, me = /^(([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}|:))$/, he = /^((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])$/, ge = /^(([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])$/, _e = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ve = /^[A-Za-z0-9_-]*$/, ye = /^https?$/, be = /^\+[1-9]\d{6,14}$/, xe = "(?:(?:\\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])))", Se = /*@__PURE__*/ RegExp(`^${xe}$`);
|
|
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(`^${xe}T(?:${r})$`);
|
|
467
467
|
}
|
|
468
468
|
e(datetime$1, "datetime");
|
|
469
|
-
var
|
|
469
|
+
var Ce = /* @__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"), we = /^-?\d+$/, Te = /^-?\d+(?:\.\d+)?$/, Ee = /^(?:true|false)$/i, De = /^null$/i, Oe = /^[^A-Z]*$/, ke = /^[^a-z]*$/, h = /*@__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
|
+
}), Ae = {
|
|
476
476
|
number: "number",
|
|
477
477
|
bigint: "bigint",
|
|
478
478
|
object: "date"
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
let n =
|
|
479
|
+
}, je = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (e, t) => {
|
|
480
|
+
h.init(e, t);
|
|
481
|
+
let n = Ae[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 Se = /* @__PURE__ */ e((e) => {
|
|
|
493
493
|
continue: !t.abort
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
}),
|
|
497
|
-
|
|
498
|
-
let n =
|
|
496
|
+
}), Me = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (e, t) => {
|
|
497
|
+
h.init(e, t);
|
|
498
|
+
let n = Ae[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 Se = /* @__PURE__ */ e((e) => {
|
|
|
510
510
|
continue: !t.abort
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
|
-
}),
|
|
514
|
-
|
|
513
|
+
}), Ne = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (e, t) => {
|
|
514
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
525
525
|
continue: !t.abort
|
|
526
526
|
});
|
|
527
527
|
};
|
|
528
|
-
}),
|
|
529
|
-
|
|
528
|
+
}), Pe = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (e, t) => {
|
|
529
|
+
h.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 = we);
|
|
534
534
|
}), e._zod.check = (o) => {
|
|
535
535
|
let s = o.value;
|
|
536
536
|
if (n) {
|
|
@@ -586,9 +586,9 @@ var Se = /* @__PURE__ */ e((e) => {
|
|
|
586
586
|
continue: !t.abort
|
|
587
587
|
});
|
|
588
588
|
};
|
|
589
|
-
}),
|
|
589
|
+
}), Fe = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (e, t) => {
|
|
590
590
|
var n;
|
|
591
|
-
|
|
591
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
608
608
|
continue: !t.abort
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
|
-
}),
|
|
611
|
+
}), Ie = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (e, t) => {
|
|
612
612
|
var n;
|
|
613
|
-
|
|
613
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
630
630
|
continue: !t.abort
|
|
631
631
|
});
|
|
632
632
|
};
|
|
633
|
-
}),
|
|
633
|
+
}), Le = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (e, t) => {
|
|
634
634
|
var n;
|
|
635
|
-
|
|
635
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
658
658
|
continue: !t.abort
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
}),
|
|
661
|
+
}), g = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (e, t) => {
|
|
662
662
|
var n, r;
|
|
663
|
-
|
|
663
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
674
674
|
continue: !t.abort
|
|
675
675
|
});
|
|
676
676
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
677
|
-
}),
|
|
678
|
-
|
|
677
|
+
}), Re = /*@__PURE__*/ $constructor("$ZodCheckRegex", (e, t) => {
|
|
678
|
+
g.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 Se = /* @__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
|
+
}), ze = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (e, t) => {
|
|
690
|
+
t.pattern ?? (t.pattern = Oe), g.init(e, t);
|
|
691
|
+
}), Be = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (e, t) => {
|
|
692
|
+
t.pattern ?? (t.pattern = ke), g.init(e, t);
|
|
693
|
+
}), Ve = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (e, t) => {
|
|
694
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
707
707
|
continue: !t.abort
|
|
708
708
|
});
|
|
709
709
|
};
|
|
710
|
-
}),
|
|
711
|
-
|
|
710
|
+
}), He = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (e, t) => {
|
|
711
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
724
724
|
continue: !t.abort
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
|
-
}),
|
|
728
|
-
|
|
727
|
+
}), Ue = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (e, t) => {
|
|
728
|
+
h.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
741
741
|
continue: !t.abort
|
|
742
742
|
});
|
|
743
743
|
};
|
|
744
|
-
}),
|
|
745
|
-
|
|
744
|
+
}), We = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (e, t) => {
|
|
745
|
+
h.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 Se = /* @__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
|
+
}, Ge = {
|
|
768
768
|
major: 4,
|
|
769
769
|
minor: 4,
|
|
770
770
|
patch: 3
|
|
771
|
-
},
|
|
771
|
+
}, v = /*@__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 = Ge;
|
|
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 Se = /* @__PURE__ */ e((e) => {
|
|
|
827
827
|
defineLazy(e, "~standard", () => ({
|
|
828
828
|
validate: (t) => {
|
|
829
829
|
try {
|
|
830
|
-
let n =
|
|
830
|
+
let n = m(e, t);
|
|
831
831
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
832
832
|
} catch {
|
|
833
|
-
return
|
|
833
|
+
return te(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
|
+
}), Ke = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
|
|
840
|
+
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Ce(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 Se = /* @__PURE__ */ e((e) => {
|
|
|
848
848
|
inst: e
|
|
849
849
|
}), n;
|
|
850
850
|
};
|
|
851
|
-
}),
|
|
852
|
-
|
|
853
|
-
}),
|
|
854
|
-
t.pattern ?? (t.pattern =
|
|
855
|
-
}),
|
|
851
|
+
}), y = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
|
|
852
|
+
g.init(e, t), Ke.init(e, t);
|
|
853
|
+
}), qe = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
|
|
854
|
+
t.pattern ?? (t.pattern = le), y.init(e, t);
|
|
855
|
+
}), Je = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
|
|
856
856
|
if (t.version) {
|
|
857
857
|
let e = {
|
|
858
858
|
v1: 1,
|
|
@@ -865,16 +865,16 @@ var Se = /* @__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 = ue(e));
|
|
869
|
+
} else t.pattern ?? (t.pattern = ue());
|
|
870
|
+
y.init(e, t);
|
|
871
|
+
}), Ye = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
|
|
872
|
+
t.pattern ?? (t.pattern = de), y.init(e, t);
|
|
873
|
+
}), Xe = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
|
|
874
|
+
y.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 === ye.source && !/^https?:\/\//i.test(r)) {
|
|
878
878
|
n.issues.push({
|
|
879
879
|
code: "invalid_format",
|
|
880
880
|
format: "url",
|
|
@@ -914,32 +914,32 @@ var Se = /* @__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
|
+
}), Ze = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
|
|
918
|
+
t.pattern ?? (t.pattern = emoji()), y.init(e, t);
|
|
919
|
+
}), Qe = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
|
|
920
|
+
t.pattern ?? (t.pattern = se), y.init(e, t);
|
|
921
|
+
}), $e = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
|
|
922
|
+
t.pattern ?? (t.pattern = ne), y.init(e, t);
|
|
923
|
+
}), et = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
|
|
924
|
+
t.pattern ?? (t.pattern = re), y.init(e, t);
|
|
925
|
+
}), tt = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
|
|
926
|
+
t.pattern ?? (t.pattern = ie), y.init(e, t);
|
|
927
|
+
}), nt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
|
|
928
|
+
t.pattern ?? (t.pattern = ae), y.init(e, t);
|
|
929
|
+
}), rt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
|
|
930
|
+
t.pattern ?? (t.pattern = oe), y.init(e, t);
|
|
931
|
+
}), it = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
|
|
932
|
+
t.pattern ?? (t.pattern = datetime$1(t)), y.init(e, t);
|
|
933
|
+
}), at = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
|
|
934
|
+
t.pattern ?? (t.pattern = Se), y.init(e, t);
|
|
935
|
+
}), ot = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
|
|
936
|
+
t.pattern ?? (t.pattern = time$1(t)), y.init(e, t);
|
|
937
|
+
}), st = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
|
|
938
|
+
t.pattern ?? (t.pattern = ce), y.init(e, t);
|
|
939
|
+
}), ct = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
|
|
940
|
+
t.pattern ?? (t.pattern = pe), y.init(e, t), e._zod.bag.format = "ipv4";
|
|
941
|
+
}), lt = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
|
|
942
|
+
t.pattern ?? (t.pattern = me), y.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 Se = /* @__PURE__ */ e((e) => {
|
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
|
-
}),
|
|
956
|
-
t.pattern ?? (t.pattern =
|
|
957
|
-
}),
|
|
958
|
-
t.pattern ?? (t.pattern =
|
|
955
|
+
}), ut = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
|
|
956
|
+
t.pattern ?? (t.pattern = he), y.init(e, t);
|
|
957
|
+
}), dt = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
|
|
958
|
+
t.pattern ?? (t.pattern = ge), y.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 ft = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
988
|
+
t.pattern ?? (t.pattern = _e), y.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 ut = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
|
|
|
996
996
|
};
|
|
997
997
|
});
|
|
998
998
|
function isValidBase64URL(e) {
|
|
999
|
-
if (!
|
|
999
|
+
if (!ve.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 pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
1004
|
+
t.pattern ?? (t.pattern = ve), y.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 dt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
|
|
|
1010
1010
|
continue: !t.abort
|
|
1011
1011
|
});
|
|
1012
1012
|
};
|
|
1013
|
-
}),
|
|
1014
|
-
t.pattern ?? (t.pattern =
|
|
1013
|
+
}), mt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
|
|
1014
|
+
t.pattern ?? (t.pattern = be), y.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 ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
1029
|
+
y.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 pt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1035
1035
|
continue: !t.abort
|
|
1036
1036
|
});
|
|
1037
1037
|
};
|
|
1038
|
-
}),
|
|
1039
|
-
|
|
1038
|
+
}), gt = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
|
|
1039
|
+
v.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Te, 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 pt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1051
1051
|
...a ? { received: a } : {}
|
|
1052
1052
|
}), n;
|
|
1053
1053
|
};
|
|
1054
|
-
}),
|
|
1055
|
-
|
|
1056
|
-
}),
|
|
1057
|
-
|
|
1054
|
+
}), _t = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
|
|
1055
|
+
Pe.init(e, t), gt.init(e, t);
|
|
1056
|
+
}), vt = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
|
|
1057
|
+
v.init(e, t), e._zod.pattern = Ee, 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 pt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1066
1066
|
inst: e
|
|
1067
1067
|
}), n;
|
|
1068
1068
|
};
|
|
1069
|
-
}),
|
|
1070
|
-
|
|
1069
|
+
}), yt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
|
|
1070
|
+
v.init(e, t), e._zod.pattern = De, 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 pt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
|
|
|
1076
1076
|
inst: e
|
|
1077
1077
|
}), t;
|
|
1078
1078
|
};
|
|
1079
|
-
}),
|
|
1080
|
-
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1079
|
+
}), bt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
|
|
1080
|
+
v.init(e, t), e._zod.parse = (e) => e;
|
|
1081
|
+
}), xt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
|
|
1082
|
+
v.init(e, t), e._zod.parse = (e) => e;
|
|
1083
|
+
}), St = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
|
|
1084
|
+
v.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 pt = /*@__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 Ct = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
|
|
1095
|
+
v.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 wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
|
|
1166
|
+
if (v.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 St = /*@__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
|
+
}), Tt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
|
|
1207
|
+
wt.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 Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
1310
|
+
v.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 wt = /*@__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
|
+
}), Dt = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
|
|
1336
|
+
t.inclusive = !1, Et.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 wt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
|
|
|
1379
1379
|
inst: e
|
|
1380
1380
|
}), i);
|
|
1381
1381
|
};
|
|
1382
|
-
}),
|
|
1383
|
-
|
|
1382
|
+
}), Ot = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
|
|
1383
|
+
v.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 kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
1459
|
+
v.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 Dt = /*@__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" && Te.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 Dt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1543
1543
|
};
|
|
1544
|
-
}),
|
|
1545
|
-
|
|
1544
|
+
}), At = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
|
|
1545
|
+
v.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 Dt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1553
1553
|
inst: e
|
|
1554
1554
|
}), t;
|
|
1555
1555
|
};
|
|
1556
|
-
}),
|
|
1557
|
-
if (
|
|
1556
|
+
}), jt = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
|
|
1557
|
+
if (v.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 Dt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
|
|
|
1565
1565
|
inst: e
|
|
1566
1566
|
}), r;
|
|
1567
1567
|
};
|
|
1568
|
-
}),
|
|
1569
|
-
|
|
1568
|
+
}), Mt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
|
|
1569
|
+
v.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 Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
|
|
1584
|
+
v.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 jt = /*@__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
|
+
}), Pt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
|
|
1595
|
+
Nt.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
|
+
}), Ft = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
|
|
1597
|
+
v.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
|
+
}), It = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
|
|
1602
|
+
v.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 jt = /*@__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 Lt = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
|
|
1613
|
+
v.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
|
+
}), Rt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
|
|
1615
|
+
v.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 zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
1632
|
+
v.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 Lt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
|
|
|
1642
1642
|
input: e.value
|
|
1643
1643
|
}), e.issues = [], e.fallback = !0), e);
|
|
1644
1644
|
};
|
|
1645
|
-
}),
|
|
1646
|
-
|
|
1645
|
+
}), Bt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
|
|
1646
|
+
v.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 Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
|
|
1663
|
+
Bt.init(e, t);
|
|
1664
|
+
}), Ht = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
|
|
1665
|
+
v.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 zt = /*@__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 Ut = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
|
|
1675
|
+
h.init(e, t), v.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 Wt, $ZodRegistry = class {
|
|
1696
1696
|
constructor() {
|
|
1697
1697
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1698
1698
|
}
|
|
@@ -1727,8 +1727,8 @@ var Ht, $ZodRegistry = class {
|
|
|
1727
1727
|
function registry() {
|
|
1728
1728
|
return new $ZodRegistry();
|
|
1729
1729
|
}
|
|
1730
|
-
(
|
|
1731
|
-
var
|
|
1730
|
+
(Wt = globalThis).__zod_globalRegistry ?? (Wt.__zod_globalRegistry = registry());
|
|
1731
|
+
var b = 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 je({
|
|
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 je({
|
|
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 Me({
|
|
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 Me({
|
|
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 Ne({
|
|
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 Fe({
|
|
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 Ie({
|
|
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 Le({
|
|
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 Re({
|
|
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 ze({
|
|
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 Be({
|
|
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 Ve({
|
|
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 He({
|
|
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 Ue({
|
|
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 We({
|
|
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 h({
|
|
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 ?? b,
|
|
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
|
+
}, Gt = {
|
|
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 = Gt[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
|
+
}, Kt = {
|
|
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: Kt
|
|
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: Kt
|
|
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 qt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
|
|
2763
|
+
it.init(e, t), C.init(e, t);
|
|
2764
2764
|
});
|
|
2765
2765
|
function datetime(e) {
|
|
2766
|
-
return /* @__PURE__ */ _isoDateTime(
|
|
2766
|
+
return /* @__PURE__ */ _isoDateTime(qt, e);
|
|
2767
2767
|
}
|
|
2768
|
-
var
|
|
2769
|
-
|
|
2768
|
+
var Jt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
|
|
2769
|
+
at.init(e, t), C.init(e, t);
|
|
2770
2770
|
});
|
|
2771
2771
|
function date(e) {
|
|
2772
|
-
return /* @__PURE__ */ _isoDate(
|
|
2772
|
+
return /* @__PURE__ */ _isoDate(Jt, e);
|
|
2773
2773
|
}
|
|
2774
|
-
var
|
|
2775
|
-
|
|
2774
|
+
var Yt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
|
|
2775
|
+
ot.init(e, t), C.init(e, t);
|
|
2776
2776
|
});
|
|
2777
2777
|
function time(e) {
|
|
2778
|
-
return /* @__PURE__ */ _isoTime(
|
|
2778
|
+
return /* @__PURE__ */ _isoTime(Yt, e);
|
|
2779
2779
|
}
|
|
2780
|
-
var
|
|
2781
|
-
|
|
2780
|
+
var Xt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
|
|
2781
|
+
st.init(e, t), C.init(e, t);
|
|
2782
2782
|
});
|
|
2783
2783
|
function duration(e) {
|
|
2784
|
-
return /* @__PURE__ */ _isoDuration(
|
|
2784
|
+
return /* @__PURE__ */ _isoDuration(Xt, 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
|
+
}, x = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Zt = /* @__PURE__ */ _parse(x), Qt = /* @__PURE__ */ _parseAsync(x), $t = /* @__PURE__ */ _safeParse(x), en = /* @__PURE__ */ _safeParseAsync(x), tn = /* @__PURE__ */ _encode(x), nn = /* @__PURE__ */ _decode(x), rn = /* @__PURE__ */ _encodeAsync(x), an = /* @__PURE__ */ _decodeAsync(x), on = /* @__PURE__ */ _safeEncode(x), sn = /* @__PURE__ */ _safeDecode(x), cn = /* @__PURE__ */ _safeEncodeAsync(x), ln = /* @__PURE__ */ _safeDecodeAsync(x), un = /* @__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 = un.get(r);
|
|
2805
|
+
if (i || (i = /* @__PURE__ */ new Set(), un.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 S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.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) => Zt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => $t(e, t, n), e.parseAsync = async (t, n) => Qt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => en(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => tn(e, t, n), e.decode = (t, n) => nn(e, t, n), e.encodeAsync = async (t, n) => rn(e, t, n), e.decodeAsync = async (t, n) => an(e, t, n), e.safeEncode = (t, n) => on(e, t, n), e.safeDecode = (t, n) => sn(e, t, n), e.safeEncodeAsync = async (t, n) => cn(e, t, n), e.safeDecodeAsync = async (t, n) => ln(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 w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (y.init(e, t), Object.as
|
|
|
2907
2907
|
},
|
|
2908
2908
|
describe(e) {
|
|
2909
2909
|
let t = this.clone();
|
|
2910
|
-
return
|
|
2910
|
+
return b.add(t, { description: e }), t;
|
|
2911
2911
|
},
|
|
2912
2912
|
meta(...e) {
|
|
2913
|
-
if (e.length === 0) return
|
|
2913
|
+
if (e.length === 0) return b.get(this);
|
|
2914
2914
|
let t = this.clone();
|
|
2915
|
-
return
|
|
2915
|
+
return b.add(t, e[0]), t;
|
|
2916
2916
|
},
|
|
2917
2917
|
isOptional() {
|
|
2918
2918
|
return this.safeParse(void 0).success;
|
|
@@ -2925,11 +2925,11 @@ var w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (y.init(e, t), Object.as
|
|
|
2925
2925
|
}
|
|
2926
2926
|
}), Object.defineProperty(e, "description", {
|
|
2927
2927
|
get() {
|
|
2928
|
-
return
|
|
2928
|
+
return b.get(e)?.description;
|
|
2929
2929
|
},
|
|
2930
2930
|
configurable: !0
|
|
2931
|
-
}), e)),
|
|
2932
|
-
|
|
2931
|
+
}), e)), dn = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
|
|
2932
|
+
Ke.init(e, t), S.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,58 +2978,58 @@ var w = /*@__PURE__*/ $constructor("ZodType", (e, t) => (y.init(e, t), Object.as
|
|
|
2978
2978
|
return this.check(/* @__PURE__ */ _slugify());
|
|
2979
2979
|
}
|
|
2980
2980
|
});
|
|
2981
|
-
}),
|
|
2982
|
-
|
|
2981
|
+
}), fn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
|
|
2982
|
+
Ke.init(e, t), dn.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(pn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(hn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(An, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(w, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(w, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(w, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(w, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(_n, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(vn, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(yn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(bn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(Dn, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(On, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(xn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(Sn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Cn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(wn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(Tn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(En, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(kn, 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(
|
|
2986
|
-
}
|
|
2987
|
-
var
|
|
2988
|
-
|
|
2989
|
-
}),
|
|
2990
|
-
|
|
2991
|
-
}),
|
|
2992
|
-
|
|
2993
|
-
}),
|
|
2994
|
-
|
|
2995
|
-
}),
|
|
2996
|
-
|
|
2985
|
+
return /* @__PURE__ */ _string(fn, e);
|
|
2986
|
+
}
|
|
2987
|
+
var C = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
|
|
2988
|
+
y.init(e, t), dn.init(e, t);
|
|
2989
|
+
}), pn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
|
|
2990
|
+
Ye.init(e, t), C.init(e, t);
|
|
2991
|
+
}), mn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
|
|
2992
|
+
qe.init(e, t), C.init(e, t);
|
|
2993
|
+
}), w = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
|
|
2994
|
+
Je.init(e, t), C.init(e, t);
|
|
2995
|
+
}), hn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
|
|
2996
|
+
Xe.init(e, t), C.init(e, t);
|
|
2997
2997
|
});
|
|
2998
2998
|
function url(e) {
|
|
2999
|
-
return /* @__PURE__ */ _url(
|
|
3000
|
-
}
|
|
3001
|
-
var
|
|
3002
|
-
|
|
3003
|
-
}),
|
|
3004
|
-
|
|
3005
|
-
}),
|
|
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
|
-
|
|
2999
|
+
return /* @__PURE__ */ _url(hn, e);
|
|
3000
|
+
}
|
|
3001
|
+
var gn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
3002
|
+
Ze.init(e, t), C.init(e, t);
|
|
3003
|
+
}), _n = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
|
|
3004
|
+
Qe.init(e, t), C.init(e, t);
|
|
3005
|
+
}), vn = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
|
|
3006
|
+
$e.init(e, t), C.init(e, t);
|
|
3007
|
+
}), yn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
|
|
3008
|
+
et.init(e, t), C.init(e, t);
|
|
3009
|
+
}), bn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
|
|
3010
|
+
tt.init(e, t), C.init(e, t);
|
|
3011
|
+
}), xn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
|
|
3012
|
+
nt.init(e, t), C.init(e, t);
|
|
3013
|
+
}), Sn = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
|
|
3014
|
+
rt.init(e, t), C.init(e, t);
|
|
3015
|
+
}), Cn = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
|
|
3016
|
+
ct.init(e, t), C.init(e, t);
|
|
3017
|
+
}), wn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
|
|
3018
|
+
lt.init(e, t), C.init(e, t);
|
|
3019
|
+
}), Tn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
|
|
3020
|
+
ut.init(e, t), C.init(e, t);
|
|
3021
|
+
}), En = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
|
|
3022
|
+
dt.init(e, t), C.init(e, t);
|
|
3023
|
+
}), Dn = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
|
|
3024
|
+
ft.init(e, t), C.init(e, t);
|
|
3025
|
+
}), On = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
|
|
3026
|
+
pt.init(e, t), C.init(e, t);
|
|
3027
|
+
}), kn = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
|
|
3028
|
+
mt.init(e, t), C.init(e, t);
|
|
3029
|
+
}), An = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
|
|
3030
|
+
ht.init(e, t), C.init(e, t);
|
|
3031
|
+
}), jn = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
|
|
3032
|
+
gt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
|
|
3033
3033
|
gt(e, t) {
|
|
3034
3034
|
return this.check(/* @__PURE__ */ _gt(e, t));
|
|
3035
3035
|
},
|
|
@@ -3080,46 +3080,46 @@ var mn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
|
|
|
3080
3080
|
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;
|
|
3081
3081
|
});
|
|
3082
3082
|
function number(e) {
|
|
3083
|
-
return /* @__PURE__ */ _number(
|
|
3083
|
+
return /* @__PURE__ */ _number(jn, e);
|
|
3084
3084
|
}
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3085
|
+
var Mn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
|
|
3086
|
+
_t.init(e, t), jn.init(e, t);
|
|
3087
3087
|
});
|
|
3088
3088
|
function int(e) {
|
|
3089
|
-
return /* @__PURE__ */ _int(
|
|
3089
|
+
return /* @__PURE__ */ _int(Mn, e);
|
|
3090
3090
|
}
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3091
|
+
var Nn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
|
|
3092
|
+
vt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
|
|
3093
3093
|
});
|
|
3094
3094
|
function boolean(e) {
|
|
3095
|
-
return /* @__PURE__ */ _boolean(
|
|
3095
|
+
return /* @__PURE__ */ _boolean(Nn, e);
|
|
3096
3096
|
}
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3097
|
+
var Pn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
|
|
3098
|
+
yt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
|
|
3099
3099
|
});
|
|
3100
3100
|
function _null(e) {
|
|
3101
|
-
return /* @__PURE__ */ _null$1(
|
|
3101
|
+
return /* @__PURE__ */ _null$1(Pn, e);
|
|
3102
3102
|
}
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3103
|
+
var Fn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
|
|
3104
|
+
bt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3105
3105
|
});
|
|
3106
3106
|
function any() {
|
|
3107
|
-
return /* @__PURE__ */ _any(
|
|
3107
|
+
return /* @__PURE__ */ _any(Fn);
|
|
3108
3108
|
}
|
|
3109
|
-
var
|
|
3110
|
-
|
|
3109
|
+
var In = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
|
|
3110
|
+
xt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3111
3111
|
});
|
|
3112
3112
|
function unknown() {
|
|
3113
|
-
return /* @__PURE__ */ _unknown(
|
|
3113
|
+
return /* @__PURE__ */ _unknown(In);
|
|
3114
3114
|
}
|
|
3115
|
-
var
|
|
3116
|
-
|
|
3115
|
+
var Ln = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
|
|
3116
|
+
St.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
|
|
3117
3117
|
});
|
|
3118
3118
|
function never(e) {
|
|
3119
|
-
return /* @__PURE__ */ _never(
|
|
3119
|
+
return /* @__PURE__ */ _never(Ln, e);
|
|
3120
3120
|
}
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3121
|
+
var Rn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
3122
|
+
Ct.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => arrayProcessor(e, t, n, r), e.element = t.element, _installLazyMethods(e, "ZodArray", {
|
|
3123
3123
|
min(e, t) {
|
|
3124
3124
|
return this.check(/* @__PURE__ */ _minLength(e, t));
|
|
3125
3125
|
},
|
|
@@ -3138,10 +3138,10 @@ var In = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
|
|
|
3138
3138
|
});
|
|
3139
3139
|
});
|
|
3140
3140
|
function array(e, t) {
|
|
3141
|
-
return /* @__PURE__ */ _array(
|
|
3141
|
+
return /* @__PURE__ */ _array(Rn, e, t);
|
|
3142
3142
|
}
|
|
3143
|
-
var
|
|
3144
|
-
|
|
3143
|
+
var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
3144
|
+
Tt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => objectProcessor(e, t, n, r), defineLazy(e, "shape", () => t.shape), _installLazyMethods(e, "ZodObject", {
|
|
3145
3145
|
keyof() {
|
|
3146
3146
|
return _enum(Object.keys(this._zod.def.shape));
|
|
3147
3147
|
},
|
|
@@ -3191,75 +3191,75 @@ var Ln = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
|
3191
3191
|
return omit(this, e);
|
|
3192
3192
|
},
|
|
3193
3193
|
partial(...e) {
|
|
3194
|
-
return partial(
|
|
3194
|
+
return partial(Kn, this, e[0]);
|
|
3195
3195
|
},
|
|
3196
3196
|
required(...e) {
|
|
3197
|
-
return required(
|
|
3197
|
+
return required(Zn, this, e[0]);
|
|
3198
3198
|
}
|
|
3199
3199
|
});
|
|
3200
3200
|
});
|
|
3201
3201
|
function object(e, t) {
|
|
3202
|
-
return new
|
|
3202
|
+
return new zn({
|
|
3203
3203
|
type: "object",
|
|
3204
3204
|
shape: e ?? {},
|
|
3205
3205
|
...normalizeParams(t)
|
|
3206
3206
|
});
|
|
3207
3207
|
}
|
|
3208
|
-
var
|
|
3209
|
-
|
|
3208
|
+
var Bn = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
|
|
3209
|
+
Et.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
|
|
3210
3210
|
});
|
|
3211
3211
|
function union(e, t) {
|
|
3212
|
-
return new
|
|
3212
|
+
return new Bn({
|
|
3213
3213
|
type: "union",
|
|
3214
3214
|
options: e,
|
|
3215
3215
|
...normalizeParams(t)
|
|
3216
3216
|
});
|
|
3217
3217
|
}
|
|
3218
|
-
var
|
|
3219
|
-
|
|
3218
|
+
var Vn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
|
|
3219
|
+
Bn.init(e, t), Dt.init(e, t);
|
|
3220
3220
|
});
|
|
3221
3221
|
function discriminatedUnion(e, t, n) {
|
|
3222
|
-
return new
|
|
3222
|
+
return new Vn({
|
|
3223
3223
|
type: "union",
|
|
3224
3224
|
options: t,
|
|
3225
3225
|
discriminator: e,
|
|
3226
3226
|
...normalizeParams(n)
|
|
3227
3227
|
});
|
|
3228
3228
|
}
|
|
3229
|
-
var
|
|
3230
|
-
|
|
3229
|
+
var Hn = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
|
|
3230
|
+
Ot.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
|
|
3231
3231
|
});
|
|
3232
3232
|
function intersection(e, t) {
|
|
3233
|
-
return new
|
|
3233
|
+
return new Hn({
|
|
3234
3234
|
type: "intersection",
|
|
3235
3235
|
left: e,
|
|
3236
3236
|
right: t
|
|
3237
3237
|
});
|
|
3238
3238
|
}
|
|
3239
|
-
var
|
|
3240
|
-
|
|
3239
|
+
var Un = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
|
|
3240
|
+
kt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => recordProcessor(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
3241
3241
|
});
|
|
3242
3242
|
function record(e, t, n) {
|
|
3243
|
-
return !t || !t._zod ? new
|
|
3243
|
+
return !t || !t._zod ? new Un({
|
|
3244
3244
|
type: "record",
|
|
3245
3245
|
keyType: string(),
|
|
3246
3246
|
valueType: e,
|
|
3247
3247
|
...normalizeParams(t)
|
|
3248
|
-
}) : new
|
|
3248
|
+
}) : new Un({
|
|
3249
3249
|
type: "record",
|
|
3250
3250
|
keyType: e,
|
|
3251
3251
|
valueType: t,
|
|
3252
3252
|
...normalizeParams(n)
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
|
-
var
|
|
3256
|
-
|
|
3255
|
+
var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
3256
|
+
At.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3257
3257
|
let n = new Set(Object.keys(t.entries));
|
|
3258
3258
|
e.extract = (e, r) => {
|
|
3259
3259
|
let i = {};
|
|
3260
3260
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3261
3261
|
else throw Error(`Key ${r} not found in enum`);
|
|
3262
|
-
return new
|
|
3262
|
+
return new T({
|
|
3263
3263
|
...t,
|
|
3264
3264
|
checks: [],
|
|
3265
3265
|
...normalizeParams(r),
|
|
@@ -3269,7 +3269,7 @@ var Hn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3269
3269
|
let i = { ...t.entries };
|
|
3270
3270
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3271
3271
|
else throw Error(`Key ${t} not found in enum`);
|
|
3272
|
-
return new
|
|
3272
|
+
return new T({
|
|
3273
3273
|
...t,
|
|
3274
3274
|
checks: [],
|
|
3275
3275
|
...normalizeParams(r),
|
|
@@ -3278,27 +3278,27 @@ var Hn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
});
|
|
3280
3280
|
function _enum(e, t) {
|
|
3281
|
-
return new
|
|
3281
|
+
return new T({
|
|
3282
3282
|
type: "enum",
|
|
3283
3283
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3284
3284
|
...normalizeParams(t)
|
|
3285
3285
|
});
|
|
3286
3286
|
}
|
|
3287
|
-
var
|
|
3288
|
-
|
|
3287
|
+
var Wn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
|
|
3288
|
+
jt.init(e, t), S.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() {
|
|
3289
3289
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3290
3290
|
return t.values[0];
|
|
3291
3291
|
} });
|
|
3292
3292
|
});
|
|
3293
3293
|
function literal(e, t) {
|
|
3294
|
-
return new
|
|
3294
|
+
return new Wn({
|
|
3295
3295
|
type: "literal",
|
|
3296
3296
|
values: Array.isArray(e) ? e : [e],
|
|
3297
3297
|
...normalizeParams(t)
|
|
3298
3298
|
});
|
|
3299
3299
|
}
|
|
3300
|
-
var
|
|
3301
|
-
|
|
3300
|
+
var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
3301
|
+
Mt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3302
3302
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
3303
3303
|
n.addIssue = (r) => {
|
|
3304
3304
|
if (typeof r == "string") n.issues.push(issue(r, n.value, t));
|
|
@@ -3312,43 +3312,43 @@ var Wn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
|
3312
3312
|
};
|
|
3313
3313
|
});
|
|
3314
3314
|
function transform(e) {
|
|
3315
|
-
return new
|
|
3315
|
+
return new Gn({
|
|
3316
3316
|
type: "transform",
|
|
3317
3317
|
transform: e
|
|
3318
3318
|
});
|
|
3319
3319
|
}
|
|
3320
|
-
var
|
|
3321
|
-
|
|
3320
|
+
var Kn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
|
|
3321
|
+
Nt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3322
3322
|
});
|
|
3323
3323
|
function optional(e) {
|
|
3324
|
-
return new
|
|
3324
|
+
return new Kn({
|
|
3325
3325
|
type: "optional",
|
|
3326
3326
|
innerType: e
|
|
3327
3327
|
});
|
|
3328
3328
|
}
|
|
3329
|
-
var
|
|
3330
|
-
|
|
3329
|
+
var qn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
|
|
3330
|
+
Pt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3331
3331
|
});
|
|
3332
3332
|
function exactOptional(e) {
|
|
3333
|
-
return new
|
|
3333
|
+
return new qn({
|
|
3334
3334
|
type: "optional",
|
|
3335
3335
|
innerType: e
|
|
3336
3336
|
});
|
|
3337
3337
|
}
|
|
3338
|
-
var
|
|
3339
|
-
|
|
3338
|
+
var Jn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
|
|
3339
|
+
Ft.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3340
3340
|
});
|
|
3341
3341
|
function nullable(e) {
|
|
3342
|
-
return new
|
|
3342
|
+
return new Jn({
|
|
3343
3343
|
type: "nullable",
|
|
3344
3344
|
innerType: e
|
|
3345
3345
|
});
|
|
3346
3346
|
}
|
|
3347
|
-
var
|
|
3348
|
-
|
|
3347
|
+
var Yn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
|
|
3348
|
+
It.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3349
3349
|
});
|
|
3350
3350
|
function _default(e, t) {
|
|
3351
|
-
return new
|
|
3351
|
+
return new Yn({
|
|
3352
3352
|
type: "default",
|
|
3353
3353
|
innerType: e,
|
|
3354
3354
|
get defaultValue() {
|
|
@@ -3356,11 +3356,11 @@ function _default(e, t) {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
});
|
|
3358
3358
|
}
|
|
3359
|
-
var
|
|
3360
|
-
|
|
3359
|
+
var Xn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
|
|
3360
|
+
Lt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3361
3361
|
});
|
|
3362
3362
|
function prefault(e, t) {
|
|
3363
|
-
return new
|
|
3363
|
+
return new Xn({
|
|
3364
3364
|
type: "prefault",
|
|
3365
3365
|
innerType: e,
|
|
3366
3366
|
get defaultValue() {
|
|
@@ -3368,58 +3368,58 @@ function prefault(e, t) {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
});
|
|
3370
3370
|
}
|
|
3371
|
-
var
|
|
3372
|
-
|
|
3371
|
+
var Zn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
|
|
3372
|
+
Rt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3373
3373
|
});
|
|
3374
3374
|
function nonoptional(e, t) {
|
|
3375
|
-
return new
|
|
3375
|
+
return new Zn({
|
|
3376
3376
|
type: "nonoptional",
|
|
3377
3377
|
innerType: e,
|
|
3378
3378
|
...normalizeParams(t)
|
|
3379
3379
|
});
|
|
3380
3380
|
}
|
|
3381
|
-
var
|
|
3382
|
-
|
|
3381
|
+
var Qn = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
|
|
3382
|
+
zt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3383
3383
|
});
|
|
3384
3384
|
function _catch(e, t) {
|
|
3385
|
-
return new
|
|
3385
|
+
return new Qn({
|
|
3386
3386
|
type: "catch",
|
|
3387
3387
|
innerType: e,
|
|
3388
3388
|
catchValue: typeof t == "function" ? t : () => t
|
|
3389
3389
|
});
|
|
3390
3390
|
}
|
|
3391
|
-
var
|
|
3392
|
-
|
|
3391
|
+
var $n = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
|
|
3392
|
+
Bt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3393
3393
|
});
|
|
3394
3394
|
function pipe(e, t) {
|
|
3395
|
-
return new
|
|
3395
|
+
return new $n({
|
|
3396
3396
|
type: "pipe",
|
|
3397
3397
|
in: e,
|
|
3398
3398
|
out: t
|
|
3399
3399
|
});
|
|
3400
3400
|
}
|
|
3401
|
-
var
|
|
3402
|
-
|
|
3403
|
-
}),
|
|
3404
|
-
|
|
3401
|
+
var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
|
|
3402
|
+
$n.init(e, t), Vt.init(e, t);
|
|
3403
|
+
}), tr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
|
|
3404
|
+
Ht.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3405
3405
|
});
|
|
3406
3406
|
function readonly(e) {
|
|
3407
|
-
return new
|
|
3407
|
+
return new tr({
|
|
3408
3408
|
type: "readonly",
|
|
3409
3409
|
innerType: e
|
|
3410
3410
|
});
|
|
3411
3411
|
}
|
|
3412
|
-
var
|
|
3413
|
-
|
|
3412
|
+
var nr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
|
|
3413
|
+
Ut.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
|
|
3414
3414
|
});
|
|
3415
3415
|
function refine(e, t = {}) {
|
|
3416
|
-
return /* @__PURE__ */ _refine(
|
|
3416
|
+
return /* @__PURE__ */ _refine(nr, e, t);
|
|
3417
3417
|
}
|
|
3418
3418
|
function superRefine(e, t) {
|
|
3419
3419
|
return /* @__PURE__ */ _superRefine(e, t);
|
|
3420
3420
|
}
|
|
3421
3421
|
function preprocess(e, t) {
|
|
3422
|
-
return new
|
|
3422
|
+
return new er({
|
|
3423
3423
|
type: "pipe",
|
|
3424
3424
|
in: transform(e),
|
|
3425
3425
|
out: t
|
|
@@ -3427,15 +3427,15 @@ function preprocess(e, t) {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
//#endregion
|
|
3429
3429
|
//#region ../core/dist/heartbeat.js
|
|
3430
|
-
var
|
|
3430
|
+
var rr = _enum([
|
|
3431
3431
|
"briefing",
|
|
3432
3432
|
"checkin",
|
|
3433
3433
|
"closeout"
|
|
3434
|
-
]),
|
|
3434
|
+
]), E = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ir = {
|
|
3435
3435
|
briefing: "07:30",
|
|
3436
3436
|
checkin: "12:30",
|
|
3437
3437
|
closeout: "17:30"
|
|
3438
|
-
},
|
|
3438
|
+
}, 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 = {
|
|
3439
3439
|
error: {
|
|
3440
3440
|
priority: 50,
|
|
3441
3441
|
color: "#FF0000",
|
|
@@ -3461,7 +3461,7 @@ var nr = _enum([
|
|
|
3461
3461
|
color: "#5233FF",
|
|
3462
3462
|
nodeColor: "\x1B[35m"
|
|
3463
3463
|
}
|
|
3464
|
-
},
|
|
3464
|
+
}, or = [
|
|
3465
3465
|
"password",
|
|
3466
3466
|
"token",
|
|
3467
3467
|
"secret",
|
|
@@ -3471,11 +3471,11 @@ var nr = _enum([
|
|
|
3471
3471
|
];
|
|
3472
3472
|
function isSensitiveKey(e) {
|
|
3473
3473
|
let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3474
|
-
if (
|
|
3474
|
+
if (or.includes(t)) return !0;
|
|
3475
3475
|
let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
3476
|
-
return
|
|
3476
|
+
return or.some((e) => n.includes(e));
|
|
3477
3477
|
}
|
|
3478
|
-
var
|
|
3478
|
+
var sr = /* @__PURE__ */ new Set([
|
|
3479
3479
|
"CONNECT_TIMEOUT",
|
|
3480
3480
|
"ECONNREFUSED",
|
|
3481
3481
|
"ECONNRESET",
|
|
@@ -3487,34 +3487,34 @@ var or = /* @__PURE__ */ new Set([
|
|
|
3487
3487
|
function infraErrorCode(e, t = 0) {
|
|
3488
3488
|
if (t > 4 || !(e instanceof Error)) return;
|
|
3489
3489
|
let n = e.code;
|
|
3490
|
-
return typeof n == "string" &&
|
|
3490
|
+
return typeof n == "string" && sr.has(n) ? n : infraErrorCode(e.cause, t + 1);
|
|
3491
3491
|
}
|
|
3492
3492
|
function firstAppFrame(e) {
|
|
3493
3493
|
if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
|
|
3494
3494
|
}
|
|
3495
|
-
var
|
|
3495
|
+
var M = class Logger {
|
|
3496
3496
|
constructor(e = {}, t) {
|
|
3497
3497
|
this.enabledInBrowser = !1, this.context = t, this.settings = {
|
|
3498
3498
|
enabled: e.enabled ?? !0,
|
|
3499
3499
|
minLevel: e.minLevel ?? this.getDefaultLevel(),
|
|
3500
3500
|
timestamps: e.timestamps ?? !0
|
|
3501
|
-
},
|
|
3501
|
+
}, O && this.initBrowserLogging();
|
|
3502
3502
|
}
|
|
3503
3503
|
getDefaultLevel() {
|
|
3504
|
-
if (
|
|
3505
|
-
if (
|
|
3504
|
+
if (k && D !== void 0 && D.env?.LOG_LEVEL) return D.env.LOG_LEVEL;
|
|
3505
|
+
if (O && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
|
|
3506
3506
|
let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
|
|
3507
3507
|
if (e) return e;
|
|
3508
3508
|
}
|
|
3509
3509
|
return "info";
|
|
3510
3510
|
}
|
|
3511
3511
|
initBrowserLogging() {
|
|
3512
|
-
if (!
|
|
3512
|
+
if (!O) return;
|
|
3513
3513
|
let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
|
|
3514
|
-
this.enabledInBrowser =
|
|
3514
|
+
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);
|
|
3515
3515
|
}
|
|
3516
3516
|
shouldLog(e) {
|
|
3517
|
-
return !this.settings.enabled ||
|
|
3517
|
+
return !this.settings.enabled || O && !this.enabledInBrowser ? !1 : j[e].priority >= j[this.settings.minLevel].priority;
|
|
3518
3518
|
}
|
|
3519
3519
|
formatTimestamp() {
|
|
3520
3520
|
return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
|
|
@@ -3550,16 +3550,16 @@ var N = class Logger {
|
|
|
3550
3550
|
let i = {
|
|
3551
3551
|
name: e.name,
|
|
3552
3552
|
message: e.message,
|
|
3553
|
-
stack:
|
|
3553
|
+
stack: A ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
|
|
3554
3554
|
};
|
|
3555
3555
|
for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
|
|
3556
3556
|
return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
|
|
3557
3557
|
}
|
|
3558
3558
|
if (e instanceof Date) return e.toISOString();
|
|
3559
3559
|
if (typeof e != "object") return e;
|
|
3560
|
-
if (Array.isArray(e)) return e.length > 20 &&
|
|
3560
|
+
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));
|
|
3561
3561
|
try {
|
|
3562
|
-
let r = {}, i = Object.entries(e), a =
|
|
3562
|
+
let r = {}, i = Object.entries(e), a = A ? 50 : 200;
|
|
3563
3563
|
for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
|
|
3564
3564
|
return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
|
|
3565
3565
|
} catch {
|
|
@@ -3567,14 +3567,14 @@ var N = class Logger {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
3569
3569
|
logToBrowser(e) {
|
|
3570
|
-
if (!
|
|
3571
|
-
let { level: t, description: n, context: r, data: i, error: a } = e, o =
|
|
3570
|
+
if (!O || !this.shouldLog(e.level)) return;
|
|
3571
|
+
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;`;
|
|
3572
3572
|
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));
|
|
3573
3573
|
}
|
|
3574
3574
|
logToNode(e) {
|
|
3575
|
-
if (!
|
|
3575
|
+
if (!k || !this.shouldLog(e.level)) return;
|
|
3576
3576
|
let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
|
|
3577
|
-
if (
|
|
3577
|
+
if (A) {
|
|
3578
3578
|
let e = {
|
|
3579
3579
|
timestamp: this.formatISOTimestamp(),
|
|
3580
3580
|
level: t.toUpperCase(),
|
|
@@ -3586,12 +3586,12 @@ var N = class Logger {
|
|
|
3586
3586
|
let r = JSON.stringify(e);
|
|
3587
3587
|
t === "trace" ? console.log(r) : console[t](r);
|
|
3588
3588
|
} else {
|
|
3589
|
-
let e =
|
|
3589
|
+
let e = j[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `[2m${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
|
|
3590
3590
|
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));
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
3593
|
log(e) {
|
|
3594
|
-
|
|
3594
|
+
O ? this.logToBrowser(e) : k && this.logToNode(e);
|
|
3595
3595
|
}
|
|
3596
3596
|
error(e, t) {
|
|
3597
3597
|
this.log({
|
|
@@ -3634,7 +3634,7 @@ var N = class Logger {
|
|
|
3634
3634
|
});
|
|
3635
3635
|
}
|
|
3636
3636
|
isEnabled() {
|
|
3637
|
-
return !
|
|
3637
|
+
return !O || this.enabledInBrowser;
|
|
3638
3638
|
}
|
|
3639
3639
|
setLevel(e) {
|
|
3640
3640
|
this.settings.minLevel = e;
|
|
@@ -3652,11 +3652,11 @@ var N = class Logger {
|
|
|
3652
3652
|
};
|
|
3653
3653
|
}
|
|
3654
3654
|
};
|
|
3655
|
-
|
|
3655
|
+
M.hasShownHelp = !1;
|
|
3656
3656
|
function createLogger(e) {
|
|
3657
|
-
return new
|
|
3657
|
+
return new M({}, e);
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3659
|
+
var N = new M(), cr = N.error.bind(N), lr = N.warn.bind(N), ur = N.info.bind(N), dr = N.debug.bind(N), fr = N.trace.bind(N), SettingsObject = class {
|
|
3660
3660
|
constructor(e, t) {
|
|
3661
3661
|
this.objectName = e, this.settings = t, this.logger = createLogger(e);
|
|
3662
3662
|
}
|
|
@@ -3684,7 +3684,7 @@ function uuid() {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
//#endregion
|
|
3686
3686
|
//#region ../core/dist/utils/color.js
|
|
3687
|
-
var
|
|
3687
|
+
var pr = {
|
|
3688
3688
|
green: {
|
|
3689
3689
|
50: "oklch(98.2% 0.018 155.826)",
|
|
3690
3690
|
100: "oklch(96.2% 0.044 156.743)",
|
|
@@ -3817,7 +3817,7 @@ var fr = {
|
|
|
3817
3817
|
}
|
|
3818
3818
|
};
|
|
3819
3819
|
function getColorSchemeOklch(e) {
|
|
3820
|
-
return
|
|
3820
|
+
return pr[e] || pr.blue;
|
|
3821
3821
|
}
|
|
3822
3822
|
//#endregion
|
|
3823
3823
|
//#region ../core/dist/utils/cookies.js
|
|
@@ -3890,7 +3890,7 @@ var CookieUtil = class {
|
|
|
3890
3890
|
getDeviceId() {
|
|
3891
3891
|
return this.getCookie(this.deviceIdName);
|
|
3892
3892
|
}
|
|
3893
|
-
},
|
|
3893
|
+
}, mr = new CookieUtil(), P = {
|
|
3894
3894
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
3895
3895
|
AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
|
|
3896
3896
|
AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
|
|
@@ -3906,16 +3906,16 @@ var CookieUtil = class {
|
|
|
3906
3906
|
AUTH_UNKNOWN: "Something went wrong. Try again."
|
|
3907
3907
|
};
|
|
3908
3908
|
function mapAuthErrorCode(e) {
|
|
3909
|
-
return e ?
|
|
3909
|
+
return e ? P[e] ?? P.AUTH_UNKNOWN : P.AUTH_UNKNOWN;
|
|
3910
3910
|
}
|
|
3911
3911
|
function authErrorMessage(e) {
|
|
3912
|
-
return e.code ? mapAuthErrorCode(e.code) : e.error ||
|
|
3912
|
+
return e.code ? mapAuthErrorCode(e.code) : e.error || P.AUTH_UNKNOWN;
|
|
3913
3913
|
}
|
|
3914
3914
|
var AuthApiError = class extends Error {
|
|
3915
3915
|
constructor(e, t) {
|
|
3916
3916
|
super(e), this.name = "AuthApiError", this.code = t;
|
|
3917
3917
|
}
|
|
3918
|
-
},
|
|
3918
|
+
}, hr = object({
|
|
3919
3919
|
platform: _enum([
|
|
3920
3920
|
"linkedin",
|
|
3921
3921
|
"x",
|
|
@@ -3932,38 +3932,38 @@ var AuthApiError = class extends Error {
|
|
|
3932
3932
|
]),
|
|
3933
3933
|
handle: string(),
|
|
3934
3934
|
url: string().optional()
|
|
3935
|
-
}),
|
|
3935
|
+
}), gr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(hr)), _r = [
|
|
3936
3936
|
"image",
|
|
3937
3937
|
"audio",
|
|
3938
3938
|
"video",
|
|
3939
3939
|
"document"
|
|
3940
|
-
],
|
|
3940
|
+
], F = _enum(_r), vr = [
|
|
3941
3941
|
"avatar",
|
|
3942
3942
|
"cover",
|
|
3943
3943
|
"general"
|
|
3944
|
-
],
|
|
3944
|
+
], I = _enum(vr), yr = _enum([
|
|
3945
3945
|
"processing",
|
|
3946
3946
|
"active",
|
|
3947
3947
|
"failed",
|
|
3948
3948
|
"deleted"
|
|
3949
|
-
]),
|
|
3949
|
+
]), br = _enum([
|
|
3950
3950
|
"low",
|
|
3951
3951
|
"standard",
|
|
3952
3952
|
"high"
|
|
3953
|
-
]),
|
|
3953
|
+
]), xr = _enum([
|
|
3954
3954
|
"jpg",
|
|
3955
3955
|
"jpeg",
|
|
3956
3956
|
"png",
|
|
3957
3957
|
"gif",
|
|
3958
3958
|
"webp",
|
|
3959
3959
|
"svg"
|
|
3960
|
-
]),
|
|
3960
|
+
]), Sr = _enum([
|
|
3961
3961
|
"mp4",
|
|
3962
3962
|
"webm",
|
|
3963
3963
|
"ogg",
|
|
3964
3964
|
"mov",
|
|
3965
3965
|
"avi"
|
|
3966
|
-
]),
|
|
3966
|
+
]), Cr = _enum([
|
|
3967
3967
|
"mp3",
|
|
3968
3968
|
"wav",
|
|
3969
3969
|
"ogg",
|
|
@@ -3973,7 +3973,7 @@ var AuthApiError = class extends Error {
|
|
|
3973
3973
|
"webm",
|
|
3974
3974
|
"m4a",
|
|
3975
3975
|
"mp4"
|
|
3976
|
-
]),
|
|
3976
|
+
]), L = object({
|
|
3977
3977
|
mediaId: string(),
|
|
3978
3978
|
userId: string(),
|
|
3979
3979
|
orgId: string(),
|
|
@@ -3983,56 +3983,56 @@ var AuthApiError = class extends Error {
|
|
|
3983
3983
|
size: number(),
|
|
3984
3984
|
src: string(),
|
|
3985
3985
|
alt: string().optional(),
|
|
3986
|
-
context:
|
|
3987
|
-
status:
|
|
3988
|
-
quality:
|
|
3986
|
+
context: I.default("general"),
|
|
3987
|
+
status: yr.default("processing"),
|
|
3988
|
+
quality: br.default("standard"),
|
|
3989
3989
|
createdAt: string().optional(),
|
|
3990
3990
|
updatedAt: string().optional()
|
|
3991
3991
|
}).extend({
|
|
3992
|
-
type:
|
|
3993
|
-
mediaType:
|
|
3992
|
+
type: F.optional(),
|
|
3993
|
+
mediaType: F.optional(),
|
|
3994
3994
|
className: string().optional(),
|
|
3995
3995
|
width: number().optional(),
|
|
3996
3996
|
height: number().optional(),
|
|
3997
3997
|
duration: number().optional(),
|
|
3998
3998
|
blurhash: string().optional()
|
|
3999
|
-
}).partial(),
|
|
3999
|
+
}).partial(), wr = object({
|
|
4000
4000
|
duration: number().optional(),
|
|
4001
4001
|
thumbnail: string().optional(),
|
|
4002
4002
|
autoplay: boolean().optional(),
|
|
4003
4003
|
loop: boolean().optional(),
|
|
4004
4004
|
muted: boolean().optional(),
|
|
4005
4005
|
controls: boolean().optional()
|
|
4006
|
-
}),
|
|
4006
|
+
}), Tr = object({
|
|
4007
4007
|
duration: number().optional(),
|
|
4008
4008
|
autoplay: boolean().optional(),
|
|
4009
4009
|
loop: boolean().optional(),
|
|
4010
4010
|
muted: boolean().optional(),
|
|
4011
4011
|
controls: boolean().optional()
|
|
4012
|
-
}),
|
|
4012
|
+
}), Er = L.extend({
|
|
4013
4013
|
mediaType: literal("image"),
|
|
4014
|
-
imageFormat:
|
|
4015
|
-
}),
|
|
4014
|
+
imageFormat: xr.optional()
|
|
4015
|
+
}), Dr = L.extend({
|
|
4016
4016
|
mediaType: literal("video"),
|
|
4017
|
-
videoFormat:
|
|
4018
|
-
video:
|
|
4019
|
-
}),
|
|
4017
|
+
videoFormat: Sr.optional(),
|
|
4018
|
+
video: wr.optional()
|
|
4019
|
+
}), Or = L.extend({
|
|
4020
4020
|
mediaType: literal("audio"),
|
|
4021
|
-
audioFormat:
|
|
4022
|
-
audio:
|
|
4023
|
-
}),
|
|
4024
|
-
Tr,
|
|
4021
|
+
audioFormat: Cr.optional(),
|
|
4022
|
+
audio: Tr.optional()
|
|
4023
|
+
}), kr = L.extend({ mediaType: literal("document") }), Ar = discriminatedUnion("mediaType", [
|
|
4025
4024
|
Er,
|
|
4026
4025
|
Dr,
|
|
4027
|
-
Or
|
|
4028
|
-
|
|
4026
|
+
Or,
|
|
4027
|
+
kr
|
|
4028
|
+
]), jr = _enum([
|
|
4029
4029
|
"xxs",
|
|
4030
4030
|
"xs",
|
|
4031
4031
|
"sm",
|
|
4032
4032
|
"md",
|
|
4033
4033
|
"lg",
|
|
4034
4034
|
"xl"
|
|
4035
|
-
]),
|
|
4035
|
+
]), Mr = _enum([
|
|
4036
4036
|
"primary",
|
|
4037
4037
|
"default",
|
|
4038
4038
|
"overlay",
|
|
@@ -4040,20 +4040,20 @@ var AuthApiError = class extends Error {
|
|
|
4040
4040
|
"green",
|
|
4041
4041
|
"indigo",
|
|
4042
4042
|
"orange"
|
|
4043
|
-
]),
|
|
4043
|
+
]), Nr = _enum([
|
|
4044
4044
|
"ghost",
|
|
4045
4045
|
"link",
|
|
4046
4046
|
"outline",
|
|
4047
4047
|
"solid"
|
|
4048
|
-
]),
|
|
4048
|
+
]), R = object({
|
|
4049
4049
|
key: string().optional(),
|
|
4050
4050
|
label: string().optional(),
|
|
4051
4051
|
href: string().optional(),
|
|
4052
|
-
size:
|
|
4053
|
-
theme:
|
|
4054
|
-
design:
|
|
4055
|
-
icon: union([string(),
|
|
4056
|
-
iconAfter: union([string(),
|
|
4052
|
+
size: jr.optional(),
|
|
4053
|
+
theme: Mr.optional(),
|
|
4054
|
+
design: Nr.optional(),
|
|
4055
|
+
icon: union([string(), L]).optional(),
|
|
4056
|
+
iconAfter: union([string(), L]).optional(),
|
|
4057
4057
|
rounding: _enum([
|
|
4058
4058
|
"full",
|
|
4059
4059
|
"md",
|
|
@@ -4070,12 +4070,12 @@ var AuthApiError = class extends Error {
|
|
|
4070
4070
|
"submit",
|
|
4071
4071
|
"reset"
|
|
4072
4072
|
]).optional()
|
|
4073
|
-
}),
|
|
4074
|
-
buttons: array(
|
|
4075
|
-
size:
|
|
4076
|
-
theme:
|
|
4077
|
-
design:
|
|
4078
|
-
}),
|
|
4073
|
+
}), Pr = object({
|
|
4074
|
+
buttons: array(R).optional(),
|
|
4075
|
+
size: jr.optional(),
|
|
4076
|
+
theme: Mr.optional(),
|
|
4077
|
+
design: Nr.optional()
|
|
4078
|
+
}), Fr = object({
|
|
4079
4079
|
key: string().optional(),
|
|
4080
4080
|
id: string().optional(),
|
|
4081
4081
|
label: string().optional(),
|
|
@@ -4086,11 +4086,11 @@ var AuthApiError = class extends Error {
|
|
|
4086
4086
|
info: string().optional(),
|
|
4087
4087
|
count: number().optional(),
|
|
4088
4088
|
className: string().optional(),
|
|
4089
|
-
media:
|
|
4090
|
-
subMedia:
|
|
4091
|
-
cover:
|
|
4092
|
-
icon:
|
|
4093
|
-
iconAfter:
|
|
4089
|
+
media: L.optional(),
|
|
4090
|
+
subMedia: L.optional(),
|
|
4091
|
+
cover: L.optional(),
|
|
4092
|
+
icon: L.optional(),
|
|
4093
|
+
iconAfter: L.optional(),
|
|
4094
4094
|
subIcon: string().optional(),
|
|
4095
4095
|
href: string().optional(),
|
|
4096
4096
|
target: _enum(["_self", "_blank"]).optional(),
|
|
@@ -4102,14 +4102,14 @@ var AuthApiError = class extends Error {
|
|
|
4102
4102
|
priority: number().optional(),
|
|
4103
4103
|
testId: string().optional(),
|
|
4104
4104
|
items: array(any()).optional(),
|
|
4105
|
-
badges: array(
|
|
4106
|
-
meta: array(
|
|
4105
|
+
badges: array(R).optional(),
|
|
4106
|
+
meta: array(R).optional(),
|
|
4107
4107
|
menuItems: array(any()).optional()
|
|
4108
|
-
}),
|
|
4108
|
+
}), Ir = object({
|
|
4109
4109
|
title: string().optional(),
|
|
4110
4110
|
description: string().optional(),
|
|
4111
|
-
items: array(
|
|
4112
|
-
}),
|
|
4111
|
+
items: array(Fr).optional()
|
|
4112
|
+
}), Lr = {
|
|
4113
4113
|
colors: {
|
|
4114
4114
|
primary: "#3b82f6",
|
|
4115
4115
|
secondary: "#93c5fd",
|
|
@@ -4128,7 +4128,7 @@ var AuthApiError = class extends Error {
|
|
|
4128
4128
|
compact: 4,
|
|
4129
4129
|
comfortable: 6
|
|
4130
4130
|
}
|
|
4131
|
-
},
|
|
4131
|
+
}, Rr = [
|
|
4132
4132
|
["#6366f1", "#8b5cf6"],
|
|
4133
4133
|
["#3b82f6", "#06b6d4"],
|
|
4134
4134
|
["#10b981", "#34d399"],
|
|
@@ -4144,7 +4144,7 @@ function hashName(e) {
|
|
|
4144
4144
|
return Math.abs(t);
|
|
4145
4145
|
}
|
|
4146
4146
|
function getGradientPair(e) {
|
|
4147
|
-
return
|
|
4147
|
+
return Rr[(e ? hashName(e) : 0) % Rr.length];
|
|
4148
4148
|
}
|
|
4149
4149
|
function getDefaultAvatarUrl(e) {
|
|
4150
4150
|
let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
|
|
@@ -4174,7 +4174,7 @@ function getWorkspaceMarkUrl(e) {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
//#endregion
|
|
4176
4176
|
//#region ../core/dist/chatIssue.js
|
|
4177
|
-
var
|
|
4177
|
+
var zr = _enum(["account", "error"]), Br = [
|
|
4178
4178
|
"billing_no_plan",
|
|
4179
4179
|
"billing_seat_limit",
|
|
4180
4180
|
"billing_past_due",
|
|
@@ -4190,14 +4190,14 @@ var Lr = _enum(["account", "error"]), Rr = [
|
|
|
4190
4190
|
"empty_stream",
|
|
4191
4191
|
"tool_protocol",
|
|
4192
4192
|
"rate_limit"
|
|
4193
|
-
],
|
|
4194
|
-
bucket:
|
|
4195
|
-
code: _enum(
|
|
4193
|
+
], z = object({
|
|
4194
|
+
bucket: zr,
|
|
4195
|
+
code: _enum(Br),
|
|
4196
4196
|
title: string(),
|
|
4197
4197
|
help: string().optional(),
|
|
4198
4198
|
actionLabel: string(),
|
|
4199
4199
|
actionUrl: string()
|
|
4200
|
-
}),
|
|
4200
|
+
}), B = {
|
|
4201
4201
|
billing_no_plan: {
|
|
4202
4202
|
bucket: "account",
|
|
4203
4203
|
title: "Payment method needed",
|
|
@@ -4305,10 +4305,10 @@ var Lr = _enum(["account", "error"]), Rr = [
|
|
|
4305
4305
|
}
|
|
4306
4306
|
};
|
|
4307
4307
|
function chatIssueCatalogLines() {
|
|
4308
|
-
return
|
|
4308
|
+
return Br.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
|
|
4309
4309
|
}
|
|
4310
4310
|
function buildChatIssue(e) {
|
|
4311
|
-
let t =
|
|
4311
|
+
let t = B[e.code];
|
|
4312
4312
|
return {
|
|
4313
4313
|
bucket: t.bucket,
|
|
4314
4314
|
code: e.code,
|
|
@@ -4329,12 +4329,12 @@ function chatIssueToErrorData(e) {
|
|
|
4329
4329
|
};
|
|
4330
4330
|
}
|
|
4331
4331
|
function renderIssueAsMarkdown(e) {
|
|
4332
|
-
let t =
|
|
4332
|
+
let t = B[e.code];
|
|
4333
4333
|
return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
|
|
4334
4334
|
}
|
|
4335
4335
|
//#endregion
|
|
4336
4336
|
//#region ../core/dist/wire/agent-state.js
|
|
4337
|
-
var
|
|
4337
|
+
var V = _enum(["active", "stopped"]), H = _enum([
|
|
4338
4338
|
"unknown",
|
|
4339
4339
|
"stopped",
|
|
4340
4340
|
"starting",
|
|
@@ -4343,28 +4343,28 @@ var U = _enum(["active", "stopped"]), W = _enum([
|
|
|
4343
4343
|
"unreachable",
|
|
4344
4344
|
"stopping",
|
|
4345
4345
|
"error"
|
|
4346
|
-
]),
|
|
4346
|
+
]), Vr = _enum([
|
|
4347
4347
|
"wake",
|
|
4348
4348
|
"sleep",
|
|
4349
4349
|
"restart",
|
|
4350
4350
|
"rebuild",
|
|
4351
4351
|
"config_apply"
|
|
4352
|
-
]),
|
|
4352
|
+
]), Hr = _enum([
|
|
4353
4353
|
"running",
|
|
4354
4354
|
"coalesced",
|
|
4355
4355
|
"failed"
|
|
4356
|
-
]),
|
|
4357
|
-
kind:
|
|
4358
|
-
status:
|
|
4356
|
+
]), Ur = object({
|
|
4357
|
+
kind: Vr,
|
|
4358
|
+
status: Hr,
|
|
4359
4359
|
startedAt: string().datetime(),
|
|
4360
4360
|
detail: string().optional()
|
|
4361
|
-
}).strict(),
|
|
4362
|
-
lifecycle:
|
|
4361
|
+
}).strict(), Wr = object({
|
|
4362
|
+
lifecycle: H,
|
|
4363
4363
|
changedAt: string().datetime().optional(),
|
|
4364
4364
|
detail: string().optional(),
|
|
4365
|
-
blocker:
|
|
4366
|
-
operation:
|
|
4367
|
-
}).strict(),
|
|
4365
|
+
blocker: z.optional(),
|
|
4366
|
+
operation: Ur.optional()
|
|
4367
|
+
}).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
|
|
4368
4368
|
running: "green",
|
|
4369
4369
|
starting: "amber",
|
|
4370
4370
|
stopping: "amber",
|
|
@@ -4373,7 +4373,7 @@ var U = _enum(["active", "stopped"]), W = _enum([
|
|
|
4373
4373
|
error: "red",
|
|
4374
4374
|
stopped: "grey",
|
|
4375
4375
|
unknown: "grey"
|
|
4376
|
-
},
|
|
4376
|
+
}, qr = {
|
|
4377
4377
|
running: "Online",
|
|
4378
4378
|
starting: "Waking up",
|
|
4379
4379
|
stopping: "Stopping",
|
|
@@ -4382,7 +4382,7 @@ var U = _enum(["active", "stopped"]), W = _enum([
|
|
|
4382
4382
|
error: "Error",
|
|
4383
4383
|
stopped: "Asleep",
|
|
4384
4384
|
unknown: "Checking"
|
|
4385
|
-
},
|
|
4385
|
+
}, Jr = {
|
|
4386
4386
|
wake: "Waking up",
|
|
4387
4387
|
sleep: "Stopping",
|
|
4388
4388
|
restart: "Restarting",
|
|
@@ -4390,7 +4390,7 @@ var U = _enum(["active", "stopped"]), W = _enum([
|
|
|
4390
4390
|
config_apply: "Applying config"
|
|
4391
4391
|
};
|
|
4392
4392
|
function toAgentState(e, t) {
|
|
4393
|
-
let n = e.operation, r =
|
|
4393
|
+
let n = e.operation, r = qr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Jr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
|
|
4394
4394
|
return {
|
|
4395
4395
|
...e,
|
|
4396
4396
|
color: s,
|
|
@@ -4398,7 +4398,7 @@ function toAgentState(e, t) {
|
|
|
4398
4398
|
tooltip: c
|
|
4399
4399
|
};
|
|
4400
4400
|
}
|
|
4401
|
-
var
|
|
4401
|
+
var Yr = _enum([
|
|
4402
4402
|
"wake",
|
|
4403
4403
|
"sleep",
|
|
4404
4404
|
"restart",
|
|
@@ -4422,11 +4422,80 @@ function isAgentReady(e) {
|
|
|
4422
4422
|
}
|
|
4423
4423
|
//#endregion
|
|
4424
4424
|
//#region ../core/dist/wire/voice-session.js
|
|
4425
|
-
var
|
|
4425
|
+
var U = _enum(["woman", "man"]), W = [
|
|
4426
|
+
{
|
|
4427
|
+
key: "warm",
|
|
4428
|
+
gender: "woman",
|
|
4429
|
+
accent: "American",
|
|
4430
|
+
character: "Friendly, comforting and soft"
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
key: "natural",
|
|
4434
|
+
gender: "woman",
|
|
4435
|
+
accent: "American",
|
|
4436
|
+
character: "Natural and sweet"
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
key: "bright",
|
|
4440
|
+
gender: "woman",
|
|
4441
|
+
accent: "American",
|
|
4442
|
+
character: "Authentic, energetic and happy"
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
key: "gentle",
|
|
4446
|
+
gender: "woman",
|
|
4447
|
+
accent: "American",
|
|
4448
|
+
character: "Calm and friendly"
|
|
4449
|
+
},
|
|
4450
|
+
{
|
|
4451
|
+
key: "grounded",
|
|
4452
|
+
gender: "man",
|
|
4453
|
+
accent: "American",
|
|
4454
|
+
character: "Calm, grounded and reflective"
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
key: "relaxed",
|
|
4458
|
+
gender: "man",
|
|
4459
|
+
accent: "American",
|
|
4460
|
+
character: "Relaxed, deep and approachable"
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
key: "thoughtful",
|
|
4464
|
+
gender: "man",
|
|
4465
|
+
accent: "British",
|
|
4466
|
+
character: "Reflective and thoughtful"
|
|
4467
|
+
},
|
|
4468
|
+
{
|
|
4469
|
+
key: "articulate",
|
|
4470
|
+
gender: "man",
|
|
4471
|
+
accent: "German",
|
|
4472
|
+
character: "Deep, articulate and professional"
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
key: "easygoing",
|
|
4476
|
+
gender: "man",
|
|
4477
|
+
accent: "American",
|
|
4478
|
+
character: "Easygoing and plain-spoken"
|
|
4479
|
+
}
|
|
4480
|
+
], G = _enum(W.map((e) => e.key)), Xr = {
|
|
4481
|
+
gender: "man",
|
|
4482
|
+
voiceKeyByGender: {
|
|
4483
|
+
woman: "warm",
|
|
4484
|
+
man: "grounded"
|
|
4485
|
+
}
|
|
4486
|
+
};
|
|
4487
|
+
function resolveVoice(e) {
|
|
4488
|
+
let t = W.find((t) => t.key === e.voiceKey);
|
|
4489
|
+
if (t?.gender === e.gender) return t;
|
|
4490
|
+
let n = Xr.voiceKeyByGender[e.gender];
|
|
4491
|
+
return W.find((e) => e.key === n);
|
|
4492
|
+
}
|
|
4493
|
+
var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
4426
4494
|
conversationId: string().min(1),
|
|
4427
4495
|
agentId: string().min(1),
|
|
4428
4496
|
personaName: string().min(1),
|
|
4429
|
-
|
|
4497
|
+
gender: U,
|
|
4498
|
+
voiceKey: G.nullable(),
|
|
4430
4499
|
sessionScope: _enum([
|
|
4431
4500
|
"private",
|
|
4432
4501
|
"org",
|
|
@@ -4435,15 +4504,16 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4435
4504
|
threadSummary: string(),
|
|
4436
4505
|
maxDurationSeconds: number().int().positive().max(3600).optional(),
|
|
4437
4506
|
expiresAt: datetime()
|
|
4438
|
-
}),
|
|
4507
|
+
}), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
|
|
4439
4508
|
provider: literal("elevenlabs"),
|
|
4440
|
-
conversationToken: string().min(1)
|
|
4509
|
+
conversationToken: string().min(1),
|
|
4510
|
+
voiceId: string().min(1)
|
|
4441
4511
|
}).strict(), object({
|
|
4442
4512
|
provider: literal("livekit"),
|
|
4443
4513
|
url: string().min(1),
|
|
4444
4514
|
token: string().min(1),
|
|
4445
4515
|
room: string().min(1)
|
|
4446
|
-
}).strict()]),
|
|
4516
|
+
}).strict()]), ti = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4447
4517
|
platform: _enum([
|
|
4448
4518
|
"linkedin",
|
|
4449
4519
|
"x",
|
|
@@ -4458,11 +4528,11 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4458
4528
|
"website"
|
|
4459
4529
|
]),
|
|
4460
4530
|
handle: string()
|
|
4461
|
-
}))),
|
|
4531
|
+
}))), K = _enum([
|
|
4462
4532
|
"essential",
|
|
4463
4533
|
"professional",
|
|
4464
4534
|
"business"
|
|
4465
|
-
]),
|
|
4535
|
+
]), ni = object({
|
|
4466
4536
|
agentId: string().optional(),
|
|
4467
4537
|
handle: string().optional(),
|
|
4468
4538
|
ownerId: string().optional(),
|
|
@@ -4474,24 +4544,25 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4474
4544
|
entityType: string().optional(),
|
|
4475
4545
|
avatarId: string().nullable().optional(),
|
|
4476
4546
|
coverId: string().nullable().optional(),
|
|
4477
|
-
avatar:
|
|
4478
|
-
cover:
|
|
4547
|
+
avatar: L.optional(),
|
|
4548
|
+
cover: L.optional(),
|
|
4479
4549
|
email: string().nullable().optional(),
|
|
4480
4550
|
website: string().url().nullable().optional(),
|
|
4481
|
-
accounts:
|
|
4551
|
+
accounts: ti.nullable().optional(),
|
|
4482
4552
|
model: string().nullable().optional(),
|
|
4483
|
-
|
|
4484
|
-
|
|
4553
|
+
gender: U.optional(),
|
|
4554
|
+
voiceKey: G.nullable().optional(),
|
|
4555
|
+
billingTier: K.optional(),
|
|
4485
4556
|
lastActiveAt: string().nullable().optional(),
|
|
4486
4557
|
lastMessageAt: string().nullable().optional(),
|
|
4487
4558
|
runtime: string().default("hermes").optional(),
|
|
4488
4559
|
timezone: string().optional(),
|
|
4489
|
-
desiredStatus:
|
|
4560
|
+
desiredStatus: V.nullable().optional(),
|
|
4490
4561
|
automationPrimaryChannel: string().optional(),
|
|
4491
4562
|
heartbeatEnabled: boolean().optional(),
|
|
4492
|
-
heartbeatBriefingTime:
|
|
4493
|
-
heartbeatCheckinTime:
|
|
4494
|
-
heartbeatCloseoutTime:
|
|
4563
|
+
heartbeatBriefingTime: E.nullable().optional(),
|
|
4564
|
+
heartbeatCheckinTime: E.nullable().optional(),
|
|
4565
|
+
heartbeatCloseoutTime: E.nullable().optional(),
|
|
4495
4566
|
onboardedAt: string().nullable().optional(),
|
|
4496
4567
|
org: object({
|
|
4497
4568
|
orgId: string(),
|
|
@@ -4504,7 +4575,7 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4504
4575
|
owner: object({
|
|
4505
4576
|
userId: string(),
|
|
4506
4577
|
fullName: string().optional(),
|
|
4507
|
-
avatar:
|
|
4578
|
+
avatar: L.optional()
|
|
4508
4579
|
}).optional(),
|
|
4509
4580
|
visibility: _enum([
|
|
4510
4581
|
"private",
|
|
@@ -4514,14 +4585,14 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4514
4585
|
status: string().optional(),
|
|
4515
4586
|
createdAt: string().optional(),
|
|
4516
4587
|
updatedAt: string().optional()
|
|
4517
|
-
}),
|
|
4588
|
+
}), ri = ni.extend({
|
|
4518
4589
|
isPrimary: boolean().optional(),
|
|
4519
|
-
lifecycle:
|
|
4590
|
+
lifecycle: H.optional(),
|
|
4520
4591
|
changedAt: string().datetime().optional(),
|
|
4521
4592
|
detail: string().optional(),
|
|
4522
|
-
blocker:
|
|
4523
|
-
operation:
|
|
4524
|
-
}),
|
|
4593
|
+
blocker: z.optional(),
|
|
4594
|
+
operation: Ur.optional()
|
|
4595
|
+
}), ii = Object.keys(ri.shape), ai = class Agent extends SettingsObject {
|
|
4525
4596
|
constructor(e) {
|
|
4526
4597
|
let t = "config" in e ? {
|
|
4527
4598
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4539,7 +4610,7 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4539
4610
|
}), 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);
|
|
4540
4611
|
}
|
|
4541
4612
|
merge(e) {
|
|
4542
|
-
for (let t of
|
|
4613
|
+
for (let t of ii) {
|
|
4543
4614
|
if (!(t in e)) continue;
|
|
4544
4615
|
let n = this[t];
|
|
4545
4616
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4547,7 +4618,7 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4547
4618
|
}
|
|
4548
4619
|
toConfig() {
|
|
4549
4620
|
let e = {};
|
|
4550
|
-
for (let t of
|
|
4621
|
+
for (let t of ii) {
|
|
4551
4622
|
let n = this[t];
|
|
4552
4623
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4553
4624
|
}
|
|
@@ -4558,24 +4629,24 @@ var G = _enum(["woman", "man"]), Jr = object({ conversationId: string().min(1) }
|
|
|
4558
4629
|
}
|
|
4559
4630
|
};
|
|
4560
4631
|
function createAgent(e) {
|
|
4561
|
-
return new
|
|
4632
|
+
return new ai(e);
|
|
4562
4633
|
}
|
|
4563
4634
|
function createAgents(e) {
|
|
4564
|
-
return e.configs.map((t) => new
|
|
4635
|
+
return e.configs.map((t) => new ai({
|
|
4565
4636
|
config: t,
|
|
4566
4637
|
context: e.context
|
|
4567
4638
|
}));
|
|
4568
4639
|
}
|
|
4569
4640
|
//#endregion
|
|
4570
4641
|
//#region ../core/dist/types/user.js
|
|
4571
|
-
var
|
|
4642
|
+
var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), si = object({
|
|
4572
4643
|
userId: string(),
|
|
4573
4644
|
email: string().optional(),
|
|
4574
4645
|
handle: string().optional(),
|
|
4575
4646
|
fullName: string().optional(),
|
|
4576
|
-
linkedinUsername:
|
|
4647
|
+
linkedinUsername: q.optional(),
|
|
4577
4648
|
avatarId: string().optional(),
|
|
4578
|
-
avatar:
|
|
4649
|
+
avatar: L.optional(),
|
|
4579
4650
|
isEmailVerified: boolean().optional(),
|
|
4580
4651
|
primaryAgentId: string().optional(),
|
|
4581
4652
|
primaryOrgId: string().optional(),
|
|
@@ -4590,9 +4661,9 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4590
4661
|
createdAt: string().optional(),
|
|
4591
4662
|
updatedAt: string().optional(),
|
|
4592
4663
|
onboarded: boolean().optional()
|
|
4593
|
-
}),
|
|
4664
|
+
}), ci = object({
|
|
4594
4665
|
name: string().min(1).max(100).optional(),
|
|
4595
|
-
linkedinUsername:
|
|
4666
|
+
linkedinUsername: q.nullable().optional(),
|
|
4596
4667
|
avatar: object({
|
|
4597
4668
|
src: string(),
|
|
4598
4669
|
mediaId: string()
|
|
@@ -4601,31 +4672,31 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4601
4672
|
primaryOrgId: string().optional(),
|
|
4602
4673
|
lastActiveOrgId: string().optional(),
|
|
4603
4674
|
onboarding: any().optional()
|
|
4604
|
-
}).partial(),
|
|
4675
|
+
}).partial(), li = object({ email: string() }), ui = object({
|
|
4605
4676
|
email: string(),
|
|
4606
4677
|
password: string().min(8, "Password must be at least 8 characters")
|
|
4607
|
-
}),
|
|
4678
|
+
}), di = object({
|
|
4608
4679
|
email: string(),
|
|
4609
4680
|
password: string().min(8, "Password must be at least 8 characters"),
|
|
4610
4681
|
fullName: string().min(1, "Name is required")
|
|
4611
|
-
}),
|
|
4682
|
+
}), fi = object({
|
|
4612
4683
|
email: string(),
|
|
4613
4684
|
code: string().min(6, "Verification code is required"),
|
|
4614
4685
|
timezone: string().max(64).optional()
|
|
4615
|
-
}),
|
|
4686
|
+
}), pi = object({
|
|
4616
4687
|
email: string(),
|
|
4617
4688
|
code: string().min(6, "Verification code is required"),
|
|
4618
4689
|
newPassword: string().min(8, "New password must be at least 8 characters")
|
|
4619
|
-
}),
|
|
4690
|
+
}), mi = object({ newEmail: string() }), hi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), gi = object({
|
|
4620
4691
|
credential: string().optional(),
|
|
4621
4692
|
code: string().optional(),
|
|
4622
4693
|
timezone: string().max(64).optional(),
|
|
4623
4694
|
source: _enum(["web", "ios"]).optional()
|
|
4624
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4695
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), _i = object({
|
|
4625
4696
|
identityToken: string().min(1),
|
|
4626
4697
|
fullName: string().optional(),
|
|
4627
4698
|
timezone: string().max(64).optional()
|
|
4628
|
-
}),
|
|
4699
|
+
}), J = object({
|
|
4629
4700
|
orgId: string().optional(),
|
|
4630
4701
|
handle: string().optional(),
|
|
4631
4702
|
name: string().optional(),
|
|
@@ -4633,10 +4704,10 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4633
4704
|
website: string().url().nullable().optional(),
|
|
4634
4705
|
summary: string().nullable().optional(),
|
|
4635
4706
|
avatarId: string().nullable().optional(),
|
|
4636
|
-
avatar:
|
|
4707
|
+
avatar: L.optional(),
|
|
4637
4708
|
coverId: string().nullable().optional(),
|
|
4638
|
-
cover:
|
|
4639
|
-
accounts:
|
|
4709
|
+
cover: L.optional(),
|
|
4710
|
+
accounts: gr.nullable().optional(),
|
|
4640
4711
|
ownerId: string().optional(),
|
|
4641
4712
|
isPersonal: boolean().optional(),
|
|
4642
4713
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
@@ -4649,12 +4720,12 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4649
4720
|
billingLastSyncedAt: string().nullable().optional(),
|
|
4650
4721
|
syncedPeriodStart: string().nullable().optional(),
|
|
4651
4722
|
syncedPeriodEnd: string().nullable().optional(),
|
|
4652
|
-
trialEligibility:
|
|
4723
|
+
trialEligibility: oi.optional(),
|
|
4653
4724
|
onboarding: any().optional(),
|
|
4654
4725
|
status: string().optional(),
|
|
4655
4726
|
createdAt: string().optional(),
|
|
4656
4727
|
updatedAt: string().optional()
|
|
4657
|
-
}),
|
|
4728
|
+
}), vi = J.extend({
|
|
4658
4729
|
defaultAgent: object({
|
|
4659
4730
|
agentId: string(),
|
|
4660
4731
|
handle: string(),
|
|
@@ -4662,22 +4733,22 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4662
4733
|
orgId: string()
|
|
4663
4734
|
}),
|
|
4664
4735
|
onboardingCompleted: boolean().optional()
|
|
4665
|
-
}),
|
|
4736
|
+
}), yi = object({
|
|
4666
4737
|
completedAt: string().datetime().optional(),
|
|
4667
4738
|
setupBy: string().optional(),
|
|
4668
4739
|
billingSetup: boolean().optional(),
|
|
4669
4740
|
teamInvitesSetup: boolean().optional(),
|
|
4670
4741
|
brandingSetup: boolean().optional(),
|
|
4671
4742
|
domainsSetup: boolean().optional()
|
|
4672
|
-
}),
|
|
4743
|
+
}), bi = object({
|
|
4673
4744
|
membershipId: string(),
|
|
4674
4745
|
orgId: string(),
|
|
4675
4746
|
name: string(),
|
|
4676
4747
|
handle: string(),
|
|
4677
4748
|
avatarId: string().optional(),
|
|
4678
|
-
avatar:
|
|
4749
|
+
avatar: L.optional(),
|
|
4679
4750
|
coverId: string().optional(),
|
|
4680
|
-
cover:
|
|
4751
|
+
cover: L.optional(),
|
|
4681
4752
|
role: _enum([
|
|
4682
4753
|
"owner",
|
|
4683
4754
|
"admin",
|
|
@@ -4687,11 +4758,11 @@ var ii = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
|
|
|
4687
4758
|
memberCount: number().optional(),
|
|
4688
4759
|
agentCount: number().optional(),
|
|
4689
4760
|
joinedAt: string().datetime(),
|
|
4690
|
-
trialEligibility:
|
|
4691
|
-
onboarding:
|
|
4692
|
-
}),
|
|
4693
|
-
orgs: array(
|
|
4694
|
-
agents: array(
|
|
4761
|
+
trialEligibility: oi.optional(),
|
|
4762
|
+
onboarding: yi.optional()
|
|
4763
|
+
}), xi = si.extend({
|
|
4764
|
+
orgs: array(bi).optional(),
|
|
4765
|
+
agents: array(ni).optional()
|
|
4695
4766
|
});
|
|
4696
4767
|
//#endregion
|
|
4697
4768
|
//#region ../core/dist/state.js
|
|
@@ -4714,7 +4785,7 @@ function derive(e) {
|
|
|
4714
4785
|
}
|
|
4715
4786
|
//#endregion
|
|
4716
4787
|
//#region ../core/dist/bot-ua.js
|
|
4717
|
-
var
|
|
4788
|
+
var Si = "pagelines-agent/1.0", Ci = [
|
|
4718
4789
|
"[SILENT]",
|
|
4719
4790
|
"SILENT",
|
|
4720
4791
|
"NO_REPLY",
|
|
@@ -4728,21 +4799,21 @@ var bi = "pagelines-agent/1.0", xi = [
|
|
|
4728
4799
|
"[NO_OP]",
|
|
4729
4800
|
"[NO OP]",
|
|
4730
4801
|
"HEARTBEAT_OK"
|
|
4731
|
-
],
|
|
4802
|
+
], wi = new Set(Ci);
|
|
4732
4803
|
function normalizeAssistantControl(e) {
|
|
4733
4804
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4734
4805
|
}
|
|
4735
4806
|
function isAssistantSilenceControl(e) {
|
|
4736
4807
|
let t = normalizeAssistantControl(e);
|
|
4737
|
-
return t.length <= 64 &&
|
|
4808
|
+
return t.length <= 64 && wi.has(t);
|
|
4738
4809
|
}
|
|
4739
4810
|
function isAssistantSilenceControlPrefix(e) {
|
|
4740
4811
|
let t = normalizeAssistantControl(e);
|
|
4741
|
-
return t.length <= 64 &&
|
|
4812
|
+
return t.length <= 64 && Ci.some((e) => e.startsWith(t));
|
|
4742
4813
|
}
|
|
4743
4814
|
//#endregion
|
|
4744
4815
|
//#region ../core/dist/timingBudgets.js
|
|
4745
|
-
var
|
|
4816
|
+
var Ti = {
|
|
4746
4817
|
wake: 300 * 1e3,
|
|
4747
4818
|
bootGrace: 420 * 1e3,
|
|
4748
4819
|
stop: 30 * 1e3
|
|
@@ -4760,16 +4831,16 @@ function formatBudgetDuration(e) {
|
|
|
4760
4831
|
}
|
|
4761
4832
|
//#endregion
|
|
4762
4833
|
//#region ../core/dist/paths.js
|
|
4763
|
-
var
|
|
4834
|
+
var Ei = "/api/bot-api", Di = "/api/bot-api/v1";
|
|
4764
4835
|
function botApiLlmUrl(e) {
|
|
4765
|
-
return `${e}${
|
|
4836
|
+
return `${e}${Di}`;
|
|
4766
4837
|
}
|
|
4767
4838
|
function botApiUrl(e) {
|
|
4768
|
-
return `${e}${
|
|
4839
|
+
return `${e}${Ei}`;
|
|
4769
4840
|
}
|
|
4770
4841
|
//#endregion
|
|
4771
4842
|
//#region ../core/dist/errorCopy.js
|
|
4772
|
-
var
|
|
4843
|
+
var Y = {
|
|
4773
4844
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
4774
4845
|
AUTH_INVALID: "Your session has expired. Sign in again to continue.",
|
|
4775
4846
|
AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
|
|
@@ -4800,7 +4871,7 @@ var J = {
|
|
|
4800
4871
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4801
4872
|
FORBIDDEN: "You don't have access to this.",
|
|
4802
4873
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4803
|
-
},
|
|
4874
|
+
}, Oi = {
|
|
4804
4875
|
notFound: "Not found. Try refreshing.",
|
|
4805
4876
|
busy: "Busy — try again in a moment.",
|
|
4806
4877
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4810,14 +4881,14 @@ var J = {
|
|
|
4810
4881
|
fatal: "Something's broken and won't resolve on retry. Contact support."
|
|
4811
4882
|
};
|
|
4812
4883
|
function errorCopy(e, t) {
|
|
4813
|
-
return e && e in
|
|
4884
|
+
return e && e in Y ? Y[e] : t;
|
|
4814
4885
|
}
|
|
4815
4886
|
function errorFromApiResponse(e, t) {
|
|
4816
|
-
return e.code && e.code in
|
|
4887
|
+
return e.code && e.code in Y ? Y[e.code] : e.providerErrorKind && Oi[e.providerErrorKind] ? Oi[e.providerErrorKind] : e.error || t;
|
|
4817
4888
|
}
|
|
4818
4889
|
//#endregion
|
|
4819
4890
|
//#region ../core/dist/retryPolicy.js
|
|
4820
|
-
var
|
|
4891
|
+
var ki = {
|
|
4821
4892
|
shouldRetry: !1,
|
|
4822
4893
|
maxAttempts: 1,
|
|
4823
4894
|
strategy: "none",
|
|
@@ -4835,7 +4906,7 @@ function retryPolicyFor(e) {
|
|
|
4835
4906
|
"FORBIDDEN",
|
|
4836
4907
|
"AGENT_NOT_FOUND"
|
|
4837
4908
|
]);
|
|
4838
|
-
if (e.code && t.has(e.code)) return
|
|
4909
|
+
if (e.code && t.has(e.code)) return ki;
|
|
4839
4910
|
switch (e.providerErrorKind) {
|
|
4840
4911
|
case "busy": return {
|
|
4841
4912
|
shouldRetry: !0,
|
|
@@ -4870,33 +4941,33 @@ function retryPolicyFor(e) {
|
|
|
4870
4941
|
};
|
|
4871
4942
|
case "notFound":
|
|
4872
4943
|
case "invalidConfig":
|
|
4873
|
-
case "fatal": return
|
|
4874
|
-
default: return
|
|
4944
|
+
case "fatal": return ki;
|
|
4945
|
+
default: return ki;
|
|
4875
4946
|
}
|
|
4876
4947
|
}
|
|
4877
4948
|
//#endregion
|
|
4878
4949
|
//#region ../core/dist/wire/timezone.js
|
|
4879
|
-
var
|
|
4950
|
+
var X = string().min(1).max(64).refine((e) => {
|
|
4880
4951
|
try {
|
|
4881
4952
|
return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
|
|
4882
4953
|
} catch {
|
|
4883
4954
|
return !1;
|
|
4884
4955
|
}
|
|
4885
|
-
}, "Invalid IANA timezone"),
|
|
4956
|
+
}, "Invalid IANA timezone"), Ai = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ji = object({
|
|
4886
4957
|
orgId: string(),
|
|
4887
4958
|
name: string().min(1).max(100),
|
|
4888
4959
|
emoji: string().max(8).nullable().optional(),
|
|
4889
4960
|
title: string().max(120).nullable().optional(),
|
|
4890
4961
|
summary: string().max(500).nullable().optional(),
|
|
4891
4962
|
handle: string().min(2).max(50).optional(),
|
|
4892
|
-
timezone:
|
|
4963
|
+
timezone: X.optional(),
|
|
4893
4964
|
runtime: _enum(["hermes"]).optional(),
|
|
4894
4965
|
visibility: _enum([
|
|
4895
4966
|
"private",
|
|
4896
4967
|
"org",
|
|
4897
4968
|
"public"
|
|
4898
4969
|
]).optional()
|
|
4899
|
-
}).strict(),
|
|
4970
|
+
}).strict(), Mi = object({
|
|
4900
4971
|
name: string().min(1).max(100).optional(),
|
|
4901
4972
|
handle: string().min(2).max(50).optional(),
|
|
4902
4973
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -4906,25 +4977,26 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
4906
4977
|
website: string().url().nullable().optional(),
|
|
4907
4978
|
avatarMediaId: string().nullable().optional(),
|
|
4908
4979
|
coverMediaId: string().nullable().optional(),
|
|
4909
|
-
timezone:
|
|
4980
|
+
timezone: X.optional(),
|
|
4910
4981
|
model: string().nullable().optional(),
|
|
4911
|
-
|
|
4912
|
-
|
|
4982
|
+
gender: U.optional(),
|
|
4983
|
+
voiceKey: G.nullable().optional(),
|
|
4984
|
+
billingTier: K.optional(),
|
|
4913
4985
|
visibility: _enum([
|
|
4914
4986
|
"private",
|
|
4915
4987
|
"org",
|
|
4916
4988
|
"public"
|
|
4917
4989
|
]).optional(),
|
|
4918
|
-
automationPrimaryChannel:
|
|
4990
|
+
automationPrimaryChannel: Ai.optional(),
|
|
4919
4991
|
heartbeatEnabled: boolean().optional(),
|
|
4920
|
-
heartbeatBriefingTime:
|
|
4921
|
-
heartbeatCheckinTime:
|
|
4922
|
-
heartbeatCloseoutTime:
|
|
4923
|
-
}).strict(),
|
|
4992
|
+
heartbeatBriefingTime: E.nullable().optional(),
|
|
4993
|
+
heartbeatCheckinTime: E.nullable().optional(),
|
|
4994
|
+
heartbeatCloseoutTime: E.nullable().optional()
|
|
4995
|
+
}).strict(), Ni = ri, Pi = object({
|
|
4924
4996
|
id: string(),
|
|
4925
4997
|
label: string(),
|
|
4926
4998
|
prompt: string()
|
|
4927
|
-
}),
|
|
4999
|
+
}), Fi = /* @__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_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("."), Ii = _enum(Fi), Li = _enum([
|
|
4928
5000
|
"notFound",
|
|
4929
5001
|
"busy",
|
|
4930
5002
|
"rateLimited",
|
|
@@ -4935,21 +5007,21 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
4935
5007
|
]), zApiOk = (e) => object({
|
|
4936
5008
|
ok: literal(!0),
|
|
4937
5009
|
data: e
|
|
4938
|
-
}),
|
|
5010
|
+
}), Ri = object({
|
|
4939
5011
|
ok: literal(!1),
|
|
4940
5012
|
error: string(),
|
|
4941
|
-
code:
|
|
4942
|
-
issue:
|
|
4943
|
-
providerErrorKind:
|
|
4944
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
5013
|
+
code: Ii.optional(),
|
|
5014
|
+
issue: z.optional(),
|
|
5015
|
+
providerErrorKind: Li.optional()
|
|
5016
|
+
}), zApiResponse = (e) => union([zApiOk(e), Ri]), zi = {
|
|
4945
5017
|
400: "Invalid body.",
|
|
4946
5018
|
401: "Not authenticated.",
|
|
4947
5019
|
500: "Server error."
|
|
4948
5020
|
};
|
|
4949
5021
|
function zErrorResponses(e) {
|
|
4950
5022
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
4951
|
-
description: t === !0 ?
|
|
4952
|
-
content: { "application/json": { schema:
|
|
5023
|
+
description: t === !0 ? zi[Number(e)] ?? "Request failed." : t,
|
|
5024
|
+
content: { "application/json": { schema: Ri } }
|
|
4953
5025
|
}]));
|
|
4954
5026
|
}
|
|
4955
5027
|
function apiError(e, t, n) {
|
|
@@ -4972,7 +5044,7 @@ function apiOk(e) {
|
|
|
4972
5044
|
}
|
|
4973
5045
|
//#endregion
|
|
4974
5046
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
4975
|
-
var
|
|
5047
|
+
var Bi = object({
|
|
4976
5048
|
kind: _enum([
|
|
4977
5049
|
"icon",
|
|
4978
5050
|
"favicon",
|
|
@@ -4981,7 +5053,7 @@ var Ri = object({
|
|
|
4981
5053
|
icon: string().min(1).optional(),
|
|
4982
5054
|
domain: string().min(1).optional(),
|
|
4983
5055
|
serviceKey: string().min(1).optional()
|
|
4984
|
-
}).strict(),
|
|
5056
|
+
}).strict(), Vi = object({
|
|
4985
5057
|
activityId: string().min(1),
|
|
4986
5058
|
turnId: string().min(1),
|
|
4987
5059
|
status: _enum([
|
|
@@ -5005,12 +5077,12 @@ var Ri = object({
|
|
|
5005
5077
|
endedAt: string().datetime().optional(),
|
|
5006
5078
|
durationMs: number().int().nonnegative().optional(),
|
|
5007
5079
|
note: string().trim().min(1).optional(),
|
|
5008
|
-
visual:
|
|
5009
|
-
}).strict(),
|
|
5080
|
+
visual: Bi.optional()
|
|
5081
|
+
}).strict(), Hi = Vi.extend({ status: _enum(["completed", "failed"]) }), Ui = F, Wi = object({
|
|
5010
5082
|
kind: literal("inline"),
|
|
5011
5083
|
offset: number().int().nonnegative()
|
|
5012
|
-
}),
|
|
5013
|
-
type:
|
|
5084
|
+
}), Gi = object({
|
|
5085
|
+
type: Ui,
|
|
5014
5086
|
src: url(),
|
|
5015
5087
|
filename: string().min(1),
|
|
5016
5088
|
mimeType: string().min(1),
|
|
@@ -5020,12 +5092,12 @@ var Ri = object({
|
|
|
5020
5092
|
height: number().int().positive().optional(),
|
|
5021
5093
|
duration: number().nonnegative().optional(),
|
|
5022
5094
|
text: string().optional(),
|
|
5023
|
-
placement:
|
|
5024
|
-
}),
|
|
5095
|
+
placement: Wi.optional()
|
|
5096
|
+
}), Ki = object({ ref: string().min(1).max(256) }).strict(), qi = _enum([
|
|
5025
5097
|
"handled",
|
|
5026
5098
|
"dismissed",
|
|
5027
5099
|
"deferred"
|
|
5028
|
-
]),
|
|
5100
|
+
]), Ji = datetime();
|
|
5029
5101
|
function validateAttentionRevisit(e, t) {
|
|
5030
5102
|
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
5031
5103
|
code: "custom",
|
|
@@ -5033,17 +5105,17 @@ function validateAttentionRevisit(e, t) {
|
|
|
5033
5105
|
message: "revisitAt requires deferred disposition"
|
|
5034
5106
|
});
|
|
5035
5107
|
}
|
|
5036
|
-
var
|
|
5037
|
-
disposition:
|
|
5038
|
-
revisitAt:
|
|
5039
|
-
}).superRefine(validateAttentionRevisit),
|
|
5040
|
-
disposition:
|
|
5041
|
-
revisitAt:
|
|
5042
|
-
}).superRefine(validateAttentionRevisit),
|
|
5108
|
+
var Yi = Ki.extend({
|
|
5109
|
+
disposition: qi.optional(),
|
|
5110
|
+
revisitAt: Ji.optional()
|
|
5111
|
+
}).superRefine(validateAttentionRevisit), Xi = Ki.extend({
|
|
5112
|
+
disposition: qi,
|
|
5113
|
+
revisitAt: Ji.optional()
|
|
5114
|
+
}).superRefine(validateAttentionRevisit), Zi = object({
|
|
5043
5115
|
turnId: string().min(1).optional(),
|
|
5044
5116
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
5045
|
-
attachments: array(
|
|
5046
|
-
toolActivities: array(
|
|
5117
|
+
attachments: array(Gi).optional(),
|
|
5118
|
+
toolActivities: array(Hi).optional(),
|
|
5047
5119
|
issue: object({
|
|
5048
5120
|
code: string(),
|
|
5049
5121
|
bucket: _enum(["account", "error"]),
|
|
@@ -5071,8 +5143,8 @@ var qi = Wi.extend({
|
|
|
5071
5143
|
])
|
|
5072
5144
|
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
5073
5145
|
ownerHandoff: literal(!0).optional(),
|
|
5074
|
-
attention: array(
|
|
5075
|
-
}).catchall(unknown()),
|
|
5146
|
+
attention: array(Yi).max(20).optional()
|
|
5147
|
+
}).catchall(unknown()), Qi = object({
|
|
5076
5148
|
messageId: string().min(1),
|
|
5077
5149
|
conversationId: string().min(1),
|
|
5078
5150
|
role: _enum([
|
|
@@ -5085,12 +5157,12 @@ var qi = Wi.extend({
|
|
|
5085
5157
|
content: string(),
|
|
5086
5158
|
sequence: string().min(1),
|
|
5087
5159
|
clientNonce: string().nullable().optional(),
|
|
5088
|
-
metadata:
|
|
5160
|
+
metadata: Zi.nullable().optional(),
|
|
5089
5161
|
status: string().nullable().optional(),
|
|
5090
5162
|
createdAt: string(),
|
|
5091
5163
|
updatedAt: string()
|
|
5092
|
-
}),
|
|
5093
|
-
type:
|
|
5164
|
+
}), $i = object({
|
|
5165
|
+
type: Ui,
|
|
5094
5166
|
mediaId: string().min(1).optional(),
|
|
5095
5167
|
url: url().optional(),
|
|
5096
5168
|
name: string().min(1).optional(),
|
|
@@ -5106,21 +5178,21 @@ var qi = Wi.extend({
|
|
|
5106
5178
|
path: [n],
|
|
5107
5179
|
message: `${n} is required when mediaId is absent`
|
|
5108
5180
|
});
|
|
5109
|
-
}),
|
|
5181
|
+
}), ea = object({
|
|
5110
5182
|
conversationId: string().min(1),
|
|
5111
5183
|
content: string().max(1e4).default(""),
|
|
5112
5184
|
clientNonce: string().max(64).optional(),
|
|
5113
|
-
attachments: array(
|
|
5185
|
+
attachments: array($i).max(10).optional(),
|
|
5114
5186
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5115
5187
|
actionUrls: object({
|
|
5116
5188
|
billing: string().max(500),
|
|
5117
5189
|
agent: string().max(500)
|
|
5118
5190
|
}).optional(),
|
|
5119
|
-
viewerTimezone:
|
|
5191
|
+
viewerTimezone: X.optional()
|
|
5120
5192
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5121
5193
|
path: ["content"],
|
|
5122
5194
|
message: "Message or attachment required"
|
|
5123
|
-
}),
|
|
5195
|
+
}), ta = object({
|
|
5124
5196
|
type: _enum(["user", "agent"]),
|
|
5125
5197
|
id: string().min(1)
|
|
5126
5198
|
}).strict();
|
|
@@ -5135,44 +5207,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5135
5207
|
}), n.add(e);
|
|
5136
5208
|
}
|
|
5137
5209
|
}
|
|
5138
|
-
var
|
|
5210
|
+
var na = object({
|
|
5139
5211
|
orgId: string().min(1),
|
|
5140
|
-
participants: array(
|
|
5141
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5212
|
+
participants: array(ta).min(1).max(20)
|
|
5213
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), ra = object({
|
|
5142
5214
|
orgId: string().min(1),
|
|
5143
|
-
participants: array(
|
|
5215
|
+
participants: array(ta).min(1).max(20)
|
|
5144
5216
|
}).strict().superRefine((e, t) => {
|
|
5145
5217
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5146
5218
|
code: "custom",
|
|
5147
5219
|
path: ["participants"],
|
|
5148
5220
|
message: "New sessions require at least one agent participant."
|
|
5149
5221
|
});
|
|
5150
|
-
}),
|
|
5222
|
+
}), ia = object({
|
|
5151
5223
|
category: string().min(1).max(30).optional(),
|
|
5152
5224
|
reason: string().max(2e3).optional()
|
|
5153
|
-
}).strict(),
|
|
5225
|
+
}).strict(), aa = _enum([
|
|
5154
5226
|
"1:1",
|
|
5155
5227
|
"4:3",
|
|
5156
5228
|
"3:4",
|
|
5157
5229
|
"16:9",
|
|
5158
5230
|
"9:16"
|
|
5159
|
-
]),
|
|
5231
|
+
]), oa = _enum([
|
|
5160
5232
|
"1K",
|
|
5161
5233
|
"2K",
|
|
5162
5234
|
"4K"
|
|
5163
|
-
]),
|
|
5235
|
+
]), sa = object({
|
|
5164
5236
|
prompt: string().trim().min(1).max(4e3),
|
|
5165
|
-
aspectRatio:
|
|
5237
|
+
aspectRatio: aa.default("1:1"),
|
|
5166
5238
|
outputFormat: _enum([
|
|
5167
5239
|
"png",
|
|
5168
5240
|
"jpeg",
|
|
5169
5241
|
"webp"
|
|
5170
5242
|
]).default("webp"),
|
|
5171
|
-
resolution:
|
|
5243
|
+
resolution: oa.default("2K"),
|
|
5172
5244
|
style: string().trim().max(200).optional(),
|
|
5173
5245
|
altText: string().trim().max(500).optional(),
|
|
5174
5246
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5175
|
-
}).strict(),
|
|
5247
|
+
}).strict(), ca = object({
|
|
5176
5248
|
mediaId: string().min(1),
|
|
5177
5249
|
src: url(),
|
|
5178
5250
|
filename: string().min(1),
|
|
@@ -5182,54 +5254,54 @@ var ea = object({
|
|
|
5182
5254
|
provider: string().min(1).optional(),
|
|
5183
5255
|
providerRequestId: string().min(1).optional(),
|
|
5184
5256
|
media: string().startsWith("MEDIA:"),
|
|
5185
|
-
attachment:
|
|
5186
|
-
}),
|
|
5257
|
+
attachment: Gi.extend({ type: literal("image") })
|
|
5258
|
+
}), la = object({
|
|
5187
5259
|
identityToken: string().min(1),
|
|
5188
5260
|
fullName: string().optional()
|
|
5189
|
-
}),
|
|
5261
|
+
}), ua = object({
|
|
5190
5262
|
redirect: string(),
|
|
5191
5263
|
redirectReason: string(),
|
|
5192
5264
|
isNew: boolean(),
|
|
5193
5265
|
deviceId: string()
|
|
5194
|
-
}),
|
|
5266
|
+
}), da = object({
|
|
5195
5267
|
ok: literal(!0),
|
|
5196
|
-
data:
|
|
5268
|
+
data: ua,
|
|
5197
5269
|
token: string()
|
|
5198
|
-
}),
|
|
5270
|
+
}), fa = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), pa = object({ url: string() }), ma = object({
|
|
5199
5271
|
ok: literal(!0),
|
|
5200
|
-
data:
|
|
5201
|
-
}),
|
|
5272
|
+
data: pa
|
|
5273
|
+
}), ha = object({ token: string().min(1) }), ga = object({
|
|
5202
5274
|
redirect: string(),
|
|
5203
5275
|
redirectReason: string(),
|
|
5204
5276
|
deviceId: string()
|
|
5205
|
-
}),
|
|
5277
|
+
}), _a = object({
|
|
5206
5278
|
ok: literal(!0),
|
|
5207
|
-
data:
|
|
5279
|
+
data: ga,
|
|
5208
5280
|
token: string()
|
|
5209
|
-
}),
|
|
5281
|
+
}), va = _enum(["none", "active_assistant"]), ya = _enum([
|
|
5210
5282
|
"none",
|
|
5211
5283
|
"active",
|
|
5212
5284
|
"trial",
|
|
5213
5285
|
"canceling",
|
|
5214
5286
|
"past_due",
|
|
5215
5287
|
"paused"
|
|
5216
|
-
]),
|
|
5288
|
+
]), ba = object({
|
|
5217
5289
|
brand: string(),
|
|
5218
5290
|
last4: string(),
|
|
5219
5291
|
expMonth: number(),
|
|
5220
5292
|
expYear: number()
|
|
5221
|
-
}),
|
|
5293
|
+
}), xa = object({
|
|
5222
5294
|
date: string(),
|
|
5223
5295
|
amount: number(),
|
|
5224
5296
|
status: string(),
|
|
5225
5297
|
invoicePdf: string().optional()
|
|
5226
|
-
}),
|
|
5298
|
+
}), Sa = object({
|
|
5227
5299
|
graceEndsAt: string().optional(),
|
|
5228
5300
|
suspended: boolean(),
|
|
5229
5301
|
url: string().optional()
|
|
5230
|
-
}),
|
|
5231
|
-
plan:
|
|
5232
|
-
status:
|
|
5302
|
+
}), Ca = object({
|
|
5303
|
+
plan: va,
|
|
5304
|
+
status: ya,
|
|
5233
5305
|
price: number(),
|
|
5234
5306
|
tierRates: record(string(), number()).optional(),
|
|
5235
5307
|
maxAgents: number(),
|
|
@@ -5239,23 +5311,23 @@ var ea = object({
|
|
|
5239
5311
|
cancelAt: string().optional(),
|
|
5240
5312
|
trialEnd: string().optional(),
|
|
5241
5313
|
trialDaysRemaining: number().optional(),
|
|
5242
|
-
paymentMethod:
|
|
5243
|
-
paymentRecovery:
|
|
5244
|
-
invoices: array(
|
|
5314
|
+
paymentMethod: ba.optional(),
|
|
5315
|
+
paymentRecovery: Sa.optional(),
|
|
5316
|
+
invoices: array(xa),
|
|
5245
5317
|
stripeError: string().optional()
|
|
5246
|
-
}),
|
|
5318
|
+
}), wa = object({
|
|
5247
5319
|
orgId: string(),
|
|
5248
5320
|
agentName: string().optional(),
|
|
5249
5321
|
runtime: string().optional()
|
|
5250
|
-
}),
|
|
5322
|
+
}), Ta = object({
|
|
5251
5323
|
created: number(),
|
|
5252
5324
|
skipped: number(),
|
|
5253
5325
|
errors: array(string())
|
|
5254
|
-
}),
|
|
5326
|
+
}), Ea = object({
|
|
5255
5327
|
updated: number(),
|
|
5256
5328
|
errors: array(string())
|
|
5257
|
-
}),
|
|
5258
|
-
code:
|
|
5329
|
+
}), Da = Wr, Oa = object({
|
|
5330
|
+
code: Ii,
|
|
5259
5331
|
message: string(),
|
|
5260
5332
|
bucket: _enum(["account", "error"]).optional(),
|
|
5261
5333
|
actionLabel: string().optional(),
|
|
@@ -5272,14 +5344,14 @@ function toChatStreamError(e) {
|
|
|
5272
5344
|
...e.help ? { help: e.help } : {}
|
|
5273
5345
|
};
|
|
5274
5346
|
}
|
|
5275
|
-
var
|
|
5347
|
+
var ka = discriminatedUnion("event", [
|
|
5276
5348
|
object({
|
|
5277
5349
|
event: literal("status"),
|
|
5278
|
-
data:
|
|
5350
|
+
data: Da
|
|
5279
5351
|
}),
|
|
5280
5352
|
object({
|
|
5281
5353
|
event: literal("message"),
|
|
5282
|
-
data: object({ message:
|
|
5354
|
+
data: object({ message: Qi })
|
|
5283
5355
|
}),
|
|
5284
5356
|
object({
|
|
5285
5357
|
event: literal("message_delta"),
|
|
@@ -5299,7 +5371,7 @@ var Da = discriminatedUnion("event", [
|
|
|
5299
5371
|
}),
|
|
5300
5372
|
object({
|
|
5301
5373
|
event: literal("tool_activity"),
|
|
5302
|
-
data:
|
|
5374
|
+
data: Vi
|
|
5303
5375
|
}),
|
|
5304
5376
|
object({
|
|
5305
5377
|
event: literal("working_end"),
|
|
@@ -5311,7 +5383,7 @@ var Da = discriminatedUnion("event", [
|
|
|
5311
5383
|
}),
|
|
5312
5384
|
object({
|
|
5313
5385
|
event: literal("error"),
|
|
5314
|
-
data:
|
|
5386
|
+
data: Oa
|
|
5315
5387
|
})
|
|
5316
5388
|
]);
|
|
5317
5389
|
function chatEventUserTurnId(e) {
|
|
@@ -5345,7 +5417,7 @@ function withChatEventTurnId(e, t) {
|
|
|
5345
5417
|
//#endregion
|
|
5346
5418
|
//#region ../core/dist/wire/chat-turn-stream.js
|
|
5347
5419
|
async function runAuthenticatedChatTurnStream(e) {
|
|
5348
|
-
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 = () => {},
|
|
5420
|
+
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 = () => {}, ee = new Promise((e) => {
|
|
5349
5421
|
resolveStreamReady = e;
|
|
5350
5422
|
}), settleStreamReady = (e) => {
|
|
5351
5423
|
f || (f = !0, p && clearTimeout(p), resolveStreamReady(e));
|
|
@@ -5360,7 +5432,7 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5360
5432
|
p = setTimeout(() => {
|
|
5361
5433
|
l = !0, fail("stream-open", "Timed out opening stream"), d.abort(), settleStreamReady("failed");
|
|
5362
5434
|
}, e.streamOpenTimeoutMs ?? 1e4);
|
|
5363
|
-
let
|
|
5435
|
+
let m = (async () => {
|
|
5364
5436
|
try {
|
|
5365
5437
|
let c = await t(e.streamUrl, {
|
|
5366
5438
|
headers: n,
|
|
@@ -5402,12 +5474,12 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5402
5474
|
} catch {}
|
|
5403
5475
|
}
|
|
5404
5476
|
})();
|
|
5405
|
-
if (await
|
|
5406
|
-
await
|
|
5477
|
+
if (await ee === "failed") {
|
|
5478
|
+
await m;
|
|
5407
5479
|
return;
|
|
5408
5480
|
}
|
|
5409
5481
|
if (c) {
|
|
5410
|
-
fail("stream-open", "Stream closed before send"), await
|
|
5482
|
+
fail("stream-open", "Stream closed before send"), await m;
|
|
5411
5483
|
return;
|
|
5412
5484
|
}
|
|
5413
5485
|
try {
|
|
@@ -5425,15 +5497,15 @@ async function runAuthenticatedChatTurnStream(e) {
|
|
|
5425
5497
|
stage: "api",
|
|
5426
5498
|
message: c.error || `Send failed: HTTP ${o.status}`,
|
|
5427
5499
|
...c.code ? { code: c.code } : {}
|
|
5428
|
-
}), await
|
|
5500
|
+
}), await m;
|
|
5429
5501
|
return;
|
|
5430
5502
|
}
|
|
5431
5503
|
s = c.data.messageId, e.onUserMessage?.(c.data);
|
|
5432
5504
|
} catch (e) {
|
|
5433
|
-
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await
|
|
5505
|
+
i = !0, d.abort(), cancelReader(), fail("api", e instanceof Error ? e.message : "Send failed"), await m;
|
|
5434
5506
|
return;
|
|
5435
5507
|
}
|
|
5436
|
-
await
|
|
5508
|
+
await m;
|
|
5437
5509
|
}
|
|
5438
5510
|
async function streamOpenErrorMessage(e) {
|
|
5439
5511
|
let t = "";
|
|
@@ -5463,7 +5535,7 @@ function parseChatEvent(e) {
|
|
|
5463
5535
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5464
5536
|
if (!n || r === void 0) return null;
|
|
5465
5537
|
try {
|
|
5466
|
-
let e =
|
|
5538
|
+
let e = ka.safeParse({
|
|
5467
5539
|
event: n,
|
|
5468
5540
|
data: JSON.parse(r)
|
|
5469
5541
|
});
|
|
@@ -5474,7 +5546,7 @@ function parseChatEvent(e) {
|
|
|
5474
5546
|
}
|
|
5475
5547
|
//#endregion
|
|
5476
5548
|
//#region ../core/dist/wire/chat-card.js
|
|
5477
|
-
var
|
|
5549
|
+
var Aa = object({
|
|
5478
5550
|
label: string().trim().min(1).max(40),
|
|
5479
5551
|
reply: string().trim().min(1).max(500),
|
|
5480
5552
|
style: _enum([
|
|
@@ -5482,11 +5554,11 @@ var Oa = object({
|
|
|
5482
5554
|
"default",
|
|
5483
5555
|
"destructive"
|
|
5484
5556
|
]).optional()
|
|
5485
|
-
}).strip(),
|
|
5557
|
+
}).strip(), ja = object({
|
|
5486
5558
|
version: literal(1),
|
|
5487
5559
|
title: string().trim().min(1).max(200),
|
|
5488
5560
|
body: string().trim().min(1).max(4e3).optional(),
|
|
5489
|
-
actions: array(
|
|
5561
|
+
actions: array(Aa).min(1).max(3).optional()
|
|
5490
5562
|
}).strip();
|
|
5491
5563
|
function parseChatCardFencePayload(e) {
|
|
5492
5564
|
let t;
|
|
@@ -5499,7 +5571,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5499
5571
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5500
5572
|
};
|
|
5501
5573
|
}
|
|
5502
|
-
let n =
|
|
5574
|
+
let n = ja.safeParse(t);
|
|
5503
5575
|
return n.success ? {
|
|
5504
5576
|
ok: !0,
|
|
5505
5577
|
spec: n.data
|
|
@@ -5511,36 +5583,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5511
5583
|
}
|
|
5512
5584
|
//#endregion
|
|
5513
5585
|
//#region ../core/dist/wire/chat-visual.js
|
|
5514
|
-
var
|
|
5586
|
+
var Ma = string().trim().min(1).max(240), Na = string().trim().min(1).max(800), Z = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Q = string().trim().min(1).max(120), Pa = record(Z, union([
|
|
5515
5587
|
string().max(500),
|
|
5516
5588
|
number().finite(),
|
|
5517
5589
|
boolean(),
|
|
5518
5590
|
_null()
|
|
5519
|
-
])),
|
|
5591
|
+
])), Fa = _enum([
|
|
5520
5592
|
"compact",
|
|
5521
5593
|
"currency",
|
|
5522
5594
|
"duration",
|
|
5523
5595
|
"integer",
|
|
5524
5596
|
"percent",
|
|
5525
5597
|
"raw"
|
|
5526
|
-
]),
|
|
5527
|
-
title:
|
|
5528
|
-
description:
|
|
5529
|
-
footer:
|
|
5530
|
-
}).strip(),
|
|
5531
|
-
dataKey:
|
|
5532
|
-
label:
|
|
5533
|
-
axisLabel:
|
|
5534
|
-
valueFormat:
|
|
5598
|
+
]), Ia = object({
|
|
5599
|
+
title: Ma,
|
|
5600
|
+
description: Na.optional(),
|
|
5601
|
+
footer: Na.optional()
|
|
5602
|
+
}).strip(), La = object({
|
|
5603
|
+
dataKey: Z,
|
|
5604
|
+
label: Q.optional(),
|
|
5605
|
+
axisLabel: Q.optional(),
|
|
5606
|
+
valueFormat: Fa.optional(),
|
|
5535
5607
|
valuePrefix: string().trim().max(12).optional(),
|
|
5536
5608
|
valueSuffix: string().trim().max(12).optional()
|
|
5537
|
-
}).strip(),
|
|
5609
|
+
}).strip(), Ra = object({
|
|
5538
5610
|
kind: literal("linear"),
|
|
5539
|
-
dataKey:
|
|
5540
|
-
label:
|
|
5541
|
-
}).strip(),
|
|
5611
|
+
dataKey: Z,
|
|
5612
|
+
label: Q.optional()
|
|
5613
|
+
}).strip(), za = object({
|
|
5542
5614
|
version: literal(1),
|
|
5543
|
-
meta:
|
|
5615
|
+
meta: Ia,
|
|
5544
5616
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5545
5617
|
}).strip();
|
|
5546
5618
|
function dataKeys(e) {
|
|
@@ -5582,20 +5654,20 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5582
5654
|
});
|
|
5583
5655
|
}
|
|
5584
5656
|
}
|
|
5585
|
-
var
|
|
5657
|
+
var Ba = discriminatedUnion("chartType", [za.extend({
|
|
5586
5658
|
visualType: literal("chart"),
|
|
5587
5659
|
chartType: _enum([
|
|
5588
5660
|
"bar",
|
|
5589
5661
|
"line",
|
|
5590
5662
|
"scatter"
|
|
5591
5663
|
]),
|
|
5592
|
-
xKey:
|
|
5593
|
-
xAxisLabel:
|
|
5594
|
-
series: array(
|
|
5595
|
-
data: array(
|
|
5664
|
+
xKey: Z,
|
|
5665
|
+
xAxisLabel: Q.optional(),
|
|
5666
|
+
series: array(La).min(1).max(6),
|
|
5667
|
+
data: array(Pa).min(1).max(120),
|
|
5596
5668
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5597
5669
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5598
|
-
trendLine:
|
|
5670
|
+
trendLine: Ra.optional()
|
|
5599
5671
|
}).strip().superRefine((e, t) => {
|
|
5600
5672
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5601
5673
|
code: "custom",
|
|
@@ -5633,13 +5705,13 @@ var Ra = discriminatedUnion("chartType", [La.extend({
|
|
|
5633
5705
|
path: ["trendLine", "dataKey"],
|
|
5634
5706
|
value: e.trendLine.dataKey
|
|
5635
5707
|
}] : []], t);
|
|
5636
|
-
}),
|
|
5708
|
+
}), za.extend({
|
|
5637
5709
|
visualType: literal("chart"),
|
|
5638
5710
|
chartType: literal("pie"),
|
|
5639
|
-
nameKey:
|
|
5640
|
-
valueKey:
|
|
5641
|
-
series: array(
|
|
5642
|
-
data: array(
|
|
5711
|
+
nameKey: Z,
|
|
5712
|
+
valueKey: Z,
|
|
5713
|
+
series: array(La).max(1).optional(),
|
|
5714
|
+
data: array(Pa).min(1).max(16)
|
|
5643
5715
|
}).strip().superRefine((e, t) => {
|
|
5644
5716
|
requireDataKeys(e.data, [
|
|
5645
5717
|
{
|
|
@@ -5663,10 +5735,10 @@ var Ra = discriminatedUnion("chartType", [La.extend({
|
|
|
5663
5735
|
value: e.valueKey,
|
|
5664
5736
|
nonnegative: !0
|
|
5665
5737
|
}], t);
|
|
5666
|
-
})]),
|
|
5667
|
-
id:
|
|
5668
|
-
label:
|
|
5669
|
-
detail:
|
|
5738
|
+
})]), Va = object({
|
|
5739
|
+
id: Z,
|
|
5740
|
+
label: Q,
|
|
5741
|
+
detail: Na.optional(),
|
|
5670
5742
|
kind: _enum([
|
|
5671
5743
|
"actor",
|
|
5672
5744
|
"agent",
|
|
@@ -5677,11 +5749,11 @@ var Ra = discriminatedUnion("chartType", [La.extend({
|
|
|
5677
5749
|
"system",
|
|
5678
5750
|
"task"
|
|
5679
5751
|
]).optional()
|
|
5680
|
-
}).strip(),
|
|
5681
|
-
from:
|
|
5682
|
-
to:
|
|
5683
|
-
label:
|
|
5684
|
-
}).strip(),
|
|
5752
|
+
}).strip(), Ha = object({
|
|
5753
|
+
from: Z,
|
|
5754
|
+
to: Z,
|
|
5755
|
+
label: Q.optional()
|
|
5756
|
+
}).strip(), Ua = union([Ba, za.extend({
|
|
5685
5757
|
visualType: literal("diagram"),
|
|
5686
5758
|
diagramType: _enum([
|
|
5687
5759
|
"flow",
|
|
@@ -5695,8 +5767,8 @@ var Ra = discriminatedUnion("chartType", [La.extend({
|
|
|
5695
5767
|
"radial",
|
|
5696
5768
|
"top-to-bottom"
|
|
5697
5769
|
]).default("auto"),
|
|
5698
|
-
nodes: array(
|
|
5699
|
-
edges: array(
|
|
5770
|
+
nodes: array(Va).min(1).max(24),
|
|
5771
|
+
edges: array(Ha).max(48)
|
|
5700
5772
|
}).strip().superRefine((e, t) => {
|
|
5701
5773
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5702
5774
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -5855,11 +5927,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
5855
5927
|
fallbackMarkdown: r
|
|
5856
5928
|
};
|
|
5857
5929
|
}
|
|
5858
|
-
let n =
|
|
5930
|
+
let n = Ua.safeParse(t);
|
|
5859
5931
|
if (!n.success) {
|
|
5860
5932
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
5861
5933
|
if (e) {
|
|
5862
|
-
let t =
|
|
5934
|
+
let t = Ua.safeParse(e);
|
|
5863
5935
|
if (t.success) return {
|
|
5864
5936
|
ok: !0,
|
|
5865
5937
|
spec: t.data
|
|
@@ -5884,7 +5956,7 @@ function extractChatVisualFencePayloads(e) {
|
|
|
5884
5956
|
}
|
|
5885
5957
|
//#endregion
|
|
5886
5958
|
//#region ../core/dist/wire/conversation.js
|
|
5887
|
-
var
|
|
5959
|
+
var Wa = object({
|
|
5888
5960
|
type: _enum([
|
|
5889
5961
|
"user",
|
|
5890
5962
|
"agent",
|
|
@@ -5904,7 +5976,7 @@ var Ha = object({
|
|
|
5904
5976
|
displayName: string().optional(),
|
|
5905
5977
|
handle: string().optional(),
|
|
5906
5978
|
avatarUrl: string().optional()
|
|
5907
|
-
}).strict(),
|
|
5979
|
+
}).strict(), Ga = object({
|
|
5908
5980
|
messageId: string(),
|
|
5909
5981
|
role: _enum([
|
|
5910
5982
|
"user",
|
|
@@ -5914,7 +5986,7 @@ var Ha = object({
|
|
|
5914
5986
|
content: string(),
|
|
5915
5987
|
sequence: string(),
|
|
5916
5988
|
createdAt: string()
|
|
5917
|
-
}),
|
|
5989
|
+
}), Ka = object({
|
|
5918
5990
|
conversationId: string(),
|
|
5919
5991
|
orgId: string(),
|
|
5920
5992
|
kind: _enum(["direct", "group"]),
|
|
@@ -5924,52 +5996,52 @@ var Ha = object({
|
|
|
5924
5996
|
"requester",
|
|
5925
5997
|
"member"
|
|
5926
5998
|
]),
|
|
5927
|
-
participants: array(
|
|
5928
|
-
lastMessage:
|
|
5999
|
+
participants: array(Wa),
|
|
6000
|
+
lastMessage: Ga.nullable(),
|
|
5929
6001
|
unreadCount: number().int().nonnegative(),
|
|
5930
6002
|
latestSequence: string().nullable()
|
|
5931
|
-
}),
|
|
6003
|
+
}), qa = object({ sequence: string().min(1) }), Ja = object({ turnId: string().min(1).optional() }).strict(), Ya = object({
|
|
5932
6004
|
cancelled: boolean(),
|
|
5933
6005
|
cancelledTurnIds: array(string())
|
|
5934
|
-
}).strict(),
|
|
6006
|
+
}).strict(), Xa = object({
|
|
5935
6007
|
conversationId: string(),
|
|
5936
6008
|
messageId: string(),
|
|
5937
6009
|
sequence: string(),
|
|
5938
6010
|
snippet: string(),
|
|
5939
6011
|
createdAt: string(),
|
|
5940
|
-
participants: array(
|
|
5941
|
-
}),
|
|
6012
|
+
participants: array(Wa)
|
|
6013
|
+
}), Za = object({
|
|
5942
6014
|
conversationId: string(),
|
|
5943
|
-
lastMessage:
|
|
6015
|
+
lastMessage: Ga.nullable(),
|
|
5944
6016
|
unreadCount: number().int().nonnegative(),
|
|
5945
6017
|
latestSequence: string().nullable()
|
|
5946
|
-
}),
|
|
6018
|
+
}), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Qa = preprocess((e) => e === void 0 ? null : e, H.nullable()), $a = preprocess((e) => e === void 0 ? null : e, V.nullable()), eo = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
5947
6019
|
"user",
|
|
5948
6020
|
"assistant",
|
|
5949
6021
|
"system"
|
|
5950
|
-
]).nullable()),
|
|
6022
|
+
]).nullable()), to = preprocess((e) => e === void 0 ? 0 : e, number()), no = object({
|
|
5951
6023
|
agentId: string(),
|
|
5952
6024
|
handle: string(),
|
|
5953
6025
|
name: string(),
|
|
5954
6026
|
orgId: string(),
|
|
5955
|
-
orgName:
|
|
5956
|
-
orgHandle:
|
|
5957
|
-
ownerEmail:
|
|
5958
|
-
ownerName:
|
|
5959
|
-
state:
|
|
5960
|
-
desiredStatus:
|
|
6027
|
+
orgName: $,
|
|
6028
|
+
orgHandle: $,
|
|
6029
|
+
ownerEmail: $,
|
|
6030
|
+
ownerName: $,
|
|
6031
|
+
state: Qa,
|
|
6032
|
+
desiredStatus: $a,
|
|
5961
6033
|
runtime: string(),
|
|
5962
|
-
imageVersion:
|
|
5963
|
-
lastHealthyAt:
|
|
5964
|
-
lastActiveAt:
|
|
5965
|
-
lastUserMessageAt:
|
|
5966
|
-
lastMessageAt:
|
|
5967
|
-
lastMessageRole:
|
|
5968
|
-
lastMessageChannel:
|
|
5969
|
-
primaryChannel:
|
|
5970
|
-
totalMessages:
|
|
5971
|
-
totalSessions:
|
|
5972
|
-
error:
|
|
6034
|
+
imageVersion: $,
|
|
6035
|
+
lastHealthyAt: $,
|
|
6036
|
+
lastActiveAt: $,
|
|
6037
|
+
lastUserMessageAt: $,
|
|
6038
|
+
lastMessageAt: $,
|
|
6039
|
+
lastMessageRole: eo,
|
|
6040
|
+
lastMessageChannel: $,
|
|
6041
|
+
primaryChannel: $,
|
|
6042
|
+
totalMessages: to,
|
|
6043
|
+
totalSessions: to,
|
|
6044
|
+
error: $,
|
|
5973
6045
|
appHandle: string(),
|
|
5974
6046
|
flyAppExists: boolean(),
|
|
5975
6047
|
plan: string(),
|
|
@@ -5977,7 +6049,7 @@ var Ha = object({
|
|
|
5977
6049
|
billingActive: boolean(),
|
|
5978
6050
|
createdAt: string(),
|
|
5979
6051
|
updatedAt: string()
|
|
5980
|
-
}),
|
|
6052
|
+
}), ro = object({
|
|
5981
6053
|
running: number(),
|
|
5982
6054
|
stopped: number(),
|
|
5983
6055
|
error: number(),
|
|
@@ -5985,28 +6057,28 @@ var Ha = object({
|
|
|
5985
6057
|
stopping: number(),
|
|
5986
6058
|
unknown: number(),
|
|
5987
6059
|
total: number()
|
|
5988
|
-
}),
|
|
5989
|
-
agents: array(
|
|
5990
|
-
summary:
|
|
6060
|
+
}), io = object({
|
|
6061
|
+
agents: array(no),
|
|
6062
|
+
summary: ro,
|
|
5991
6063
|
orphanedApps: array(string()),
|
|
5992
6064
|
dailyMessages30d: array(number().int()).optional(),
|
|
5993
6065
|
flyAppCount: number().optional(),
|
|
5994
6066
|
latestVersion: string().optional(),
|
|
5995
6067
|
latestVersions: record(string(), string()).optional()
|
|
5996
|
-
}),
|
|
6068
|
+
}), ao = I, oo = F, so = object({
|
|
5997
6069
|
mediaId: string(),
|
|
5998
6070
|
src: string(),
|
|
5999
6071
|
alt: string().nullable().optional(),
|
|
6000
6072
|
filename: string().optional(),
|
|
6001
6073
|
displayName: string().nullable().optional(),
|
|
6002
6074
|
mimeType: string().optional(),
|
|
6003
|
-
mediaType:
|
|
6004
|
-
type:
|
|
6075
|
+
mediaType: oo.optional(),
|
|
6076
|
+
type: oo.optional(),
|
|
6005
6077
|
size: number().optional(),
|
|
6006
6078
|
width: number().nullable().optional(),
|
|
6007
6079
|
height: number().nullable().optional(),
|
|
6008
6080
|
duration: number().nullable().optional(),
|
|
6009
|
-
context:
|
|
6081
|
+
context: ao.nullable().optional(),
|
|
6010
6082
|
blurhash: string().nullable().optional(),
|
|
6011
6083
|
quality: string().optional(),
|
|
6012
6084
|
status: string().optional(),
|
|
@@ -6015,13 +6087,13 @@ var Ha = object({
|
|
|
6015
6087
|
agentId: string().nullable().optional(),
|
|
6016
6088
|
createdAt: string().optional(),
|
|
6017
6089
|
updatedAt: string().optional()
|
|
6018
|
-
}),
|
|
6090
|
+
}), co = object({
|
|
6019
6091
|
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."),
|
|
6020
|
-
context:
|
|
6092
|
+
context: ao.optional().default("general"),
|
|
6021
6093
|
agentId: string().optional(),
|
|
6022
6094
|
orgId: string().optional(),
|
|
6023
6095
|
duration: number().optional()
|
|
6024
|
-
}),
|
|
6096
|
+
}), lo = object({
|
|
6025
6097
|
mediaId: string().optional(),
|
|
6026
6098
|
src: string().optional(),
|
|
6027
6099
|
alt: string().optional(),
|
|
@@ -6030,7 +6102,7 @@ var Ha = object({
|
|
|
6030
6102
|
mimeType: string().optional(),
|
|
6031
6103
|
mediaType: string().optional(),
|
|
6032
6104
|
blurhash: string().optional()
|
|
6033
|
-
}),
|
|
6105
|
+
}), uo = object({
|
|
6034
6106
|
membershipId: string(),
|
|
6035
6107
|
userId: string(),
|
|
6036
6108
|
orgId: string(),
|
|
@@ -6045,15 +6117,15 @@ var Ha = object({
|
|
|
6045
6117
|
status: _enum(["active", "suspended"]),
|
|
6046
6118
|
joinedAt: string(),
|
|
6047
6119
|
lastSeenAt: string().optional(),
|
|
6048
|
-
avatar:
|
|
6049
|
-
}),
|
|
6120
|
+
avatar: lo.optional()
|
|
6121
|
+
}), fo = object({
|
|
6050
6122
|
invitationId: string(),
|
|
6051
6123
|
email: string(),
|
|
6052
6124
|
role: _enum(["admin", "member"]),
|
|
6053
6125
|
status: string(),
|
|
6054
6126
|
expiresAt: string(),
|
|
6055
6127
|
createdAt: string()
|
|
6056
|
-
}),
|
|
6128
|
+
}), po = object({
|
|
6057
6129
|
token: string(),
|
|
6058
6130
|
email: string(),
|
|
6059
6131
|
orgId: string(),
|
|
@@ -6075,54 +6147,54 @@ var Ha = object({
|
|
|
6075
6147
|
]),
|
|
6076
6148
|
expiresAt: string(),
|
|
6077
6149
|
memberCount: number().optional()
|
|
6078
|
-
}),
|
|
6150
|
+
}), mo = object({
|
|
6079
6151
|
email: string().email(),
|
|
6080
6152
|
role: _enum(["admin", "member"]).optional(),
|
|
6081
6153
|
message: string().max(500).optional()
|
|
6082
|
-
}).strict(),
|
|
6154
|
+
}).strict(), ho = object({ role: _enum(["admin", "member"]) }).strict(), go = object({ token: string().min(1) }).strict(), _o = _enum([
|
|
6083
6155
|
"planLimit",
|
|
6084
6156
|
"billingOverdue",
|
|
6085
6157
|
"rebuilding",
|
|
6086
6158
|
"agentNotFound"
|
|
6087
|
-
]),
|
|
6159
|
+
]), vo = _enum([
|
|
6088
6160
|
"rebuilding",
|
|
6089
6161
|
"provisioning",
|
|
6090
6162
|
"billingOverdue"
|
|
6091
|
-
]),
|
|
6163
|
+
]), yo = object({
|
|
6092
6164
|
agentId: string(),
|
|
6093
6165
|
name: string(),
|
|
6094
|
-
avatar:
|
|
6166
|
+
avatar: L.optional(),
|
|
6095
6167
|
summary: string().nullable().optional(),
|
|
6096
6168
|
ownerId: string(),
|
|
6097
6169
|
ownerFirstName: string(),
|
|
6098
|
-
ownerAvatar:
|
|
6170
|
+
ownerAvatar: L.optional(),
|
|
6099
6171
|
ownerLabel: string(),
|
|
6100
6172
|
avatarInitial: string(),
|
|
6101
6173
|
isYours: boolean(),
|
|
6102
6174
|
lastMessageAt: string().datetime().nullable(),
|
|
6103
6175
|
lastMessagePreview: string().nullable(),
|
|
6104
6176
|
onboardedAt: string().datetime().nullable(),
|
|
6105
|
-
desiredStatus:
|
|
6106
|
-
lifecycle:
|
|
6177
|
+
desiredStatus: V.nullable(),
|
|
6178
|
+
lifecycle: H,
|
|
6107
6179
|
changedAt: string().datetime().optional(),
|
|
6108
6180
|
detail: string().optional(),
|
|
6109
|
-
blocker:
|
|
6181
|
+
blocker: z.optional(),
|
|
6110
6182
|
canWake: boolean(),
|
|
6111
|
-
cantWakeReason:
|
|
6183
|
+
cantWakeReason: _o.optional(),
|
|
6112
6184
|
canRebuild: boolean(),
|
|
6113
|
-
cantRebuildReason:
|
|
6114
|
-
}),
|
|
6115
|
-
zNotificationTelemetryAck: () =>
|
|
6116
|
-
zNotificationTelemetryEvent: () =>
|
|
6117
|
-
zRegisterDeviceRequest: () =>
|
|
6118
|
-
zRegisterDeviceResponse: () =>
|
|
6119
|
-
}),
|
|
6185
|
+
cantRebuildReason: vo.optional()
|
|
6186
|
+
}), bo = /* @__PURE__ */ t({
|
|
6187
|
+
zNotificationTelemetryAck: () => wo,
|
|
6188
|
+
zNotificationTelemetryEvent: () => Co,
|
|
6189
|
+
zRegisterDeviceRequest: () => xo,
|
|
6190
|
+
zRegisterDeviceResponse: () => So
|
|
6191
|
+
}), xo = object({
|
|
6120
6192
|
deviceId: string().min(1).max(64),
|
|
6121
6193
|
pushToken: string().min(1).max(200),
|
|
6122
6194
|
appVersion: string().max(40).optional(),
|
|
6123
6195
|
osVersion: string().max(40).optional(),
|
|
6124
6196
|
model: string().max(80).optional()
|
|
6125
|
-
}),
|
|
6197
|
+
}), So = object({ deviceId: string().min(1).max(64) }), Co = object({
|
|
6126
6198
|
deviceId: string().min(1).max(64),
|
|
6127
6199
|
kind: string().min(1).max(30),
|
|
6128
6200
|
action: _enum([
|
|
@@ -6131,7 +6203,7 @@ var Ha = object({
|
|
|
6131
6203
|
"dismissed"
|
|
6132
6204
|
]),
|
|
6133
6205
|
messageId: string().max(32).optional()
|
|
6134
|
-
}),
|
|
6206
|
+
}), wo = object({ updated: boolean() }), To = J.pick({
|
|
6135
6207
|
orgId: !0,
|
|
6136
6208
|
handle: !0,
|
|
6137
6209
|
name: !0,
|
|
@@ -6145,13 +6217,13 @@ var Ha = object({
|
|
|
6145
6217
|
status: !0,
|
|
6146
6218
|
updatedAt: !0
|
|
6147
6219
|
}).extend({
|
|
6148
|
-
avatar:
|
|
6149
|
-
cover:
|
|
6150
|
-
}),
|
|
6220
|
+
avatar: so.nullable().optional(),
|
|
6221
|
+
cover: so.nullable().optional()
|
|
6222
|
+
}), Eo = object({
|
|
6151
6223
|
name: string().min(1).max(255),
|
|
6152
6224
|
handle: string().min(2).max(50).optional(),
|
|
6153
|
-
timezone:
|
|
6154
|
-
}).strict(),
|
|
6225
|
+
timezone: X.optional()
|
|
6226
|
+
}).strict(), Do = J.pick({
|
|
6155
6227
|
name: !0,
|
|
6156
6228
|
email: !0,
|
|
6157
6229
|
website: !0,
|
|
@@ -6160,14 +6232,14 @@ var Ha = object({
|
|
|
6160
6232
|
}).extend({
|
|
6161
6233
|
name: string().min(1).max(255).optional(),
|
|
6162
6234
|
email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
|
|
6163
|
-
timezone:
|
|
6235
|
+
timezone: X.optional(),
|
|
6164
6236
|
avatarMediaId: string().nullable().optional(),
|
|
6165
6237
|
coverMediaId: string().nullable().optional()
|
|
6166
|
-
}).strict(),
|
|
6238
|
+
}).strict(), Oo = _enum([
|
|
6167
6239
|
"success",
|
|
6168
6240
|
"info",
|
|
6169
6241
|
"warning"
|
|
6170
|
-
]),
|
|
6242
|
+
]), ko = object({
|
|
6171
6243
|
org: object({
|
|
6172
6244
|
orgId: string(),
|
|
6173
6245
|
name: string(),
|
|
@@ -6176,7 +6248,7 @@ var Ha = object({
|
|
|
6176
6248
|
plan: object({
|
|
6177
6249
|
key: string(),
|
|
6178
6250
|
label: string(),
|
|
6179
|
-
tone:
|
|
6251
|
+
tone: Oo,
|
|
6180
6252
|
status: string(),
|
|
6181
6253
|
trialDaysRemaining: number().optional()
|
|
6182
6254
|
}),
|
|
@@ -6197,15 +6269,15 @@ function zPaginatedResponse(e) {
|
|
|
6197
6269
|
}
|
|
6198
6270
|
//#endregion
|
|
6199
6271
|
//#region ../core/dist/wire/public-services.js
|
|
6200
|
-
var
|
|
6272
|
+
var Ao = object({
|
|
6201
6273
|
sender: _enum(["user", "agent"]),
|
|
6202
6274
|
text: string()
|
|
6203
|
-
}),
|
|
6275
|
+
}), jo = _enum([
|
|
6204
6276
|
"works-now",
|
|
6205
6277
|
"guided-setup",
|
|
6206
6278
|
"coming-soon",
|
|
6207
6279
|
"custom-workflow"
|
|
6208
|
-
]),
|
|
6280
|
+
]), Mo = object({
|
|
6209
6281
|
docsUrl: string(),
|
|
6210
6282
|
verifiedAt: string(),
|
|
6211
6283
|
version: string().optional(),
|
|
@@ -6217,11 +6289,11 @@ var Do = object({
|
|
|
6217
6289
|
"unversioned"
|
|
6218
6290
|
]),
|
|
6219
6291
|
note: string().optional()
|
|
6220
|
-
}),
|
|
6292
|
+
}), No = object({
|
|
6221
6293
|
key: string(),
|
|
6222
6294
|
label: string(),
|
|
6223
6295
|
rank: number()
|
|
6224
|
-
}),
|
|
6296
|
+
}), Po = object({
|
|
6225
6297
|
text: string(),
|
|
6226
6298
|
tone: _enum([
|
|
6227
6299
|
"info",
|
|
@@ -6229,7 +6301,7 @@ var Do = object({
|
|
|
6229
6301
|
"success",
|
|
6230
6302
|
"danger"
|
|
6231
6303
|
])
|
|
6232
|
-
}),
|
|
6304
|
+
}), Fo = object({
|
|
6233
6305
|
serviceKey: string(),
|
|
6234
6306
|
name: string(),
|
|
6235
6307
|
description: string(),
|
|
@@ -6239,16 +6311,16 @@ var Do = object({
|
|
|
6239
6311
|
category: string(),
|
|
6240
6312
|
categoryLabel: string(),
|
|
6241
6313
|
categoryRank: number(),
|
|
6242
|
-
secondaryCategories: array(
|
|
6243
|
-
badges: array(
|
|
6314
|
+
secondaryCategories: array(No),
|
|
6315
|
+
badges: array(Po),
|
|
6244
6316
|
tags: array(string()),
|
|
6245
6317
|
searchAliases: array(string()),
|
|
6246
6318
|
jtbd: string(),
|
|
6247
6319
|
useCase: string(),
|
|
6248
6320
|
demoScenario: string(),
|
|
6249
|
-
sampleConversation: array(
|
|
6250
|
-
publicStatus:
|
|
6251
|
-
apiVerification:
|
|
6321
|
+
sampleConversation: array(Ao),
|
|
6322
|
+
publicStatus: jo,
|
|
6323
|
+
apiVerification: Mo.optional(),
|
|
6252
6324
|
setupDifficulty: string(),
|
|
6253
6325
|
risk: string(),
|
|
6254
6326
|
price: string(),
|
|
@@ -6261,82 +6333,84 @@ var Do = object({
|
|
|
6261
6333
|
]),
|
|
6262
6334
|
setupSummary: string().optional(),
|
|
6263
6335
|
pagePath: string()
|
|
6264
|
-
}),
|
|
6336
|
+
}), Io = object({
|
|
6265
6337
|
fullName: string().min(1).max(100).optional(),
|
|
6266
|
-
linkedinUsername:
|
|
6338
|
+
linkedinUsername: q.nullable().optional(),
|
|
6267
6339
|
avatarMediaId: string().nullable().optional(),
|
|
6268
6340
|
primaryAgentId: string().nullable().optional(),
|
|
6269
6341
|
lastActiveOrgId: string().nullable().optional()
|
|
6270
|
-
}).strict(),
|
|
6271
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6272
|
-
ActionAreaSchema: () =>
|
|
6273
|
-
ActionButtonSchema: () =>
|
|
6274
|
-
Agent: () =>
|
|
6275
|
-
AudioFormatSchema: () =>
|
|
6276
|
-
AudioMediaSchema: () =>
|
|
6277
|
-
AudioPropertiesSchema: () =>
|
|
6342
|
+
}).strict(), Lo = /* @__PURE__ */ t({
|
|
6343
|
+
ASSISTANT_SILENCE_CONTROLS: () => Ci,
|
|
6344
|
+
ActionAreaSchema: () => Pr,
|
|
6345
|
+
ActionButtonSchema: () => R,
|
|
6346
|
+
Agent: () => ai,
|
|
6347
|
+
AudioFormatSchema: () => Cr,
|
|
6348
|
+
AudioMediaSchema: () => Or,
|
|
6349
|
+
AudioPropertiesSchema: () => Tr,
|
|
6278
6350
|
AuthApiError: () => AuthApiError,
|
|
6279
|
-
BOT_API_LLM_PATH: () =>
|
|
6280
|
-
BOT_API_PATH: () =>
|
|
6281
|
-
BOT_USER_AGENT: () =>
|
|
6282
|
-
ButtonDesignSchema: () =>
|
|
6283
|
-
ButtonThemeSchema: () =>
|
|
6284
|
-
CHART_THEME: () =>
|
|
6285
|
-
CHAT_ISSUE_CODES: () =>
|
|
6286
|
-
CHAT_ISSUE_COPY: () =>
|
|
6351
|
+
BOT_API_LLM_PATH: () => Di,
|
|
6352
|
+
BOT_API_PATH: () => Ei,
|
|
6353
|
+
BOT_USER_AGENT: () => Si,
|
|
6354
|
+
ButtonDesignSchema: () => Nr,
|
|
6355
|
+
ButtonThemeSchema: () => Mr,
|
|
6356
|
+
CHART_THEME: () => Lr,
|
|
6357
|
+
CHAT_ISSUE_CODES: () => Br,
|
|
6358
|
+
CHAT_ISSUE_COPY: () => B,
|
|
6287
6359
|
CookieUtil: () => CookieUtil,
|
|
6288
|
-
DEFAULT_HEARTBEAT_TIMES: () =>
|
|
6289
|
-
DocumentMediaSchema: () =>
|
|
6290
|
-
ERROR_CODES: () =>
|
|
6291
|
-
EnrichedAgentSchema: () =>
|
|
6292
|
-
ImageFormatSchema: () =>
|
|
6293
|
-
ImageMediaSchema: () =>
|
|
6294
|
-
LIFECYCLE_COLOR: () =>
|
|
6295
|
-
Logger: () =>
|
|
6296
|
-
MEDIA_CONTEXTS: () =>
|
|
6297
|
-
MEDIA_TYPES: () =>
|
|
6298
|
-
MediaContextSchema: () =>
|
|
6299
|
-
MediaSchema: () =>
|
|
6300
|
-
MediaStatusSchema: () =>
|
|
6301
|
-
MediaTypeSchema: () =>
|
|
6302
|
-
MediaUnionSchema: () =>
|
|
6303
|
-
NavItemSchema: () =>
|
|
6304
|
-
NavListSchema: () =>
|
|
6360
|
+
DEFAULT_HEARTBEAT_TIMES: () => ir,
|
|
6361
|
+
DocumentMediaSchema: () => kr,
|
|
6362
|
+
ERROR_CODES: () => Fi,
|
|
6363
|
+
EnrichedAgentSchema: () => ri,
|
|
6364
|
+
ImageFormatSchema: () => xr,
|
|
6365
|
+
ImageMediaSchema: () => Er,
|
|
6366
|
+
LIFECYCLE_COLOR: () => Kr,
|
|
6367
|
+
Logger: () => M,
|
|
6368
|
+
MEDIA_CONTEXTS: () => vr,
|
|
6369
|
+
MEDIA_TYPES: () => _r,
|
|
6370
|
+
MediaContextSchema: () => I,
|
|
6371
|
+
MediaSchema: () => L,
|
|
6372
|
+
MediaStatusSchema: () => yr,
|
|
6373
|
+
MediaTypeSchema: () => F,
|
|
6374
|
+
MediaUnionSchema: () => Ar,
|
|
6375
|
+
NavItemSchema: () => Fr,
|
|
6376
|
+
NavListSchema: () => Ir,
|
|
6305
6377
|
PAGELINES_APP_CONFIG: () => i,
|
|
6378
|
+
PERSONA_DEFAULTS: () => Xr,
|
|
6306
6379
|
SettingsObject: () => SettingsObject,
|
|
6307
|
-
SizeSchema: () =>
|
|
6308
|
-
SocialAccountSchema: () =>
|
|
6309
|
-
SocialAccountsSchema: () =>
|
|
6310
|
-
UNKNOWN_STATUS: () =>
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6380
|
+
SizeSchema: () => jr,
|
|
6381
|
+
SocialAccountSchema: () => hr,
|
|
6382
|
+
SocialAccountsSchema: () => gr,
|
|
6383
|
+
UNKNOWN_STATUS: () => Gr,
|
|
6384
|
+
VOICE_CATALOG: () => W,
|
|
6385
|
+
VideoFormatSchema: () => Sr,
|
|
6386
|
+
VideoMediaSchema: () => Dr,
|
|
6387
|
+
VideoPropertiesSchema: () => wr,
|
|
6388
|
+
agentSchema: () => ni,
|
|
6315
6389
|
apiError: () => apiError,
|
|
6316
6390
|
apiOk: () => apiOk,
|
|
6317
|
-
appleAuthSchema: () =>
|
|
6391
|
+
appleAuthSchema: () => _i,
|
|
6318
6392
|
authErrorMessage: () => authErrorMessage,
|
|
6319
6393
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6320
6394
|
botApiUrl: () => botApiUrl,
|
|
6321
6395
|
budgetMinutes: () => budgetMinutes,
|
|
6322
6396
|
buildChatIssue: () => buildChatIssue,
|
|
6323
|
-
changeEmailSchema: () =>
|
|
6324
|
-
changePasswordSchema: () =>
|
|
6397
|
+
changeEmailSchema: () => mi,
|
|
6398
|
+
changePasswordSchema: () => hi,
|
|
6325
6399
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6326
6400
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6327
6401
|
chatEventTurnId: () => chatEventTurnId,
|
|
6328
6402
|
chatEventUserTurnId: () => chatEventUserTurnId,
|
|
6329
6403
|
chatIssueCatalogLines: () => chatIssueCatalogLines,
|
|
6330
6404
|
chatIssueToErrorData: () => chatIssueToErrorData,
|
|
6331
|
-
cookieUtil: () =>
|
|
6405
|
+
cookieUtil: () => mr,
|
|
6332
6406
|
createAgent: () => createAgent,
|
|
6333
6407
|
createAgents: () => createAgents,
|
|
6334
6408
|
createLogger: () => createLogger,
|
|
6335
|
-
debug: () =>
|
|
6409
|
+
debug: () => dr,
|
|
6336
6410
|
derive: () => derive,
|
|
6337
|
-
emailSchema: () =>
|
|
6338
|
-
enrichedUserSchema: () =>
|
|
6339
|
-
error: () =>
|
|
6411
|
+
emailSchema: () => li,
|
|
6412
|
+
enrichedUserSchema: () => xi,
|
|
6413
|
+
error: () => cr,
|
|
6340
6414
|
errorCopy: () => errorCopy,
|
|
6341
6415
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
6342
6416
|
extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
|
|
@@ -6345,158 +6419,160 @@ var Do = object({
|
|
|
6345
6419
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6346
6420
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6347
6421
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6348
|
-
googleAuthSchema: () =>
|
|
6349
|
-
info: () =>
|
|
6422
|
+
googleAuthSchema: () => gi,
|
|
6423
|
+
info: () => ur,
|
|
6350
6424
|
isAgentReady: () => isAgentReady,
|
|
6351
6425
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
6352
6426
|
isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
|
|
6353
6427
|
isOperationActive: () => isOperationActive,
|
|
6354
6428
|
isTransitioning: () => isTransitioning,
|
|
6355
|
-
linkedinUsernameSchema: () =>
|
|
6356
|
-
logger: () =>
|
|
6357
|
-
loginSchema: () =>
|
|
6429
|
+
linkedinUsernameSchema: () => q,
|
|
6430
|
+
logger: () => N,
|
|
6431
|
+
loginSchema: () => ui,
|
|
6358
6432
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6359
6433
|
nanoid: () => nanoid,
|
|
6360
|
-
notificationWire: () =>
|
|
6434
|
+
notificationWire: () => bo,
|
|
6361
6435
|
objectId: () => objectId,
|
|
6362
|
-
orgInfoSchema: () =>
|
|
6363
|
-
orgSchema: () =>
|
|
6364
|
-
orgWithDefaultAgentSchema: () =>
|
|
6436
|
+
orgInfoSchema: () => bi,
|
|
6437
|
+
orgSchema: () => J,
|
|
6438
|
+
orgWithDefaultAgentSchema: () => vi,
|
|
6365
6439
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6366
6440
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6367
|
-
registerSchema: () =>
|
|
6441
|
+
registerSchema: () => di,
|
|
6368
6442
|
renderIssueAsMarkdown: () => renderIssueAsMarkdown,
|
|
6369
|
-
resetPasswordSchema: () =>
|
|
6443
|
+
resetPasswordSchema: () => pi,
|
|
6444
|
+
resolveVoice: () => resolveVoice,
|
|
6370
6445
|
retryPolicyFor: () => retryPolicyFor,
|
|
6371
6446
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6372
|
-
serverTransitionBudgets: () =>
|
|
6447
|
+
serverTransitionBudgets: () => Ti,
|
|
6373
6448
|
shortId: () => shortId,
|
|
6374
6449
|
toAgentState: () => toAgentState,
|
|
6375
6450
|
toChatStreamError: () => toChatStreamError,
|
|
6376
|
-
trace: () =>
|
|
6377
|
-
trialEligibilitySchema: () =>
|
|
6378
|
-
updateUserSchema: () =>
|
|
6379
|
-
userSchema: () =>
|
|
6451
|
+
trace: () => fr,
|
|
6452
|
+
trialEligibilitySchema: () => oi,
|
|
6453
|
+
updateUserSchema: () => ci,
|
|
6454
|
+
userSchema: () => si,
|
|
6380
6455
|
uuid: () => uuid,
|
|
6381
|
-
verifyCodeSchema: () =>
|
|
6382
|
-
warn: () =>
|
|
6456
|
+
verifyCodeSchema: () => fi,
|
|
6457
|
+
warn: () => lr,
|
|
6383
6458
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6384
|
-
zAcceptInvitationBody: () =>
|
|
6385
|
-
zAccessibleAgentRow: () =>
|
|
6386
|
-
|
|
6387
|
-
|
|
6459
|
+
zAcceptInvitationBody: () => go,
|
|
6460
|
+
zAccessibleAgentRow: () => yo,
|
|
6461
|
+
zAgentGender: () => U,
|
|
6462
|
+
zAgentRow: () => Ni,
|
|
6463
|
+
zApiError: () => Ri,
|
|
6388
6464
|
zApiOk: () => zApiOk,
|
|
6389
6465
|
zApiResponse: () => zApiResponse,
|
|
6390
|
-
zAppleAuthBody: () =>
|
|
6391
|
-
zAuthSessionData: () =>
|
|
6392
|
-
zAuthSessionResponse: () =>
|
|
6393
|
-
zAutomationPrimaryChannel: () =>
|
|
6394
|
-
zBackfillBillingData: () =>
|
|
6395
|
-
zBackfillCustomersData: () =>
|
|
6396
|
-
zBillingDetails: () =>
|
|
6397
|
-
zBillingInvoice: () =>
|
|
6398
|
-
zBillingPaymentMethod: () =>
|
|
6399
|
-
zBillingPlanKey: () =>
|
|
6400
|
-
zBillingStatus: () =>
|
|
6401
|
-
zBillingTier: () =>
|
|
6402
|
-
zBotGenerateImageBody: () =>
|
|
6403
|
-
zBotGenerateImageResponse: () =>
|
|
6404
|
-
zCancelConversationTurnBody: () =>
|
|
6405
|
-
zCancelConversationTurnResponse: () =>
|
|
6406
|
-
zCantRebuildReason: () =>
|
|
6407
|
-
zCantWakeReason: () =>
|
|
6408
|
-
zChatAttachment: () =>
|
|
6409
|
-
zChatAttachmentInput: () =>
|
|
6410
|
-
zChatAttachmentPlacement: () =>
|
|
6411
|
-
zChatCardSpec: () =>
|
|
6412
|
-
zChatErrorData: () =>
|
|
6413
|
-
zChatEvent: () =>
|
|
6414
|
-
zChatIssue: () =>
|
|
6415
|
-
zChatMessage: () =>
|
|
6416
|
-
zChatMessageAttentionItem: () =>
|
|
6417
|
-
zChatMessageAttentionRef: () =>
|
|
6418
|
-
zChatMessageAttentionUpdate: () =>
|
|
6419
|
-
zChatMessageMetadata: () =>
|
|
6420
|
-
zChatStatusData: () =>
|
|
6421
|
-
zChatToolActivityData: () =>
|
|
6422
|
-
zChatToolActivityVisual: () =>
|
|
6423
|
-
zChatVisualSpec: () =>
|
|
6424
|
-
zCompleteCheckoutData: () =>
|
|
6425
|
-
zConversationLastMessage: () =>
|
|
6426
|
-
zConversationParticipant: () =>
|
|
6427
|
-
zConversationSummary: () =>
|
|
6428
|
-
zConversationTarget: () =>
|
|
6429
|
-
zConversationUpdatedEvent: () =>
|
|
6430
|
-
zCreateAgentBody: () =>
|
|
6431
|
-
zCreateConversationBody: () =>
|
|
6432
|
-
zCreateConversationSessionBody: () =>
|
|
6433
|
-
zCreateOrgBody: () =>
|
|
6434
|
-
zDesiredStatus: () =>
|
|
6435
|
-
zErrorCode: () =>
|
|
6466
|
+
zAppleAuthBody: () => la,
|
|
6467
|
+
zAuthSessionData: () => ua,
|
|
6468
|
+
zAuthSessionResponse: () => da,
|
|
6469
|
+
zAutomationPrimaryChannel: () => Ai,
|
|
6470
|
+
zBackfillBillingData: () => Ea,
|
|
6471
|
+
zBackfillCustomersData: () => Ta,
|
|
6472
|
+
zBillingDetails: () => Ca,
|
|
6473
|
+
zBillingInvoice: () => xa,
|
|
6474
|
+
zBillingPaymentMethod: () => ba,
|
|
6475
|
+
zBillingPlanKey: () => va,
|
|
6476
|
+
zBillingStatus: () => ya,
|
|
6477
|
+
zBillingTier: () => K,
|
|
6478
|
+
zBotGenerateImageBody: () => sa,
|
|
6479
|
+
zBotGenerateImageResponse: () => ca,
|
|
6480
|
+
zCancelConversationTurnBody: () => Ja,
|
|
6481
|
+
zCancelConversationTurnResponse: () => Ya,
|
|
6482
|
+
zCantRebuildReason: () => vo,
|
|
6483
|
+
zCantWakeReason: () => _o,
|
|
6484
|
+
zChatAttachment: () => Gi,
|
|
6485
|
+
zChatAttachmentInput: () => $i,
|
|
6486
|
+
zChatAttachmentPlacement: () => Wi,
|
|
6487
|
+
zChatCardSpec: () => ja,
|
|
6488
|
+
zChatErrorData: () => Oa,
|
|
6489
|
+
zChatEvent: () => ka,
|
|
6490
|
+
zChatIssue: () => z,
|
|
6491
|
+
zChatMessage: () => Qi,
|
|
6492
|
+
zChatMessageAttentionItem: () => Yi,
|
|
6493
|
+
zChatMessageAttentionRef: () => Ki,
|
|
6494
|
+
zChatMessageAttentionUpdate: () => Xi,
|
|
6495
|
+
zChatMessageMetadata: () => Zi,
|
|
6496
|
+
zChatStatusData: () => Da,
|
|
6497
|
+
zChatToolActivityData: () => Vi,
|
|
6498
|
+
zChatToolActivityVisual: () => Bi,
|
|
6499
|
+
zChatVisualSpec: () => Ua,
|
|
6500
|
+
zCompleteCheckoutData: () => wa,
|
|
6501
|
+
zConversationLastMessage: () => Ga,
|
|
6502
|
+
zConversationParticipant: () => Wa,
|
|
6503
|
+
zConversationSummary: () => Ka,
|
|
6504
|
+
zConversationTarget: () => ta,
|
|
6505
|
+
zConversationUpdatedEvent: () => Za,
|
|
6506
|
+
zCreateAgentBody: () => ji,
|
|
6507
|
+
zCreateConversationBody: () => na,
|
|
6508
|
+
zCreateConversationSessionBody: () => ra,
|
|
6509
|
+
zCreateOrgBody: () => Eo,
|
|
6510
|
+
zDesiredStatus: () => V,
|
|
6511
|
+
zErrorCode: () => Ii,
|
|
6436
6512
|
zErrorResponses: () => zErrorResponses,
|
|
6437
|
-
zFleetAgent: () =>
|
|
6438
|
-
zFleetSummary: () =>
|
|
6439
|
-
zFleetSyncResponse: () =>
|
|
6440
|
-
zHandoffConsumeBody: () =>
|
|
6441
|
-
zHandoffConsumeData: () =>
|
|
6442
|
-
zHandoffConsumeResponse: () =>
|
|
6443
|
-
zHandoffMintBody: () =>
|
|
6444
|
-
zHandoffMintData: () =>
|
|
6445
|
-
zHandoffMintResponse: () =>
|
|
6446
|
-
zHeartbeatLocalTime: () =>
|
|
6447
|
-
zHeartbeatMoment: () =>
|
|
6448
|
-
zIanaTimezone: () =>
|
|
6449
|
-
zImageAspectRatio: () =>
|
|
6450
|
-
zImageResolution: () =>
|
|
6451
|
-
zInvitationPreview: () =>
|
|
6452
|
-
zInvitationRow: () =>
|
|
6453
|
-
zInviteBody: () =>
|
|
6454
|
-
zLifecycle: () =>
|
|
6455
|
-
zLifecycleVerb: () =>
|
|
6456
|
-
zLiveStatus: () =>
|
|
6457
|
-
zMarkReadBody: () =>
|
|
6458
|
-
zMediaContext: () =>
|
|
6459
|
-
zMediaObject: () =>
|
|
6460
|
-
zMediaType: () =>
|
|
6461
|
-
zMemberRow: () =>
|
|
6462
|
-
zMessageSearchResult: () =>
|
|
6463
|
-
zOrgRow: () =>
|
|
6464
|
-
zOrgSummary: () =>
|
|
6513
|
+
zFleetAgent: () => no,
|
|
6514
|
+
zFleetSummary: () => ro,
|
|
6515
|
+
zFleetSyncResponse: () => io,
|
|
6516
|
+
zHandoffConsumeBody: () => ha,
|
|
6517
|
+
zHandoffConsumeData: () => ga,
|
|
6518
|
+
zHandoffConsumeResponse: () => _a,
|
|
6519
|
+
zHandoffMintBody: () => fa,
|
|
6520
|
+
zHandoffMintData: () => pa,
|
|
6521
|
+
zHandoffMintResponse: () => ma,
|
|
6522
|
+
zHeartbeatLocalTime: () => E,
|
|
6523
|
+
zHeartbeatMoment: () => rr,
|
|
6524
|
+
zIanaTimezone: () => X,
|
|
6525
|
+
zImageAspectRatio: () => aa,
|
|
6526
|
+
zImageResolution: () => oa,
|
|
6527
|
+
zInvitationPreview: () => po,
|
|
6528
|
+
zInvitationRow: () => fo,
|
|
6529
|
+
zInviteBody: () => mo,
|
|
6530
|
+
zLifecycle: () => H,
|
|
6531
|
+
zLifecycleVerb: () => Yr,
|
|
6532
|
+
zLiveStatus: () => Wr,
|
|
6533
|
+
zMarkReadBody: () => qa,
|
|
6534
|
+
zMediaContext: () => ao,
|
|
6535
|
+
zMediaObject: () => so,
|
|
6536
|
+
zMediaType: () => oo,
|
|
6537
|
+
zMemberRow: () => uo,
|
|
6538
|
+
zMessageSearchResult: () => Xa,
|
|
6539
|
+
zOrgRow: () => To,
|
|
6540
|
+
zOrgSummary: () => ko,
|
|
6465
6541
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6466
|
-
zPlanTone: () =>
|
|
6467
|
-
zProviderErrorKind: () =>
|
|
6468
|
-
zPublicServiceOverview: () =>
|
|
6469
|
-
zReportMessageBody: () =>
|
|
6470
|
-
zRuntimeOperation: () =>
|
|
6471
|
-
zRuntimeOperationKind: () =>
|
|
6472
|
-
zRuntimeOperationStatus: () =>
|
|
6473
|
-
zSendMessageBody: () =>
|
|
6474
|
-
zSuggestedPrompt: () =>
|
|
6475
|
-
zUpdateAgentBody: () =>
|
|
6476
|
-
zUpdateOrgBody: () =>
|
|
6477
|
-
zUpdateRoleBody: () =>
|
|
6478
|
-
zUpdateUserBody: () =>
|
|
6479
|
-
zUploadMediaBody: () =>
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
}),
|
|
6542
|
+
zPlanTone: () => Oo,
|
|
6543
|
+
zProviderErrorKind: () => Li,
|
|
6544
|
+
zPublicServiceOverview: () => Fo,
|
|
6545
|
+
zReportMessageBody: () => ia,
|
|
6546
|
+
zRuntimeOperation: () => Ur,
|
|
6547
|
+
zRuntimeOperationKind: () => Vr,
|
|
6548
|
+
zRuntimeOperationStatus: () => Hr,
|
|
6549
|
+
zSendMessageBody: () => ea,
|
|
6550
|
+
zSuggestedPrompt: () => Pi,
|
|
6551
|
+
zUpdateAgentBody: () => Mi,
|
|
6552
|
+
zUpdateOrgBody: () => Do,
|
|
6553
|
+
zUpdateRoleBody: () => ho,
|
|
6554
|
+
zUpdateUserBody: () => Io,
|
|
6555
|
+
zUploadMediaBody: () => co,
|
|
6556
|
+
zVoiceKey: () => G,
|
|
6557
|
+
zVoiceProviderName: () => $r,
|
|
6558
|
+
zVoiceProviderSession: () => Qr,
|
|
6559
|
+
zVoiceSessionMint: () => ei,
|
|
6560
|
+
zVoiceSessionMintBody: () => Zr
|
|
6561
|
+
}), Ro = "1.0.0";
|
|
6486
6562
|
function buildContract(e = {}) {
|
|
6487
6563
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6488
6564
|
let r = contractNameFor(e);
|
|
6489
6565
|
r && (n[r] = toSchema(t));
|
|
6490
6566
|
};
|
|
6491
|
-
for (let [e, t] of Object.entries(
|
|
6492
|
-
if (t instanceof
|
|
6567
|
+
for (let [e, t] of Object.entries(Lo)) {
|
|
6568
|
+
if (t instanceof S) {
|
|
6493
6569
|
addSchema(e, t);
|
|
6494
6570
|
continue;
|
|
6495
6571
|
}
|
|
6496
|
-
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof
|
|
6572
|
+
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
|
|
6497
6573
|
}
|
|
6498
6574
|
return {
|
|
6499
|
-
version:
|
|
6575
|
+
version: Ro,
|
|
6500
6576
|
generatedAt: t.toISOString(),
|
|
6501
6577
|
schemas: n
|
|
6502
6578
|
};
|
|
@@ -6516,6 +6592,6 @@ function sortedReplacer(e, t) {
|
|
|
6516
6592
|
return t;
|
|
6517
6593
|
}
|
|
6518
6594
|
//#endregion
|
|
6519
|
-
export {
|
|
6595
|
+
export { Ro as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6520
6596
|
|
|
6521
6597
|
//# sourceMappingURL=contract.js.map
|