@pagelines/sdk 1.0.775 → 1.0.777

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/contract.js CHANGED
@@ -836,7 +836,7 @@ var Ce = /* @__PURE__ */ e((e) => {
836
836
  vendor: "zod",
837
837
  version: 1
838
838
  }));
839
- }), Ke = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
839
+ }), y = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
840
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);
@@ -848,11 +848,11 @@ var Ce = /* @__PURE__ */ e((e) => {
848
848
  inst: e
849
849
  }), n;
850
850
  };
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) => {
851
+ }), b = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
852
+ g.init(e, t), y.init(e, t);
853
+ }), Ke = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
854
+ t.pattern ?? (t.pattern = le), b.init(e, t);
855
+ }), qe = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
856
856
  if (t.version) {
857
857
  let e = {
858
858
  v1: 1,
@@ -867,11 +867,11 @@ var Ce = /* @__PURE__ */ e((e) => {
867
867
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
868
868
  t.pattern ?? (t.pattern = ue(e));
869
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) => {
870
+ b.init(e, t);
871
+ }), Je = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
872
+ t.pattern ?? (t.pattern = de), b.init(e, t);
873
+ }), Ye = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
874
+ b.init(e, t), e._zod.check = (n) => {
875
875
  try {
876
876
  let r = n.value.trim();
877
877
  if (!t.normalize && t.protocol?.source === ye.source && !/^https?:\/\//i.test(r)) {
@@ -914,32 +914,32 @@ var Ce = /* @__PURE__ */ e((e) => {
914
914
  });
915
915
  }
916
916
  };
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) => {
917
+ }), Xe = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
918
+ t.pattern ?? (t.pattern = emoji()), b.init(e, t);
919
+ }), Ze = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
920
+ t.pattern ?? (t.pattern = se), b.init(e, t);
921
+ }), Qe = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
922
+ t.pattern ?? (t.pattern = ne), b.init(e, t);
923
+ }), $e = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
924
+ t.pattern ?? (t.pattern = re), b.init(e, t);
925
+ }), et = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
926
+ t.pattern ?? (t.pattern = ie), b.init(e, t);
927
+ }), tt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
928
+ t.pattern ?? (t.pattern = ae), b.init(e, t);
929
+ }), nt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
930
+ t.pattern ?? (t.pattern = oe), b.init(e, t);
931
+ }), rt = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
932
+ t.pattern ?? (t.pattern = datetime$1(t)), b.init(e, t);
933
+ }), it = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
934
+ t.pattern ?? (t.pattern = Se), b.init(e, t);
935
+ }), at = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
936
+ t.pattern ?? (t.pattern = time$1(t)), b.init(e, t);
937
+ }), ot = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
938
+ t.pattern ?? (t.pattern = ce), b.init(e, t);
939
+ }), st = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
940
+ t.pattern ?? (t.pattern = pe), b.init(e, t), e._zod.bag.format = "ipv4";
941
+ }), ct = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
942
+ t.pattern ?? (t.pattern = me), b.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
943
943
  try {
944
944
  new URL(`http://[${n.value}]`);
945
945
  } catch {
@@ -952,10 +952,10 @@ var Ce = /* @__PURE__ */ e((e) => {
952
952
  });
953
953
  }
954
954
  };
955
- }), 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) => {
955
+ }), lt = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
956
+ t.pattern ?? (t.pattern = he), b.init(e, t);
957
+ }), ut = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
958
+ t.pattern ?? (t.pattern = ge), b.init(e, t), e._zod.check = (n) => {
959
959
  let r = n.value.split("/");
960
960
  try {
961
961
  if (r.length !== 2) throw Error();
@@ -984,8 +984,8 @@ function isValidBase64(e) {
984
984
  return !1;
985
985
  }
986
986
  }
987
- var 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) => {
987
+ var dt = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
988
+ t.pattern ?? (t.pattern = _e), b.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
989
989
  isValidBase64(n.value) || n.issues.push({
990
990
  code: "invalid_format",
991
991
  format: "base64",
@@ -1000,8 +1000,8 @@ function isValidBase64URL(e) {
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 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) => {
1003
+ var ft = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1004
+ t.pattern ?? (t.pattern = ve), b.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1005
1005
  isValidBase64URL(n.value) || n.issues.push({
1006
1006
  code: "invalid_format",
1007
1007
  format: "base64url",
@@ -1010,8 +1010,8 @@ var pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1010
1010
  continue: !t.abort
1011
1011
  });
1012
1012
  };
1013
- }), mt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
- t.pattern ?? (t.pattern = be), y.init(e, t);
1013
+ }), pt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
+ t.pattern ?? (t.pattern = be), b.init(e, t);
1015
1015
  });
1016
1016
  function isValidJWT(e, t = null) {
1017
1017
  try {
@@ -1025,8 +1025,8 @@ function isValidJWT(e, t = null) {
1025
1025
  return !1;
1026
1026
  }
1027
1027
  }
1028
- var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
- y.init(e, t), e._zod.check = (n) => {
1028
+ var mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
+ b.init(e, t), e._zod.check = (n) => {
1030
1030
  isValidJWT(n.value, t.alg) || n.issues.push({
1031
1031
  code: "invalid_format",
1032
1032
  format: "jwt",
@@ -1035,7 +1035,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1035
1035
  continue: !t.abort
1036
1036
  });
1037
1037
  };
1038
- }), gt = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
1038
+ }), ht = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
1039
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);
@@ -1051,9 +1051,9 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1051
1051
  ...a ? { received: a } : {}
1052
1052
  }), n;
1053
1053
  };
1054
- }), _t = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
- Pe.init(e, t), gt.init(e, t);
1056
- }), vt = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
1054
+ }), gt = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
+ Pe.init(e, t), ht.init(e, t);
1056
+ }), _t = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
1057
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;
@@ -1066,7 +1066,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1066
1066
  inst: e
1067
1067
  }), n;
1068
1068
  };
1069
- }), yt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
1069
+ }), vt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
1070
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({
@@ -1076,11 +1076,11 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1076
1076
  inst: e
1077
1077
  }), t;
1078
1078
  };
1079
- }), bt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1079
+ }), yt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1080
1080
  v.init(e, t), e._zod.parse = (e) => e;
1081
- }), xt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1081
+ }), bt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1082
1082
  v.init(e, t), e._zod.parse = (e) => e;
1083
- }), St = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
1083
+ }), xt = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
1084
1084
  v.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1085
1085
  expected: "never",
1086
1086
  code: "invalid_type",
@@ -1091,7 +1091,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1091
1091
  function handleArrayResult(e, t, n) {
1092
1092
  e.issues.length && t.issues.push(...prefixIssues(n, e.issues)), t.value[n] = e.value;
1093
1093
  }
1094
- var Ct = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
1094
+ var St = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
1095
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({
@@ -1162,7 +1162,7 @@ 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 wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1165
+ var Ct = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1166
1166
  if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1167
1167
  let e = t.shape;
1168
1168
  Object.defineProperty(t, "shape", { get: () => {
@@ -1203,8 +1203,8 @@ var wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1203
1203
  }
1204
1204
  return i ? handleCatchall(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1205
1205
  };
1206
- }), Tt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
- wt.init(e, t);
1206
+ }), wt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
+ Ct.init(e, t);
1208
1208
  let n = e._zod.parse, r = cached(() => normalizeDef(t)), generateFastpass = (e) => {
1209
1209
  let t = new Doc([
1210
1210
  "shape",
@@ -1306,7 +1306,7 @@ 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 Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1309
+ var Tt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1310
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", () => {
@@ -1332,8 +1332,8 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1332
1332
  }
1333
1333
  return a ? Promise.all(o).then((t) => handleUnionResults(t, r, e, i)) : handleUnionResults(o, r, e, i);
1334
1334
  };
1335
- }), Dt = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
- t.inclusive = !1, Et.init(e, t);
1335
+ }), Et = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
+ t.inclusive = !1, Tt.init(e, t);
1337
1337
  let n = e._zod.parse;
1338
1338
  defineLazy(e._zod, "propValues", () => {
1339
1339
  let e = {};
@@ -1379,7 +1379,7 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1379
1379
  inst: e
1380
1380
  }), i);
1381
1381
  };
1382
- }), Ot = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
1382
+ }), Dt = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
1383
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,
@@ -1455,7 +1455,7 @@ 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 kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1458
+ var Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1459
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({
@@ -1541,7 +1541,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1541
1541
  }
1542
1542
  return a.length ? Promise.all(a).then(() => n) : n;
1543
1543
  };
1544
- }), At = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
1544
+ }), kt = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
1545
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) => {
@@ -1553,7 +1553,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1553
1553
  inst: e
1554
1554
  }), t;
1555
1555
  };
1556
- }), jt = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
1556
+ }), At = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
1557
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) => {
@@ -1565,7 +1565,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1565
1565
  inst: e
1566
1566
  }), r;
1567
1567
  };
1568
- }), Mt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
1568
+ }), jt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
1569
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);
@@ -1580,7 +1580,7 @@ function handleOptionalResult(e, t) {
1580
1580
  value: void 0
1581
1581
  } : e;
1582
1582
  }
1583
- var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1583
+ var Mt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1584
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;
@@ -1591,14 +1591,14 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1591
1591
  }
1592
1592
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1593
1593
  };
1594
- }), 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) => {
1594
+ }), Nt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
1595
+ Mt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1596
+ }), Pt = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
1597
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
- }), It = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
1601
+ }), Ft = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
1602
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;
@@ -1609,9 +1609,9 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1609
1609
  function handleDefaultResult(e, t) {
1610
1610
  return e.value === void 0 && (e.value = t.defaultValue), e;
1611
1611
  }
1612
- var Lt = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
1612
+ var It = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
1613
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) => {
1614
+ }), Lt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
1615
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;
@@ -1628,7 +1628,7 @@ function handleNonOptionalResult(e, t) {
1628
1628
  inst: t
1629
1629
  }), e;
1630
1630
  }
1631
- var zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1631
+ var Rt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1632
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);
@@ -1642,7 +1642,7 @@ var zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1642
1642
  input: e.value
1643
1643
  }), e.issues = [], e.fallback = !0), e);
1644
1644
  };
1645
- }), Bt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
1645
+ }), zt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
1646
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);
@@ -1659,9 +1659,9 @@ function handlePipeResult(e, t, n) {
1659
1659
  fallback: e.fallback
1660
1660
  }, n);
1661
1661
  }
1662
- var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
- Bt.init(e, t);
1664
- }), Ht = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
1662
+ var Bt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
+ zt.init(e, t);
1664
+ }), Vt = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
1665
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);
@@ -1671,7 +1671,7 @@ var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1671
1671
  function handleReadonlyResult(e) {
1672
1672
  return e.value = Object.freeze(e.value), e;
1673
1673
  }
1674
- var Ut = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
1674
+ var Ht = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
1675
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));
@@ -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 Wt, $ZodRegistry = class {
1695
+ var Ut, $ZodRegistry = class {
1696
1696
  constructor() {
1697
1697
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1698
1698
  }
@@ -1727,8 +1727,8 @@ var Wt, $ZodRegistry = class {
1727
1727
  function registry() {
1728
1728
  return new $ZodRegistry();
1729
1729
  }
1730
- (Wt = globalThis).__zod_globalRegistry ?? (Wt.__zod_globalRegistry = registry());
1731
- var b = globalThis.__zod_globalRegistry;
1730
+ (Ut = globalThis).__zod_globalRegistry ?? (Ut.__zod_globalRegistry = registry());
1731
+ var x = globalThis.__zod_globalRegistry;
1732
1732
  //#endregion
1733
1733
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1734
1734
  // @__NO_SIDE_EFFECTS__
@@ -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 ?? b,
2241
+ metadataRegistry: e?.metadata ?? x,
2242
2242
  target: t,
2243
2243
  unrepresentable: e?.unrepresentable ?? "throw",
2244
2244
  override: e?.override ?? (() => {}),
@@ -2454,7 +2454,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2454
2454
  processors: n
2455
2455
  });
2456
2456
  return process$1(e, o), extractDefs(o, e), finalize(o, e);
2457
- }, Gt = {
2457
+ }, Wt = {
2458
2458
  guid: "uuid",
2459
2459
  url: "uri",
2460
2460
  datetime: "date-time",
@@ -2464,7 +2464,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2464
2464
  let i = n;
2465
2465
  i.type = "string";
2466
2466
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2467
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Gt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2467
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Wt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2468
2468
  let e = [...c];
2469
2469
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2470
2470
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
@@ -2688,7 +2688,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2688
2688
  process$1(i, t, r);
2689
2689
  let a = t.seen.get(e);
2690
2690
  a.ref = i;
2691
- }, Kt = {
2691
+ }, Gt = {
2692
2692
  string: stringProcessor,
2693
2693
  number: numberProcessor,
2694
2694
  boolean: booleanProcessor,
@@ -2733,7 +2733,7 @@ function toJSONSchema(e, t) {
2733
2733
  if ("_idmap" in e) {
2734
2734
  let n = e, r = initializeContext({
2735
2735
  ...t,
2736
- processors: Kt
2736
+ processors: Gt
2737
2737
  }), i = {};
2738
2738
  for (let e of n._idmap.entries()) {
2739
2739
  let [t, n] = e;
@@ -2753,35 +2753,35 @@ function toJSONSchema(e, t) {
2753
2753
  }
2754
2754
  let n = initializeContext({
2755
2755
  ...t,
2756
- processors: Kt
2756
+ processors: Gt
2757
2757
  });
2758
2758
  return process$1(e, n), extractDefs(n, e), finalize(n, e);
2759
2759
  }
2760
2760
  //#endregion
2761
2761
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
2762
- var qt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
- it.init(e, t), C.init(e, t);
2762
+ var Kt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
+ rt.init(e, t), w.init(e, t);
2764
2764
  });
2765
2765
  function datetime(e) {
2766
- return /* @__PURE__ */ _isoDateTime(qt, e);
2766
+ return /* @__PURE__ */ _isoDateTime(Kt, e);
2767
2767
  }
2768
- var Jt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
- at.init(e, t), C.init(e, t);
2768
+ var qt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
+ it.init(e, t), w.init(e, t);
2770
2770
  });
