@mastra/slack 1.2.1 → 1.3.0
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/CHANGELOG.md +52 -0
- package/dist/index.cjs +1310 -519
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +177 -23
- package/dist/index.d.ts +177 -23
- package/dist/index.js +1310 -519
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -305,7 +305,9 @@ var DEFAULT_BOT_SCOPES = [
|
|
|
305
305
|
"users:read",
|
|
306
306
|
// Reactions and files
|
|
307
307
|
"reactions:write",
|
|
308
|
-
"files:read"
|
|
308
|
+
"files:read",
|
|
309
|
+
// Assistant mode (enables thread context for DMs and AI Assistant surface)
|
|
310
|
+
"assistant:write"
|
|
309
311
|
];
|
|
310
312
|
var DEFAULT_BOT_EVENTS = [
|
|
311
313
|
"app_mention",
|
|
@@ -338,6 +340,11 @@ function buildManifest(options) {
|
|
|
338
340
|
bot_user: {
|
|
339
341
|
display_name: name,
|
|
340
342
|
always_online: true
|
|
343
|
+
},
|
|
344
|
+
// Required by Slack when `assistant:write` scope is present.
|
|
345
|
+
// Surfaces the app in the AI Assistant picker.
|
|
346
|
+
assistant_view: {
|
|
347
|
+
assistant_description: shortDescription
|
|
341
348
|
}
|
|
342
349
|
},
|
|
343
350
|
oauth_config: {
|
|
@@ -371,7 +378,7 @@ function buildManifest(options) {
|
|
|
371
378
|
return manifest;
|
|
372
379
|
}
|
|
373
380
|
|
|
374
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
381
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
375
382
|
var external_exports = {};
|
|
376
383
|
__export(external_exports, {
|
|
377
384
|
$brand: () => $brand,
|
|
@@ -433,6 +440,7 @@ __export(external_exports, {
|
|
|
433
440
|
ZodOptional: () => ZodOptional,
|
|
434
441
|
ZodPipe: () => ZodPipe,
|
|
435
442
|
ZodPrefault: () => ZodPrefault,
|
|
443
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
436
444
|
ZodPromise: () => ZodPromise,
|
|
437
445
|
ZodReadonly: () => ZodReadonly,
|
|
438
446
|
ZodRealError: () => ZodRealError,
|
|
@@ -511,6 +519,7 @@ __export(external_exports, {
|
|
|
511
519
|
int32: () => int32,
|
|
512
520
|
int64: () => int64,
|
|
513
521
|
intersection: () => intersection,
|
|
522
|
+
invertCodec: () => invertCodec,
|
|
514
523
|
ipv4: () => ipv42,
|
|
515
524
|
ipv6: () => ipv62,
|
|
516
525
|
iso: () => iso_exports,
|
|
@@ -612,7 +621,7 @@ __export(external_exports, {
|
|
|
612
621
|
xor: () => xor
|
|
613
622
|
});
|
|
614
623
|
|
|
615
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
624
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
616
625
|
var core_exports2 = {};
|
|
617
626
|
__export(core_exports2, {
|
|
618
627
|
$ZodAny: () => $ZodAny,
|
|
@@ -692,6 +701,7 @@ __export(core_exports2, {
|
|
|
692
701
|
$ZodOptional: () => $ZodOptional,
|
|
693
702
|
$ZodPipe: () => $ZodPipe,
|
|
694
703
|
$ZodPrefault: () => $ZodPrefault,
|
|
704
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
695
705
|
$ZodPromise: () => $ZodPromise,
|
|
696
706
|
$ZodReadonly: () => $ZodReadonly,
|
|
697
707
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -890,8 +900,9 @@ __export(core_exports2, {
|
|
|
890
900
|
version: () => version
|
|
891
901
|
});
|
|
892
902
|
|
|
893
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
894
|
-
var
|
|
903
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
904
|
+
var _a;
|
|
905
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
895
906
|
status: "aborted"
|
|
896
907
|
});
|
|
897
908
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -926,10 +937,10 @@ function $constructor(name, initializer3, params) {
|
|
|
926
937
|
}
|
|
927
938
|
Object.defineProperty(Definition, "name", { value: name });
|
|
928
939
|
function _(def) {
|
|
929
|
-
var
|
|
940
|
+
var _a3;
|
|
930
941
|
const inst = params?.Parent ? new Definition() : this;
|
|
931
942
|
init(inst, def);
|
|
932
|
-
(
|
|
943
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
933
944
|
for (const fn of inst._zod.deferred) {
|
|
934
945
|
fn();
|
|
935
946
|
}
|
|
@@ -958,14 +969,15 @@ var $ZodEncodeError = class extends Error {
|
|
|
958
969
|
this.name = "ZodEncodeError";
|
|
959
970
|
}
|
|
960
971
|
};
|
|
961
|
-
|
|
972
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
973
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
962
974
|
function config(newConfig) {
|
|
963
975
|
if (newConfig)
|
|
964
976
|
Object.assign(globalConfig, newConfig);
|
|
965
977
|
return globalConfig;
|
|
966
978
|
}
|
|
967
979
|
|
|
968
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
980
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
969
981
|
var util_exports = {};
|
|
970
982
|
__export(util_exports, {
|
|
971
983
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -991,6 +1003,7 @@ __export(util_exports, {
|
|
|
991
1003
|
defineLazy: () => defineLazy,
|
|
992
1004
|
esc: () => esc,
|
|
993
1005
|
escapeRegex: () => escapeRegex,
|
|
1006
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
994
1007
|
extend: () => extend,
|
|
995
1008
|
finalizeIssue: () => finalizeIssue,
|
|
996
1009
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -1079,19 +1092,12 @@ function cleanRegex(source) {
|
|
|
1079
1092
|
return source.slice(start, end);
|
|
1080
1093
|
}
|
|
1081
1094
|
function floatSafeRemainder(val, step) {
|
|
1082
|
-
const
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
if (
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1092
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1093
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1094
|
-
return valInt % stepInt / 10 ** decCount;
|
|
1095
|
+
const ratio = val / step;
|
|
1096
|
+
const roundedRatio = Math.round(ratio);
|
|
1097
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
1098
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
1099
|
+
return 0;
|
|
1100
|
+
return ratio - roundedRatio;
|
|
1095
1101
|
}
|
|
1096
1102
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
1097
1103
|
function defineLazy(object2, key, getter) {
|
|
@@ -1173,7 +1179,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
1173
1179
|
function isObject(data) {
|
|
1174
1180
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
1175
1181
|
}
|
|
1176
|
-
var allowsEval = cached(() => {
|
|
1182
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
1183
|
+
if (globalConfig.jitless) {
|
|
1184
|
+
return false;
|
|
1185
|
+
}
|
|
1177
1186
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
1178
1187
|
return false;
|
|
1179
1188
|
}
|
|
@@ -1206,6 +1215,10 @@ function shallowClone(o) {
|
|
|
1206
1215
|
return { ...o };
|
|
1207
1216
|
if (Array.isArray(o))
|
|
1208
1217
|
return [...o];
|
|
1218
|
+
if (o instanceof Map)
|
|
1219
|
+
return new Map(o);
|
|
1220
|
+
if (o instanceof Set)
|
|
1221
|
+
return new Set(o);
|
|
1209
1222
|
return o;
|
|
1210
1223
|
}
|
|
1211
1224
|
function numKeys(data) {
|
|
@@ -1262,7 +1275,14 @@ var getParsedType = (data) => {
|
|
|
1262
1275
|
}
|
|
1263
1276
|
};
|
|
1264
1277
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
1265
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1278
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1279
|
+
"string",
|
|
1280
|
+
"number",
|
|
1281
|
+
"bigint",
|
|
1282
|
+
"boolean",
|
|
1283
|
+
"symbol",
|
|
1284
|
+
"undefined"
|
|
1285
|
+
]);
|
|
1266
1286
|
function escapeRegex(str) {
|
|
1267
1287
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1268
1288
|
}
|
|
@@ -1431,6 +1451,9 @@ function safeExtend(schema, shape) {
|
|
|
1431
1451
|
return clone(schema, def);
|
|
1432
1452
|
}
|
|
1433
1453
|
function merge(a, b) {
|
|
1454
|
+
if (a._zod.def.checks?.length) {
|
|
1455
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1456
|
+
}
|
|
1434
1457
|
const def = mergeDefs(a._zod.def, {
|
|
1435
1458
|
get shape() {
|
|
1436
1459
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1440,8 +1463,7 @@ function merge(a, b) {
|
|
|
1440
1463
|
get catchall() {
|
|
1441
1464
|
return b._zod.def.catchall;
|
|
1442
1465
|
},
|
|
1443
|
-
checks: []
|
|
1444
|
-
// delete existing checks
|
|
1466
|
+
checks: b._zod.def.checks ?? []
|
|
1445
1467
|
});
|
|
1446
1468
|
return clone(a, def);
|
|
1447
1469
|
}
|
|
@@ -1524,10 +1546,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1524
1546
|
}
|
|
1525
1547
|
return false;
|
|
1526
1548
|
}
|
|
1549
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1550
|
+
if (x.aborted === true)
|
|
1551
|
+
return true;
|
|
1552
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1553
|
+
if (x.issues[i]?.continue === false) {
|
|
1554
|
+
return true;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
return false;
|
|
1558
|
+
}
|
|
1527
1559
|
function prefixIssues(path, issues) {
|
|
1528
1560
|
return issues.map((iss) => {
|
|
1529
|
-
var
|
|
1530
|
-
(
|
|
1561
|
+
var _a3;
|
|
1562
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1531
1563
|
iss.path.unshift(path);
|
|
1532
1564
|
return iss;
|
|
1533
1565
|
});
|
|
@@ -1536,17 +1568,14 @@ function unwrapMessage(message) {
|
|
|
1536
1568
|
return typeof message === "string" ? message : message?.message;
|
|
1537
1569
|
}
|
|
1538
1570
|
function finalizeIssue(iss, ctx, config2) {
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
delete full.continue;
|
|
1546
|
-
if (!ctx?.reportInput) {
|
|
1547
|
-
delete full.input;
|
|
1571
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
1572
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1573
|
+
rest.path ?? (rest.path = []);
|
|
1574
|
+
rest.message = message;
|
|
1575
|
+
if (ctx?.reportInput) {
|
|
1576
|
+
rest.input = _input;
|
|
1548
1577
|
}
|
|
1549
|
-
return
|
|
1578
|
+
return rest;
|
|
1550
1579
|
}
|
|
1551
1580
|
function getSizableOrigin(input) {
|
|
1552
1581
|
if (input instanceof Set)
|
|
@@ -1644,7 +1673,7 @@ var Class = class {
|
|
|
1644
1673
|
}
|
|
1645
1674
|
};
|
|
1646
1675
|
|
|
1647
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1676
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1648
1677
|
var initializer = (inst, def) => {
|
|
1649
1678
|
inst.name = "$ZodError";
|
|
1650
1679
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1663,10 +1692,10 @@ var initializer = (inst, def) => {
|
|
|
1663
1692
|
};
|
|
1664
1693
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1665
1694
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1666
|
-
function flattenError(
|
|
1695
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1667
1696
|
const fieldErrors = {};
|
|
1668
1697
|
const formErrors = [];
|
|
1669
|
-
for (const sub of
|
|
1698
|
+
for (const sub of error51.issues) {
|
|
1670
1699
|
if (sub.path.length > 0) {
|
|
1671
1700
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1672
1701
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1676,50 +1705,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1676
1705
|
}
|
|
1677
1706
|
return { formErrors, fieldErrors };
|
|
1678
1707
|
}
|
|
1679
|
-
function formatError(
|
|
1708
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1680
1709
|
const fieldErrors = { _errors: [] };
|
|
1681
|
-
const processError = (
|
|
1682
|
-
for (const issue2 of
|
|
1710
|
+
const processError = (error52, path = []) => {
|
|
1711
|
+
for (const issue2 of error52.issues) {
|
|
1683
1712
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1684
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1713
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1685
1714
|
} else if (issue2.code === "invalid_key") {
|
|
1686
|
-
processError({ issues: issue2.issues });
|
|
1715
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1687
1716
|
} else if (issue2.code === "invalid_element") {
|
|
1688
|
-
processError({ issues: issue2.issues });
|
|
1689
|
-
} else if (issue2.path.length === 0) {
|
|
1690
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1717
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1691
1718
|
} else {
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1719
|
+
const fullpath = [...path, ...issue2.path];
|
|
1720
|
+
if (fullpath.length === 0) {
|
|
1721
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1722
|
+
} else {
|
|
1723
|
+
let curr = fieldErrors;
|
|
1724
|
+
let i = 0;
|
|
1725
|
+
while (i < fullpath.length) {
|
|
1726
|
+
const el = fullpath[i];
|
|
1727
|
+
const terminal = i === fullpath.length - 1;
|
|
1728
|
+
if (!terminal) {
|
|
1729
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1730
|
+
} else {
|
|
1731
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1732
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1733
|
+
}
|
|
1734
|
+
curr = curr[el];
|
|
1735
|
+
i++;
|
|
1702
1736
|
}
|
|
1703
|
-
curr = curr[el];
|
|
1704
|
-
i++;
|
|
1705
1737
|
}
|
|
1706
1738
|
}
|
|
1707
1739
|
}
|
|
1708
1740
|
};
|
|
1709
|
-
processError(
|
|
1741
|
+
processError(error51);
|
|
1710
1742
|
return fieldErrors;
|
|
1711
1743
|
}
|
|
1712
|
-
function treeifyError(
|
|
1744
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1713
1745
|
const result = { errors: [] };
|
|
1714
|
-
const processError = (
|
|
1715
|
-
var
|
|
1716
|
-
for (const issue2 of
|
|
1746
|
+
const processError = (error52, path = []) => {
|
|
1747
|
+
var _a3, _b;
|
|
1748
|
+
for (const issue2 of error52.issues) {
|
|
1717
1749
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1718
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1750
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1719
1751
|
} else if (issue2.code === "invalid_key") {
|
|
1720
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1752
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1721
1753
|
} else if (issue2.code === "invalid_element") {
|
|
1722
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1754
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1723
1755
|
} else {
|
|
1724
1756
|
const fullpath = [...path, ...issue2.path];
|
|
1725
1757
|
if (fullpath.length === 0) {
|
|
@@ -1733,7 +1765,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1733
1765
|
const terminal = i === fullpath.length - 1;
|
|
1734
1766
|
if (typeof el === "string") {
|
|
1735
1767
|
curr.properties ?? (curr.properties = {});
|
|
1736
|
-
(
|
|
1768
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1737
1769
|
curr = curr.properties[el];
|
|
1738
1770
|
} else {
|
|
1739
1771
|
curr.items ?? (curr.items = []);
|
|
@@ -1748,7 +1780,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1748
1780
|
}
|
|
1749
1781
|
}
|
|
1750
1782
|
};
|
|
1751
|
-
processError(
|
|
1783
|
+
processError(error51);
|
|
1752
1784
|
return result;
|
|
1753
1785
|
}
|
|
1754
1786
|
function toDotPath(_path) {
|
|
@@ -1769,9 +1801,9 @@ function toDotPath(_path) {
|
|
|
1769
1801
|
}
|
|
1770
1802
|
return segs.join("");
|
|
1771
1803
|
}
|
|
1772
|
-
function prettifyError(
|
|
1804
|
+
function prettifyError(error51) {
|
|
1773
1805
|
const lines = [];
|
|
1774
|
-
const issues = [...
|
|
1806
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1775
1807
|
for (const issue2 of issues) {
|
|
1776
1808
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1777
1809
|
if (issue2.path?.length)
|
|
@@ -1780,9 +1812,9 @@ function prettifyError(error48) {
|
|
|
1780
1812
|
return lines.join("\n");
|
|
1781
1813
|
}
|
|
1782
1814
|
|
|
1783
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1815
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1784
1816
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1785
|
-
const ctx = _ctx ?
|
|
1817
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1786
1818
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1787
1819
|
if (result instanceof Promise) {
|
|
1788
1820
|
throw new $ZodAsyncError();
|
|
@@ -1796,7 +1828,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1796
1828
|
};
|
|
1797
1829
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1798
1830
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1799
|
-
const ctx = _ctx ?
|
|
1831
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1800
1832
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1801
1833
|
if (result instanceof Promise)
|
|
1802
1834
|
result = await result;
|
|
@@ -1821,7 +1853,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1821
1853
|
};
|
|
1822
1854
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1823
1855
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1824
|
-
const ctx = _ctx ?
|
|
1856
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1825
1857
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1826
1858
|
if (result instanceof Promise)
|
|
1827
1859
|
result = await result;
|
|
@@ -1832,7 +1864,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1832
1864
|
};
|
|
1833
1865
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1834
1866
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1835
|
-
const ctx = _ctx ?
|
|
1867
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1836
1868
|
return _parse(_Err)(schema, value, ctx);
|
|
1837
1869
|
};
|
|
1838
1870
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1841,7 +1873,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1841
1873
|
};
|
|
1842
1874
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1843
1875
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1844
|
-
const ctx = _ctx ?
|
|
1876
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1845
1877
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1846
1878
|
};
|
|
1847
1879
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1850,7 +1882,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1850
1882
|
};
|
|
1851
1883
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1852
1884
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1853
|
-
const ctx = _ctx ?
|
|
1885
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1854
1886
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1855
1887
|
};
|
|
1856
1888
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1859,7 +1891,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1859
1891
|
};
|
|
1860
1892
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1861
1893
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1862
|
-
const ctx = _ctx ?
|
|
1894
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1863
1895
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1864
1896
|
};
|
|
1865
1897
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1868,7 +1900,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1868
1900
|
};
|
|
1869
1901
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1870
1902
|
|
|
1871
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1903
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1872
1904
|
var regexes_exports = {};
|
|
1873
1905
|
__export(regexes_exports, {
|
|
1874
1906
|
base64: () => base64,
|
|
@@ -1892,6 +1924,7 @@ __export(regexes_exports, {
|
|
|
1892
1924
|
hex: () => hex,
|
|
1893
1925
|
hostname: () => hostname,
|
|
1894
1926
|
html5Email: () => html5Email,
|
|
1927
|
+
httpProtocol: () => httpProtocol,
|
|
1895
1928
|
idnEmail: () => idnEmail,
|
|
1896
1929
|
integer: () => integer,
|
|
1897
1930
|
ipv4: () => ipv4,
|
|
@@ -1930,7 +1963,7 @@ __export(regexes_exports, {
|
|
|
1930
1963
|
uuid7: () => uuid7,
|
|
1931
1964
|
xid: () => xid
|
|
1932
1965
|
});
|
|
1933
|
-
var cuid = /^[cC][
|
|
1966
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1934
1967
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1935
1968
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1936
1969
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1969,6 +2002,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1969
2002
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1970
2003
|
var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
1971
2004
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
2005
|
+
var httpProtocol = /^https?$/;
|
|
1972
2006
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1973
2007
|
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
1974
2008
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -2025,12 +2059,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2025
2059
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2026
2060
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2027
2061
|
|
|
2028
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2062
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
2029
2063
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2030
|
-
var
|
|
2064
|
+
var _a3;
|
|
2031
2065
|
inst._zod ?? (inst._zod = {});
|
|
2032
2066
|
inst._zod.def = def;
|
|
2033
|
-
(
|
|
2067
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
2034
2068
|
});
|
|
2035
2069
|
var numericOriginMap = {
|
|
2036
2070
|
number: "number",
|
|
@@ -2096,8 +2130,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2096
2130
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2097
2131
|
$ZodCheck.init(inst, def);
|
|
2098
2132
|
inst._zod.onattach.push((inst2) => {
|
|
2099
|
-
var
|
|
2100
|
-
(
|
|
2133
|
+
var _a3;
|
|
2134
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
2101
2135
|
});
|
|
2102
2136
|
inst._zod.check = (payload) => {
|
|
2103
2137
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -2230,9 +2264,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
2230
2264
|
};
|
|
2231
2265
|
});
|
|
2232
2266
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
2233
|
-
var
|
|
2267
|
+
var _a3;
|
|
2234
2268
|
$ZodCheck.init(inst, def);
|
|
2235
|
-
(
|
|
2269
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2236
2270
|
const val = payload.value;
|
|
2237
2271
|
return !nullish(val) && val.size !== void 0;
|
|
2238
2272
|
});
|
|
@@ -2258,9 +2292,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
2258
2292
|
};
|
|
2259
2293
|
});
|
|
2260
2294
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
2261
|
-
var
|
|
2295
|
+
var _a3;
|
|
2262
2296
|
$ZodCheck.init(inst, def);
|
|
2263
|
-
(
|
|
2297
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2264
2298
|
const val = payload.value;
|
|
2265
2299
|
return !nullish(val) && val.size !== void 0;
|
|
2266
2300
|
});
|
|
@@ -2286,9 +2320,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
2286
2320
|
};
|
|
2287
2321
|
});
|
|
2288
2322
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
2289
|
-
var
|
|
2323
|
+
var _a3;
|
|
2290
2324
|
$ZodCheck.init(inst, def);
|
|
2291
|
-
(
|
|
2325
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2292
2326
|
const val = payload.value;
|
|
2293
2327
|
return !nullish(val) && val.size !== void 0;
|
|
2294
2328
|
});
|
|
@@ -2316,9 +2350,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
2316
2350
|
};
|
|
2317
2351
|
});
|
|
2318
2352
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2319
|
-
var
|
|
2353
|
+
var _a3;
|
|
2320
2354
|
$ZodCheck.init(inst, def);
|
|
2321
|
-
(
|
|
2355
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2322
2356
|
const val = payload.value;
|
|
2323
2357
|
return !nullish(val) && val.length !== void 0;
|
|
2324
2358
|
});
|
|
@@ -2345,9 +2379,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2345
2379
|
};
|
|
2346
2380
|
});
|
|
2347
2381
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2348
|
-
var
|
|
2382
|
+
var _a3;
|
|
2349
2383
|
$ZodCheck.init(inst, def);
|
|
2350
|
-
(
|
|
2384
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2351
2385
|
const val = payload.value;
|
|
2352
2386
|
return !nullish(val) && val.length !== void 0;
|
|
2353
2387
|
});
|
|
@@ -2374,9 +2408,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2374
2408
|
};
|
|
2375
2409
|
});
|
|
2376
2410
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2377
|
-
var
|
|
2411
|
+
var _a3;
|
|
2378
2412
|
$ZodCheck.init(inst, def);
|
|
2379
|
-
(
|
|
2413
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2380
2414
|
const val = payload.value;
|
|
2381
2415
|
return !nullish(val) && val.length !== void 0;
|
|
2382
2416
|
});
|
|
@@ -2405,7 +2439,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2405
2439
|
};
|
|
2406
2440
|
});
|
|
2407
2441
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2408
|
-
var
|
|
2442
|
+
var _a3, _b;
|
|
2409
2443
|
$ZodCheck.init(inst, def);
|
|
2410
2444
|
inst._zod.onattach.push((inst2) => {
|
|
2411
2445
|
const bag = inst2._zod.bag;
|
|
@@ -2416,7 +2450,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2416
2450
|
}
|
|
2417
2451
|
});
|
|
2418
2452
|
if (def.pattern)
|
|
2419
|
-
(
|
|
2453
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2420
2454
|
def.pattern.lastIndex = 0;
|
|
2421
2455
|
if (def.pattern.test(payload.value))
|
|
2422
2456
|
return;
|
|
@@ -2573,7 +2607,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2573
2607
|
};
|
|
2574
2608
|
});
|
|
2575
2609
|
|
|
2576
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2610
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2577
2611
|
var Doc = class {
|
|
2578
2612
|
constructor(args = []) {
|
|
2579
2613
|
this.content = [];
|
|
@@ -2609,16 +2643,16 @@ var Doc = class {
|
|
|
2609
2643
|
}
|
|
2610
2644
|
};
|
|
2611
2645
|
|
|
2612
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2646
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2613
2647
|
var version = {
|
|
2614
2648
|
major: 4,
|
|
2615
|
-
minor:
|
|
2616
|
-
patch:
|
|
2649
|
+
minor: 4,
|
|
2650
|
+
patch: 3
|
|
2617
2651
|
};
|
|
2618
2652
|
|
|
2619
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2653
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2620
2654
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2621
|
-
var
|
|
2655
|
+
var _a3;
|
|
2622
2656
|
inst ?? (inst = {});
|
|
2623
2657
|
inst._zod.def = def;
|
|
2624
2658
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2633,7 +2667,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2633
2667
|
}
|
|
2634
2668
|
}
|
|
2635
2669
|
if (checks.length === 0) {
|
|
2636
|
-
(
|
|
2670
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2637
2671
|
inst._zod.deferred?.push(() => {
|
|
2638
2672
|
inst._zod.run = inst._zod.parse;
|
|
2639
2673
|
});
|
|
@@ -2643,6 +2677,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2643
2677
|
let asyncResult;
|
|
2644
2678
|
for (const ch of checks2) {
|
|
2645
2679
|
if (ch._zod.def.when) {
|
|
2680
|
+
if (explicitlyAborted(payload))
|
|
2681
|
+
continue;
|
|
2646
2682
|
const shouldRun = ch._zod.def.when(payload);
|
|
2647
2683
|
if (!shouldRun)
|
|
2648
2684
|
continue;
|
|
@@ -2783,6 +2819,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2783
2819
|
inst._zod.check = (payload) => {
|
|
2784
2820
|
try {
|
|
2785
2821
|
const trimmed = payload.value.trim();
|
|
2822
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2823
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2824
|
+
payload.issues.push({
|
|
2825
|
+
code: "invalid_format",
|
|
2826
|
+
format: "url",
|
|
2827
|
+
note: "Invalid URL format",
|
|
2828
|
+
input: payload.value,
|
|
2829
|
+
inst,
|
|
2830
|
+
continue: !def.abort
|
|
2831
|
+
});
|
|
2832
|
+
return;
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2786
2835
|
const url2 = new URL(trimmed);
|
|
2787
2836
|
if (def.hostname) {
|
|
2788
2837
|
def.hostname.lastIndex = 0;
|
|
@@ -2936,6 +2985,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2936
2985
|
function isValidBase64(data) {
|
|
2937
2986
|
if (data === "")
|
|
2938
2987
|
return true;
|
|
2988
|
+
if (/\s/.test(data))
|
|
2989
|
+
return false;
|
|
2939
2990
|
if (data.length % 4 !== 0)
|
|
2940
2991
|
return false;
|
|
2941
2992
|
try {
|
|
@@ -3128,8 +3179,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
3128
3179
|
$ZodType.init(inst, def);
|
|
3129
3180
|
inst._zod.pattern = _undefined;
|
|
3130
3181
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
3131
|
-
inst._zod.optin = "optional";
|
|
3132
|
-
inst._zod.optout = "optional";
|
|
3133
3182
|
inst._zod.parse = (payload, _ctx) => {
|
|
3134
3183
|
const input = payload.value;
|
|
3135
3184
|
if (typeof input === "undefined")
|
|
@@ -3258,15 +3307,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3258
3307
|
return payload;
|
|
3259
3308
|
};
|
|
3260
3309
|
});
|
|
3261
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3310
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
3311
|
+
const isPresent = key in input;
|
|
3262
3312
|
if (result.issues.length) {
|
|
3263
|
-
if (isOptionalOut && !
|
|
3313
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
3264
3314
|
return;
|
|
3265
3315
|
}
|
|
3266
3316
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3267
3317
|
}
|
|
3318
|
+
if (!isPresent && !isOptionalIn) {
|
|
3319
|
+
if (!result.issues.length) {
|
|
3320
|
+
final.issues.push({
|
|
3321
|
+
code: "invalid_type",
|
|
3322
|
+
expected: "nonoptional",
|
|
3323
|
+
input: void 0,
|
|
3324
|
+
path: [key]
|
|
3325
|
+
});
|
|
3326
|
+
}
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3268
3329
|
if (result.value === void 0) {
|
|
3269
|
-
if (
|
|
3330
|
+
if (isPresent) {
|
|
3270
3331
|
final.value[key] = void 0;
|
|
3271
3332
|
}
|
|
3272
3333
|
} else {
|
|
@@ -3294,8 +3355,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3294
3355
|
const keySet = def.keySet;
|
|
3295
3356
|
const _catchall = def.catchall._zod;
|
|
3296
3357
|
const t = _catchall.def.type;
|
|
3358
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
3297
3359
|
const isOptionalOut = _catchall.optout === "optional";
|
|
3298
3360
|
for (const key in input) {
|
|
3361
|
+
if (key === "__proto__")
|
|
3362
|
+
continue;
|
|
3299
3363
|
if (keySet.has(key))
|
|
3300
3364
|
continue;
|
|
3301
3365
|
if (t === "never") {
|
|
@@ -3304,9 +3368,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3304
3368
|
}
|
|
3305
3369
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3306
3370
|
if (r instanceof Promise) {
|
|
3307
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3371
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3308
3372
|
} else {
|
|
3309
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3373
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3310
3374
|
}
|
|
3311
3375
|
}
|
|
3312
3376
|
if (unrecognized.length) {
|
|
@@ -3372,12 +3436,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3372
3436
|
const shape = value.shape;
|
|
3373
3437
|
for (const key of value.keys) {
|
|
3374
3438
|
const el = shape[key];
|
|
3439
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3375
3440
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3376
3441
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3377
3442
|
if (r instanceof Promise) {
|
|
3378
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3443
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3379
3444
|
} else {
|
|
3380
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3445
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3381
3446
|
}
|
|
3382
3447
|
}
|
|
3383
3448
|
if (!catchall) {
|
|
@@ -3408,9 +3473,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3408
3473
|
const id = ids[key];
|
|
3409
3474
|
const k = esc(key);
|
|
3410
3475
|
const schema = shape[key];
|
|
3476
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3411
3477
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3412
3478
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3413
|
-
if (isOptionalOut) {
|
|
3479
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3414
3480
|
doc.write(`
|
|
3415
3481
|
if (${id}.issues.length) {
|
|
3416
3482
|
if (${k} in input) {
|
|
@@ -3429,6 +3495,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3429
3495
|
newResult[${k}] = ${id}.value;
|
|
3430
3496
|
}
|
|
3431
3497
|
|
|
3498
|
+
`);
|
|
3499
|
+
} else if (!isOptionalIn) {
|
|
3500
|
+
doc.write(`
|
|
3501
|
+
const ${id}_present = ${k} in input;
|
|
3502
|
+
if (${id}.issues.length) {
|
|
3503
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3504
|
+
...iss,
|
|
3505
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3506
|
+
})));
|
|
3507
|
+
}
|
|
3508
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3509
|
+
payload.issues.push({
|
|
3510
|
+
code: "invalid_type",
|
|
3511
|
+
expected: "nonoptional",
|
|
3512
|
+
input: undefined,
|
|
3513
|
+
path: [${k}]
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
if (${id}_present) {
|
|
3518
|
+
if (${id}.value === undefined) {
|
|
3519
|
+
newResult[${k}] = undefined;
|
|
3520
|
+
} else {
|
|
3521
|
+
newResult[${k}] = ${id}.value;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3432
3525
|
`);
|
|
3433
3526
|
} else {
|
|
3434
3527
|
doc.write(`
|
|
@@ -3522,10 +3615,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3522
3615
|
}
|
|
3523
3616
|
return void 0;
|
|
3524
3617
|
});
|
|
3525
|
-
const
|
|
3526
|
-
const first = def.options[0]._zod.run;
|
|
3618
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3527
3619
|
inst._zod.parse = (payload, ctx) => {
|
|
3528
|
-
if (
|
|
3620
|
+
if (first) {
|
|
3529
3621
|
return first(payload, ctx);
|
|
3530
3622
|
}
|
|
3531
3623
|
let async = false;
|
|
@@ -3578,10 +3670,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3578
3670
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3579
3671
|
$ZodUnion.init(inst, def);
|
|
3580
3672
|
def.inclusive = false;
|
|
3581
|
-
const
|
|
3582
|
-
const first = def.options[0]._zod.run;
|
|
3673
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3583
3674
|
inst._zod.parse = (payload, ctx) => {
|
|
3584
|
-
if (
|
|
3675
|
+
if (first) {
|
|
3585
3676
|
return first(payload, ctx);
|
|
3586
3677
|
}
|
|
3587
3678
|
let async = false;
|
|
@@ -3656,7 +3747,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3656
3747
|
if (opt) {
|
|
3657
3748
|
return opt._zod.run(payload, ctx);
|
|
3658
3749
|
}
|
|
3659
|
-
if (def.unionFallback) {
|
|
3750
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3660
3751
|
return _super(payload, ctx);
|
|
3661
3752
|
}
|
|
3662
3753
|
payload.issues.push({
|
|
@@ -3664,6 +3755,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3664
3755
|
errors: [],
|
|
3665
3756
|
note: "No matching discriminator",
|
|
3666
3757
|
discriminator: def.discriminator,
|
|
3758
|
+
options: Array.from(disc.value.keys()),
|
|
3667
3759
|
input,
|
|
3668
3760
|
path: [def.discriminator],
|
|
3669
3761
|
inst
|
|
@@ -3785,64 +3877,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3785
3877
|
}
|
|
3786
3878
|
payload.value = [];
|
|
3787
3879
|
const proms = [];
|
|
3788
|
-
const
|
|
3789
|
-
const
|
|
3880
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3881
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3790
3882
|
if (!def.rest) {
|
|
3791
|
-
|
|
3792
|
-
const tooSmall = input.length < optStart - 1;
|
|
3793
|
-
if (tooBig || tooSmall) {
|
|
3883
|
+
if (input.length < optinStart) {
|
|
3794
3884
|
payload.issues.push({
|
|
3795
|
-
|
|
3885
|
+
code: "too_small",
|
|
3886
|
+
minimum: optinStart,
|
|
3887
|
+
inclusive: true,
|
|
3796
3888
|
input,
|
|
3797
3889
|
inst,
|
|
3798
3890
|
origin: "array"
|
|
3799
3891
|
});
|
|
3800
3892
|
return payload;
|
|
3801
3893
|
}
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3894
|
+
if (input.length > items.length) {
|
|
3895
|
+
payload.issues.push({
|
|
3896
|
+
code: "too_big",
|
|
3897
|
+
maximum: items.length,
|
|
3898
|
+
inclusive: true,
|
|
3899
|
+
input,
|
|
3900
|
+
inst,
|
|
3901
|
+
origin: "array"
|
|
3902
|
+
});
|
|
3809
3903
|
}
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
}, ctx);
|
|
3814
|
-
if (
|
|
3815
|
-
proms.push(
|
|
3904
|
+
}
|
|
3905
|
+
const itemResults = new Array(items.length);
|
|
3906
|
+
for (let i = 0; i < items.length; i++) {
|
|
3907
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3908
|
+
if (r instanceof Promise) {
|
|
3909
|
+
proms.push(r.then((rr) => {
|
|
3910
|
+
itemResults[i] = rr;
|
|
3911
|
+
}));
|
|
3816
3912
|
} else {
|
|
3817
|
-
|
|
3913
|
+
itemResults[i] = r;
|
|
3818
3914
|
}
|
|
3819
3915
|
}
|
|
3820
3916
|
if (def.rest) {
|
|
3917
|
+
let i = items.length - 1;
|
|
3821
3918
|
const rest = input.slice(items.length);
|
|
3822
3919
|
for (const el of rest) {
|
|
3823
3920
|
i++;
|
|
3824
|
-
const result = def.rest._zod.run({
|
|
3825
|
-
value: el,
|
|
3826
|
-
issues: []
|
|
3827
|
-
}, ctx);
|
|
3921
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3828
3922
|
if (result instanceof Promise) {
|
|
3829
|
-
proms.push(result.then((
|
|
3923
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3830
3924
|
} else {
|
|
3831
3925
|
handleTupleResult(result, payload, i);
|
|
3832
3926
|
}
|
|
3833
3927
|
}
|
|
3834
3928
|
}
|
|
3835
|
-
if (proms.length)
|
|
3836
|
-
return Promise.all(proms).then(() => payload);
|
|
3837
|
-
|
|
3929
|
+
if (proms.length) {
|
|
3930
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3931
|
+
}
|
|
3932
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3838
3933
|
};
|
|
3839
3934
|
});
|
|
3935
|
+
function getTupleOptStart(items, key) {
|
|
3936
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3937
|
+
if (items[i]._zod[key] !== "optional")
|
|
3938
|
+
return i + 1;
|
|
3939
|
+
}
|
|
3940
|
+
return 0;
|
|
3941
|
+
}
|
|
3840
3942
|
function handleTupleResult(result, final, index) {
|
|
3841
3943
|
if (result.issues.length) {
|
|
3842
3944
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3843
3945
|
}
|
|
3844
3946
|
final.value[index] = result.value;
|
|
3845
3947
|
}
|
|
3948
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3949
|
+
for (let i = 0; i < items.length; i++) {
|
|
3950
|
+
const r = itemResults[i];
|
|
3951
|
+
const isPresent = i < input.length;
|
|
3952
|
+
if (r.issues.length) {
|
|
3953
|
+
if (!isPresent && i >= optoutStart) {
|
|
3954
|
+
final.value.length = i;
|
|
3955
|
+
break;
|
|
3956
|
+
}
|
|
3957
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3958
|
+
}
|
|
3959
|
+
final.value[i] = r.value;
|
|
3960
|
+
}
|
|
3961
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3962
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3963
|
+
final.value.length = i;
|
|
3964
|
+
} else {
|
|
3965
|
+
break;
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
return final;
|
|
3969
|
+
}
|
|
3846
3970
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3847
3971
|
$ZodType.init(inst, def);
|
|
3848
3972
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3864,19 +3988,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3864
3988
|
for (const key of values) {
|
|
3865
3989
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3866
3990
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3991
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3992
|
+
if (keyResult instanceof Promise) {
|
|
3993
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3994
|
+
}
|
|
3995
|
+
if (keyResult.issues.length) {
|
|
3996
|
+
payload.issues.push({
|
|
3997
|
+
code: "invalid_key",
|
|
3998
|
+
origin: "record",
|
|
3999
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
4000
|
+
input: key,
|
|
4001
|
+
path: [key],
|
|
4002
|
+
inst
|
|
4003
|
+
});
|
|
4004
|
+
continue;
|
|
4005
|
+
}
|
|
4006
|
+
const outKey = keyResult.value;
|
|
3867
4007
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3868
4008
|
if (result instanceof Promise) {
|
|
3869
4009
|
proms.push(result.then((result2) => {
|
|
3870
4010
|
if (result2.issues.length) {
|
|
3871
4011
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3872
4012
|
}
|
|
3873
|
-
payload.value[
|
|
4013
|
+
payload.value[outKey] = result2.value;
|
|
3874
4014
|
}));
|
|
3875
4015
|
} else {
|
|
3876
4016
|
if (result.issues.length) {
|
|
3877
4017
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3878
4018
|
}
|
|
3879
|
-
payload.value[
|
|
4019
|
+
payload.value[outKey] = result.value;
|
|
3880
4020
|
}
|
|
3881
4021
|
}
|
|
3882
4022
|
}
|
|
@@ -3900,6 +4040,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3900
4040
|
for (const key of Reflect.ownKeys(input)) {
|
|
3901
4041
|
if (key === "__proto__")
|
|
3902
4042
|
continue;
|
|
4043
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
4044
|
+
continue;
|
|
3903
4045
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3904
4046
|
if (keyResult instanceof Promise) {
|
|
3905
4047
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -4104,6 +4246,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
4104
4246
|
});
|
|
4105
4247
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4106
4248
|
$ZodType.init(inst, def);
|
|
4249
|
+
inst._zod.optin = "optional";
|
|
4107
4250
|
inst._zod.parse = (payload, ctx) => {
|
|
4108
4251
|
if (ctx.direction === "backward") {
|
|
4109
4252
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4113,6 +4256,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4113
4256
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4114
4257
|
return output.then((output2) => {
|
|
4115
4258
|
payload.value = output2;
|
|
4259
|
+
payload.fallback = true;
|
|
4116
4260
|
return payload;
|
|
4117
4261
|
});
|
|
4118
4262
|
}
|
|
@@ -4120,11 +4264,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
4120
4264
|
throw new $ZodAsyncError();
|
|
4121
4265
|
}
|
|
4122
4266
|
payload.value = _out;
|
|
4267
|
+
payload.fallback = true;
|
|
4123
4268
|
return payload;
|
|
4124
4269
|
};
|
|
4125
4270
|
});
|
|
4126
4271
|
function handleOptionalResult(result, input) {
|
|
4127
|
-
if (result.issues.length
|
|
4272
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4128
4273
|
return { issues: [], value: void 0 };
|
|
4129
4274
|
}
|
|
4130
4275
|
return result;
|
|
@@ -4142,10 +4287,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
4142
4287
|
});
|
|
4143
4288
|
inst._zod.parse = (payload, ctx) => {
|
|
4144
4289
|
if (def.innerType._zod.optin === "optional") {
|
|
4290
|
+
const input = payload.value;
|
|
4145
4291
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4146
4292
|
if (result instanceof Promise)
|
|
4147
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4148
|
-
return handleOptionalResult(result,
|
|
4293
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4294
|
+
return handleOptionalResult(result, input);
|
|
4149
4295
|
}
|
|
4150
4296
|
if (payload.value === void 0) {
|
|
4151
4297
|
return payload;
|
|
@@ -4261,7 +4407,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
4261
4407
|
});
|
|
4262
4408
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4263
4409
|
$ZodType.init(inst, def);
|
|
4264
|
-
|
|
4410
|
+
inst._zod.optin = "optional";
|
|
4265
4411
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4266
4412
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4267
4413
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4281,6 +4427,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4281
4427
|
input: payload.value
|
|
4282
4428
|
});
|
|
4283
4429
|
payload.issues = [];
|
|
4430
|
+
payload.fallback = true;
|
|
4284
4431
|
}
|
|
4285
4432
|
return payload;
|
|
4286
4433
|
});
|
|
@@ -4295,6 +4442,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4295
4442
|
input: payload.value
|
|
4296
4443
|
});
|
|
4297
4444
|
payload.issues = [];
|
|
4445
|
+
payload.fallback = true;
|
|
4298
4446
|
}
|
|
4299
4447
|
return payload;
|
|
4300
4448
|
};
|
|
@@ -4340,7 +4488,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4340
4488
|
left.aborted = true;
|
|
4341
4489
|
return left;
|
|
4342
4490
|
}
|
|
4343
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4491
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4344
4492
|
}
|
|
4345
4493
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4346
4494
|
$ZodType.init(inst, def);
|
|
@@ -4392,6 +4540,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4392
4540
|
}
|
|
4393
4541
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4394
4542
|
}
|
|
4543
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4544
|
+
$ZodPipe.init(inst, def);
|
|
4545
|
+
});
|
|
4395
4546
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4396
4547
|
$ZodType.init(inst, def);
|
|
4397
4548
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4543,7 +4694,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4543
4694
|
});
|
|
4544
4695
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4545
4696
|
$ZodType.init(inst, def);
|
|
4546
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4697
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4698
|
+
const d = def;
|
|
4699
|
+
if (!d._cachedInner)
|
|
4700
|
+
d._cachedInner = def.getter();
|
|
4701
|
+
return d._cachedInner;
|
|
4702
|
+
});
|
|
4547
4703
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4548
4704
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4549
4705
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4587,7 +4743,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4587
4743
|
}
|
|
4588
4744
|
}
|
|
4589
4745
|
|
|
4590
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4746
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4591
4747
|
var locales_exports = {};
|
|
4592
4748
|
__export(locales_exports, {
|
|
4593
4749
|
ar: () => ar_default,
|
|
@@ -4598,6 +4754,7 @@ __export(locales_exports, {
|
|
|
4598
4754
|
cs: () => cs_default,
|
|
4599
4755
|
da: () => da_default,
|
|
4600
4756
|
de: () => de_default,
|
|
4757
|
+
el: () => el_default,
|
|
4601
4758
|
en: () => en_default,
|
|
4602
4759
|
eo: () => eo_default,
|
|
4603
4760
|
es: () => es_default,
|
|
@@ -4606,6 +4763,7 @@ __export(locales_exports, {
|
|
|
4606
4763
|
fr: () => fr_default,
|
|
4607
4764
|
frCA: () => fr_CA_default,
|
|
4608
4765
|
he: () => he_default,
|
|
4766
|
+
hr: () => hr_default,
|
|
4609
4767
|
hu: () => hu_default,
|
|
4610
4768
|
hy: () => hy_default,
|
|
4611
4769
|
id: () => id_default,
|
|
@@ -4625,6 +4783,7 @@ __export(locales_exports, {
|
|
|
4625
4783
|
pl: () => pl_default,
|
|
4626
4784
|
ps: () => ps_default,
|
|
4627
4785
|
pt: () => pt_default,
|
|
4786
|
+
ro: () => ro_default,
|
|
4628
4787
|
ru: () => ru_default,
|
|
4629
4788
|
sl: () => sl_default,
|
|
4630
4789
|
sv: () => sv_default,
|
|
@@ -4641,7 +4800,7 @@ __export(locales_exports, {
|
|
|
4641
4800
|
zhTW: () => zh_TW_default
|
|
4642
4801
|
});
|
|
4643
4802
|
|
|
4644
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4803
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4645
4804
|
var error = () => {
|
|
4646
4805
|
const Sizable = {
|
|
4647
4806
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4748,7 +4907,7 @@ function ar_default() {
|
|
|
4748
4907
|
};
|
|
4749
4908
|
}
|
|
4750
4909
|
|
|
4751
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4910
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4752
4911
|
var error2 = () => {
|
|
4753
4912
|
const Sizable = {
|
|
4754
4913
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4854,7 +5013,7 @@ function az_default() {
|
|
|
4854
5013
|
};
|
|
4855
5014
|
}
|
|
4856
5015
|
|
|
4857
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5016
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4858
5017
|
function getBelarusianPlural(count, one, few, many) {
|
|
4859
5018
|
const absCount = Math.abs(count);
|
|
4860
5019
|
const lastDigit = absCount % 10;
|
|
@@ -5011,7 +5170,7 @@ function be_default() {
|
|
|
5011
5170
|
};
|
|
5012
5171
|
}
|
|
5013
5172
|
|
|
5014
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5173
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
5015
5174
|
var error4 = () => {
|
|
5016
5175
|
const Sizable = {
|
|
5017
5176
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5132,7 +5291,7 @@ function bg_default() {
|
|
|
5132
5291
|
};
|
|
5133
5292
|
}
|
|
5134
5293
|
|
|
5135
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5294
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
5136
5295
|
var error5 = () => {
|
|
5137
5296
|
const Sizable = {
|
|
5138
5297
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5241,7 +5400,7 @@ function ca_default() {
|
|
|
5241
5400
|
};
|
|
5242
5401
|
}
|
|
5243
5402
|
|
|
5244
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5403
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5245
5404
|
var error6 = () => {
|
|
5246
5405
|
const Sizable = {
|
|
5247
5406
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5353,7 +5512,7 @@ function cs_default() {
|
|
|
5353
5512
|
};
|
|
5354
5513
|
}
|
|
5355
5514
|
|
|
5356
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5515
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5357
5516
|
var error7 = () => {
|
|
5358
5517
|
const Sizable = {
|
|
5359
5518
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5469,7 +5628,7 @@ function da_default() {
|
|
|
5469
5628
|
};
|
|
5470
5629
|
}
|
|
5471
5630
|
|
|
5472
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5631
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5473
5632
|
var error8 = () => {
|
|
5474
5633
|
const Sizable = {
|
|
5475
5634
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5578,8 +5737,118 @@ function de_default() {
|
|
|
5578
5737
|
};
|
|
5579
5738
|
}
|
|
5580
5739
|
|
|
5581
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5740
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5582
5741
|
var error9 = () => {
|
|
5742
|
+
const Sizable = {
|
|
5743
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5744
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5745
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5746
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5747
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5748
|
+
};
|
|
5749
|
+
function getSizing(origin) {
|
|
5750
|
+
return Sizable[origin] ?? null;
|
|
5751
|
+
}
|
|
5752
|
+
const FormatDictionary = {
|
|
5753
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5754
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5755
|
+
url: "URL",
|
|
5756
|
+
emoji: "emoji",
|
|
5757
|
+
uuid: "UUID",
|
|
5758
|
+
uuidv4: "UUIDv4",
|
|
5759
|
+
uuidv6: "UUIDv6",
|
|
5760
|
+
nanoid: "nanoid",
|
|
5761
|
+
guid: "GUID",
|
|
5762
|
+
cuid: "cuid",
|
|
5763
|
+
cuid2: "cuid2",
|
|
5764
|
+
ulid: "ULID",
|
|
5765
|
+
xid: "XID",
|
|
5766
|
+
ksuid: "KSUID",
|
|
5767
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5768
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5769
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5770
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5771
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5772
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5773
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5774
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5775
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5776
|
+
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
5777
|
+
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
5778
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5779
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5780
|
+
jwt: "JWT",
|
|
5781
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5782
|
+
};
|
|
5783
|
+
const TypeDictionary = {
|
|
5784
|
+
nan: "NaN"
|
|
5785
|
+
};
|
|
5786
|
+
return (issue2) => {
|
|
5787
|
+
switch (issue2.code) {
|
|
5788
|
+
case "invalid_type": {
|
|
5789
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5790
|
+
const receivedType = parsedType(issue2.input);
|
|
5791
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5792
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5793
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5794
|
+
}
|
|
5795
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5796
|
+
}
|
|
5797
|
+
case "invalid_value":
|
|
5798
|
+
if (issue2.values.length === 1)
|
|
5799
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
5800
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
5801
|
+
case "too_big": {
|
|
5802
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5803
|
+
const sizing = getSizing(issue2.origin);
|
|
5804
|
+
if (sizing)
|
|
5805
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
5806
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
5807
|
+
}
|
|
5808
|
+
case "too_small": {
|
|
5809
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5810
|
+
const sizing = getSizing(issue2.origin);
|
|
5811
|
+
if (sizing) {
|
|
5812
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5813
|
+
}
|
|
5814
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
5815
|
+
}
|
|
5816
|
+
case "invalid_format": {
|
|
5817
|
+
const _issue = issue2;
|
|
5818
|
+
if (_issue.format === "starts_with") {
|
|
5819
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
5820
|
+
}
|
|
5821
|
+
if (_issue.format === "ends_with")
|
|
5822
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
5823
|
+
if (_issue.format === "includes")
|
|
5824
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
5825
|
+
if (_issue.format === "regex")
|
|
5826
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
5827
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5828
|
+
}
|
|
5829
|
+
case "not_multiple_of":
|
|
5830
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
5831
|
+
case "unrecognized_keys":
|
|
5832
|
+
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5833
|
+
case "invalid_key":
|
|
5834
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5835
|
+
case "invalid_union":
|
|
5836
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5837
|
+
case "invalid_element":
|
|
5838
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5839
|
+
default:
|
|
5840
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5841
|
+
}
|
|
5842
|
+
};
|
|
5843
|
+
};
|
|
5844
|
+
function el_default() {
|
|
5845
|
+
return {
|
|
5846
|
+
localeError: error9()
|
|
5847
|
+
};
|
|
5848
|
+
}
|
|
5849
|
+
|
|
5850
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5851
|
+
var error10 = () => {
|
|
5583
5852
|
const Sizable = {
|
|
5584
5853
|
string: { unit: "characters", verb: "to have" },
|
|
5585
5854
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5673,6 +5942,10 @@ var error9 = () => {
|
|
|
5673
5942
|
case "invalid_key":
|
|
5674
5943
|
return `Invalid key in ${issue2.origin}`;
|
|
5675
5944
|
case "invalid_union":
|
|
5945
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5946
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5947
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5948
|
+
}
|
|
5676
5949
|
return "Invalid input";
|
|
5677
5950
|
case "invalid_element":
|
|
5678
5951
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5683,12 +5956,12 @@ var error9 = () => {
|
|
|
5683
5956
|
};
|
|
5684
5957
|
function en_default() {
|
|
5685
5958
|
return {
|
|
5686
|
-
localeError:
|
|
5959
|
+
localeError: error10()
|
|
5687
5960
|
};
|
|
5688
5961
|
}
|
|
5689
5962
|
|
|
5690
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5691
|
-
var
|
|
5963
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5964
|
+
var error11 = () => {
|
|
5692
5965
|
const Sizable = {
|
|
5693
5966
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5694
5967
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5793,12 +6066,12 @@ var error10 = () => {
|
|
|
5793
6066
|
};
|
|
5794
6067
|
function eo_default() {
|
|
5795
6068
|
return {
|
|
5796
|
-
localeError:
|
|
6069
|
+
localeError: error11()
|
|
5797
6070
|
};
|
|
5798
6071
|
}
|
|
5799
6072
|
|
|
5800
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5801
|
-
var
|
|
6073
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
6074
|
+
var error12 = () => {
|
|
5802
6075
|
const Sizable = {
|
|
5803
6076
|
string: { unit: "caracteres", verb: "tener" },
|
|
5804
6077
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5926,12 +6199,12 @@ var error11 = () => {
|
|
|
5926
6199
|
};
|
|
5927
6200
|
function es_default() {
|
|
5928
6201
|
return {
|
|
5929
|
-
localeError:
|
|
6202
|
+
localeError: error12()
|
|
5930
6203
|
};
|
|
5931
6204
|
}
|
|
5932
6205
|
|
|
5933
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5934
|
-
var
|
|
6206
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
6207
|
+
var error13 = () => {
|
|
5935
6208
|
const Sizable = {
|
|
5936
6209
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5937
6210
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -6041,12 +6314,12 @@ var error12 = () => {
|
|
|
6041
6314
|
};
|
|
6042
6315
|
function fa_default() {
|
|
6043
6316
|
return {
|
|
6044
|
-
localeError:
|
|
6317
|
+
localeError: error13()
|
|
6045
6318
|
};
|
|
6046
6319
|
}
|
|
6047
6320
|
|
|
6048
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6049
|
-
var
|
|
6321
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
6322
|
+
var error14 = () => {
|
|
6050
6323
|
const Sizable = {
|
|
6051
6324
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
6052
6325
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -6154,12 +6427,12 @@ var error13 = () => {
|
|
|
6154
6427
|
};
|
|
6155
6428
|
function fi_default() {
|
|
6156
6429
|
return {
|
|
6157
|
-
localeError:
|
|
6430
|
+
localeError: error14()
|
|
6158
6431
|
};
|
|
6159
6432
|
}
|
|
6160
6433
|
|
|
6161
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6162
|
-
var
|
|
6434
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6435
|
+
var error15 = () => {
|
|
6163
6436
|
const Sizable = {
|
|
6164
6437
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6165
6438
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6200,9 +6473,27 @@ var error14 = () => {
|
|
|
6200
6473
|
template_literal: "entr\xE9e"
|
|
6201
6474
|
};
|
|
6202
6475
|
const TypeDictionary = {
|
|
6203
|
-
|
|
6476
|
+
string: "cha\xEEne",
|
|
6204
6477
|
number: "nombre",
|
|
6205
|
-
|
|
6478
|
+
int: "entier",
|
|
6479
|
+
boolean: "bool\xE9en",
|
|
6480
|
+
bigint: "grand entier",
|
|
6481
|
+
symbol: "symbole",
|
|
6482
|
+
undefined: "ind\xE9fini",
|
|
6483
|
+
null: "null",
|
|
6484
|
+
never: "jamais",
|
|
6485
|
+
void: "vide",
|
|
6486
|
+
date: "date",
|
|
6487
|
+
array: "tableau",
|
|
6488
|
+
object: "objet",
|
|
6489
|
+
tuple: "tuple",
|
|
6490
|
+
record: "enregistrement",
|
|
6491
|
+
map: "carte",
|
|
6492
|
+
set: "ensemble",
|
|
6493
|
+
file: "fichier",
|
|
6494
|
+
nonoptional: "non-optionnel",
|
|
6495
|
+
nan: "NaN",
|
|
6496
|
+
function: "fonction"
|
|
6206
6497
|
};
|
|
6207
6498
|
return (issue2) => {
|
|
6208
6499
|
switch (issue2.code) {
|
|
@@ -6223,16 +6514,15 @@ var error14 = () => {
|
|
|
6223
6514
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6224
6515
|
const sizing = getSizing(issue2.origin);
|
|
6225
6516
|
if (sizing)
|
|
6226
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6227
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6517
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6518
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6228
6519
|
}
|
|
6229
6520
|
case "too_small": {
|
|
6230
6521
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6231
6522
|
const sizing = getSizing(issue2.origin);
|
|
6232
|
-
if (sizing)
|
|
6233
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6234
|
-
}
|
|
6235
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6523
|
+
if (sizing)
|
|
6524
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6525
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6236
6526
|
}
|
|
6237
6527
|
case "invalid_format": {
|
|
6238
6528
|
const _issue = issue2;
|
|
@@ -6263,12 +6553,12 @@ var error14 = () => {
|
|
|
6263
6553
|
};
|
|
6264
6554
|
function fr_default() {
|
|
6265
6555
|
return {
|
|
6266
|
-
localeError:
|
|
6556
|
+
localeError: error15()
|
|
6267
6557
|
};
|
|
6268
6558
|
}
|
|
6269
6559
|
|
|
6270
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6271
|
-
var
|
|
6560
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6561
|
+
var error16 = () => {
|
|
6272
6562
|
const Sizable = {
|
|
6273
6563
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6274
6564
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6371,12 +6661,12 @@ var error15 = () => {
|
|
|
6371
6661
|
};
|
|
6372
6662
|
function fr_CA_default() {
|
|
6373
6663
|
return {
|
|
6374
|
-
localeError:
|
|
6664
|
+
localeError: error16()
|
|
6375
6665
|
};
|
|
6376
6666
|
}
|
|
6377
6667
|
|
|
6378
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6379
|
-
var
|
|
6668
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6669
|
+
var error17 = () => {
|
|
6380
6670
|
const TypeNames = {
|
|
6381
6671
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6382
6672
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6566,24 +6856,24 @@ var error16 = () => {
|
|
|
6566
6856
|
};
|
|
6567
6857
|
function he_default() {
|
|
6568
6858
|
return {
|
|
6569
|
-
localeError:
|
|
6859
|
+
localeError: error17()
|
|
6570
6860
|
};
|
|
6571
6861
|
}
|
|
6572
6862
|
|
|
6573
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6574
|
-
var
|
|
6863
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6864
|
+
var error18 = () => {
|
|
6575
6865
|
const Sizable = {
|
|
6576
|
-
string: { unit: "
|
|
6577
|
-
file: { unit: "
|
|
6578
|
-
array: { unit: "
|
|
6579
|
-
set: { unit: "
|
|
6866
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6867
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6868
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6869
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6580
6870
|
};
|
|
6581
6871
|
function getSizing(origin) {
|
|
6582
6872
|
return Sizable[origin] ?? null;
|
|
6583
6873
|
}
|
|
6584
6874
|
const FormatDictionary = {
|
|
6585
|
-
regex: "
|
|
6586
|
-
email: "email
|
|
6875
|
+
regex: "unos",
|
|
6876
|
+
email: "email adresa",
|
|
6587
6877
|
url: "URL",
|
|
6588
6878
|
emoji: "emoji",
|
|
6589
6879
|
uuid: "UUID",
|
|
@@ -6596,25 +6886,37 @@ var error17 = () => {
|
|
|
6596
6886
|
ulid: "ULID",
|
|
6597
6887
|
xid: "XID",
|
|
6598
6888
|
ksuid: "KSUID",
|
|
6599
|
-
datetime: "ISO
|
|
6600
|
-
date: "ISO
|
|
6601
|
-
time: "ISO
|
|
6602
|
-
duration: "ISO
|
|
6603
|
-
ipv4: "IPv4
|
|
6604
|
-
ipv6: "IPv6
|
|
6605
|
-
cidrv4: "IPv4
|
|
6606
|
-
cidrv6: "IPv6
|
|
6607
|
-
base64: "base64
|
|
6608
|
-
base64url: "base64url
|
|
6609
|
-
json_string: "JSON
|
|
6610
|
-
e164: "E.164
|
|
6889
|
+
datetime: "ISO datum i vrijeme",
|
|
6890
|
+
date: "ISO datum",
|
|
6891
|
+
time: "ISO vrijeme",
|
|
6892
|
+
duration: "ISO trajanje",
|
|
6893
|
+
ipv4: "IPv4 adresa",
|
|
6894
|
+
ipv6: "IPv6 adresa",
|
|
6895
|
+
cidrv4: "IPv4 raspon",
|
|
6896
|
+
cidrv6: "IPv6 raspon",
|
|
6897
|
+
base64: "base64 kodirani tekst",
|
|
6898
|
+
base64url: "base64url kodirani tekst",
|
|
6899
|
+
json_string: "JSON tekst",
|
|
6900
|
+
e164: "E.164 broj",
|
|
6611
6901
|
jwt: "JWT",
|
|
6612
|
-
template_literal: "
|
|
6902
|
+
template_literal: "unos"
|
|
6613
6903
|
};
|
|
6614
6904
|
const TypeDictionary = {
|
|
6615
6905
|
nan: "NaN",
|
|
6616
|
-
|
|
6617
|
-
|
|
6906
|
+
string: "tekst",
|
|
6907
|
+
number: "broj",
|
|
6908
|
+
boolean: "boolean",
|
|
6909
|
+
array: "niz",
|
|
6910
|
+
object: "objekt",
|
|
6911
|
+
set: "skup",
|
|
6912
|
+
file: "datoteka",
|
|
6913
|
+
date: "datum",
|
|
6914
|
+
bigint: "bigint",
|
|
6915
|
+
symbol: "simbol",
|
|
6916
|
+
undefined: "undefined",
|
|
6917
|
+
null: "null",
|
|
6918
|
+
function: "funkcija",
|
|
6919
|
+
map: "mapa"
|
|
6618
6920
|
};
|
|
6619
6921
|
return (issue2) => {
|
|
6620
6922
|
switch (issue2.code) {
|
|
@@ -6623,33 +6925,144 @@ var error17 = () => {
|
|
|
6623
6925
|
const receivedType = parsedType(issue2.input);
|
|
6624
6926
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6625
6927
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6626
|
-
return
|
|
6928
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6627
6929
|
}
|
|
6628
|
-
return
|
|
6930
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6629
6931
|
}
|
|
6630
6932
|
case "invalid_value":
|
|
6631
6933
|
if (issue2.values.length === 1)
|
|
6632
|
-
return
|
|
6633
|
-
return
|
|
6934
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6935
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6634
6936
|
case "too_big": {
|
|
6635
6937
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6636
6938
|
const sizing = getSizing(issue2.origin);
|
|
6939
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6637
6940
|
if (sizing)
|
|
6638
|
-
return `
|
|
6639
|
-
return `
|
|
6941
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6942
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6640
6943
|
}
|
|
6641
6944
|
case "too_small": {
|
|
6642
6945
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6643
6946
|
const sizing = getSizing(issue2.origin);
|
|
6947
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6644
6948
|
if (sizing) {
|
|
6645
|
-
return `
|
|
6949
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6646
6950
|
}
|
|
6647
|
-
return `
|
|
6951
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6648
6952
|
}
|
|
6649
6953
|
case "invalid_format": {
|
|
6650
6954
|
const _issue = issue2;
|
|
6651
6955
|
if (_issue.format === "starts_with")
|
|
6652
|
-
return
|
|
6956
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6957
|
+
if (_issue.format === "ends_with")
|
|
6958
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6959
|
+
if (_issue.format === "includes")
|
|
6960
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6961
|
+
if (_issue.format === "regex")
|
|
6962
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6963
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6964
|
+
}
|
|
6965
|
+
case "not_multiple_of":
|
|
6966
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6967
|
+
case "unrecognized_keys":
|
|
6968
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6969
|
+
case "invalid_key":
|
|
6970
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6971
|
+
case "invalid_union":
|
|
6972
|
+
return "Neispravan unos";
|
|
6973
|
+
case "invalid_element":
|
|
6974
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6975
|
+
default:
|
|
6976
|
+
return `Neispravan unos`;
|
|
6977
|
+
}
|
|
6978
|
+
};
|
|
6979
|
+
};
|
|
6980
|
+
function hr_default() {
|
|
6981
|
+
return {
|
|
6982
|
+
localeError: error18()
|
|
6983
|
+
};
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6987
|
+
var error19 = () => {
|
|
6988
|
+
const Sizable = {
|
|
6989
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6990
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6991
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6992
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6993
|
+
};
|
|
6994
|
+
function getSizing(origin) {
|
|
6995
|
+
return Sizable[origin] ?? null;
|
|
6996
|
+
}
|
|
6997
|
+
const FormatDictionary = {
|
|
6998
|
+
regex: "bemenet",
|
|
6999
|
+
email: "email c\xEDm",
|
|
7000
|
+
url: "URL",
|
|
7001
|
+
emoji: "emoji",
|
|
7002
|
+
uuid: "UUID",
|
|
7003
|
+
uuidv4: "UUIDv4",
|
|
7004
|
+
uuidv6: "UUIDv6",
|
|
7005
|
+
nanoid: "nanoid",
|
|
7006
|
+
guid: "GUID",
|
|
7007
|
+
cuid: "cuid",
|
|
7008
|
+
cuid2: "cuid2",
|
|
7009
|
+
ulid: "ULID",
|
|
7010
|
+
xid: "XID",
|
|
7011
|
+
ksuid: "KSUID",
|
|
7012
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
7013
|
+
date: "ISO d\xE1tum",
|
|
7014
|
+
time: "ISO id\u0151",
|
|
7015
|
+
duration: "ISO id\u0151intervallum",
|
|
7016
|
+
ipv4: "IPv4 c\xEDm",
|
|
7017
|
+
ipv6: "IPv6 c\xEDm",
|
|
7018
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
7019
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
7020
|
+
base64: "base64-k\xF3dolt string",
|
|
7021
|
+
base64url: "base64url-k\xF3dolt string",
|
|
7022
|
+
json_string: "JSON string",
|
|
7023
|
+
e164: "E.164 sz\xE1m",
|
|
7024
|
+
jwt: "JWT",
|
|
7025
|
+
template_literal: "bemenet"
|
|
7026
|
+
};
|
|
7027
|
+
const TypeDictionary = {
|
|
7028
|
+
nan: "NaN",
|
|
7029
|
+
number: "sz\xE1m",
|
|
7030
|
+
array: "t\xF6mb"
|
|
7031
|
+
};
|
|
7032
|
+
return (issue2) => {
|
|
7033
|
+
switch (issue2.code) {
|
|
7034
|
+
case "invalid_type": {
|
|
7035
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7036
|
+
const receivedType = parsedType(issue2.input);
|
|
7037
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7038
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7039
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7040
|
+
}
|
|
7041
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7042
|
+
}
|
|
7043
|
+
case "invalid_value":
|
|
7044
|
+
if (issue2.values.length === 1)
|
|
7045
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
7046
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
7047
|
+
case "too_big": {
|
|
7048
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7049
|
+
const sizing = getSizing(issue2.origin);
|
|
7050
|
+
if (sizing)
|
|
7051
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
7052
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
7053
|
+
}
|
|
7054
|
+
case "too_small": {
|
|
7055
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7056
|
+
const sizing = getSizing(issue2.origin);
|
|
7057
|
+
if (sizing) {
|
|
7058
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7059
|
+
}
|
|
7060
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
7061
|
+
}
|
|
7062
|
+
case "invalid_format": {
|
|
7063
|
+
const _issue = issue2;
|
|
7064
|
+
if (_issue.format === "starts_with")
|
|
7065
|
+
return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`;
|
|
6653
7066
|
if (_issue.format === "ends_with")
|
|
6654
7067
|
return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`;
|
|
6655
7068
|
if (_issue.format === "includes")
|
|
@@ -6675,11 +7088,11 @@ var error17 = () => {
|
|
|
6675
7088
|
};
|
|
6676
7089
|
function hu_default() {
|
|
6677
7090
|
return {
|
|
6678
|
-
localeError:
|
|
7091
|
+
localeError: error19()
|
|
6679
7092
|
};
|
|
6680
7093
|
}
|
|
6681
7094
|
|
|
6682
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7095
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6683
7096
|
function getArmenianPlural(count, one, many) {
|
|
6684
7097
|
return Math.abs(count) === 1 ? one : many;
|
|
6685
7098
|
}
|
|
@@ -6690,7 +7103,7 @@ function withDefiniteArticle(word) {
|
|
|
6690
7103
|
const lastChar = word[word.length - 1];
|
|
6691
7104
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6692
7105
|
}
|
|
6693
|
-
var
|
|
7106
|
+
var error20 = () => {
|
|
6694
7107
|
const Sizable = {
|
|
6695
7108
|
string: {
|
|
6696
7109
|
unit: {
|
|
@@ -6823,12 +7236,12 @@ var error18 = () => {
|
|
|
6823
7236
|
};
|
|
6824
7237
|
function hy_default() {
|
|
6825
7238
|
return {
|
|
6826
|
-
localeError:
|
|
7239
|
+
localeError: error20()
|
|
6827
7240
|
};
|
|
6828
7241
|
}
|
|
6829
7242
|
|
|
6830
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6831
|
-
var
|
|
7243
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
7244
|
+
var error21 = () => {
|
|
6832
7245
|
const Sizable = {
|
|
6833
7246
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6834
7247
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6930,12 +7343,12 @@ var error19 = () => {
|
|
|
6930
7343
|
};
|
|
6931
7344
|
function id_default() {
|
|
6932
7345
|
return {
|
|
6933
|
-
localeError:
|
|
7346
|
+
localeError: error21()
|
|
6934
7347
|
};
|
|
6935
7348
|
}
|
|
6936
7349
|
|
|
6937
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6938
|
-
var
|
|
7350
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7351
|
+
var error22 = () => {
|
|
6939
7352
|
const Sizable = {
|
|
6940
7353
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6941
7354
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -7040,12 +7453,12 @@ var error20 = () => {
|
|
|
7040
7453
|
};
|
|
7041
7454
|
function is_default() {
|
|
7042
7455
|
return {
|
|
7043
|
-
localeError:
|
|
7456
|
+
localeError: error22()
|
|
7044
7457
|
};
|
|
7045
7458
|
}
|
|
7046
7459
|
|
|
7047
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7048
|
-
var
|
|
7460
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7461
|
+
var error23 = () => {
|
|
7049
7462
|
const Sizable = {
|
|
7050
7463
|
string: { unit: "caratteri", verb: "avere" },
|
|
7051
7464
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7130,7 +7543,7 @@ var error21 = () => {
|
|
|
7130
7543
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7131
7544
|
if (_issue.format === "regex")
|
|
7132
7545
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7133
|
-
return `
|
|
7546
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7134
7547
|
}
|
|
7135
7548
|
case "not_multiple_of":
|
|
7136
7549
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7149,12 +7562,12 @@ var error21 = () => {
|
|
|
7149
7562
|
};
|
|
7150
7563
|
function it_default() {
|
|
7151
7564
|
return {
|
|
7152
|
-
localeError:
|
|
7565
|
+
localeError: error23()
|
|
7153
7566
|
};
|
|
7154
7567
|
}
|
|
7155
7568
|
|
|
7156
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7157
|
-
var
|
|
7569
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7570
|
+
var error24 = () => {
|
|
7158
7571
|
const Sizable = {
|
|
7159
7572
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
7160
7573
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -7257,12 +7670,12 @@ var error22 = () => {
|
|
|
7257
7670
|
};
|
|
7258
7671
|
function ja_default() {
|
|
7259
7672
|
return {
|
|
7260
|
-
localeError:
|
|
7673
|
+
localeError: error24()
|
|
7261
7674
|
};
|
|
7262
7675
|
}
|
|
7263
7676
|
|
|
7264
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7265
|
-
var
|
|
7677
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7678
|
+
var error25 = () => {
|
|
7266
7679
|
const Sizable = {
|
|
7267
7680
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
7268
7681
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7295,9 +7708,9 @@ var error23 = () => {
|
|
|
7295
7708
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
7296
7709
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7297
7710
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7298
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7299
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7300
|
-
json_string: "JSON \
|
|
7711
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7712
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7713
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
7301
7714
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
7302
7715
|
jwt: "JWT",
|
|
7303
7716
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -7305,7 +7718,7 @@ var error23 = () => {
|
|
|
7305
7718
|
const TypeDictionary = {
|
|
7306
7719
|
nan: "NaN",
|
|
7307
7720
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
7308
|
-
string: "\
|
|
7721
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
7309
7722
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
7310
7723
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
7311
7724
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7343,14 +7756,14 @@ var error23 = () => {
|
|
|
7343
7756
|
case "invalid_format": {
|
|
7344
7757
|
const _issue = issue2;
|
|
7345
7758
|
if (_issue.format === "starts_with") {
|
|
7346
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7759
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
7347
7760
|
}
|
|
7348
7761
|
if (_issue.format === "ends_with")
|
|
7349
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7762
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
7350
7763
|
if (_issue.format === "includes")
|
|
7351
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7764
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
7352
7765
|
if (_issue.format === "regex")
|
|
7353
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7766
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
7354
7767
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7355
7768
|
}
|
|
7356
7769
|
case "not_multiple_of":
|
|
@@ -7370,12 +7783,12 @@ var error23 = () => {
|
|
|
7370
7783
|
};
|
|
7371
7784
|
function ka_default() {
|
|
7372
7785
|
return {
|
|
7373
|
-
localeError:
|
|
7786
|
+
localeError: error25()
|
|
7374
7787
|
};
|
|
7375
7788
|
}
|
|
7376
7789
|
|
|
7377
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7378
|
-
var
|
|
7790
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7791
|
+
var error26 = () => {
|
|
7379
7792
|
const Sizable = {
|
|
7380
7793
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7381
7794
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7481,17 +7894,17 @@ var error24 = () => {
|
|
|
7481
7894
|
};
|
|
7482
7895
|
function km_default() {
|
|
7483
7896
|
return {
|
|
7484
|
-
localeError:
|
|
7897
|
+
localeError: error26()
|
|
7485
7898
|
};
|
|
7486
7899
|
}
|
|
7487
7900
|
|
|
7488
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7901
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7489
7902
|
function kh_default() {
|
|
7490
7903
|
return km_default();
|
|
7491
7904
|
}
|
|
7492
7905
|
|
|
7493
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7494
|
-
var
|
|
7906
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7907
|
+
var error27 = () => {
|
|
7495
7908
|
const Sizable = {
|
|
7496
7909
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7497
7910
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7598,11 +8011,11 @@ var error25 = () => {
|
|
|
7598
8011
|
};
|
|
7599
8012
|
function ko_default() {
|
|
7600
8013
|
return {
|
|
7601
|
-
localeError:
|
|
8014
|
+
localeError: error27()
|
|
7602
8015
|
};
|
|
7603
8016
|
}
|
|
7604
8017
|
|
|
7605
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8018
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7606
8019
|
var capitalizeFirstCharacter = (text) => {
|
|
7607
8020
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7608
8021
|
};
|
|
@@ -7616,7 +8029,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7616
8029
|
return "one";
|
|
7617
8030
|
return "few";
|
|
7618
8031
|
}
|
|
7619
|
-
var
|
|
8032
|
+
var error28 = () => {
|
|
7620
8033
|
const Sizable = {
|
|
7621
8034
|
string: {
|
|
7622
8035
|
unit: {
|
|
@@ -7802,12 +8215,12 @@ var error26 = () => {
|
|
|
7802
8215
|
};
|
|
7803
8216
|
function lt_default() {
|
|
7804
8217
|
return {
|
|
7805
|
-
localeError:
|
|
8218
|
+
localeError: error28()
|
|
7806
8219
|
};
|
|
7807
8220
|
}
|
|
7808
8221
|
|
|
7809
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7810
|
-
var
|
|
8222
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
8223
|
+
var error29 = () => {
|
|
7811
8224
|
const Sizable = {
|
|
7812
8225
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7813
8226
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7912,12 +8325,12 @@ var error27 = () => {
|
|
|
7912
8325
|
};
|
|
7913
8326
|
function mk_default() {
|
|
7914
8327
|
return {
|
|
7915
|
-
localeError:
|
|
8328
|
+
localeError: error29()
|
|
7916
8329
|
};
|
|
7917
8330
|
}
|
|
7918
8331
|
|
|
7919
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7920
|
-
var
|
|
8332
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
8333
|
+
var error30 = () => {
|
|
7921
8334
|
const Sizable = {
|
|
7922
8335
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7923
8336
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -8020,12 +8433,12 @@ var error28 = () => {
|
|
|
8020
8433
|
};
|
|
8021
8434
|
function ms_default() {
|
|
8022
8435
|
return {
|
|
8023
|
-
localeError:
|
|
8436
|
+
localeError: error30()
|
|
8024
8437
|
};
|
|
8025
8438
|
}
|
|
8026
8439
|
|
|
8027
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8028
|
-
var
|
|
8440
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8441
|
+
var error31 = () => {
|
|
8029
8442
|
const Sizable = {
|
|
8030
8443
|
string: { unit: "tekens", verb: "heeft" },
|
|
8031
8444
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -8131,12 +8544,12 @@ var error29 = () => {
|
|
|
8131
8544
|
};
|
|
8132
8545
|
function nl_default() {
|
|
8133
8546
|
return {
|
|
8134
|
-
localeError:
|
|
8547
|
+
localeError: error31()
|
|
8135
8548
|
};
|
|
8136
8549
|
}
|
|
8137
8550
|
|
|
8138
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8139
|
-
var
|
|
8551
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8552
|
+
var error32 = () => {
|
|
8140
8553
|
const Sizable = {
|
|
8141
8554
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
8142
8555
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -8240,12 +8653,12 @@ var error30 = () => {
|
|
|
8240
8653
|
};
|
|
8241
8654
|
function no_default() {
|
|
8242
8655
|
return {
|
|
8243
|
-
localeError:
|
|
8656
|
+
localeError: error32()
|
|
8244
8657
|
};
|
|
8245
8658
|
}
|
|
8246
8659
|
|
|
8247
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8248
|
-
var
|
|
8660
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8661
|
+
var error33 = () => {
|
|
8249
8662
|
const Sizable = {
|
|
8250
8663
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
8251
8664
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8350,12 +8763,12 @@ var error31 = () => {
|
|
|
8350
8763
|
};
|
|
8351
8764
|
function ota_default() {
|
|
8352
8765
|
return {
|
|
8353
|
-
localeError:
|
|
8766
|
+
localeError: error33()
|
|
8354
8767
|
};
|
|
8355
8768
|
}
|
|
8356
8769
|
|
|
8357
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8358
|
-
var
|
|
8770
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8771
|
+
var error34 = () => {
|
|
8359
8772
|
const Sizable = {
|
|
8360
8773
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8361
8774
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8465,12 +8878,12 @@ var error32 = () => {
|
|
|
8465
8878
|
};
|
|
8466
8879
|
function ps_default() {
|
|
8467
8880
|
return {
|
|
8468
|
-
localeError:
|
|
8881
|
+
localeError: error34()
|
|
8469
8882
|
};
|
|
8470
8883
|
}
|
|
8471
8884
|
|
|
8472
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8473
|
-
var
|
|
8885
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8886
|
+
var error35 = () => {
|
|
8474
8887
|
const Sizable = {
|
|
8475
8888
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8476
8889
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8575,12 +8988,12 @@ var error33 = () => {
|
|
|
8575
8988
|
};
|
|
8576
8989
|
function pl_default() {
|
|
8577
8990
|
return {
|
|
8578
|
-
localeError:
|
|
8991
|
+
localeError: error35()
|
|
8579
8992
|
};
|
|
8580
8993
|
}
|
|
8581
8994
|
|
|
8582
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8583
|
-
var
|
|
8995
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8996
|
+
var error36 = () => {
|
|
8584
8997
|
const Sizable = {
|
|
8585
8998
|
string: { unit: "caracteres", verb: "ter" },
|
|
8586
8999
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8684,11 +9097,131 @@ var error34 = () => {
|
|
|
8684
9097
|
};
|
|
8685
9098
|
function pt_default() {
|
|
8686
9099
|
return {
|
|
8687
|
-
localeError:
|
|
9100
|
+
localeError: error36()
|
|
9101
|
+
};
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9104
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
9105
|
+
var error37 = () => {
|
|
9106
|
+
const Sizable = {
|
|
9107
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
9108
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
9109
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9110
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9111
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
9112
|
+
};
|
|
9113
|
+
function getSizing(origin) {
|
|
9114
|
+
return Sizable[origin] ?? null;
|
|
9115
|
+
}
|
|
9116
|
+
const FormatDictionary = {
|
|
9117
|
+
regex: "intrare",
|
|
9118
|
+
email: "adres\u0103 de email",
|
|
9119
|
+
url: "URL",
|
|
9120
|
+
emoji: "emoji",
|
|
9121
|
+
uuid: "UUID",
|
|
9122
|
+
uuidv4: "UUIDv4",
|
|
9123
|
+
uuidv6: "UUIDv6",
|
|
9124
|
+
nanoid: "nanoid",
|
|
9125
|
+
guid: "GUID",
|
|
9126
|
+
cuid: "cuid",
|
|
9127
|
+
cuid2: "cuid2",
|
|
9128
|
+
ulid: "ULID",
|
|
9129
|
+
xid: "XID",
|
|
9130
|
+
ksuid: "KSUID",
|
|
9131
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
9132
|
+
date: "dat\u0103 ISO",
|
|
9133
|
+
time: "or\u0103 ISO",
|
|
9134
|
+
duration: "durat\u0103 ISO",
|
|
9135
|
+
ipv4: "adres\u0103 IPv4",
|
|
9136
|
+
ipv6: "adres\u0103 IPv6",
|
|
9137
|
+
mac: "adres\u0103 MAC",
|
|
9138
|
+
cidrv4: "interval IPv4",
|
|
9139
|
+
cidrv6: "interval IPv6",
|
|
9140
|
+
base64: "\u0219ir codat base64",
|
|
9141
|
+
base64url: "\u0219ir codat base64url",
|
|
9142
|
+
json_string: "\u0219ir JSON",
|
|
9143
|
+
e164: "num\u0103r E.164",
|
|
9144
|
+
jwt: "JWT",
|
|
9145
|
+
template_literal: "intrare"
|
|
9146
|
+
};
|
|
9147
|
+
const TypeDictionary = {
|
|
9148
|
+
nan: "NaN",
|
|
9149
|
+
string: "\u0219ir",
|
|
9150
|
+
number: "num\u0103r",
|
|
9151
|
+
boolean: "boolean",
|
|
9152
|
+
function: "func\u021Bie",
|
|
9153
|
+
array: "matrice",
|
|
9154
|
+
object: "obiect",
|
|
9155
|
+
undefined: "nedefinit",
|
|
9156
|
+
symbol: "simbol",
|
|
9157
|
+
bigint: "num\u0103r mare",
|
|
9158
|
+
void: "void",
|
|
9159
|
+
never: "never",
|
|
9160
|
+
map: "hart\u0103",
|
|
9161
|
+
set: "set"
|
|
9162
|
+
};
|
|
9163
|
+
return (issue2) => {
|
|
9164
|
+
switch (issue2.code) {
|
|
9165
|
+
case "invalid_type": {
|
|
9166
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9167
|
+
const receivedType = parsedType(issue2.input);
|
|
9168
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9169
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
9170
|
+
}
|
|
9171
|
+
case "invalid_value":
|
|
9172
|
+
if (issue2.values.length === 1)
|
|
9173
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
9174
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
9175
|
+
case "too_big": {
|
|
9176
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9177
|
+
const sizing = getSizing(issue2.origin);
|
|
9178
|
+
if (sizing)
|
|
9179
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
9180
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
9181
|
+
}
|
|
9182
|
+
case "too_small": {
|
|
9183
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9184
|
+
const sizing = getSizing(issue2.origin);
|
|
9185
|
+
if (sizing) {
|
|
9186
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9187
|
+
}
|
|
9188
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
9189
|
+
}
|
|
9190
|
+
case "invalid_format": {
|
|
9191
|
+
const _issue = issue2;
|
|
9192
|
+
if (_issue.format === "starts_with") {
|
|
9193
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
9194
|
+
}
|
|
9195
|
+
if (_issue.format === "ends_with")
|
|
9196
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
9197
|
+
if (_issue.format === "includes")
|
|
9198
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
9199
|
+
if (_issue.format === "regex")
|
|
9200
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
9201
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9202
|
+
}
|
|
9203
|
+
case "not_multiple_of":
|
|
9204
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
9205
|
+
case "unrecognized_keys":
|
|
9206
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
9207
|
+
case "invalid_key":
|
|
9208
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9209
|
+
case "invalid_union":
|
|
9210
|
+
return "Intrare invalid\u0103";
|
|
9211
|
+
case "invalid_element":
|
|
9212
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9213
|
+
default:
|
|
9214
|
+
return `Intrare invalid\u0103`;
|
|
9215
|
+
}
|
|
9216
|
+
};
|
|
9217
|
+
};
|
|
9218
|
+
function ro_default() {
|
|
9219
|
+
return {
|
|
9220
|
+
localeError: error37()
|
|
8688
9221
|
};
|
|
8689
9222
|
}
|
|
8690
9223
|
|
|
8691
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9224
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8692
9225
|
function getRussianPlural(count, one, few, many) {
|
|
8693
9226
|
const absCount = Math.abs(count);
|
|
8694
9227
|
const lastDigit = absCount % 10;
|
|
@@ -8704,7 +9237,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8704
9237
|
}
|
|
8705
9238
|
return many;
|
|
8706
9239
|
}
|
|
8707
|
-
var
|
|
9240
|
+
var error38 = () => {
|
|
8708
9241
|
const Sizable = {
|
|
8709
9242
|
string: {
|
|
8710
9243
|
unit: {
|
|
@@ -8841,12 +9374,12 @@ var error35 = () => {
|
|
|
8841
9374
|
};
|
|
8842
9375
|
function ru_default() {
|
|
8843
9376
|
return {
|
|
8844
|
-
localeError:
|
|
9377
|
+
localeError: error38()
|
|
8845
9378
|
};
|
|
8846
9379
|
}
|
|
8847
9380
|
|
|
8848
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8849
|
-
var
|
|
9381
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9382
|
+
var error39 = () => {
|
|
8850
9383
|
const Sizable = {
|
|
8851
9384
|
string: { unit: "znakov", verb: "imeti" },
|
|
8852
9385
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8951,12 +9484,12 @@ var error36 = () => {
|
|
|
8951
9484
|
};
|
|
8952
9485
|
function sl_default() {
|
|
8953
9486
|
return {
|
|
8954
|
-
localeError:
|
|
9487
|
+
localeError: error39()
|
|
8955
9488
|
};
|
|
8956
9489
|
}
|
|
8957
9490
|
|
|
8958
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8959
|
-
var
|
|
9491
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9492
|
+
var error40 = () => {
|
|
8960
9493
|
const Sizable = {
|
|
8961
9494
|
string: { unit: "tecken", verb: "att ha" },
|
|
8962
9495
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -9062,12 +9595,12 @@ var error37 = () => {
|
|
|
9062
9595
|
};
|
|
9063
9596
|
function sv_default() {
|
|
9064
9597
|
return {
|
|
9065
|
-
localeError:
|
|
9598
|
+
localeError: error40()
|
|
9066
9599
|
};
|
|
9067
9600
|
}
|
|
9068
9601
|
|
|
9069
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9070
|
-
var
|
|
9602
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9603
|
+
var error41 = () => {
|
|
9071
9604
|
const Sizable = {
|
|
9072
9605
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
9073
9606
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -9173,12 +9706,12 @@ var error38 = () => {
|
|
|
9173
9706
|
};
|
|
9174
9707
|
function ta_default() {
|
|
9175
9708
|
return {
|
|
9176
|
-
localeError:
|
|
9709
|
+
localeError: error41()
|
|
9177
9710
|
};
|
|
9178
9711
|
}
|
|
9179
9712
|
|
|
9180
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9181
|
-
var
|
|
9713
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9714
|
+
var error42 = () => {
|
|
9182
9715
|
const Sizable = {
|
|
9183
9716
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
9184
9717
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9284,12 +9817,12 @@ var error39 = () => {
|
|
|
9284
9817
|
};
|
|
9285
9818
|
function th_default() {
|
|
9286
9819
|
return {
|
|
9287
|
-
localeError:
|
|
9820
|
+
localeError: error42()
|
|
9288
9821
|
};
|
|
9289
9822
|
}
|
|
9290
9823
|
|
|
9291
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9292
|
-
var
|
|
9824
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9825
|
+
var error43 = () => {
|
|
9293
9826
|
const Sizable = {
|
|
9294
9827
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
9295
9828
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9390,12 +9923,12 @@ var error40 = () => {
|
|
|
9390
9923
|
};
|
|
9391
9924
|
function tr_default() {
|
|
9392
9925
|
return {
|
|
9393
|
-
localeError:
|
|
9926
|
+
localeError: error43()
|
|
9394
9927
|
};
|
|
9395
9928
|
}
|
|
9396
9929
|
|
|
9397
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9398
|
-
var
|
|
9930
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9931
|
+
var error44 = () => {
|
|
9399
9932
|
const Sizable = {
|
|
9400
9933
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9401
9934
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9499,17 +10032,17 @@ var error41 = () => {
|
|
|
9499
10032
|
};
|
|
9500
10033
|
function uk_default() {
|
|
9501
10034
|
return {
|
|
9502
|
-
localeError:
|
|
10035
|
+
localeError: error44()
|
|
9503
10036
|
};
|
|
9504
10037
|
}
|
|
9505
10038
|
|
|
9506
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10039
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9507
10040
|
function ua_default() {
|
|
9508
10041
|
return uk_default();
|
|
9509
10042
|
}
|
|
9510
10043
|
|
|
9511
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9512
|
-
var
|
|
10044
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
10045
|
+
var error45 = () => {
|
|
9513
10046
|
const Sizable = {
|
|
9514
10047
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9515
10048
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9615,17 +10148,18 @@ var error42 = () => {
|
|
|
9615
10148
|
};
|
|
9616
10149
|
function ur_default() {
|
|
9617
10150
|
return {
|
|
9618
|
-
localeError:
|
|
10151
|
+
localeError: error45()
|
|
9619
10152
|
};
|
|
9620
10153
|
}
|
|
9621
10154
|
|
|
9622
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9623
|
-
var
|
|
10155
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
10156
|
+
var error46 = () => {
|
|
9624
10157
|
const Sizable = {
|
|
9625
10158
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9626
10159
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9627
10160
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9628
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
10161
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
10162
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9629
10163
|
};
|
|
9630
10164
|
function getSizing(origin) {
|
|
9631
10165
|
return Sizable[origin] ?? null;
|
|
@@ -9725,12 +10259,12 @@ var error43 = () => {
|
|
|
9725
10259
|
};
|
|
9726
10260
|
function uz_default() {
|
|
9727
10261
|
return {
|
|
9728
|
-
localeError:
|
|
10262
|
+
localeError: error46()
|
|
9729
10263
|
};
|
|
9730
10264
|
}
|
|
9731
10265
|
|
|
9732
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9733
|
-
var
|
|
10266
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
10267
|
+
var error47 = () => {
|
|
9734
10268
|
const Sizable = {
|
|
9735
10269
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9736
10270
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9834,12 +10368,12 @@ var error44 = () => {
|
|
|
9834
10368
|
};
|
|
9835
10369
|
function vi_default() {
|
|
9836
10370
|
return {
|
|
9837
|
-
localeError:
|
|
10371
|
+
localeError: error47()
|
|
9838
10372
|
};
|
|
9839
10373
|
}
|
|
9840
10374
|
|
|
9841
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9842
|
-
var
|
|
10375
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10376
|
+
var error48 = () => {
|
|
9843
10377
|
const Sizable = {
|
|
9844
10378
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9845
10379
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9944,12 +10478,12 @@ var error45 = () => {
|
|
|
9944
10478
|
};
|
|
9945
10479
|
function zh_CN_default() {
|
|
9946
10480
|
return {
|
|
9947
|
-
localeError:
|
|
10481
|
+
localeError: error48()
|
|
9948
10482
|
};
|
|
9949
10483
|
}
|
|
9950
10484
|
|
|
9951
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9952
|
-
var
|
|
10485
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10486
|
+
var error49 = () => {
|
|
9953
10487
|
const Sizable = {
|
|
9954
10488
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9955
10489
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -10052,12 +10586,12 @@ var error46 = () => {
|
|
|
10052
10586
|
};
|
|
10053
10587
|
function zh_TW_default() {
|
|
10054
10588
|
return {
|
|
10055
|
-
localeError:
|
|
10589
|
+
localeError: error49()
|
|
10056
10590
|
};
|
|
10057
10591
|
}
|
|
10058
10592
|
|
|
10059
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10060
|
-
var
|
|
10593
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10594
|
+
var error50 = () => {
|
|
10061
10595
|
const Sizable = {
|
|
10062
10596
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
10063
10597
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -10160,12 +10694,12 @@ var error47 = () => {
|
|
|
10160
10694
|
};
|
|
10161
10695
|
function yo_default() {
|
|
10162
10696
|
return {
|
|
10163
|
-
localeError:
|
|
10697
|
+
localeError: error50()
|
|
10164
10698
|
};
|
|
10165
10699
|
}
|
|
10166
10700
|
|
|
10167
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10168
|
-
var
|
|
10701
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10702
|
+
var _a2;
|
|
10169
10703
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10170
10704
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
10171
10705
|
var $ZodRegistry = class {
|
|
@@ -10211,10 +10745,10 @@ var $ZodRegistry = class {
|
|
|
10211
10745
|
function registry() {
|
|
10212
10746
|
return new $ZodRegistry();
|
|
10213
10747
|
}
|
|
10214
|
-
(
|
|
10748
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10215
10749
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10216
10750
|
|
|
10217
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10751
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
10218
10752
|
// @__NO_SIDE_EFFECTS__
|
|
10219
10753
|
function _string(Class2, params) {
|
|
10220
10754
|
return new Class2({
|
|
@@ -11129,7 +11663,7 @@ function _refine(Class2, fn, _params) {
|
|
|
11129
11663
|
return schema;
|
|
11130
11664
|
}
|
|
11131
11665
|
// @__NO_SIDE_EFFECTS__
|
|
11132
|
-
function _superRefine(fn) {
|
|
11666
|
+
function _superRefine(fn, params) {
|
|
11133
11667
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
11134
11668
|
payload.addIssue = (issue2) => {
|
|
11135
11669
|
if (typeof issue2 === "string") {
|
|
@@ -11146,7 +11680,7 @@ function _superRefine(fn) {
|
|
|
11146
11680
|
}
|
|
11147
11681
|
};
|
|
11148
11682
|
return fn(payload.value, payload);
|
|
11149
|
-
});
|
|
11683
|
+
}, params);
|
|
11150
11684
|
return ch;
|
|
11151
11685
|
}
|
|
11152
11686
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11253,7 +11787,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11253
11787
|
return inst;
|
|
11254
11788
|
}
|
|
11255
11789
|
|
|
11256
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
11790
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
11257
11791
|
function initializeContext(params) {
|
|
11258
11792
|
let target = params?.target ?? "draft-2020-12";
|
|
11259
11793
|
if (target === "draft-4")
|
|
@@ -11276,7 +11810,7 @@ function initializeContext(params) {
|
|
|
11276
11810
|
};
|
|
11277
11811
|
}
|
|
11278
11812
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11279
|
-
var
|
|
11813
|
+
var _a3;
|
|
11280
11814
|
const def = schema._zod.def;
|
|
11281
11815
|
const seen = ctx.seen.get(schema);
|
|
11282
11816
|
if (seen) {
|
|
@@ -11323,8 +11857,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11323
11857
|
delete result.schema.examples;
|
|
11324
11858
|
delete result.schema.default;
|
|
11325
11859
|
}
|
|
11326
|
-
if (ctx.io === "input" && result.schema
|
|
11327
|
-
(
|
|
11860
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11861
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
11328
11862
|
delete result.schema._prefault;
|
|
11329
11863
|
const _result = ctx.seen.get(schema);
|
|
11330
11864
|
return _result.schema;
|
|
@@ -11505,10 +12039,15 @@ function finalize(ctx, schema) {
|
|
|
11505
12039
|
result.$id = ctx.external.uri(id);
|
|
11506
12040
|
}
|
|
11507
12041
|
Object.assign(result, root.def ?? root.schema);
|
|
12042
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
12043
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
12044
|
+
delete result.id;
|
|
11508
12045
|
const defs = ctx.external?.defs ?? {};
|
|
11509
12046
|
for (const entry of ctx.seen.entries()) {
|
|
11510
12047
|
const seen = entry[1];
|
|
11511
12048
|
if (seen.def && seen.defId) {
|
|
12049
|
+
if (seen.def.id === seen.defId)
|
|
12050
|
+
delete seen.def.id;
|
|
11512
12051
|
defs[seen.defId] = seen.def;
|
|
11513
12052
|
}
|
|
11514
12053
|
}
|
|
@@ -11564,6 +12103,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11564
12103
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11565
12104
|
}
|
|
11566
12105
|
if (def.type === "pipe") {
|
|
12106
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12107
|
+
return true;
|
|
11567
12108
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11568
12109
|
}
|
|
11569
12110
|
if (def.type === "object") {
|
|
@@ -11605,7 +12146,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11605
12146
|
return finalize(ctx, schema);
|
|
11606
12147
|
};
|
|
11607
12148
|
|
|
11608
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12149
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11609
12150
|
var formatMap = {
|
|
11610
12151
|
guid: "uuid",
|
|
11611
12152
|
url: "uri",
|
|
@@ -11653,39 +12194,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11653
12194
|
json2.type = "integer";
|
|
11654
12195
|
else
|
|
11655
12196
|
json2.type = "number";
|
|
11656
|
-
|
|
11657
|
-
|
|
12197
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
12198
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
12199
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
12200
|
+
if (exMin) {
|
|
12201
|
+
if (legacy) {
|
|
11658
12202
|
json2.minimum = exclusiveMinimum;
|
|
11659
12203
|
json2.exclusiveMinimum = true;
|
|
11660
12204
|
} else {
|
|
11661
12205
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11662
12206
|
}
|
|
11663
|
-
}
|
|
11664
|
-
if (typeof minimum === "number") {
|
|
12207
|
+
} else if (typeof minimum === "number") {
|
|
11665
12208
|
json2.minimum = minimum;
|
|
11666
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11667
|
-
if (exclusiveMinimum >= minimum)
|
|
11668
|
-
delete json2.minimum;
|
|
11669
|
-
else
|
|
11670
|
-
delete json2.exclusiveMinimum;
|
|
11671
|
-
}
|
|
11672
12209
|
}
|
|
11673
|
-
if (
|
|
11674
|
-
if (
|
|
12210
|
+
if (exMax) {
|
|
12211
|
+
if (legacy) {
|
|
11675
12212
|
json2.maximum = exclusiveMaximum;
|
|
11676
12213
|
json2.exclusiveMaximum = true;
|
|
11677
12214
|
} else {
|
|
11678
12215
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11679
12216
|
}
|
|
11680
|
-
}
|
|
11681
|
-
if (typeof maximum === "number") {
|
|
12217
|
+
} else if (typeof maximum === "number") {
|
|
11682
12218
|
json2.maximum = maximum;
|
|
11683
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11684
|
-
if (exclusiveMaximum <= maximum)
|
|
11685
|
-
delete json2.maximum;
|
|
11686
|
-
else
|
|
11687
|
-
delete json2.exclusiveMaximum;
|
|
11688
|
-
}
|
|
11689
12219
|
}
|
|
11690
12220
|
if (typeof multipleOf === "number")
|
|
11691
12221
|
json2.multipleOf = multipleOf;
|
|
@@ -11857,7 +12387,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11857
12387
|
if (typeof maximum === "number")
|
|
11858
12388
|
json2.maxItems = maximum;
|
|
11859
12389
|
json2.type = "array";
|
|
11860
|
-
json2.items = process2(def.element, ctx, {
|
|
12390
|
+
json2.items = process2(def.element, ctx, {
|
|
12391
|
+
...params,
|
|
12392
|
+
path: [...params.path, "items"]
|
|
12393
|
+
});
|
|
11861
12394
|
};
|
|
11862
12395
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11863
12396
|
const json2 = _json;
|
|
@@ -12050,7 +12583,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
12050
12583
|
};
|
|
12051
12584
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12052
12585
|
const def = schema._zod.def;
|
|
12053
|
-
const
|
|
12586
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12587
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12054
12588
|
process2(innerType, ctx, params);
|
|
12055
12589
|
const seen = ctx.seen.get(schema);
|
|
12056
12590
|
seen.ref = innerType;
|
|
@@ -12156,7 +12690,7 @@ function toJSONSchema(input, params) {
|
|
|
12156
12690
|
return finalize(ctx, input);
|
|
12157
12691
|
}
|
|
12158
12692
|
|
|
12159
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12693
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
12160
12694
|
var JSONSchemaGenerator = class {
|
|
12161
12695
|
/** @deprecated Access via ctx instead */
|
|
12162
12696
|
get metadataRegistry() {
|
|
@@ -12231,10 +12765,10 @@ var JSONSchemaGenerator = class {
|
|
|
12231
12765
|
}
|
|
12232
12766
|
};
|
|
12233
12767
|
|
|
12234
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12768
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
12235
12769
|
var json_schema_exports = {};
|
|
12236
12770
|
|
|
12237
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12771
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12238
12772
|
var schemas_exports2 = {};
|
|
12239
12773
|
__export(schemas_exports2, {
|
|
12240
12774
|
ZodAny: () => ZodAny,
|
|
@@ -12284,6 +12818,7 @@ __export(schemas_exports2, {
|
|
|
12284
12818
|
ZodOptional: () => ZodOptional,
|
|
12285
12819
|
ZodPipe: () => ZodPipe,
|
|
12286
12820
|
ZodPrefault: () => ZodPrefault,
|
|
12821
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
12287
12822
|
ZodPromise: () => ZodPromise,
|
|
12288
12823
|
ZodReadonly: () => ZodReadonly,
|
|
12289
12824
|
ZodRecord: () => ZodRecord,
|
|
@@ -12344,6 +12879,7 @@ __export(schemas_exports2, {
|
|
|
12344
12879
|
int32: () => int32,
|
|
12345
12880
|
int64: () => int64,
|
|
12346
12881
|
intersection: () => intersection,
|
|
12882
|
+
invertCodec: () => invertCodec,
|
|
12347
12883
|
ipv4: () => ipv42,
|
|
12348
12884
|
ipv6: () => ipv62,
|
|
12349
12885
|
json: () => json,
|
|
@@ -12403,7 +12939,7 @@ __export(schemas_exports2, {
|
|
|
12403
12939
|
xor: () => xor
|
|
12404
12940
|
});
|
|
12405
12941
|
|
|
12406
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12942
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
12407
12943
|
var checks_exports2 = {};
|
|
12408
12944
|
__export(checks_exports2, {
|
|
12409
12945
|
endsWith: () => _endsWith,
|
|
@@ -12437,7 +12973,7 @@ __export(checks_exports2, {
|
|
|
12437
12973
|
uppercase: () => _uppercase
|
|
12438
12974
|
});
|
|
12439
12975
|
|
|
12440
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12976
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
12441
12977
|
var iso_exports = {};
|
|
12442
12978
|
__export(iso_exports, {
|
|
12443
12979
|
ZodISODate: () => ZodISODate,
|
|
@@ -12478,7 +13014,7 @@ function duration2(params) {
|
|
|
12478
13014
|
return _isoDuration(ZodISODuration, params);
|
|
12479
13015
|
}
|
|
12480
13016
|
|
|
12481
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13017
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
12482
13018
|
var initializer2 = (inst, issues) => {
|
|
12483
13019
|
$ZodError.init(inst, issues);
|
|
12484
13020
|
inst.name = "ZodError";
|
|
@@ -12513,12 +13049,12 @@ var initializer2 = (inst, issues) => {
|
|
|
12513
13049
|
}
|
|
12514
13050
|
});
|
|
12515
13051
|
};
|
|
12516
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12517
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
13052
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
13053
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12518
13054
|
Parent: Error
|
|
12519
13055
|
});
|
|
12520
13056
|
|
|
12521
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13057
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
12522
13058
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12523
13059
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12524
13060
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12532,7 +13068,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12532
13068
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12533
13069
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12534
13070
|
|
|
12535
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13071
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
13072
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
13073
|
+
function _installLazyMethods(inst, group, methods) {
|
|
13074
|
+
const proto = Object.getPrototypeOf(inst);
|
|
13075
|
+
let installed = _installedGroups.get(proto);
|
|
13076
|
+
if (!installed) {
|
|
13077
|
+
installed = /* @__PURE__ */ new Set();
|
|
13078
|
+
_installedGroups.set(proto, installed);
|
|
13079
|
+
}
|
|
13080
|
+
if (installed.has(group))
|
|
13081
|
+
return;
|
|
13082
|
+
installed.add(group);
|
|
13083
|
+
for (const key in methods) {
|
|
13084
|
+
const fn = methods[key];
|
|
13085
|
+
Object.defineProperty(proto, key, {
|
|
13086
|
+
configurable: true,
|
|
13087
|
+
enumerable: false,
|
|
13088
|
+
get() {
|
|
13089
|
+
const bound = fn.bind(this);
|
|
13090
|
+
Object.defineProperty(this, key, {
|
|
13091
|
+
configurable: true,
|
|
13092
|
+
writable: true,
|
|
13093
|
+
enumerable: true,
|
|
13094
|
+
value: bound
|
|
13095
|
+
});
|
|
13096
|
+
return bound;
|
|
13097
|
+
},
|
|
13098
|
+
set(v) {
|
|
13099
|
+
Object.defineProperty(this, key, {
|
|
13100
|
+
configurable: true,
|
|
13101
|
+
writable: true,
|
|
13102
|
+
enumerable: true,
|
|
13103
|
+
value: v
|
|
13104
|
+
});
|
|
13105
|
+
}
|
|
13106
|
+
});
|
|
13107
|
+
}
|
|
13108
|
+
}
|
|
12536
13109
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12537
13110
|
$ZodType.init(inst, def);
|
|
12538
13111
|
Object.assign(inst["~standard"], {
|
|
@@ -12545,23 +13118,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12545
13118
|
inst.def = def;
|
|
12546
13119
|
inst.type = def.type;
|
|
12547
13120
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12548
|
-
inst.check = (...checks) => {
|
|
12549
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12550
|
-
checks: [
|
|
12551
|
-
...def.checks ?? [],
|
|
12552
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12553
|
-
]
|
|
12554
|
-
}), {
|
|
12555
|
-
parent: true
|
|
12556
|
-
});
|
|
12557
|
-
};
|
|
12558
|
-
inst.with = inst.check;
|
|
12559
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12560
|
-
inst.brand = () => inst;
|
|
12561
|
-
inst.register = ((reg, meta3) => {
|
|
12562
|
-
reg.add(inst, meta3);
|
|
12563
|
-
return inst;
|
|
12564
|
-
});
|
|
12565
13121
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12566
13122
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12567
13123
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12575,45 +13131,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12575
13131
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12576
13132
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12577
13133
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12578
|
-
inst
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
13134
|
+
_installLazyMethods(inst, "ZodType", {
|
|
13135
|
+
check(...chks) {
|
|
13136
|
+
const def2 = this.def;
|
|
13137
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
13138
|
+
checks: [
|
|
13139
|
+
...def2.checks ?? [],
|
|
13140
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
13141
|
+
]
|
|
13142
|
+
}), { parent: true });
|
|
13143
|
+
},
|
|
13144
|
+
with(...chks) {
|
|
13145
|
+
return this.check(...chks);
|
|
13146
|
+
},
|
|
13147
|
+
clone(def2, params) {
|
|
13148
|
+
return clone(this, def2, params);
|
|
13149
|
+
},
|
|
13150
|
+
brand() {
|
|
13151
|
+
return this;
|
|
13152
|
+
},
|
|
13153
|
+
register(reg, meta3) {
|
|
13154
|
+
reg.add(this, meta3);
|
|
13155
|
+
return this;
|
|
13156
|
+
},
|
|
13157
|
+
refine(check2, params) {
|
|
13158
|
+
return this.check(refine(check2, params));
|
|
13159
|
+
},
|
|
13160
|
+
superRefine(refinement, params) {
|
|
13161
|
+
return this.check(superRefine(refinement, params));
|
|
13162
|
+
},
|
|
13163
|
+
overwrite(fn) {
|
|
13164
|
+
return this.check(_overwrite(fn));
|
|
13165
|
+
},
|
|
13166
|
+
optional() {
|
|
13167
|
+
return optional(this);
|
|
13168
|
+
},
|
|
13169
|
+
exactOptional() {
|
|
13170
|
+
return exactOptional(this);
|
|
13171
|
+
},
|
|
13172
|
+
nullable() {
|
|
13173
|
+
return nullable(this);
|
|
13174
|
+
},
|
|
13175
|
+
nullish() {
|
|
13176
|
+
return optional(nullable(this));
|
|
13177
|
+
},
|
|
13178
|
+
nonoptional(params) {
|
|
13179
|
+
return nonoptional(this, params);
|
|
13180
|
+
},
|
|
13181
|
+
array() {
|
|
13182
|
+
return array(this);
|
|
13183
|
+
},
|
|
13184
|
+
or(arg) {
|
|
13185
|
+
return union([this, arg]);
|
|
13186
|
+
},
|
|
13187
|
+
and(arg) {
|
|
13188
|
+
return intersection(this, arg);
|
|
13189
|
+
},
|
|
13190
|
+
transform(tx) {
|
|
13191
|
+
return pipe(this, transform(tx));
|
|
13192
|
+
},
|
|
13193
|
+
default(d) {
|
|
13194
|
+
return _default2(this, d);
|
|
13195
|
+
},
|
|
13196
|
+
prefault(d) {
|
|
13197
|
+
return prefault(this, d);
|
|
13198
|
+
},
|
|
13199
|
+
catch(params) {
|
|
13200
|
+
return _catch2(this, params);
|
|
13201
|
+
},
|
|
13202
|
+
pipe(target) {
|
|
13203
|
+
return pipe(this, target);
|
|
13204
|
+
},
|
|
13205
|
+
readonly() {
|
|
13206
|
+
return readonly(this);
|
|
13207
|
+
},
|
|
13208
|
+
describe(description) {
|
|
13209
|
+
const cl = this.clone();
|
|
13210
|
+
globalRegistry.add(cl, { description });
|
|
13211
|
+
return cl;
|
|
13212
|
+
},
|
|
13213
|
+
meta(...args) {
|
|
13214
|
+
if (args.length === 0)
|
|
13215
|
+
return globalRegistry.get(this);
|
|
13216
|
+
const cl = this.clone();
|
|
13217
|
+
globalRegistry.add(cl, args[0]);
|
|
13218
|
+
return cl;
|
|
13219
|
+
},
|
|
13220
|
+
isOptional() {
|
|
13221
|
+
return this.safeParse(void 0).success;
|
|
13222
|
+
},
|
|
13223
|
+
isNullable() {
|
|
13224
|
+
return this.safeParse(null).success;
|
|
13225
|
+
},
|
|
13226
|
+
apply(fn) {
|
|
13227
|
+
return fn(this);
|
|
13228
|
+
}
|
|
13229
|
+
});
|
|
12600
13230
|
Object.defineProperty(inst, "description", {
|
|
12601
13231
|
get() {
|
|
12602
13232
|
return globalRegistry.get(inst)?.description;
|
|
12603
13233
|
},
|
|
12604
13234
|
configurable: true
|
|
12605
13235
|
});
|
|
12606
|
-
inst.meta = (...args) => {
|
|
12607
|
-
if (args.length === 0) {
|
|
12608
|
-
return globalRegistry.get(inst);
|
|
12609
|
-
}
|
|
12610
|
-
const cl = inst.clone();
|
|
12611
|
-
globalRegistry.add(cl, args[0]);
|
|
12612
|
-
return cl;
|
|
12613
|
-
};
|
|
12614
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12615
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12616
|
-
inst.apply = (fn) => fn(inst);
|
|
12617
13236
|
return inst;
|
|
12618
13237
|
});
|
|
12619
13238
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12624,21 +13243,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12624
13243
|
inst.format = bag.format ?? null;
|
|
12625
13244
|
inst.minLength = bag.minimum ?? null;
|
|
12626
13245
|
inst.maxLength = bag.maximum ?? null;
|
|
12627
|
-
inst
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
13246
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
13247
|
+
regex(...args) {
|
|
13248
|
+
return this.check(_regex(...args));
|
|
13249
|
+
},
|
|
13250
|
+
includes(...args) {
|
|
13251
|
+
return this.check(_includes(...args));
|
|
13252
|
+
},
|
|
13253
|
+
startsWith(...args) {
|
|
13254
|
+
return this.check(_startsWith(...args));
|
|
13255
|
+
},
|
|
13256
|
+
endsWith(...args) {
|
|
13257
|
+
return this.check(_endsWith(...args));
|
|
13258
|
+
},
|
|
13259
|
+
min(...args) {
|
|
13260
|
+
return this.check(_minLength(...args));
|
|
13261
|
+
},
|
|
13262
|
+
max(...args) {
|
|
13263
|
+
return this.check(_maxLength(...args));
|
|
13264
|
+
},
|
|
13265
|
+
length(...args) {
|
|
13266
|
+
return this.check(_length(...args));
|
|
13267
|
+
},
|
|
13268
|
+
nonempty(...args) {
|
|
13269
|
+
return this.check(_minLength(1, ...args));
|
|
13270
|
+
},
|
|
13271
|
+
lowercase(params) {
|
|
13272
|
+
return this.check(_lowercase(params));
|
|
13273
|
+
},
|
|
13274
|
+
uppercase(params) {
|
|
13275
|
+
return this.check(_uppercase(params));
|
|
13276
|
+
},
|
|
13277
|
+
trim() {
|
|
13278
|
+
return this.check(_trim());
|
|
13279
|
+
},
|
|
13280
|
+
normalize(...args) {
|
|
13281
|
+
return this.check(_normalize(...args));
|
|
13282
|
+
},
|
|
13283
|
+
toLowerCase() {
|
|
13284
|
+
return this.check(_toLowerCase());
|
|
13285
|
+
},
|
|
13286
|
+
toUpperCase() {
|
|
13287
|
+
return this.check(_toUpperCase());
|
|
13288
|
+
},
|
|
13289
|
+
slugify() {
|
|
13290
|
+
return this.check(_slugify());
|
|
13291
|
+
}
|
|
13292
|
+
});
|
|
12642
13293
|
});
|
|
12643
13294
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12644
13295
|
$ZodString.init(inst, def);
|
|
@@ -12717,7 +13368,7 @@ function url(params) {
|
|
|
12717
13368
|
}
|
|
12718
13369
|
function httpUrl(params) {
|
|
12719
13370
|
return _url(ZodURL, {
|
|
12720
|
-
protocol:
|
|
13371
|
+
protocol: regexes_exports.httpProtocol,
|
|
12721
13372
|
hostname: regexes_exports.domain,
|
|
12722
13373
|
...util_exports.normalizeParams(params)
|
|
12723
13374
|
});
|
|
@@ -12859,21 +13510,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12859
13510
|
$ZodNumber.init(inst, def);
|
|
12860
13511
|
ZodType.init(inst, def);
|
|
12861
13512
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12862
|
-
inst
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
13513
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13514
|
+
gt(value, params) {
|
|
13515
|
+
return this.check(_gt(value, params));
|
|
13516
|
+
},
|
|
13517
|
+
gte(value, params) {
|
|
13518
|
+
return this.check(_gte(value, params));
|
|
13519
|
+
},
|
|
13520
|
+
min(value, params) {
|
|
13521
|
+
return this.check(_gte(value, params));
|
|
13522
|
+
},
|
|
13523
|
+
lt(value, params) {
|
|
13524
|
+
return this.check(_lt(value, params));
|
|
13525
|
+
},
|
|
13526
|
+
lte(value, params) {
|
|
13527
|
+
return this.check(_lte(value, params));
|
|
13528
|
+
},
|
|
13529
|
+
max(value, params) {
|
|
13530
|
+
return this.check(_lte(value, params));
|
|
13531
|
+
},
|
|
13532
|
+
int(params) {
|
|
13533
|
+
return this.check(int(params));
|
|
13534
|
+
},
|
|
13535
|
+
safe(params) {
|
|
13536
|
+
return this.check(int(params));
|
|
13537
|
+
},
|
|
13538
|
+
positive(params) {
|
|
13539
|
+
return this.check(_gt(0, params));
|
|
13540
|
+
},
|
|
13541
|
+
nonnegative(params) {
|
|
13542
|
+
return this.check(_gte(0, params));
|
|
13543
|
+
},
|
|
13544
|
+
negative(params) {
|
|
13545
|
+
return this.check(_lt(0, params));
|
|
13546
|
+
},
|
|
13547
|
+
nonpositive(params) {
|
|
13548
|
+
return this.check(_lte(0, params));
|
|
13549
|
+
},
|
|
13550
|
+
multipleOf(value, params) {
|
|
13551
|
+
return this.check(_multipleOf(value, params));
|
|
13552
|
+
},
|
|
13553
|
+
step(value, params) {
|
|
13554
|
+
return this.check(_multipleOf(value, params));
|
|
13555
|
+
},
|
|
13556
|
+
finite() {
|
|
13557
|
+
return this;
|
|
13558
|
+
}
|
|
13559
|
+
});
|
|
12877
13560
|
const bag = inst._zod.bag;
|
|
12878
13561
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12879
13562
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -13020,11 +13703,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
13020
13703
|
ZodType.init(inst, def);
|
|
13021
13704
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
13022
13705
|
inst.element = def.element;
|
|
13023
|
-
inst
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13706
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13707
|
+
min(n, params) {
|
|
13708
|
+
return this.check(_minLength(n, params));
|
|
13709
|
+
},
|
|
13710
|
+
nonempty(params) {
|
|
13711
|
+
return this.check(_minLength(1, params));
|
|
13712
|
+
},
|
|
13713
|
+
max(n, params) {
|
|
13714
|
+
return this.check(_maxLength(n, params));
|
|
13715
|
+
},
|
|
13716
|
+
length(n, params) {
|
|
13717
|
+
return this.check(_length(n, params));
|
|
13718
|
+
},
|
|
13719
|
+
unwrap() {
|
|
13720
|
+
return this.element;
|
|
13721
|
+
}
|
|
13722
|
+
});
|
|
13028
13723
|
});
|
|
13029
13724
|
function array(element, params) {
|
|
13030
13725
|
return _array(ZodArray, element, params);
|
|
@@ -13040,23 +13735,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
13040
13735
|
util_exports.defineLazy(inst, "shape", () => {
|
|
13041
13736
|
return def.shape;
|
|
13042
13737
|
});
|
|
13043
|
-
inst
|
|
13044
|
-
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13738
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13739
|
+
keyof() {
|
|
13740
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13741
|
+
},
|
|
13742
|
+
catchall(catchall) {
|
|
13743
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13744
|
+
},
|
|
13745
|
+
passthrough() {
|
|
13746
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13747
|
+
},
|
|
13748
|
+
loose() {
|
|
13749
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13750
|
+
},
|
|
13751
|
+
strict() {
|
|
13752
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13753
|
+
},
|
|
13754
|
+
strip() {
|
|
13755
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13756
|
+
},
|
|
13757
|
+
extend(incoming) {
|
|
13758
|
+
return util_exports.extend(this, incoming);
|
|
13759
|
+
},
|
|
13760
|
+
safeExtend(incoming) {
|
|
13761
|
+
return util_exports.safeExtend(this, incoming);
|
|
13762
|
+
},
|
|
13763
|
+
merge(other) {
|
|
13764
|
+
return util_exports.merge(this, other);
|
|
13765
|
+
},
|
|
13766
|
+
pick(mask) {
|
|
13767
|
+
return util_exports.pick(this, mask);
|
|
13768
|
+
},
|
|
13769
|
+
omit(mask) {
|
|
13770
|
+
return util_exports.omit(this, mask);
|
|
13771
|
+
},
|
|
13772
|
+
partial(...args) {
|
|
13773
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13774
|
+
},
|
|
13775
|
+
required(...args) {
|
|
13776
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13777
|
+
}
|
|
13778
|
+
});
|
|
13060
13779
|
});
|
|
13061
13780
|
function object(shape, params) {
|
|
13062
13781
|
const def = {
|
|
@@ -13161,6 +13880,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
13161
13880
|
inst.valueType = def.valueType;
|
|
13162
13881
|
});
|
|
13163
13882
|
function record(keyType, valueType, params) {
|
|
13883
|
+
if (!valueType || !valueType._zod) {
|
|
13884
|
+
return new ZodRecord({
|
|
13885
|
+
type: "record",
|
|
13886
|
+
keyType: string2(),
|
|
13887
|
+
valueType: keyType,
|
|
13888
|
+
...util_exports.normalizeParams(valueType)
|
|
13889
|
+
});
|
|
13890
|
+
}
|
|
13164
13891
|
return new ZodRecord({
|
|
13165
13892
|
type: "record",
|
|
13166
13893
|
keyType,
|
|
@@ -13332,10 +14059,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
13332
14059
|
if (output instanceof Promise) {
|
|
13333
14060
|
return output.then((output2) => {
|
|
13334
14061
|
payload.value = output2;
|
|
14062
|
+
payload.fallback = true;
|
|
13335
14063
|
return payload;
|
|
13336
14064
|
});
|
|
13337
14065
|
}
|
|
13338
14066
|
payload.value = output;
|
|
14067
|
+
payload.fallback = true;
|
|
13339
14068
|
return payload;
|
|
13340
14069
|
};
|
|
13341
14070
|
});
|
|
@@ -13490,6 +14219,20 @@ function codec(in_, out, params) {
|
|
|
13490
14219
|
reverseTransform: params.encode
|
|
13491
14220
|
});
|
|
13492
14221
|
}
|
|
14222
|
+
function invertCodec(codec2) {
|
|
14223
|
+
const def = codec2._zod.def;
|
|
14224
|
+
return new ZodCodec({
|
|
14225
|
+
type: "pipe",
|
|
14226
|
+
in: def.out,
|
|
14227
|
+
out: def.in,
|
|
14228
|
+
transform: def.reverseTransform,
|
|
14229
|
+
reverseTransform: def.transform
|
|
14230
|
+
});
|
|
14231
|
+
}
|
|
14232
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
14233
|
+
ZodPipe.init(inst, def);
|
|
14234
|
+
$ZodPreprocess.init(inst, def);
|
|
14235
|
+
});
|
|
13493
14236
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13494
14237
|
$ZodReadonly.init(inst, def);
|
|
13495
14238
|
ZodType.init(inst, def);
|
|
@@ -13569,8 +14312,8 @@ function custom(fn, _params) {
|
|
|
13569
14312
|
function refine(fn, _params = {}) {
|
|
13570
14313
|
return _refine(ZodCustom, fn, _params);
|
|
13571
14314
|
}
|
|
13572
|
-
function superRefine(fn) {
|
|
13573
|
-
return _superRefine(fn);
|
|
14315
|
+
function superRefine(fn, params) {
|
|
14316
|
+
return _superRefine(fn, params);
|
|
13574
14317
|
}
|
|
13575
14318
|
var describe2 = describe;
|
|
13576
14319
|
var meta2 = meta;
|
|
@@ -13608,10 +14351,14 @@ function json(params) {
|
|
|
13608
14351
|
return jsonSchema;
|
|
13609
14352
|
}
|
|
13610
14353
|
function preprocess(fn, schema) {
|
|
13611
|
-
return
|
|
14354
|
+
return new ZodPreprocess({
|
|
14355
|
+
type: "pipe",
|
|
14356
|
+
in: transform(fn),
|
|
14357
|
+
out: schema
|
|
14358
|
+
});
|
|
13612
14359
|
}
|
|
13613
14360
|
|
|
13614
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14361
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13615
14362
|
var ZodIssueCode = {
|
|
13616
14363
|
invalid_type: "invalid_type",
|
|
13617
14364
|
too_big: "too_big",
|
|
@@ -13637,7 +14384,7 @@ var ZodFirstPartyTypeKind;
|
|
|
13637
14384
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13638
14385
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13639
14386
|
|
|
13640
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14387
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13641
14388
|
var z = {
|
|
13642
14389
|
...schemas_exports2,
|
|
13643
14390
|
...checks_exports2,
|
|
@@ -14029,12 +14776,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
14029
14776
|
default:
|
|
14030
14777
|
throw new Error(`Unsupported type: ${type}`);
|
|
14031
14778
|
}
|
|
14032
|
-
if (schema.description) {
|
|
14033
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
14034
|
-
}
|
|
14035
|
-
if (schema.default !== void 0) {
|
|
14036
|
-
zodSchema = zodSchema.default(schema.default);
|
|
14037
|
-
}
|
|
14038
14779
|
return zodSchema;
|
|
14039
14780
|
}
|
|
14040
14781
|
function convertSchema(schema, ctx) {
|
|
@@ -14071,6 +14812,9 @@ function convertSchema(schema, ctx) {
|
|
|
14071
14812
|
if (schema.readOnly === true) {
|
|
14072
14813
|
baseSchema = z.readonly(baseSchema);
|
|
14073
14814
|
}
|
|
14815
|
+
if (schema.default !== void 0) {
|
|
14816
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14817
|
+
}
|
|
14074
14818
|
const extraMeta = {};
|
|
14075
14819
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
14076
14820
|
for (const key of coreMetadataKeys) {
|
|
@@ -14092,26 +14836,35 @@ function convertSchema(schema, ctx) {
|
|
|
14092
14836
|
if (Object.keys(extraMeta).length > 0) {
|
|
14093
14837
|
ctx.registry.add(baseSchema, extraMeta);
|
|
14094
14838
|
}
|
|
14839
|
+
if (schema.description) {
|
|
14840
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14841
|
+
}
|
|
14095
14842
|
return baseSchema;
|
|
14096
14843
|
}
|
|
14097
14844
|
function fromJSONSchema(schema, params) {
|
|
14098
14845
|
if (typeof schema === "boolean") {
|
|
14099
14846
|
return schema ? z.any() : z.never();
|
|
14100
14847
|
}
|
|
14101
|
-
|
|
14102
|
-
|
|
14848
|
+
let normalized;
|
|
14849
|
+
try {
|
|
14850
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14851
|
+
} catch {
|
|
14852
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14853
|
+
}
|
|
14854
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14855
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
14103
14856
|
const ctx = {
|
|
14104
14857
|
version: version2,
|
|
14105
14858
|
defs,
|
|
14106
14859
|
refs: /* @__PURE__ */ new Map(),
|
|
14107
14860
|
processing: /* @__PURE__ */ new Set(),
|
|
14108
|
-
rootSchema:
|
|
14861
|
+
rootSchema: normalized,
|
|
14109
14862
|
registry: params?.registry ?? globalRegistry
|
|
14110
14863
|
};
|
|
14111
|
-
return convertSchema(
|
|
14864
|
+
return convertSchema(normalized, ctx);
|
|
14112
14865
|
}
|
|
14113
14866
|
|
|
14114
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14867
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
14115
14868
|
var coerce_exports = {};
|
|
14116
14869
|
__export(coerce_exports, {
|
|
14117
14870
|
bigint: () => bigint3,
|
|
@@ -14136,7 +14889,7 @@ function date4(params) {
|
|
|
14136
14889
|
return _coercedDate(ZodDate, params);
|
|
14137
14890
|
}
|
|
14138
14891
|
|
|
14139
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14892
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
14140
14893
|
config(en_default());
|
|
14141
14894
|
|
|
14142
14895
|
// src/schemas.ts
|
|
@@ -14757,6 +15510,44 @@ var SlackProvider = class {
|
|
|
14757
15510
|
const candidate = { handlers, inlineMedia, inlineLinks, state, threadContext, tools, chatOptions };
|
|
14758
15511
|
return Object.fromEntries(Object.entries(candidate).filter(([, value]) => value !== void 0));
|
|
14759
15512
|
}
|
|
15513
|
+
/**
|
|
15514
|
+
* Resolve the per-adapter config applied to the Slack entry in
|
|
15515
|
+
* `AgentChannels.adapters`. Top-level fields on `SlackProviderConfig` win;
|
|
15516
|
+
* the deprecated `adapterConfig` is merged in as a fallback for backwards
|
|
15517
|
+
* compatibility. Undefined values are filtered so they don't clobber the
|
|
15518
|
+
* fallback or preserved options.
|
|
15519
|
+
*/
|
|
15520
|
+
#resolveSlackAdapterConfig() {
|
|
15521
|
+
const {
|
|
15522
|
+
adapterConfig,
|
|
15523
|
+
cors,
|
|
15524
|
+
gateway,
|
|
15525
|
+
formatError: formatError2,
|
|
15526
|
+
streaming: topLevelStreaming,
|
|
15527
|
+
typingStatus,
|
|
15528
|
+
toolDisplay: topLevelToolDisplay
|
|
15529
|
+
} = this.#channelConfig;
|
|
15530
|
+
const topLevel = {
|
|
15531
|
+
cors,
|
|
15532
|
+
gateway,
|
|
15533
|
+
formatError: formatError2,
|
|
15534
|
+
streaming: topLevelStreaming,
|
|
15535
|
+
typingStatus,
|
|
15536
|
+
toolDisplay: topLevelToolDisplay
|
|
15537
|
+
};
|
|
15538
|
+
const filteredTopLevel = Object.fromEntries(Object.entries(topLevel).filter(([, value]) => value !== void 0));
|
|
15539
|
+
const filteredAdapterConfig = Object.fromEntries(
|
|
15540
|
+
Object.entries(adapterConfig ?? {}).filter(([, value]) => value !== void 0)
|
|
15541
|
+
);
|
|
15542
|
+
const merged = { ...filteredAdapterConfig, ...filteredTopLevel };
|
|
15543
|
+
const streaming = merged.streaming ?? true;
|
|
15544
|
+
const toolDisplay = merged.toolDisplay ?? (streaming ? "grouped" : "cards");
|
|
15545
|
+
return {
|
|
15546
|
+
...merged,
|
|
15547
|
+
streaming,
|
|
15548
|
+
toolDisplay
|
|
15549
|
+
};
|
|
15550
|
+
}
|
|
14760
15551
|
/**
|
|
14761
15552
|
* Create AgentChannels for an agent with the Slack adapter.
|
|
14762
15553
|
* SlackProvider owns the AgentChannels lifecycle for platform-managed agents.
|
|
@@ -14768,8 +15559,8 @@ var SlackProvider = class {
|
|
|
14768
15559
|
* previous instance are torn down before we replace it.
|
|
14769
15560
|
*/
|
|
14770
15561
|
#createAgentChannels(agent, adapter) {
|
|
14771
|
-
const
|
|
14772
|
-
const slackEntry = adapterConfig ? { adapter, ...adapterConfig } : adapter;
|
|
15562
|
+
const adapterConfig = this.#resolveSlackAdapterConfig();
|
|
15563
|
+
const slackEntry = Object.keys(adapterConfig).length > 0 ? { adapter, ...adapterConfig } : adapter;
|
|
14773
15564
|
const existing = agent.getChannels();
|
|
14774
15565
|
const existingConfig = existing?.channelConfig;
|
|
14775
15566
|
existing?.close();
|
|
@@ -14921,8 +15712,8 @@ var SlackProvider = class {
|
|
|
14921
15712
|
}
|
|
14922
15713
|
const iconData = await iconResponse.arrayBuffer();
|
|
14923
15714
|
await client.setAppIcon(appCredentials.appId, iconData);
|
|
14924
|
-
} catch (
|
|
14925
|
-
console.warn(`[Slack] Failed to set app icon for "${agentId}":`,
|
|
15715
|
+
} catch (error51) {
|
|
15716
|
+
console.warn(`[Slack] Failed to set app icon for "${agentId}":`, error51);
|
|
14926
15717
|
}
|
|
14927
15718
|
}
|
|
14928
15719
|
const installationId = crypto.randomUUID();
|
|
@@ -15069,8 +15860,8 @@ var SlackProvider = class {
|
|
|
15069
15860
|
try {
|
|
15070
15861
|
const result = await this.connect(agentId, options);
|
|
15071
15862
|
return c.json(result);
|
|
15072
|
-
} catch (
|
|
15073
|
-
const message =
|
|
15863
|
+
} catch (error51) {
|
|
15864
|
+
const message = error51 instanceof Error ? error51.message : "Failed to connect";
|
|
15074
15865
|
return c.json({ error: message }, 500);
|
|
15075
15866
|
}
|
|
15076
15867
|
}
|
|
@@ -15083,8 +15874,8 @@ var SlackProvider = class {
|
|
|
15083
15874
|
try {
|
|
15084
15875
|
await this.disconnect(agentId);
|
|
15085
15876
|
return c.json({ success: true });
|
|
15086
|
-
} catch (
|
|
15087
|
-
const message =
|
|
15877
|
+
} catch (error51) {
|
|
15878
|
+
const message = error51 instanceof Error ? error51.message : "Failed to disconnect";
|
|
15088
15879
|
return c.json({ error: message }, 500);
|
|
15089
15880
|
}
|
|
15090
15881
|
}
|
|
@@ -15096,7 +15887,7 @@ var SlackProvider = class {
|
|
|
15096
15887
|
const url2 = new URL(c.req.url);
|
|
15097
15888
|
const code = url2.searchParams.get("code");
|
|
15098
15889
|
const state = url2.searchParams.get("state");
|
|
15099
|
-
const
|
|
15890
|
+
const error51 = url2.searchParams.get("error");
|
|
15100
15891
|
if (!state) {
|
|
15101
15892
|
return c.json({ error: "Missing state parameter" }, 400);
|
|
15102
15893
|
}
|
|
@@ -15105,10 +15896,10 @@ var SlackProvider = class {
|
|
|
15105
15896
|
return c.json({ error: "Invalid or expired installation state" }, 400);
|
|
15106
15897
|
}
|
|
15107
15898
|
const pending = this.#decryptPendingInstallation(pendingEncrypted);
|
|
15108
|
-
if (
|
|
15899
|
+
if (error51) {
|
|
15109
15900
|
const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
|
|
15110
15901
|
const redirect = new URL(errorUrl, c.req.url);
|
|
15111
|
-
redirect.searchParams.set("channel_error",
|
|
15902
|
+
redirect.searchParams.set("channel_error", error51);
|
|
15112
15903
|
redirect.searchParams.set("platform", "slack");
|
|
15113
15904
|
return c.redirect(redirect.toString());
|
|
15114
15905
|
}
|
|
@@ -15186,9 +15977,9 @@ var SlackProvider = class {
|
|
|
15186
15977
|
redirect.searchParams.set("agent", pending.agentId);
|
|
15187
15978
|
redirect.searchParams.set("team", teamName);
|
|
15188
15979
|
return c.redirect(redirect.toString());
|
|
15189
|
-
} catch (
|
|
15190
|
-
console.error("[Slack] OAuth callback error:",
|
|
15191
|
-
const message =
|
|
15980
|
+
} catch (error52) {
|
|
15981
|
+
console.error("[Slack] OAuth callback error:", error52);
|
|
15982
|
+
const message = error52 instanceof Error ? error52.message : "OAuth failed";
|
|
15192
15983
|
const errorUrl = pending.redirectUrl ?? this.#channelConfig.redirectPath ?? "/";
|
|
15193
15984
|
const redirect = new URL(errorUrl, c.req.url);
|
|
15194
15985
|
redirect.searchParams.set("channel_error", message);
|
|
@@ -15262,8 +16053,8 @@ var SlackProvider = class {
|
|
|
15262
16053
|
});
|
|
15263
16054
|
try {
|
|
15264
16055
|
return await agentChannels.handleWebhookEvent("slack", delegateRequest);
|
|
15265
|
-
} catch (
|
|
15266
|
-
console.error("[Slack] Error delegating to AgentChannels:",
|
|
16056
|
+
} catch (error51) {
|
|
16057
|
+
console.error("[Slack] Error delegating to AgentChannels:", error51);
|
|
15267
16058
|
return c.json({ ok: true });
|
|
15268
16059
|
}
|
|
15269
16060
|
}
|
|
@@ -15320,9 +16111,9 @@ var SlackProvider = class {
|
|
|
15320
16111
|
const result = await agent.generate(prompt);
|
|
15321
16112
|
const text = typeof result.text === "string" ? result.text : JSON.stringify(result.text);
|
|
15322
16113
|
await sendDelayedResponse(text);
|
|
15323
|
-
} catch (
|
|
15324
|
-
console.error("[Slack] Command error:",
|
|
15325
|
-
const message =
|
|
16114
|
+
} catch (error51) {
|
|
16115
|
+
console.error("[Slack] Command error:", error51);
|
|
16116
|
+
const message = error51 instanceof Error ? error51.message : "Command failed";
|
|
15326
16117
|
await sendDelayedResponse(`Error: ${message}`);
|
|
15327
16118
|
}
|
|
15328
16119
|
})();
|