@pagelines/sdk 1.0.778 → 1.0.779

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
- }), y = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
839
+ }), Ke = /*@__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
- }), 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) => {
851
+ }), y = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
852
+ g.init(e, t), Ke.init(e, t);
853
+ }), qe = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
854
+ t.pattern ?? (t.pattern = le), y.init(e, t);
855
+ }), Je = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
856
856
  if (t.version) {
857
857
  let e = {
858
858
  v1: 1,
@@ -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
- 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) => {
870
+ y.init(e, t);
871
+ }), Ye = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
872
+ t.pattern ?? (t.pattern = de), y.init(e, t);
873
+ }), Xe = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
874
+ y.init(e, t), e._zod.check = (n) => {
875
875
  try {
876
876
  let r = n.value.trim();
877
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
- }), 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) => {
917
+ }), Ze = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
918
+ t.pattern ?? (t.pattern = emoji()), y.init(e, t);
919
+ }), Qe = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
920
+ t.pattern ?? (t.pattern = se), y.init(e, t);
921
+ }), $e = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
922
+ t.pattern ?? (t.pattern = ne), y.init(e, t);
923
+ }), et = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
924
+ t.pattern ?? (t.pattern = re), y.init(e, t);
925
+ }), tt = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
926
+ t.pattern ?? (t.pattern = ie), y.init(e, t);
927
+ }), nt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
928
+ t.pattern ?? (t.pattern = ae), y.init(e, t);
929
+ }), rt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
930
+ t.pattern ?? (t.pattern = oe), y.init(e, t);
931
+ }), it = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
932
+ t.pattern ?? (t.pattern = datetime$1(t)), y.init(e, t);
933
+ }), at = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
934
+ t.pattern ?? (t.pattern = Se), y.init(e, t);
935
+ }), ot = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
936
+ t.pattern ?? (t.pattern = time$1(t)), y.init(e, t);
937
+ }), st = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
938
+ t.pattern ?? (t.pattern = ce), y.init(e, t);
939
+ }), ct = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
940
+ t.pattern ?? (t.pattern = pe), y.init(e, t), e._zod.bag.format = "ipv4";
941
+ }), lt = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
942
+ t.pattern ?? (t.pattern = me), y.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
943
943
  try {
944
944
  new URL(`http://[${n.value}]`);
945
945
  } catch {
@@ -952,10 +952,10 @@ var Ce = /* @__PURE__ */ e((e) => {
952
952
  });
953
953
  }
954
954
  };
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) => {
955
+ }), ut = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
956
+ t.pattern ?? (t.pattern = he), y.init(e, t);
957
+ }), dt = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
958
+ t.pattern ?? (t.pattern = ge), y.init(e, t), e._zod.check = (n) => {
959
959
  let r = n.value.split("/");
960
960
  try {
961
961
  if (r.length !== 2) throw Error();
@@ -984,8 +984,8 @@ function isValidBase64(e) {
984
984
  return !1;
985
985
  }
986
986
  }
987
- var 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) => {
987
+ var ft = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
988
+ t.pattern ?? (t.pattern = _e), y.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
989
989
  isValidBase64(n.value) || n.issues.push({
990
990
  code: "invalid_format",
991
991
  format: "base64",
@@ -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 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) => {
1003
+ var pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1004
+ t.pattern ?? (t.pattern = ve), y.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1005
1005
  isValidBase64URL(n.value) || n.issues.push({
1006
1006
  code: "invalid_format",
1007
1007
  format: "base64url",
@@ -1010,8 +1010,8 @@ var ft = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1010
1010
  continue: !t.abort
1011
1011
  });
1012
1012
  };
1013
- }), pt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
- t.pattern ?? (t.pattern = be), b.init(e, t);
1013
+ }), mt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
+ t.pattern ?? (t.pattern = be), y.init(e, t);
1015
1015
  });
1016
1016
  function isValidJWT(e, t = null) {
1017
1017
  try {
@@ -1025,8 +1025,8 @@ function isValidJWT(e, t = null) {
1025
1025
  return !1;
1026
1026
  }
1027
1027
  }
1028
- var mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
- b.init(e, t), e._zod.check = (n) => {
1028
+ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
+ y.init(e, t), e._zod.check = (n) => {
1030
1030
  isValidJWT(n.value, t.alg) || n.issues.push({
1031
1031
  code: "invalid_format",
1032
1032
  format: "jwt",
@@ -1035,7 +1035,7 @@ var mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1035
1035
  continue: !t.abort
1036
1036
  });
1037
1037
  };
1038
- }), ht = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
1038
+ }), gt = /*@__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 mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1051
1051
  ...a ? { received: a } : {}
1052
1052
  }), n;
1053
1053
  };
1054
- }), gt = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
- Pe.init(e, t), ht.init(e, t);
1056
- }), _t = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
1054
+ }), _t = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
+ Pe.init(e, t), gt.init(e, t);
1056
+ }), vt = /*@__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 mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1066
1066
  inst: e
1067
1067
  }), n;
1068
1068
  };
1069
- }), vt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
1069
+ }), yt = /*@__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 mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1076
1076
  inst: e
1077
1077
  }), t;
1078
1078
  };
1079
- }), yt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1079
+ }), bt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1080
1080
  v.init(e, t), e._zod.parse = (e) => e;
1081
- }), bt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1081
+ }), xt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1082
1082
  v.init(e, t), e._zod.parse = (e) => e;
1083
- }), xt = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
1083
+ }), St = /*@__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 mt = /*@__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 St = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
1094
+ var Ct = /*@__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 Ct = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1165
+ var wt = /*@__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 Ct = /*@__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
- }), wt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
- Ct.init(e, t);
1206
+ }), Tt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
+ wt.init(e, t);
1208
1208
  let n = e._zod.parse, r = cached(() => normalizeDef(t)), generateFastpass = (e) => {
1209
1209
  let t = new Doc([
1210
1210
  "shape",
@@ -1306,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 Tt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1309
+ var Et = /*@__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 Tt = /*@__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
- }), Et = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
- t.inclusive = !1, Tt.init(e, t);
1335
+ }), Dt = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
+ t.inclusive = !1, Et.init(e, t);
1337
1337
  let n = e._zod.parse;
1338
1338
  defineLazy(e._zod, "propValues", () => {
1339
1339
  let e = {};
@@ -1379,7 +1379,7 @@ var Tt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1379
1379
  inst: e
1380
1380
  }), i);
1381
1381
  };
1382
- }), Dt = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
1382
+ }), Ot = /*@__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 Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1458
+ var kt = /*@__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 Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1541
1541
  }
1542
1542
  return a.length ? Promise.all(a).then(() => n) : n;
1543
1543
  };
1544
- }), kt = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
1544
+ }), At = /*@__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 Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1553
1553
  inst: e
1554
1554
  }), t;
1555
1555
  };
1556
- }), At = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
1556
+ }), jt = /*@__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 Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1565
1565
  inst: e
1566
1566
  }), r;
1567
1567
  };
1568
- }), jt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
1568
+ }), Mt = /*@__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 Mt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1583
+ var Nt = /*@__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 Mt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1591
1591
  }
1592
1592
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1593
1593
  };
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) => {
1594
+ }), Pt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
1595
+ Nt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1596
+ }), Ft = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
1597
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
- }), Ft = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
1601
+ }), It = /*@__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 Mt = /*@__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 It = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
1612
+ var Lt = /*@__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
- }), Lt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
1614
+ }), Rt = /*@__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 Rt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1631
+ var zt = /*@__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 Rt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1642
1642
  input: e.value
1643
1643
  }), e.issues = [], e.fallback = !0), e);
1644
1644
  };
1645
- }), zt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
1645
+ }), Bt = /*@__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 Bt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
- zt.init(e, t);
1664
- }), Vt = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
1662
+ var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
+ Bt.init(e, t);
1664
+ }), Ht = /*@__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 Bt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1671
1671
  function handleReadonlyResult(e) {
1672
1672
  return e.value = Object.freeze(e.value), e;
1673
1673
  }
1674
- var Ht = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
1674
+ var Ut = /*@__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 Ut, $ZodRegistry = class {
1695
+ var Wt, $ZodRegistry = class {
1696
1696
  constructor() {
1697
1697
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1698
1698
  }
@@ -1727,8 +1727,8 @@ var Ut, $ZodRegistry = class {
1727
1727
  function registry() {
1728
1728
  return new $ZodRegistry();
1729
1729
  }
1730
- (Ut = globalThis).__zod_globalRegistry ?? (Ut.__zod_globalRegistry = registry());
1731
- var x = globalThis.__zod_globalRegistry;
1730
+ (Wt = globalThis).__zod_globalRegistry ?? (Wt.__zod_globalRegistry = registry());
1731
+ var b = globalThis.__zod_globalRegistry;
1732
1732
  //#endregion
1733
1733
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1734
1734
  // @__NO_SIDE_EFFECTS__
@@ -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 ?? x,
2241
+ metadataRegistry: e?.metadata ?? b,
2242
2242
  target: t,
2243
2243
  unrepresentable: e?.unrepresentable ?? "throw",
2244
2244
  override: e?.override ?? (() => {}),
@@ -2454,7 +2454,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2454
2454
  processors: n
2455
2455
  });
2456
2456
  return process$1(e, o), extractDefs(o, e), finalize(o, e);
2457
- }, Wt = {
2457
+ }, Gt = {
2458
2458
  guid: "uuid",
2459
2459
  url: "uri",
2460
2460
  datetime: "date-time",
@@ -2464,7 +2464,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2464
2464
  let i = n;
2465
2465
  i.type = "string";
2466
2466
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2467
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Wt[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 = Gt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2468
2468
  let e = [...c];
2469
2469
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2470
2470
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
@@ -2688,7 +2688,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2688
2688
  process$1(i, t, r);
2689
2689
  let a = t.seen.get(e);
2690
2690
  a.ref = i;
2691
- }, Gt = {
2691
+ }, Kt = {
2692
2692
  string: stringProcessor,
2693
2693
  number: numberProcessor,
2694
2694
  boolean: booleanProcessor,
@@ -2733,7 +2733,7 @@ function toJSONSchema(e, t) {
2733
2733
  if ("_idmap" in e) {
2734
2734
  let n = e, r = initializeContext({
2735
2735
  ...t,
2736
- processors: Gt
2736
+ processors: Kt
2737
2737
  }), i = {};
2738
2738
  for (let e of n._idmap.entries()) {
2739
2739
  let [t, n] = e;
@@ -2753,35 +2753,35 @@ function toJSONSchema(e, t) {
2753
2753
  }
2754
2754
  let n = initializeContext({
2755
2755
  ...t,
2756
- processors: Gt
2756
+ processors: Kt
2757
2757
  });
2758
2758
  return process$1(e, n), extractDefs(n, e), finalize(n, e);
2759
2759
  }
2760
2760
  //#endregion
2761
2761
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
2762
- var Kt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
- rt.init(e, t), w.init(e, t);
2762
+ var qt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
+ it.init(e, t), C.init(e, t);
2764
2764
  });
2765
2765
  function datetime(e) {
2766
- return /* @__PURE__ */ _isoDateTime(Kt, e);
2766
+ return /* @__PURE__ */ _isoDateTime(qt, e);
2767
2767
  }
2768
- var qt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
- it.init(e, t), w.init(e, t);
2768
+ var Jt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
+ at.init(e, t), C.init(e, t);
2770
2770
  });
2771
2771
  function date(e) {
2772
- return /* @__PURE__ */ _isoDate(qt, e);
2772
+ return /* @__PURE__ */ _isoDate(Jt, e);
2773
2773
  }
2774
- var Jt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
- at.init(e, t), w.init(e, t);
2774
+ var Yt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
+ ot.init(e, t), C.init(e, t);
2776
2776
  });
2777
2777
  function time(e) {
2778
- return /* @__PURE__ */ _isoTime(Jt, e);
2778
+ return /* @__PURE__ */ _isoTime(Yt, e);
2779
2779
  }
2780
- var Yt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
- ot.init(e, t), w.init(e, t);
2780
+ var Xt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
+ st.init(e, t), C.init(e, t);
2782
2782
  });
2783
2783
  function duration(e) {
2784
- return /* @__PURE__ */ _isoDuration(Yt, e);
2784
+ return /* @__PURE__ */ _isoDuration(Xt, e);
2785
2785
  }
2786
2786
  //#endregion
2787
2787
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
@@ -2799,10 +2799,10 @@ var initializer = (e, t) => {
2799
2799
  return e.issues.length === 0;
2800
2800
  } }
2801
2801
  });
2802
- }, 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();
2802
+ }, x = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Zt = /* @__PURE__ */ _parse(x), Qt = /* @__PURE__ */ _parseAsync(x), $t = /* @__PURE__ */ _safeParse(x), en = /* @__PURE__ */ _safeParseAsync(x), tn = /* @__PURE__ */ _encode(x), nn = /* @__PURE__ */ _decode(x), rn = /* @__PURE__ */ _encodeAsync(x), an = /* @__PURE__ */ _decodeAsync(x), on = /* @__PURE__ */ _safeEncode(x), sn = /* @__PURE__ */ _safeDecode(x), cn = /* @__PURE__ */ _safeEncodeAsync(x), ln = /* @__PURE__ */ _safeDecodeAsync(x), un = /* @__PURE__ */ new WeakMap();
2803
2803
  function _installLazyMethods(e, t, n) {
2804
- let r = Object.getPrototypeOf(e), i = ln.get(r);
2805
- if (i || (i = /* @__PURE__ */ new Set(), ln.set(r, i)), !i.has(t)) {
2804
+ let r = Object.getPrototypeOf(e), i = un.get(r);
2805
+ if (i || (i = /* @__PURE__ */ new Set(), un.set(r, i)), !i.has(t)) {
2806
2806
  i.add(t);
2807
2807
  for (let e in n) {
2808
2808
  let t = n[e];
@@ -2830,10 +2830,10 @@ function _installLazyMethods(e, t, n) {
2830
2830
  }
2831
2831
  }
2832
2832
  }
2833
- var C = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2833
+ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2834
2834
  input: createStandardJSONSchemaMethod(e, "input"),
2835
2835
  output: createStandardJSONSchemaMethod(e, "output")
2836
- } }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => 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", {
2836
+ } }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Zt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => $t(e, t, n), e.parseAsync = async (t, n) => Qt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => en(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => tn(e, t, n), e.decode = (t, n) => nn(e, t, n), e.encodeAsync = async (t, n) => rn(e, t, n), e.decodeAsync = async (t, n) => an(e, t, n), e.safeEncode = (t, n) => on(e, t, n), e.safeDecode = (t, n) => sn(e, t, n), e.safeEncodeAsync = async (t, n) => cn(e, t, n), e.safeDecodeAsync = async (t, n) => ln(e, t, n), _installLazyMethods(e, "ZodType", {
2837
2837
  check(...e) {
2838
2838
  let t = this.def;
2839
2839
  return this.clone(mergeDefs(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -2907,12 +2907,12 @@ var C = /*@__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 x.add(t, { description: e }), t;
2910
+ return b.add(t, { description: e }), t;
2911
2911
  },
2912
2912
  meta(...e) {
2913
- if (e.length === 0) return x.get(this);
2913
+ if (e.length === 0) return b.get(this);
2914
2914
  let t = this.clone();
2915
- return x.add(t, e[0]), t;
2915
+ return b.add(t, e[0]), t;
2916
2916
  },
2917
2917
  isOptional() {
2918
2918
  return this.safeParse(void 0).success;
@@ -2925,11 +2925,11 @@ var C = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2925
2925
  }
2926
2926
  }), Object.defineProperty(e, "description", {
2927
2927
  get() {
2928
- return x.get(e)?.description;
2928
+ return b.get(e)?.description;
2929
2929
  },
2930
2930
  configurable: !0
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);
2931
+ }), e)), dn = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
2932
+ Ke.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
2933
2933
  let n = e._zod.bag;
2934
2934
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, _installLazyMethods(e, "_ZodString", {
2935
2935
  regex(...e) {
@@ -2978,62 +2978,62 @@ var C = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2978
2978
  return this.check(/* @__PURE__ */ _slugify());
2979
2979
  }
2980
2980
  });
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));
2981
+ }), fn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
2982
+ Ke.init(e, t), dn.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(pn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(hn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(An, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(w, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(w, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(w, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(w, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(_n, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(vn, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(yn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(bn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(Dn, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(On, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(xn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(Sn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Cn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(wn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(Tn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(En, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(kn, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
2983
2983
  });
2984
2984
  function string(e) {
2985
- return /* @__PURE__ */ _string(dn, e);
2985
+ return /* @__PURE__ */ _string(fn, e);
2986
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);
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
2991
  });
2992
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);
2993
+ return /* @__PURE__ */ _email(pn, e);
2994
+ }
2995
+ var mn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
2996
+ qe.init(e, t), C.init(e, t);
2997
+ }), w = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
2998
+ Je.init(e, t), C.init(e, t);
2999
+ }), hn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
3000
+ Xe.init(e, t), C.init(e, t);
3001
3001
  });
3002
3002
  function url(e) {
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", {
3003
+ return /* @__PURE__ */ _url(hn, e);
3004
+ }
3005
+ var gn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3006
+ Ze.init(e, t), C.init(e, t);
3007
+ }), _n = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
3008
+ Qe.init(e, t), C.init(e, t);
3009
+ }), vn = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
3010
+ $e.init(e, t), C.init(e, t);
3011
+ }), yn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
3012
+ et.init(e, t), C.init(e, t);
3013
+ }), bn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
3014
+ tt.init(e, t), C.init(e, t);
3015
+ }), xn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
3016
+ nt.init(e, t), C.init(e, t);
3017
+ }), Sn = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
3018
+ rt.init(e, t), C.init(e, t);
3019
+ }), Cn = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
3020
+ ct.init(e, t), C.init(e, t);
3021
+ }), wn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
3022
+ lt.init(e, t), C.init(e, t);
3023
+ }), Tn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
3024
+ ut.init(e, t), C.init(e, t);
3025
+ }), En = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
3026
+ dt.init(e, t), C.init(e, t);
3027
+ }), Dn = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
3028
+ ft.init(e, t), C.init(e, t);
3029
+ }), On = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
3030
+ pt.init(e, t), C.init(e, t);
3031
+ }), kn = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
3032
+ mt.init(e, t), C.init(e, t);
3033
+ }), An = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
3034
+ ht.init(e, t), C.init(e, t);
3035
+ }), jn = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
3036
+ gt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
3037
3037
  gt(e, t) {
3038
3038
  return this.check(/* @__PURE__ */ _gt(e, t));
3039
3039
  },