2771
2771
  function date(e) {
2772
- return /* @__PURE__ */ _isoDate(Jt, e);
2772
+ return /* @__PURE__ */ _isoDate(qt, e);
2773
2773
  }
2774
- var Yt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
- ot.init(e, t), C.init(e, t);
2774
+ var Jt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
+ at.init(e, t), w.init(e, t);
2776
2776
  });
2777
2777
  function time(e) {
2778
- return /* @__PURE__ */ _isoTime(Yt, e);
2778
+ return /* @__PURE__ */ _isoTime(Jt, e);
2779
2779
  }
2780
- var Xt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
- st.init(e, t), C.init(e, t);
2780
+ var Yt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
+ ot.init(e, t), w.init(e, t);
2782
2782
  });
2783
2783
  function duration(e) {
2784
- return /* @__PURE__ */ _isoDuration(Xt, e);
2784
+ return /* @__PURE__ */ _isoDuration(Yt, e);
2785
2785
  }
2786
2786
  //#endregion
2787
2787
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
@@ -2799,10 +2799,10 @@ var initializer = (e, t) => {
2799
2799
  return e.issues.length === 0;
2800
2800
  } }
2801
2801
  });
2802
- }, 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();
2802
+ }, S = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Xt = /* @__PURE__ */ _parse(S), Zt = /* @__PURE__ */ _parseAsync(S), Qt = /* @__PURE__ */ _safeParse(S), $t = /* @__PURE__ */ _safeParseAsync(S), en = /* @__PURE__ */ _encode(S), tn = /* @__PURE__ */ _decode(S), nn = /* @__PURE__ */ _encodeAsync(S), rn = /* @__PURE__ */ _decodeAsync(S), an = /* @__PURE__ */ _safeEncode(S), on = /* @__PURE__ */ _safeDecode(S), sn = /* @__PURE__ */ _safeEncodeAsync(S), cn = /* @__PURE__ */ _safeDecodeAsync(S), ln = /* @__PURE__ */ new WeakMap();
2803
2803
  function _installLazyMethods(e, t, n) {
2804
- let r = Object.getPrototypeOf(e), i = un.get(r);
2805
- if (i || (i = /* @__PURE__ */ new Set(), un.set(r, i)), !i.has(t)) {
2804
+ let r = Object.getPrototypeOf(e), i = ln.get(r);
2805
+ if (i || (i = /* @__PURE__ */ new Set(), ln.set(r, i)), !i.has(t)) {
2806
2806
  i.add(t);
2807
2807
  for (let e in n) {
2808
2808
  let t = n[e];
@@ -2830,10 +2830,10 @@ function _installLazyMethods(e, t, n) {
2830
2830
  }
2831
2831
  }
2832
2832
  }
2833
- var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2833
+ var C = /*@__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) => 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", {
2836
+ } }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Xt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Qt(e, t, n), e.parseAsync = async (t, n) => Zt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => $t(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => en(e, t, n), e.decode = (t, n) => tn(e, t, n), e.encodeAsync = async (t, n) => nn(e, t, n), e.decodeAsync = async (t, n) => rn(e, t, n), e.safeEncode = (t, n) => an(e, t, n), e.safeDecode = (t, n) => on(e, t, n), e.safeEncodeAsync = async (t, n) => sn(e, t, n), e.safeDecodeAsync = async (t, n) => cn(e, t, n), _installLazyMethods(e, "ZodType", {
2837
2837
  check(...e) {
2838
2838
  let t = this.def;
2839
2839
  return this.clone(mergeDefs(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -2907,12 +2907,12 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2907
2907
  },
2908
2908
  describe(e) {
2909
2909
  let t = this.clone();
2910
- return b.add(t, { description: e }), t;
2910
+ return x.add(t, { description: e }), t;
2911
2911
  },
2912
2912
  meta(...e) {
2913
- if (e.length === 0) return b.get(this);
2913
+ if (e.length === 0) return x.get(this);
2914
2914
  let t = this.clone();
2915
- return b.add(t, e[0]), t;
2915
+ return x.add(t, e[0]), t;
2916
2916
  },
2917
2917
  isOptional() {
2918
2918
  return this.safeParse(void 0).success;
@@ -2925,11 +2925,11 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2925
2925
  }
2926
2926
  }), Object.defineProperty(e, "description", {
2927
2927
  get() {
2928
- return b.get(e)?.description;
2928
+ return x.get(e)?.description;
2929
2929
  },
2930
2930
  configurable: !0
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);
2931
+ }), e)), un = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
2932
+ y.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
2933
2933
  let n = e._zod.bag;
2934
2934
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, _installLazyMethods(e, "_ZodString", {
2935
2935
  regex(...e) {
@@ -2978,58 +2978,62 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2978
2978
  return this.check(/* @__PURE__ */ _slugify());
2979
2979
  }
2980
2980
  });
2981
- }), 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));
2981
+ }), dn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
2982
+ y.init(e, t), un.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(fn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(mn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(kn, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(hn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(T, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(T, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(T, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(T, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(_n, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(vn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(yn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(En, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(Dn, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(bn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(xn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Sn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(Cn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(wn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(Tn, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(On, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
2983
2983
  });
2984
2984
  function string(e) {
2985
- return /* @__PURE__ */ _string(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);
2985
+ return /* @__PURE__ */ _string(dn, e);
2986
+ }
2987
+ var w = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
2988
+ b.init(e, t), un.init(e, t);
2989
+ }), fn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
2990
+ Je.init(e, t), w.init(e, t);
2991
+ });
2992
+ function email(e) {
2993
+ return /* @__PURE__ */ _email(fn, e);
2994
+ }
2995
+ var pn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
2996
+ Ke.init(e, t), w.init(e, t);
2997
+ }), T = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
2998
+ qe.init(e, t), w.init(e, t);
2999
+ }), mn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
3000
+ Ye.init(e, t), w.init(e, t);
2997
3001
  });
2998
3002
  function url(e) {
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", {
3003
+ return /* @__PURE__ */ _url(mn, e);
3004
+ }
3005
+ var hn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3006
+ Xe.init(e, t), w.init(e, t);
3007
+ }), gn = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
3008
+ Ze.init(e, t), w.init(e, t);
3009
+ }), _n = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
3010
+ Qe.init(e, t), w.init(e, t);
3011
+ }), vn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
3012
+ $e.init(e, t), w.init(e, t);
3013
+ }), yn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
3014
+ et.init(e, t), w.init(e, t);
3015
+ }), bn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
3016
+ tt.init(e, t), w.init(e, t);
3017
+ }), xn = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
3018
+ nt.init(e, t), w.init(e, t);
3019
+ }), Sn = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
3020
+ st.init(e, t), w.init(e, t);
3021
+ }), Cn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
3022
+ ct.init(e, t), w.init(e, t);
3023
+ }), wn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
3024
+ lt.init(e, t), w.init(e, t);
3025
+ }), Tn = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
3026
+ ut.init(e, t), w.init(e, t);
3027
+ }), En = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
3028
+ dt.init(e, t), w.init(e, t);
3029
+ }), Dn = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
3030
+ ft.init(e, t), w.init(e, t);
3031
+ }), On = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
3032
+ pt.init(e, t), w.init(e, t);
3033
+ }), kn = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
3034
+ mt.init(e, t), w.init(e, t);
3035
+ }), An = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
3036
+ ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
3033
3037
  gt(e, t) {
3034
3038
  return this.check(/* @__PURE__ */ _gt(e, t));
3035
3039
  },
@@ -3080,46 +3084,46 @@ var gn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3080
3084
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3081
3085
  });
3082
3086
  function number(e) {
3083
- return /* @__PURE__ */ _number(jn, e);
3087
+ return /* @__PURE__ */ _number(An, e);
3084
3088
  }
3085
- var Mn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3086
- _t.init(e, t), jn.init(e, t);
3089
+ var jn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3090
+ gt.init(e, t), An.init(e, t);
3087
3091
  });
3088
3092
  function int(e) {
3089
- return /* @__PURE__ */ _int(Mn, e);
3093
+ return /* @__PURE__ */ _int(jn, e);
3090
3094
  }
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);
3095
+ var Mn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
3096
+ _t.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
3093
3097
  });
3094
3098
  function boolean(e) {
3095
- return /* @__PURE__ */ _boolean(Nn, e);
3099
+ return /* @__PURE__ */ _boolean(Mn, e);
3096
3100
  }
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);
3101
+ var Nn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
3102
+ vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
3099
3103
  });
3100
3104
  function _null(e) {
3101
- return /* @__PURE__ */ _null$1(Pn, e);
3105
+ return /* @__PURE__ */ _null$1(Nn, e);
3102
3106
  }
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;
3107
+ var Pn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
3108
+ yt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3105
3109
  });
3106
3110
  function any() {
3107
- return /* @__PURE__ */ _any(Fn);
3111
+ return /* @__PURE__ */ _any(Pn);
3108
3112
  }
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;
3113
+ var Fn = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
3114
+ bt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3111
3115
  });
3112
3116
  function unknown() {
3113
- return /* @__PURE__ */ _unknown(In);
3117
+ return /* @__PURE__ */ _unknown(Fn);
3114
3118
  }
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);
3119
+ var In = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
3120
+ xt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
3117
3121
  });
3118
3122
  function never(e) {
3119
- return /* @__PURE__ */ _never(Ln, e);
3123
+ return /* @__PURE__ */ _never(In, e);
3120
3124
  }
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", {
3125
+ var Ln = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3126
+ St.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => arrayProcessor(e, t, n, r), e.element = t.element, _installLazyMethods(e, "ZodArray", {
3123
3127
  min(e, t) {
3124
3128
  return this.check(/* @__PURE__ */ _minLength(e, t));
3125
3129
  },
@@ -3138,10 +3142,10 @@ var Rn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3138
3142
  });
3139
3143
  });
3140
3144
  function array(e, t) {
3141
- return /* @__PURE__ */ _array(Rn, e, t);
3145
+ return /* @__PURE__ */ _array(Ln, e, t);
3142
3146
  }
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", {
3147
+ var Rn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3148
+ wt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => objectProcessor(e, t, n, r), defineLazy(e, "shape", () => t.shape), _installLazyMethods(e, "ZodObject", {
3145
3149
  keyof() {
3146
3150
  return _enum(Object.keys(this._zod.def.shape));
3147
3151
  },
@@ -3199,67 +3203,67 @@ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3199
3203
  });
3200
3204
  });
3201
3205
  function object(e, t) {
3202
- return new zn({
3206
+ return new Rn({
3203
3207
  type: "object",
3204
3208
  shape: e ?? {},
3205
3209
  ...normalizeParams(t)
3206
3210
  });
3207
3211
  }
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;
3212
+ var zn = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
3213
+ Tt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
3210
3214
  });
3211
3215
  function union(e, t) {
3212
- return new Bn({
3216
+ return new zn({
3213
3217
  type: "union",
3214
3218
  options: e,
3215
3219
  ...normalizeParams(t)
3216
3220
  });
3217
3221
  }
3218
- var Vn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3219
- Bn.init(e, t), Dt.init(e, t);
3222
+ var Bn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3223
+ zn.init(e, t), Et.init(e, t);
3220
3224
  });
3221
3225
  function discriminatedUnion(e, t, n) {
3222
- return new Vn({
3226
+ return new Bn({
3223
3227
  type: "union",
3224
3228
  options: t,
3225
3229
  discriminator: e,
3226
3230
  ...normalizeParams(n)
3227
3231
  });
3228
3232
  }
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);
3233
+ var Vn = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
3234
+ Dt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
3231
3235
  });
