@pagelines/sdk 1.0.776 → 1.0.777

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/contract.js CHANGED
@@ -836,7 +836,7 @@ var Ce = /* @__PURE__ */ e((e) => {
836
836
  vendor: "zod",
837
837
  version: 1
838
838
  }));
839
- }), Ke = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
839
+ }), y = /*@__PURE__*/ $constructor("$ZodString", (e, t) => {
840
840
  v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Ce(e._zod.bag), e._zod.parse = (n, r) => {
841
841
  if (t.coerce) try {
842
842
  n.value = String(n.value);
@@ -848,11 +848,11 @@ var Ce = /* @__PURE__ */ e((e) => {
848
848
  inst: e
849
849
  }), n;
850
850
  };
851
- }), y = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
852
- g.init(e, t), Ke.init(e, t);
853
- }), qe = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
854
- t.pattern ?? (t.pattern = le), y.init(e, t);
855
- }), Je = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
851
+ }), b = /*@__PURE__*/ $constructor("$ZodStringFormat", (e, t) => {
852
+ g.init(e, t), y.init(e, t);
853
+ }), Ke = /*@__PURE__*/ $constructor("$ZodGUID", (e, t) => {
854
+ t.pattern ?? (t.pattern = le), b.init(e, t);
855
+ }), qe = /*@__PURE__*/ $constructor("$ZodUUID", (e, t) => {
856
856
  if (t.version) {
857
857
  let e = {
858
858
  v1: 1,
@@ -867,11 +867,11 @@ var Ce = /* @__PURE__ */ e((e) => {
867
867
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
868
868
  t.pattern ?? (t.pattern = ue(e));
869
869
  } else t.pattern ?? (t.pattern = ue());
870
- y.init(e, t);
871
- }), Ye = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
872
- t.pattern ?? (t.pattern = de), y.init(e, t);
873
- }), Xe = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
874
- y.init(e, t), e._zod.check = (n) => {
870
+ b.init(e, t);
871
+ }), Je = /*@__PURE__*/ $constructor("$ZodEmail", (e, t) => {
872
+ t.pattern ?? (t.pattern = de), b.init(e, t);
873
+ }), Ye = /*@__PURE__*/ $constructor("$ZodURL", (e, t) => {
874
+ b.init(e, t), e._zod.check = (n) => {
875
875
  try {
876
876
  let r = n.value.trim();
877
877
  if (!t.normalize && t.protocol?.source === ye.source && !/^https?:\/\//i.test(r)) {
@@ -914,32 +914,32 @@ var Ce = /* @__PURE__ */ e((e) => {
914
914
  });
915
915
  }
916
916
  };
917
- }), Ze = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
918
- t.pattern ?? (t.pattern = emoji()), y.init(e, t);
919
- }), Qe = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
920
- t.pattern ?? (t.pattern = se), y.init(e, t);
921
- }), $e = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
922
- t.pattern ?? (t.pattern = ne), y.init(e, t);
923
- }), et = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
924
- t.pattern ?? (t.pattern = re), y.init(e, t);
925
- }), tt = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
926
- t.pattern ?? (t.pattern = ie), y.init(e, t);
927
- }), nt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
928
- t.pattern ?? (t.pattern = ae), y.init(e, t);
929
- }), rt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
930
- t.pattern ?? (t.pattern = oe), y.init(e, t);
931
- }), it = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
932
- t.pattern ?? (t.pattern = datetime$1(t)), y.init(e, t);
933
- }), at = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
934
- t.pattern ?? (t.pattern = Se), y.init(e, t);
935
- }), ot = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
936
- t.pattern ?? (t.pattern = time$1(t)), y.init(e, t);
937
- }), st = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
938
- t.pattern ?? (t.pattern = ce), y.init(e, t);
939
- }), ct = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
940
- t.pattern ?? (t.pattern = pe), y.init(e, t), e._zod.bag.format = "ipv4";
941
- }), lt = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
942
- t.pattern ?? (t.pattern = me), y.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
917
+ }), Xe = /*@__PURE__*/ $constructor("$ZodEmoji", (e, t) => {
918
+ t.pattern ?? (t.pattern = emoji()), b.init(e, t);
919
+ }), Ze = /*@__PURE__*/ $constructor("$ZodNanoID", (e, t) => {
920
+ t.pattern ?? (t.pattern = se), b.init(e, t);
921
+ }), Qe = /*@__PURE__*/ $constructor("$ZodCUID", (e, t) => {
922
+ t.pattern ?? (t.pattern = ne), b.init(e, t);
923
+ }), $e = /*@__PURE__*/ $constructor("$ZodCUID2", (e, t) => {
924
+ t.pattern ?? (t.pattern = re), b.init(e, t);
925
+ }), et = /*@__PURE__*/ $constructor("$ZodULID", (e, t) => {
926
+ t.pattern ?? (t.pattern = ie), b.init(e, t);
927
+ }), tt = /*@__PURE__*/ $constructor("$ZodXID", (e, t) => {
928
+ t.pattern ?? (t.pattern = ae), b.init(e, t);
929
+ }), nt = /*@__PURE__*/ $constructor("$ZodKSUID", (e, t) => {
930
+ t.pattern ?? (t.pattern = oe), b.init(e, t);
931
+ }), rt = /*@__PURE__*/ $constructor("$ZodISODateTime", (e, t) => {
932
+ t.pattern ?? (t.pattern = datetime$1(t)), b.init(e, t);
933
+ }), it = /*@__PURE__*/ $constructor("$ZodISODate", (e, t) => {
934
+ t.pattern ?? (t.pattern = Se), b.init(e, t);
935
+ }), at = /*@__PURE__*/ $constructor("$ZodISOTime", (e, t) => {
936
+ t.pattern ?? (t.pattern = time$1(t)), b.init(e, t);
937
+ }), ot = /*@__PURE__*/ $constructor("$ZodISODuration", (e, t) => {
938
+ t.pattern ?? (t.pattern = ce), b.init(e, t);
939
+ }), st = /*@__PURE__*/ $constructor("$ZodIPv4", (e, t) => {
940
+ t.pattern ?? (t.pattern = pe), b.init(e, t), e._zod.bag.format = "ipv4";
941
+ }), ct = /*@__PURE__*/ $constructor("$ZodIPv6", (e, t) => {
942
+ t.pattern ?? (t.pattern = me), b.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
943
943
  try {
944
944
  new URL(`http://[${n.value}]`);
945
945
  } catch {
@@ -952,10 +952,10 @@ var Ce = /* @__PURE__ */ e((e) => {
952
952
  });
953
953
  }
954
954
  };
955
- }), ut = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
956
- t.pattern ?? (t.pattern = he), y.init(e, t);
957
- }), dt = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
958
- t.pattern ?? (t.pattern = ge), y.init(e, t), e._zod.check = (n) => {
955
+ }), lt = /*@__PURE__*/ $constructor("$ZodCIDRv4", (e, t) => {
956
+ t.pattern ?? (t.pattern = he), b.init(e, t);
957
+ }), ut = /*@__PURE__*/ $constructor("$ZodCIDRv6", (e, t) => {
958
+ t.pattern ?? (t.pattern = ge), b.init(e, t), e._zod.check = (n) => {
959
959
  let r = n.value.split("/");
960
960
  try {
961
961
  if (r.length !== 2) throw Error();
@@ -984,8 +984,8 @@ function isValidBase64(e) {
984
984
  return !1;
985
985
  }
986
986
  }
987
- var ft = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
988
- t.pattern ?? (t.pattern = _e), y.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
987
+ var dt = /*@__PURE__*/ $constructor("$ZodBase64", (e, t) => {
988
+ t.pattern ?? (t.pattern = _e), b.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
989
989
  isValidBase64(n.value) || n.issues.push({
990
990
  code: "invalid_format",
991
991
  format: "base64",
@@ -1000,8 +1000,8 @@ function isValidBase64URL(e) {
1000
1000
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
1001
1001
  return isValidBase64(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1002
1002
  }
1003
- var pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1004
- t.pattern ?? (t.pattern = ve), y.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1003
+ var ft = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1004
+ t.pattern ?? (t.pattern = ve), b.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1005
1005
  isValidBase64URL(n.value) || n.issues.push({
1006
1006
  code: "invalid_format",
1007
1007
  format: "base64url",
@@ -1010,8 +1010,8 @@ var pt = /*@__PURE__*/ $constructor("$ZodBase64URL", (e, t) => {
1010
1010
  continue: !t.abort
1011
1011
  });
1012
1012
  };
1013
- }), mt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
- t.pattern ?? (t.pattern = be), y.init(e, t);
1013
+ }), pt = /*@__PURE__*/ $constructor("$ZodE164", (e, t) => {
1014
+ t.pattern ?? (t.pattern = be), b.init(e, t);
1015
1015
  });
1016
1016
  function isValidJWT(e, t = null) {
1017
1017
  try {
@@ -1025,8 +1025,8 @@ function isValidJWT(e, t = null) {
1025
1025
  return !1;
1026
1026
  }
1027
1027
  }
1028
- var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
- y.init(e, t), e._zod.check = (n) => {
1028
+ var mt = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1029
+ b.init(e, t), e._zod.check = (n) => {
1030
1030
  isValidJWT(n.value, t.alg) || n.issues.push({
1031
1031
  code: "invalid_format",
1032
1032
  format: "jwt",
@@ -1035,7 +1035,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1035
1035
  continue: !t.abort
1036
1036
  });
1037
1037
  };
1038
- }), gt = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
1038
+ }), ht = /*@__PURE__*/ $constructor("$ZodNumber", (e, t) => {
1039
1039
  v.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Te, e._zod.parse = (n, r) => {
1040
1040
  if (t.coerce) try {
1041
1041
  n.value = Number(n.value);
@@ -1051,9 +1051,9 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1051
1051
  ...a ? { received: a } : {}
1052
1052
  }), n;
1053
1053
  };
1054
- }), _t = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
- Pe.init(e, t), gt.init(e, t);
1056
- }), vt = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
1054
+ }), gt = /*@__PURE__*/ $constructor("$ZodNumberFormat", (e, t) => {
1055
+ Pe.init(e, t), ht.init(e, t);
1056
+ }), _t = /*@__PURE__*/ $constructor("$ZodBoolean", (e, t) => {
1057
1057
  v.init(e, t), e._zod.pattern = Ee, e._zod.parse = (n, r) => {
1058
1058
  if (t.coerce) try {
1059
1059
  n.value = !!n.value;
@@ -1066,7 +1066,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1066
1066
  inst: e
1067
1067
  }), n;
1068
1068
  };
1069
- }), yt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
1069
+ }), vt = /*@__PURE__*/ $constructor("$ZodNull", (e, t) => {
1070
1070
  v.init(e, t), e._zod.pattern = De, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1071
1071
  let r = t.value;
1072
1072
  return r === null || t.issues.push({
@@ -1076,11 +1076,11 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1076
1076
  inst: e
1077
1077
  }), t;
1078
1078
  };
1079
- }), bt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1079
+ }), yt = /*@__PURE__*/ $constructor("$ZodAny", (e, t) => {
1080
1080
  v.init(e, t), e._zod.parse = (e) => e;
1081
- }), xt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1081
+ }), bt = /*@__PURE__*/ $constructor("$ZodUnknown", (e, t) => {
1082
1082
  v.init(e, t), e._zod.parse = (e) => e;
1083
- }), St = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
1083
+ }), xt = /*@__PURE__*/ $constructor("$ZodNever", (e, t) => {
1084
1084
  v.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1085
1085
  expected: "never",
1086
1086
  code: "invalid_type",
@@ -1091,7 +1091,7 @@ var ht = /*@__PURE__*/ $constructor("$ZodJWT", (e, t) => {
1091
1091
  function handleArrayResult(e, t, n) {
1092
1092
  e.issues.length && t.issues.push(...prefixIssues(n, e.issues)), t.value[n] = e.value;
1093
1093
  }
1094
- var Ct = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
1094
+ var St = /*@__PURE__*/ $constructor("$ZodArray", (e, t) => {
1095
1095
  v.init(e, t), e._zod.parse = (n, r) => {
1096
1096
  let i = n.value;
1097
1097
  if (!Array.isArray(i)) return n.issues.push({
@@ -1162,7 +1162,7 @@ function handleCatchall(e, t, n, r, i, a) {
1162
1162
  inst: a
1163
1163
  }), e.length ? Promise.all(e).then(() => n) : n;
1164
1164
  }
1165
- var wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1165
+ var Ct = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1166
1166
  if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1167
1167
  let e = t.shape;
1168
1168
  Object.defineProperty(t, "shape", { get: () => {
@@ -1203,8 +1203,8 @@ var wt = /*@__PURE__*/ $constructor("$ZodObject", (e, t) => {
1203
1203
  }
1204
1204
  return i ? handleCatchall(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1205
1205
  };
1206
- }), Tt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
- wt.init(e, t);
1206
+ }), wt = /*@__PURE__*/ $constructor("$ZodObjectJIT", (e, t) => {
1207
+ Ct.init(e, t);
1208
1208
  let n = e._zod.parse, r = cached(() => normalizeDef(t)), generateFastpass = (e) => {
1209
1209
  let t = new Doc([
1210
1210
  "shape",
@@ -1306,7 +1306,7 @@ function handleUnionResults(e, t, n, r) {
1306
1306
  errors: e.map((e) => e.issues.map((e) => finalizeIssue(e, r, config())))
1307
1307
  }), t);
1308
1308
  }
1309
- var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1309
+ var Tt = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1310
1310
  v.init(e, t), defineLazy(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), defineLazy(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), defineLazy(e._zod, "values", () => {
1311
1311
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1312
1312
  }), defineLazy(e._zod, "pattern", () => {
@@ -1332,8 +1332,8 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1332
1332
  }
1333
1333
  return a ? Promise.all(o).then((t) => handleUnionResults(t, r, e, i)) : handleUnionResults(o, r, e, i);
1334
1334
  };
1335
- }), Dt = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
- t.inclusive = !1, Et.init(e, t);
1335
+ }), Et = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (e, t) => {
1336
+ t.inclusive = !1, Tt.init(e, t);
1337
1337
  let n = e._zod.parse;
1338
1338
  defineLazy(e._zod, "propValues", () => {
1339
1339
  let e = {};
@@ -1379,7 +1379,7 @@ var Et = /*@__PURE__*/ $constructor("$ZodUnion", (e, t) => {
1379
1379
  inst: e
1380
1380
  }), i);
1381
1381
  };
1382
- }), Ot = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
1382
+ }), Dt = /*@__PURE__*/ $constructor("$ZodIntersection", (e, t) => {
1383
1383
  v.init(e, t), e._zod.parse = (e, n) => {
1384
1384
  let r = e.value, i = t.left._zod.run({
1385
1385
  value: r,
@@ -1455,7 +1455,7 @@ function handleIntersectionResults(e, t, n) {
1455
1455
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1456
1456
  return e.value = o.data, e;
1457
1457
  }
1458
- var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1458
+ var Ot = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1459
1459
  v.init(e, t), e._zod.parse = (n, r) => {
1460
1460
  let i = n.value;
1461
1461
  if (!isPlainObject(i)) return n.issues.push({
@@ -1541,7 +1541,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1541
1541
  }
1542
1542
  return a.length ? Promise.all(a).then(() => n) : n;
1543
1543
  };
1544
- }), At = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
1544
+ }), kt = /*@__PURE__*/ $constructor("$ZodEnum", (e, t) => {
1545
1545
  v.init(e, t);
1546
1546
  let n = getEnumValues(t.entries), r = new Set(n);
1547
1547
  e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => u.has(typeof e)).map((e) => typeof e == "string" ? escapeRegex(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
@@ -1553,7 +1553,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1553
1553
  inst: e
1554
1554
  }), t;
1555
1555
  };
1556
- }), jt = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
1556
+ }), At = /*@__PURE__*/ $constructor("$ZodLiteral", (e, t) => {
1557
1557
  if (v.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
1558
1558
  let n = new Set(t.values);
1559
1559
  e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? escapeRegex(e) : e ? escapeRegex(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
@@ -1565,7 +1565,7 @@ var kt = /*@__PURE__*/ $constructor("$ZodRecord", (e, t) => {
1565
1565
  inst: e
1566
1566
  }), r;
1567
1567
  };
1568
- }), Mt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
1568
+ }), jt = /*@__PURE__*/ $constructor("$ZodTransform", (e, t) => {
1569
1569
  v.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1570
1570
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
1571
1571
  let i = t.transform(n.value, n);
@@ -1580,7 +1580,7 @@ function handleOptionalResult(e, t) {
1580
1580
  value: void 0
1581
1581
  } : e;
1582
1582
  }
1583
- var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1583
+ var Mt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1584
1584
  v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), defineLazy(e._zod, "pattern", () => {
1585
1585
  let e = t.innerType._zod.pattern;
1586
1586
  return e ? RegExp(`^(${cleanRegex(e.source)})?$`) : void 0;
@@ -1591,14 +1591,14 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1591
1591
  }
1592
1592
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1593
1593
  };