@@ -3084,46 +3084,46 @@ var hn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3084
3084
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3085
3085
  });
3086
3086
  function number(e) {
3087
- return /* @__PURE__ */ _number(An, e);
3087
+ return /* @__PURE__ */ _number(jn, e);
3088
3088
  }
3089
- var jn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3090
- gt.init(e, t), An.init(e, t);
3089
+ var Mn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3090
+ _t.init(e, t), jn.init(e, t);
3091
3091
  });
3092
3092
  function int(e) {
3093
- return /* @__PURE__ */ _int(jn, e);
3093
+ return /* @__PURE__ */ _int(Mn, e);
3094
3094
  }
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);
3095
+ var Nn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
3096
+ vt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
3097
3097
  });
3098
3098
  function boolean(e) {
3099
- return /* @__PURE__ */ _boolean(Mn, e);
3099
+ return /* @__PURE__ */ _boolean(Nn, e);
3100
3100
  }
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);
3101
+ var Pn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
3102
+ yt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
3103
3103
  });
3104
3104
  function _null(e) {
3105
- return /* @__PURE__ */ _null$1(Nn, e);
3105
+ return /* @__PURE__ */ _null$1(Pn, e);
3106
3106
  }
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;
3107
+ var Fn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
3108
+ bt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3109
3109
  });
3110
3110
  function any() {
3111
- return /* @__PURE__ */ _any(Pn);
3111
+ return /* @__PURE__ */ _any(Fn);
3112
3112
  }
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;
3113
+ var In = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
3114
+ xt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3115
3115
  });
3116
3116
  function unknown() {
3117
- return /* @__PURE__ */ _unknown(Fn);
3117
+ return /* @__PURE__ */ _unknown(In);
3118
3118
  }
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);
3119
+ var Ln = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
3120
+ St.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
3121
3121
  });
3122
3122
  function never(e) {
3123
- return /* @__PURE__ */ _never(In, e);
3123
+ return /* @__PURE__ */ _never(Ln, e);
3124
3124
  }
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", {
3125
+ var Rn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3126
+ 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", {
3127
3127
  min(e, t) {
3128
3128
  return this.check(/* @__PURE__ */ _minLength(e, t));
3129
3129
  },
@@ -3142,10 +3142,10 @@ var Ln = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3142
3142
  });
3143
3143
  });
3144
3144
  function array(e, t) {
3145
- return /* @__PURE__ */ _array(Ln, e, t);
3145
+ return /* @__PURE__ */ _array(Rn, e, t);
3146
3146
  }
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", {
3147
+ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3148
+ 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", {
3149
3149
  keyof() {
3150
3150
  return _enum(Object.keys(this._zod.def.shape));
3151
3151
  },
@@ -3195,75 +3195,75 @@ var Rn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3195
3195
  return omit(this, e);
3196
3196
  },
3197
3197
  partial(...e) {
3198
- return partial(Kn, this, e[0]);
3198
+ return partial(qn, this, e[0]);
3199
3199
  },
3200
3200
  required(...e) {
3201
- return required(Zn, this, e[0]);
3201
+ return required(Qn, this, e[0]);
3202
3202
  }
3203
3203
  });
3204
3204
  });
3205
3205
  function object(e, t) {
3206
- return new Rn({
3206
+ return new zn({
3207
3207
  type: "object",
3208
3208
  shape: e ?? {},
3209
3209
  ...normalizeParams(t)
3210
3210
  });
3211
3211
  }
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;
3212
+ var Bn = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
3213
+ Et.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
3214
3214
  });
3215
3215
  function union(e, t) {
3216
- return new zn({
3216
+ return new Bn({
3217
3217
  type: "union",
3218
3218
  options: e,
3219
3219
  ...normalizeParams(t)
3220
3220
  });
3221
3221
  }
3222
- var Bn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3223
- zn.init(e, t), Et.init(e, t);
3222
+ var Vn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3223
+ Bn.init(e, t), Dt.init(e, t);
3224
3224
  });
3225
3225
  function discriminatedUnion(e, t, n) {
3226
- return new Bn({
3226
+ return new Vn({
3227
3227
  type: "union",
3228
3228
  options: t,
3229
3229
  discriminator: e,
3230
3230
  ...normalizeParams(n)
3231
3231
  });
3232
3232
  }
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);
3233
+ var Hn = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
3234
+ Ot.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
3235
3235
  });
3236
3236
  function intersection(e, t) {
3237
- return new Vn({
3237
+ return new Hn({
3238
3238
  type: "intersection",
3239
3239
  left: e,
3240
3240
  right: t
3241
3241
  });
3242
3242
  }
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;
3243
+ var Un = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
3244
+ 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;
3245
3245
  });
3246
3246
  function record(e, t, n) {
3247
- return !t || !t._zod ? new Hn({
3247
+ return !t || !t._zod ? new Un({
3248
3248
  type: "record",
3249
3249
  keyType: string(),
3250
3250
  valueType: e,
3251
3251
  ...normalizeParams(t)
3252
- }) : new Hn({
3252
+ }) : new Un({
3253
3253
  type: "record",
3254
3254
  keyType: e,
3255
3255
  valueType: t,
3256
3256
  ...normalizeParams(n)
3257
3257
  });
3258
3258
  }
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);
3259
+ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3260
+ 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);
3261
3261
  let n = new Set(Object.keys(t.entries));