3232
3236
  function intersection(e, t) {
3233
- return new Hn({
3237
+ return new Vn({
3234
3238
  type: "intersection",
3235
3239
  left: e,
3236
3240
  right: t
3237
3241
  });
3238
3242
  }
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;
3243
+ var Hn = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
3244
+ Ot.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => recordProcessor(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
3241
3245
  });
3242
3246
  function record(e, t, n) {
3243
- return !t || !t._zod ? new Un({
3247
+ return !t || !t._zod ? new Hn({
3244
3248
  type: "record",
3245
3249
  keyType: string(),
3246
3250
  valueType: e,
3247
3251
  ...normalizeParams(t)
3248
- }) : new Un({
3252
+ }) : new Hn({
3249
3253
  type: "record",
3250
3254
  keyType: e,
3251
3255
  valueType: t,
3252
3256
  ...normalizeParams(n)
3253
3257
  });
3254
3258
  }
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);
3259
+ var Un = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3260
+ kt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3257
3261
  let n = new Set(Object.keys(t.entries));
3258
3262
  e.extract = (e, r) => {
3259
3263
  let i = {};
3260
3264
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3261
3265
  else throw Error(`Key ${r} not found in enum`);
3262
- return new T({
3266
+ return new Un({
3263
3267
  ...t,
3264
3268
  checks: [],
3265
3269
  ...normalizeParams(r),
@@ -3269,7 +3273,7 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3269
3273
  let i = { ...t.entries };
3270
3274
  for (let t of e) if (n.has(t)) delete i[t];
3271
3275
  else throw Error(`Key ${t} not found in enum`);
3272
- return new T({
3276
+ return new Un({
3273
3277
  ...t,
3274
3278
  checks: [],
3275
3279
  ...normalizeParams(r),
@@ -3278,14 +3282,14 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3278
3282
  };
3279
3283
  });
3280
3284
  function _enum(e, t) {
3281
- return new T({
3285
+ return new Un({
3282
3286
  type: "enum",
3283
3287
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3284
3288
  ...normalizeParams(t)
3285
3289
  });
3286
3290
  }
3287
3291
  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() {
3292
+ At.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3289
3293
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
3290
3294
  return t.values[0];
3291
3295
  } });
@@ -3298,7 +3302,7 @@ function literal(e, t) {
3298
3302
  });
3299
3303
  }
3300
3304
  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) => {
3305
+ jt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3302
3306
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
3303
3307
  n.addIssue = (r) => {
3304
3308
  if (typeof r == "string") n.issues.push(issue(r, n.value, t));
@@ -3318,7 +3322,7 @@ function transform(e) {
3318
3322
  });
3319
3323
  }
3320
3324
  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;
3325
+ Mt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3322
3326
  });
3323
3327
  function optional(e) {
3324
3328
  return new Kn({
@@ -3327,7 +3331,7 @@ function optional(e) {
3327
3331
  });
3328
3332
  }
3329
3333
  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;
3334
+ Nt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3331
3335
  });
3332
3336
  function exactOptional(e) {
3333
3337
  return new qn({
@@ -3336,7 +3340,7 @@ function exactOptional(e) {
3336
3340
  });
3337
3341
  }
3338
3342
  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;
3343
+ Pt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3340
3344
  });
3341
3345
  function nullable(e) {
3342
3346
  return new Jn({
@@ -3345,7 +3349,7 @@ function nullable(e) {
3345
3349
  });
3346
3350
  }
3347
3351
  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;
3352
+ Ft.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3349
3353
  });
3350
3354
  function _default(e, t) {
3351
3355
  return new Yn({
@@ -3357,7 +3361,7 @@ function _default(e, t) {
3357
3361
  });
3358
3362
  }
3359
3363
  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;
3364
+ It.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3361
3365
  });
3362
3366
  function prefault(e, t) {
3363
3367
  return new Xn({
@@ -3369,7 +3373,7 @@ function prefault(e, t) {
3369
3373
  });
3370
3374
  }
3371
3375
  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;
3376
+ Lt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3373
3377
  });
3374
3378
  function nonoptional(e, t) {
3375
3379
  return new Zn({
@@ -3379,7 +3383,7 @@ function nonoptional(e, t) {
3379
3383
  });
3380
3384
  }
3381
3385
  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;
3386
+ Rt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3383
3387
  });
3384
3388
  function _catch(e, t) {
3385
3389
  return new Qn({
@@ -3389,7 +3393,7 @@ function _catch(e, t) {
3389
3393
  });
3390
3394
  }
3391
3395
  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;
3396
+ zt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
3393
3397
  });
3394
3398
  function pipe(e, t) {
3395
3399
  return new $n({
@@ -3399,9 +3403,9 @@ function pipe(e, t) {
3399
3403
  });
3400
3404
  }
3401
3405
  var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3402
- $n.init(e, t), Vt.init(e, t);
3406
+ $n.init(e, t), Bt.init(e, t);
3403
3407
  }), 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;
3408
+ Vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3405
3409
  });
3406
3410
  function readonly(e) {
3407
3411
  return new tr({
@@ -3410,7 +3414,7 @@ function readonly(e) {
3410
3414
  });
3411
3415
  }
3412
3416
  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);
3417
+ Ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3414
3418
  });
3415
3419
  function refine(e, t = {}) {
3416
3420
  return /* @__PURE__ */ _refine(nr, e, t);
@@ -4521,6 +4525,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4521
4525
  "public"
4522
4526
  ]),
4523
4527
  threadSummary: string(),
4528
+ surfaceGuidance: string().optional(),
4524
4529
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4525
4530
  expiresAt: datetime()
4526
4531
  }), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
@@ -4547,11 +4552,11 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4547
4552
  "website"
4548
4553
  ]),
4549
4554
  handle: string()
4550
- }))), K = _enum([
4555
+ }))), ni = _enum([
4551
4556
  "essential",
4552
4557
  "professional",
4553
4558
  "business"
4554
- ]), ni = object({
4559
+ ]), ri = object({
4555
4560
  agentId: string().optional(),
4556
4561
  handle: string().optional(),
4557
4562
  ownerId: string().optional(),
@@ -4571,7 +4576,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4571
4576
  model: string().nullable().optional(),
4572
4577
  gender: U.optional(),
4573
4578
  voiceKey: G.nullable().optional(),
4574
- billingTier: K.optional(),
4579
+ billingTier: ni.optional(),
4575
4580
  lastActiveAt: string().nullable().optional(),
4576
4581
  lastMessageAt: string().nullable().optional(),
4577
4582
  runtime: string().default("hermes").optional(),
@@ -4604,14 +4609,14 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4604
4609
  status: string().optional(),
4605
4610
  createdAt: string().optional(),
4606
4611
  updatedAt: string().optional()
4607
- }), ri = ni.extend({
4612
+ }), ii = ri.extend({
4608
4613
  isPrimary: boolean().optional(),
4609
4614
  lifecycle: H.optional(),
4610
4615
  changedAt: string().datetime().optional(),
4611
4616
  detail: string().optional(),
4612
4617
  blocker: z.optional(),
4613
4618
  operation: Ur.optional()
4614
- }), ii = Object.keys(ri.shape), ai = class Agent extends SettingsObject {
4619
+ }), ai = Object.keys(ii.shape), oi = class Agent extends SettingsObject {
4615
4620
  constructor(e) {
4616
4621
  let t = "config" in e ? {
4617
4622
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4629,7 +4634,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4629
4634
  }), 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);
4630
4635
  }