1594
- }), Pt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
1595
- Nt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1596
- }), Ft = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
1594
+ }), Nt = /*@__PURE__*/ $constructor("$ZodExactOptional", (e, t) => {
1595
+ Mt.init(e, t), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1596
+ }), Pt = /*@__PURE__*/ $constructor("$ZodNullable", (e, t) => {
1597
1597
  v.init(e, t), defineLazy(e._zod, "optin", () => t.innerType._zod.optin), defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "pattern", () => {
1598
1598
  let e = t.innerType._zod.pattern;
1599
1599
  return e ? RegExp(`^(${cleanRegex(e.source)}|null)$`) : void 0;
1600
1600
  }), defineLazy(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1601
- }), It = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
1601
+ }), Ft = /*@__PURE__*/ $constructor("$ZodDefault", (e, t) => {
1602
1602
  v.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1603
1603
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1604
1604
  if (e.value === void 0) return e.value = t.defaultValue, e;
@@ -1609,9 +1609,9 @@ var Nt = /*@__PURE__*/ $constructor("$ZodOptional", (e, t) => {
1609
1609
  function handleDefaultResult(e, t) {
1610
1610
  return e.value === void 0 && (e.value = t.defaultValue), e;
1611
1611
  }
1612
- var Lt = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
1612
+ var It = /*@__PURE__*/ $constructor("$ZodPrefault", (e, t) => {
1613
1613
  v.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1614
- }), Rt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
1614
+ }), Lt = /*@__PURE__*/ $constructor("$ZodNonOptional", (e, t) => {
1615
1615
  v.init(e, t), defineLazy(e._zod, "values", () => {
1616
1616
  let e = t.innerType._zod.values;
1617
1617
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
@@ -1628,7 +1628,7 @@ function handleNonOptionalResult(e, t) {
1628
1628
  inst: t
1629
1629
  }), e;
1630
1630
  }
1631
- var zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1631
+ var Rt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1632
1632
  v.init(e, t), e._zod.optin = "optional", defineLazy(e._zod, "optout", () => t.innerType._zod.optout), defineLazy(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1633
1633
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1634
1634
  let r = t.innerType._zod.run(e, n);
@@ -1642,7 +1642,7 @@ var zt = /*@__PURE__*/ $constructor("$ZodCatch", (e, t) => {
1642
1642
  input: e.value
1643
1643
  }), e.issues = [], e.fallback = !0), e);
1644
1644
  };
1645
- }), Bt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
1645
+ }), zt = /*@__PURE__*/ $constructor("$ZodPipe", (e, t) => {
1646
1646
  v.init(e, t), defineLazy(e._zod, "values", () => t.in._zod.values), defineLazy(e._zod, "optin", () => t.in._zod.optin), defineLazy(e._zod, "optout", () => t.out._zod.optout), defineLazy(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1647
1647
  if (n.direction === "backward") {
1648
1648
  let r = t.out._zod.run(e, n);
@@ -1659,9 +1659,9 @@ function handlePipeResult(e, t, n) {
1659
1659
  fallback: e.fallback
1660
1660
  }, n);
1661
1661
  }
1662
- var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
- Bt.init(e, t);
1664
- }), Ht = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
1662
+ var Bt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1663
+ zt.init(e, t);
1664
+ }), Vt = /*@__PURE__*/ $constructor("$ZodReadonly", (e, t) => {
1665
1665
  v.init(e, t), defineLazy(e._zod, "propValues", () => t.innerType._zod.propValues), defineLazy(e._zod, "values", () => t.innerType._zod.values), defineLazy(e._zod, "optin", () => t.innerType?._zod?.optin), defineLazy(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1666
1666
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1667
1667
  let r = t.innerType._zod.run(e, n);
@@ -1671,7 +1671,7 @@ var Vt = /*@__PURE__*/ $constructor("$ZodPreprocess", (e, t) => {
1671
1671
  function handleReadonlyResult(e) {
1672
1672
  return e.value = Object.freeze(e.value), e;
1673
1673
  }
1674
- var Ut = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
1674
+ var Ht = /*@__PURE__*/ $constructor("$ZodCustom", (e, t) => {
1675
1675
  h.init(e, t), v.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1676
1676
  let r = n.value, i = t.fn(r);
1677
1677
  if (i instanceof Promise) return i.then((t) => handleRefineResult(t, n, r, e));
@@ -1692,7 +1692,7 @@ function handleRefineResult(e, t, n, r) {
1692
1692
  }
1693
1693
  //#endregion
1694
1694
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1695
- var Wt, $ZodRegistry = class {
1695
+ var Ut, $ZodRegistry = class {
1696
1696
  constructor() {
1697
1697
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1698
1698
  }
@@ -1727,8 +1727,8 @@ var Wt, $ZodRegistry = class {
1727
1727
  function registry() {
1728
1728
  return new $ZodRegistry();
1729
1729
  }
1730
- (Wt = globalThis).__zod_globalRegistry ?? (Wt.__zod_globalRegistry = registry());
1731
- var b = globalThis.__zod_globalRegistry;
1730
+ (Ut = globalThis).__zod_globalRegistry ?? (Ut.__zod_globalRegistry = registry());
1731
+ var x = globalThis.__zod_globalRegistry;
1732
1732
  //#endregion
1733
1733
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1734
1734
  // @__NO_SIDE_EFFECTS__
@@ -2238,7 +2238,7 @@ function initializeContext(e) {
2238
2238
  let t = e?.target ?? "draft-2020-12";
2239
2239
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2240
2240
  processors: e.processors ?? {},
2241
- metadataRegistry: e?.metadata ?? b,
2241
+ metadataRegistry: e?.metadata ?? x,
2242
2242
  target: t,
2243
2243
  unrepresentable: e?.unrepresentable ?? "throw",
2244
2244
  override: e?.override ?? (() => {}),
@@ -2454,7 +2454,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2454
2454
  processors: n
2455
2455
  });
2456
2456
  return process$1(e, o), extractDefs(o, e), finalize(o, e);
2457
- }, Gt = {
2457
+ }, Wt = {
2458
2458
  guid: "uuid",
2459
2459
  url: "uri",
2460
2460
  datetime: "date-time",
@@ -2464,7 +2464,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2464
2464
  let i = n;
2465
2465
  i.type = "string";
2466
2466
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2467
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Gt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2467
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Wt[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2468
2468
  let e = [...c];
2469
2469
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2470
2470
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
@@ -2688,7 +2688,7 @@ var createToJSONSchemaMethod = (e, t = {}) => (n) => {
2688
2688
  process$1(i, t, r);
2689
2689
  let a = t.seen.get(e);
2690
2690
  a.ref = i;
2691
- }, Kt = {
2691
+ }, Gt = {
2692
2692
  string: stringProcessor,
2693
2693
  number: numberProcessor,
2694
2694
  boolean: booleanProcessor,
@@ -2733,7 +2733,7 @@ function toJSONSchema(e, t) {
2733
2733
  if ("_idmap" in e) {
2734
2734
  let n = e, r = initializeContext({
2735
2735
  ...t,
2736
- processors: Kt
2736
+ processors: Gt
2737
2737
  }), i = {};
2738
2738
  for (let e of n._idmap.entries()) {
2739
2739
  let [t, n] = e;
@@ -2753,35 +2753,35 @@ function toJSONSchema(e, t) {
2753
2753
  }
2754
2754
  let n = initializeContext({
2755
2755
  ...t,
2756
- processors: Kt
2756
+ processors: Gt
2757
2757
  });
2758
2758
  return process$1(e, n), extractDefs(n, e), finalize(n, e);
2759
2759
  }
2760
2760
  //#endregion
2761
2761
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
2762
- var qt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
- it.init(e, t), C.init(e, t);
2762
+ var Kt = /*@__PURE__*/ $constructor("ZodISODateTime", (e, t) => {
2763
+ rt.init(e, t), w.init(e, t);
2764
2764
  });
2765
2765
  function datetime(e) {
2766
- return /* @__PURE__ */ _isoDateTime(qt, e);
2766
+ return /* @__PURE__ */ _isoDateTime(Kt, e);
2767
2767
  }
2768
- var Jt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
- at.init(e, t), C.init(e, t);
2768
+ var qt = /*@__PURE__*/ $constructor("ZodISODate", (e, t) => {
2769
+ it.init(e, t), w.init(e, t);
2770
2770
  });
2771
2771
  function date(e) {
2772
- return /* @__PURE__ */ _isoDate(Jt, e);
2772
+ return /* @__PURE__ */ _isoDate(qt, e);
2773
2773
  }
2774
- var Yt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
- ot.init(e, t), C.init(e, t);
2774
+ var Jt = /*@__PURE__*/ $constructor("ZodISOTime", (e, t) => {
2775
+ at.init(e, t), w.init(e, t);
2776
2776
  });
2777
2777
  function time(e) {
2778
- return /* @__PURE__ */ _isoTime(Yt, e);
2778
+ return /* @__PURE__ */ _isoTime(Jt, e);
2779
2779
  }
2780
- var Xt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
- st.init(e, t), C.init(e, t);
2780
+ var Yt = /*@__PURE__*/ $constructor("ZodISODuration", (e, t) => {
2781
+ ot.init(e, t), w.init(e, t);
2782
2782
  });
2783
2783
  function duration(e) {
2784
- return /* @__PURE__ */ _isoDuration(Xt, e);
2784
+ return /* @__PURE__ */ _isoDuration(Yt, e);
2785
2785
  }
2786
2786
  //#endregion
2787
2787
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
@@ -2799,10 +2799,10 @@ var initializer = (e, t) => {
2799
2799
  return e.issues.length === 0;
2800
2800
  } }
2801
2801
  });
2802
- }, x = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Zt = /* @__PURE__ */ _parse(x), Qt = /* @__PURE__ */ _parseAsync(x), $t = /* @__PURE__ */ _safeParse(x), en = /* @__PURE__ */ _safeParseAsync(x), tn = /* @__PURE__ */ _encode(x), nn = /* @__PURE__ */ _decode(x), rn = /* @__PURE__ */ _encodeAsync(x), an = /* @__PURE__ */ _decodeAsync(x), on = /* @__PURE__ */ _safeEncode(x), sn = /* @__PURE__ */ _safeDecode(x), cn = /* @__PURE__ */ _safeEncodeAsync(x), ln = /* @__PURE__ */ _safeDecodeAsync(x), un = /* @__PURE__ */ new WeakMap();
2802
+ }, S = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error }), Xt = /* @__PURE__ */ _parse(S), Zt = /* @__PURE__ */ _parseAsync(S), Qt = /* @__PURE__ */ _safeParse(S), $t = /* @__PURE__ */ _safeParseAsync(S), en = /* @__PURE__ */ _encode(S), tn = /* @__PURE__ */ _decode(S), nn = /* @__PURE__ */ _encodeAsync(S), rn = /* @__PURE__ */ _decodeAsync(S), an = /* @__PURE__ */ _safeEncode(S), on = /* @__PURE__ */ _safeDecode(S), sn = /* @__PURE__ */ _safeEncodeAsync(S), cn = /* @__PURE__ */ _safeDecodeAsync(S), ln = /* @__PURE__ */ new WeakMap();
2803
2803
  function _installLazyMethods(e, t, n) {
2804
- let r = Object.getPrototypeOf(e), i = un.get(r);
2805
- if (i || (i = /* @__PURE__ */ new Set(), un.set(r, i)), !i.has(t)) {
2804
+ let r = Object.getPrototypeOf(e), i = ln.get(r);
2805
+ if (i || (i = /* @__PURE__ */ new Set(), ln.set(r, i)), !i.has(t)) {
2806
2806
  i.add(t);
2807
2807
  for (let e in n) {
2808
2808
  let t = n[e];
@@ -2830,10 +2830,10 @@ function _installLazyMethods(e, t, n) {
2830
2830
  }
2831
2831
  }
2832
2832
  }
2833
- var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2833
+ var C = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2834
2834
  input: createStandardJSONSchemaMethod(e, "input"),
2835
2835
  output: createStandardJSONSchemaMethod(e, "output")
2836
- } }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Zt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => $t(e, t, n), e.parseAsync = async (t, n) => Qt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => en(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => tn(e, t, n), e.decode = (t, n) => nn(e, t, n), e.encodeAsync = async (t, n) => rn(e, t, n), e.decodeAsync = async (t, n) => an(e, t, n), e.safeEncode = (t, n) => on(e, t, n), e.safeDecode = (t, n) => sn(e, t, n), e.safeEncodeAsync = async (t, n) => cn(e, t, n), e.safeDecodeAsync = async (t, n) => ln(e, t, n), _installLazyMethods(e, "ZodType", {
2836
+ } }), e.toJSONSchema = createToJSONSchemaMethod(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Xt(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Qt(e, t, n), e.parseAsync = async (t, n) => Zt(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => $t(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => en(e, t, n), e.decode = (t, n) => tn(e, t, n), e.encodeAsync = async (t, n) => nn(e, t, n), e.decodeAsync = async (t, n) => rn(e, t, n), e.safeEncode = (t, n) => an(e, t, n), e.safeDecode = (t, n) => on(e, t, n), e.safeEncodeAsync = async (t, n) => sn(e, t, n), e.safeDecodeAsync = async (t, n) => cn(e, t, n), _installLazyMethods(e, "ZodType", {
2837
2837
  check(...e) {
2838
2838
  let t = this.def;
2839
2839
  return this.clone(mergeDefs(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -2907,12 +2907,12 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2907
2907
  },
2908
2908
  describe(e) {
2909
2909
  let t = this.clone();
2910
- return b.add(t, { description: e }), t;
2910
+ return x.add(t, { description: e }), t;
2911
2911
  },
2912
2912
  meta(...e) {
2913
- if (e.length === 0) return b.get(this);
2913
+ if (e.length === 0) return x.get(this);
2914
2914
  let t = this.clone();
2915
- return b.add(t, e[0]), t;
2915
+ return x.add(t, e[0]), t;
2916
2916
  },
2917
2917
  isOptional() {
2918
2918
  return this.safeParse(void 0).success;
@@ -2925,11 +2925,11 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2925
2925
  }
2926
2926
  }), Object.defineProperty(e, "description", {
2927
2927
  get() {
2928
- return b.get(e)?.description;
2928
+ return x.get(e)?.description;
2929
2929
  },
2930
2930
  configurable: !0
2931
- }), e)), dn = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
2932
- Ke.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
2931
+ }), e)), un = /*@__PURE__*/ $constructor("_ZodString", (e, t) => {
2932
+ y.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => stringProcessor(e, t, n, r);
2933
2933
  let n = e._zod.bag;
2934
2934
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, _installLazyMethods(e, "_ZodString", {
2935
2935
  regex(...e) {
@@ -2978,62 +2978,62 @@ var S = /*@__PURE__*/ $constructor("ZodType", (e, t) => (v.init(e, t), Object.as
2978
2978
  return this.check(/* @__PURE__ */ _slugify());
2979
2979
  }
2980
2980
  });
2981
- }), fn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
2982
- Ke.init(e, t), dn.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(pn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(hn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(An, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(w, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(w, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(w, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(w, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(_n, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(mn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(vn, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(yn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(bn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(Dn, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(On, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(xn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(Sn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Cn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(wn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(Tn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(En, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(kn, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
2981
+ }), dn = /*@__PURE__*/ $constructor("ZodString", (e, t) => {
2982
+ y.init(e, t), un.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ _email(fn, t)), e.url = (t) => e.check(/* @__PURE__ */ _url(mn, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _jwt(kn, t)), e.emoji = (t) => e.check(/* @__PURE__ */ _emoji(hn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.uuid = (t) => e.check(/* @__PURE__ */ _uuid(T, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ _uuidv4(T, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ _uuidv6(T, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ _uuidv7(T, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ _nanoid(gn, t)), e.guid = (t) => e.check(/* @__PURE__ */ _guid(pn, t)), e.cuid = (t) => e.check(/* @__PURE__ */ _cuid(_n, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ _cuid2(vn, t)), e.ulid = (t) => e.check(/* @__PURE__ */ _ulid(yn, t)), e.base64 = (t) => e.check(/* @__PURE__ */ _base64(En, t)), e.base64url = (t) => e.check(/* @__PURE__ */ _base64url(Dn, t)), e.xid = (t) => e.check(/* @__PURE__ */ _xid(bn, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ _ksuid(xn, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _ipv4(Sn, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ _ipv6(Cn, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _cidrv4(wn, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ _cidrv6(Tn, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _e164(On, t)), e.datetime = (t) => e.check(datetime(t)), e.date = (t) => e.check(date(t)), e.time = (t) => e.check(time(t)), e.duration = (t) => e.check(duration(t));
2983
2983
  });
2984
2984
  function string(e) {
2985
- return /* @__PURE__ */ _string(fn, e);
2985
+ return /* @__PURE__ */ _string(dn, e);
2986
2986
  }
2987
- var C = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
2988
- y.init(e, t), dn.init(e, t);
2989
- }), pn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
2990
- Ye.init(e, t), C.init(e, t);
2987
+ var w = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
2988
+ b.init(e, t), un.init(e, t);
2989
+ }), fn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
2990
+ Je.init(e, t), w.init(e, t);
2991
2991
  });
2992
2992
  function email(e) {
2993
- return /* @__PURE__ */ _email(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);
2993
+ return /* @__PURE__ */ _email(fn, e);
2994
+ }
2995
+ var pn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
2996
+ Ke.init(e, t), w.init(e, t);
2997
+ }), T = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
2998
+ qe.init(e, t), w.init(e, t);
2999
+ }), mn = /*@__PURE__*/ $constructor("ZodURL", (e, t) => {
3000
+ Ye.init(e, t), w.init(e, t);
3001
3001
  });
3002
3002
  function url(e) {
3003
- return /* @__PURE__ */ _url(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", {
3003
+ return /* @__PURE__ */ _url(mn, e);
3004
+ }
3005
+ var hn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3006
+ Xe.init(e, t), w.init(e, t);
3007
+ }), gn = /*@__PURE__*/ $constructor("ZodNanoID", (e, t) => {
3008
+ Ze.init(e, t), w.init(e, t);
3009
+ }), _n = /*@__PURE__*/ $constructor("ZodCUID", (e, t) => {
3010
+ Qe.init(e, t), w.init(e, t);
3011
+ }), vn = /*@__PURE__*/ $constructor("ZodCUID2", (e, t) => {
3012
+ $e.init(e, t), w.init(e, t);
3013
+ }), yn = /*@__PURE__*/ $constructor("ZodULID", (e, t) => {
3014
+ et.init(e, t), w.init(e, t);
3015
+ }), bn = /*@__PURE__*/ $constructor("ZodXID", (e, t) => {
3016
+ tt.init(e, t), w.init(e, t);
3017
+ }), xn = /*@__PURE__*/ $constructor("ZodKSUID", (e, t) => {
3018
+ nt.init(e, t), w.init(e, t);
3019
+ }), Sn = /*@__PURE__*/ $constructor("ZodIPv4", (e, t) => {
3020
+ st.init(e, t), w.init(e, t);
3021
+ }), Cn = /*@__PURE__*/ $constructor("ZodIPv6", (e, t) => {
3022
+ ct.init(e, t), w.init(e, t);
3023
+ }), wn = /*@__PURE__*/ $constructor("ZodCIDRv4", (e, t) => {
3024
+ lt.init(e, t), w.init(e, t);
3025
+ }), Tn = /*@__PURE__*/ $constructor("ZodCIDRv6", (e, t) => {
3026
+ ut.init(e, t), w.init(e, t);
3027
+ }), En = /*@__PURE__*/ $constructor("ZodBase64", (e, t) => {
3028
+ dt.init(e, t), w.init(e, t);
3029
+ }), Dn = /*@__PURE__*/ $constructor("ZodBase64URL", (e, t) => {
3030
+ ft.init(e, t), w.init(e, t);
3031
+ }), On = /*@__PURE__*/ $constructor("ZodE164", (e, t) => {
3032
+ pt.init(e, t), w.init(e, t);
3033
+ }), kn = /*@__PURE__*/ $constructor("ZodJWT", (e, t) => {
3034
+ mt.init(e, t), w.init(e, t);
3035
+ }), An = /*@__PURE__*/ $constructor("ZodNumber", (e, t) => {
3036
+ ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => numberProcessor(e, t, n, r), _installLazyMethods(e, "ZodNumber", {
3037
3037
  gt(e, t) {
3038
3038
  return this.check(/* @__PURE__ */ _gt(e, t));
3039
3039
  },
@@ -3084,46 +3084,46 @@ var gn = /*@__PURE__*/ $constructor("ZodEmoji", (e, t) => {
3084
3084
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3085
3085
  });
3086
3086
  function number(e) {
3087
- return /* @__PURE__ */ _number(jn, e);
3087
+ return /* @__PURE__ */ _number(An, e);
3088
3088
  }
3089
- var Mn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3090
- _t.init(e, t), jn.init(e, t);
3089
+ var jn = /*@__PURE__*/ $constructor("ZodNumberFormat", (e, t) => {
3090
+ gt.init(e, t), An.init(e, t);
3091
3091
  });
3092
3092
  function int(e) {
3093
- return /* @__PURE__ */ _int(Mn, e);
3093
+ return /* @__PURE__ */ _int(jn, e);
3094
3094
  }
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);
3095
+ var Mn = /*@__PURE__*/ $constructor("ZodBoolean", (e, t) => {
3096
+ _t.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => booleanProcessor(e, t, n, r);
3097
3097
  });
3098
3098
  function boolean(e) {
3099
- return /* @__PURE__ */ _boolean(Nn, e);
3099
+ return /* @__PURE__ */ _boolean(Mn, e);
3100
3100
  }
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);
3101
+ var Nn = /*@__PURE__*/ $constructor("ZodNull", (e, t) => {
3102
+ vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullProcessor(e, t, n, r);
3103
3103
  });
3104
3104
  function _null(e) {
3105
- return /* @__PURE__ */ _null$1(Pn, e);
3105
+ return /* @__PURE__ */ _null$1(Nn, e);
3106
3106
  }
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;
3107
+ var Pn = /*@__PURE__*/ $constructor("ZodAny", (e, t) => {
3108
+ yt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3109
3109
  });
3110
3110
  function any() {
3111
- return /* @__PURE__ */ _any(Fn);
3111
+ return /* @__PURE__ */ _any(Pn);
3112
3112
  }
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;
3113
+ var Fn = /*@__PURE__*/ $constructor("ZodUnknown", (e, t) => {
3114
+ bt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3115
3115
  });
3116
3116
  function unknown() {
3117
- return /* @__PURE__ */ _unknown(In);
3117
+ return /* @__PURE__ */ _unknown(Fn);
3118
3118
  }
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);
3119
+ var In = /*@__PURE__*/ $constructor("ZodNever", (e, t) => {
3120
+ xt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => neverProcessor(e, t, n, r);
3121
3121
  });
3122
3122
  function never(e) {
3123
- return /* @__PURE__ */ _never(Ln, e);
3123
+ return /* @__PURE__ */ _never(In, e);
3124
3124
  }
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", {
3125
+ var Ln = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3126
+ St.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => arrayProcessor(e, t, n, r), e.element = t.element, _installLazyMethods(e, "ZodArray", {
3127
3127
  min(e, t) {
3128
3128
  return this.check(/* @__PURE__ */ _minLength(e, t));
3129
3129
  },
@@ -3142,10 +3142,10 @@ var Rn = /*@__PURE__*/ $constructor("ZodArray", (e, t) => {
3142
3142
  });
3143
3143
  });
3144
3144
  function array(e, t) {
3145
- return /* @__PURE__ */ _array(Rn, e, t);
3145
+ return /* @__PURE__ */ _array(Ln, e, t);
3146
3146
  }
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", {
3147
+ var Rn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3148
+ wt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => objectProcessor(e, t, n, r), defineLazy(e, "shape", () => t.shape), _installLazyMethods(e, "ZodObject", {
3149
3149
  keyof() {
3150
3150
  return _enum(Object.keys(this._zod.def.shape));
3151
3151
  },
@@ -3195,75 +3195,75 @@ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3195
3195
  return omit(this, e);
3196
3196
  },
3197
3197
  partial(...e) {
3198
- return partial(qn, this, e[0]);
3198
+ return partial(Kn, this, e[0]);
3199
3199
  },
3200
3200
  required(...e) {
3201
- return required(Qn, this, e[0]);
3201
+ return required(Zn, this, e[0]);
3202
3202
  }
3203
3203
  });
3204
3204
  });
3205
3205
  function object(e, t) {
3206
- return new zn({
3206
+ return new Rn({
3207
3207
  type: "object",
3208
3208
  shape: e ?? {},
3209
3209
  ...normalizeParams(t)
3210
3210
  });
3211
3211
  }
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;
3212
+ var zn = /*@__PURE__*/ $constructor("ZodUnion", (e, t) => {
3213
+ Tt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => unionProcessor(e, t, n, r), e.options = t.options;
3214
3214
  });
3215
3215
  function union(e, t) {
3216
- return new Bn({
3216
+ return new zn({
3217
3217
  type: "union",
3218
3218
  options: e,
3219
3219
  ...normalizeParams(t)
3220
3220
  });
3221
3221
  }
3222
- var Vn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3223
- Bn.init(e, t), Dt.init(e, t);
3222
+ var Bn = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (e, t) => {
3223
+ zn.init(e, t), Et.init(e, t);
3224
3224
  });
3225
3225
  function discriminatedUnion(e, t, n) {
3226
- return new Vn({
3226
+ return new Bn({
3227
3227
  type: "union",
3228
3228
  options: t,
3229
3229
  discriminator: e,
3230
3230
  ...normalizeParams(n)
3231
3231
  });
3232
3232
  }
3233
- var 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);
3233
+ var Vn = /*@__PURE__*/ $constructor("ZodIntersection", (e, t) => {
3234
+ Dt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => intersectionProcessor(e, t, n, r);
3235
3235
  });
3236
3236
  function intersection(e, t) {
3237
- return new Hn({
3237
+ return new Vn({
3238
3238
  type: "intersection",
3239
3239
  left: e,
3240
3240
  right: t
3241
3241
  });
3242
3242
  }
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;
3243
+ var Hn = /*@__PURE__*/ $constructor("ZodRecord", (e, t) => {
3244
+ Ot.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => recordProcessor(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
3245
3245
  });
3246
3246
  function record(e, t, n) {
3247
- return !t || !t._zod ? new Un({
3247
+ return !t || !t._zod ? new Hn({
3248
3248
  type: "record",
3249
3249
  keyType: string(),
3250
3250
  valueType: e,
3251
3251
  ...normalizeParams(t)
3252
- }) : new Un({
3252
+ }) : new Hn({
3253
3253
  type: "record",
3254
3254
  keyType: e,
3255
3255
  valueType: t,
3256
3256
  ...normalizeParams(n)
3257
3257
  });
3258
3258
  }
3259
- var 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);
3259
+ var Un = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3260
+ kt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3261
3261
  let n = new Set(Object.keys(t.entries));
3262
3262
  e.extract = (e, r) => {
3263
3263
  let i = {};
3264
3264
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3265
3265
  else throw Error(`Key ${r} not found in enum`);
3266
- return new Wn({
3266
+ return new Un({
3267
3267
  ...t,
3268
3268
  checks: [],
3269
3269
  ...normalizeParams(r),
@@ -3273,7 +3273,7 @@ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3273
3273
  let i = { ...t.entries };
3274
3274
  for (let t of e) if (n.has(t)) delete i[t];
3275
3275
  else throw Error(`Key ${t} not found in enum`);
3276
- return new Wn({
3276
+ return new Un({
3277
3277
  ...t,
3278
3278
  checks: [],
3279
3279
  ...normalizeParams(r),
@@ -3282,27 +3282,27 @@ var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3282
3282
  };
3283
3283
  });
3284
3284
  function _enum(e, t) {
3285
- return new Wn({
3285
+ return new Un({
3286
3286
  type: "enum",
3287
3287
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3288
3288
  ...normalizeParams(t)
3289
3289
  });
3290
3290
  }
3291
- var 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() {
3291
+ var Wn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3292
+ At.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3293
3293
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
3294
3294
  return t.values[0];
3295
3295
  } });
3296
3296
  });
3297
3297
  function literal(e, t) {
3298
- return new Gn({
3298
+ return new Wn({
3299
3299
  type: "literal",
3300
3300
  values: Array.isArray(e) ? e : [e],
3301
3301
  ...normalizeParams(t)
3302
3302
  });
3303
3303
  }
3304
- var 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) => {
3304
+ var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3305
+ jt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3306
3306
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
3307
3307
  n.addIssue = (r) => {
3308
3308
  if (typeof r == "string") n.issues.push(issue(r, n.value, t));
@@ -3316,43 +3316,43 @@ var Kn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3316
3316
  };
3317
3317
  });
3318
3318
  function transform(e) {
3319
- return new Kn({
3319
+ return new Gn({
3320
3320
  type: "transform",
3321
3321
  transform: e
3322
3322
  });
3323
3323
  }
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;
3324
+ var Kn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3325
+ Mt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3326
3326
  });
3327
3327
  function optional(e) {
3328
- return new qn({
3328
+ return new Kn({
3329
3329
  type: "optional",
3330
3330
  innerType: e
3331
3331
  });
3332
3332
  }
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;
3333
+ var qn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3334
+ Nt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3335
3335
  });
3336
3336
  function exactOptional(e) {
3337
- return new Jn({
3337
+ return new qn({
3338
3338
  type: "optional",
3339
3339
  innerType: e
3340
3340
  });
3341
3341
  }
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;
3342
+ var Jn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3343
+ Pt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3344
3344
  });
3345
3345
  function nullable(e) {
3346
- return new Yn({
3346
+ return new Jn({
3347
3347
  type: "nullable",
3348
3348
  innerType: e
3349
3349
  });
3350
3350
  }
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;
3351
+ var Yn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3352
+ Ft.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3353
3353
  });
3354
3354
  function _default(e, t) {
3355
- return new Xn({
3355
+ return new Yn({
3356
3356
  type: "default",
3357
3357
  innerType: e,
3358
3358
  get defaultValue() {
@@ -3360,11 +3360,11 @@ function _default(e, t) {
3360
3360
  }
3361
3361
  });
3362
3362
  }
3363
- var 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;
3363
+ var Xn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3364
+ It.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3365
3365
  });
3366
3366
  function prefault(e, t) {
3367
- return new Zn({
3367
+ return new Xn({
3368
3368
  type: "prefault",
3369
3369
  innerType: e,
3370
3370
  get defaultValue() {
@@ -3372,58 +3372,58 @@ function prefault(e, t) {
3372
3372
  }
3373
3373
  });
3374
3374
  }
3375
- var 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;
3375
+ var Zn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3376
+ Lt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3377
3377
  });
3378
3378
  function nonoptional(e, t) {
3379
- return new Qn({
3379
+ return new Zn({
3380
3380
  type: "nonoptional",
3381
3381
  innerType: e,
3382
3382
  ...normalizeParams(t)
3383
3383
  });
3384
3384
  }
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;
3385
+ var Qn = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3386
+ Rt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3387
3387
  });
3388
3388
  function _catch(e, t) {
3389
- return new $n({
3389
+ return new Qn({
3390
3390
  type: "catch",
3391
3391
  innerType: e,
3392
3392
  catchValue: typeof t == "function" ? t : () => t
3393
3393
  });
3394
3394
  }
3395
- var 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;
3395
+ var $n = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3396
+ zt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
3397
3397
  });
3398
3398
  function pipe(e, t) {
3399
- return new er({
3399
+ return new $n({
3400
3400
  type: "pipe",
3401
3401
  in: e,
3402
3402
  out: t
3403
3403
  });
3404
3404
  }
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;
3405
+ var er = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3406
+ $n.init(e, t), Bt.init(e, t);
3407
+ }), tr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3408
+ Vt.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3409
3409
  });
3410
3410
  function readonly(e) {
3411
- return new nr({
3411
+ return new tr({
3412
3412
  type: "readonly",
3413
3413
  innerType: e
3414
3414
  });
3415
3415
  }
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);
3416
+ var nr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3417
+ Ht.init(e, t), C.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3418
3418
  });
3419
3419
  function refine(e, t = {}) {
3420
- return /* @__PURE__ */ _refine(rr, e, t);
3420
+ return /* @__PURE__ */ _refine(nr, e, t);
3421
3421
  }
3422
3422
  function superRefine(e, t) {
3423
3423
  return /* @__PURE__ */ _superRefine(e, t);
3424
3424
  }
3425
3425
  function preprocess(e, t) {
3426
- return new tr({
3426
+ return new er({
3427
3427
  type: "pipe",
3428
3428
  in: transform(e),
3429
3429
  out: t
@@ -3431,15 +3431,15 @@ function preprocess(e, t) {
3431
3431
  }
3432
3432
  //#endregion
3433
3433
  //#region ../core/dist/heartbeat.js
3434
- var ir = _enum([
3434
+ var rr = _enum([
3435
3435
  "briefing",
3436
3436
  "checkin",
3437
3437
  "closeout"
3438
- ]), T = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ar = {
3438
+ ]), E = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ir = {
3439
3439
  briefing: "07:30",
3440
3440
  checkin: "12:30",
3441
3441
  closeout: "17:30"
3442
- }, 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 = {
3442
+ }, D = globalThis.process, O = typeof window < "u", k = D !== void 0 && !O, A = O ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : k && D !== void 0 && D.env?.NODE_ENV === "production", ar = !A, j = {
3443
3443
  error: {
3444
3444
  priority: 50,
3445
3445
  color: "#FF0000",
@@ -3465,7 +3465,7 @@ var ir = _enum([
3465
3465
  color: "#5233FF",
3466
3466
  nodeColor: "\x1B[35m"
3467
3467
  }
3468
- }, sr = [
3468
+ }, or = [
3469
3469
  "password",
3470
3470
  "token",
3471
3471
  "secret",
@@ -3475,11 +3475,11 @@ var ir = _enum([
3475
3475
  ];
3476
3476
  function isSensitiveKey(e) {
3477
3477
  let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
3478
- if (sr.includes(t)) return !0;
3478
+ if (or.includes(t)) return !0;
3479
3479
  let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
3480
- return sr.some((e) => n.includes(e));
3480
+ return or.some((e) => n.includes(e));
3481
3481
  }
3482
- var cr = /* @__PURE__ */ new Set([
3482
+ var sr = /* @__PURE__ */ new Set([
3483
3483
  "CONNECT_TIMEOUT",
3484
3484
  "ECONNREFUSED",
3485
3485
  "ECONNRESET",
@@ -3491,34 +3491,34 @@ var cr = /* @__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" && cr.has(n) ? n : infraErrorCode(e.cause, t + 1);
3494
+ return typeof n == "string" && sr.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 j = class Logger {
3499
+ var M = 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
- }, D && this.initBrowserLogging();
3505
+ }, O && this.initBrowserLogging();
3506
3506
  }
3507
3507
  getDefaultLevel() {
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") {
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") {
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 (!D) return;
3516
+ if (!O) return;
3517
3517
  let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
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);
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);
3519
3519
  }
3520
3520
  shouldLog(e) {
3521
- return !this.settings.enabled || D && !this.enabledInBrowser ? !1 : A[e].priority >= A[this.settings.minLevel].priority;
3521
+ return !this.settings.enabled || O && !this.enabledInBrowser ? !1 : j[e].priority >= j[this.settings.minLevel].priority;
3522
3522
  }
3523
3523
  formatTimestamp() {
3524
3524
  return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
@@ -3554,16 +3554,16 @@ var j = class Logger {
3554
3554
  let i = {
3555
3555
  name: e.name,
3556
3556
  message: e.message,
3557
- stack: k ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
3557
+ stack: A ? 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 && 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));
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));
3565
3565
  try {
3566
- let r = {}, i = Object.entries(e), a = k ? 50 : 200;
3566
+ let r = {}, i = Object.entries(e), a = A ? 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 j = class Logger {
3571
3571
  }
3572
3572
  }
3573
3573
  logToBrowser(e) {
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;`;
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;`;
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 (!O || !this.shouldLog(e.level)) return;
3579
+ if (!k || !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 (k) {
3581
+ if (A) {
3582
3582
  let e = {
3583
3583
  timestamp: this.formatISOTimestamp(),
3584
3584
  level: t.toUpperCase(),
@@ -3590,12 +3590,12 @@ var j = 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 = A[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
3593
+ let e = j[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
- D ? this.logToBrowser(e) : O && this.logToNode(e);
3598
+ O ? this.logToBrowser(e) : k && this.logToNode(e);
3599
3599
  }
3600
3600
  error(e, t) {
3601
3601
  this.log({
@@ -3638,7 +3638,7 @@ var j = class Logger {
3638
3638
  });
3639
3639
  }
3640
3640
  isEnabled() {
3641
- return !D || this.enabledInBrowser;
3641
+ return !O || this.enabledInBrowser;
3642
3642
  }
3643
3643
  setLevel(e) {
3644
3644
  this.settings.minLevel = e;
@@ -3656,11 +3656,11 @@ var j = class Logger {
3656
3656
  };
3657
3657
  }
3658
3658
  };
3659
- j.hasShownHelp = !1;
3659
+ M.hasShownHelp = !1;
3660
3660
  function createLogger(e) {
3661
- return new j({}, e);
3661
+ return new M({}, e);
3662
3662
  }
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 {
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 {
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 mr = {
3691
+ var pr = {
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 mr = {
3821
3821
  }
3822
3822
  };
3823
3823
  function getColorSchemeOklch(e) {
3824
- return mr[e] || mr.blue;
3824
+ return pr[e] || pr.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
- }, hr = new CookieUtil(), N = {
3897
+ }, mr = new CookieUtil(), P = {
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 ? N[e] ?? N.AUTH_UNKNOWN : N.AUTH_UNKNOWN;
3913
+ return e ? P[e] ?? P.AUTH_UNKNOWN : P.AUTH_UNKNOWN;
3914
3914
  }
3915
3915
  function authErrorMessage(e) {
3916
- return e.code ? mapAuthErrorCode(e.code) : e.error || N.AUTH_UNKNOWN;
3916
+ return e.code ? mapAuthErrorCode(e.code) : e.error || P.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
- }, gr = object({
3922
+ }, hr = 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
- }), _r = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(gr)), vr = [
3939
+ }), gr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(hr)), _r = [
3940
3940
  "image",
3941
3941
  "audio",
3942
3942
  "video",
3943
3943
  "document"
3944
- ], P = _enum(vr), yr = [
3944
+ ], F = _enum(_r), vr = [
3945
3945
  "avatar",
3946
3946
  "cover",
3947
3947
  "general"
3948
- ], br = _enum(yr), xr = _enum([
3948
+ ], I = _enum(vr), yr = _enum([
3949
3949
  "processing",
3950
3950
  "active",
3951
3951
  "failed",
3952
3952
  "deleted"
3953
- ]), Sr = _enum([
3953
+ ]), br = _enum([
3954
3954
  "low",
3955
3955
  "standard",
3956
3956
  "high"
3957
- ]), Cr = _enum([
3957
+ ]), xr = _enum([
3958
3958
  "jpg",
3959
3959
  "jpeg",
3960
3960
  "png",
3961
3961
  "gif",
3962
3962
  "webp",
3963
3963
  "svg"
3964
- ]), wr = _enum([
3964
+ ]), Sr = _enum([
3965
3965
  "mp4",
3966
3966
  "webm",
3967
3967
  "ogg",
3968
3968
  "mov",
3969
3969
  "avi"
3970
- ]), Tr = _enum([
3970
+ ]), Cr = _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
- ]), F = object({
3980
+ ]), L = 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: br.default("general"),
3991
- status: xr.default("processing"),
3992
- quality: Sr.default("standard"),
3990
+ context: I.default("general"),
3991
+ status: yr.default("processing"),
3992
+ quality: br.default("standard"),
3993
3993
  createdAt: string().optional(),
3994
3994
  updatedAt: string().optional()
3995
3995
  }).extend({
3996
- type: P.optional(),
3997
- mediaType: P.optional(),
3996
+ type: F.optional(),
3997
+ mediaType: F.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(), Er = object({
4003
+ }).partial(), wr = 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
- }), Dr = object({
4010
+ }), Tr = 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
- }), Or = F.extend({
4016
+ }), Er = L.extend({
4017
4017
  mediaType: literal("image"),
4018
- imageFormat: Cr.optional()
4019
- }), kr = F.extend({
4018
+ imageFormat: xr.optional()
4019
+ }), Dr = L.extend({
4020
4020
  mediaType: literal("video"),
4021
- videoFormat: wr.optional(),
4022
- video: Er.optional()
4023
- }), Ar = F.extend({
4021
+ videoFormat: Sr.optional(),
4022
+ video: wr.optional()
4023
+ }), Or = L.extend({
4024
4024
  mediaType: literal("audio"),
4025
- audioFormat: Tr.optional(),
4026
- audio: Dr.optional()
4027
- }), jr = F.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
4025
+ audioFormat: Cr.optional(),
4026
+ audio: Tr.optional()
4027
+ }), kr = L.extend({ mediaType: literal("document") }), Ar = discriminatedUnion("mediaType", [
4028
+ Er,
4029
+ Dr,
4028
4030
  Or,
4029
- kr,
4030
- Ar,
4031
- jr
4032
- ]), Nr = _enum([
4031
+ kr
4032
+ ]), jr = _enum([
4033
4033
  "xxs",
4034
4034
  "xs",
4035
4035
  "sm",
4036
4036
  "md",
4037
4037
  "lg",
4038
4038
  "xl"
4039
- ]), Pr = _enum([
4039
+ ]), Mr = _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
- ]), Fr = _enum([
4047
+ ]), Nr = _enum([
4048
4048
  "ghost",
4049
4049
  "link",
4050
4050
  "outline",
4051
4051
  "solid"
4052
- ]), I = object({
4052
+ ]), R = object({
4053
4053
  key: string().optional(),
4054
4054
  label: string().optional(),
4055
4055
  href: string().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(),
4056
+ size: jr.optional(),
4057
+ theme: Mr.optional(),
4058
+ design: Nr.optional(),
4059
+ icon: union([string(), L]).optional(),
4060
+ iconAfter: union([string(), L]).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
- }), Ir = object({
4078
- buttons: array(I).optional(),
4079
- size: Nr.optional(),
4080
- theme: Pr.optional(),
4081
- design: Fr.optional()
4082
- }), Lr = object({
4077
+ }), Pr = object({
4078
+ buttons: array(R).optional(),
4079
+ size: jr.optional(),
4080
+ theme: Mr.optional(),
4081
+ design: Nr.optional()
4082
+ }), Fr = 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: F.optional(),
4094
- subMedia: F.optional(),
4095
- cover: F.optional(),
4096
- icon: F.optional(),
4097
- iconAfter: F.optional(),
4093
+ media: L.optional(),
4094
+ subMedia: L.optional(),
4095
+ cover: L.optional(),
4096
+ icon: L.optional(),
4097
+ iconAfter: L.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(I).optional(),
4110
- meta: array(I).optional(),
4109
+ badges: array(R).optional(),
4110
+ meta: array(R).optional(),
4111
4111
  menuItems: array(any()).optional()
4112
- }), Rr = object({
4112
+ }), Ir = object({
4113
4113
  title: string().optional(),
4114
4114
  description: string().optional(),
4115
- items: array(Lr).optional()
4116
- }), zr = {
4115
+ items: array(Fr).optional()
4116
+ }), Lr = {
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
- }, Br = [
4135
+ }, Rr = [
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 Br[(e ? hashName(e) : 0) % Br.length];
4151
+ return Rr[(e ? hashName(e) : 0) % Rr.length];
4152
4152
  }
4153
4153
  function getDefaultAvatarUrl(e) {
4154
4154
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4178,7 +4178,7 @@ function getWorkspaceMarkUrl(e) {
4178
4178
  }
4179
4179
  //#endregion
4180
4180
  //#region ../core/dist/chatIssue.js
4181
- var Vr = _enum(["account", "error"]), Hr = [
4181
+ var zr = _enum(["account", "error"]), Br = [
4182
4182
  "billing_no_plan",
4183
4183
  "billing_seat_limit",
4184
4184
  "billing_past_due",
@@ -4194,14 +4194,14 @@ var Vr = _enum(["account", "error"]), Hr = [
4194
4194
  "empty_stream",
4195
4195
  "tool_protocol",
4196
4196
  "rate_limit"
4197
- ], L = object({
4198
- bucket: Vr,
4199
- code: _enum(Hr),
4197
+ ], z = object({
4198
+ bucket: zr,
4199
+ code: _enum(Br),
4200
4200
  title: string(),
4201
4201
  help: string().optional(),
4202
4202
  actionLabel: string(),
4203
4203
  actionUrl: string()
4204
- }), R = {
4204
+ }), B = {
4205
4205
  billing_no_plan: {
4206
4206
  bucket: "account",
4207
4207
  title: "Payment method needed",
@@ -4309,10 +4309,10 @@ var Vr = _enum(["account", "error"]), Hr = [
4309
4309
  }
4310
4310
  };
4311
4311
  function chatIssueCatalogLines() {
4312
- return Hr.map((e) => `- ${e}: ${R[e].oneLine}`).join("\n");
4312
+ return Br.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
4313
4313
  }
4314
4314
  function buildChatIssue(e) {
4315
- let t = R[e.code];
4315
+ let t = B[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 = R[e.code];
4336
+ let t = B[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 z = _enum(["active", "stopped"]), B = _enum([
4341
+ var V = _enum(["active", "stopped"]), H = _enum([
4342
4342
  "unknown",
4343
4343
  "stopped",
4344
4344
  "starting",
@@ -4347,28 +4347,28 @@ var z = _enum(["active", "stopped"]), B = _enum([
4347
4347
  "unreachable",
4348
4348
  "stopping",
4349
4349
  "error"
4350
- ]), Ur = _enum([
4350
+ ]), Vr = _enum([
4351
4351
  "wake",
4352
4352
  "sleep",
4353
4353
  "restart",
4354
4354
  "rebuild",
4355
4355
  "config_apply"
4356
- ]), Wr = _enum([
4356
+ ]), Hr = _enum([
4357
4357
  "running",
4358
4358
  "coalesced",
4359
4359
  "failed"
4360
- ]), Gr = object({
4361
- kind: Ur,
4362
- status: Wr,
4360
+ ]), Ur = object({
4361
+ kind: Vr,
4362
+ status: Hr,
4363
4363
  startedAt: string().datetime(),
4364
4364
  detail: string().optional()
4365
- }).strict(), Kr = object({
4366
- lifecycle: B,
4365
+ }).strict(), Wr = object({
4366
+ lifecycle: H,
4367
4367
  changedAt: string().datetime().optional(),
4368
4368
  detail: string().optional(),
4369
- blocker: L.optional(),
4370
- operation: Gr.optional()
4371
- }).strict(), qr = Object.freeze({ lifecycle: "unknown" }), Jr = {
4369
+ blocker: z.optional(),
4370
+ operation: Ur.optional()
4371
+ }).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
4372
4372
  running: "green",
4373
4373
  starting: "amber",
4374
4374
  stopping: "amber",
@@ -4377,7 +4377,7 @@ var z = _enum(["active", "stopped"]), B = _enum([
4377
4377
  error: "red",
4378
4378
  stopped: "grey",
4379
4379
  unknown: "grey"
4380
- }, Yr = {
4380
+ }, qr = {
4381
4381
  running: "Online",
4382
4382
  starting: "Waking up",
4383
4383
  stopping: "Stopping",
@@ -4386,7 +4386,7 @@ var z = _enum(["active", "stopped"]), B = _enum([
4386
4386
  error: "Error",
4387
4387
  stopped: "Asleep",
4388
4388
  unknown: "Checking"
4389
- }, Xr = {
4389
+ }, Jr = {
4390
4390
  wake: "Waking up",
4391
4391
  sleep: "Stopping",
4392
4392
  restart: "Restarting",
@@ -4394,7 +4394,7 @@ var z = _enum(["active", "stopped"]), B = _enum([
4394
4394
  config_apply: "Applying config"
4395
4395
  };
4396
4396
  function toAgentState(e, t) {
4397
- let n = e.operation, r = Yr[e.lifecycle] ?? "Unknown", i = Jr[e.lifecycle] ?? "grey", a = n ? Xr[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 = 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}`;
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 Zr = _enum([
4405
+ var Yr = _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 V = _enum(["woman", "man"]), H = [
4429
+ var U = _enum(["woman", "man"]), W = [
4430
4430
  {
4431
4431
  key: "lauren",
4432
4432
  gender: "woman",
@@ -4507,18 +4507,18 @@ var V = _enum(["woman", "man"]), H = [
4507
4507
  accent: "American",
4508
4508
  character: "Easygoing and plain-spoken"
4509
4509
  }
4510
- ], U = _enum(H.map((e) => e.key)), Qr = { gender: "man" };
4510
+ ], G = _enum(W.map((e) => e.key)), Xr = { gender: "man" };
4511
4511
  function resolveVoice(e) {
4512
- let t = H.find((t) => t.key === e.voiceKey);
4513
- return t?.gender === e.gender ? t : H.find((t) => t.gender === e.gender && "isDefault" in t);
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);
4514
4514
  }
4515
- var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4515
+ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = 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: V,
4521
- voiceKey: U.nullable(),
4520
+ gender: U,
4521
+ voiceKey: G.nullable(),
4522
4522
  sessionScope: _enum([
4523
4523
  "private",
4524
4524
  "org",
@@ -4528,7 +4528,7 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4528
4528
  surfaceGuidance: string().optional(),
4529
4529
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4530
4530
  expiresAt: datetime()
4531
- }), ti = _enum(["elevenlabs", "livekit"]), ni = discriminatedUnion("provider", [object({
4531
+ }), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
4532
4532
  provider: literal("elevenlabs"),
4533
4533
  conversationToken: string().min(1),
4534
4534
  voiceId: string().min(1)
@@ -4537,7 +4537,7 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4537
4537
  url: string().min(1),
4538
4538
  token: string().min(1),
4539
4539
  room: string().min(1)
4540
- }).strict()]), ri = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4540
+ }).strict()]), ti = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4541
4541
  platform: _enum([
4542
4542
  "linkedin",
4543
4543
  "x",
@@ -4552,11 +4552,11 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4552
4552
  "website"
4553
4553
  ]),
4554
4554
  handle: string()
4555
- }))), ii = _enum([
4555
+ }))), ni = _enum([
4556
4556
  "essential",
4557
4557
  "professional",
4558
4558
  "business"
4559
- ]), ai = object({
4559
+ ]), ri = object({
4560
4560
  agentId: string().optional(),
4561
4561
  handle: string().optional(),
4562
4562
  ownerId: string().optional(),
@@ -4568,25 +4568,25 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4568
4568
  entityType: string().optional(),
4569
4569
  avatarId: string().nullable().optional(),
4570
4570
  coverId: string().nullable().optional(),
4571
- avatar: F.optional(),
4572
- cover: F.optional(),
4571
+ avatar: L.optional(),
4572
+ cover: L.optional(),
4573
4573
  email: string().nullable().optional(),
4574
4574
  website: string().url().nullable().optional(),
4575
- accounts: ri.nullable().optional(),
4575
+ accounts: ti.nullable().optional(),
4576
4576
  model: string().nullable().optional(),
4577
- gender: V.optional(),
4578
- voiceKey: U.nullable().optional(),
4579
- billingTier: ii.optional(),
4577
+ gender: U.optional(),
4578
+ voiceKey: G.nullable().optional(),
4579
+ billingTier: ni.optional(),
4580
4580
  lastActiveAt: string().nullable().optional(),
4581
4581
  lastMessageAt: string().nullable().optional(),
4582
4582
  runtime: string().default("hermes").optional(),
4583
4583
  timezone: string().optional(),
4584
- desiredStatus: z.nullable().optional(),
4584
+ desiredStatus: V.nullable().optional(),
4585
4585
  automationPrimaryChannel: string().optional(),
4586
4586
  heartbeatEnabled: boolean().optional(),
4587
- heartbeatBriefingTime: T.nullable().optional(),
4588
- heartbeatCheckinTime: T.nullable().optional(),
4589
- heartbeatCloseoutTime: T.nullable().optional(),
4587
+ heartbeatBriefingTime: E.nullable().optional(),
4588
+ heartbeatCheckinTime: E.nullable().optional(),
4589
+ heartbeatCloseoutTime: E.nullable().optional(),
4590
4590
  onboardedAt: string().nullable().optional(),
4591
4591
  org: object({
4592
4592
  orgId: string(),
@@ -4599,7 +4599,7 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4599
4599
  owner: object({
4600
4600
  userId: string(),
4601
4601
  fullName: string().optional(),
4602
- avatar: F.optional()
4602
+ avatar: L.optional()
4603
4603
  }).optional(),
4604
4604
  visibility: _enum([
4605
4605
  "private",
@@ -4609,14 +4609,14 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4609
4609
  status: string().optional(),
4610
4610
  createdAt: string().optional(),
4611
4611
  updatedAt: string().optional()
4612
- }), oi = ai.extend({
4612
+ }), ii = ri.extend({
4613
4613
  isPrimary: boolean().optional(),
4614
- lifecycle: B.optional(),
4614
+ lifecycle: H.optional(),
4615
4615
  changedAt: string().datetime().optional(),
4616
4616
  detail: string().optional(),
4617
- blocker: L.optional(),
4618
- operation: Gr.optional()
4619
- }), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
4617
+ blocker: z.optional(),
4618
+ operation: Ur.optional()
4619
+ }), ai = Object.keys(ii.shape), oi = class Agent extends SettingsObject {
4620
4620
  constructor(e) {
4621
4621
  let t = "config" in e ? {
4622
4622
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4634,7 +4634,7 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4634
4634
  }), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
4635
4635
  }
4636
4636
  merge(e) {
4637
- for (let t of si) {
4637
+ for (let t of ai) {
4638
4638
  if (!(t in e)) continue;
4639
4639
  let n = this[t];
4640
4640
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4642,7 +4642,7 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4642
4642
  }
4643
4643
  toConfig() {
4644
4644
  let e = {};
4645
- for (let t of si) {
4645
+ for (let t of ai) {
4646
4646
  let n = this[t];
4647
4647
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4648
4648
  }
@@ -4653,24 +4653,24 @@ var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
4653
4653
  }
4654
4654
  };
4655
4655
  function createAgent(e) {
4656
- return new ci(e);
4656
+ return new oi(e);
4657
4657
  }
4658
4658
  function createAgents(e) {
4659
- return e.configs.map((t) => new ci({
4659
+ return e.configs.map((t) => new oi({
4660
4660
  config: t,
4661
4661
  context: e.context
4662
4662
  }));
4663
4663
  }
4664
4664
  //#endregion
4665
4665
  //#region ../core/dist/types/user.js
4666
- var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), G = string().trim().toLowerCase().pipe(email()), ui = object({
4666
+ var si = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), ci = string().trim().toLowerCase().pipe(email()), li = object({
4667
4667
  userId: string(),
4668
4668
  email: string().optional(),
4669
4669
  handle: string().optional(),
4670
4670
  fullName: string().optional(),
4671
- linkedinUsername: W.optional(),
4671
+ linkedinUsername: K.optional(),
4672
4672
  avatarId: string().optional(),
4673
- avatar: F.optional(),
4673
+ avatar: L.optional(),
4674
4674
  isEmailVerified: boolean().optional(),
4675
4675
  primaryAgentId: string().optional(),
4676
4676
  primaryOrgId: string().optional(),
@@ -4685,9 +4685,9 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4685
4685
  createdAt: string().optional(),
4686
4686
  updatedAt: string().optional(),
4687
4687
  onboarded: boolean().optional()
4688
- }), di = object({
4688
+ }), ui = object({
4689
4689
  name: string().min(1).max(100).optional(),
4690
- linkedinUsername: W.nullable().optional(),
4690
+ linkedinUsername: K.nullable().optional(),
4691
4691
  avatar: object({
4692
4692
  src: string(),
4693
4693
  mediaId: string()
@@ -4696,31 +4696,20 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4696
4696
  primaryOrgId: string().optional(),
4697
4697
  lastActiveOrgId: string().optional(),
4698
4698
  onboarding: any().optional()
4699
- }).partial(), fi = object({ email: G }), pi = object({
4700
- email: G,
4701
- password: string().min(8, "Password must be at least 8 characters")
4702
- }), mi = object({
4703
- email: G,
4704
- password: string().min(8, "Password must be at least 8 characters"),
4705
- fullName: string().min(1, "Name is required")
4706
- }), hi = object({
4707
- email: G,
4699
+ }).partial(), di = object({ email: ci }), fi = object({
4700
+ email: ci,
4708
4701
  code: string().min(6, "Verification code is required"),
4709
4702
  timezone: string().max(64).optional()
4710
- }), gi = object({
4711
- email: G,
4712
- code: string().min(6, "Verification code is required"),
4713
- newPassword: string().min(8, "New password must be at least 8 characters")
4714
- }), _i = object({ newEmail: G }), vi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), yi = object({
4703
+ }), pi = object({ newEmail: ci }), mi = object({
4715
4704
  credential: string().optional(),
4716
4705
  code: string().optional(),
4717
4706
  timezone: string().max(64).optional(),
4718
4707
  source: _enum(["web", "ios"]).optional()
4719
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), bi = object({
4708
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), hi = object({
4720
4709
  identityToken: string().min(1),
4721
4710
  fullName: string().optional(),
4722
4711
  timezone: string().max(64).optional()
4723
- }), K = object({
4712
+ }), q = object({
4724
4713
  orgId: string().optional(),
4725
4714
  handle: string().optional(),
4726
4715
  name: string().optional(),
@@ -4728,10 +4717,10 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4728
4717
  website: string().url().nullable().optional(),
4729
4718
  summary: string().nullable().optional(),
4730
4719
  avatarId: string().nullable().optional(),
4731
- avatar: F.optional(),
4720
+ avatar: L.optional(),
4732
4721
  coverId: string().nullable().optional(),
4733
- cover: F.optional(),
4734
- accounts: _r.nullable().optional(),
4722
+ cover: L.optional(),
4723
+ accounts: gr.nullable().optional(),
4735
4724
  ownerId: string().optional(),
4736
4725
  isPersonal: boolean().optional(),
4737
4726
  stripeCustomerIdTest: string().nullable().optional(),
@@ -4744,12 +4733,12 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4744
4733
  billingLastSyncedAt: string().nullable().optional(),
4745
4734
  syncedPeriodStart: string().nullable().optional(),
4746
4735
  syncedPeriodEnd: string().nullable().optional(),
4747
- trialEligibility: li.optional(),
4736
+ trialEligibility: si.optional(),
4748
4737
  onboarding: any().optional(),
4749
4738
  status: string().optional(),
4750
4739
  createdAt: string().optional(),
4751
4740
  updatedAt: string().optional()
4752
- }), xi = K.extend({
4741
+ }), gi = q.extend({
4753
4742
  defaultAgent: object({
4754
4743
  agentId: string(),
4755
4744
  handle: string(),
@@ -4757,22 +4746,22 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4757
4746
  orgId: string()
4758
4747
  }),
4759
4748
  onboardingCompleted: boolean().optional()
4760
- }), Si = object({
4749
+ }), _i = object({
4761
4750
  completedAt: string().datetime().optional(),
4762
4751
  setupBy: string().optional(),
4763
4752
  billingSetup: boolean().optional(),
4764
4753
  teamInvitesSetup: boolean().optional(),
4765
4754
  brandingSetup: boolean().optional(),
4766
4755
  domainsSetup: boolean().optional()
4767
- }), Ci = object({
4756
+ }), vi = object({
4768
4757
  membershipId: string(),
4769
4758
  orgId: string(),
4770
4759
  name: string(),
4771
4760
  handle: string(),
4772
4761
  avatarId: string().optional(),
4773
- avatar: F.optional(),
4762
+ avatar: L.optional(),
4774
4763
  coverId: string().optional(),
4775
- cover: F.optional(),
4764
+ cover: L.optional(),
4776
4765
  role: _enum([
4777
4766
  "owner",
4778
4767
  "admin",
@@ -4782,11 +4771,11 @@ var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).
4782
4771
  memberCount: number().optional(),
4783
4772
  agentCount: number().optional(),
4784
4773
  joinedAt: string().datetime(),
4785
- trialEligibility: li.optional(),
4786
- onboarding: Si.optional()
4787
- }), wi = ui.extend({
4788
- orgs: array(Ci).optional(),
4789
- agents: array(ai).optional()
4774
+ trialEligibility: si.optional(),
4775
+ onboarding: _i.optional()
4776
+ }), yi = li.extend({
4777
+ orgs: array(vi).optional(),
4778
+ agents: array(ri).optional()
4790
4779
  });
4791
4780
  //#endregion
4792
4781
  //#region ../core/dist/state.js
@@ -4809,7 +4798,7 @@ function derive(e) {
4809
4798
  }
4810
4799
  //#endregion
4811
4800
  //#region ../core/dist/bot-ua.js
4812
- var Ti = "pagelines-agent/1.0", Ei = [
4801
+ var bi = "pagelines-agent/1.0", xi = [
4813
4802
  "[SILENT]",
4814
4803
  "SILENT",
4815
4804
  "NO_REPLY",
@@ -4823,21 +4812,21 @@ var Ti = "pagelines-agent/1.0", Ei = [
4823
4812
  "[NO_OP]",
4824
4813
  "[NO OP]",
4825
4814
  "HEARTBEAT_OK"
4826
- ], Di = new Set(Ei);
4815
+ ], Si = new Set(xi);
4827
4816
  function normalizeAssistantControl(e) {
4828
4817
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4829
4818
  }
4830
4819
  function isAssistantSilenceControl(e) {
4831
4820
  let t = normalizeAssistantControl(e);
4832
- return t.length <= 64 && Di.has(t);
4821
+ return t.length <= 64 && Si.has(t);
4833
4822
  }
4834
4823
  function isAssistantSilenceControlPrefix(e) {
4835
4824
  let t = normalizeAssistantControl(e);
4836
- return t.length <= 64 && Ei.some((e) => e.startsWith(t));
4825
+ return t.length <= 64 && xi.some((e) => e.startsWith(t));
4837
4826
  }
4838
4827
  //#endregion
4839
4828
  //#region ../core/dist/timingBudgets.js
4840
- var Oi = {
4829
+ var Ci = {
4841
4830
  wake: 300 * 1e3,
4842
4831
  bootGrace: 420 * 1e3,
4843
4832
  stop: 30 * 1e3
@@ -4855,16 +4844,16 @@ function formatBudgetDuration(e) {
4855
4844
  }
4856
4845
  //#endregion
4857
4846
  //#region ../core/dist/paths.js
4858
- var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
4847
+ var wi = "/api/bot-api", Ti = "/api/bot-api/v1";
4859
4848
  function botApiLlmUrl(e) {
4860
- return `${e}${Ai}`;
4849
+ return `${e}${Ti}`;
4861
4850
  }
4862
4851
  function botApiUrl(e) {
4863
- return `${e}${ki}`;
4852
+ return `${e}${wi}`;
4864
4853
  }
4865
4854
  //#endregion
4866
4855
  //#region ../core/dist/errorCopy.js
4867
- var q = {
4856
+ var J = {
4868
4857
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4869
4858
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4870
4859
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4895,7 +4884,7 @@ var q = {
4895
4884
  TIMEOUT: "The request took too long. Try again in a moment.",
4896
4885
  FORBIDDEN: "You don't have access to this.",
4897
4886
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4898
- }, ji = {
4887
+ }, Ei = {
4899
4888
  notFound: "Not found. Try refreshing.",
4900
4889
  busy: "Busy — try again in a moment.",
4901
4890
  rateLimited: "Too many requests. Wait a moment.",
@@ -4905,14 +4894,14 @@ var q = {
4905
4894
  fatal: "Something's broken and won't resolve on retry. Contact support."
4906
4895
  };
4907
4896
  function errorCopy(e, t) {
4908
- return e && e in q ? q[e] : t;
4897
+ return e && e in J ? J[e] : t;
4909
4898
  }
4910
4899
  function errorFromApiResponse(e, t) {
4911
- return e.code && e.code in q ? q[e.code] : e.providerErrorKind && ji[e.providerErrorKind] ? ji[e.providerErrorKind] : e.error || t;
4900
+ return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Ei[e.providerErrorKind] ? Ei[e.providerErrorKind] : e.error || t;
4912
4901
  }
4913
4902
  //#endregion
4914
4903
  //#region ../core/dist/retryPolicy.js
4915
- var Mi = {
4904
+ var Di = {
4916
4905
  shouldRetry: !1,
4917
4906
  maxAttempts: 1,
4918
4907
  strategy: "none",
@@ -4930,7 +4919,7 @@ function retryPolicyFor(e) {
4930
4919
  "FORBIDDEN",
4931
4920
  "AGENT_NOT_FOUND"
4932
4921
  ]);
4933
- if (e.code && t.has(e.code)) return Mi;
4922
+ if (e.code && t.has(e.code)) return Di;
4934
4923
  switch (e.providerErrorKind) {
4935
4924
  case "busy": return {
4936
4925
  shouldRetry: !0,
@@ -4965,33 +4954,33 @@ function retryPolicyFor(e) {
4965
4954
  };
4966
4955
  case "notFound":
4967
4956
  case "invalidConfig":
4968
- case "fatal": return Mi;
4969
- default: return Mi;
4957
+ case "fatal": return Di;
4958
+ default: return Di;
4970
4959
  }
4971
4960
  }
4972
4961
  //#endregion
4973
4962
  //#region ../core/dist/wire/timezone.js
4974
- var J = string().min(1).max(64).refine((e) => {
4963
+ var Y = string().min(1).max(64).refine((e) => {
4975
4964
  try {
4976
4965
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4977
4966
  } catch {
4978
4967
  return !1;
4979
4968
  }
4980
- }, "Invalid IANA timezone"), Ni = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Pi = object({
4969
+ }, "Invalid IANA timezone"), Oi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ki = object({
4981
4970
  orgId: string(),
4982
4971
  name: string().min(1).max(100),
4983
4972
  emoji: string().max(8).nullable().optional(),
4984
4973
  title: string().max(120).nullable().optional(),
4985
4974
  summary: string().max(500).nullable().optional(),
4986
4975
  handle: string().min(2).max(50).optional(),
4987
- timezone: J.optional(),
4976
+ timezone: Y.optional(),
4988
4977
  runtime: _enum(["hermes"]).optional(),
4989
4978
  visibility: _enum([
4990
4979
  "private",
4991
4980
  "org",
4992
4981
  "public"
4993
4982
  ]).optional()
4994
- }).strict(), Fi = object({
4983
+ }).strict(), Ai = object({
4995
4984
  name: string().min(1).max(100).optional(),
4996
4985
  handle: string().min(2).max(50).optional(),
4997
4986
  emoji: string().max(8).nullable().optional(),
@@ -5001,26 +4990,26 @@ var J = string().min(1).max(64).refine((e) => {
5001
4990
  website: string().url().nullable().optional(),
5002
4991
  avatarMediaId: string().nullable().optional(),
5003
4992
  coverMediaId: string().nullable().optional(),
5004
- timezone: J.optional(),
4993
+ timezone: Y.optional(),
5005
4994
  model: string().nullable().optional(),
5006
- gender: V.optional(),
5007
- voiceKey: U.nullable().optional(),
5008
- billingTier: ii.optional(),
4995
+ gender: U.optional(),
4996
+ voiceKey: G.nullable().optional(),
4997
+ billingTier: ni.optional(),
5009
4998
  visibility: _enum([
5010
4999
  "private",
5011
5000
  "org",
5012
5001
  "public"
5013
5002
  ]).optional(),
5014
- automationPrimaryChannel: Ni.optional(),
5003
+ automationPrimaryChannel: Oi.optional(),
5015
5004
  heartbeatEnabled: boolean().optional(),
5016
- heartbeatBriefingTime: T.nullable().optional(),
5017
- heartbeatCheckinTime: T.nullable().optional(),
5018
- heartbeatCloseoutTime: T.nullable().optional()
5019
- }).strict(), Ii = oi, Li = object({
5005
+ heartbeatBriefingTime: E.nullable().optional(),
5006
+ heartbeatCheckinTime: E.nullable().optional(),
5007
+ heartbeatCloseoutTime: E.nullable().optional()
5008
+ }).strict(), ji = ii, Mi = object({
5020
5009
  id: string(),
5021
5010
  label: string(),
5022
5011
  prompt: string()
5023
- }), Ri = /* @__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("."), zi = _enum(Ri), Bi = _enum([
5012
+ }), Ni = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), Pi = _enum(Ni), Fi = _enum([
5024
5013
  "notFound",
5025
5014
  "busy",
5026
5015
  "rateLimited",
@@ -5031,21 +5020,21 @@ var J = string().min(1).max(64).refine((e) => {
5031
5020
  ]), zApiOk = (e) => object({
5032
5021
  ok: literal(!0),
5033
5022
  data: e
5034
- }), Vi = object({
5023
+ }), Ii = object({
5035
5024
  ok: literal(!1),
5036
5025
  error: string(),
5037
- code: zi.optional(),
5038
- issue: L.optional(),
5039
- providerErrorKind: Bi.optional()
5040
- }), zApiResponse = (e) => union([zApiOk(e), Vi]), Hi = {
5026
+ code: Pi.optional(),
5027
+ issue: z.optional(),
5028
+ providerErrorKind: Fi.optional()
5029
+ }), zApiResponse = (e) => union([zApiOk(e), Ii]), Li = {
5041
5030
  400: "Invalid body.",
5042
5031
  401: "Not authenticated.",
5043
5032
  500: "Server error."
5044
5033
  };
5045
5034
  function zErrorResponses(e) {
5046
5035
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5047
- description: t === !0 ? Hi[Number(e)] ?? "Request failed." : t,
5048
- content: { "application/json": { schema: Vi } }
5036
+ description: t === !0 ? Li[Number(e)] ?? "Request failed." : t,
5037
+ content: { "application/json": { schema: Ii } }
5049
5038
  }]));
5050
5039
  }
5051
5040
  function apiError(e, t, n) {
@@ -5068,7 +5057,7 @@ function apiOk(e) {
5068
5057
  }
5069
5058
  //#endregion
5070
5059
  //#region ../core/dist/wire/chat-tool-activity.js
5071
- var Ui = object({
5060
+ var Ri = object({
5072
5061
  kind: _enum([
5073
5062
  "icon",
5074
5063
  "favicon",
@@ -5077,7 +5066,7 @@ var Ui = object({
5077
5066
  icon: string().min(1).optional(),
5078
5067
  domain: string().min(1).optional(),
5079
5068
  serviceKey: string().min(1).optional()
5080
- }).strict(), Wi = object({
5069
+ }).strict(), zi = object({
5081
5070
  activityId: string().min(1),
5082
5071
  turnId: string().min(1),
5083
5072
  status: _enum([
@@ -5101,12 +5090,12 @@ var Ui = object({
5101
5090
  endedAt: string().datetime().optional(),
5102
5091
  durationMs: number().int().nonnegative().optional(),
5103
5092
  note: string().trim().min(1).optional(),
5104
- visual: Ui.optional()
5105
- }).strict(), Gi = Wi.extend({ status: _enum(["completed", "failed"]) }), Ki = P, qi = object({
5093
+ visual: Ri.optional()
5094
+ }).strict(), Bi = zi.extend({ status: _enum(["completed", "failed"]) }), Vi = F, Hi = object({
5106
5095
  kind: literal("inline"),
5107
5096
  offset: number().int().nonnegative()
5108
- }), Ji = object({
5109
- type: Ki,
5097
+ }), Ui = object({
5098
+ type: Vi,
5110
5099
  src: url(),
5111
5100
  filename: string().min(1),
5112
5101
  mimeType: string().min(1),
@@ -5116,12 +5105,12 @@ var Ui = object({
5116
5105
  height: number().int().positive().optional(),
5117
5106
  duration: number().nonnegative().optional(),
5118
5107
  text: string().optional(),
5119
- placement: qi.optional()
5120
- }), Yi = object({ ref: string().min(1).max(256) }).strict(), Xi = _enum([
5108
+ placement: Hi.optional()
5109
+ }), Wi = object({ ref: string().min(1).max(256) }).strict(), Gi = _enum([
5121
5110
  "handled",
5122
5111
  "dismissed",
5123
5112
  "deferred"
5124
- ]), Zi = datetime();
5113
+ ]), Ki = datetime();
5125
5114
  function validateAttentionRevisit(e, t) {
5126
5115
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5127
5116
  code: "custom",
@@ -5129,17 +5118,17 @@ function validateAttentionRevisit(e, t) {
5129
5118
  message: "revisitAt requires deferred disposition"
5130
5119
  });
5131
5120
  }
5132
- var Qi = Yi.extend({
5133
- disposition: Xi.optional(),
5134
- revisitAt: Zi.optional()
5135
- }).superRefine(validateAttentionRevisit), $i = Yi.extend({
5136
- disposition: Xi,
5137
- revisitAt: Zi.optional()
5138
- }).superRefine(validateAttentionRevisit), ea = object({
5121
+ var qi = Wi.extend({
5122
+ disposition: Gi.optional(),
5123
+ revisitAt: Ki.optional()
5124
+ }).superRefine(validateAttentionRevisit), Ji = Wi.extend({
5125
+ disposition: Gi,
5126
+ revisitAt: Ki.optional()
5127
+ }).superRefine(validateAttentionRevisit), Yi = object({
5139
5128
  turnId: string().min(1).optional(),
5140
5129
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5141
- attachments: array(Ji).optional(),
5142
- toolActivities: array(Gi).optional(),
5130
+ attachments: array(Ui).optional(),
5131
+ toolActivities: array(Bi).optional(),
5143
5132
  issue: object({
5144
5133
  code: string(),
5145
5134
  bucket: _enum(["account", "error"]),
@@ -5167,8 +5156,8 @@ var Qi = Yi.extend({
5167
5156
  ])
5168
5157
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5169
5158
  ownerHandoff: literal(!0).optional(),
5170
- attention: array(Qi).max(20).optional()
5171
- }).catchall(unknown()), ta = object({
5159
+ attention: array(qi).max(20).optional()
5160
+ }).catchall(unknown()), Xi = object({
5172
5161
  messageId: string().min(1),
5173
5162
  conversationId: string().min(1),
5174
5163
  role: _enum([
@@ -5181,12 +5170,12 @@ var Qi = Yi.extend({
5181
5170
  content: string(),
5182
5171
  sequence: string().min(1),
5183
5172
  clientNonce: string().nullable().optional(),
5184
- metadata: ea.nullable().optional(),
5173
+ metadata: Yi.nullable().optional(),
5185
5174
  status: string().nullable().optional(),
5186
5175
  createdAt: string(),
5187
5176
  updatedAt: string()
5188
- }), na = object({
5189
- type: Ki,
5177
+ }), Zi = object({
5178
+ type: Vi,
5190
5179
  mediaId: string().min(1).optional(),
5191
5180
  url: url().optional(),
5192
5181
  name: string().min(1).optional(),
@@ -5202,21 +5191,21 @@ var Qi = Yi.extend({
5202
5191
  path: [n],
5203
5192
  message: `${n} is required when mediaId is absent`
5204
5193
  });
5205
- }), ra = object({
5194
+ }), Qi = object({
5206
5195
  conversationId: string().min(1),
5207
5196
  content: string().max(1e4).default(""),
5208
5197
  clientNonce: string().max(64).optional(),
5209
- attachments: array(na).max(10).optional(),
5198
+ attachments: array(Zi).max(10).optional(),
5210
5199
  channel: _enum(["ios", "dashboard"]).optional(),
5211
5200
  actionUrls: object({
5212
5201
  billing: string().max(500),
5213
5202
  agent: string().max(500)
5214
5203
  }).optional(),
5215
- viewerTimezone: J.optional()
5204
+ viewerTimezone: Y.optional()
5216
5205
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5217
5206
  path: ["content"],
5218
5207
  message: "Message or attachment required"
5219
- }), ia = object({
5208
+ }), $i = object({
5220
5209
  type: _enum(["user", "agent"]),
5221
5210
  id: string().min(1)
5222
5211
  }).strict();
@@ -5231,44 +5220,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5231
5220
  }), n.add(e);
5232
5221
  }
5233
5222
  }
5234
- var aa = object({
5223
+ var ea = object({
5235
5224
  orgId: string().min(1),
5236
- participants: array(ia).min(1).max(20)
5237
- }).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
5225
+ participants: array($i).min(1).max(20)
5226
+ }).strict().superRefine(addDuplicateConversationTargetIssues), ta = object({
5238
5227
  orgId: string().min(1),
5239
- participants: array(ia).min(1).max(20)
5228
+ participants: array($i).min(1).max(20)
5240
5229
  }).strict().superRefine((e, t) => {
5241
5230
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5242
5231
  code: "custom",
5243
5232
  path: ["participants"],
5244
5233
  message: "New sessions require at least one agent participant."
5245
5234
  });
5246
- }), sa = object({
5235
+ }), na = object({
5247
5236
  category: string().min(1).max(30).optional(),
5248
5237
  reason: string().max(2e3).optional()
5249
- }).strict(), ca = _enum([
5238
+ }).strict(), ra = _enum([
5250
5239
  "1:1",
5251
5240
  "4:3",
5252
5241
  "3:4",
5253
5242
  "16:9",
5254
5243
  "9:16"
5255
- ]), la = _enum([
5244
+ ]), ia = _enum([
5256
5245
  "1K",
5257
5246
  "2K",
5258
5247
  "4K"
5259
- ]), ua = object({
5248
+ ]), aa = object({
5260
5249
  prompt: string().trim().min(1).max(4e3),
5261
- aspectRatio: ca.default("1:1"),
5250
+ aspectRatio: ra.default("1:1"),
5262
5251
  outputFormat: _enum([
5263
5252
  "png",
5264
5253
  "jpeg",
5265
5254
  "webp"
5266
5255
  ]).default("webp"),
5267
- resolution: la.default("2K"),
5256
+ resolution: ia.default("2K"),
5268
5257
  style: string().trim().max(200).optional(),
5269
5258
  altText: string().trim().max(500).optional(),
5270
5259
  referenceMediaIds: array(string().min(1)).max(4).optional()
5271
- }).strict(), da = object({
5260
+ }).strict(), oa = object({
5272
5261
  mediaId: string().min(1),
5273
5262
  src: url(),
5274
5263
  filename: string().min(1),
@@ -5278,54 +5267,54 @@ var aa = object({
5278
5267
  provider: string().min(1).optional(),
5279
5268
  providerRequestId: string().min(1).optional(),
5280
5269
  media: string().startsWith("MEDIA:"),
5281
- attachment: Ji.extend({ type: literal("image") })
5282
- }), fa = object({
5270
+ attachment: Ui.extend({ type: literal("image") })
5271
+ }), sa = object({
5283
5272
  identityToken: string().min(1),
5284
5273
  fullName: string().optional()
5285
- }), pa = object({
5274
+ }), ca = object({
5286
5275
  redirect: string(),
5287
5276
  redirectReason: string(),
5288
5277
  isNew: boolean(),
5289
5278
  deviceId: string()
5290
- }), ma = object({
5279
+ }), la = object({
5291
5280
  ok: literal(!0),
5292
- data: pa,
5281
+ data: ca,
5293
5282
  token: string()
5294
- }), ha = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), ga = object({ url: string() }), _a = object({
5283
+ }), ua = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), da = object({ url: string() }), fa = object({
5295
5284
  ok: literal(!0),
5296
- data: ga
5297
- }), va = object({ token: string().min(1) }), ya = object({
5285
+ data: da
5286
+ }), pa = object({ token: string().min(1) }), ma = object({
5298
5287
  redirect: string(),
5299
5288
  redirectReason: string(),
5300
5289
  deviceId: string()
5301
- }), ba = object({
5290
+ }), ha = object({
5302
5291
  ok: literal(!0),
5303
- data: ya,
5292
+ data: ma,
5304
5293
  token: string()
5305
- }), xa = _enum(["none", "active_assistant"]), Sa = _enum([
5294
+ }), ga = _enum(["none", "active_assistant"]), _a = _enum([
5306
5295
  "none",
5307
5296
  "active",
5308
5297
  "trial",
5309
5298
  "canceling",
5310
5299
  "past_due",
5311
5300
  "paused"
5312
- ]), Ca = object({
5301
+ ]), va = object({
5313
5302
  brand: string(),
5314
5303
  last4: string(),
5315
5304
  expMonth: number(),
5316
5305
  expYear: number()
5317
- }), wa = object({
5306
+ }), ya = object({
5318
5307
  date: string(),
5319
5308
  amount: number(),
5320
5309
  status: string(),
5321
5310
  invoicePdf: string().optional()
5322
- }), Ta = object({
5311
+ }), ba = object({
5323
5312
  graceEndsAt: string().optional(),
5324
5313
  suspended: boolean(),
5325
5314
  url: string().optional()
5326
- }), Ea = object({
5327
- plan: xa,
5328
- status: Sa,
5315
+ }), xa = object({
5316
+ plan: ga,
5317
+ status: _a,
5329
5318
  price: number(),
5330
5319
  tierRates: record(string(), number()).optional(),
5331
5320
  maxAgents: number(),
@@ -5335,23 +5324,23 @@ var aa = object({
5335
5324
  cancelAt: string().optional(),
5336
5325
  trialEnd: string().optional(),
5337
5326
  trialDaysRemaining: number().optional(),
5338
- paymentMethod: Ca.optional(),
5339
- paymentRecovery: Ta.optional(),
5340
- invoices: array(wa),
5327
+ paymentMethod: va.optional(),
5328
+ paymentRecovery: ba.optional(),
5329
+ invoices: array(ya),
5341
5330
  stripeError: string().optional()
5342
- }), Da = object({
5331
+ }), Sa = object({
5343
5332
  orgId: string(),
5344
5333
  agentName: string().optional(),
5345
5334
  runtime: string().optional()
5346
- }), Oa = object({
5335
+ }), Ca = object({
5347
5336
  created: number(),
5348
5337
  skipped: number(),
5349
5338
  errors: array(string())
5350
- }), ka = object({
5339
+ }), wa = object({
5351
5340
  updated: number(),
5352
5341
  errors: array(string())
5353
- }), Aa = Kr, ja = object({
5354
- code: zi,
5342
+ }), Ta = Wr, Ea = object({
5343
+ code: Pi,
5355
5344
  message: string(),
5356
5345
  bucket: _enum(["account", "error"]).optional(),
5357
5346
  actionLabel: string().optional(),
@@ -5368,14 +5357,14 @@ function toChatStreamError(e) {
5368
5357
  ...e.help ? { help: e.help } : {}
5369
5358
  };
5370
5359
  }
5371
- var Ma = discriminatedUnion("event", [
5360
+ var Da = discriminatedUnion("event", [
5372
5361
  object({
5373
5362
  event: literal("status"),
5374
- data: Aa
5363
+ data: Ta
5375
5364
  }),
5376
5365
  object({
5377
5366
  event: literal("message"),
5378
- data: object({ message: ta })
5367
+ data: object({ message: Xi })
5379
5368
  }),
5380
5369
  object({
5381
5370
  event: literal("message_delta"),
@@ -5395,7 +5384,7 @@ var Ma = discriminatedUnion("event", [
5395
5384
  }),
5396
5385
  object({
5397
5386
  event: literal("tool_activity"),
5398
- data: Wi
5387
+ data: zi
5399
5388
  }),
5400
5389
  object({
5401
5390
  event: literal("working_end"),
@@ -5407,7 +5396,7 @@ var Ma = discriminatedUnion("event", [
5407
5396
  }),
5408
5397
  object({
5409
5398
  event: literal("error"),
5410
- data: ja
5399
+ data: Ea
5411
5400
  })
5412
5401
  ]);
5413
5402
  function chatEventUserTurnId(e) {
@@ -5559,7 +5548,7 @@ function parseChatEvent(e) {
5559
5548
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5560
5549
  if (!n || r === void 0) return null;
5561
5550
  try {
5562
- let e = Ma.safeParse({
5551
+ let e = Da.safeParse({
5563
5552
  event: n,
5564
5553
  data: JSON.parse(r)
5565
5554
  });
@@ -5570,7 +5559,7 @@ function parseChatEvent(e) {
5570
5559
  }
5571
5560
  //#endregion
5572
5561
  //#region ../core/dist/wire/chat-card.js
5573
- var Na = object({
5562
+ var Oa = object({
5574
5563
  label: string().trim().min(1).max(40),
5575
5564
  reply: string().trim().min(1).max(500),
5576
5565
  style: _enum([
@@ -5578,11 +5567,11 @@ var Na = object({
5578
5567
  "default",
5579
5568
  "destructive"
5580
5569
  ]).optional()
5581
- }).strip(), Pa = object({
5570
+ }).strip(), ka = object({
5582
5571
  version: literal(1),
5583
5572
  title: string().trim().min(1).max(200),
5584
5573
  body: string().trim().min(1).max(4e3).optional(),
5585
- actions: array(Na).min(1).max(3).optional()
5574
+ actions: array(Oa).min(1).max(3).optional()
5586
5575
  }).strip();
5587
5576
  function parseChatCardFencePayload(e) {
5588
5577
  let t;
@@ -5595,7 +5584,7 @@ function parseChatCardFencePayload(e) {
5595
5584
  message: e instanceof Error ? e.message : "Invalid JSON"
5596
5585
  };
5597
5586
  }
5598
- let n = Pa.safeParse(t);
5587
+ let n = ka.safeParse(t);
5599
5588
  return n.success ? {
5600
5589
  ok: !0,
5601
5590
  spec: n.data
@@ -5607,36 +5596,36 @@ function parseChatCardFencePayload(e) {
5607
5596
  }
5608
5597
  //#endregion
5609
5598
  //#region ../core/dist/wire/chat-visual.js
5610
- var Fa = string().trim().min(1).max(240), Ia = string().trim().min(1).max(800), Y = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), X = string().trim().min(1).max(120), La = record(Y, union([
5599
+ var Aa = string().trim().min(1).max(240), ja = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), Ma = record(X, union([
5611
5600
  string().max(500),
5612
5601
  number().finite(),
5613
5602
  boolean(),
5614
5603
  _null()
5615
- ])), Ra = _enum([
5604
+ ])), Na = _enum([
5616
5605
  "compact",
5617
5606
  "currency",
5618
5607
  "duration",
5619
5608
  "integer",
5620
5609
  "percent",
5621
5610
  "raw"
5622
- ]), za = object({
5623
- title: Fa,
5624
- description: Ia.optional(),
5625
- footer: Ia.optional()
5626
- }).strip(), Ba = object({
5627
- dataKey: Y,
5628
- label: X.optional(),
5629
- axisLabel: X.optional(),
5630
- valueFormat: Ra.optional(),
5611
+ ]), Pa = object({
5612
+ title: Aa,
5613
+ description: ja.optional(),
5614
+ footer: ja.optional()
5615
+ }).strip(), Fa = object({
5616
+ dataKey: X,
5617
+ label: Z.optional(),
5618
+ axisLabel: Z.optional(),
5619
+ valueFormat: Na.optional(),
5631
5620
  valuePrefix: string().trim().max(12).optional(),
5632
5621
  valueSuffix: string().trim().max(12).optional()
5633
- }).strip(), Va = object({
5622
+ }).strip(), Ia = object({
5634
5623
  kind: literal("linear"),
5635
- dataKey: Y,
5636
- label: X.optional()
5637
- }).strip(), Ha = object({
5624
+ dataKey: X,
5625
+ label: Z.optional()
5626
+ }).strip(), La = object({
5638
5627
  version: literal(1),
5639
- meta: za,
5628
+ meta: Pa,
5640
5629
  fallbackMarkdown: string().trim().min(1).max(4e3)
5641
5630
  }).strip();
5642
5631
  function dataKeys(e) {
@@ -5678,20 +5667,20 @@ function requireNumericDataKeys(e, t, n) {
5678
5667
  });
5679
5668
  }
5680
5669
  }
5681
- var Ua = discriminatedUnion("chartType", [Ha.extend({
5670
+ var Ra = discriminatedUnion("chartType", [La.extend({
5682
5671
  visualType: literal("chart"),
5683
5672
  chartType: _enum([
5684
5673
  "bar",
5685
5674
  "line",
5686
5675
  "scatter"
5687
5676
  ]),
5688
- xKey: Y,
5689
- xAxisLabel: X.optional(),
5690
- series: array(Ba).min(1).max(6),
5691
- data: array(La).min(1).max(120),
5677
+ xKey: X,
5678
+ xAxisLabel: Z.optional(),
5679
+ series: array(Fa).min(1).max(6),
5680
+ data: array(Ma).min(1).max(120),
5692
5681
  layout: _enum(["horizontal", "vertical"]).optional(),
5693
5682
  stacking: _enum(["grouped", "stacked"]).optional(),
5694
- trendLine: Va.optional()
5683
+ trendLine: Ia.optional()
5695
5684
  }).strip().superRefine((e, t) => {
5696
5685
  e.stacking && e.chartType !== "bar" && t.addIssue({
5697
5686
  code: "custom",
@@ -5729,13 +5718,13 @@ var Ua = discriminatedUnion("chartType", [Ha.extend({
5729
5718
  path: ["trendLine", "dataKey"],
5730
5719
  value: e.trendLine.dataKey
5731
5720
  }] : []], t);
5732
- }), Ha.extend({
5721
+ }), La.extend({
5733
5722
  visualType: literal("chart"),
5734
5723
  chartType: literal("pie"),
5735
- nameKey: Y,
5736
- valueKey: Y,
5737
- series: array(Ba).max(1).optional(),
5738
- data: array(La).min(1).max(16)
5724
+ nameKey: X,
5725
+ valueKey: X,
5726
+ series: array(Fa).max(1).optional(),
5727
+ data: array(Ma).min(1).max(16)
5739
5728
  }).strip().superRefine((e, t) => {
5740
5729
  requireDataKeys(e.data, [
5741
5730
  {
@@ -5759,10 +5748,10 @@ var Ua = discriminatedUnion("chartType", [Ha.extend({
5759
5748
  value: e.valueKey,
5760
5749
  nonnegative: !0
5761
5750
  }], t);
5762
- })]), Wa = object({
5763
- id: Y,
5764
- label: X,
5765
- detail: Ia.optional(),
5751
+ })]), za = object({
5752
+ id: X,
5753
+ label: Z,
5754
+ detail: ja.optional(),
5766
5755
  kind: _enum([
5767
5756
  "actor",
5768
5757
  "agent",
@@ -5773,11 +5762,11 @@ var Ua = discriminatedUnion("chartType", [Ha.extend({
5773
5762
  "system",
5774
5763
  "task"
5775
5764
  ]).optional()
5776
- }).strip(), Ga = object({
5777
- from: Y,
5778
- to: Y,
5779
- label: X.optional()
5780
- }).strip(), Ka = union([Ua, Ha.extend({
5765
+ }).strip(), Ba = object({
5766
+ from: X,
5767
+ to: X,
5768
+ label: Z.optional()
5769
+ }).strip(), Va = union([Ra, La.extend({
5781
5770
  visualType: literal("diagram"),
5782
5771
  diagramType: _enum([
5783
5772
  "flow",
@@ -5791,8 +5780,8 @@ var Ua = discriminatedUnion("chartType", [Ha.extend({
5791
5780
  "radial",
5792
5781
  "top-to-bottom"
5793
5782
  ]).default("auto"),
5794
- nodes: array(Wa).min(1).max(24),
5795
- edges: array(Ga).max(48)
5783
+ nodes: array(za).min(1).max(24),
5784
+ edges: array(Ba).max(48)
5796
5785
  }).strip().superRefine((e, t) => {
5797
5786
  let n = new Set(e.nodes.map((e) => e.id));
5798
5787
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5951,11 +5940,11 @@ function parseChatVisualFencePayload(e) {
5951
5940
  fallbackMarkdown: r
5952
5941
  };
5953
5942
  }
5954
- let n = Ka.safeParse(t);
5943
+ let n = Va.safeParse(t);
5955
5944
  if (!n.success) {
5956
5945
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5957
5946
  if (e) {
5958
- let t = Ka.safeParse(e);
5947
+ let t = Va.safeParse(e);
5959
5948
  if (t.success) return {
5960
5949
  ok: !0,
5961
5950
  spec: t.data
@@ -5980,7 +5969,7 @@ function extractChatVisualFencePayloads(e) {
5980
5969
  }
5981
5970
  //#endregion
5982
5971
  //#region ../core/dist/wire/conversation.js
5983
- var Z = object({
5972
+ var Q = object({
5984
5973
  type: _enum([
5985
5974
  "user",
5986
5975
  "agent",
@@ -6000,7 +5989,7 @@ var Z = object({
6000
5989
  displayName: string().optional(),
6001
5990
  handle: string().optional(),
6002
5991
  avatarUrl: string().optional()
6003
- }).strict(), qa = object({
5992
+ }).strict(), Ha = object({
6004
5993
  messageId: string(),
6005
5994
  role: _enum([
6006
5995
  "user",
@@ -6010,7 +5999,7 @@ var Z = object({
6010
5999
  content: string(),
6011
6000
  sequence: string(),
6012
6001
  createdAt: string()
6013
- }), Ja = object({
6002
+ }), Ua = object({
6014
6003
  conversationId: string(),
6015
6004
  orgId: string(),
6016
6005
  kind: _enum(["direct", "group"]),
@@ -6020,52 +6009,52 @@ var Z = object({
6020
6009
  "requester",
6021
6010
  "member"
6022
6011
  ]),
6023
- participants: array(Z),
6024
- lastMessage: qa.nullable(),
6012
+ participants: array(Q),
6013
+ lastMessage: Ha.nullable(),
6025
6014
  unreadCount: number().int().nonnegative(),
6026
6015
  latestSequence: string().nullable()
6027
- }), Ya = object({ sequence: string().min(1) }), Xa = object({ turnId: string().min(1).optional() }).strict(), Za = object({
6016
+ }), Wa = object({ sequence: string().min(1) }), Ga = object({ turnId: string().min(1).optional() }).strict(), Ka = object({
6028
6017
  cancelled: boolean(),
6029
6018
  cancelledTurnIds: array(string())
6030
- }).strict(), Qa = object({
6019
+ }).strict(), qa = object({
6031
6020
  conversationId: string(),
6032
6021
  messageId: string(),
6033
6022
  sequence: string(),
6034
6023
  snippet: string(),
6035
6024
  createdAt: string(),
6036
- participants: array(Z)
6037
- }), $a = object({
6025
+ participants: array(Q)
6026
+ }), Ja = object({
6038
6027
  conversationId: string(),
6039
- lastMessage: qa.nullable(),
6028
+ lastMessage: Ha.nullable(),
6040
6029
  unreadCount: number().int().nonnegative(),
6041
6030
  latestSequence: string().nullable()
6042
- }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), eo = preprocess((e) => e === void 0 ? null : e, B.nullable()), to = preprocess((e) => e === void 0 ? null : e, z.nullable()), no = preprocess((e) => e === void 0 ? null : e, _enum([
6031
+ }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Ya = preprocess((e) => e === void 0 ? null : e, H.nullable()), Xa = preprocess((e) => e === void 0 ? null : e, V.nullable()), Za = preprocess((e) => e === void 0 ? null : e, _enum([
6043
6032
  "user",
6044
6033
  "assistant",
6045
6034
  "system"
6046
- ]).nullable()), ro = preprocess((e) => e === void 0 ? 0 : e, number()), io = object({
6035
+ ]).nullable()), Qa = preprocess((e) => e === void 0 ? 0 : e, number()), $a = object({
6047
6036
  agentId: string(),
6048
6037
  handle: string(),
6049
6038
  name: string(),
6050
6039
  orgId: string(),
6051
- orgName: Q,
6052
- orgHandle: Q,
6053
- ownerEmail: Q,
6054
- ownerName: Q,
6055
- state: eo,
6056
- desiredStatus: to,
6040
+ orgName: $,
6041
+ orgHandle: $,
6042
+ ownerEmail: $,
6043
+ ownerName: $,
6044
+ state: Ya,
6045
+ desiredStatus: Xa,
6057
6046
  runtime: string(),
6058
- imageVersion: Q,
6059
- lastHealthyAt: Q,
6060
- lastActiveAt: Q,
6061
- lastUserMessageAt: Q,
6062
- lastMessageAt: Q,
6063
- lastMessageRole: no,
6064
- lastMessageChannel: Q,
6065
- primaryChannel: Q,
6066
- totalMessages: ro,
6067
- totalSessions: ro,
6068
- error: Q,
6047
+ imageVersion: $,
6048
+ lastHealthyAt: $,
6049
+ lastActiveAt: $,
6050
+ lastUserMessageAt: $,
6051
+ lastMessageAt: $,
6052
+ lastMessageRole: Za,
6053
+ lastMessageChannel: $,
6054
+ primaryChannel: $,
6055
+ totalMessages: Qa,
6056
+ totalSessions: Qa,
6057
+ error: $,
6069
6058
  appHandle: string(),
6070
6059
  flyAppExists: boolean(),
6071
6060
  plan: string(),
@@ -6073,7 +6062,7 @@ var Z = object({
6073
6062
  billingActive: boolean(),
6074
6063
  createdAt: string(),
6075
6064
  updatedAt: string()
6076
- }), ao = object({
6065
+ }), eo = object({
6077
6066
  running: number(),
6078
6067
  stopped: number(),
6079
6068
  error: number(),
@@ -6081,28 +6070,28 @@ var Z = object({
6081
6070
  stopping: number(),
6082
6071
  unknown: number(),
6083
6072
  total: number()
6084
- }), oo = object({
6085
- agents: array(io),
6086
- summary: ao,
6073
+ }), to = object({
6074
+ agents: array($a),
6075
+ summary: eo,
6087
6076
  orphanedApps: array(string()),
6088
6077
  dailyMessages30d: array(number().int()).optional(),
6089
6078
  flyAppCount: number().optional(),
6090
6079
  latestVersion: string().optional(),
6091
6080
  latestVersions: record(string(), string()).optional()
6092
- }), so = br, co = P, $ = object({
6081
+ }), no = I, ro = F, io = object({
6093
6082
  mediaId: string(),
6094
6083
  src: string(),
6095
6084
  alt: string().nullable().optional(),
6096
6085
  filename: string().optional(),
6097
6086
  displayName: string().nullable().optional(),
6098
6087
  mimeType: string().optional(),
6099
- mediaType: co.optional(),
6100
- type: co.optional(),
6088
+ mediaType: ro.optional(),
6089
+ type: ro.optional(),
6101
6090
  size: number().optional(),
6102
6091
  width: number().nullable().optional(),
6103
6092
  height: number().nullable().optional(),
6104
6093
  duration: number().nullable().optional(),
6105
- context: so.nullable().optional(),
6094
+ context: no.nullable().optional(),
6106
6095
  blurhash: string().nullable().optional(),
6107
6096
  quality: string().optional(),
6108
6097
  status: string().optional(),
@@ -6111,13 +6100,13 @@ var Z = object({
6111
6100
  agentId: string().nullable().optional(),
6112
6101
  createdAt: string().optional(),
6113
6102
  updatedAt: string().optional()
6114
- }), lo = object({
6103
+ }), ao = object({
6115
6104
  file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
6116
- context: so.optional().default("general"),
6105
+ context: no.optional().default("general"),
6117
6106
  agentId: string().optional(),
6118
6107
  orgId: string().optional(),
6119
6108
  duration: number().optional()
6120
- }), uo = object({
6109
+ }), oo = object({
6121
6110
  mediaId: string().optional(),
6122
6111
  src: string().optional(),
6123
6112
  alt: string().optional(),
@@ -6126,7 +6115,7 @@ var Z = object({
6126
6115
  mimeType: string().optional(),
6127
6116
  mediaType: string().optional(),
6128
6117
  blurhash: string().optional()
6129
- }), fo = object({
6118
+ }), so = object({
6130
6119
  membershipId: string(),
6131
6120
  userId: string(),
6132
6121
  orgId: string(),
@@ -6141,15 +6130,15 @@ var Z = object({
6141
6130
  status: _enum(["active", "suspended"]),
6142
6131
  joinedAt: string(),
6143
6132
  lastSeenAt: string().optional(),
6144
- avatar: uo.optional()
6145
- }), po = object({
6133
+ avatar: oo.optional()
6134
+ }), co = object({
6146
6135
  invitationId: string(),
6147
6136
  email: string(),
6148
6137
  role: _enum(["admin", "member"]),
6149
6138
  status: string(),
6150
6139
  expiresAt: string(),
6151
6140
  createdAt: string()
6152
- }), mo = object({
6141
+ }), lo = object({
6153
6142
  token: string(),
6154
6143
  email: string(),
6155
6144
  orgId: string(),
@@ -6171,54 +6160,54 @@ var Z = object({
6171
6160
  ]),
6172
6161
  expiresAt: string(),
6173
6162
  memberCount: number().optional()
6174
- }), ho = object({
6163
+ }), uo = object({
6175
6164
  email: string().email(),
6176
6165
  role: _enum(["admin", "member"]).optional(),
6177
6166
  message: string().max(500).optional()
6178
- }).strict(), go = object({ role: _enum(["admin", "member"]) }).strict(), _o = object({ token: string().min(1) }).strict(), vo = _enum([
6167
+ }).strict(), fo = object({ role: _enum(["admin", "member"]) }).strict(), po = object({ token: string().min(1) }).strict(), mo = _enum([
6179
6168
  "planLimit",
6180
6169
  "billingOverdue",
6181
6170
  "rebuilding",
6182
6171
  "agentNotFound"
6183
- ]), yo = _enum([
6172
+ ]), ho = _enum([
6184
6173
  "rebuilding",
6185
6174
  "provisioning",
6186
6175
  "billingOverdue"
6187
- ]), bo = object({
6176
+ ]), go = object({
6188
6177
  agentId: string(),
6189
6178
  name: string(),
6190
- avatar: F.optional(),
6179
+ avatar: L.optional(),
6191
6180
  summary: string().nullable().optional(),
6192
6181
  ownerId: string(),
6193
6182
  ownerFirstName: string(),
6194
- ownerAvatar: F.optional(),
6183
+ ownerAvatar: L.optional(),
6195
6184
  ownerLabel: string(),
6196
6185
  avatarInitial: string(),
6197
6186
  isYours: boolean(),
6198
6187
  lastMessageAt: string().datetime().nullable(),
6199
6188
  lastMessagePreview: string().nullable(),
6200
6189
  onboardedAt: string().datetime().nullable(),
6201
- desiredStatus: z.nullable(),
6202
- lifecycle: B,
6190
+ desiredStatus: V.nullable(),
6191
+ lifecycle: H,
6203
6192
  changedAt: string().datetime().optional(),
6204
6193
  detail: string().optional(),
6205
- blocker: L.optional(),
6194
+ blocker: z.optional(),
6206
6195
  canWake: boolean(),
6207
- cantWakeReason: vo.optional(),
6196
+ cantWakeReason: mo.optional(),
6208
6197
  canRebuild: boolean(),
6209
- cantRebuildReason: yo.optional()
6210
- }), xo = /* @__PURE__ */ t({
6211
- zNotificationTelemetryAck: () => To,
6212
- zNotificationTelemetryEvent: () => wo,
6213
- zRegisterDeviceRequest: () => So,
6214
- zRegisterDeviceResponse: () => Co
6215
- }), So = object({
6198
+ cantRebuildReason: ho.optional()
6199
+ }), _o = /* @__PURE__ */ t({
6200
+ zNotificationTelemetryAck: () => xo,
6201
+ zNotificationTelemetryEvent: () => bo,
6202
+ zRegisterDeviceRequest: () => vo,
6203
+ zRegisterDeviceResponse: () => yo
6204
+ }), vo = object({
6216
6205
  deviceId: string().min(1).max(64),
6217
6206
  pushToken: string().min(1).max(200),
6218
6207
  appVersion: string().max(40).optional(),
6219
6208
  osVersion: string().max(40).optional(),
6220
6209
  model: string().max(80).optional()
6221
- }), Co = object({ deviceId: string().min(1).max(64) }), wo = object({
6210
+ }), yo = object({ deviceId: string().min(1).max(64) }), bo = object({
6222
6211
  deviceId: string().min(1).max(64),
6223
6212
  kind: string().min(1).max(30),
6224
6213
  action: _enum([
@@ -6227,7 +6216,7 @@ var Z = object({
6227
6216
  "dismissed"
6228
6217
  ]),
6229
6218
  messageId: string().max(32).optional()
6230
- }), To = object({ updated: boolean() }), Eo = K.pick({
6219
+ }), xo = object({ updated: boolean() }), So = q.pick({
6231
6220
  orgId: !0,
6232
6221
  handle: !0,
6233
6222
  name: !0,
@@ -6241,13 +6230,13 @@ var Z = object({
6241
6230
  status: !0,
6242
6231
  updatedAt: !0
6243
6232
  }).extend({
6244
- avatar: $.nullable().optional(),
6245
- cover: $.nullable().optional()
6246
- }), Do = object({
6233
+ avatar: io.nullable().optional(),
6234
+ cover: io.nullable().optional()
6235
+ }), Co = object({
6247
6236
  name: string().min(1).max(255),
6248
6237
  handle: string().min(2).max(50).optional(),
6249
- timezone: J.optional()
6250
- }).strict(), Oo = K.pick({
6238
+ timezone: Y.optional()
6239
+ }).strict(), wo = q.pick({
6251
6240
  name: !0,
6252
6241
  email: !0,
6253
6242
  website: !0,
@@ -6256,14 +6245,14 @@ var Z = object({
6256
6245
  }).extend({
6257
6246
  name: string().min(1).max(255).optional(),
6258
6247
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6259
- timezone: J.optional(),
6248
+ timezone: Y.optional(),
6260
6249
  avatarMediaId: string().nullable().optional(),
6261
6250
  coverMediaId: string().nullable().optional()
6262
- }).strict(), ko = _enum([
6251
+ }).strict(), To = _enum([
6263
6252
  "success",
6264
6253
  "info",
6265
6254
  "warning"
6266
- ]), Ao = object({
6255
+ ]), Eo = object({
6267
6256
  org: object({
6268
6257
  orgId: string(),
6269
6258
  name: string(),
@@ -6272,7 +6261,7 @@ var Z = object({
6272
6261
  plan: object({
6273
6262
  key: string(),
6274
6263
  label: string(),
6275
- tone: ko,
6264
+ tone: To,
6276
6265
  status: string(),
6277
6266
  trialDaysRemaining: number().optional()
6278
6267
  }),
@@ -6293,15 +6282,15 @@ function zPaginatedResponse(e) {
6293
6282
  }
6294
6283
  //#endregion
6295
6284
  //#region ../core/dist/wire/public-services.js
6296
- var jo = object({
6285
+ var Do = object({
6297
6286
  sender: _enum(["user", "agent"]),
6298
6287
  text: string()
6299
- }), Mo = _enum([
6288
+ }), Oo = _enum([
6300
6289
  "works-now",
6301
6290
  "guided-setup",
6302
6291
  "coming-soon",
6303
6292
  "custom-workflow"
6304
- ]), No = object({
6293
+ ]), ko = object({
6305
6294
  docsUrl: string(),
6306
6295
  verifiedAt: string(),
6307
6296
  version: string().optional(),
@@ -6313,11 +6302,11 @@ var jo = object({
6313
6302
  "unversioned"
6314
6303
  ]),
6315
6304
  note: string().optional()
6316
- }), Po = object({
6305
+ }), Ao = object({
6317
6306
  key: string(),
6318
6307
  label: string(),
6319
6308
  rank: number()
6320
- }), Fo = object({
6309
+ }), jo = object({
6321
6310
  text: string(),
6322
6311
  tone: _enum([
6323
6312
  "info",
@@ -6325,7 +6314,7 @@ var jo = object({
6325
6314
  "success",
6326
6315
  "danger"
6327
6316
  ])
6328
- }), Io = object({
6317
+ }), Mo = object({
6329
6318
  serviceKey: string(),
6330
6319
  name: string(),
6331
6320
  description: string(),
@@ -6335,16 +6324,16 @@ var jo = object({
6335
6324
  category: string(),
6336
6325
  categoryLabel: string(),
6337
6326
  categoryRank: number(),
6338
- secondaryCategories: array(Po),
6339
- badges: array(Fo),
6327
+ secondaryCategories: array(Ao),
6328
+ badges: array(jo),
6340
6329
  tags: array(string()),
6341
6330
  searchAliases: array(string()),
6342
6331
  jtbd: string(),
6343
6332
  useCase: string(),
6344
6333
  demoScenario: string(),
6345
- sampleConversation: array(jo),
6346
- publicStatus: Mo,
6347
- apiVerification: No.optional(),
6334
+ sampleConversation: array(Do),
6335
+ publicStatus: Oo,
6336
+ apiVerification: ko.optional(),
6348
6337
  setupDifficulty: string(),
6349
6338
  risk: string(),
6350
6339
  price: string(),
@@ -6357,84 +6346,83 @@ var jo = object({
6357
6346
  ]),
6358
6347
  setupSummary: string().optional(),
6359
6348
  pagePath: string()
6360
- }), Lo = object({
6349
+ }), No = object({
6361
6350
  fullName: string().min(1).max(100).optional(),
6362
- linkedinUsername: W.nullable().optional(),
6351
+ linkedinUsername: K.nullable().optional(),
6363
6352
  avatarMediaId: string().nullable().optional(),
6364
6353
  primaryAgentId: string().nullable().optional(),
6365
6354
  lastActiveOrgId: string().nullable().optional()
6366
- }).strict(), Ro = /* @__PURE__ */ t({
6367
- ASSISTANT_SILENCE_CONTROLS: () => Ei,
6368
- ActionAreaSchema: () => Ir,
6369
- ActionButtonSchema: () => I,
6370
- Agent: () => ci,
6371
- AudioFormatSchema: () => Tr,
6372
- AudioMediaSchema: () => Ar,
6373
- AudioPropertiesSchema: () => Dr,
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,
6374
6363
  AuthApiError: () => AuthApiError,
6375
- BOT_API_LLM_PATH: () => Ai,
6376
- BOT_API_PATH: () => ki,
6377
- BOT_USER_AGENT: () => Ti,
6378
- ButtonDesignSchema: () => Fr,
6379
- ButtonThemeSchema: () => Pr,
6380
- CHART_THEME: () => zr,
6381
- CHAT_ISSUE_CODES: () => Hr,
6382
- CHAT_ISSUE_COPY: () => R,
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,
6383
6372
  CookieUtil: () => CookieUtil,
6384
- DEFAULT_HEARTBEAT_TIMES: () => ar,
6385
- DocumentMediaSchema: () => jr,
6386
- ERROR_CODES: () => Ri,
6387
- EnrichedAgentSchema: () => oi,
6388
- ImageFormatSchema: () => Cr,
6389
- ImageMediaSchema: () => Or,
6390
- LIFECYCLE_COLOR: () => Jr,
6391
- Logger: () => j,
6392
- MEDIA_CONTEXTS: () => yr,
6393
- MEDIA_TYPES: () => vr,
6394
- MediaContextSchema: () => br,
6395
- MediaSchema: () => F,
6396
- MediaStatusSchema: () => xr,
6397
- MediaTypeSchema: () => P,
6398
- MediaUnionSchema: () => Mr,
6399
- NavItemSchema: () => Lr,
6400
- NavListSchema: () => Rr,
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,
6401
6390
  PAGELINES_APP_CONFIG: () => i,
6402
- PERSONA_DEFAULTS: () => Qr,
6391
+ PERSONA_DEFAULTS: () => Xr,
6403
6392
  SettingsObject: () => SettingsObject,
6404
- SizeSchema: () => Nr,
6405
- SocialAccountSchema: () => gr,
6406
- SocialAccountsSchema: () => _r,
6407
- UNKNOWN_STATUS: () => qr,
6408
- VOICE_CATALOG: () => H,
6409
- VideoFormatSchema: () => wr,
6410
- VideoMediaSchema: () => kr,
6411
- VideoPropertiesSchema: () => Er,
6412
- agentSchema: () => ai,
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,
6413
6402
  apiError: () => apiError,
6414
6403
  apiOk: () => apiOk,
6415
- appleAuthSchema: () => bi,
6404
+ appleAuthSchema: () => hi,
6416
6405
  authErrorMessage: () => authErrorMessage,
6417
6406
  botApiLlmUrl: () => botApiLlmUrl,
6418
6407
  botApiUrl: () => botApiUrl,
6419
6408
  budgetMinutes: () => budgetMinutes,
6420
6409
  buildChatIssue: () => buildChatIssue,
6421
- changeEmailSchema: () => _i,
6422
- changePasswordSchema: () => vi,
6410
+ changeEmailSchema: () => pi,
6423
6411
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6424
6412
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6425
6413
  chatEventTurnId: () => chatEventTurnId,
6426
6414
  chatEventUserTurnId: () => chatEventUserTurnId,
6427
6415
  chatIssueCatalogLines: () => chatIssueCatalogLines,
6428
6416
  chatIssueToErrorData: () => chatIssueToErrorData,
6429
- cookieUtil: () => hr,
6417
+ cookieUtil: () => mr,
6430
6418
  createAgent: () => createAgent,
6431
6419
  createAgents: () => createAgents,
6432
6420
  createLogger: () => createLogger,
6433
- debug: () => fr,
6421
+ debug: () => dr,
6434
6422
  derive: () => derive,
6435
- emailSchema: () => fi,
6436
- enrichedUserSchema: () => wi,
6437
- error: () => lr,
6423
+ emailSchema: () => di,
6424
+ enrichedUserSchema: () => yi,
6425
+ error: () => cr,
6438
6426
  errorCopy: () => errorCopy,
6439
6427
  errorFromApiResponse: () => errorFromApiResponse,
6440
6428
  extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
@@ -6443,160 +6431,157 @@ var jo = object({
6443
6431
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6444
6432
  getDefaultGradientCss: () => getDefaultGradientCss,
6445
6433
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6446
- googleAuthSchema: () => yi,
6447
- info: () => dr,
6434
+ googleAuthSchema: () => mi,
6435
+ info: () => ur,
6448
6436
  isAgentReady: () => isAgentReady,
6449
6437
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6450
6438
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6451
6439
  isOperationActive: () => isOperationActive,
6452
6440
  isTransitioning: () => isTransitioning,
6453
- linkedinUsernameSchema: () => W,
6454
- logger: () => M,
6455
- loginSchema: () => pi,
6441
+ linkedinUsernameSchema: () => K,
6442
+ logger: () => N,
6456
6443
  mapAuthErrorCode: () => mapAuthErrorCode,
6457
6444
  nanoid: () => nanoid,
6458
- notificationWire: () => xo,
6445
+ notificationWire: () => _o,
6459
6446
  objectId: () => objectId,
6460
- orgInfoSchema: () => Ci,
6461
- orgSchema: () => K,
6462
- orgWithDefaultAgentSchema: () => xi,
6447
+ orgInfoSchema: () => vi,
6448
+ orgSchema: () => q,
6449
+ orgWithDefaultAgentSchema: () => gi,
6463
6450
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6464
6451
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6465
- registerSchema: () => mi,
6466
6452
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6467
- resetPasswordSchema: () => gi,
6468
6453
  resolveVoice: () => resolveVoice,
6469
6454
  retryPolicyFor: () => retryPolicyFor,
6470
6455
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6471
- serverTransitionBudgets: () => Oi,
6456
+ serverTransitionBudgets: () => Ci,
6472
6457
  shortId: () => shortId,
6473
6458
  toAgentState: () => toAgentState,
6474
6459
  toChatStreamError: () => toChatStreamError,
6475
- trace: () => pr,
6476
- trialEligibilitySchema: () => li,
6477
- updateUserSchema: () => di,
6478
- userSchema: () => ui,
6460
+ trace: () => fr,
6461
+ trialEligibilitySchema: () => si,
6462
+ updateUserSchema: () => ui,
6463
+ userSchema: () => li,
6479
6464
  uuid: () => uuid,
6480
- verifyCodeSchema: () => hi,
6481
- warn: () => ur,
6465
+ verifyCodeSchema: () => fi,
6466
+ warn: () => lr,
6482
6467
  withChatEventTurnId: () => withChatEventTurnId,
6483
- zAcceptInvitationBody: () => _o,
6484
- zAccessibleAgentRow: () => bo,
6485
- zAgentGender: () => V,
6486
- zAgentRow: () => Ii,
6487
- zApiError: () => Vi,
6468
+ zAcceptInvitationBody: () => po,
6469
+ zAccessibleAgentRow: () => go,
6470
+ zAgentGender: () => U,
6471
+ zAgentRow: () => ji,
6472
+ zApiError: () => Ii,
6488
6473
  zApiOk: () => zApiOk,
6489
6474
  zApiResponse: () => zApiResponse,
6490
- zAppleAuthBody: () => fa,
6491
- zAuthSessionData: () => pa,
6492
- zAuthSessionResponse: () => ma,
6493
- zAutomationPrimaryChannel: () => Ni,
6494
- zBackfillBillingData: () => ka,
6495
- zBackfillCustomersData: () => Oa,
6496
- zBillingDetails: () => Ea,
6497
- zBillingInvoice: () => wa,
6498
- zBillingPaymentMethod: () => Ca,
6499
- zBillingPlanKey: () => xa,
6500
- zBillingStatus: () => Sa,
6501
- zBillingTier: () => ii,
6502
- zBotGenerateImageBody: () => ua,
6503
- zBotGenerateImageResponse: () => da,
6504
- zCancelConversationTurnBody: () => Xa,
6505
- zCancelConversationTurnResponse: () => Za,
6506
- zCantRebuildReason: () => yo,
6507
- zCantWakeReason: () => vo,
6508
- zChatAttachment: () => Ji,
6509
- zChatAttachmentInput: () => na,
6510
- zChatAttachmentPlacement: () => qi,
6511
- zChatCardSpec: () => Pa,
6512
- zChatErrorData: () => ja,
6513
- zChatEvent: () => Ma,
6514
- zChatIssue: () => L,
6515
- zChatMessage: () => ta,
6516
- zChatMessageAttentionItem: () => Qi,
6517
- zChatMessageAttentionRef: () => Yi,
6518
- zChatMessageAttentionUpdate: () => $i,
6519
- zChatMessageMetadata: () => ea,
6520
- zChatStatusData: () => Aa,
6521
- zChatToolActivityData: () => Wi,
6522
- zChatToolActivityVisual: () => Ui,
6523
- zChatVisualSpec: () => Ka,
6524
- zCompleteCheckoutData: () => Da,
6525
- zConversationLastMessage: () => qa,
6526
- zConversationParticipant: () => Z,
6527
- zConversationSummary: () => Ja,
6528
- zConversationTarget: () => ia,
6529
- zConversationUpdatedEvent: () => $a,
6530
- zCreateAgentBody: () => Pi,
6531
- zCreateConversationBody: () => aa,
6532
- zCreateConversationSessionBody: () => oa,
6533
- zCreateOrgBody: () => Do,
6534
- zDesiredStatus: () => z,
6535
- zErrorCode: () => zi,
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,
6536
6521
  zErrorResponses: () => zErrorResponses,
6537
- zFleetAgent: () => io,
6538
- zFleetSummary: () => ao,
6539
- zFleetSyncResponse: () => oo,
6540
- zHandoffConsumeBody: () => va,
6541
- zHandoffConsumeData: () => ya,
6542
- zHandoffConsumeResponse: () => ba,
6543
- zHandoffMintBody: () => ha,
6544
- zHandoffMintData: () => ga,
6545
- zHandoffMintResponse: () => _a,
6546
- zHeartbeatLocalTime: () => T,
6547
- zHeartbeatMoment: () => ir,
6548
- zIanaTimezone: () => J,
6549
- zImageAspectRatio: () => ca,
6550
- zImageResolution: () => la,
6551
- zInvitationPreview: () => mo,
6552
- zInvitationRow: () => po,
6553
- zInviteBody: () => ho,
6554
- zLifecycle: () => B,
6555
- zLifecycleVerb: () => Zr,
6556
- zLiveStatus: () => Kr,
6557
- zMarkReadBody: () => Ya,
6558
- zMediaContext: () => so,
6559
- zMediaObject: () => $,
6560
- zMediaType: () => co,
6561
- zMemberRow: () => fo,
6562
- zMessageSearchResult: () => Qa,
6563
- zOrgRow: () => Eo,
6564
- zOrgSummary: () => Ao,
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,
6533
+ 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,
6565
6550
  zPaginatedResponse: () => zPaginatedResponse,
6566
- zPlanTone: () => ko,
6567
- zProviderErrorKind: () => Bi,
6568
- zPublicServiceOverview: () => Io,
6569
- zReportMessageBody: () => sa,
6570
- zRuntimeOperation: () => Gr,
6571
- zRuntimeOperationKind: () => Ur,
6572
- zRuntimeOperationStatus: () => Wr,
6573
- zSendMessageBody: () => ra,
6574
- zSuggestedPrompt: () => Li,
6575
- zUpdateAgentBody: () => Fi,
6576
- zUpdateOrgBody: () => Oo,
6577
- zUpdateRoleBody: () => go,
6578
- zUpdateUserBody: () => Lo,
6579
- zUploadMediaBody: () => lo,
6580
- zVoiceKey: () => U,
6581
- zVoiceProviderName: () => ti,
6582
- zVoiceProviderSession: () => ei,
6583
- zVoiceSessionMint: () => ni,
6584
- zVoiceSessionMintBody: () => $r
6585
- }), zo = "1.0.0";
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";
6586
6571
  function buildContract(e = {}) {
6587
6572
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6588
6573
  let r = contractNameFor(e);
6589
6574
  r && (n[r] = toSchema(t));
6590
6575
  };
6591
- for (let [e, t] of Object.entries(Ro)) {
6592
- if (t instanceof S) {
6576
+ for (let [e, t] of Object.entries(Po)) {
6577
+ if (t instanceof C) {
6593
6578
  addSchema(e, t);
6594
6579
  continue;
6595
6580
  }
6596
- if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6581
+ if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof C && addSchema(e, n);
6597
6582
  }
6598
6583
  return {
6599
- version: zo,
6584
+ version: Fo,
6600
6585
  generatedAt: t.toISOString(),
6601
6586
  schemas: n
6602
6587
  };
@@ -6616,6 +6601,6 @@ function sortedReplacer(e, t) {
6616
6601
  return t;
6617
6602
  }
6618
6603
  //#endregion
6619
- export { zo as CONTRACT_VERSION, buildContract, serializeContract };
6604
+ export { Fo as CONTRACT_VERSION, buildContract, serializeContract };
6620
6605
 
6621
6606
  //# sourceMappingURL=contract.js.map