@inkeep/agents-manage-mcp 0.45.0 → 0.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +300 -116
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
4
4
|
/** A special constant with type `never` */
|
|
5
5
|
const NEVER = Object.freeze({ status: "aborted" });
|
|
6
6
|
function $constructor(name, initializer$2, params) {
|
|
@@ -60,7 +60,7 @@ function config(newConfig) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
63
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
64
64
|
function getEnumValues(entries) {
|
|
65
65
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
66
66
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -208,6 +208,8 @@ const NUMBER_FORMAT_RANGES = {
|
|
|
208
208
|
};
|
|
209
209
|
function pick(schema, mask) {
|
|
210
210
|
const currDef = schema._zod.def;
|
|
211
|
+
const checks = currDef.checks;
|
|
212
|
+
if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
211
213
|
return clone(schema, mergeDefs(schema._zod.def, {
|
|
212
214
|
get shape() {
|
|
213
215
|
const newShape = {};
|
|
@@ -224,6 +226,8 @@ function pick(schema, mask) {
|
|
|
224
226
|
}
|
|
225
227
|
function omit(schema, mask) {
|
|
226
228
|
const currDef = schema._zod.def;
|
|
229
|
+
const checks = currDef.checks;
|
|
230
|
+
if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
227
231
|
return clone(schema, mergeDefs(schema._zod.def, {
|
|
228
232
|
get shape() {
|
|
229
233
|
const newShape = { ...schema._zod.def.shape };
|
|
@@ -241,33 +245,29 @@ function omit(schema, mask) {
|
|
|
241
245
|
function extend(schema, shape) {
|
|
242
246
|
if (!isPlainObject$1(shape)) throw new Error("Invalid input to extend: expected a plain object");
|
|
243
247
|
const checks = schema._zod.def.checks;
|
|
244
|
-
if (checks && checks.length > 0)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}));
|
|
248
|
+
if (checks && checks.length > 0) {
|
|
249
|
+
const existingShape = schema._zod.def.shape;
|
|
250
|
+
for (const key in shape) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
251
|
+
}
|
|
252
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
253
|
+
const _shape = {
|
|
254
|
+
...schema._zod.def.shape,
|
|
255
|
+
...shape
|
|
256
|
+
};
|
|
257
|
+
assignProp(this, "shape", _shape);
|
|
258
|
+
return _shape;
|
|
259
|
+
} }));
|
|
256
260
|
}
|
|
257
261
|
function safeExtend(schema, shape) {
|
|
258
262
|
if (!isPlainObject$1(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
259
|
-
return clone(schema, {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
return _shape;
|
|
268
|
-
},
|
|
269
|
-
checks: schema._zod.def.checks
|
|
270
|
-
});
|
|
263
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
264
|
+
const _shape = {
|
|
265
|
+
...schema._zod.def.shape,
|
|
266
|
+
...shape
|
|
267
|
+
};
|
|
268
|
+
assignProp(this, "shape", _shape);
|
|
269
|
+
return _shape;
|
|
270
|
+
} }));
|
|
271
271
|
}
|
|
272
272
|
function merge(a, b) {
|
|
273
273
|
return clone(a, mergeDefs(a._zod.def, {
|
|
@@ -286,6 +286,8 @@ function merge(a, b) {
|
|
|
286
286
|
}));
|
|
287
287
|
}
|
|
288
288
|
function partial(Class, schema, mask) {
|
|
289
|
+
const checks = schema._zod.def.checks;
|
|
290
|
+
if (checks && checks.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
289
291
|
return clone(schema, mergeDefs(schema._zod.def, {
|
|
290
292
|
get shape() {
|
|
291
293
|
const oldShape = schema._zod.def.shape;
|
|
@@ -309,27 +311,24 @@ function partial(Class, schema, mask) {
|
|
|
309
311
|
}));
|
|
310
312
|
}
|
|
311
313
|
function required(Class, schema, mask) {
|
|
312
|
-
return clone(schema, mergeDefs(schema._zod.def, {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
if (
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
shape[key] = new Class({
|
|
320
|
-
type: "nonoptional",
|
|
321
|
-
innerType: oldShape[key]
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
else for (const key in oldShape) shape[key] = new Class({
|
|
314
|
+
return clone(schema, mergeDefs(schema._zod.def, { get shape() {
|
|
315
|
+
const oldShape = schema._zod.def.shape;
|
|
316
|
+
const shape = { ...oldShape };
|
|
317
|
+
if (mask) for (const key in mask) {
|
|
318
|
+
if (!(key in shape)) throw new Error(`Unrecognized key: "${key}"`);
|
|
319
|
+
if (!mask[key]) continue;
|
|
320
|
+
shape[key] = new Class({
|
|
325
321
|
type: "nonoptional",
|
|
326
322
|
innerType: oldShape[key]
|
|
327
323
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
324
|
+
}
|
|
325
|
+
else for (const key in oldShape) shape[key] = new Class({
|
|
326
|
+
type: "nonoptional",
|
|
327
|
+
innerType: oldShape[key]
|
|
328
|
+
});
|
|
329
|
+
assignProp(this, "shape", shape);
|
|
330
|
+
return shape;
|
|
331
|
+
} }));
|
|
333
332
|
}
|
|
334
333
|
function aborted(x, startIndex = 0) {
|
|
335
334
|
if (x.aborted === true) return true;
|
|
@@ -375,7 +374,7 @@ function issue(...args$113) {
|
|
|
375
374
|
}
|
|
376
375
|
|
|
377
376
|
//#endregion
|
|
378
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
377
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
379
378
|
const initializer$1 = (inst, def) => {
|
|
380
379
|
inst.name = "$ZodError";
|
|
381
380
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -486,7 +485,7 @@ function prettifyError(error) {
|
|
|
486
485
|
}
|
|
487
486
|
|
|
488
487
|
//#endregion
|
|
489
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
488
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
490
489
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
491
490
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
492
491
|
const result = schema._zod.run({
|
|
@@ -590,7 +589,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
590
589
|
const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
591
590
|
|
|
592
591
|
//#endregion
|
|
593
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
592
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
594
593
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
595
594
|
const cuid2 = /^[0-9a-z]+$/;
|
|
596
595
|
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -620,7 +619,7 @@ const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-
|
|
|
620
619
|
const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
621
620
|
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
622
621
|
const base64url = /^[A-Za-z0-9_-]*$/;
|
|
623
|
-
const e164 = /^\+
|
|
622
|
+
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
624
623
|
const 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])))`;
|
|
625
624
|
const date$1 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
626
625
|
function timeSource(args$113) {
|
|
@@ -643,13 +642,13 @@ const string$1 = (params) => {
|
|
|
643
642
|
return /* @__PURE__ */ new RegExp(`^${regex}$`);
|
|
644
643
|
};
|
|
645
644
|
const integer = /^-?\d+$/;
|
|
646
|
-
const number$1 = /^-?\d+(?:\.\d+)
|
|
645
|
+
const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
647
646
|
const boolean$2 = /^(?:true|false)$/i;
|
|
648
647
|
const lowercase = /^[^A-Z]*$/;
|
|
649
648
|
const uppercase = /^[^a-z]*$/;
|
|
650
649
|
|
|
651
650
|
//#endregion
|
|
652
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
651
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
653
652
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
654
653
|
var _a$1;
|
|
655
654
|
inst._zod ?? (inst._zod = {});
|
|
@@ -675,7 +674,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
|
|
|
675
674
|
payload.issues.push({
|
|
676
675
|
origin,
|
|
677
676
|
code: "too_big",
|
|
678
|
-
maximum: def.value,
|
|
677
|
+
maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
679
678
|
input: payload.value,
|
|
680
679
|
inclusive: def.inclusive,
|
|
681
680
|
inst,
|
|
@@ -697,7 +696,7 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
697
696
|
payload.issues.push({
|
|
698
697
|
origin,
|
|
699
698
|
code: "too_small",
|
|
700
|
-
minimum: def.value,
|
|
699
|
+
minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
|
|
701
700
|
input: payload.value,
|
|
702
701
|
inclusive: def.inclusive,
|
|
703
702
|
inst,
|
|
@@ -759,6 +758,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
759
758
|
note: "Integers must be within the safe integer range.",
|
|
760
759
|
inst,
|
|
761
760
|
origin,
|
|
761
|
+
inclusive: true,
|
|
762
762
|
continue: !def.abort
|
|
763
763
|
});
|
|
764
764
|
else payload.issues.push({
|
|
@@ -768,6 +768,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
768
768
|
note: "Integers must be within the safe integer range.",
|
|
769
769
|
inst,
|
|
770
770
|
origin,
|
|
771
|
+
inclusive: true,
|
|
771
772
|
continue: !def.abort
|
|
772
773
|
});
|
|
773
774
|
return;
|
|
@@ -787,7 +788,9 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
787
788
|
input,
|
|
788
789
|
code: "too_big",
|
|
789
790
|
maximum,
|
|
790
|
-
|
|
791
|
+
inclusive: true,
|
|
792
|
+
inst,
|
|
793
|
+
continue: !def.abort
|
|
791
794
|
});
|
|
792
795
|
};
|
|
793
796
|
});
|
|
@@ -1004,7 +1007,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1004
1007
|
});
|
|
1005
1008
|
|
|
1006
1009
|
//#endregion
|
|
1007
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
1010
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
1008
1011
|
var Doc = class {
|
|
1009
1012
|
constructor(args$113 = []) {
|
|
1010
1013
|
this.content = [];
|
|
@@ -1036,15 +1039,15 @@ var Doc = class {
|
|
|
1036
1039
|
};
|
|
1037
1040
|
|
|
1038
1041
|
//#endregion
|
|
1039
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
1042
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1040
1043
|
const version = {
|
|
1041
1044
|
major: 4,
|
|
1042
|
-
minor:
|
|
1043
|
-
patch:
|
|
1045
|
+
minor: 3,
|
|
1046
|
+
patch: 6
|
|
1044
1047
|
};
|
|
1045
1048
|
|
|
1046
1049
|
//#endregion
|
|
1047
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
1050
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1048
1051
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1049
1052
|
var _a$1;
|
|
1050
1053
|
inst ?? (inst = {});
|
|
@@ -1120,7 +1123,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1120
1123
|
return runChecks(result, checks, ctx);
|
|
1121
1124
|
};
|
|
1122
1125
|
}
|
|
1123
|
-
inst
|
|
1126
|
+
defineLazy(inst, "~standard", () => ({
|
|
1124
1127
|
validate: (value) => {
|
|
1125
1128
|
try {
|
|
1126
1129
|
const r = safeParse$2(inst, value);
|
|
@@ -1131,7 +1134,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1131
1134
|
},
|
|
1132
1135
|
vendor: "zod",
|
|
1133
1136
|
version: 1
|
|
1134
|
-
};
|
|
1137
|
+
}));
|
|
1135
1138
|
});
|
|
1136
1139
|
const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
1137
1140
|
$ZodType.init(inst, def);
|
|
@@ -1489,8 +1492,11 @@ const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
1489
1492
|
return payload;
|
|
1490
1493
|
};
|
|
1491
1494
|
});
|
|
1492
|
-
function handlePropertyResult(result, final, key, input) {
|
|
1493
|
-
if (result.issues.length)
|
|
1495
|
+
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
1496
|
+
if (result.issues.length) {
|
|
1497
|
+
if (isOptionalOut && !(key in input)) return;
|
|
1498
|
+
final.issues.push(...prefixIssues(key, result.issues));
|
|
1499
|
+
}
|
|
1494
1500
|
if (result.value === void 0) {
|
|
1495
1501
|
if (key in input) final.value[key] = void 0;
|
|
1496
1502
|
} else final.value[key] = result.value;
|
|
@@ -1512,6 +1518,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1512
1518
|
const keySet = def.keySet;
|
|
1513
1519
|
const _catchall = def.catchall._zod;
|
|
1514
1520
|
const t = _catchall.def.type;
|
|
1521
|
+
const isOptionalOut = _catchall.optout === "optional";
|
|
1515
1522
|
for (const key in input) {
|
|
1516
1523
|
if (keySet.has(key)) continue;
|
|
1517
1524
|
if (t === "never") {
|
|
@@ -1522,8 +1529,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1522
1529
|
value: input[key],
|
|
1523
1530
|
issues: []
|
|
1524
1531
|
}, ctx);
|
|
1525
|
-
if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));
|
|
1526
|
-
else handlePropertyResult(r, payload, key, input);
|
|
1532
|
+
if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, isOptionalOut)));
|
|
1533
|
+
else handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1527
1534
|
}
|
|
1528
1535
|
if (unrecognized.length) payload.issues.push({
|
|
1529
1536
|
code: "unrecognized_keys",
|
|
@@ -1578,12 +1585,14 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1578
1585
|
const proms = [];
|
|
1579
1586
|
const shape = value.shape;
|
|
1580
1587
|
for (const key of value.keys) {
|
|
1581
|
-
const
|
|
1588
|
+
const el = shape[key];
|
|
1589
|
+
const isOptionalOut = el._zod.optout === "optional";
|
|
1590
|
+
const r = el._zod.run({
|
|
1582
1591
|
value: input[key],
|
|
1583
1592
|
issues: []
|
|
1584
1593
|
}, ctx);
|
|
1585
|
-
if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));
|
|
1586
|
-
else handlePropertyResult(r, payload, key, input);
|
|
1594
|
+
if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, isOptionalOut)));
|
|
1595
|
+
else handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1587
1596
|
}
|
|
1588
1597
|
if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
1589
1598
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
@@ -1612,8 +1621,28 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
1612
1621
|
for (const key of normalized.keys) {
|
|
1613
1622
|
const id = ids[key];
|
|
1614
1623
|
const k = esc(key);
|
|
1624
|
+
const isOptionalOut = shape[key]?._zod?.optout === "optional";
|
|
1615
1625
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
1616
|
-
doc.write(`
|
|
1626
|
+
if (isOptionalOut) doc.write(`
|
|
1627
|
+
if (${id}.issues.length) {
|
|
1628
|
+
if (${k} in input) {
|
|
1629
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1630
|
+
...iss,
|
|
1631
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
1632
|
+
})));
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
if (${id}.value === undefined) {
|
|
1637
|
+
if (${k} in input) {
|
|
1638
|
+
newResult[${k}] = undefined;
|
|
1639
|
+
}
|
|
1640
|
+
} else {
|
|
1641
|
+
newResult[${k}] = ${id}.value;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
`);
|
|
1645
|
+
else doc.write(`
|
|
1617
1646
|
if (${id}.issues.length) {
|
|
1618
1647
|
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
1619
1648
|
...iss,
|
|
@@ -1621,7 +1650,6 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
1621
1650
|
})));
|
|
1622
1651
|
}
|
|
1623
1652
|
|
|
1624
|
-
|
|
1625
1653
|
if (${id}.value === undefined) {
|
|
1626
1654
|
if (${k} in input) {
|
|
1627
1655
|
newResult[${k}] = undefined;
|
|
@@ -1795,8 +1823,25 @@ function mergeValues(a, b) {
|
|
|
1795
1823
|
};
|
|
1796
1824
|
}
|
|
1797
1825
|
function handleIntersectionResults(result, left, right) {
|
|
1798
|
-
|
|
1799
|
-
|
|
1826
|
+
const unrecKeys = /* @__PURE__ */ new Map();
|
|
1827
|
+
let unrecIssue;
|
|
1828
|
+
for (const iss of left.issues) if (iss.code === "unrecognized_keys") {
|
|
1829
|
+
unrecIssue ?? (unrecIssue = iss);
|
|
1830
|
+
for (const k of iss.keys) {
|
|
1831
|
+
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1832
|
+
unrecKeys.get(k).l = true;
|
|
1833
|
+
}
|
|
1834
|
+
} else result.issues.push(iss);
|
|
1835
|
+
for (const iss of right.issues) if (iss.code === "unrecognized_keys") for (const k of iss.keys) {
|
|
1836
|
+
if (!unrecKeys.has(k)) unrecKeys.set(k, {});
|
|
1837
|
+
unrecKeys.get(k).r = true;
|
|
1838
|
+
}
|
|
1839
|
+
else result.issues.push(iss);
|
|
1840
|
+
const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
|
|
1841
|
+
if (bothKeys.length && unrecIssue) result.issues.push({
|
|
1842
|
+
...unrecIssue,
|
|
1843
|
+
keys: bothKeys
|
|
1844
|
+
});
|
|
1800
1845
|
if (aborted(result)) return result;
|
|
1801
1846
|
const merged = mergeValues(left.value, right.value);
|
|
1802
1847
|
if (!merged.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);
|
|
@@ -1851,11 +1896,19 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1851
1896
|
payload.value = {};
|
|
1852
1897
|
for (const key of Reflect.ownKeys(input)) {
|
|
1853
1898
|
if (key === "__proto__") continue;
|
|
1854
|
-
|
|
1899
|
+
let keyResult = def.keyType._zod.run({
|
|
1855
1900
|
value: key,
|
|
1856
1901
|
issues: []
|
|
1857
1902
|
}, ctx);
|
|
1858
1903
|
if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
|
|
1904
|
+
if (typeof key === "string" && number$1.test(key) && keyResult.issues.length) {
|
|
1905
|
+
const retryResult = def.keyType._zod.run({
|
|
1906
|
+
value: Number(key),
|
|
1907
|
+
issues: []
|
|
1908
|
+
}, ctx);
|
|
1909
|
+
if (retryResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
|
|
1910
|
+
if (retryResult.issues.length === 0) keyResult = retryResult;
|
|
1911
|
+
}
|
|
1859
1912
|
if (keyResult.issues.length) {
|
|
1860
1913
|
if (def.mode === "loose") payload.value[key] = input[key];
|
|
1861
1914
|
else payload.issues.push({
|
|
@@ -1946,6 +1999,14 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
1946
1999
|
return def.innerType._zod.run(payload, ctx);
|
|
1947
2000
|
};
|
|
1948
2001
|
});
|
|
2002
|
+
const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2003
|
+
$ZodOptional.init(inst, def);
|
|
2004
|
+
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2005
|
+
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
2006
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2007
|
+
return def.innerType._zod.run(payload, ctx);
|
|
2008
|
+
};
|
|
2009
|
+
});
|
|
1949
2010
|
const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
|
|
1950
2011
|
$ZodType.init(inst, def);
|
|
1951
2012
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
@@ -2130,7 +2191,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2130
2191
|
}
|
|
2131
2192
|
|
|
2132
2193
|
//#endregion
|
|
2133
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2194
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
2134
2195
|
var _a;
|
|
2135
2196
|
var $ZodRegistry = class {
|
|
2136
2197
|
constructor() {
|
|
@@ -2140,10 +2201,7 @@ var $ZodRegistry = class {
|
|
|
2140
2201
|
add(schema, ..._meta) {
|
|
2141
2202
|
const meta$2 = _meta[0];
|
|
2142
2203
|
this._map.set(schema, meta$2);
|
|
2143
|
-
if (meta$2 && typeof meta$2 === "object" && "id" in meta$2)
|
|
2144
|
-
if (this._idmap.has(meta$2.id)) throw new Error(`ID ${meta$2.id} already exists in the registry`);
|
|
2145
|
-
this._idmap.set(meta$2.id, schema);
|
|
2146
|
-
}
|
|
2204
|
+
if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.set(meta$2.id, schema);
|
|
2147
2205
|
return this;
|
|
2148
2206
|
}
|
|
2149
2207
|
clear() {
|
|
@@ -2181,13 +2239,15 @@ function registry() {
|
|
|
2181
2239
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2182
2240
|
|
|
2183
2241
|
//#endregion
|
|
2184
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2242
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
2243
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2185
2244
|
function _string(Class, params) {
|
|
2186
2245
|
return new Class({
|
|
2187
2246
|
type: "string",
|
|
2188
2247
|
...normalizeParams(params)
|
|
2189
2248
|
});
|
|
2190
2249
|
}
|
|
2250
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2191
2251
|
function _email(Class, params) {
|
|
2192
2252
|
return new Class({
|
|
2193
2253
|
type: "string",
|
|
@@ -2197,6 +2257,7 @@ function _email(Class, params) {
|
|
|
2197
2257
|
...normalizeParams(params)
|
|
2198
2258
|
});
|
|
2199
2259
|
}
|
|
2260
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2200
2261
|
function _guid(Class, params) {
|
|
2201
2262
|
return new Class({
|
|
2202
2263
|
type: "string",
|
|
@@ -2206,6 +2267,7 @@ function _guid(Class, params) {
|
|
|
2206
2267
|
...normalizeParams(params)
|
|
2207
2268
|
});
|
|
2208
2269
|
}
|
|
2270
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2209
2271
|
function _uuid(Class, params) {
|
|
2210
2272
|
return new Class({
|
|
2211
2273
|
type: "string",
|
|
@@ -2215,6 +2277,7 @@ function _uuid(Class, params) {
|
|
|
2215
2277
|
...normalizeParams(params)
|
|
2216
2278
|
});
|
|
2217
2279
|
}
|
|
2280
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2218
2281
|
function _uuidv4(Class, params) {
|
|
2219
2282
|
return new Class({
|
|
2220
2283
|
type: "string",
|
|
@@ -2225,6 +2288,7 @@ function _uuidv4(Class, params) {
|
|
|
2225
2288
|
...normalizeParams(params)
|
|
2226
2289
|
});
|
|
2227
2290
|
}
|
|
2291
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2228
2292
|
function _uuidv6(Class, params) {
|
|
2229
2293
|
return new Class({
|
|
2230
2294
|
type: "string",
|
|
@@ -2235,6 +2299,7 @@ function _uuidv6(Class, params) {
|
|
|
2235
2299
|
...normalizeParams(params)
|
|
2236
2300
|
});
|
|
2237
2301
|
}
|
|
2302
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2238
2303
|
function _uuidv7(Class, params) {
|
|
2239
2304
|
return new Class({
|
|
2240
2305
|
type: "string",
|
|
@@ -2245,6 +2310,7 @@ function _uuidv7(Class, params) {
|
|
|
2245
2310
|
...normalizeParams(params)
|
|
2246
2311
|
});
|
|
2247
2312
|
}
|
|
2313
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2248
2314
|
function _url(Class, params) {
|
|
2249
2315
|
return new Class({
|
|
2250
2316
|
type: "string",
|
|
@@ -2254,6 +2320,7 @@ function _url(Class, params) {
|
|
|
2254
2320
|
...normalizeParams(params)
|
|
2255
2321
|
});
|
|
2256
2322
|
}
|
|
2323
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2257
2324
|
function _emoji(Class, params) {
|
|
2258
2325
|
return new Class({
|
|
2259
2326
|
type: "string",
|
|
@@ -2263,6 +2330,7 @@ function _emoji(Class, params) {
|
|
|
2263
2330
|
...normalizeParams(params)
|
|
2264
2331
|
});
|
|
2265
2332
|
}
|
|
2333
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2266
2334
|
function _nanoid(Class, params) {
|
|
2267
2335
|
return new Class({
|
|
2268
2336
|
type: "string",
|
|
@@ -2272,6 +2340,7 @@ function _nanoid(Class, params) {
|
|
|
2272
2340
|
...normalizeParams(params)
|
|
2273
2341
|
});
|
|
2274
2342
|
}
|
|
2343
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2275
2344
|
function _cuid(Class, params) {
|
|
2276
2345
|
return new Class({
|
|
2277
2346
|
type: "string",
|
|
@@ -2281,6 +2350,7 @@ function _cuid(Class, params) {
|
|
|
2281
2350
|
...normalizeParams(params)
|
|
2282
2351
|
});
|
|
2283
2352
|
}
|
|
2353
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2284
2354
|
function _cuid2(Class, params) {
|
|
2285
2355
|
return new Class({
|
|
2286
2356
|
type: "string",
|
|
@@ -2290,6 +2360,7 @@ function _cuid2(Class, params) {
|
|
|
2290
2360
|
...normalizeParams(params)
|
|
2291
2361
|
});
|
|
2292
2362
|
}
|
|
2363
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2293
2364
|
function _ulid(Class, params) {
|
|
2294
2365
|
return new Class({
|
|
2295
2366
|
type: "string",
|
|
@@ -2299,6 +2370,7 @@ function _ulid(Class, params) {
|
|
|
2299
2370
|
...normalizeParams(params)
|
|
2300
2371
|
});
|
|
2301
2372
|
}
|
|
2373
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2302
2374
|
function _xid(Class, params) {
|
|
2303
2375
|
return new Class({
|
|
2304
2376
|
type: "string",
|
|
@@ -2308,6 +2380,7 @@ function _xid(Class, params) {
|
|
|
2308
2380
|
...normalizeParams(params)
|
|
2309
2381
|
});
|
|
2310
2382
|
}
|
|
2383
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2311
2384
|
function _ksuid(Class, params) {
|
|
2312
2385
|
return new Class({
|
|
2313
2386
|
type: "string",
|
|
@@ -2317,6 +2390,7 @@ function _ksuid(Class, params) {
|
|
|
2317
2390
|
...normalizeParams(params)
|
|
2318
2391
|
});
|
|
2319
2392
|
}
|
|
2393
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2320
2394
|
function _ipv4(Class, params) {
|
|
2321
2395
|
return new Class({
|
|
2322
2396
|
type: "string",
|
|
@@ -2326,6 +2400,7 @@ function _ipv4(Class, params) {
|
|
|
2326
2400
|
...normalizeParams(params)
|
|
2327
2401
|
});
|
|
2328
2402
|
}
|
|
2403
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2329
2404
|
function _ipv6(Class, params) {
|
|
2330
2405
|
return new Class({
|
|
2331
2406
|
type: "string",
|
|
@@ -2335,6 +2410,7 @@ function _ipv6(Class, params) {
|
|
|
2335
2410
|
...normalizeParams(params)
|
|
2336
2411
|
});
|
|
2337
2412
|
}
|
|
2413
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2338
2414
|
function _cidrv4(Class, params) {
|
|
2339
2415
|
return new Class({
|
|
2340
2416
|
type: "string",
|
|
@@ -2344,6 +2420,7 @@ function _cidrv4(Class, params) {
|
|
|
2344
2420
|
...normalizeParams(params)
|
|
2345
2421
|
});
|
|
2346
2422
|
}
|
|
2423
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2347
2424
|
function _cidrv6(Class, params) {
|
|
2348
2425
|
return new Class({
|
|
2349
2426
|
type: "string",
|
|
@@ -2353,6 +2430,7 @@ function _cidrv6(Class, params) {
|
|
|
2353
2430
|
...normalizeParams(params)
|
|
2354
2431
|
});
|
|
2355
2432
|
}
|
|
2433
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2356
2434
|
function _base64(Class, params) {
|
|
2357
2435
|
return new Class({
|
|
2358
2436
|
type: "string",
|
|
@@ -2362,6 +2440,7 @@ function _base64(Class, params) {
|
|
|
2362
2440
|
...normalizeParams(params)
|
|
2363
2441
|
});
|
|
2364
2442
|
}
|
|
2443
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2365
2444
|
function _base64url(Class, params) {
|
|
2366
2445
|
return new Class({
|
|
2367
2446
|
type: "string",
|
|
@@ -2371,6 +2450,7 @@ function _base64url(Class, params) {
|
|
|
2371
2450
|
...normalizeParams(params)
|
|
2372
2451
|
});
|
|
2373
2452
|
}
|
|
2453
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2374
2454
|
function _e164(Class, params) {
|
|
2375
2455
|
return new Class({
|
|
2376
2456
|
type: "string",
|
|
@@ -2380,6 +2460,7 @@ function _e164(Class, params) {
|
|
|
2380
2460
|
...normalizeParams(params)
|
|
2381
2461
|
});
|
|
2382
2462
|
}
|
|
2463
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2383
2464
|
function _jwt(Class, params) {
|
|
2384
2465
|
return new Class({
|
|
2385
2466
|
type: "string",
|
|
@@ -2389,6 +2470,7 @@ function _jwt(Class, params) {
|
|
|
2389
2470
|
...normalizeParams(params)
|
|
2390
2471
|
});
|
|
2391
2472
|
}
|
|
2473
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2392
2474
|
function _isoDateTime(Class, params) {
|
|
2393
2475
|
return new Class({
|
|
2394
2476
|
type: "string",
|
|
@@ -2400,6 +2482,7 @@ function _isoDateTime(Class, params) {
|
|
|
2400
2482
|
...normalizeParams(params)
|
|
2401
2483
|
});
|
|
2402
2484
|
}
|
|
2485
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2403
2486
|
function _isoDate(Class, params) {
|
|
2404
2487
|
return new Class({
|
|
2405
2488
|
type: "string",
|
|
@@ -2408,6 +2491,7 @@ function _isoDate(Class, params) {
|
|
|
2408
2491
|
...normalizeParams(params)
|
|
2409
2492
|
});
|
|
2410
2493
|
}
|
|
2494
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2411
2495
|
function _isoTime(Class, params) {
|
|
2412
2496
|
return new Class({
|
|
2413
2497
|
type: "string",
|
|
@@ -2417,6 +2501,7 @@ function _isoTime(Class, params) {
|
|
|
2417
2501
|
...normalizeParams(params)
|
|
2418
2502
|
});
|
|
2419
2503
|
}
|
|
2504
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2420
2505
|
function _isoDuration(Class, params) {
|
|
2421
2506
|
return new Class({
|
|
2422
2507
|
type: "string",
|
|
@@ -2425,6 +2510,7 @@ function _isoDuration(Class, params) {
|
|
|
2425
2510
|
...normalizeParams(params)
|
|
2426
2511
|
});
|
|
2427
2512
|
}
|
|
2513
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2428
2514
|
function _number(Class, params) {
|
|
2429
2515
|
return new Class({
|
|
2430
2516
|
type: "number",
|
|
@@ -2432,6 +2518,7 @@ function _number(Class, params) {
|
|
|
2432
2518
|
...normalizeParams(params)
|
|
2433
2519
|
});
|
|
2434
2520
|
}
|
|
2521
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2435
2522
|
function _int(Class, params) {
|
|
2436
2523
|
return new Class({
|
|
2437
2524
|
type: "number",
|
|
@@ -2441,12 +2528,14 @@ function _int(Class, params) {
|
|
|
2441
2528
|
...normalizeParams(params)
|
|
2442
2529
|
});
|
|
2443
2530
|
}
|
|
2531
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2444
2532
|
function _boolean(Class, params) {
|
|
2445
2533
|
return new Class({
|
|
2446
2534
|
type: "boolean",
|
|
2447
2535
|
...normalizeParams(params)
|
|
2448
2536
|
});
|
|
2449
2537
|
}
|
|
2538
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2450
2539
|
function _coercedBoolean(Class, params) {
|
|
2451
2540
|
return new Class({
|
|
2452
2541
|
type: "boolean",
|
|
@@ -2454,18 +2543,22 @@ function _coercedBoolean(Class, params) {
|
|
|
2454
2543
|
...normalizeParams(params)
|
|
2455
2544
|
});
|
|
2456
2545
|
}
|
|
2546
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2457
2547
|
function _any(Class) {
|
|
2458
2548
|
return new Class({ type: "any" });
|
|
2459
2549
|
}
|
|
2550
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2460
2551
|
function _unknown(Class) {
|
|
2461
2552
|
return new Class({ type: "unknown" });
|
|
2462
2553
|
}
|
|
2554
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2463
2555
|
function _never(Class, params) {
|
|
2464
2556
|
return new Class({
|
|
2465
2557
|
type: "never",
|
|
2466
2558
|
...normalizeParams(params)
|
|
2467
2559
|
});
|
|
2468
2560
|
}
|
|
2561
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2469
2562
|
function _lt(value, params) {
|
|
2470
2563
|
return new $ZodCheckLessThan({
|
|
2471
2564
|
check: "less_than",
|
|
@@ -2474,6 +2567,7 @@ function _lt(value, params) {
|
|
|
2474
2567
|
inclusive: false
|
|
2475
2568
|
});
|
|
2476
2569
|
}
|
|
2570
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2477
2571
|
function _lte(value, params) {
|
|
2478
2572
|
return new $ZodCheckLessThan({
|
|
2479
2573
|
check: "less_than",
|
|
@@ -2482,6 +2576,7 @@ function _lte(value, params) {
|
|
|
2482
2576
|
inclusive: true
|
|
2483
2577
|
});
|
|
2484
2578
|
}
|
|
2579
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2485
2580
|
function _gt(value, params) {
|
|
2486
2581
|
return new $ZodCheckGreaterThan({
|
|
2487
2582
|
check: "greater_than",
|
|
@@ -2490,6 +2585,7 @@ function _gt(value, params) {
|
|
|
2490
2585
|
inclusive: false
|
|
2491
2586
|
});
|
|
2492
2587
|
}
|
|
2588
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2493
2589
|
function _gte(value, params) {
|
|
2494
2590
|
return new $ZodCheckGreaterThan({
|
|
2495
2591
|
check: "greater_than",
|
|
@@ -2498,6 +2594,7 @@ function _gte(value, params) {
|
|
|
2498
2594
|
inclusive: true
|
|
2499
2595
|
});
|
|
2500
2596
|
}
|
|
2597
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2501
2598
|
function _multipleOf(value, params) {
|
|
2502
2599
|
return new $ZodCheckMultipleOf({
|
|
2503
2600
|
check: "multiple_of",
|
|
@@ -2505,6 +2602,7 @@ function _multipleOf(value, params) {
|
|
|
2505
2602
|
value
|
|
2506
2603
|
});
|
|
2507
2604
|
}
|
|
2605
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2508
2606
|
function _maxLength(maximum, params) {
|
|
2509
2607
|
return new $ZodCheckMaxLength({
|
|
2510
2608
|
check: "max_length",
|
|
@@ -2512,6 +2610,7 @@ function _maxLength(maximum, params) {
|
|
|
2512
2610
|
maximum
|
|
2513
2611
|
});
|
|
2514
2612
|
}
|
|
2613
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2515
2614
|
function _minLength(minimum, params) {
|
|
2516
2615
|
return new $ZodCheckMinLength({
|
|
2517
2616
|
check: "min_length",
|
|
@@ -2519,6 +2618,7 @@ function _minLength(minimum, params) {
|
|
|
2519
2618
|
minimum
|
|
2520
2619
|
});
|
|
2521
2620
|
}
|
|
2621
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2522
2622
|
function _length(length, params) {
|
|
2523
2623
|
return new $ZodCheckLengthEquals({
|
|
2524
2624
|
check: "length_equals",
|
|
@@ -2526,6 +2626,7 @@ function _length(length, params) {
|
|
|
2526
2626
|
length
|
|
2527
2627
|
});
|
|
2528
2628
|
}
|
|
2629
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2529
2630
|
function _regex(pattern, params) {
|
|
2530
2631
|
return new $ZodCheckRegex({
|
|
2531
2632
|
check: "string_format",
|
|
@@ -2534,6 +2635,7 @@ function _regex(pattern, params) {
|
|
|
2534
2635
|
pattern
|
|
2535
2636
|
});
|
|
2536
2637
|
}
|
|
2638
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2537
2639
|
function _lowercase(params) {
|
|
2538
2640
|
return new $ZodCheckLowerCase({
|
|
2539
2641
|
check: "string_format",
|
|
@@ -2541,6 +2643,7 @@ function _lowercase(params) {
|
|
|
2541
2643
|
...normalizeParams(params)
|
|
2542
2644
|
});
|
|
2543
2645
|
}
|
|
2646
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2544
2647
|
function _uppercase(params) {
|
|
2545
2648
|
return new $ZodCheckUpperCase({
|
|
2546
2649
|
check: "string_format",
|
|
@@ -2548,6 +2651,7 @@ function _uppercase(params) {
|
|
|
2548
2651
|
...normalizeParams(params)
|
|
2549
2652
|
});
|
|
2550
2653
|
}
|
|
2654
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2551
2655
|
function _includes(includes, params) {
|
|
2552
2656
|
return new $ZodCheckIncludes({
|
|
2553
2657
|
check: "string_format",
|
|
@@ -2556,6 +2660,7 @@ function _includes(includes, params) {
|
|
|
2556
2660
|
includes
|
|
2557
2661
|
});
|
|
2558
2662
|
}
|
|
2663
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2559
2664
|
function _startsWith(prefix, params) {
|
|
2560
2665
|
return new $ZodCheckStartsWith({
|
|
2561
2666
|
check: "string_format",
|
|
@@ -2564,6 +2669,7 @@ function _startsWith(prefix, params) {
|
|
|
2564
2669
|
prefix
|
|
2565
2670
|
});
|
|
2566
2671
|
}
|
|
2672
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2567
2673
|
function _endsWith(suffix, params) {
|
|
2568
2674
|
return new $ZodCheckEndsWith({
|
|
2569
2675
|
check: "string_format",
|
|
@@ -2572,27 +2678,34 @@ function _endsWith(suffix, params) {
|
|
|
2572
2678
|
suffix
|
|
2573
2679
|
});
|
|
2574
2680
|
}
|
|
2681
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2575
2682
|
function _overwrite(tx) {
|
|
2576
2683
|
return new $ZodCheckOverwrite({
|
|
2577
2684
|
check: "overwrite",
|
|
2578
2685
|
tx
|
|
2579
2686
|
});
|
|
2580
2687
|
}
|
|
2688
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2581
2689
|
function _normalize(form) {
|
|
2582
|
-
return _overwrite((input) => input.normalize(form));
|
|
2690
|
+
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2583
2691
|
}
|
|
2692
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2584
2693
|
function _trim() {
|
|
2585
|
-
return _overwrite((input) => input.trim());
|
|
2694
|
+
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2586
2695
|
}
|
|
2696
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2587
2697
|
function _toLowerCase() {
|
|
2588
|
-
return _overwrite((input) => input.toLowerCase());
|
|
2698
|
+
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2589
2699
|
}
|
|
2700
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2590
2701
|
function _toUpperCase() {
|
|
2591
|
-
return _overwrite((input) => input.toUpperCase());
|
|
2702
|
+
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2592
2703
|
}
|
|
2704
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2593
2705
|
function _slugify() {
|
|
2594
|
-
return _overwrite((input) => slugify(input));
|
|
2706
|
+
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2595
2707
|
}
|
|
2708
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2596
2709
|
function _array(Class, element, params) {
|
|
2597
2710
|
return new Class({
|
|
2598
2711
|
type: "array",
|
|
@@ -2600,6 +2713,7 @@ function _array(Class, element, params) {
|
|
|
2600
2713
|
...normalizeParams(params)
|
|
2601
2714
|
});
|
|
2602
2715
|
}
|
|
2716
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2603
2717
|
function _custom(Class, fn, _params) {
|
|
2604
2718
|
const norm = normalizeParams(_params);
|
|
2605
2719
|
norm.abort ?? (norm.abort = true);
|
|
@@ -2610,6 +2724,7 @@ function _custom(Class, fn, _params) {
|
|
|
2610
2724
|
...norm
|
|
2611
2725
|
});
|
|
2612
2726
|
}
|
|
2727
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2613
2728
|
function _refine(Class, fn, _params) {
|
|
2614
2729
|
return new Class({
|
|
2615
2730
|
type: "custom",
|
|
@@ -2618,8 +2733,9 @@ function _refine(Class, fn, _params) {
|
|
|
2618
2733
|
...normalizeParams(_params)
|
|
2619
2734
|
});
|
|
2620
2735
|
}
|
|
2736
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2621
2737
|
function _superRefine(fn) {
|
|
2622
|
-
const ch = _check((payload) => {
|
|
2738
|
+
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2623
2739
|
payload.addIssue = (issue$1) => {
|
|
2624
2740
|
if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, ch._zod.def));
|
|
2625
2741
|
else {
|
|
@@ -2636,6 +2752,7 @@ function _superRefine(fn) {
|
|
|
2636
2752
|
});
|
|
2637
2753
|
return ch;
|
|
2638
2754
|
}
|
|
2755
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2639
2756
|
function _check(fn, params) {
|
|
2640
2757
|
const ch = new $ZodCheck({
|
|
2641
2758
|
check: "custom",
|
|
@@ -2644,6 +2761,7 @@ function _check(fn, params) {
|
|
|
2644
2761
|
ch._zod.check = fn;
|
|
2645
2762
|
return ch;
|
|
2646
2763
|
}
|
|
2764
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2647
2765
|
function describe$1(description) {
|
|
2648
2766
|
const ch = new $ZodCheck({ check: "describe" });
|
|
2649
2767
|
ch._zod.onattach = [(inst) => {
|
|
@@ -2656,6 +2774,7 @@ function describe$1(description) {
|
|
|
2656
2774
|
ch._zod.check = () => {};
|
|
2657
2775
|
return ch;
|
|
2658
2776
|
}
|
|
2777
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2659
2778
|
function meta$1(metadata) {
|
|
2660
2779
|
const ch = new $ZodCheck({ check: "meta" });
|
|
2661
2780
|
ch._zod.onattach = [(inst) => {
|
|
@@ -2670,7 +2789,7 @@ function meta$1(metadata) {
|
|
|
2670
2789
|
}
|
|
2671
2790
|
|
|
2672
2791
|
//#endregion
|
|
2673
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2792
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
2674
2793
|
function initializeContext(params) {
|
|
2675
2794
|
let target = params?.target ?? "draft-2020-12";
|
|
2676
2795
|
if (target === "draft-4") target = "draft-04";
|
|
@@ -2716,18 +2835,19 @@ function process(schema, ctx, _params = {
|
|
|
2716
2835
|
schemaPath: [..._params.schemaPath, schema],
|
|
2717
2836
|
path: _params.path
|
|
2718
2837
|
};
|
|
2719
|
-
|
|
2720
|
-
if (parent) {
|
|
2721
|
-
result.ref = parent;
|
|
2722
|
-
process(parent, ctx, params);
|
|
2723
|
-
ctx.seen.get(parent).isParent = true;
|
|
2724
|
-
} else if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
2838
|
+
if (schema._zod.processJSONSchema) schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
2725
2839
|
else {
|
|
2726
2840
|
const _json = result.schema;
|
|
2727
2841
|
const processor = ctx.processors[def.type];
|
|
2728
2842
|
if (!processor) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
2729
2843
|
processor(schema, ctx, _json, params);
|
|
2730
2844
|
}
|
|
2845
|
+
const parent = schema._zod.parent;
|
|
2846
|
+
if (parent) {
|
|
2847
|
+
if (!result.ref) result.ref = parent;
|
|
2848
|
+
process(parent, ctx, params);
|
|
2849
|
+
ctx.seen.get(parent).isParent = true;
|
|
2850
|
+
}
|
|
2731
2851
|
}
|
|
2732
2852
|
const meta$2 = ctx.metadataRegistry.get(schema);
|
|
2733
2853
|
if (meta$2) Object.assign(result.schema, meta$2);
|
|
@@ -2742,6 +2862,15 @@ function process(schema, ctx, _params = {
|
|
|
2742
2862
|
function extractDefs(ctx, schema) {
|
|
2743
2863
|
const root = ctx.seen.get(schema);
|
|
2744
2864
|
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2865
|
+
const idToSchema = /* @__PURE__ */ new Map();
|
|
2866
|
+
for (const entry of ctx.seen.entries()) {
|
|
2867
|
+
const id = ctx.metadataRegistry.get(entry[0])?.id;
|
|
2868
|
+
if (id) {
|
|
2869
|
+
const existing = idToSchema.get(id);
|
|
2870
|
+
if (existing && existing !== entry[0]) throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
|
|
2871
|
+
idToSchema.set(id, entry[0]);
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2745
2874
|
const makeURI = (entry) => {
|
|
2746
2875
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2747
2876
|
if (ctx.external) {
|
|
@@ -2813,23 +2942,42 @@ function finalize(ctx, schema) {
|
|
|
2813
2942
|
if (!root) throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
2814
2943
|
const flattenRef = (zodSchema) => {
|
|
2815
2944
|
const seen = ctx.seen.get(zodSchema);
|
|
2945
|
+
if (seen.ref === null) return;
|
|
2816
2946
|
const schema$1 = seen.def ?? seen.schema;
|
|
2817
2947
|
const _cached = { ...schema$1 };
|
|
2818
|
-
if (seen.ref === null) return;
|
|
2819
2948
|
const ref = seen.ref;
|
|
2820
2949
|
seen.ref = null;
|
|
2821
2950
|
if (ref) {
|
|
2822
2951
|
flattenRef(ref);
|
|
2823
|
-
const
|
|
2952
|
+
const refSeen = ctx.seen.get(ref);
|
|
2953
|
+
const refSchema = refSeen.schema;
|
|
2824
2954
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
2825
2955
|
schema$1.allOf = schema$1.allOf ?? [];
|
|
2826
2956
|
schema$1.allOf.push(refSchema);
|
|
2827
|
-
} else
|
|
2828
|
-
|
|
2829
|
-
|
|
2957
|
+
} else Object.assign(schema$1, refSchema);
|
|
2958
|
+
Object.assign(schema$1, _cached);
|
|
2959
|
+
if (zodSchema._zod.parent === ref) for (const key in schema$1) {
|
|
2960
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2961
|
+
if (!(key in _cached)) delete schema$1[key];
|
|
2962
|
+
}
|
|
2963
|
+
if (refSchema.$ref && refSeen.def) for (const key in schema$1) {
|
|
2964
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2965
|
+
if (key in refSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(refSeen.def[key])) delete schema$1[key];
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
const parent = zodSchema._zod.parent;
|
|
2969
|
+
if (parent && parent !== ref) {
|
|
2970
|
+
flattenRef(parent);
|
|
2971
|
+
const parentSeen = ctx.seen.get(parent);
|
|
2972
|
+
if (parentSeen?.schema.$ref) {
|
|
2973
|
+
schema$1.$ref = parentSeen.schema.$ref;
|
|
2974
|
+
if (parentSeen.def) for (const key in schema$1) {
|
|
2975
|
+
if (key === "$ref" || key === "allOf") continue;
|
|
2976
|
+
if (key in parentSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(parentSeen.def[key])) delete schema$1[key];
|
|
2977
|
+
}
|
|
2830
2978
|
}
|
|
2831
2979
|
}
|
|
2832
|
-
|
|
2980
|
+
ctx.override({
|
|
2833
2981
|
zodSchema,
|
|
2834
2982
|
jsonSchema: schema$1,
|
|
2835
2983
|
path: seen.path ?? []
|
|
@@ -2860,8 +3008,8 @@ function finalize(ctx, schema) {
|
|
|
2860
3008
|
value: {
|
|
2861
3009
|
...schema["~standard"],
|
|
2862
3010
|
jsonSchema: {
|
|
2863
|
-
input: createStandardJSONSchemaMethod(schema, "input"),
|
|
2864
|
-
output: createStandardJSONSchemaMethod(schema, "output")
|
|
3011
|
+
input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
|
|
3012
|
+
output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
|
|
2865
3013
|
}
|
|
2866
3014
|
},
|
|
2867
3015
|
enumerable: false,
|
|
@@ -2913,13 +3061,13 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
2913
3061
|
extractDefs(ctx, schema);
|
|
2914
3062
|
return finalize(ctx, schema);
|
|
2915
3063
|
};
|
|
2916
|
-
const createStandardJSONSchemaMethod = (schema, io) => (params) => {
|
|
3064
|
+
const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
2917
3065
|
const { libraryOptions, target } = params ?? {};
|
|
2918
3066
|
const ctx = initializeContext({
|
|
2919
3067
|
...libraryOptions ?? {},
|
|
2920
3068
|
target,
|
|
2921
3069
|
io,
|
|
2922
|
-
processors
|
|
3070
|
+
processors
|
|
2923
3071
|
});
|
|
2924
3072
|
process(schema, ctx);
|
|
2925
3073
|
extractDefs(ctx, schema);
|
|
@@ -2927,7 +3075,7 @@ const createStandardJSONSchemaMethod = (schema, io) => (params) => {
|
|
|
2927
3075
|
};
|
|
2928
3076
|
|
|
2929
3077
|
//#endregion
|
|
2930
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3078
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
2931
3079
|
const formatMap = {
|
|
2932
3080
|
guid: "uuid",
|
|
2933
3081
|
url: "uri",
|
|
@@ -2944,6 +3092,7 @@ const stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
2944
3092
|
if (format) {
|
|
2945
3093
|
json$1.format = formatMap[format] ?? format;
|
|
2946
3094
|
if (json$1.format === "") delete json$1.format;
|
|
3095
|
+
if (format === "time") delete json$1.format;
|
|
2947
3096
|
}
|
|
2948
3097
|
if (contentEncoding) json$1.contentEncoding = contentEncoding;
|
|
2949
3098
|
if (patterns && patterns.size > 0) {
|
|
@@ -3081,14 +3230,34 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
3081
3230
|
const json$1 = _json;
|
|
3082
3231
|
const def = schema._zod.def;
|
|
3083
3232
|
json$1.type = "object";
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3233
|
+
const keyType = def.keyType;
|
|
3234
|
+
const patterns = keyType._zod.bag?.patterns;
|
|
3235
|
+
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
3236
|
+
const valueSchema = process(def.valueType, ctx, {
|
|
3237
|
+
...params,
|
|
3238
|
+
path: [
|
|
3239
|
+
...params.path,
|
|
3240
|
+
"patternProperties",
|
|
3241
|
+
"*"
|
|
3242
|
+
]
|
|
3243
|
+
});
|
|
3244
|
+
json$1.patternProperties = {};
|
|
3245
|
+
for (const pattern of patterns) json$1.patternProperties[pattern.source] = valueSchema;
|
|
3246
|
+
} else {
|
|
3247
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json$1.propertyNames = process(def.keyType, ctx, {
|
|
3248
|
+
...params,
|
|
3249
|
+
path: [...params.path, "propertyNames"]
|
|
3250
|
+
});
|
|
3251
|
+
json$1.additionalProperties = process(def.valueType, ctx, {
|
|
3252
|
+
...params,
|
|
3253
|
+
path: [...params.path, "additionalProperties"]
|
|
3254
|
+
});
|
|
3255
|
+
}
|
|
3256
|
+
const keyValues = keyType._zod.values;
|
|
3257
|
+
if (keyValues) {
|
|
3258
|
+
const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number");
|
|
3259
|
+
if (validKeyValues.length > 0) json$1.required = validKeyValues;
|
|
3260
|
+
}
|
|
3092
3261
|
};
|
|
3093
3262
|
const nullableProcessor = (schema, ctx, json$1, params) => {
|
|
3094
3263
|
const def = schema._zod.def;
|
|
@@ -3160,7 +3329,7 @@ const lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
3160
3329
|
};
|
|
3161
3330
|
|
|
3162
3331
|
//#endregion
|
|
3163
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3332
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
3164
3333
|
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
3165
3334
|
$ZodISODateTime.init(inst, def);
|
|
3166
3335
|
ZodStringFormat.init(inst, def);
|
|
@@ -3191,7 +3360,7 @@ function duration(params) {
|
|
|
3191
3360
|
}
|
|
3192
3361
|
|
|
3193
3362
|
//#endregion
|
|
3194
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3363
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
3195
3364
|
const initializer = (inst, issues) => {
|
|
3196
3365
|
$ZodError.init(inst, issues);
|
|
3197
3366
|
inst.name = "ZodError";
|
|
@@ -3215,7 +3384,7 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
3215
3384
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
3216
3385
|
|
|
3217
3386
|
//#endregion
|
|
3218
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3387
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
3219
3388
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3220
3389
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3221
3390
|
const safeParse$1 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3230,7 +3399,7 @@ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
3230
3399
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3231
3400
|
|
|
3232
3401
|
//#endregion
|
|
3233
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3402
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
3234
3403
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
3235
3404
|
$ZodType.init(inst, def);
|
|
3236
3405
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
@@ -3246,8 +3415,9 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3246
3415
|
check: ch,
|
|
3247
3416
|
def: { check: "custom" },
|
|
3248
3417
|
onattach: []
|
|
3249
|
-
} } : ch)] }));
|
|
3418
|
+
} } : ch)] }), { parent: true });
|
|
3250
3419
|
};
|
|
3420
|
+
inst.with = inst.check;
|
|
3251
3421
|
inst.clone = (def$1, params) => clone(inst, def$1, params);
|
|
3252
3422
|
inst.brand = () => inst;
|
|
3253
3423
|
inst.register = ((reg, meta$2) => {
|
|
@@ -3271,6 +3441,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3271
3441
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
3272
3442
|
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
3273
3443
|
inst.optional = () => optional(inst);
|
|
3444
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
3274
3445
|
inst.nullable = () => nullable(inst);
|
|
3275
3446
|
inst.nullish = () => optional(nullable(inst));
|
|
3276
3447
|
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
@@ -3302,6 +3473,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3302
3473
|
};
|
|
3303
3474
|
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
3304
3475
|
inst.isNullable = () => inst.safeParse(null).success;
|
|
3476
|
+
inst.apply = (fn) => fn(inst);
|
|
3305
3477
|
return inst;
|
|
3306
3478
|
});
|
|
3307
3479
|
/** @internal */
|
|
@@ -3693,6 +3865,18 @@ function optional(innerType) {
|
|
|
3693
3865
|
innerType
|
|
3694
3866
|
});
|
|
3695
3867
|
}
|
|
3868
|
+
const ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
|
|
3869
|
+
$ZodExactOptional.init(inst, def);
|
|
3870
|
+
ZodType.init(inst, def);
|
|
3871
|
+
inst._zod.processJSONSchema = (ctx, json$1, params) => optionalProcessor(inst, ctx, json$1, params);
|
|
3872
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
3873
|
+
});
|
|
3874
|
+
function exactOptional(innerType) {
|
|
3875
|
+
return new ZodExactOptional({
|
|
3876
|
+
type: "optional",
|
|
3877
|
+
innerType
|
|
3878
|
+
});
|
|
3879
|
+
}
|
|
3696
3880
|
const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
|
|
3697
3881
|
$ZodNullable.init(inst, def);
|
|
3698
3882
|
ZodType.init(inst, def);
|
|
@@ -3819,7 +4003,7 @@ const describe = describe$1;
|
|
|
3819
4003
|
const meta = meta$1;
|
|
3820
4004
|
|
|
3821
4005
|
//#endregion
|
|
3822
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
4006
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
3823
4007
|
function boolean(params) {
|
|
3824
4008
|
return _coercedBoolean(ZodBoolean, params);
|
|
3825
4009
|
}
|