4631
4636
  merge(e) {
4632
- for (let t of ii) {
4637
+ for (let t of ai) {
4633
4638
  if (!(t in e)) continue;
4634
4639
  let n = this[t];
4635
4640
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4637,7 +4642,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4637
4642
  }
4638
4643
  toConfig() {
4639
4644
  let e = {};
4640
- for (let t of ii) {
4645
+ for (let t of ai) {
4641
4646
  let n = this[t];
4642
4647
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4643
4648
  }
@@ -4648,22 +4653,22 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4648
4653
  }
4649
4654
  };
4650
4655
  function createAgent(e) {
4651
- return new ai(e);
4656
+ return new oi(e);
4652
4657
  }
4653
4658
  function createAgents(e) {
4654
- return e.configs.map((t) => new ai({
4659
+ return e.configs.map((t) => new oi({
4655
4660
  config: t,
4656
4661
  context: e.context
4657
4662
  }));
4658
4663
  }
4659
4664
  //#endregion
4660
4665
  //#region ../core/dist/types/user.js
4661
- 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({
4666
+ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), ci = string().trim().toLowerCase().pipe(email()), li = object({
4662
4667
  userId: string(),
4663
4668
  email: string().optional(),
4664
4669
  handle: string().optional(),
4665
4670
  fullName: string().optional(),
4666
- linkedinUsername: q.optional(),
4671
+ linkedinUsername: K.optional(),
4667
4672
  avatarId: string().optional(),
4668
4673
  avatar: L.optional(),
4669
4674
  isEmailVerified: boolean().optional(),
@@ -4680,9 +4685,9 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4680
4685
  createdAt: string().optional(),
4681
4686
  updatedAt: string().optional(),
4682
4687
  onboarded: boolean().optional()
4683
- }), ci = object({
4688
+ }), ui = object({
4684
4689
  name: string().min(1).max(100).optional(),
4685
- linkedinUsername: q.nullable().optional(),
4690
+ linkedinUsername: K.nullable().optional(),
4686
4691
  avatar: object({
4687
4692
  src: string(),
4688
4693
  mediaId: string()
@@ -4691,31 +4696,20 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4691
4696
  primaryOrgId: string().optional(),
4692
4697
  lastActiveOrgId: string().optional(),
4693
4698
  onboarding: any().optional()
4694
- }).partial(), li = object({ email: string() }), ui = object({
4695
- email: string(),
4696
- password: string().min(8, "Password must be at least 8 characters")
4697
- }), di = object({
4698
- email: string(),
4699
- password: string().min(8, "Password must be at least 8 characters"),
4700
- fullName: string().min(1, "Name is required")
4701
- }), fi = object({
4702
- email: string(),
4699
+ }).partial(), di = object({ email: ci }), fi = object({
4700
+ email: ci,
4703
4701
  code: string().min(6, "Verification code is required"),
4704
4702
  timezone: string().max(64).optional()
4705
- }), pi = object({
4706
- email: string(),
4707
- code: string().min(6, "Verification code is required"),
4708
- newPassword: string().min(8, "New password must be at least 8 characters")
4709
- }), mi = object({ newEmail: string() }), hi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), gi = object({
4703
+ }), pi = object({ newEmail: ci }), mi = object({
4710
4704
  credential: string().optional(),
4711
4705
  code: string().optional(),
4712
4706
  timezone: string().max(64).optional(),
4713
4707
  source: _enum(["web", "ios"]).optional()
4714
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), _i = object({
4708
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), hi = object({
4715
4709
  identityToken: string().min(1),
4716
4710
  fullName: string().optional(),
4717
4711
  timezone: string().max(64).optional()
4718
- }), J = object({
4712
+ }), q = object({
4719
4713
  orgId: string().optional(),
4720
4714
  handle: string().optional(),
4721
4715
  name: string().optional(),
@@ -4739,12 +4733,12 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4739
4733
  billingLastSyncedAt: string().nullable().optional(),
4740
4734
  syncedPeriodStart: string().nullable().optional(),
4741
4735
  syncedPeriodEnd: string().nullable().optional(),
4742
- trialEligibility: oi.optional(),
4736
+ trialEligibility: si.optional(),
4743
4737
  onboarding: any().optional(),
4744
4738
  status: string().optional(),
4745
4739
  createdAt: string().optional(),
4746
4740
  updatedAt: string().optional()
4747
- }), vi = J.extend({
4741
+ }), gi = q.extend({
4748
4742
  defaultAgent: object({
4749
4743
  agentId: string(),
4750
4744
  handle: string(),
@@ -4752,14 +4746,14 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4752
4746
  orgId: string()
4753
4747
  }),
4754
4748
  onboardingCompleted: boolean().optional()
4755
- }), yi = object({
4749
+ }), _i = object({
4756
4750
  completedAt: string().datetime().optional(),
4757
4751
  setupBy: string().optional(),
4758
4752
  billingSetup: boolean().optional(),
4759
4753
  teamInvitesSetup: boolean().optional(),
4760
4754
  brandingSetup: boolean().optional(),
4761
4755
  domainsSetup: boolean().optional()
4762
- }), bi = object({
4756
+ }), vi = object({
4763
4757
  membershipId: string(),
4764
4758
  orgId: string(),
4765
4759
  name: string(),
@@ -4777,11 +4771,11 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4777
4771
  memberCount: number().optional(),
4778
4772
  agentCount: number().optional(),
4779
4773
  joinedAt: string().datetime(),
4780
- trialEligibility: oi.optional(),
4781
- onboarding: yi.optional()
4782
- }), xi = si.extend({
4783
- orgs: array(bi).optional(),
4784
- agents: array(ni).optional()
4774
+ trialEligibility: si.optional(),
4775
+ onboarding: _i.optional()
4776
+ }), yi = li.extend({
4777
+ orgs: array(vi).optional(),
4778
+ agents: array(ri).optional()
4785
4779
  });
4786
4780
  //#endregion
4787
4781
  //#region ../core/dist/state.js
@@ -4804,7 +4798,7 @@ function derive(e) {
4804
4798
  }
4805
4799
  //#endregion
4806
4800
  //#region ../core/dist/bot-ua.js
4807
- var Si = "pagelines-agent/1.0", Ci = [
4801
+ var bi = "pagelines-agent/1.0", xi = [
4808
4802
  "[SILENT]",
4809
4803
  "SILENT",
4810
4804
  "NO_REPLY",
@@ -4818,21 +4812,21 @@ var Si = "pagelines-agent/1.0", Ci = [
4818
4812
  "[NO_OP]",
4819
4813
  "[NO OP]",
4820
4814
  "HEARTBEAT_OK"
4821
- ], wi = new Set(Ci);
4815
+ ], Si = new Set(xi);
4822
4816
  function normalizeAssistantControl(e) {
4823
4817
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4824
4818
  }
4825
4819
  function isAssistantSilenceControl(e) {
4826
4820
  let t = normalizeAssistantControl(e);
4827
- return t.length <= 64 && wi.has(t);
4821
+ return t.length <= 64 && Si.has(t);
4828
4822
  }
4829
4823
  function isAssistantSilenceControlPrefix(e) {
4830
4824
  let t = normalizeAssistantControl(e);
4831
- return t.length <= 64 && Ci.some((e) => e.startsWith(t));
4825
+ return t.length <= 64 && xi.some((e) => e.startsWith(t));
4832
4826
  }
4833
4827
  //#endregion
4834
4828
  //#region ../core/dist/timingBudgets.js
4835
- var Ti = {
4829
+ var Ci = {
4836
4830
  wake: 300 * 1e3,
4837
4831
  bootGrace: 420 * 1e3,
4838
4832
  stop: 30 * 1e3
@@ -4850,16 +4844,16 @@ function formatBudgetDuration(e) {
4850
4844
  }
4851
4845
  //#endregion
4852
4846
  //#region ../core/dist/paths.js
4853
- var Ei = "/api/bot-api", Di = "/api/bot-api/v1";
4847
+ var wi = "/api/bot-api", Ti = "/api/bot-api/v1";
4854
4848
  function botApiLlmUrl(e) {
4855
- return `${e}${Di}`;
4849
+ return `${e}${Ti}`;
4856
4850
  }
4857
4851
  function botApiUrl(e) {
4858
- return `${e}${Ei}`;
4852
+ return `${e}${wi}`;
4859
4853
  }
4860
4854
  //#endregion
4861
4855
  //#region ../core/dist/errorCopy.js
4862
- var Y = {
4856
+ var J = {
4863
4857
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4864
4858
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4865
4859
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4890,7 +4884,7 @@ var Y = {
4890
4884
  TIMEOUT: "The request took too long. Try again in a moment.",
4891
4885
  FORBIDDEN: "You don't have access to this.",
4892
4886
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4893
- }, Oi = {
4887
+ }, Ei = {
4894
4888
  notFound: "Not found. Try refreshing.",
4895
4889
  busy: "Busy — try again in a moment.",
4896
4890
  rateLimited: "Too many requests. Wait a moment.",
@@ -4900,14 +4894,14 @@ var Y = {
4900
4894
  fatal: "Something's broken and won't resolve on retry. Contact support."
4901
4895
  };
4902
4896
  function errorCopy(e, t) {
4903
- return e && e in Y ? Y[e] : t;
4897
+ return e && e in J ? J[e] : t;
4904
4898
  }
4905
4899
  function errorFromApiResponse(e, t) {
4906
- return e.code && e.code in Y ? Y[e.code] : e.providerErrorKind && Oi[e.providerErrorKind] ? Oi[e.providerErrorKind] : e.error || t;
4900
+ return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Ei[e.providerErrorKind] ? Ei[e.providerErrorKind] : e.error || t;
4907
4901
  }
4908
4902
  //#endregion
4909
4903
  //#region ../core/dist/retryPolicy.js
4910
- var ki = {
4904
+ var Di = {
4911
4905
  shouldRetry: !1,
4912
4906
  maxAttempts: 1,
4913
4907
  strategy: "none",
@@ -4925,7 +4919,7 @@ function retryPolicyFor(e) {
4925
4919
  "FORBIDDEN",
4926
4920
  "AGENT_NOT_FOUND"
4927
4921
  ]);
4928
- if (e.code && t.has(e.code)) return ki;
4922
+ if (e.code && t.has(e.code)) return Di;
4929
4923
  switch (e.providerErrorKind) {
4930
4924
  case "busy": return {
4931
4925
  shouldRetry: !0,
@@ -4960,33 +4954,33 @@ function retryPolicyFor(e) {
4960
4954
  };
4961
4955
  case "notFound":
4962
4956
  case "invalidConfig":
4963
- case "fatal": return ki;
4964
- default: return ki;
4957
+ case "fatal": return Di;
4958
+ default: return Di;
4965
4959
  }
4966
4960
  }
4967
4961
  //#endregion
4968
4962
  //#region ../core/dist/wire/timezone.js
4969
- var X = string().min(1).max(64).refine((e) => {
4963
+ var Y = string().min(1).max(64).refine((e) => {
4970
4964
  try {
4971
4965
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4972
4966
  } catch {
4973
4967
  return !1;
4974
4968
  }
4975
- }, "Invalid IANA timezone"), Ai = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ji = object({
4969
+ }, "Invalid IANA timezone"), Oi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ki = object({
4976
4970
  orgId: string(),
4977
4971
  name: string().min(1).max(100),
4978
4972
  emoji: string().max(8).nullable().optional(),
4979
4973
  title: string().max(120).nullable().optional(),
4980
4974
  summary: string().max(500).nullable().optional(),
4981
4975
  handle: string().min(2).max(50).optional(),
4982
- timezone: X.optional(),
4976
+ timezone: Y.optional(),
4983
4977
  runtime: _enum(["hermes"]).optional(),
4984
4978
  visibility: _enum([
4985
4979
  "private",
4986
4980
  "org",
4987
4981
  "public"
4988
4982
  ]).optional()
4989
- }).strict(), Mi = object({
4983
+ }).strict(), Ai = object({
4990
4984
  name: string().min(1).max(100).optional(),
4991
4985
  handle: string().min(2).max(50).optional(),
4992
4986
  emoji: string().max(8).nullable().optional(),
@@ -4996,26 +4990,26 @@ var X = string().min(1).max(64).refine((e) => {
4996
4990
  website: string().url().nullable().optional(),
4997
4991
  avatarMediaId: string().nullable().optional(),
4998
4992
  coverMediaId: string().nullable().optional(),
4999
- timezone: X.optional(),
4993
+ timezone: Y.optional(),
5000
4994
  model: string().nullable().optional(),
5001
4995
  gender: U.optional(),
5002
4996
  voiceKey: G.nullable().optional(),
5003
- billingTier: K.optional(),
4997
+ billingTier: ni.optional(),
5004
4998
  visibility: _enum([
5005
4999
  "private",
5006
5000
  "org",
5007
5001
  "public"
5008
5002
  ]).optional(),
5009
- automationPrimaryChannel: Ai.optional(),
5003
+ automationPrimaryChannel: Oi.optional(),
5010
5004
  heartbeatEnabled: boolean().optional(),
5011
5005
  heartbeatBriefingTime: E.nullable().optional(),
5012
5006
  heartbeatCheckinTime: E.nullable().optional(),
5013
5007
  heartbeatCloseoutTime: E.nullable().optional()
5014
- }).strict(), Ni = ri, Pi = object({
5008
+ }).strict(), ji = ii, Mi = object({
5015
5009
  id: string(),
5016
5010
  label: string(),
5017
5011
  prompt: string()
5018
- }), 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([
5012
+ }), Ni = /* @__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("."), Pi = _enum(Ni), Fi = _enum([
5019
5013
  "notFound",
5020
5014
  "busy",
5021
5015
  "rateLimited",
@@ -5026,21 +5020,21 @@ var X = string().min(1).max(64).refine((e) => {
5026
5020
  ]), zApiOk = (e) => object({
5027
5021
  ok: literal(!0),
5028
5022
  data: e
5029
- }), Ri = object({
5023
+ }), Ii = object({
5030
5024
  ok: literal(!1),
5031
5025
  error: string(),
5032
- code: Ii.optional(),
5026
+ code: Pi.optional(),
5033
5027
  issue: z.optional(),
5034
- providerErrorKind: Li.optional()
5035
- }), zApiResponse = (e) => union([zApiOk(e), Ri]), zi = {
5028
+ providerErrorKind: Fi.optional()
5029
+ }), zApiResponse = (e) => union([zApiOk(e), Ii]), Li = {
5036
5030
  400: "Invalid body.",
5037
5031
  401: "Not authenticated.",
5038
5032
  500: "Server error."
5039
5033
  };
5040
5034
  function zErrorResponses(e) {
5041
5035
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5042
- description: t === !0 ? zi[Number(e)] ?? "Request failed." : t,
5043
- content: { "application/json": { schema: Ri } }
5036
+ description: t === !0 ? Li[Number(e)] ?? "Request failed." : t,
5037
+ content: { "application/json": { schema: Ii } }
5044
5038
  }]));
5045
5039
  }
5046
5040
  function apiError(e, t, n) {
@@ -5063,7 +5057,7 @@ function apiOk(e) {
5063
5057
  }
5064
5058
  //#endregion
5065
5059
  //#region ../core/dist/wire/chat-tool-activity.js
5066
- var Bi = object({
5060
+ var Ri = object({
5067
5061
  kind: _enum([
5068
5062
  "icon",
5069
5063
  "favicon",
@@ -5072,7 +5066,7 @@ var Bi = object({
5072
5066
  icon: string().min(1).optional(),
5073
5067
  domain: string().min(1).optional(),
5074
5068
  serviceKey: string().min(1).optional()
5075
- }).strict(), Vi = object({
5069
+ }).strict(), zi = object({
5076
5070
  activityId: string().min(1),
5077
5071
  turnId: string().min(1),
5078
5072
  status: _enum([
@@ -5096,12 +5090,12 @@ var Bi = object({
5096
5090
  endedAt: string().datetime().optional(),
5097
5091
  durationMs: number().int().nonnegative().optional(),
5098
5092
  note: string().trim().min(1).optional(),
5099
- visual: Bi.optional()
5100
- }).strict(), Hi = Vi.extend({ status: _enum(["completed", "failed"]) }), Ui = F, Wi = object({
5093
+ visual: Ri.optional()
5094
+ }).strict(), Bi = zi.extend({ status: _enum(["completed", "failed"]) }), Vi = F, Hi = object({
5101
5095
  kind: literal("inline"),
5102
5096
  offset: number().int().nonnegative()
5103
- }), Gi = object({
5104
- type: Ui,
5097
+ }), Ui = object({
5098
+ type: Vi,
5105
5099
  src: url(),
5106
5100
  filename: string().min(1),
5107
5101
  mimeType: string().min(1),
@@ -5111,12 +5105,12 @@ var Bi = object({
5111
5105
  height: number().int().positive().optional(),
5112
5106
  duration: number().nonnegative().optional(),
5113
5107
  text: string().optional(),
5114
- placement: Wi.optional()
5115
- }), Ki = object({ ref: string().min(1).max(256) }).strict(), qi = _enum([
5108
+ placement: Hi.optional()
5109
+ }), Wi = object({ ref: string().min(1).max(256) }).strict(), Gi = _enum([
5116
5110
  "handled",
5117
5111
  "dismissed",
5118
5112
  "deferred"
5119
- ]), Ji = datetime();
5113
+ ]), Ki = datetime();
5120
5114
  function validateAttentionRevisit(e, t) {
5121
5115
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5122
5116
  code: "custom",
@@ -5124,17 +5118,17 @@ function validateAttentionRevisit(e, t) {
5124
5118
  message: "revisitAt requires deferred disposition"
5125
5119
  });
5126
5120
  }
5127
- var Yi = Ki.extend({
5128
- disposition: qi.optional(),
5129
- revisitAt: Ji.optional()
5130
- }).superRefine(validateAttentionRevisit), Xi = Ki.extend({
5131
- disposition: qi,
5132
- revisitAt: Ji.optional()
5133
- }).superRefine(validateAttentionRevisit), Zi = object({
5121
+ var qi = Wi.extend({
5122
+ disposition: Gi.optional(),
5123
+ revisitAt: Ki.optional()
5124
+ }).superRefine(validateAttentionRevisit), Ji = Wi.extend({
5125
+ disposition: Gi,
5126
+ revisitAt: Ki.optional()
5127
+ }).superRefine(validateAttentionRevisit), Yi = object({
5134
5128
  turnId: string().min(1).optional(),
5135
5129
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5136
- attachments: array(Gi).optional(),
5137
- toolActivities: array(Hi).optional(),
5130
+ attachments: array(Ui).optional(),
5131
+ toolActivities: array(Bi).optional(),
5138
5132
  issue: object({
5139
5133
  code: string(),
5140
5134
  bucket: _enum(["account", "error"]),
@@ -5162,8 +5156,8 @@ var Yi = Ki.extend({
5162
5156
  ])
5163
5157
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5164
5158
  ownerHandoff: literal(!0).optional(),
5165
- attention: array(Yi).max(20).optional()
5166
- }).catchall(unknown()), Qi = object({
5159
+ attention: array(qi).max(20).optional()
5160
+ }).catchall(unknown()), Xi = object({
5167
5161
  messageId: string().min(1),
5168
5162
  conversationId: string().min(1),
5169
5163
  role: _enum([
@@ -5176,12 +5170,12 @@ var Yi = Ki.extend({
5176
5170
  content: string(),
5177
5171
  sequence: string().min(1),
5178
5172
  clientNonce: string().nullable().optional(),
5179
- metadata: Zi.nullable().optional(),
5173
+ metadata: Yi.nullable().optional(),
5180
5174
  status: string().nullable().optional(),
5181
5175
  createdAt: string(),
5182
5176
  updatedAt: string()
5183
- }), $i = object({
5184
- type: Ui,
5177
+ }), Zi = object({
5178
+ type: Vi,
5185
5179
  mediaId: string().min(1).optional(),
5186
5180
  url: url().optional(),
5187
5181
  name: string().min(1).optional(),
@@ -5197,21 +5191,21 @@ var Yi = Ki.extend({
5197
5191
  path: [n],
5198
5192
  message: `${n} is required when mediaId is absent`
5199
5193
  });
5200
- }), ea = object({
5194
+ }), Qi = object({
5201
5195
  conversationId: string().min(1),
5202
5196
  content: string().max(1e4).default(""),
5203
5197
  clientNonce: string().max(64).optional(),
5204
- attachments: array($i).max(10).optional(),
5198
+ attachments: array(Zi).max(10).optional(),
5205
5199
  channel: _enum(["ios", "dashboard"]).optional(),
5206
5200
  actionUrls: object({
5207
5201
  billing: string().max(500),
5208
5202
  agent: string().max(500)
5209
5203
  }).optional(),
5210
- viewerTimezone: X.optional()
5204
+ viewerTimezone: Y.optional()
5211
5205
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5212
5206
  path: ["content"],
5213
5207
  message: "Message or attachment required"
5214
- }), ta = object({
5208
+ }), $i = object({
5215
5209
  type: _enum(["user", "agent"]),
5216
5210
  id: string().min(1)
5217
5211
  }).strict();
@@ -5226,44 +5220,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5226
5220
  }), n.add(e);
5227
5221
  }
5228
5222
  }
5229
- var na = object({
5223
+ var ea = object({
5230
5224
  orgId: string().min(1),
5231
- participants: array(ta).min(1).max(20)
5232
- }).strict().superRefine(addDuplicateConversationTargetIssues), ra = object({
5225
+ participants: array($i).min(1).max(20)
5226
+ }).strict().superRefine(addDuplicateConversationTargetIssues), ta = object({
5233
5227
  orgId: string().min(1),
5234
- participants: array(ta).min(1).max(20)
5228
+ participants: array($i).min(1).max(20)
5235
5229
  }).strict().superRefine((e, t) => {
5236
5230
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5237
5231
  code: "custom",
5238
5232
  path: ["participants"],
5239
5233
  message: "New sessions require at least one agent participant."
5240
5234
  });
5241
- }), ia = object({
5235
+ }), na = object({
5242
5236
  category: string().min(1).max(30).optional(),
5243
5237
  reason: string().max(2e3).optional()
5244
- }).strict(), aa = _enum([
5238
+ }).strict(), ra = _enum([
5245
5239
  "1:1",
5246
5240
  "4:3",
5247
5241
  "3:4",
5248
5242
  "16:9",
5249
5243
  "9:16"
5250
- ]), oa = _enum([
5244
+ ]), ia = _enum([
5251
5245
  "1K",
5252
5246
  "2K",
5253
5247
  "4K"
5254
- ]), sa = object({
5248
+ ]), aa = object({
5255
5249
  prompt: string().trim().min(1).max(4e3),
5256
- aspectRatio: aa.default("1:1"),
5250
+ aspectRatio: ra.default("1:1"),
5257
5251
  outputFormat: _enum([
5258
5252
  "png",
5259
5253
  "jpeg",
5260
5254
  "webp"
5261
5255
  ]).default("webp"),
5262
- resolution: oa.default("2K"),
5256
+ resolution: ia.default("2K"),
5263
5257
  style: string().trim().max(200).optional(),
5264
5258
  altText: string().trim().max(500).optional(),
5265
5259
  referenceMediaIds: array(string().min(1)).max(4).optional()
5266
- }).strict(), ca = object({
5260
+ }).strict(), oa = object({
5267
5261
  mediaId: string().min(1),
5268
5262
  src: url(),
5269
5263
  filename: string().min(1),
@@ -5273,54 +5267,54 @@ var na = object({
5273
5267
  provider: string().min(1).optional(),
5274
5268
  providerRequestId: string().min(1).optional(),
5275
5269
  media: string().startsWith("MEDIA:"),
5276
- attachment: Gi.extend({ type: literal("image") })
5277
- }), la = object({
5270
+ attachment: Ui.extend({ type: literal("image") })
5271
+ }), sa = object({
5278
5272
  identityToken: string().min(1),
5279
5273
  fullName: string().optional()
5280
- }), ua = object({
5274
+ }), ca = object({
5281
5275
  redirect: string(),
5282
5276
  redirectReason: string(),
5283
5277
  isNew: boolean(),
5284
5278
  deviceId: string()
5285
- }), da = object({
5279
+ }), la = object({
5286
5280
  ok: literal(!0),
5287
- data: ua,
5281
+ data: ca,
5288
5282
  token: string()
5289
- }), 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({
5283
+ }), ua = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), da = object({ url: string() }), fa = object({
5290
5284
  ok: literal(!0),
5291
- data: pa
5292
- }), ha = object({ token: string().min(1) }), ga = object({
5285
+ data: da
5286
+ }), pa = object({ token: string().min(1) }), ma = object({
5293
5287
  redirect: string(),
5294
5288
  redirectReason: string(),
5295
5289
  deviceId: string()
5296
- }), _a = object({
5290
+ }), ha = object({
5297
5291
  ok: literal(!0),
5298
- data: ga,
5292
+ data: ma,
5299
5293
  token: string()
5300
- }), va = _enum(["none", "active_assistant"]), ya = _enum([
5294
+ }), ga = _enum(["none", "active_assistant"]), _a = _enum([
5301
5295
  "none",
5302
5296
  "active",
5303
5297
  "trial",
5304
5298
  "canceling",
5305
5299
  "past_due",
5306
5300
  "paused"
5307
- ]), ba = object({
5301
+ ]), va = object({
5308
5302
  brand: string(),
5309
5303
  last4: string(),
5310
5304
  expMonth: number(),
5311
5305
  expYear: number()
5312
- }), xa = object({
5306
+ }), ya = object({
5313
5307
  date: string(),
5314
5308
  amount: number(),
5315
5309
  status: string(),
5316
5310
  invoicePdf: string().optional()
5317
- }), Sa = object({
5311
+ }), ba = object({
5318
5312
  graceEndsAt: string().optional(),
5319
5313
  suspended: boolean(),
5320
5314
  url: string().optional()
5321
- }), Ca = object({
5322
- plan: va,
5323
- status: ya,
5315
+ }), xa = object({
5316
+ plan: ga,
5317
+ status: _a,
5324
5318
  price: number(),
5325
5319
  tierRates: record(string(), number()).optional(),
5326
5320
  maxAgents: number(),
@@ -5330,23 +5324,23 @@ var na = object({
5330
5324
  cancelAt: string().optional(),
5331
5325
  trialEnd: string().optional(),
5332
5326
  trialDaysRemaining: number().optional(),
5333
- paymentMethod: ba.optional(),
5334
- paymentRecovery: Sa.optional(),
5335
- invoices: array(xa),
5327
+ paymentMethod: va.optional(),
5328
+ paymentRecovery: ba.optional(),
5329
+ invoices: array(ya),
5336
5330
  stripeError: string().optional()
5337
- }), wa = object({
5331
+ }), Sa = object({
5338
5332
  orgId: string(),
5339
5333
  agentName: string().optional(),
5340
5334
  runtime: string().optional()
5341
- }), Ta = object({
5335
+ }), Ca = object({
5342
5336
  created: number(),
5343
5337
  skipped: number(),
5344
5338
  errors: array(string())
5345
- }), Ea = object({
5339
+ }), wa = object({
5346
5340
  updated: number(),
5347
5341
  errors: array(string())
5348
- }), Da = Wr, Oa = object({
5349
- code: Ii,
5342
+ }), Ta = Wr, Ea = object({
5343
+ code: Pi,
5350
5344
  message: string(),
5351
5345
  bucket: _enum(["account", "error"]).optional(),
5352
5346
  actionLabel: string().optional(),
@@ -5363,14 +5357,14 @@ function toChatStreamError(e) {
5363
5357
  ...e.help ? { help: e.help } : {}
5364
5358
  };
5365
5359
  }
5366
- var ka = discriminatedUnion("event", [
5360
+ var Da = discriminatedUnion("event", [
5367
5361
  object({
5368
5362
  event: literal("status"),
5369
- data: Da
5363
+ data: Ta
5370
5364
  }),
5371
5365
  object({
5372
5366
  event: literal("message"),
5373
- data: object({ message: Qi })
5367
+ data: object({ message: Xi })
5374
5368
  }),
5375
5369
  object({
5376
5370
  event: literal("message_delta"),
@@ -5390,7 +5384,7 @@ var ka = discriminatedUnion("event", [
5390
5384
  }),
5391
5385
  object({
5392
5386
  event: literal("tool_activity"),
5393
- data: Vi
5387
+ data: zi
5394
5388
  }),
5395
5389
  object({
5396
5390
  event: literal("working_end"),
@@ -5402,7 +5396,7 @@ var ka = discriminatedUnion("event", [
5402
5396
  }),
5403
5397
  object({
5404
5398
  event: literal("error"),
5405
- data: Oa
5399
+ data: Ea
5406
5400
  })
5407
5401
  ]);
5408
5402
  function chatEventUserTurnId(e) {
@@ -5554,7 +5548,7 @@ function parseChatEvent(e) {
5554
5548
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5555
5549
  if (!n || r === void 0) return null;
5556
5550
  try {
5557
- let e = ka.safeParse({
5551
+ let e = Da.safeParse({
5558
5552
  event: n,
5559
5553
  data: JSON.parse(r)
5560
5554
  });
@@ -5565,7 +5559,7 @@ function parseChatEvent(e) {
5565
5559
  }
5566
5560
  //#endregion
5567
5561
  //#region ../core/dist/wire/chat-card.js
5568
- var Aa = object({
5562
+ var Oa = object({
5569
5563
  label: string().trim().min(1).max(40),
5570
5564
  reply: string().trim().min(1).max(500),
5571
5565
  style: _enum([
@@ -5573,11 +5567,11 @@ var Aa = object({
5573
5567
  "default",
5574
5568
  "destructive"
5575
5569
  ]).optional()
5576
- }).strip(), ja = object({
5570
+ }).strip(), ka = object({
5577
5571
  version: literal(1),
5578
5572
  title: string().trim().min(1).max(200),
5579
5573
  body: string().trim().min(1).max(4e3).optional(),
5580
- actions: array(Aa).min(1).max(3).optional()
5574
+ actions: array(Oa).min(1).max(3).optional()
5581
5575
  }).strip();
5582
5576
  function parseChatCardFencePayload(e) {
5583
5577
  let t;
@@ -5590,7 +5584,7 @@ function parseChatCardFencePayload(e) {
5590
5584
  message: e instanceof Error ? e.message : "Invalid JSON"
5591
5585
  };
5592
5586
  }
5593
- let n = ja.safeParse(t);
5587
+ let n = ka.safeParse(t);
5594
5588
  return n.success ? {
5595
5589
  ok: !0,
5596
5590
  spec: n.data
@@ -5602,36 +5596,36 @@ function parseChatCardFencePayload(e) {
5602
5596
  }
5603
5597
  //#endregion
5604
5598
  //#region ../core/dist/wire/chat-visual.js
5605
- 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([
5599
+ var Aa = string().trim().min(1).max(240), ja = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), Ma = record(X, union([
5606
5600
  string().max(500),
5607
5601
  number().finite(),
5608
5602
  boolean(),
5609
5603
  _null()
5610
- ])), Fa = _enum([
5604
+ ])), Na = _enum([
5611
5605
  "compact",
5612
5606
  "currency",
5613
5607
  "duration",
5614
5608
  "integer",
5615
5609
  "percent",
5616
5610
  "raw"
5617
- ]), Ia = object({
5618
- title: Ma,
5619
- description: Na.optional(),
5620
- footer: Na.optional()
5621
- }).strip(), La = object({
5622
- dataKey: Z,
5623
- label: Q.optional(),
5624
- axisLabel: Q.optional(),
5625
- valueFormat: Fa.optional(),
5611
+ ]), Pa = object({
5612
+ title: Aa,
5613
+ description: ja.optional(),
5614
+ footer: ja.optional()
5615
+ }).strip(), Fa = object({
5616
+ dataKey: X,
5617
+ label: Z.optional(),
5618
+ axisLabel: Z.optional(),
5619
+ valueFormat: Na.optional(),
5626
5620
  valuePrefix: string().trim().max(12).optional(),
5627
5621
  valueSuffix: string().trim().max(12).optional()
5628
- }).strip(), Ra = object({
5622
+ }).strip(), Ia = object({
5629
5623
  kind: literal("linear"),
5630
- dataKey: Z,
5631
- label: Q.optional()
5632
- }).strip(), za = object({
5624
+ dataKey: X,
5625
+ label: Z.optional()
5626
+ }).strip(), La = object({
5633
5627
  version: literal(1),
5634
- meta: Ia,
5628
+ meta: Pa,
5635
5629
  fallbackMarkdown: string().trim().min(1).max(4e3)
5636
5630
  }).strip();
5637
5631
  function dataKeys(e) {
@@ -5673,20 +5667,20 @@ function requireNumericDataKeys(e, t, n) {
5673
5667
  });
5674
5668
  }
5675
5669
  }
5676
- var Ba = discriminatedUnion("chartType", [za.extend({
5670
+ var Ra = discriminatedUnion("chartType", [La.extend({
5677
5671
  visualType: literal("chart"),
5678
5672
  chartType: _enum([
5679
5673
  "bar",
5680
5674
  "line",
5681
5675
  "scatter"
5682
5676
  ]),
5683
- xKey: Z,
5684
- xAxisLabel: Q.optional(),
5685
- series: array(La).min(1).max(6),
5686
- data: array(Pa).min(1).max(120),
5677
+ xKey: X,
5678
+ xAxisLabel: Z.optional(),
5679
+ series: array(Fa).min(1).max(6),
5680
+ data: array(Ma).min(1).max(120),
5687
5681
  layout: _enum(["horizontal", "vertical"]).optional(),
5688
5682
  stacking: _enum(["grouped", "stacked"]).optional(),
5689
- trendLine: Ra.optional()
5683
+ trendLine: Ia.optional()
5690
5684
  }).strip().superRefine((e, t) => {
5691
5685
  e.stacking && e.chartType !== "bar" && t.addIssue({
5692
5686
  code: "custom",
@@ -5724,13 +5718,13 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5724
5718
  path: ["trendLine", "dataKey"],
5725
5719
  value: e.trendLine.dataKey
5726
5720
  }] : []], t);
5727
- }), za.extend({
5721
+ }), La.extend({
5728
5722
  visualType: literal("chart"),
5729
5723
  chartType: literal("pie"),
5730
- nameKey: Z,
5731
- valueKey: Z,
5732
- series: array(La).max(1).optional(),
5733
- data: array(Pa).min(1).max(16)
5724
+ nameKey: X,
5725
+ valueKey: X,
5726
+ series: array(Fa).max(1).optional(),
5727
+ data: array(Ma).min(1).max(16)
5734
5728
  }).strip().superRefine((e, t) => {
5735
5729
  requireDataKeys(e.data, [
5736
5730
  {
@@ -5754,10 +5748,10 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5754
5748
  value: e.valueKey,
5755
5749
  nonnegative: !0
5756
5750
  }], t);
5757
- })]), Va = object({
5758
- id: Z,
5759
- label: Q,
5760
- detail: Na.optional(),
5751
+ })]), za = object({
5752
+ id: X,
5753
+ label: Z,
5754
+ detail: ja.optional(),
5761
5755
  kind: _enum([
5762
5756
  "actor",
5763
5757
  "agent",
@@ -5768,11 +5762,11 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5768
5762
  "system",
5769
5763
  "task"
5770
5764
  ]).optional()
5771
- }).strip(), Ha = object({
5772
- from: Z,
5773
- to: Z,
5774
- label: Q.optional()
5775
- }).strip(), Ua = union([Ba, za.extend({
5765
+ }).strip(), Ba = object({
5766
+ from: X,
5767
+ to: X,
5768
+ label: Z.optional()
5769
+ }).strip(), Va = union([Ra, La.extend({
5776
5770
  visualType: literal("diagram"),
5777
5771
  diagramType: _enum([
5778
5772
  "flow",
@@ -5786,8 +5780,8 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5786
5780
  "radial",
5787
5781
  "top-to-bottom"
5788
5782
  ]).default("auto"),
5789
- nodes: array(Va).min(1).max(24),
5790
- edges: array(Ha).max(48)
5783
+ nodes: array(za).min(1).max(24),
5784
+ edges: array(Ba).max(48)
5791
5785
  }).strip().superRefine((e, t) => {
5792
5786
  let n = new Set(e.nodes.map((e) => e.id));
5793
5787
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5946,11 +5940,11 @@ function parseChatVisualFencePayload(e) {
5946
5940
  fallbackMarkdown: r
5947
5941
  };
5948
5942
  }
5949
- let n = Ua.safeParse(t);
5943
+ let n = Va.safeParse(t);
5950
5944
  if (!n.success) {
5951
5945
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5952
5946
  if (e) {
5953
- let t = Ua.safeParse(e);
5947
+ let t = Va.safeParse(e);
5954
5948
  if (t.success) return {
5955
5949
  ok: !0,
5956
5950
  spec: t.data
@@ -5975,7 +5969,7 @@ function extractChatVisualFencePayloads(e) {
5975
5969
  }
5976
5970
  //#endregion
5977
5971
  //#region ../core/dist/wire/conversation.js
5978
- var Wa = object({
5972
+ var Q = object({
5979
5973
  type: _enum([
5980
5974
  "user",
5981
5975
  "agent",
@@ -5995,7 +5989,7 @@ var Wa = object({
5995
5989
  displayName: string().optional(),
5996
5990
  handle: string().optional(),
5997
5991
  avatarUrl: string().optional()
5998
- }).strict(), Ga = object({
5992
+ }).strict(), Ha = object({
5999
5993
  messageId: string(),
6000
5994
  role: _enum([
6001
5995
  "user",
@@ -6005,7 +5999,7 @@ var Wa = object({
6005
5999
  content: string(),
6006
6000
  sequence: string(),
6007
6001
  createdAt: string()
6008
- }), Ka = object({
6002
+ }), Ua = object({
6009
6003
  conversationId: string(),
6010
6004
  orgId: string(),
6011
6005
  kind: _enum(["direct", "group"]),
@@ -6015,30 +6009,30 @@ var Wa = object({
6015
6009
  "requester",
6016
6010
  "member"
6017
6011
  ]),
6018
- participants: array(Wa),
6019
- lastMessage: Ga.nullable(),
6012
+ participants: array(Q),
6013
+ lastMessage: Ha.nullable(),
6020
6014
  unreadCount: number().int().nonnegative(),
6021
6015
  latestSequence: string().nullable()
6022
- }), qa = object({ sequence: string().min(1) }), Ja = object({ turnId: string().min(1).optional() }).strict(), Ya = object({
6016
+ }), Wa = object({ sequence: string().min(1) }), Ga = object({ turnId: string().min(1).optional() }).strict(), Ka = object({
6023
6017
  cancelled: boolean(),
6024
6018
  cancelledTurnIds: array(string())
6025
- }).strict(), Xa = object({
6019
+ }).strict(), qa = object({
6026
6020
  conversationId: string(),
6027
6021
  messageId: string(),
6028
6022
  sequence: string(),
6029
6023
  snippet: string(),
6030
6024
  createdAt: string(),
6031
- participants: array(Wa)
6032
- }), Za = object({
6025
+ participants: array(Q)
6026
+ }), Ja = object({
6033
6027
  conversationId: string(),
6034
- lastMessage: Ga.nullable(),
6028
+ lastMessage: Ha.nullable(),
6035
6029
  unreadCount: number().int().nonnegative(),
6036
6030
  latestSequence: string().nullable()
6037
- }), $ = 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([
6031
+ }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Ya = preprocess((e) => e === void 0 ? null : e, H.nullable()), Xa = preprocess((e) => e === void 0 ? null : e, V.nullable()), Za = preprocess((e) => e === void 0 ? null : e, _enum([
6038
6032
  "user",
6039
6033
  "assistant",
6040
6034
  "system"
6041
- ]).nullable()), to = preprocess((e) => e === void 0 ? 0 : e, number()), no = object({
6035
+ ]).nullable()), Qa = preprocess((e) => e === void 0 ? 0 : e, number()), $a = object({
6042
6036
  agentId: string(),
6043
6037
  handle: string(),
6044
6038
  name: string(),
@@ -6047,19 +6041,19 @@ var Wa = object({
6047
6041
  orgHandle: $,
6048
6042
  ownerEmail: $,
6049
6043
  ownerName: $,
6050
- state: Qa,
6051
- desiredStatus: $a,
6044
+ state: Ya,
6045
+ desiredStatus: Xa,
6052
6046
  runtime: string(),
6053
6047
  imageVersion: $,
6054
6048
  lastHealthyAt: $,
6055
6049
  lastActiveAt: $,
6056
6050
  lastUserMessageAt: $,
6057
6051
  lastMessageAt: $,
6058
- lastMessageRole: eo,
6052
+ lastMessageRole: Za,
6059
6053
  lastMessageChannel: $,
6060
6054
  primaryChannel: $,
6061
- totalMessages: to,
6062
- totalSessions: to,
6055
+ totalMessages: Qa,
6056
+ totalSessions: Qa,
6063
6057
  error: $,
6064
6058
  appHandle: string(),
6065
6059
  flyAppExists: boolean(),
@@ -6068,7 +6062,7 @@ var Wa = object({
6068
6062
  billingActive: boolean(),
6069
6063
  createdAt: string(),
6070
6064
  updatedAt: string()
6071
- }), ro = object({
6065
+ }), eo = object({
6072
6066
  running: number(),
6073
6067
  stopped: number(),
6074
6068
  error: number(),
@@ -6076,28 +6070,28 @@ var Wa = object({
6076
6070
  stopping: number(),
6077
6071
  unknown: number(),
6078
6072
  total: number()
6079
- }), io = object({
6080
- agents: array(no),
6081
- summary: ro,
6073
+ }), to = object({
6074
+ agents: array($a),
6075
+ summary: eo,
6082
6076
  orphanedApps: array(string()),
6083
6077
  dailyMessages30d: array(number().int()).optional(),
6084
6078
  flyAppCount: number().optional(),
6085
6079
  latestVersion: string().optional(),
6086
6080
  latestVersions: record(string(), string()).optional()
6087
- }), ao = I, oo = F, so = object({
6081
+ }), no = I, ro = F, io = object({
6088
6082
  mediaId: string(),
6089
6083
  src: string(),
6090
6084
  alt: string().nullable().optional(),
6091
6085
  filename: string().optional(),
6092
6086
  displayName: string().nullable().optional(),
6093
6087
  mimeType: string().optional(),
6094
- mediaType: oo.optional(),
6095
- type: oo.optional(),
6088
+ mediaType: ro.optional(),
6089
+ type: ro.optional(),
6096
6090
  size: number().optional(),
6097
6091
  width: number().nullable().optional(),
6098
6092
  height: number().nullable().optional(),
6099
6093
  duration: number().nullable().optional(),
6100
- context: ao.nullable().optional(),
6094
+ context: no.nullable().optional(),
6101
6095
  blurhash: string().nullable().optional(),
6102
6096
  quality: string().optional(),
6103
6097
  status: string().optional(),
@@ -6106,13 +6100,13 @@ var Wa = object({
6106
6100
  agentId: string().nullable().optional(),
6107
6101
  createdAt: string().optional(),
6108
6102
  updatedAt: string().optional()
6109
- }), co = object({
6103
+ }), ao = object({
6110
6104
  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."),
6111
- context: ao.optional().default("general"),
6105
+ context: no.optional().default("general"),
6112
6106
  agentId: string().optional(),
6113
6107
  orgId: string().optional(),
6114
6108
  duration: number().optional()
6115
- }), lo = object({
6109
+ }), oo = object({
6116
6110
  mediaId: string().optional(),
6117
6111
  src: string().optional(),
6118
6112
  alt: string().optional(),
@@ -6121,7 +6115,7 @@ var Wa = object({
6121
6115
  mimeType: string().optional(),
6122
6116
  mediaType: string().optional(),
6123
6117
  blurhash: string().optional()
6124
- }), uo = object({
6118
+ }), so = object({
6125
6119
  membershipId: string(),
6126
6120
  userId: string(),
6127
6121
  orgId: string(),
@@ -6136,15 +6130,15 @@ var Wa = object({
6136
6130
  status: _enum(["active", "suspended"]),
6137
6131
  joinedAt: string(),
6138
6132
  lastSeenAt: string().optional(),
6139
- avatar: lo.optional()
6140
- }), fo = object({
6133
+ avatar: oo.optional()
6134
+ }), co = object({
6141
6135
  invitationId: string(),
6142
6136
  email: string(),
6143
6137
  role: _enum(["admin", "member"]),
6144
6138
  status: string(),
6145
6139
  expiresAt: string(),
6146
6140
  createdAt: string()
6147
- }), po = object({
6141
+ }), lo = object({
6148
6142
  token: string(),
6149
6143
  email: string(),
6150
6144
  orgId: string(),
@@ -6166,20 +6160,20 @@ var Wa = object({
6166
6160
  ]),
6167
6161
  expiresAt: string(),
6168
6162
  memberCount: number().optional()
6169
- }), mo = object({
6163
+ }), uo = object({
6170
6164
  email: string().email(),
6171
6165
  role: _enum(["admin", "member"]).optional(),
6172
6166
  message: string().max(500).optional()
6173
- }).strict(), ho = object({ role: _enum(["admin", "member"]) }).strict(), go = object({ token: string().min(1) }).strict(), _o = _enum([
6167
+ }).strict(), fo = object({ role: _enum(["admin", "member"]) }).strict(), po = object({ token: string().min(1) }).strict(), mo = _enum([
6174
6168
  "planLimit",
6175
6169
  "billingOverdue",
6176
6170
  "rebuilding",
6177
6171
  "agentNotFound"
6178
- ]), vo = _enum([
6172
+ ]), ho = _enum([
6179
6173
  "rebuilding",
6180
6174
  "provisioning",
6181
6175
  "billingOverdue"
6182
- ]), yo = object({
6176
+ ]), go = object({
6183
6177
  agentId: string(),
6184
6178
  name: string(),
6185
6179
  avatar: L.optional(),
@@ -6199,21 +6193,21 @@ var Wa = object({
6199
6193
  detail: string().optional(),
6200
6194
  blocker: z.optional(),
6201
6195
  canWake: boolean(),
6202
- cantWakeReason: _o.optional(),
6196
+ cantWakeReason: mo.optional(),
6203
6197
  canRebuild: boolean(),
6204
- cantRebuildReason: vo.optional()
6205
- }), bo = /* @__PURE__ */ t({
6206
- zNotificationTelemetryAck: () => wo,
6207
- zNotificationTelemetryEvent: () => Co,
6208
- zRegisterDeviceRequest: () => xo,
6209
- zRegisterDeviceResponse: () => So
6210
- }), xo = object({
6198
+ cantRebuildReason: ho.optional()
6199
+ }), _o = /* @__PURE__ */ t({
6200
+ zNotificationTelemetryAck: () => xo,
6201
+ zNotificationTelemetryEvent: () => bo,
6202
+ zRegisterDeviceRequest: () => vo,
6203
+ zRegisterDeviceResponse: () => yo
6204
+ }), vo = object({
6211
6205
  deviceId: string().min(1).max(64),
6212
6206
  pushToken: string().min(1).max(200),
6213
6207
  appVersion: string().max(40).optional(),
6214
6208
  osVersion: string().max(40).optional(),
6215
6209
  model: string().max(80).optional()
6216
- }), So = object({ deviceId: string().min(1).max(64) }), Co = object({
6210
+ }), yo = object({ deviceId: string().min(1).max(64) }), bo = object({
6217
6211
  deviceId: string().min(1).max(64),
6218
6212
  kind: string().min(1).max(30),
6219
6213
  action: _enum([
@@ -6222,7 +6216,7 @@ var Wa = object({
6222
6216
  "dismissed"
6223
6217
  ]),
6224
6218
  messageId: string().max(32).optional()
6225
- }), wo = object({ updated: boolean() }), To = J.pick({
6219
+ }), xo = object({ updated: boolean() }), So = q.pick({
6226
6220
  orgId: !0,
6227
6221
  handle: !0,
6228
6222
  name: !0,
@@ -6236,13 +6230,13 @@ var Wa = object({
6236
6230
  status: !0,
6237
6231
  updatedAt: !0
6238
6232
  }).extend({
6239
- avatar: so.nullable().optional(),
6240
- cover: so.nullable().optional()
6241
- }), Eo = object({
6233
+ avatar: io.nullable().optional(),
6234
+ cover: io.nullable().optional()
6235
+ }), Co = object({
6242
6236
  name: string().min(1).max(255),
6243
6237
  handle: string().min(2).max(50).optional(),
6244
- timezone: X.optional()
6245
- }).strict(), Do = J.pick({
6238
+ timezone: Y.optional()
6239
+ }).strict(), wo = q.pick({
6246
6240
  name: !0,
6247
6241
  email: !0,
6248
6242
  website: !0,
@@ -6251,14 +6245,14 @@ var Wa = object({
6251
6245
  }).extend({
6252
6246
  name: string().min(1).max(255).optional(),
6253
6247
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6254
- timezone: X.optional(),
6248
+ timezone: Y.optional(),
6255
6249
  avatarMediaId: string().nullable().optional(),
6256
6250
  coverMediaId: string().nullable().optional()
6257
- }).strict(), Oo = _enum([
6251
+ }).strict(), To = _enum([
6258
6252
  "success",
6259
6253
  "info",
6260
6254
  "warning"
6261
- ]), ko = object({
6255
+ ]), Eo = object({
6262
6256
  org: object({
6263
6257
  orgId: string(),
6264
6258
  name: string(),
@@ -6267,7 +6261,7 @@ var Wa = object({
6267
6261
  plan: object({
6268
6262
  key: string(),
6269
6263
  label: string(),
6270
- tone: Oo,
6264
+ tone: To,
6271
6265
  status: string(),
6272
6266
  trialDaysRemaining: number().optional()
6273
6267
  }),
@@ -6288,15 +6282,15 @@ function zPaginatedResponse(e) {
6288
6282
  }
6289
6283
  //#endregion
6290
6284
  //#region ../core/dist/wire/public-services.js
6291
- var Ao = object({
6285
+ var Do = object({
6292
6286
  sender: _enum(["user", "agent"]),
6293
6287
  text: string()
6294
- }), jo = _enum([
6288
+ }), Oo = _enum([
6295
6289
  "works-now",
6296
6290
  "guided-setup",
6297
6291
  "coming-soon",
6298
6292
  "custom-workflow"
6299
- ]), Mo = object({
6293
+ ]), ko = object({
6300
6294
  docsUrl: string(),
6301
6295
  verifiedAt: string(),
6302
6296
  version: string().optional(),
@@ -6308,11 +6302,11 @@ var Ao = object({
6308
6302
  "unversioned"
6309
6303
  ]),
6310
6304
  note: string().optional()
6311
- }), No = object({
6305
+ }), Ao = object({
6312
6306
  key: string(),
6313
6307
  label: string(),
6314
6308
  rank: number()
6315
- }), Po = object({
6309
+ }), jo = object({
6316
6310
  text: string(),
6317
6311
  tone: _enum([
6318
6312
  "info",
@@ -6320,7 +6314,7 @@ var Ao = object({
6320
6314
  "success",
6321
6315
  "danger"
6322
6316
  ])
6323
- }), Fo = object({
6317
+ }), Mo = object({
6324
6318
  serviceKey: string(),
6325
6319
  name: string(),
6326
6320
  description: string(),
@@ -6330,16 +6324,16 @@ var Ao = object({
6330
6324
  category: string(),
6331
6325
  categoryLabel: string(),
6332
6326
  categoryRank: number(),
6333
- secondaryCategories: array(No),
6334
- badges: array(Po),
6327
+ secondaryCategories: array(Ao),
6328
+ badges: array(jo),
6335
6329
  tags: array(string()),
6336
6330
  searchAliases: array(string()),
6337
6331
  jtbd: string(),
6338
6332
  useCase: string(),
6339
6333
  demoScenario: string(),
6340
- sampleConversation: array(Ao),
6341
- publicStatus: jo,
6342
- apiVerification: Mo.optional(),
6334
+ sampleConversation: array(Do),
6335
+ publicStatus: Oo,
6336
+ apiVerification: ko.optional(),
6343
6337
  setupDifficulty: string(),
6344
6338
  risk: string(),
6345
6339
  price: string(),
@@ -6352,24 +6346,24 @@ var Ao = object({
6352
6346
  ]),
6353
6347
  setupSummary: string().optional(),
6354
6348
  pagePath: string()
6355
- }), Io = object({
6349
+ }), No = object({
6356
6350
  fullName: string().min(1).max(100).optional(),
6357
- linkedinUsername: q.nullable().optional(),
6351
+ linkedinUsername: K.nullable().optional(),
6358
6352
  avatarMediaId: string().nullable().optional(),
6359
6353
  primaryAgentId: string().nullable().optional(),
6360
6354
  lastActiveOrgId: string().nullable().optional()
6361
- }).strict(), Lo = /* @__PURE__ */ t({
6362
- ASSISTANT_SILENCE_CONTROLS: () => Ci,
6355
+ }).strict(), Po = /* @__PURE__ */ t({
6356
+ ASSISTANT_SILENCE_CONTROLS: () => xi,
6363
6357
  ActionAreaSchema: () => Pr,
6364
6358
  ActionButtonSchema: () => R,
6365
- Agent: () => ai,
6359
+ Agent: () => oi,
6366
6360
  AudioFormatSchema: () => Cr,
6367
6361
  AudioMediaSchema: () => Or,
6368
6362
  AudioPropertiesSchema: () => Tr,
6369
6363
  AuthApiError: () => AuthApiError,
6370
- BOT_API_LLM_PATH: () => Di,
6371
- BOT_API_PATH: () => Ei,
6372
- BOT_USER_AGENT: () => Si,
6364
+ BOT_API_LLM_PATH: () => Ti,
6365
+ BOT_API_PATH: () => wi,
6366
+ BOT_USER_AGENT: () => bi,
6373
6367
  ButtonDesignSchema: () => Nr,
6374
6368
  ButtonThemeSchema: () => Mr,
6375
6369
  CHART_THEME: () => Lr,
@@ -6378,8 +6372,8 @@ var Ao = object({
6378
6372
  CookieUtil: () => CookieUtil,
6379
6373
  DEFAULT_HEARTBEAT_TIMES: () => ir,
6380
6374
  DocumentMediaSchema: () => kr,
6381
- ERROR_CODES: () => Fi,
6382
- EnrichedAgentSchema: () => ri,
6375
+ ERROR_CODES: () => Ni,
6376
+ EnrichedAgentSchema: () => ii,
6383
6377
  ImageFormatSchema: () => xr,
6384
6378
  ImageMediaSchema: () => Er,
6385
6379
  LIFECYCLE_COLOR: () => Kr,
@@ -6404,17 +6398,16 @@ var Ao = object({
6404
6398
  VideoFormatSchema: () => Sr,
6405
6399
  VideoMediaSchema: () => Dr,
6406
6400
  VideoPropertiesSchema: () => wr,
6407
- agentSchema: () => ni,
6401
+ agentSchema: () => ri,
6408
6402
  apiError: () => apiError,
6409
6403
  apiOk: () => apiOk,
6410
- appleAuthSchema: () => _i,
6404
+ appleAuthSchema: () => hi,
6411
6405
  authErrorMessage: () => authErrorMessage,
6412
6406
  botApiLlmUrl: () => botApiLlmUrl,
6413
6407
  botApiUrl: () => botApiUrl,
6414
6408
  budgetMinutes: () => budgetMinutes,
6415
6409
  buildChatIssue: () => buildChatIssue,
6416
- changeEmailSchema: () => mi,
6417
- changePasswordSchema: () => hi,
6410
+ changeEmailSchema: () => pi,
6418
6411
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6419
6412
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6420
6413
  chatEventTurnId: () => chatEventTurnId,
@@ -6427,8 +6420,8 @@ var Ao = object({
6427
6420
  createLogger: () => createLogger,
6428
6421
  debug: () => dr,
6429
6422
  derive: () => derive,
6430
- emailSchema: () => li,
6431
- enrichedUserSchema: () => xi,
6423
+ emailSchema: () => di,
6424
+ enrichedUserSchema: () => yi,
6432
6425
  error: () => cr,
6433
6426
  errorCopy: () => errorCopy,
6434
6427
  errorFromApiResponse: () => errorFromApiResponse,
@@ -6438,160 +6431,157 @@ var Ao = object({
6438
6431
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6439
6432
  getDefaultGradientCss: () => getDefaultGradientCss,
6440
6433
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6441
- googleAuthSchema: () => gi,
6434
+ googleAuthSchema: () => mi,
6442
6435
  info: () => ur,
6443
6436
  isAgentReady: () => isAgentReady,
6444
6437
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6445
6438
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6446
6439
  isOperationActive: () => isOperationActive,
6447
6440
  isTransitioning: () => isTransitioning,
6448
- linkedinUsernameSchema: () => q,
6441
+ linkedinUsernameSchema: () => K,
6449
6442
  logger: () => N,
6450
- loginSchema: () => ui,
6451
6443
  mapAuthErrorCode: () => mapAuthErrorCode,
6452
6444
  nanoid: () => nanoid,
6453
- notificationWire: () => bo,
6445
+ notificationWire: () => _o,
6454
6446
  objectId: () => objectId,
6455
- orgInfoSchema: () => bi,
6456
- orgSchema: () => J,
6457
- orgWithDefaultAgentSchema: () => vi,
6447
+ orgInfoSchema: () => vi,
6448
+ orgSchema: () => q,
6449
+ orgWithDefaultAgentSchema: () => gi,
6458
6450
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6459
6451
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6460
- registerSchema: () => di,
6461
6452
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6462
- resetPasswordSchema: () => pi,
6463
6453
  resolveVoice: () => resolveVoice,
6464
6454
  retryPolicyFor: () => retryPolicyFor,
6465
6455
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6466
- serverTransitionBudgets: () => Ti,
6456
+ serverTransitionBudgets: () => Ci,
6467
6457
  shortId: () => shortId,
6468
6458
  toAgentState: () => toAgentState,
6469
6459
  toChatStreamError: () => toChatStreamError,
6470
6460
  trace: () => fr,
6471
- trialEligibilitySchema: () => oi,
6472
- updateUserSchema: () => ci,
6473
- userSchema: () => si,
6461
+ trialEligibilitySchema: () => si,
6462
+ updateUserSchema: () => ui,
6463
+ userSchema: () => li,
6474
6464
  uuid: () => uuid,
6475
6465
  verifyCodeSchema: () => fi,
6476
6466
  warn: () => lr,
6477
6467
  withChatEventTurnId: () => withChatEventTurnId,
6478
- zAcceptInvitationBody: () => go,
6479
- zAccessibleAgentRow: () => yo,
6468
+ zAcceptInvitationBody: () => po,
6469
+ zAccessibleAgentRow: () => go,
6480
6470
  zAgentGender: () => U,
6481
- zAgentRow: () => Ni,
6482
- zApiError: () => Ri,
6471
+ zAgentRow: () => ji,
6472
+ zApiError: () => Ii,
6483
6473
  zApiOk: () => zApiOk,
6484
6474
  zApiResponse: () => zApiResponse,
6485
- zAppleAuthBody: () => la,
6486
- zAuthSessionData: () => ua,
6487
- zAuthSessionResponse: () => da,
6488
- zAutomationPrimaryChannel: () => Ai,
6489
- zBackfillBillingData: () => Ea,
6490
- zBackfillCustomersData: () => Ta,
6491
- zBillingDetails: () => Ca,
6492
- zBillingInvoice: () => xa,
6493
- zBillingPaymentMethod: () => ba,
6494
- zBillingPlanKey: () => va,
6495
- zBillingStatus: () => ya,
6496
- zBillingTier: () => K,
6497
- zBotGenerateImageBody: () => sa,
6498
- zBotGenerateImageResponse: () => ca,
6499
- zCancelConversationTurnBody: () => Ja,
6500
- zCancelConversationTurnResponse: () => Ya,
6501
- zCantRebuildReason: () => vo,
6502
- zCantWakeReason: () => _o,
6503
- zChatAttachment: () => Gi,
6504
- zChatAttachmentInput: () => $i,
6505
- zChatAttachmentPlacement: () => Wi,
6506
- zChatCardSpec: () => ja,
6507
- zChatErrorData: () => Oa,
6508
- zChatEvent: () => ka,
6475
+ zAppleAuthBody: () => sa,
6476
+ zAuthSessionData: () => ca,
6477
+ zAuthSessionResponse: () => la,
6478
+ zAutomationPrimaryChannel: () => Oi,
6479
+ zBackfillBillingData: () => wa,
6480
+ zBackfillCustomersData: () => Ca,
6481
+ zBillingDetails: () => xa,
6482
+ zBillingInvoice: () => ya,
6483
+ zBillingPaymentMethod: () => va,
6484
+ zBillingPlanKey: () => ga,
6485
+ zBillingStatus: () => _a,
6486
+ zBillingTier: () => ni,
6487
+ zBotGenerateImageBody: () => aa,
6488
+ zBotGenerateImageResponse: () => oa,
6489
+ zCancelConversationTurnBody: () => Ga,
6490
+ zCancelConversationTurnResponse: () => Ka,
6491
+ zCantRebuildReason: () => ho,
6492
+ zCantWakeReason: () => mo,
6493
+ zChatAttachment: () => Ui,
6494
+ zChatAttachmentInput: () => Zi,
6495
+ zChatAttachmentPlacement: () => Hi,
6496
+ zChatCardSpec: () => ka,
6497
+ zChatErrorData: () => Ea,
6498
+ zChatEvent: () => Da,
6509
6499
  zChatIssue: () => z,
6510
- zChatMessage: () => Qi,
6511
- zChatMessageAttentionItem: () => Yi,
6512
- zChatMessageAttentionRef: () => Ki,
6513
- zChatMessageAttentionUpdate: () => Xi,
6514
- zChatMessageMetadata: () => Zi,
6515
- zChatStatusData: () => Da,
6516
- zChatToolActivityData: () => Vi,
6517
- zChatToolActivityVisual: () => Bi,
6518
- zChatVisualSpec: () => Ua,
6519
- zCompleteCheckoutData: () => wa,
6520
- zConversationLastMessage: () => Ga,
6521
- zConversationParticipant: () => Wa,
6522
- zConversationSummary: () => Ka,
6523
- zConversationTarget: () => ta,
6524
- zConversationUpdatedEvent: () => Za,
6525
- zCreateAgentBody: () => ji,
6526
- zCreateConversationBody: () => na,
6527
- zCreateConversationSessionBody: () => ra,
6528
- zCreateOrgBody: () => Eo,
6500
+ zChatMessage: () => Xi,
6501
+ zChatMessageAttentionItem: () => qi,
6502
+ zChatMessageAttentionRef: () => Wi,
6503
+ zChatMessageAttentionUpdate: () => Ji,
6504
+ zChatMessageMetadata: () => Yi,
6505
+ zChatStatusData: () => Ta,
6506
+ zChatToolActivityData: () => zi,
6507
+ zChatToolActivityVisual: () => Ri,
6508
+ zChatVisualSpec: () => Va,
6509
+ zCompleteCheckoutData: () => Sa,
6510
+ zConversationLastMessage: () => Ha,
6511
+ zConversationParticipant: () => Q,
6512
+ zConversationSummary: () => Ua,
6513
+ zConversationTarget: () => $i,
6514
+ zConversationUpdatedEvent: () => Ja,
6515
+ zCreateAgentBody: () => ki,
6516
+ zCreateConversationBody: () => ea,
6517
+ zCreateConversationSessionBody: () => ta,
6518
+ zCreateOrgBody: () => Co,
6529
6519
  zDesiredStatus: () => V,
6530
- zErrorCode: () => Ii,
6520
+ zErrorCode: () => Pi,
6531
6521
  zErrorResponses: () => zErrorResponses,
6532
- zFleetAgent: () => no,
6533
- zFleetSummary: () => ro,
6534
- zFleetSyncResponse: () => io,
6535
- zHandoffConsumeBody: () => ha,
6536
- zHandoffConsumeData: () => ga,
6537
- zHandoffConsumeResponse: () => _a,
6538
- zHandoffMintBody: () => fa,
6539
- zHandoffMintData: () => pa,
6540
- zHandoffMintResponse: () => ma,
6522
+ zFleetAgent: () => $a,
6523
+ zFleetSummary: () => eo,
6524
+ zFleetSyncResponse: () => to,
6525
+ zHandoffConsumeBody: () => pa,
6526
+ zHandoffConsumeData: () => ma,
6527
+ zHandoffConsumeResponse: () => ha,
6528
+ zHandoffMintBody: () => ua,
6529
+ zHandoffMintData: () => da,
6530
+ zHandoffMintResponse: () => fa,
6541
6531
  zHeartbeatLocalTime: () => E,
6542
6532
  zHeartbeatMoment: () => rr,
6543
- zIanaTimezone: () => X,
6544
- zImageAspectRatio: () => aa,
6545
- zImageResolution: () => oa,
6546
- zInvitationPreview: () => po,
6547
- zInvitationRow: () => fo,
6548
- zInviteBody: () => mo,
6533
+ zIanaTimezone: () => Y,
6534
+ zImageAspectRatio: () => ra,
6535
+ zImageResolution: () => ia,
6536
+ zInvitationPreview: () => lo,
6537
+ zInvitationRow: () => co,
6538
+ zInviteBody: () => uo,
6549
6539
  zLifecycle: () => H,
6550
6540
  zLifecycleVerb: () => Yr,
6551
6541
  zLiveStatus: () => Wr,
6552
- zMarkReadBody: () => qa,
6553
- zMediaContext: () => ao,
6554
- zMediaObject: () => so,
6555
- zMediaType: () => oo,
6556
- zMemberRow: () => uo,
6557
- zMessageSearchResult: () => Xa,
6558
- zOrgRow: () => To,
6559
- zOrgSummary: () => ko,
6542
+ zMarkReadBody: () => Wa,
6543
+ zMediaContext: () => no,
6544
+ zMediaObject: () => io,
6545
+ zMediaType: () => ro,
6546
+ zMemberRow: () => so,
6547
+ zMessageSearchResult: () => qa,
6548
+ zOrgRow: () => So,
6549
+ zOrgSummary: () => Eo,
6560
6550
  zPaginatedResponse: () => zPaginatedResponse,
6561
- zPlanTone: () => Oo,
6562
- zProviderErrorKind: () => Li,
6563
- zPublicServiceOverview: () => Fo,
6564
- zReportMessageBody: () => ia,
6551
+ zPlanTone: () => To,
6552
+ zProviderErrorKind: () => Fi,
6553
+ zPublicServiceOverview: () => Mo,
6554
+ zReportMessageBody: () => na,
6565
6555
  zRuntimeOperation: () => Ur,
6566
6556
  zRuntimeOperationKind: () => Vr,
6567
6557
  zRuntimeOperationStatus: () => Hr,
6568
- zSendMessageBody: () => ea,
6569
- zSuggestedPrompt: () => Pi,
6570
- zUpdateAgentBody: () => Mi,
6571
- zUpdateOrgBody: () => Do,
6572
- zUpdateRoleBody: () => ho,
6573
- zUpdateUserBody: () => Io,
6574
- zUploadMediaBody: () => co,
6558
+ zSendMessageBody: () => Qi,
6559
+ zSuggestedPrompt: () => Mi,
6560
+ zUpdateAgentBody: () => Ai,
6561
+ zUpdateOrgBody: () => wo,
6562
+ zUpdateRoleBody: () => fo,
6563
+ zUpdateUserBody: () => No,
6564
+ zUploadMediaBody: () => ao,
6575
6565
  zVoiceKey: () => G,
6576
6566
  zVoiceProviderName: () => $r,
6577
6567
  zVoiceProviderSession: () => Qr,
6578
6568
  zVoiceSessionMint: () => ei,
6579
6569
  zVoiceSessionMintBody: () => Zr
6580
- }), Ro = "1.0.0";
6570
+ }), Fo = "1.0.0";
6581
6571
  function buildContract(e = {}) {
6582
6572
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6583
6573
  let r = contractNameFor(e);
6584
6574
  r && (n[r] = toSchema(t));
6585
6575
  };
6586
- for (let [e, t] of Object.entries(Lo)) {
6587
- if (t instanceof S) {
6576
+ for (let [e, t] of Object.entries(Po)) {
6577
+ if (t instanceof C) {
6588
6578
  addSchema(e, t);
6589
6579
  continue;
6590
6580
  }
6591
- if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6581
+ if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof C && addSchema(e, n);
6592
6582
  }
6593
6583
  return {
6594
- version: Ro,
6584
+ version: Fo,
6595
6585
  generatedAt: t.toISOString(),
6596
6586
  schemas: n
6597
6587
  };
@@ -6611,6 +6601,6 @@ function sortedReplacer(e, t) {
6611
6601
  return t;
6612
6602
  }
6613
6603
  //#endregion
6614
- export { Ro as CONTRACT_VERSION, buildContract, serializeContract };
6604
+ export { Fo as CONTRACT_VERSION, buildContract, serializeContract };
6615
6605
 
6616
6606
  //# sourceMappingURL=contract.js.map