3262
3262
  e.extract = (e, r) => {
3263
3263
  let i = {};
3264
3264
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3265
3265
  else throw Error(`Key ${r} not found in enum`);
3266
- return new Un({
3266
+ return new Wn({
3267
3267
  ...t,
3268
3268
  checks: [],
3269
3269
  ...normalizeParams(r),
@@ -3273,7 +3273,7 @@ var Un = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3273
3273
  let i = { ...t.entries };
3274
3274
  for (let t of e) if (n.has(t)) delete i[t];
3275
3275
  else throw Error(`Key ${t} not found in enum`);
3276
- return new Un({
3276
+ return new Wn({
3277
3277
  ...t,
3278
3278
  checks: [],
3279
3279
  ...normalizeParams(r),
@@ -3282,27 +3282,27 @@ var Un = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3282
3282
  };
3283
3283
  });
3284
3284
  function _enum(e, t) {
3285
- return new Un({
3285
+ return new Wn({
3286
3286
  type: "enum",
3287
3287
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3288
3288
  ...normalizeParams(t)
3289
3289
  });
3290
3290
  }
3291
- var Wn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3292
- At.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3291
+ var Gn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3292
+ 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() {
3293
3293
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
3294
3294
  return t.values[0];
3295
3295
  } });
3296
3296
  });
3297
3297
  function literal(e, t) {
3298
- return new Wn({
3298
+ return new Gn({
3299
3299
  type: "literal",
3300
3300
  values: Array.isArray(e) ? e : [e],
3301
3301
  ...normalizeParams(t)
3302
3302
  });
3303
3303
  }
3304
- var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3305
- jt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3304
+ var Kn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3305
+ Mt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3306
3306
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
3307
3307
  n.addIssue = (r) => {
3308
3308
  if (typeof r == "string") n.issues.push(issue(r, n.value, t));
@@ -3316,43 +3316,43 @@ var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3316
3316
  };
3317
3317
  });
3318
3318
  function transform(e) {
3319
- return new Gn({
3319
+ return new Kn({
3320
3320
  type: "transform",
3321
3321
  transform: e
3322
3322
  });
3323
3323
  }
3324
- var Kn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3325
- Mt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3324
+ var qn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3325
+ 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;
3326
3326
  });
3327
3327
  function optional(e) {
3328
- return new Kn({
3328
+ return new qn({
3329
3329
  type: "optional",
3330
3330
  innerType: e
3331
3331
  });
3332
3332
  }
3333
- var qn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3334
- Nt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3333
+ var Jn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3334
+ 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;
3335
3335
  });
3336
3336
  function exactOptional(e) {
3337
- return new qn({
3337
+ return new Jn({
3338
3338
  type: "optional",
3339
3339
  innerType: e
3340
3340
  });
3341
3341
  }
3342
- var Jn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3343
- Pt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3342
+ var Yn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3343
+ 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;
3344
3344
  });
3345
3345
  function nullable(e) {
3346
- return new Jn({
3346
+ return new Yn({
3347
3347
  type: "nullable",
3348
3348
  innerType: e
3349
3349
  });
3350
3350
  }
3351
- var Yn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3352
- Ft.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3351
+ var Xn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3352
+ 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;
3353
3353
  });
3354
3354
  function _default(e, t) {
3355
- return new Yn({
3355
+ return new Xn({
3356
3356
  type: "default",
3357
3357
  innerType: e,
3358
3358
  get defaultValue() {
@@ -3360,11 +3360,11 @@ function _default(e, t) {
3360
3360
  }
3361
3361
  });
3362
3362
  }
3363
- var Xn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3364
- It.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3363
+ var Zn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3364
+ 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;
3365
3365
  });
3366
3366
  function prefault(e, t) {
3367
- return new Xn({
3367
+ return new Zn({
3368
3368
  type: "prefault",
3369
3369
  innerType: e,
3370
3370
  get defaultValue() {
@@ -3372,58 +3372,58 @@ function prefault(e, t) {
3372
3372
  }
3373
3373
  });
3374
3374
  }
3375
- var Zn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3376
- Lt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3375
+ var Qn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3376
+ 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;
3377
3377
  });
3378
3378
  function nonoptional(e, t) {
3379
- return new Zn({
3379
+ return new Qn({
3380
3380
  type: "nonoptional",
3381
3381
  innerType: e,
3382
3382
  ...normalizeParams(t)
3383
3383
  });
3384
3384
  }
3385
- var Qn = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3386
- Rt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3385
+ var $n = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3386
+ 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;
3387
3387
  });
3388
3388
  function _catch(e, t) {
3389
- return new Qn({
3389
+ return new $n({
3390
3390
  type: "catch",
3391
3391
  innerType: e,
3392
3392
  catchValue: typeof t == "function" ? t : () => t
3393
3393
  });
3394
3394
  }
3395
- var $n = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3396
- zt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
3395
+ var er = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3396
+ 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;
3397
3397
  });
3398
3398
  function pipe(e, t) {
3399
- return new $n({
3399
+ return new er({
3400
3400
  type: "pipe",
3401
3401
  in: e,
3402
3402
  out: t
3403
3403
  });
3404
3404
  }
3405
- var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3406
- $n.init(e, t), Bt.init(e, t);
3407
- }), tr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3408
- Vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3405
+ var tr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3406
+ er.init(e, t), Vt.init(e, t);
3407
+ }), nr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3408
+ 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;
3409
3409
  });
3410
3410
  function readonly(e) {
3411
- return new tr({
3411
+ return new nr({
3412
3412
  type: "readonly",
3413
3413
  innerType: e
3414
3414
  });
3415
3415
  }
3416
- var nr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3417
- Ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3416
+ var rr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3417
+ Ut.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3418
3418
  });
3419
3419
  function refine(e, t = {}) {
3420
- return /* @__PURE__ */ _refine(nr, e, t);
3420
+ return /* @__PURE__ */ _refine(rr, e, t);
3421
3421
  }
3422
3422
  function superRefine(e, t) {
3423
3423
  return /* @__PURE__ */ _superRefine(e, t);
3424
3424
  }
3425
3425
  function preprocess(e, t) {
3426
- return new er({
3426
+ return new tr({
3427
3427
  type: "pipe",
3428
3428
  in: transform(e),
3429
3429
  out: t
@@ -3431,15 +3431,15 @@ function preprocess(e, t) {
3431
3431
  }
3432
3432
  //#endregion
3433
3433
  //#region ../core/dist/heartbeat.js
3434
- var rr = _enum([
3434
+ var ir = _enum([
3435
3435
  "briefing",
3436
3436
  "checkin",
3437
3437
  "closeout"
3438
- ]), E = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ir = {
3438
+ ]), T = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ar = {
3439
3439
  briefing: "07:30",
3440
3440
  checkin: "12:30",
3441
3441
  closeout: "17:30"
3442
- }, D = globalThis.process, O = typeof window < "u", k = D !== void 0 && !O, A = O ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : k && D !== void 0 && D.env?.NODE_ENV === "production", ar = !A, j = {
3442
+ }, E = globalThis.process, D = typeof window < "u", O = E !== void 0 && !D, k = D ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : O && E !== void 0 && E.env?.NODE_ENV === "production", or = !k, A = {
3443
3443
  error: {
3444
3444
  priority: 50,
3445
3445
  color: "#FF0000",
@@ -3465,7 +3465,7 @@ var rr = _enum([
3465
3465
  color: "#5233FF",
3466
3466
  nodeColor: "\x1B[35m"
3467
3467
  }
3468
- }, or = [
3468
+ }, sr = [
3469
3469
  "password",
3470
3470
  "token",
3471
3471
  "secret",
@@ -3475,11 +3475,11 @@ var rr = _enum([
3475
3475
  ];
3476
3476
  function isSensitiveKey(e) {
3477
3477
  let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
3478
- if (or.includes(t)) return !0;
3478
+ if (sr.includes(t)) return !0;
3479
3479
  let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
3480
- return or.some((e) => n.includes(e));
3480
+ return sr.some((e) => n.includes(e));
3481
3481
  }
3482
- var sr = /* @__PURE__ */ new Set([
3482
+ var cr = /* @__PURE__ */ new Set([
3483
3483
  "CONNECT_TIMEOUT",
3484
3484
  "ECONNREFUSED",
3485
3485
  "ECONNRESET",
@@ -3491,34 +3491,34 @@ var sr = /* @__PURE__ */ new Set([
3491
3491
  function infraErrorCode(e, t = 0) {
3492
3492
  if (t > 4 || !(e instanceof Error)) return;
3493
3493
  let n = e.code;
3494
- return typeof n == "string" && sr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3494
+ return typeof n == "string" && cr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3495
3495
  }
3496
3496
  function firstAppFrame(e) {
3497
3497
  if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
3498
3498
  }
3499
- var M = class Logger {
3499
+ var j = class Logger {
3500
3500
  constructor(e = {}, t) {
3501
3501
  this.enabledInBrowser = !1, this.context = t, this.settings = {
3502
3502
  enabled: e.enabled ?? !0,
3503
3503
  minLevel: e.minLevel ?? this.getDefaultLevel(),
3504
3504
  timestamps: e.timestamps ?? !0
3505
- }, O && this.initBrowserLogging();
3505
+ }, D && this.initBrowserLogging();
3506
3506
  }
3507
3507
  getDefaultLevel() {
3508
- if (k && D !== void 0 && D.env?.LOG_LEVEL) return D.env.LOG_LEVEL;
3509
- if (O && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
3508
+ if (O && E !== void 0 && E.env?.LOG_LEVEL) return E.env.LOG_LEVEL;
3509
+ if (D && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
3510
3510
  let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
3511
3511
  if (e) return e;
3512
3512
  }
3513
3513
  return "info";
3514
3514
  }
3515
3515
  initBrowserLogging() {
3516
- if (!O) return;
3516
+ if (!D) return;
3517
3517
  let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
3518
- this.enabledInBrowser = ar || e || t === "localhost" || t.includes("127.0.0.1"), A && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
3518
+ this.enabledInBrowser = or || e || t === "localhost" || t.includes("127.0.0.1"), k && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
3519
3519
  }
3520
3520
  shouldLog(e) {
3521
- return !this.settings.enabled || O && !this.enabledInBrowser ? !1 : j[e].priority >= j[this.settings.minLevel].priority;
3521
+ return !this.settings.enabled || D && !this.enabledInBrowser ? !1 : A[e].priority >= A[this.settings.minLevel].priority;
3522
3522
  }
3523
3523
  formatTimestamp() {
3524
3524
  return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
@@ -3554,16 +3554,16 @@ var M = class Logger {
3554
3554
  let i = {
3555
3555
  name: e.name,
3556
3556
  message: e.message,
3557
- stack: A ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
3557
+ stack: k ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
3558
3558
  };
3559
3559
  for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
3560
3560
  return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
3561
3561
  }
3562
3562
  if (e instanceof Date) return e.toISOString();
3563
3563
  if (typeof e != "object") return e;
3564
- if (Array.isArray(e)) return e.length > 20 && A ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
3564
+ if (Array.isArray(e)) return e.length > 20 && k ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
3565
3565
  try {
3566
- let r = {}, i = Object.entries(e), a = A ? 50 : 200;
3566
+ let r = {}, i = Object.entries(e), a = k ? 50 : 200;
3567
3567
  for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
3568
3568
  return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
3569
3569
  } catch {
@@ -3571,14 +3571,14 @@ var M = class Logger {
3571
3571
  }
3572
3572
  }
3573
3573
  logToBrowser(e) {
3574
- if (!O || !this.shouldLog(e.level)) return;
3575
- let { level: t, description: n, context: r, data: i, error: a } = e, o = j[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
3574
+ if (!D || !this.shouldLog(e.level)) return;
3575
+ let { level: t, description: n, context: r, data: i, error: a } = e, o = A[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
3576
3576
  i === void 0 ? console[t](`%c${s}`, c, n) : console[t](`%c${s}`, c, n, this.formatData(i)), a && (a instanceof Error ? console.error(a) : console.error("Error details:", a));
3577
3577
  }
3578
3578
  logToNode(e) {
3579
- if (!k || !this.shouldLog(e.level)) return;
3579
+ if (!O || !this.shouldLog(e.level)) return;
3580
3580
  let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
3581
- if (A) {
3581
+ if (k) {
3582
3582
  let e = {
3583
3583
  timestamp: this.formatISOTimestamp(),
3584
3584
  level: t.toUpperCase(),
@@ -3590,12 +3590,12 @@ var M = class Logger {
3590
3590
  let r = JSON.stringify(e);
3591
3591
  t === "trace" ? console.log(r) : console[t](r);
3592
3592
  } else {
3593
- let e = j[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
3593
+ let e = A[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
3594
3594
  console[t](c), i !== void 0 && console.log(JSON.stringify(this.formatData(i), null, 2)), a && (a instanceof Error ? (console.error(`\x1B[31mError:${s}`, a.message), a.stack && console.error(`\x1B[90m${a.stack}${s}`)) : console.error("Error:", a));
3595
3595
  }
3596
3596
  }
3597
3597
  log(e) {
3598
- O ? this.logToBrowser(e) : k && this.logToNode(e);
3598
+ D ? this.logToBrowser(e) : O && this.logToNode(e);
3599
3599
  }
3600
3600
  error(e, t) {
3601
3601
  this.log({
@@ -3638,7 +3638,7 @@ var M = class Logger {
3638
3638
  });
3639
3639
  }
3640
3640
  isEnabled() {
3641
- return !O || this.enabledInBrowser;
3641
+ return !D || this.enabledInBrowser;
3642
3642
  }
3643
3643
  setLevel(e) {
3644
3644
  this.settings.minLevel = e;
@@ -3656,11 +3656,11 @@ var M = class Logger {
3656
3656
  };
3657
3657
  }
3658
3658
  };
3659
- M.hasShownHelp = !1;
3659
+ j.hasShownHelp = !1;
3660
3660
  function createLogger(e) {
3661
- return new M({}, e);
3661
+ return new j({}, e);
3662
3662
  }
3663
- var N = new M(), cr = N.error.bind(N), lr = N.warn.bind(N), ur = N.info.bind(N), dr = N.debug.bind(N), fr = N.trace.bind(N), SettingsObject = class {
3663
+ var M = new j(), lr = M.error.bind(M), ur = M.warn.bind(M), dr = M.info.bind(M), fr = M.debug.bind(M), pr = M.trace.bind(M), SettingsObject = class {
3664
3664
  constructor(e, t) {
3665
3665
  this.objectName = e, this.settings = t, this.logger = createLogger(e);
3666
3666
  }
@@ -3688,7 +3688,7 @@ function uuid() {
3688
3688
  }
3689
3689
  //#endregion
3690
3690
  //#region ../core/dist/utils/color.js
3691
- var pr = {
3691
+ var mr = {
3692
3692
  green: {
3693
3693
  50: "oklch(98.2% 0.018 155.826)",
3694
3694
  100: "oklch(96.2% 0.044 156.743)",
@@ -3821,7 +3821,7 @@ var pr = {
3821
3821
  }
3822
3822
  };
3823
3823
  function getColorSchemeOklch(e) {
3824
- return pr[e] || pr.blue;
3824
+ return mr[e] || mr.blue;
3825
3825
  }
3826
3826
  //#endregion
3827
3827
  //#region ../core/dist/utils/cookies.js
@@ -3894,7 +3894,7 @@ var CookieUtil = class {
3894
3894
  getDeviceId() {
3895
3895
  return this.getCookie(this.deviceIdName);
3896
3896
  }
3897
- }, mr = new CookieUtil(), P = {
3897
+ }, hr = new CookieUtil(), N = {
3898
3898
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
3899
3899
  AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
3900
3900
  AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
@@ -3910,16 +3910,16 @@ var CookieUtil = class {
3910
3910
  AUTH_UNKNOWN: "Something went wrong. Try again."
3911
3911
  };
3912
3912
  function mapAuthErrorCode(e) {
3913
- return e ? P[e] ?? P.AUTH_UNKNOWN : P.AUTH_UNKNOWN;
3913
+ return e ? N[e] ?? N.AUTH_UNKNOWN : N.AUTH_UNKNOWN;
3914
3914
  }
3915
3915
  function authErrorMessage(e) {
3916
- return e.code ? mapAuthErrorCode(e.code) : e.error || P.AUTH_UNKNOWN;
3916
+ return e.code ? mapAuthErrorCode(e.code) : e.error || N.AUTH_UNKNOWN;
3917
3917
  }
3918
3918
  var AuthApiError = class extends Error {
3919
3919
  constructor(e, t) {
3920
3920
  super(e), this.name = "AuthApiError", this.code = t;
3921
3921
  }
3922
- }, hr = object({
3922
+ }, gr = object({
3923
3923
  platform: _enum([
3924
3924
  "linkedin",
3925
3925
  "x",
@@ -3936,38 +3936,38 @@ var AuthApiError = class extends Error {
3936
3936
  ]),
3937
3937
  handle: string(),
3938
3938
  url: string().optional()
3939
- }), gr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(hr)), _r = [
3939
+ }), _r = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(gr)), vr = [
3940
3940
  "image",
3941
3941
  "audio",
3942
3942
  "video",
3943
3943
  "document"
3944
- ], F = _enum(_r), vr = [
3944
+ ], P = _enum(vr), yr = [
3945
3945
  "avatar",
3946
3946
  "cover",
3947
3947
  "general"
3948
- ], I = _enum(vr), yr = _enum([
3948
+ ], br = _enum(yr), xr = _enum([
3949
3949
  "processing",
3950
3950
  "active",
3951
3951
  "failed",
3952
3952
  "deleted"
3953
- ]), br = _enum([
3953
+ ]), Sr = _enum([
3954
3954
  "low",
3955
3955
  "standard",
3956
3956
  "high"
3957
- ]), xr = _enum([
3957
+ ]), Cr = _enum([
3958
3958
  "jpg",
3959
3959
  "jpeg",
3960
3960
  "png",
3961
3961
  "gif",
3962
3962
  "webp",
3963
3963
  "svg"
3964
- ]), Sr = _enum([
3964
+ ]), wr = _enum([
3965
3965
  "mp4",
3966
3966
  "webm",
3967
3967
  "ogg",
3968
3968
  "mov",
3969
3969
  "avi"
3970
- ]), Cr = _enum([
3970
+ ]), Tr = _enum([
3971
3971
  "mp3",
3972
3972
  "wav",
3973
3973
  "ogg",
@@ -3977,7 +3977,7 @@ var AuthApiError = class extends Error {
3977
3977
  "webm",
3978
3978
  "m4a",
3979
3979
  "mp4"
3980
- ]), L = object({
3980
+ ]), F = object({
3981
3981
  mediaId: string(),
3982
3982
  userId: string(),
3983
3983
  orgId: string(),
@@ -3987,56 +3987,56 @@ var AuthApiError = class extends Error {
3987
3987
  size: number(),
3988
3988
  src: string(),
3989
3989
  alt: string().optional(),
3990
- context: I.default("general"),
3991
- status: yr.default("processing"),
3992
- quality: br.default("standard"),
3990
+ context: br.default("general"),
3991
+ status: xr.default("processing"),
3992
+ quality: Sr.default("standard"),
3993
3993
  createdAt: string().optional(),
3994
3994
  updatedAt: string().optional()
3995
3995
  }).extend({
3996
- type: F.optional(),
3997
- mediaType: F.optional(),
3996
+ type: P.optional(),
3997
+ mediaType: P.optional(),
3998
3998
  className: string().optional(),
3999
3999
  width: number().optional(),
4000
4000
  height: number().optional(),
4001
4001
  duration: number().optional(),
4002
4002
  blurhash: string().optional()
4003
- }).partial(), wr = object({
4003
+ }).partial(), Er = object({
4004
4004
  duration: number().optional(),
4005
4005
  thumbnail: string().optional(),
4006
4006
  autoplay: boolean().optional(),
4007
4007
  loop: boolean().optional(),
4008
4008
  muted: boolean().optional(),
4009
4009
  controls: boolean().optional()
4010
- }), Tr = object({
4010
+ }), Dr = object({
4011
4011
  duration: number().optional(),
4012
4012
  autoplay: boolean().optional(),
4013
4013
  loop: boolean().optional(),
4014
4014
  muted: boolean().optional(),
4015
4015
  controls: boolean().optional()
4016
- }), Er = L.extend({
4016
+ }), Or = F.extend({
4017
4017
  mediaType: literal("image"),
4018
- imageFormat: xr.optional()
4019
- }), Dr = L.extend({
4018
+ imageFormat: Cr.optional()
4019
+ }), kr = F.extend({
4020
4020
  mediaType: literal("video"),
4021
- videoFormat: Sr.optional(),
4022
- video: wr.optional()
4023
- }), Or = L.extend({
4021
+ videoFormat: wr.optional(),
4022
+ video: Er.optional()
4023
+ }), Ar = F.extend({
4024
4024
  mediaType: literal("audio"),
4025
- audioFormat: Cr.optional(),
4026
- audio: Tr.optional()
4027
- }), kr = L.extend({ mediaType: literal("document") }), Ar = discriminatedUnion("mediaType", [
4028
- Er,
4029
- Dr,
4025
+ audioFormat: Tr.optional(),
4026
+ audio: Dr.optional()
4027
+ }), jr = F.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
4030
4028
  Or,
4031
- kr
4032
- ]), jr = _enum([
4029
+ kr,
4030
+ Ar,
4031
+ jr
4032
+ ]), Nr = _enum([
4033
4033
  "xxs",
4034
4034
  "xs",
4035
4035
  "sm",
4036
4036
  "md",
4037
4037
  "lg",
4038
4038
  "xl"
4039
- ]), Mr = _enum([
4039
+ ]), Pr = _enum([
4040
4040
  "primary",
4041
4041
  "default",
4042
4042
  "overlay",
@@ -4044,20 +4044,20 @@ var AuthApiError = class extends Error {
4044
4044
  "green",
4045
4045
  "indigo",
4046
4046
  "orange"
4047
- ]), Nr = _enum([
4047
+ ]), Fr = _enum([
4048
4048
  "ghost",
4049
4049
  "link",
4050
4050
  "outline",
4051
4051
  "solid"
4052
- ]), R = object({
4052
+ ]), I = object({
4053
4053
  key: string().optional(),
4054
4054
  label: string().optional(),
4055
4055
  href: string().optional(),
4056
- size: jr.optional(),
4057
- theme: Mr.optional(),
4058
- design: Nr.optional(),
4059
- icon: union([string(), L]).optional(),
4060
- iconAfter: union([string(), L]).optional(),
4056
+ size: Nr.optional(),
4057
+ theme: Pr.optional(),
4058
+ design: Fr.optional(),
4059
+ icon: union([string(), F]).optional(),
4060
+ iconAfter: union([string(), F]).optional(),
4061
4061
  rounding: _enum([
4062
4062
  "full",
4063
4063
  "md",
@@ -4074,12 +4074,12 @@ var AuthApiError = class extends Error {
4074
4074
  "submit",
4075
4075
  "reset"
4076
4076
  ]).optional()
4077
- }), Pr = object({
4078
- buttons: array(R).optional(),
4079
- size: jr.optional(),
4080
- theme: Mr.optional(),
4081
- design: Nr.optional()
4082
- }), Fr = object({
4077
+ }), Ir = object({
4078
+ buttons: array(I).optional(),
4079
+ size: Nr.optional(),
4080
+ theme: Pr.optional(),
4081
+ design: Fr.optional()
4082
+ }), Lr = object({
4083
4083
  key: string().optional(),
4084
4084
  id: string().optional(),
4085
4085
  label: string().optional(),
@@ -4090,11 +4090,11 @@ var AuthApiError = class extends Error {
4090
4090
  info: string().optional(),
4091
4091
  count: number().optional(),
4092
4092
  className: string().optional(),
4093
- media: L.optional(),
4094
- subMedia: L.optional(),
4095
- cover: L.optional(),
4096
- icon: L.optional(),
4097
- iconAfter: L.optional(),
4093
+ media: F.optional(),
4094
+ subMedia: F.optional(),
4095
+ cover: F.optional(),
4096
+ icon: F.optional(),
4097
+ iconAfter: F.optional(),
4098
4098
  subIcon: string().optional(),
4099
4099
  href: string().optional(),
4100
4100
  target: _enum(["_self", "_blank"]).optional(),
@@ -4106,14 +4106,14 @@ var AuthApiError = class extends Error {
4106
4106
  priority: number().optional(),
4107
4107
  testId: string().optional(),
4108
4108
  items: array(any()).optional(),
4109
- badges: array(R).optional(),
4110
- meta: array(R).optional(),
4109
+ badges: array(I).optional(),
4110
+ meta: array(I).optional(),
4111
4111
  menuItems: array(any()).optional()
4112
- }), Ir = object({
4112
+ }), Rr = object({
4113
4113
  title: string().optional(),
4114
4114
  description: string().optional(),
4115
- items: array(Fr).optional()
4116
- }), Lr = {
4115
+ items: array(Lr).optional()
4116
+ }), zr = {
4117
4117
  colors: {
4118
4118
  primary: "#3b82f6",
4119
4119
  secondary: "#93c5fd",
@@ -4132,7 +4132,7 @@ var AuthApiError = class extends Error {
4132
4132
  compact: 4,
4133
4133
  comfortable: 6
4134
4134
  }
4135
- }, Rr = [
4135
+ }, Br = [
4136
4136
  ["#6366f1", "#8b5cf6"],
4137
4137
  ["#3b82f6", "#06b6d4"],
4138
4138
  ["#10b981", "#34d399"],
@@ -4148,7 +4148,7 @@ function hashName(e) {
4148
4148
  return Math.abs(t);
4149
4149
  }
4150
4150
  function getGradientPair(e) {
4151
- return Rr[(e ? hashName(e) : 0) % Rr.length];
4151
+ return Br[(e ? hashName(e) : 0) % Br.length];
4152
4152
  }
4153
4153
  function getDefaultAvatarUrl(e) {
4154
4154
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4177,8 +4177,8 @@ function getWorkspaceMarkUrl(e) {
4177
4177
  return `data:image/svg+xml;base64,${btoa(t)}`;
4178
4178
  }
4179
4179
  //#endregion
4180
- //#region ../core/dist/chatIssue.js
4181
- var zr = _enum(["account", "error"]), Br = [
4180
+ //#region ../core/dist/pricing.js
4181
+ var Vr = 3900, L = `$${Vr / 100}/month`, Hr = _enum(["account", "error"]), Ur = [
4182
4182
  "billing_no_plan",
4183
4183
  "billing_seat_limit",
4184
4184
  "billing_past_due",
@@ -4194,20 +4194,20 @@ var zr = _enum(["account", "error"]), Br = [
4194
4194
  "empty_stream",
4195
4195
  "tool_protocol",
4196
4196
  "rate_limit"
4197
- ], z = object({
4198
- bucket: zr,
4199
- code: _enum(Br),
4197
+ ], R = object({
4198
+ bucket: Hr,
4199
+ code: _enum(Ur),
4200
4200
  title: string(),
4201
4201
  help: string().optional(),
4202
4202
  actionLabel: string(),
4203
4203
  actionUrl: string()
4204
- }), B = {
4204
+ }), z = {
4205
4205
  billing_no_plan: {
4206
4206
  bucket: "account",
4207
- title: "Payment method needed",
4208
- help: "Add a payment method to turn live replies on.",
4209
- actionLabel: "Add payment method",
4210
- oneLine: "The workspace needs a payment method before this assistant can reply."
4207
+ title: "Trial needed",
4208
+ help: `Start your free trial to turn live replies on. After the trial it's ${L} per active assistant, cancel anytime.`,
4209
+ actionLabel: "Start free trial",
4210
+ oneLine: `The workspace needs its free trial started before this assistant can reply; after the trial it costs ${L} per active assistant.`
4211
4211
  },
4212
4212
  billing_seat_limit: {
4213
4213
  bucket: "account",
@@ -4309,10 +4309,10 @@ var zr = _enum(["account", "error"]), Br = [
4309
4309
  }
4310
4310
  };
4311
4311
  function chatIssueCatalogLines() {
4312
- return Br.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
4312
+ return Ur.map((e) => `- ${e}: ${z[e].oneLine}`).join("\n");
4313
4313
  }
4314
4314
  function buildChatIssue(e) {
4315
- let t = B[e.code];
4315
+ let t = z[e.code];
4316
4316
  return {
4317
4317
  bucket: t.bucket,
4318
4318
  code: e.code,
@@ -4333,12 +4333,12 @@ function chatIssueToErrorData(e) {
4333
4333
  };
4334
4334
  }
4335
4335
  function renderIssueAsMarkdown(e) {
4336
- let t = B[e.code];
4336
+ let t = z[e.code];
4337
4337
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4338
4338
  }
4339
4339
  //#endregion
4340
4340
  //#region ../core/dist/wire/agent-state.js
4341
- var V = _enum(["active", "stopped"]), H = _enum([
4341
+ var B = _enum(["active", "stopped"]), V = _enum([
4342
4342
  "unknown",
4343
4343
  "stopped",
4344
4344
  "starting",
@@ -4347,28 +4347,28 @@ var V = _enum(["active", "stopped"]), H = _enum([
4347
4347
  "unreachable",
4348
4348
  "stopping",
4349
4349
  "error"
4350
- ]), Vr = _enum([
4350
+ ]), Wr = _enum([
4351
4351
  "wake",
4352
4352
  "sleep",
4353
4353
  "restart",
4354
4354
  "rebuild",
4355
4355
  "config_apply"
4356
- ]), Hr = _enum([
4356
+ ]), Gr = _enum([
4357
4357
  "running",
4358
4358
  "coalesced",
4359
4359
  "failed"
4360
- ]), Ur = object({
4361
- kind: Vr,
4362
- status: Hr,
4360
+ ]), Kr = object({
4361
+ kind: Wr,
4362
+ status: Gr,
4363
4363
  startedAt: string().datetime(),
4364
4364
  detail: string().optional()
4365
- }).strict(), Wr = object({
4366
- lifecycle: H,
4365
+ }).strict(), qr = object({
4366
+ lifecycle: V,
4367
4367
  changedAt: string().datetime().optional(),
4368
4368
  detail: string().optional(),
4369
- blocker: z.optional(),
4370
- operation: Ur.optional()
4371
- }).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
4369
+ blocker: R.optional(),
4370
+ operation: Kr.optional()
4371
+ }).strict(), Jr = Object.freeze({ lifecycle: "unknown" }), Yr = {
4372
4372
  running: "green",
4373
4373
  starting: "amber",
4374
4374
  stopping: "amber",
@@ -4377,7 +4377,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4377
4377
  error: "red",
4378
4378
  stopped: "grey",
4379
4379
  unknown: "grey"
4380
- }, qr = {
4380
+ }, Xr = {
4381
4381
  running: "Online",
4382
4382
  starting: "Waking up",
4383
4383
  stopping: "Stopping",
@@ -4386,7 +4386,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4386
4386
  error: "Error",
4387
4387
  stopped: "Asleep",
4388
4388
  unknown: "Checking"
4389
- }, Jr = {
4389
+ }, Zr = {
4390
4390
  wake: "Waking up",
4391
4391
  sleep: "Stopping",
4392
4392
  restart: "Restarting",
@@ -4394,7 +4394,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
4394
4394
  config_apply: "Applying config"
4395
4395
  };
4396
4396
  function toAgentState(e, t) {
4397
- let n = e.operation, r = qr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Jr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
4397
+ let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Yr[e.lifecycle] ?? "grey", a = n ? Zr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
4398
4398
  return {
4399
4399
  ...e,
4400
4400
  color: s,
@@ -4402,7 +4402,7 @@ function toAgentState(e, t) {
4402
4402
  tooltip: c
4403
4403
  };
4404
4404
  }
4405
- var Yr = _enum([
4405
+ var Qr = _enum([
4406
4406
  "wake",
4407
4407
  "sleep",
4408
4408
  "restart",
@@ -4426,7 +4426,7 @@ function isAgentReady(e) {
4426
4426
  }
4427
4427
  //#endregion
4428
4428
  //#region ../core/dist/wire/voice-session.js
4429
- var U = _enum(["woman", "man"]), W = [
4429
+ var H = _enum(["woman", "man"]), U = [
4430
4430
  {
4431
4431
  key: "lauren",
4432
4432
  gender: "woman",
@@ -4507,28 +4507,30 @@ var U = _enum(["woman", "man"]), W = [
4507
4507
  accent: "American",
4508
4508
  character: "Easygoing and plain-spoken"
4509
4509
  }
4510
- ], G = _enum(W.map((e) => e.key)), Xr = { gender: "man" };
4510
+ ], W = _enum(U.map((e) => e.key)), $r = { gender: "man" };
4511
4511
  function resolveVoice(e) {
4512
- let t = W.find((t) => t.key === e.voiceKey);
4513
- return t?.gender === e.gender ? t : W.find((t) => t.gender === e.gender && "isDefault" in t);
4512
+ let t = U.find((t) => t.key === e.voiceKey);
4513
+ return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
4514
4514
  }
4515
- var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4515
+ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4516
4516
  conversationId: string().min(1),
4517
4517
  agentId: string().min(1),
4518
4518
  personaName: string().min(1),
4519
4519
  personaTitle: string().max(255).nullable().optional(),
4520
- gender: U,
4521
- voiceKey: G.nullable(),
4520
+ gender: H,
4521
+ voiceKey: W.nullable(),
4522
4522
  sessionScope: _enum([
4523
4523
  "private",
4524
4524
  "org",
4525
4525
  "public"
4526
4526
  ]),
4527
+ senderName: string().optional(),
4528
+ senderRole: _enum(["owner", "member"]).optional(),
4527
4529
  threadSummary: string(),
4528
4530
  surfaceGuidance: string().optional(),
4529
4531
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4530
4532
  expiresAt: datetime()
4531
- }), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
4533
+ }), ni = _enum(["elevenlabs", "livekit"]), ri = discriminatedUnion("provider", [object({
4532
4534
  provider: literal("elevenlabs"),
4533
4535
  conversationToken: string().min(1),
4534
4536
  voiceId: string().min(1)
@@ -4537,7 +4539,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4537
4539
  url: string().min(1),
4538
4540
  token: string().min(1),
4539
4541
  room: string().min(1)
4540
- }).strict()]), ti = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4542
+ }).strict()]), ii = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4541
4543
  platform: _enum([
4542
4544
  "linkedin",
4543
4545
  "x",
@@ -4552,11 +4554,11 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4552
4554
  "website"
4553
4555
  ]),
4554
4556
  handle: string()
4555
- }))), ni = _enum([
4557
+ }))), G = _enum([
4556
4558
  "essential",
4557
4559
  "professional",
4558
4560
  "business"
4559
- ]), ri = object({
4561
+ ]), ai = object({
4560
4562
  agentId: string().optional(),
4561
4563
  handle: string().optional(),
4562
4564
  ownerId: string().optional(),
@@ -4568,25 +4570,25 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4568
4570
  entityType: string().optional(),
4569
4571
  avatarId: string().nullable().optional(),
4570
4572
  coverId: string().nullable().optional(),
4571
- avatar: L.optional(),
4572
- cover: L.optional(),
4573
+ avatar: F.optional(),
4574
+ cover: F.optional(),
4573
4575
  email: string().nullable().optional(),
4574
4576
  website: string().url().nullable().optional(),
4575
- accounts: ti.nullable().optional(),
4577
+ accounts: ii.nullable().optional(),
4576
4578
  model: string().nullable().optional(),
4577
- gender: U.optional(),
4578
- voiceKey: G.nullable().optional(),
4579
- billingTier: ni.optional(),
4579
+ gender: H.optional(),
4580
+ voiceKey: W.nullable().optional(),
4581
+ billingTier: G.optional(),
4580
4582
  lastActiveAt: string().nullable().optional(),
4581
4583
  lastMessageAt: string().nullable().optional(),
4582
4584
  runtime: string().default("hermes").optional(),
4583
4585
  timezone: string().optional(),
4584
- desiredStatus: V.nullable().optional(),
4586
+ desiredStatus: B.nullable().optional(),
4585
4587
  automationPrimaryChannel: string().optional(),
4586
4588
  heartbeatEnabled: boolean().optional(),
4587
- heartbeatBriefingTime: E.nullable().optional(),
4588
- heartbeatCheckinTime: E.nullable().optional(),
4589
- heartbeatCloseoutTime: E.nullable().optional(),
4589
+ heartbeatBriefingTime: T.nullable().optional(),
4590
+ heartbeatCheckinTime: T.nullable().optional(),
4591
+ heartbeatCloseoutTime: T.nullable().optional(),
4590
4592
  onboardedAt: string().nullable().optional(),
4591
4593
  org: object({
4592
4594
  orgId: string(),
@@ -4599,7 +4601,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4599
4601
  owner: object({
4600
4602
  userId: string(),
4601
4603
  fullName: string().optional(),
4602
- avatar: L.optional()
4604
+ avatar: F.optional()
4603
4605
  }).optional(),
4604
4606
  visibility: _enum([
4605
4607
  "private",
@@ -4609,14 +4611,14 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4609
4611
  status: string().optional(),
4610
4612
  createdAt: string().optional(),
4611
4613
  updatedAt: string().optional()
4612
- }), ii = ri.extend({
4614
+ }), oi = ai.extend({
4613
4615
  isPrimary: boolean().optional(),
4614
- lifecycle: H.optional(),
4616
+ lifecycle: V.optional(),
4615
4617
  changedAt: string().datetime().optional(),
4616
4618
  detail: string().optional(),
4617
- blocker: z.optional(),
4618
- operation: Ur.optional()
4619
- }), ai = Object.keys(ii.shape), oi = class Agent extends SettingsObject {
4619
+ blocker: R.optional(),
4620
+ operation: Kr.optional()
4621
+ }), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
4620
4622
  constructor(e) {
4621
4623
  let t = "config" in e ? {
4622
4624
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4634,7 +4636,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4634
4636
  }), 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);
4635
4637
  }
4636
4638
  merge(e) {
4637
- for (let t of ai) {
4639
+ for (let t of si) {
4638
4640
  if (!(t in e)) continue;
4639
4641
  let n = this[t];
4640
4642
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4642,7 +4644,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4642
4644
  }
4643
4645
  toConfig() {
4644
4646
  let e = {};
4645
- for (let t of ai) {
4647
+ for (let t of si) {
4646
4648
  let n = this[t];
4647
4649
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4648
4650
  }
@@ -4653,24 +4655,24 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4653
4655
  }
4654
4656
  };
4655
4657
  function createAgent(e) {
4656
- return new oi(e);
4658
+ return new ci(e);
4657
4659
  }
4658
4660
  function createAgents(e) {
4659
- return e.configs.map((t) => new oi({
4661
+ return e.configs.map((t) => new ci({
4660
4662
  config: t,
4661
4663
  context: e.context
4662
4664
  }));
4663
4665
  }
4664
4666
  //#endregion
4665
4667
  //#region ../core/dist/types/user.js
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({
4668
+ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), ui = string().trim().toLowerCase().pipe(email()), di = object({
4667
4669
  userId: string(),
4668
4670
  email: string().optional(),
4669
4671
  handle: string().optional(),
4670
4672
  fullName: string().optional(),
4671
4673
  linkedinUsername: K.optional(),
4672
4674
  avatarId: string().optional(),
4673
- avatar: L.optional(),
4675
+ avatar: F.optional(),
4674
4676
  isEmailVerified: boolean().optional(),
4675
4677
  primaryAgentId: string().optional(),
4676
4678
  primaryOrgId: string().optional(),
@@ -4685,7 +4687,7 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4685
4687
  createdAt: string().optional(),
4686
4688
  updatedAt: string().optional(),
4687
4689
  onboarded: boolean().optional()
4688
- }), ui = object({
4690
+ }), fi = object({
4689
4691
  name: string().min(1).max(100).optional(),
4690
4692
  linkedinUsername: K.nullable().optional(),
4691
4693
  avatar: object({
@@ -4696,16 +4698,16 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4696
4698
  primaryOrgId: string().optional(),
4697
4699
  lastActiveOrgId: string().optional(),
4698
4700
  onboarding: any().optional()
4699
- }).partial(), di = object({ email: ci }), fi = object({
4700
- email: ci,
4701
+ }).partial(), pi = object({ email: ui }), mi = object({
4702
+ email: ui,
4701
4703
  code: string().min(6, "Verification code is required"),
4702
4704
  timezone: string().max(64).optional()
4703
- }), pi = object({ newEmail: ci }), mi = object({
4705
+ }), hi = object({ newEmail: ui }), gi = object({
4704
4706
  credential: string().optional(),
4705
4707
  code: string().optional(),
4706
4708
  timezone: string().max(64).optional(),
4707
4709
  source: _enum(["web", "ios"]).optional()
4708
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), hi = object({
4710
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), _i = object({
4709
4711
  identityToken: string().min(1),
4710
4712
  fullName: string().optional(),
4711
4713
  timezone: string().max(64).optional()
@@ -4717,10 +4719,10 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4717
4719
  website: string().url().nullable().optional(),
4718
4720
  summary: string().nullable().optional(),
4719
4721
  avatarId: string().nullable().optional(),
4720
- avatar: L.optional(),
4722
+ avatar: F.optional(),
4721
4723
  coverId: string().nullable().optional(),
4722
- cover: L.optional(),
4723
- accounts: gr.nullable().optional(),
4724
+ cover: F.optional(),
4725
+ accounts: _r.nullable().optional(),
4724
4726
  ownerId: string().optional(),
4725
4727
  isPersonal: boolean().optional(),
4726
4728
  stripeCustomerIdTest: string().nullable().optional(),
@@ -4733,12 +4735,12 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4733
4735
  billingLastSyncedAt: string().nullable().optional(),
4734
4736
  syncedPeriodStart: string().nullable().optional(),
4735
4737
  syncedPeriodEnd: string().nullable().optional(),
4736
- trialEligibility: si.optional(),
4738
+ trialEligibility: li.optional(),
4737
4739
  onboarding: any().optional(),
4738
4740
  status: string().optional(),
4739
4741
  createdAt: string().optional(),
4740
4742
  updatedAt: string().optional()
4741
- }), gi = q.extend({
4743
+ }), vi = q.extend({
4742
4744
  defaultAgent: object({
4743
4745
  agentId: string(),
4744
4746
  handle: string(),
@@ -4746,22 +4748,22 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4746
4748
  orgId: string()
4747
4749
  }),
4748
4750
  onboardingCompleted: boolean().optional()
4749
- }), _i = object({
4751
+ }), yi = object({
4750
4752
  completedAt: string().datetime().optional(),
4751
4753
  setupBy: string().optional(),
4752
4754
  billingSetup: boolean().optional(),
4753
4755
  teamInvitesSetup: boolean().optional(),
4754
4756
  brandingSetup: boolean().optional(),
4755
4757
  domainsSetup: boolean().optional()
4756
- }), vi = object({
4758
+ }), bi = object({
4757
4759
  membershipId: string(),
4758
4760
  orgId: string(),
4759
4761
  name: string(),
4760
4762
  handle: string(),
4761
4763
  avatarId: string().optional(),
4762
- avatar: L.optional(),
4764
+ avatar: F.optional(),
4763
4765
  coverId: string().optional(),
4764
- cover: L.optional(),
4766
+ cover: F.optional(),
4765
4767
  role: _enum([
4766
4768
  "owner",
4767
4769
  "admin",
@@ -4771,11 +4773,11 @@ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4771
4773
  memberCount: number().optional(),
4772
4774
  agentCount: number().optional(),
4773
4775
  joinedAt: string().datetime(),
4774
- trialEligibility: si.optional(),
4775
- onboarding: _i.optional()
4776
- }), yi = li.extend({
4777
- orgs: array(vi).optional(),
4778
- agents: array(ri).optional()
4776
+ trialEligibility: li.optional(),
4777
+ onboarding: yi.optional()
4778
+ }), xi = di.extend({
4779
+ orgs: array(bi).optional(),
4780
+ agents: array(ai).optional()
4779
4781
  });
4780
4782
  //#endregion
4781
4783
  //#region ../core/dist/state.js
@@ -4798,7 +4800,7 @@ function derive(e) {
4798
4800
  }
4799
4801
  //#endregion
4800
4802
  //#region ../core/dist/bot-ua.js
4801
- var bi = "pagelines-agent/1.0", xi = [
4803
+ var Si = "pagelines-agent/1.0", Ci = [
4802
4804
  "[SILENT]",
4803
4805
  "SILENT",
4804
4806
  "NO_REPLY",
@@ -4812,21 +4814,21 @@ var bi = "pagelines-agent/1.0", xi = [
4812
4814
  "[NO_OP]",
4813
4815
  "[NO OP]",
4814
4816
  "HEARTBEAT_OK"
4815
- ], Si = new Set(xi);
4817
+ ], wi = new Set(Ci);
4816
4818
  function normalizeAssistantControl(e) {
4817
4819
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4818
4820
  }
4819
4821
  function isAssistantSilenceControl(e) {
4820
4822
  let t = normalizeAssistantControl(e);
4821
- return t.length <= 64 && Si.has(t);
4823
+ return t.length <= 64 && wi.has(t);
4822
4824
  }
4823
4825
  function isAssistantSilenceControlPrefix(e) {
4824
4826
  let t = normalizeAssistantControl(e);
4825
- return t.length <= 64 && xi.some((e) => e.startsWith(t));
4827
+ return t.length <= 64 && Ci.some((e) => e.startsWith(t));
4826
4828
  }
4827
4829
  //#endregion
4828
4830
  //#region ../core/dist/timingBudgets.js
4829
- var Ci = {
4831
+ var Ti = {
4830
4832
  wake: 300 * 1e3,
4831
4833
  bootGrace: 420 * 1e3,
4832
4834
  stop: 30 * 1e3
@@ -4844,12 +4846,12 @@ function formatBudgetDuration(e) {
4844
4846
  }
4845
4847
  //#endregion
4846
4848
  //#region ../core/dist/paths.js
4847
- var wi = "/api/bot-api", Ti = "/api/bot-api/v1";
4849
+ var Ei = "/api/bot-api", Di = "/api/bot-api/v1";
4848
4850
  function botApiLlmUrl(e) {
4849
- return `${e}${Ti}`;
4851
+ return `${e}${Di}`;
4850
4852
  }
4851
4853
  function botApiUrl(e) {
4852
- return `${e}${wi}`;
4854
+ return `${e}${Ei}`;
4853
4855
  }
4854
4856
  //#endregion
4855
4857
  //#region ../core/dist/errorCopy.js
@@ -4884,7 +4886,7 @@ var J = {
4884
4886
  TIMEOUT: "The request took too long. Try again in a moment.",
4885
4887
  FORBIDDEN: "You don't have access to this.",
4886
4888
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4887
- }, Ei = {
4889
+ }, Oi = {
4888
4890
  notFound: "Not found. Try refreshing.",
4889
4891
  busy: "Busy — try again in a moment.",
4890
4892
  rateLimited: "Too many requests. Wait a moment.",
@@ -4897,11 +4899,11 @@ function errorCopy(e, t) {
4897
4899
  return e && e in J ? J[e] : t;
4898
4900
  }
4899
4901
  function errorFromApiResponse(e, t) {
4900
- return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Ei[e.providerErrorKind] ? Ei[e.providerErrorKind] : e.error || t;
4902
+ return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Oi[e.providerErrorKind] ? Oi[e.providerErrorKind] : e.error || t;
4901
4903
  }
4902
4904
  //#endregion
4903
4905
  //#region ../core/dist/retryPolicy.js
4904
- var Di = {
4906
+ var ki = {
4905
4907
  shouldRetry: !1,
4906
4908
  maxAttempts: 1,
4907
4909
  strategy: "none",
@@ -4919,7 +4921,7 @@ function retryPolicyFor(e) {
4919
4921
  "FORBIDDEN",
4920
4922
  "AGENT_NOT_FOUND"
4921
4923
  ]);
4922
- if (e.code && t.has(e.code)) return Di;
4924
+ if (e.code && t.has(e.code)) return ki;
4923
4925
  switch (e.providerErrorKind) {
4924
4926
  case "busy": return {
4925
4927
  shouldRetry: !0,
@@ -4954,8 +4956,8 @@ function retryPolicyFor(e) {
4954
4956
  };
4955
4957
  case "notFound":
4956
4958
  case "invalidConfig":
4957
- case "fatal": return Di;
4958
- default: return Di;
4959
+ case "fatal": return ki;
4960
+ default: return ki;
4959
4961
  }
4960
4962
  }
4961
4963
  //#endregion
@@ -4966,7 +4968,7 @@ var Y = string().min(1).max(64).refine((e) => {
4966
4968
  } catch {
4967
4969
  return !1;
4968
4970
  }
4969
- }, "Invalid IANA timezone"), Oi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ki = object({
4971
+ }, "Invalid IANA timezone"), Ai = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ji = object({
4970
4972
  orgId: string(),
4971
4973
  name: string().min(1).max(100),
4972
4974
  emoji: string().max(8).nullable().optional(),
@@ -4980,7 +4982,7 @@ var Y = string().min(1).max(64).refine((e) => {
4980
4982
  "org",
4981
4983
  "public"
4982
4984
  ]).optional()
4983
- }).strict(), Ai = object({
4985
+ }).strict(), Mi = object({
4984
4986
  name: string().min(1).max(100).optional(),
4985
4987
  handle: string().min(2).max(50).optional(),
4986
4988
  emoji: string().max(8).nullable().optional(),
@@ -4992,24 +4994,24 @@ var Y = string().min(1).max(64).refine((e) => {
4992
4994
  coverMediaId: string().nullable().optional(),
4993
4995
  timezone: Y.optional(),
4994
4996
  model: string().nullable().optional(),
4995
- gender: U.optional(),
4996
- voiceKey: G.nullable().optional(),
4997
- billingTier: ni.optional(),
4997
+ gender: H.optional(),
4998
+ voiceKey: W.nullable().optional(),
4999
+ billingTier: G.optional(),
4998
5000
  visibility: _enum([
4999
5001
  "private",
5000
5002
  "org",
5001
5003
  "public"
5002
5004
  ]).optional(),
5003
- automationPrimaryChannel: Oi.optional(),
5005
+ automationPrimaryChannel: Ai.optional(),
5004
5006
  heartbeatEnabled: boolean().optional(),
5005
- heartbeatBriefingTime: E.nullable().optional(),
5006
- heartbeatCheckinTime: E.nullable().optional(),
5007
- heartbeatCloseoutTime: E.nullable().optional()
5008
- }).strict(), ji = ii, Mi = object({
5007
+ heartbeatBriefingTime: T.nullable().optional(),
5008
+ heartbeatCheckinTime: T.nullable().optional(),
5009
+ heartbeatCloseoutTime: T.nullable().optional()
5010
+ }).strict(), Ni = oi, Pi = object({
5009
5011
  id: string(),
5010
5012
  label: string(),
5011
5013
  prompt: string()
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([
5014
+ }), 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([
5013
5015
  "notFound",
5014
5016
  "busy",
5015
5017
  "rateLimited",
@@ -5020,21 +5022,21 @@ var Y = string().min(1).max(64).refine((e) => {
5020
5022
  ]), zApiOk = (e) => object({
5021
5023
  ok: literal(!0),
5022
5024
  data: e
5023
- }), Ii = object({
5025
+ }), Ri = object({
5024
5026
  ok: literal(!1),
5025
5027
  error: string(),
5026
- code: Pi.optional(),
5027
- issue: z.optional(),
5028
- providerErrorKind: Fi.optional()
5029
- }), zApiResponse = (e) => union([zApiOk(e), Ii]), Li = {
5028
+ code: Ii.optional(),
5029
+ issue: R.optional(),
5030
+ providerErrorKind: Li.optional()
5031
+ }), zApiResponse = (e) => union([zApiOk(e), Ri]), zi = {
5030
5032
  400: "Invalid body.",
5031
5033
  401: "Not authenticated.",
5032
5034
  500: "Server error."
5033
5035
  };
5034
5036
  function zErrorResponses(e) {
5035
5037
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5036
- description: t === !0 ? Li[Number(e)] ?? "Request failed." : t,
5037
- content: { "application/json": { schema: Ii } }
5038
+ description: t === !0 ? zi[Number(e)] ?? "Request failed." : t,
5039
+ content: { "application/json": { schema: Ri } }
5038
5040
  }]));
5039
5041
  }
5040
5042
  function apiError(e, t, n) {
@@ -5057,7 +5059,7 @@ function apiOk(e) {
5057
5059
  }
5058
5060
  //#endregion
5059
5061
  //#region ../core/dist/wire/chat-tool-activity.js
5060
- var Ri = object({
5062
+ var Bi = object({
5061
5063
  kind: _enum([
5062
5064
  "icon",
5063
5065
  "favicon",
@@ -5066,7 +5068,7 @@ var Ri = object({
5066
5068
  icon: string().min(1).optional(),
5067
5069
  domain: string().min(1).optional(),
5068
5070
  serviceKey: string().min(1).optional()
5069
- }).strict(), zi = object({
5071
+ }).strict(), Vi = object({
5070
5072
  activityId: string().min(1),
5071
5073
  turnId: string().min(1),
5072
5074
  status: _enum([
@@ -5090,12 +5092,12 @@ var Ri = object({
5090
5092
  endedAt: string().datetime().optional(),
5091
5093
  durationMs: number().int().nonnegative().optional(),
5092
5094
  note: string().trim().min(1).optional(),
5093
- visual: Ri.optional()
5094
- }).strict(), Bi = zi.extend({ status: _enum(["completed", "failed"]) }), Vi = F, Hi = object({
5095
+ visual: Bi.optional()
5096
+ }).strict(), Hi = Vi.extend({ status: _enum(["completed", "failed"]) }), Ui = P, Wi = object({
5095
5097
  kind: literal("inline"),
5096
5098
  offset: number().int().nonnegative()
5097
- }), Ui = object({
5098
- type: Vi,
5099
+ }), Gi = object({
5100
+ type: Ui,
5099
5101
  src: url(),
5100
5102
  filename: string().min(1),
5101
5103
  mimeType: string().min(1),
@@ -5105,12 +5107,12 @@ var Ri = object({
5105
5107
  height: number().int().positive().optional(),
5106
5108
  duration: number().nonnegative().optional(),
5107
5109
  text: string().optional(),
5108
- placement: Hi.optional()
5109
- }), Wi = object({ ref: string().min(1).max(256) }).strict(), Gi = _enum([
5110
+ placement: Wi.optional()
5111
+ }), Ki = object({ ref: string().min(1).max(256) }).strict(), qi = _enum([
5110
5112
  "handled",
5111
5113
  "dismissed",
5112
5114
  "deferred"
5113
- ]), Ki = datetime();
5115
+ ]), Ji = datetime();
5114
5116
  function validateAttentionRevisit(e, t) {
5115
5117
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5116
5118
  code: "custom",
@@ -5118,17 +5120,17 @@ function validateAttentionRevisit(e, t) {
5118
5120
  message: "revisitAt requires deferred disposition"
5119
5121
  });
5120
5122
  }
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({
5123
+ var Yi = Ki.extend({
5124
+ disposition: qi.optional(),
5125
+ revisitAt: Ji.optional()
5126
+ }).superRefine(validateAttentionRevisit), Xi = Ki.extend({
5127
+ disposition: qi,
5128
+ revisitAt: Ji.optional()
5129
+ }).superRefine(validateAttentionRevisit), Zi = object({
5128
5130
  turnId: string().min(1).optional(),
5129
5131
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5130
- attachments: array(Ui).optional(),
5131
- toolActivities: array(Bi).optional(),
5132
+ attachments: array(Gi).optional(),
5133
+ toolActivities: array(Hi).optional(),
5132
5134
  issue: object({
5133
5135
  code: string(),
5134
5136
  bucket: _enum(["account", "error"]),
@@ -5156,8 +5158,8 @@ var qi = Wi.extend({
5156
5158
  ])
5157
5159
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5158
5160
  ownerHandoff: literal(!0).optional(),
5159
- attention: array(qi).max(20).optional()
5160
- }).catchall(unknown()), Xi = object({
5161
+ attention: array(Yi).max(20).optional()
5162
+ }).catchall(unknown()), Qi = object({
5161
5163
  messageId: string().min(1),
5162
5164
  conversationId: string().min(1),
5163
5165
  role: _enum([
@@ -5170,12 +5172,12 @@ var qi = Wi.extend({
5170
5172
  content: string(),
5171
5173
  sequence: string().min(1),
5172
5174
  clientNonce: string().nullable().optional(),
5173
- metadata: Yi.nullable().optional(),
5175
+ metadata: Zi.nullable().optional(),
5174
5176
  status: string().nullable().optional(),
5175
5177
  createdAt: string(),
5176
5178
  updatedAt: string()
5177
- }), Zi = object({
5178
- type: Vi,
5179
+ }), $i = object({
5180
+ type: Ui,
5179
5181
  mediaId: string().min(1).optional(),
5180
5182
  url: url().optional(),
5181
5183
  name: string().min(1).optional(),
@@ -5191,11 +5193,11 @@ var qi = Wi.extend({
5191
5193
  path: [n],
5192
5194
  message: `${n} is required when mediaId is absent`
5193
5195
  });
5194
- }), Qi = object({
5196
+ }), ea = object({
5195
5197
  conversationId: string().min(1),
5196
5198
  content: string().max(1e4).default(""),
5197
5199
  clientNonce: string().max(64).optional(),
5198
- attachments: array(Zi).max(10).optional(),
5200
+ attachments: array($i).max(10).optional(),
5199
5201
  channel: _enum(["ios", "dashboard"]).optional(),
5200
5202
  actionUrls: object({
5201
5203
  billing: string().max(500),
@@ -5205,7 +5207,7 @@ var qi = Wi.extend({
5205
5207
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5206
5208
  path: ["content"],
5207
5209
  message: "Message or attachment required"
5208
- }), $i = object({
5210
+ }), ta = object({
5209
5211
  type: _enum(["user", "agent"]),
5210
5212
  id: string().min(1)
5211
5213
  }).strict();
@@ -5220,44 +5222,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5220
5222
  }), n.add(e);
5221
5223
  }
5222
5224
  }
5223
- var ea = object({
5225
+ var na = object({
5224
5226
  orgId: string().min(1),
5225
- participants: array($i).min(1).max(20)
5226
- }).strict().superRefine(addDuplicateConversationTargetIssues), ta = object({
5227
+ participants: array(ta).min(1).max(20)
5228
+ }).strict().superRefine(addDuplicateConversationTargetIssues), ra = object({
5227
5229
  orgId: string().min(1),
5228
- participants: array($i).min(1).max(20)
5230
+ participants: array(ta).min(1).max(20)
5229
5231
  }).strict().superRefine((e, t) => {
5230
5232
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5231
5233
  code: "custom",
5232
5234
  path: ["participants"],
5233
5235
  message: "New sessions require at least one agent participant."
5234
5236
  });
5235
- }), na = object({
5237
+ }), ia = object({
5236
5238
  category: string().min(1).max(30).optional(),
5237
5239
  reason: string().max(2e3).optional()
5238
- }).strict(), ra = _enum([
5240
+ }).strict(), aa = _enum([
5239
5241
  "1:1",
5240
5242
  "4:3",
5241
5243
  "3:4",
5242
5244
  "16:9",
5243
5245
  "9:16"
5244
- ]), ia = _enum([
5246
+ ]), oa = _enum([
5245
5247
  "1K",
5246
5248
  "2K",
5247
5249
  "4K"
5248
- ]), aa = object({
5250
+ ]), sa = object({
5249
5251
  prompt: string().trim().min(1).max(4e3),
5250
- aspectRatio: ra.default("1:1"),
5252
+ aspectRatio: aa.default("1:1"),
5251
5253
  outputFormat: _enum([
5252
5254
  "png",
5253
5255
  "jpeg",
5254
5256
  "webp"
5255
5257
  ]).default("webp"),
5256
- resolution: ia.default("2K"),
5258
+ resolution: oa.default("2K"),
5257
5259
  style: string().trim().max(200).optional(),
5258
5260
  altText: string().trim().max(500).optional(),
5259
5261
  referenceMediaIds: array(string().min(1)).max(4).optional()
5260
- }).strict(), oa = object({
5262
+ }).strict(), ca = object({
5261
5263
  mediaId: string().min(1),
5262
5264
  src: url(),
5263
5265
  filename: string().min(1),
@@ -5267,54 +5269,54 @@ var ea = object({
5267
5269
  provider: string().min(1).optional(),
5268
5270
  providerRequestId: string().min(1).optional(),
5269
5271
  media: string().startsWith("MEDIA:"),
5270
- attachment: Ui.extend({ type: literal("image") })
5271
- }), sa = object({
5272
+ attachment: Gi.extend({ type: literal("image") })
5273
+ }), la = object({
5272
5274
  identityToken: string().min(1),
5273
5275
  fullName: string().optional()
5274
- }), ca = object({
5276
+ }), ua = object({
5275
5277
  redirect: string(),
5276
5278
  redirectReason: string(),
5277
5279
  isNew: boolean(),
5278
5280
  deviceId: string()
5279
- }), la = object({
5281
+ }), da = object({
5280
5282
  ok: literal(!0),
5281
- data: ca,
5283
+ data: ua,
5282
5284
  token: string()
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({
5285
+ }), 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({
5284
5286
  ok: literal(!0),
5285
- data: da
5286
- }), pa = object({ token: string().min(1) }), ma = object({
5287
+ data: pa
5288
+ }), ha = object({ token: string().min(1) }), ga = object({
5287
5289
  redirect: string(),
5288
5290
  redirectReason: string(),
5289
5291
  deviceId: string()
5290
- }), ha = object({
5292
+ }), _a = object({
5291
5293
  ok: literal(!0),
5292
- data: ma,
5294
+ data: ga,
5293
5295
  token: string()
5294
- }), ga = _enum(["none", "active_assistant"]), _a = _enum([
5296
+ }), va = _enum(["none", "active_assistant"]), ya = _enum([
5295
5297
  "none",
5296
5298
  "active",
5297
5299
  "trial",
5298
5300
  "canceling",
5299
5301
  "past_due",
5300
5302
  "paused"
5301
- ]), va = object({
5303
+ ]), ba = object({
5302
5304
  brand: string(),
5303
5305
  last4: string(),
5304
5306
  expMonth: number(),
5305
5307
  expYear: number()
5306
- }), ya = object({
5308
+ }), xa = object({
5307
5309
  date: string(),
5308
5310
  amount: number(),
5309
5311
  status: string(),
5310
5312
  invoicePdf: string().optional()
5311
- }), ba = object({
5313
+ }), Sa = object({
5312
5314
  graceEndsAt: string().optional(),
5313
5315
  suspended: boolean(),
5314
5316
  url: string().optional()
5315
- }), xa = object({
5316
- plan: ga,
5317
- status: _a,
5317
+ }), Ca = object({
5318
+ plan: va,
5319
+ status: ya,
5318
5320
  price: number(),
5319
5321
  tierRates: record(string(), number()).optional(),
5320
5322
  maxAgents: number(),
@@ -5324,23 +5326,23 @@ var ea = object({
5324
5326
  cancelAt: string().optional(),
5325
5327
  trialEnd: string().optional(),
5326
5328
  trialDaysRemaining: number().optional(),
5327
- paymentMethod: va.optional(),
5328
- paymentRecovery: ba.optional(),
5329
- invoices: array(ya),
5329
+ paymentMethod: ba.optional(),
5330
+ paymentRecovery: Sa.optional(),
5331
+ invoices: array(xa),
5330
5332
  stripeError: string().optional()
5331
- }), Sa = object({
5333
+ }), wa = object({
5332
5334
  orgId: string(),
5333
5335
  agentName: string().optional(),
5334
5336
  runtime: string().optional()
5335
- }), Ca = object({
5337
+ }), Ta = object({
5336
5338
  created: number(),
5337
5339
  skipped: number(),
5338
5340
  errors: array(string())
5339
- }), wa = object({
5341
+ }), Ea = object({
5340
5342
  updated: number(),
5341
5343
  errors: array(string())
5342
- }), Ta = Wr, Ea = object({
5343
- code: Pi,
5344
+ }), Da = qr, Oa = object({
5345
+ code: Ii,
5344
5346
  message: string(),
5345
5347
  bucket: _enum(["account", "error"]).optional(),
5346
5348
  actionLabel: string().optional(),
@@ -5357,14 +5359,14 @@ function toChatStreamError(e) {
5357
5359
  ...e.help ? { help: e.help } : {}
5358
5360
  };
5359
5361
  }
5360
- var Da = discriminatedUnion("event", [
5362
+ var ka = discriminatedUnion("event", [
5361
5363
  object({
5362
5364
  event: literal("status"),
5363
- data: Ta
5365
+ data: Da
5364
5366
  }),
5365
5367
  object({
5366
5368
  event: literal("message"),
5367
- data: object({ message: Xi })
5369
+ data: object({ message: Qi })
5368
5370
  }),
5369
5371
  object({
5370
5372
  event: literal("message_delta"),
@@ -5384,7 +5386,7 @@ var Da = discriminatedUnion("event", [
5384
5386
  }),
5385
5387
  object({
5386
5388
  event: literal("tool_activity"),
5387
- data: zi
5389
+ data: Vi
5388
5390
  }),
5389
5391
  object({
5390
5392
  event: literal("working_end"),
@@ -5396,7 +5398,7 @@ var Da = discriminatedUnion("event", [
5396
5398
  }),
5397
5399
  object({
5398
5400
  event: literal("error"),
5399
- data: Ea
5401
+ data: Oa
5400
5402
  })
5401
5403
  ]);
5402
5404
  function chatEventUserTurnId(e) {
@@ -5548,7 +5550,7 @@ function parseChatEvent(e) {
5548
5550
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5549
5551
  if (!n || r === void 0) return null;
5550
5552
  try {
5551
- let e = Da.safeParse({
5553
+ let e = ka.safeParse({
5552
5554
  event: n,
5553
5555
  data: JSON.parse(r)
5554
5556
  });
@@ -5559,7 +5561,7 @@ function parseChatEvent(e) {
5559
5561
  }
5560
5562
  //#endregion
5561
5563
  //#region ../core/dist/wire/chat-card.js
5562
- var Oa = object({
5564
+ var Aa = object({
5563
5565
  label: string().trim().min(1).max(40),
5564
5566
  reply: string().trim().min(1).max(500),
5565
5567
  style: _enum([
@@ -5567,11 +5569,11 @@ var Oa = object({
5567
5569
  "default",
5568
5570
  "destructive"
5569
5571
  ]).optional()
5570
- }).strip(), ka = object({
5572
+ }).strip(), ja = object({
5571
5573
  version: literal(1),
5572
5574
  title: string().trim().min(1).max(200),
5573
5575
  body: string().trim().min(1).max(4e3).optional(),
5574
- actions: array(Oa).min(1).max(3).optional()
5576
+ actions: array(Aa).min(1).max(3).optional()
5575
5577
  }).strip();
5576
5578
  function parseChatCardFencePayload(e) {
5577
5579
  let t;
@@ -5584,7 +5586,7 @@ function parseChatCardFencePayload(e) {
5584
5586
  message: e instanceof Error ? e.message : "Invalid JSON"
5585
5587
  };
5586
5588
  }
5587
- let n = ka.safeParse(t);
5589
+ let n = ja.safeParse(t);
5588
5590
  return n.success ? {
5589
5591
  ok: !0,
5590
5592
  spec: n.data
@@ -5596,36 +5598,36 @@ function parseChatCardFencePayload(e) {
5596
5598
  }
5597
5599
  //#endregion
5598
5600
  //#region ../core/dist/wire/chat-visual.js
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([
5601
+ var Ma = string().trim().min(1).max(240), Na = 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), Pa = record(X, union([
5600
5602
  string().max(500),
5601
5603
  number().finite(),
5602
5604
  boolean(),
5603
5605
  _null()
5604
- ])), Na = _enum([
5606
+ ])), Fa = _enum([
5605
5607
  "compact",
5606
5608
  "currency",
5607
5609
  "duration",
5608
5610
  "integer",
5609
5611
  "percent",
5610
5612
  "raw"
5611
- ]), Pa = object({
5612
- title: Aa,
5613
- description: ja.optional(),
5614
- footer: ja.optional()
5615
- }).strip(), Fa = object({
5613
+ ]), Ia = object({
5614
+ title: Ma,
5615
+ description: Na.optional(),
5616
+ footer: Na.optional()
5617
+ }).strip(), La = object({
5616
5618
  dataKey: X,
5617
5619
  label: Z.optional(),
5618
5620
  axisLabel: Z.optional(),
5619
- valueFormat: Na.optional(),
5621
+ valueFormat: Fa.optional(),
5620
5622
  valuePrefix: string().trim().max(12).optional(),
5621
5623
  valueSuffix: string().trim().max(12).optional()
5622
- }).strip(), Ia = object({
5624
+ }).strip(), Ra = object({
5623
5625
  kind: literal("linear"),
5624
5626
  dataKey: X,
5625
5627
  label: Z.optional()
5626
- }).strip(), La = object({
5628
+ }).strip(), za = object({
5627
5629
  version: literal(1),
5628
- meta: Pa,
5630
+ meta: Ia,
5629
5631
  fallbackMarkdown: string().trim().min(1).max(4e3)
5630
5632
  }).strip();
5631
5633
  function dataKeys(e) {
@@ -5667,7 +5669,7 @@ function requireNumericDataKeys(e, t, n) {
5667
5669
  });
5668
5670
  }
5669
5671
  }
5670
- var Ra = discriminatedUnion("chartType", [La.extend({
5672
+ var Ba = discriminatedUnion("chartType", [za.extend({
5671
5673
  visualType: literal("chart"),
5672
5674
  chartType: _enum([
5673
5675
  "bar",
@@ -5676,11 +5678,11 @@ var Ra = discriminatedUnion("chartType", [La.extend({
5676
5678
  ]),
5677
5679
  xKey: X,
5678
5680
  xAxisLabel: Z.optional(),
5679
- series: array(Fa).min(1).max(6),
5680
- data: array(Ma).min(1).max(120),
5681
+ series: array(La).min(1).max(6),
5682
+ data: array(Pa).min(1).max(120),
5681
5683
  layout: _enum(["horizontal", "vertical"]).optional(),
5682
5684
  stacking: _enum(["grouped", "stacked"]).optional(),
5683
- trendLine: Ia.optional()
5685
+ trendLine: Ra.optional()
5684
5686
  }).strip().superRefine((e, t) => {
5685
5687
  e.stacking && e.chartType !== "bar" && t.addIssue({
5686
5688
  code: "custom",
@@ -5718,13 +5720,13 @@ var Ra = discriminatedUnion("chartType", [La.extend({
5718
5720
  path: ["trendLine", "dataKey"],
5719
5721
  value: e.trendLine.dataKey
5720
5722
  }] : []], t);
5721
- }), La.extend({
5723
+ }), za.extend({
5722
5724
  visualType: literal("chart"),
5723
5725
  chartType: literal("pie"),
5724
5726
  nameKey: X,
5725
5727
  valueKey: X,
5726
- series: array(Fa).max(1).optional(),
5727
- data: array(Ma).min(1).max(16)
5728
+ series: array(La).max(1).optional(),
5729
+ data: array(Pa).min(1).max(16)
5728
5730
  }).strip().superRefine((e, t) => {
5729
5731
  requireDataKeys(e.data, [
5730
5732
  {
@@ -5748,10 +5750,10 @@ var Ra = discriminatedUnion("chartType", [La.extend({
5748
5750
  value: e.valueKey,
5749
5751
  nonnegative: !0
5750
5752
  }], t);
5751
- })]), za = object({
5753
+ })]), Va = object({
5752
5754
  id: X,
5753
5755
  label: Z,
5754
- detail: ja.optional(),
5756
+ detail: Na.optional(),
5755
5757
  kind: _enum([
5756
5758
  "actor",
5757
5759
  "agent",
@@ -5762,11 +5764,11 @@ var Ra = discriminatedUnion("chartType", [La.extend({
5762
5764
  "system",
5763
5765
  "task"
5764
5766
  ]).optional()
5765
- }).strip(), Ba = object({
5767
+ }).strip(), Ha = object({
5766
5768
  from: X,
5767
5769
  to: X,
5768
5770
  label: Z.optional()
5769
- }).strip(), Va = union([Ra, La.extend({
5771
+ }).strip(), Q = union([Ba, za.extend({
5770
5772
  visualType: literal("diagram"),
5771
5773
  diagramType: _enum([
5772
5774
  "flow",
@@ -5780,8 +5782,8 @@ var Ra = discriminatedUnion("chartType", [La.extend({
5780
5782
  "radial",
5781
5783
  "top-to-bottom"
5782
5784
  ]).default("auto"),
5783
- nodes: array(za).min(1).max(24),
5784
- edges: array(Ba).max(48)
5785
+ nodes: array(Va).min(1).max(24),
5786
+ edges: array(Ha).max(48)
5785
5787
  }).strip().superRefine((e, t) => {
5786
5788
  let n = new Set(e.nodes.map((e) => e.id));
5787
5789
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5940,11 +5942,11 @@ function parseChatVisualFencePayload(e) {
5940
5942
  fallbackMarkdown: r
5941
5943
  };
5942
5944
  }
5943
- let n = Va.safeParse(t);
5945
+ let n = Q.safeParse(t);
5944
5946
  if (!n.success) {
5945
5947
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5946
5948
  if (e) {
5947
- let t = Va.safeParse(e);
5949
+ let t = Q.safeParse(e);
5948
5950
  if (t.success) return {
5949
5951
  ok: !0,
5950
5952
  spec: t.data
@@ -5969,7 +5971,7 @@ function extractChatVisualFencePayloads(e) {
5969
5971
  }
5970
5972
  //#endregion
5971
5973
  //#region ../core/dist/wire/conversation.js
5972
- var Q = object({
5974
+ var Ua = object({
5973
5975
  type: _enum([
5974
5976
  "user",
5975
5977
  "agent",
@@ -5989,7 +5991,7 @@ var Q = object({
5989
5991
  displayName: string().optional(),
5990
5992
  handle: string().optional(),
5991
5993
  avatarUrl: string().optional()
5992
- }).strict(), Ha = object({
5994
+ }).strict(), Wa = object({
5993
5995
  messageId: string(),
5994
5996
  role: _enum([
5995
5997
  "user",
@@ -5999,7 +6001,7 @@ var Q = object({
5999
6001
  content: string(),
6000
6002
  sequence: string(),
6001
6003
  createdAt: string()
6002
- }), Ua = object({
6004
+ }), Ga = object({
6003
6005
  conversationId: string(),
6004
6006
  orgId: string(),
6005
6007
  kind: _enum(["direct", "group"]),
@@ -6009,30 +6011,30 @@ var Q = object({
6009
6011
  "requester",
6010
6012
  "member"
6011
6013
  ]),
6012
- participants: array(Q),
6013
- lastMessage: Ha.nullable(),
6014
+ participants: array(Ua),
6015
+ lastMessage: Wa.nullable(),
6014
6016
  unreadCount: number().int().nonnegative(),
6015
6017
  latestSequence: string().nullable()
6016
- }), Wa = object({ sequence: string().min(1) }), Ga = object({ turnId: string().min(1).optional() }).strict(), Ka = object({
6018
+ }), Ka = object({ sequence: string().min(1) }), qa = object({ turnId: string().min(1).optional() }).strict(), Ja = object({
6017
6019
  cancelled: boolean(),
6018
6020
  cancelledTurnIds: array(string())
6019
- }).strict(), qa = object({
6021
+ }).strict(), Ya = object({
6020
6022
  conversationId: string(),
6021
6023
  messageId: string(),
6022
6024
  sequence: string(),
6023
6025
  snippet: string(),
6024
6026
  createdAt: string(),
6025
- participants: array(Q)
6026
- }), Ja = object({
6027
+ participants: array(Ua)
6028
+ }), Xa = object({
6027
6029
  conversationId: string(),
6028
- lastMessage: Ha.nullable(),
6030
+ lastMessage: Wa.nullable(),
6029
6031
  unreadCount: number().int().nonnegative(),
6030
6032
  latestSequence: string().nullable()
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([
6033
+ }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Za = preprocess((e) => e === void 0 ? null : e, V.nullable()), Qa = preprocess((e) => e === void 0 ? null : e, B.nullable()), $a = preprocess((e) => e === void 0 ? null : e, _enum([
6032
6034
  "user",
6033
6035
  "assistant",
6034
6036
  "system"
6035
- ]).nullable()), Qa = preprocess((e) => e === void 0 ? 0 : e, number()), $a = object({
6037
+ ]).nullable()), eo = preprocess((e) => e === void 0 ? 0 : e, number()), to = object({
6036
6038
  agentId: string(),
6037
6039
  handle: string(),
6038
6040
  name: string(),
@@ -6041,19 +6043,19 @@ var Q = object({
6041
6043
  orgHandle: $,
6042
6044
  ownerEmail: $,
6043
6045
  ownerName: $,
6044
- state: Ya,
6045
- desiredStatus: Xa,
6046
+ state: Za,
6047
+ desiredStatus: Qa,
6046
6048
  runtime: string(),
6047
6049
  imageVersion: $,
6048
6050
  lastHealthyAt: $,
6049
6051
  lastActiveAt: $,
6050
6052
  lastUserMessageAt: $,
6051
6053
  lastMessageAt: $,
6052
- lastMessageRole: Za,
6054
+ lastMessageRole: $a,
6053
6055
  lastMessageChannel: $,
6054
6056
  primaryChannel: $,
6055
- totalMessages: Qa,
6056
- totalSessions: Qa,
6057
+ totalMessages: eo,
6058
+ totalSessions: eo,
6057
6059
  error: $,
6058
6060
  appHandle: string(),
6059
6061
  flyAppExists: boolean(),
@@ -6062,7 +6064,7 @@ var Q = object({
6062
6064
  billingActive: boolean(),
6063
6065
  createdAt: string(),
6064
6066
  updatedAt: string()
6065
- }), eo = object({
6067
+ }), no = object({
6066
6068
  running: number(),
6067
6069
  stopped: number(),
6068
6070
  error: number(),
@@ -6070,28 +6072,28 @@ var Q = object({
6070
6072
  stopping: number(),
6071
6073
  unknown: number(),
6072
6074
  total: number()
6073
- }), to = object({
6074
- agents: array($a),
6075
- summary: eo,
6075
+ }), ro = object({
6076
+ agents: array(to),
6077
+ summary: no,
6076
6078
  orphanedApps: array(string()),
6077
6079
  dailyMessages30d: array(number().int()).optional(),
6078
6080
  flyAppCount: number().optional(),
6079
6081
  latestVersion: string().optional(),
6080
6082
  latestVersions: record(string(), string()).optional()
6081
- }), no = I, ro = F, io = object({
6083
+ }), io = br, ao = P, oo = object({
6082
6084
  mediaId: string(),
6083
6085
  src: string(),
6084
6086
  alt: string().nullable().optional(),
6085
6087
  filename: string().optional(),
6086
6088
  displayName: string().nullable().optional(),
6087
6089
  mimeType: string().optional(),
6088
- mediaType: ro.optional(),
6089
- type: ro.optional(),
6090
+ mediaType: ao.optional(),
6091
+ type: ao.optional(),
6090
6092
  size: number().optional(),
6091
6093
  width: number().nullable().optional(),
6092
6094
  height: number().nullable().optional(),
6093
6095
  duration: number().nullable().optional(),
6094
- context: no.nullable().optional(),
6096
+ context: io.nullable().optional(),
6095
6097
  blurhash: string().nullable().optional(),
6096
6098
  quality: string().optional(),
6097
6099
  status: string().optional(),
@@ -6100,13 +6102,13 @@ var Q = object({
6100
6102
  agentId: string().nullable().optional(),
6101
6103
  createdAt: string().optional(),
6102
6104
  updatedAt: string().optional()
6103
- }), ao = object({
6105
+ }), so = object({
6104
6106
  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."),
6105
- context: no.optional().default("general"),
6107
+ context: io.optional().default("general"),
6106
6108
  agentId: string().optional(),
6107
6109
  orgId: string().optional(),
6108
6110
  duration: number().optional()
6109
- }), oo = object({
6111
+ }), co = object({
6110
6112
  mediaId: string().optional(),
6111
6113
  src: string().optional(),
6112
6114
  alt: string().optional(),
@@ -6115,7 +6117,7 @@ var Q = object({
6115
6117
  mimeType: string().optional(),
6116
6118
  mediaType: string().optional(),
6117
6119
  blurhash: string().optional()
6118
- }), so = object({
6120
+ }), lo = object({
6119
6121
  membershipId: string(),
6120
6122
  userId: string(),
6121
6123
  orgId: string(),
@@ -6130,15 +6132,15 @@ var Q = object({
6130
6132
  status: _enum(["active", "suspended"]),
6131
6133
  joinedAt: string(),
6132
6134
  lastSeenAt: string().optional(),
6133
- avatar: oo.optional()
6134
- }), co = object({
6135
+ avatar: co.optional()
6136
+ }), uo = object({
6135
6137
  invitationId: string(),
6136
6138
  email: string(),
6137
6139
  role: _enum(["admin", "member"]),
6138
6140
  status: string(),
6139
6141
  expiresAt: string(),
6140
6142
  createdAt: string()
6141
- }), lo = object({
6143
+ }), fo = object({
6142
6144
  token: string(),
6143
6145
  email: string(),
6144
6146
  orgId: string(),
@@ -6160,54 +6162,54 @@ var Q = object({
6160
6162
  ]),
6161
6163
  expiresAt: string(),
6162
6164
  memberCount: number().optional()
6163
- }), uo = object({
6165
+ }), po = object({
6164
6166
  email: string().email(),
6165
6167
  role: _enum(["admin", "member"]).optional(),
6166
6168
  message: string().max(500).optional()
6167
- }).strict(), fo = object({ role: _enum(["admin", "member"]) }).strict(), po = object({ token: string().min(1) }).strict(), mo = _enum([
6169
+ }).strict(), mo = object({ role: _enum(["admin", "member"]) }).strict(), ho = object({ token: string().min(1) }).strict(), go = _enum([
6168
6170
  "planLimit",
6169
6171
  "billingOverdue",
6170
6172
  "rebuilding",
6171
6173
  "agentNotFound"
6172
- ]), ho = _enum([
6174
+ ]), _o = _enum([
6173
6175
  "rebuilding",
6174
6176
  "provisioning",
6175
6177
  "billingOverdue"
6176
- ]), go = object({
6178
+ ]), vo = object({
6177
6179
  agentId: string(),
6178
6180
  name: string(),
6179
- avatar: L.optional(),
6181
+ avatar: F.optional(),
6180
6182
  summary: string().nullable().optional(),
6181
6183
  ownerId: string(),
6182
6184
  ownerFirstName: string(),
6183
- ownerAvatar: L.optional(),
6185
+ ownerAvatar: F.optional(),
6184
6186
  ownerLabel: string(),
6185
6187
  avatarInitial: string(),
6186
6188
  isYours: boolean(),
6187
6189
  lastMessageAt: string().datetime().nullable(),
6188
6190
  lastMessagePreview: string().nullable(),
6189
6191
  onboardedAt: string().datetime().nullable(),
6190
- desiredStatus: V.nullable(),
6191
- lifecycle: H,
6192
+ desiredStatus: B.nullable(),
6193
+ lifecycle: V,
6192
6194
  changedAt: string().datetime().optional(),
6193
6195
  detail: string().optional(),
6194
- blocker: z.optional(),
6196
+ blocker: R.optional(),
6195
6197
  canWake: boolean(),
6196
- cantWakeReason: mo.optional(),
6198
+ cantWakeReason: go.optional(),
6197
6199
  canRebuild: boolean(),
6198
- cantRebuildReason: ho.optional()
6199
- }), _o = /* @__PURE__ */ t({
6200
- zNotificationTelemetryAck: () => xo,
6201
- zNotificationTelemetryEvent: () => bo,
6202
- zRegisterDeviceRequest: () => vo,
6203
- zRegisterDeviceResponse: () => yo
6204
- }), vo = object({
6200
+ cantRebuildReason: _o.optional()
6201
+ }), yo = /* @__PURE__ */ t({
6202
+ zNotificationTelemetryAck: () => Co,
6203
+ zNotificationTelemetryEvent: () => So,
6204
+ zRegisterDeviceRequest: () => bo,
6205
+ zRegisterDeviceResponse: () => xo
6206
+ }), bo = object({
6205
6207
  deviceId: string().min(1).max(64),
6206
6208
  pushToken: string().min(1).max(200),
6207
6209
  appVersion: string().max(40).optional(),
6208
6210
  osVersion: string().max(40).optional(),
6209
6211
  model: string().max(80).optional()
6210
- }), yo = object({ deviceId: string().min(1).max(64) }), bo = object({
6212
+ }), xo = object({ deviceId: string().min(1).max(64) }), So = object({
6211
6213
  deviceId: string().min(1).max(64),
6212
6214
  kind: string().min(1).max(30),
6213
6215
  action: _enum([
@@ -6216,7 +6218,7 @@ var Q = object({
6216
6218
  "dismissed"
6217
6219
  ]),
6218
6220
  messageId: string().max(32).optional()
6219
- }), xo = object({ updated: boolean() }), So = q.pick({
6221
+ }), Co = object({ updated: boolean() }), wo = q.pick({
6220
6222
  orgId: !0,
6221
6223
  handle: !0,
6222
6224
  name: !0,
@@ -6230,13 +6232,13 @@ var Q = object({
6230
6232
  status: !0,
6231
6233
  updatedAt: !0
6232
6234
  }).extend({
6233
- avatar: io.nullable().optional(),
6234
- cover: io.nullable().optional()
6235
- }), Co = object({
6235
+ avatar: oo.nullable().optional(),
6236
+ cover: oo.nullable().optional()
6237
+ }), To = object({
6236
6238
  name: string().min(1).max(255),
6237
6239
  handle: string().min(2).max(50).optional(),
6238
6240
  timezone: Y.optional()
6239
- }).strict(), wo = q.pick({
6241
+ }).strict(), Eo = q.pick({
6240
6242
  name: !0,
6241
6243
  email: !0,
6242
6244
  website: !0,
@@ -6248,11 +6250,17 @@ var Q = object({
6248
6250
  timezone: Y.optional(),
6249
6251
  avatarMediaId: string().nullable().optional(),
6250
6252
  coverMediaId: string().nullable().optional()
6251
- }).strict(), To = _enum([
6253
+ }).strict(), Do = object({
6254
+ messagesHandled: number().int().nonnegative(),
6255
+ proactiveRuns: number().int().nonnegative(),
6256
+ approvalsWaiting: number().int().nonnegative(),
6257
+ dailyHandled: array(number().int().nonnegative()).length(7),
6258
+ since: string()
6259
+ }), Oo = _enum([
6252
6260
  "success",
6253
6261
  "info",
6254
6262
  "warning"
6255
- ]), Eo = object({
6263
+ ]), ko = object({
6256
6264
  org: object({
6257
6265
  orgId: string(),
6258
6266
  name: string(),
@@ -6261,7 +6269,7 @@ var Q = object({
6261
6269
  plan: object({
6262
6270
  key: string(),
6263
6271
  label: string(),
6264
- tone: To,
6272
+ tone: Oo,
6265
6273
  status: string(),
6266
6274
  trialDaysRemaining: number().optional()
6267
6275
  }),
@@ -6282,15 +6290,15 @@ function zPaginatedResponse(e) {
6282
6290
  }
6283
6291
  //#endregion
6284
6292
  //#region ../core/dist/wire/public-services.js
6285
- var Do = object({
6293
+ var Ao = object({
6286
6294
  sender: _enum(["user", "agent"]),
6287
6295
  text: string()
6288
- }), Oo = _enum([
6296
+ }), jo = _enum([
6289
6297
  "works-now",
6290
6298
  "guided-setup",
6291
6299
  "coming-soon",
6292
6300
  "custom-workflow"
6293
- ]), ko = object({
6301
+ ]), Mo = object({
6294
6302
  docsUrl: string(),
6295
6303
  verifiedAt: string(),
6296
6304
  version: string().optional(),
@@ -6302,11 +6310,11 @@ var Do = object({
6302
6310
  "unversioned"
6303
6311
  ]),
6304
6312
  note: string().optional()
6305
- }), Ao = object({
6313
+ }), No = object({
6306
6314
  key: string(),
6307
6315
  label: string(),
6308
6316
  rank: number()
6309
- }), jo = object({
6317
+ }), Po = object({
6310
6318
  text: string(),
6311
6319
  tone: _enum([
6312
6320
  "info",
@@ -6314,7 +6322,7 @@ var Do = object({
6314
6322
  "success",
6315
6323
  "danger"
6316
6324
  ])
6317
- }), Mo = object({
6325
+ }), Fo = object({
6318
6326
  serviceKey: string(),
6319
6327
  name: string(),
6320
6328
  description: string(),
@@ -6324,16 +6332,16 @@ var Do = object({
6324
6332
  category: string(),
6325
6333
  categoryLabel: string(),
6326
6334
  categoryRank: number(),
6327
- secondaryCategories: array(Ao),
6328
- badges: array(jo),
6335
+ secondaryCategories: array(No),
6336
+ badges: array(Po),
6329
6337
  tags: array(string()),
6330
6338
  searchAliases: array(string()),
6331
6339
  jtbd: string(),
6332
6340
  useCase: string(),
6333
6341
  demoScenario: string(),
6334
- sampleConversation: array(Do),
6335
- publicStatus: Oo,
6336
- apiVerification: ko.optional(),
6342
+ sampleConversation: array(Ao),
6343
+ publicStatus: jo,
6344
+ apiVerification: Mo.optional(),
6337
6345
  setupDifficulty: string(),
6338
6346
  risk: string(),
6339
6347
  price: string(),
@@ -6346,83 +6354,85 @@ var Do = object({
6346
6354
  ]),
6347
6355
  setupSummary: string().optional(),
6348
6356
  pagePath: string()
6349
- }), No = object({
6357
+ }), Io = object({
6350
6358
  fullName: string().min(1).max(100).optional(),
6351
6359
  linkedinUsername: K.nullable().optional(),
6352
6360
  avatarMediaId: string().nullable().optional(),
6353
6361
  primaryAgentId: string().nullable().optional(),
6354
6362
  lastActiveOrgId: string().nullable().optional()
6355
- }).strict(), Po = /* @__PURE__ */ t({
6356
- ASSISTANT_SILENCE_CONTROLS: () => xi,
6357
- ActionAreaSchema: () => Pr,
6358
- ActionButtonSchema: () => R,
6359
- Agent: () => oi,
6360
- AudioFormatSchema: () => Cr,
6361
- AudioMediaSchema: () => Or,
6362
- AudioPropertiesSchema: () => Tr,
6363
+ }).strict(), Lo = /* @__PURE__ */ t({
6364
+ ASSISTANT_SILENCE_CONTROLS: () => Ci,
6365
+ ActionAreaSchema: () => Ir,
6366
+ ActionButtonSchema: () => I,
6367
+ Agent: () => ci,
6368
+ AudioFormatSchema: () => Tr,
6369
+ AudioMediaSchema: () => Ar,
6370
+ AudioPropertiesSchema: () => Dr,
6363
6371
  AuthApiError: () => AuthApiError,
6364
- BOT_API_LLM_PATH: () => Ti,
6365
- BOT_API_PATH: () => wi,
6366
- BOT_USER_AGENT: () => bi,
6367
- ButtonDesignSchema: () => Nr,
6368
- ButtonThemeSchema: () => Mr,
6369
- CHART_THEME: () => Lr,
6370
- CHAT_ISSUE_CODES: () => Br,
6371
- CHAT_ISSUE_COPY: () => B,
6372
+ BOT_API_LLM_PATH: () => Di,
6373
+ BOT_API_PATH: () => Ei,
6374
+ BOT_USER_AGENT: () => Si,
6375
+ ButtonDesignSchema: () => Fr,
6376
+ ButtonThemeSchema: () => Pr,
6377
+ CHART_THEME: () => zr,
6378
+ CHAT_ISSUE_CODES: () => Ur,
6379
+ CHAT_ISSUE_COPY: () => z,
6372
6380
  CookieUtil: () => CookieUtil,
6373
- DEFAULT_HEARTBEAT_TIMES: () => ir,
6374
- DocumentMediaSchema: () => kr,
6375
- ERROR_CODES: () => Ni,
6376
- EnrichedAgentSchema: () => ii,
6377
- ImageFormatSchema: () => xr,
6378
- ImageMediaSchema: () => Er,
6379
- LIFECYCLE_COLOR: () => Kr,
6380
- Logger: () => M,
6381
- MEDIA_CONTEXTS: () => vr,
6382
- MEDIA_TYPES: () => _r,
6383
- MediaContextSchema: () => I,
6384
- MediaSchema: () => L,
6385
- MediaStatusSchema: () => yr,
6386
- MediaTypeSchema: () => F,
6387
- MediaUnionSchema: () => Ar,
6388
- NavItemSchema: () => Fr,
6389
- NavListSchema: () => Ir,
6381
+ DEFAULT_HEARTBEAT_TIMES: () => ar,
6382
+ DocumentMediaSchema: () => jr,
6383
+ ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Vr,
6384
+ ENTRY_TIER_MONTHLY_PRICE_LABEL: () => L,
6385
+ ERROR_CODES: () => Fi,
6386
+ EnrichedAgentSchema: () => oi,
6387
+ ImageFormatSchema: () => Cr,
6388
+ ImageMediaSchema: () => Or,
6389
+ LIFECYCLE_COLOR: () => Yr,
6390
+ Logger: () => j,
6391
+ MEDIA_CONTEXTS: () => yr,
6392
+ MEDIA_TYPES: () => vr,
6393
+ MediaContextSchema: () => br,
6394
+ MediaSchema: () => F,
6395
+ MediaStatusSchema: () => xr,
6396
+ MediaTypeSchema: () => P,
6397
+ MediaUnionSchema: () => Mr,
6398
+ NavItemSchema: () => Lr,
6399
+ NavListSchema: () => Rr,
6390
6400
  PAGELINES_APP_CONFIG: () => i,
6391
- PERSONA_DEFAULTS: () => Xr,
6401
+ PERSONA_DEFAULTS: () => $r,
6392
6402
  SettingsObject: () => SettingsObject,
6393
- SizeSchema: () => jr,
6394
- SocialAccountSchema: () => hr,
6395
- SocialAccountsSchema: () => gr,
6396
- UNKNOWN_STATUS: () => Gr,
6397
- VOICE_CATALOG: () => W,
6398
- VideoFormatSchema: () => Sr,
6399
- VideoMediaSchema: () => Dr,
6400
- VideoPropertiesSchema: () => wr,
6401
- agentSchema: () => ri,
6403
+ SizeSchema: () => Nr,
6404
+ SocialAccountSchema: () => gr,
6405
+ SocialAccountsSchema: () => _r,
6406
+ UNKNOWN_STATUS: () => Jr,
6407
+ VOICE_CATALOG: () => U,
6408
+ VideoFormatSchema: () => wr,
6409
+ VideoMediaSchema: () => kr,
6410
+ VideoPropertiesSchema: () => Er,
6411
+ agentSchema: () => ai,
6402
6412
  apiError: () => apiError,
6403
6413
  apiOk: () => apiOk,
6404
- appleAuthSchema: () => hi,
6414
+ appleAuthSchema: () => _i,
6405
6415
  authErrorMessage: () => authErrorMessage,
6406
6416
  botApiLlmUrl: () => botApiLlmUrl,
6407
6417
  botApiUrl: () => botApiUrl,
6408
6418
  budgetMinutes: () => budgetMinutes,
6409
6419
  buildChatIssue: () => buildChatIssue,
6410
- changeEmailSchema: () => pi,
6420
+ changeEmailSchema: () => hi,
6411
6421
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6412
6422
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6413
6423
  chatEventTurnId: () => chatEventTurnId,
6414
6424
  chatEventUserTurnId: () => chatEventUserTurnId,
6415
6425
  chatIssueCatalogLines: () => chatIssueCatalogLines,
6416
6426
  chatIssueToErrorData: () => chatIssueToErrorData,
6417
- cookieUtil: () => mr,
6427
+ cookieUtil: () => hr,
6418
6428
  createAgent: () => createAgent,
6419
6429
  createAgents: () => createAgents,
6420
6430
  createLogger: () => createLogger,
6421
- debug: () => dr,
6431
+ debug: () => fr,
6422
6432
  derive: () => derive,
6423
- emailSchema: () => di,
6424
- enrichedUserSchema: () => yi,
6425
- error: () => cr,
6433
+ emailSchema: () => pi,
6434
+ enrichedUserSchema: () => xi,
6435
+ error: () => lr,
6426
6436
  errorCopy: () => errorCopy,
6427
6437
  errorFromApiResponse: () => errorFromApiResponse,
6428
6438
  extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
@@ -6431,157 +6441,158 @@ var Do = object({
6431
6441
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6432
6442
  getDefaultGradientCss: () => getDefaultGradientCss,
6433
6443
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6434
- googleAuthSchema: () => mi,
6435
- info: () => ur,
6444
+ googleAuthSchema: () => gi,
6445
+ info: () => dr,
6436
6446
  isAgentReady: () => isAgentReady,
6437
6447
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6438
6448
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6439
6449
  isOperationActive: () => isOperationActive,
6440
6450
  isTransitioning: () => isTransitioning,
6441
6451
  linkedinUsernameSchema: () => K,
6442
- logger: () => N,
6452
+ logger: () => M,
6443
6453
  mapAuthErrorCode: () => mapAuthErrorCode,
6444
6454
  nanoid: () => nanoid,
6445
- notificationWire: () => _o,
6455
+ notificationWire: () => yo,
6446
6456
  objectId: () => objectId,
6447
- orgInfoSchema: () => vi,
6457
+ orgInfoSchema: () => bi,
6448
6458
  orgSchema: () => q,
6449
- orgWithDefaultAgentSchema: () => gi,
6459
+ orgWithDefaultAgentSchema: () => vi,
6450
6460
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6451
6461
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6452
6462
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6453
6463
  resolveVoice: () => resolveVoice,
6454
6464
  retryPolicyFor: () => retryPolicyFor,
6455
6465
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6456
- serverTransitionBudgets: () => Ci,
6466
+ serverTransitionBudgets: () => Ti,
6457
6467
  shortId: () => shortId,
6458
6468
  toAgentState: () => toAgentState,
6459
6469
  toChatStreamError: () => toChatStreamError,
6460
- trace: () => fr,
6461
- trialEligibilitySchema: () => si,
6462
- updateUserSchema: () => ui,
6463
- userSchema: () => li,
6470
+ trace: () => pr,
6471
+ trialEligibilitySchema: () => li,
6472
+ updateUserSchema: () => fi,
6473
+ userSchema: () => di,
6464
6474
  uuid: () => uuid,
6465
- verifyCodeSchema: () => fi,
6466
- warn: () => lr,
6475
+ verifyCodeSchema: () => mi,
6476
+ warn: () => ur,
6467
6477
  withChatEventTurnId: () => withChatEventTurnId,
6468
- zAcceptInvitationBody: () => po,
6469
- zAccessibleAgentRow: () => go,
6470
- zAgentGender: () => U,
6471
- zAgentRow: () => ji,
6472
- zApiError: () => Ii,
6478
+ zAcceptInvitationBody: () => ho,
6479
+ zAccessibleAgentRow: () => vo,
6480
+ zAgentGender: () => H,
6481
+ zAgentRow: () => Ni,
6482
+ zApiError: () => Ri,
6473
6483
  zApiOk: () => zApiOk,
6474
6484
  zApiResponse: () => zApiResponse,
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,
6499
- zChatIssue: () => z,
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,
6519
- zDesiredStatus: () => V,
6520
- zErrorCode: () => Pi,
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: () => G,
6497
+ zBotGenerateImageBody: () => sa,
6498
+ zBotGenerateImageResponse: () => ca,
6499
+ zCancelConversationTurnBody: () => qa,
6500
+ zCancelConversationTurnResponse: () => Ja,
6501
+ zCantRebuildReason: () => _o,
6502
+ zCantWakeReason: () => go,
6503
+ zChatAttachment: () => Gi,
6504
+ zChatAttachmentInput: () => $i,
6505
+ zChatAttachmentPlacement: () => Wi,
6506
+ zChatCardSpec: () => ja,
6507
+ zChatErrorData: () => Oa,
6508
+ zChatEvent: () => ka,
6509
+ zChatIssue: () => R,
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: () => Q,
6519
+ zCompleteCheckoutData: () => wa,
6520
+ zConversationLastMessage: () => Wa,
6521
+ zConversationParticipant: () => Ua,
6522
+ zConversationSummary: () => Ga,
6523
+ zConversationTarget: () => ta,
6524
+ zConversationUpdatedEvent: () => Xa,
6525
+ zCreateAgentBody: () => ji,
6526
+ zCreateConversationBody: () => na,
6527
+ zCreateConversationSessionBody: () => ra,
6528
+ zCreateOrgBody: () => To,
6529
+ zDesiredStatus: () => B,
6530
+ zErrorCode: () => Ii,
6521
6531
  zErrorResponses: () => zErrorResponses,
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,
6531
- zHeartbeatLocalTime: () => E,
6532
- zHeartbeatMoment: () => rr,
6532
+ zFleetAgent: () => to,
6533
+ zFleetSummary: () => no,
6534
+ zFleetSyncResponse: () => ro,
6535
+ zHandoffConsumeBody: () => ha,
6536
+ zHandoffConsumeData: () => ga,
6537
+ zHandoffConsumeResponse: () => _a,
6538
+ zHandoffMintBody: () => fa,
6539
+ zHandoffMintData: () => pa,
6540
+ zHandoffMintResponse: () => ma,
6541
+ zHeartbeatLocalTime: () => T,
6542
+ zHeartbeatMoment: () => ir,
6543
+ zHomeStats: () => Do,
6533
6544
  zIanaTimezone: () => Y,
6534
- zImageAspectRatio: () => ra,
6535
- zImageResolution: () => ia,
6536
- zInvitationPreview: () => lo,
6537
- zInvitationRow: () => co,
6538
- zInviteBody: () => uo,
6539
- zLifecycle: () => H,
6540
- zLifecycleVerb: () => Yr,
6541
- zLiveStatus: () => Wr,
6542
- zMarkReadBody: () => Wa,
6543
- zMediaContext: () => no,
6544
- zMediaObject: () => io,
6545
- zMediaType: () => ro,
6546
- zMemberRow: () => so,
6547
- zMessageSearchResult: () => qa,
6548
- zOrgRow: () => So,
6549
- zOrgSummary: () => Eo,
6545
+ zImageAspectRatio: () => aa,
6546
+ zImageResolution: () => oa,
6547
+ zInvitationPreview: () => fo,
6548
+ zInvitationRow: () => uo,
6549
+ zInviteBody: () => po,
6550
+ zLifecycle: () => V,
6551
+ zLifecycleVerb: () => Qr,
6552
+ zLiveStatus: () => qr,
6553
+ zMarkReadBody: () => Ka,
6554
+ zMediaContext: () => io,
6555
+ zMediaObject: () => oo,
6556
+ zMediaType: () => ao,
6557
+ zMemberRow: () => lo,
6558
+ zMessageSearchResult: () => Ya,
6559
+ zOrgRow: () => wo,
6560
+ zOrgSummary: () => ko,
6550
6561
  zPaginatedResponse: () => zPaginatedResponse,
6551
- zPlanTone: () => To,
6552
- zProviderErrorKind: () => Fi,
6553
- zPublicServiceOverview: () => Mo,
6554
- zReportMessageBody: () => na,
6555
- zRuntimeOperation: () => Ur,
6556
- zRuntimeOperationKind: () => Vr,
6557
- zRuntimeOperationStatus: () => Hr,
6558
- zSendMessageBody: () => Qi,
6559
- zSuggestedPrompt: () => Mi,
6560
- zUpdateAgentBody: () => Ai,
6561
- zUpdateOrgBody: () => wo,
6562
- zUpdateRoleBody: () => fo,
6563
- zUpdateUserBody: () => No,
6564
- zUploadMediaBody: () => ao,
6565
- zVoiceKey: () => G,
6566
- zVoiceProviderName: () => $r,
6567
- zVoiceProviderSession: () => Qr,
6568
- zVoiceSessionMint: () => ei,
6569
- zVoiceSessionMintBody: () => Zr
6570
- }), Fo = "1.0.0";
6562
+ zPlanTone: () => Oo,
6563
+ zProviderErrorKind: () => Li,
6564
+ zPublicServiceOverview: () => Fo,
6565
+ zReportMessageBody: () => ia,
6566
+ zRuntimeOperation: () => Kr,
6567
+ zRuntimeOperationKind: () => Wr,
6568
+ zRuntimeOperationStatus: () => Gr,
6569
+ zSendMessageBody: () => ea,
6570
+ zSuggestedPrompt: () => Pi,
6571
+ zUpdateAgentBody: () => Mi,
6572
+ zUpdateOrgBody: () => Eo,
6573
+ zUpdateRoleBody: () => mo,
6574
+ zUpdateUserBody: () => Io,
6575
+ zUploadMediaBody: () => so,
6576
+ zVoiceKey: () => W,
6577
+ zVoiceProviderName: () => ni,
6578
+ zVoiceProviderSession: () => ti,
6579
+ zVoiceSessionMint: () => ri,
6580
+ zVoiceSessionMintBody: () => ei
6581
+ }), Ro = "1.0.0";
6571
6582
  function buildContract(e = {}) {
6572
6583
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6573
6584
  let r = contractNameFor(e);
6574
6585
  r && (n[r] = toSchema(t));
6575
6586
  };
6576
- for (let [e, t] of Object.entries(Po)) {
6577
- if (t instanceof C) {
6587
+ for (let [e, t] of Object.entries(Lo)) {
6588
+ if (t instanceof S) {
6578
6589
  addSchema(e, t);
6579
6590
  continue;
6580
6591
  }
6581
- if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof C && addSchema(e, n);
6592
+ if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6582
6593
  }
6583
6594
  return {
6584
- version: Fo,
6595
+ version: Ro,
6585
6596
  generatedAt: t.toISOString(),
6586
6597
  schemas: n
6587
6598
  };
@@ -6601,6 +6612,6 @@ function sortedReplacer(e, t) {
6601
6612
  return t;
6602
6613
  }
6603
6614
  //#endregion
6604
- export { Fo as CONTRACT_VERSION, buildContract, serializeContract };
6615
+ export { Ro as CONTRACT_VERSION, buildContract, serializeContract };
6605
6616
 
6606
6617
  //# sourceMappingURL=contract.js.map