@caplets/core 0.18.7 → 0.18.9
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/cli/commands.d.ts +4 -2
- package/dist/cli/setup.d.ts +19 -0
- package/dist/cli.d.ts +2 -0
- package/dist/{completion-B9niw4HY.js → completion-RqzHpHRY.js} +16 -6
- package/dist/{generated-tool-input-schema-BYoyY-l-.js → generated-tool-input-schema--kVuUNc5.js} +196 -196
- package/dist/generated-tool-input-schema.d.ts +9 -9
- package/dist/generated-tool-input-schema.js +1 -1
- package/dist/index.js +3128 -2925
- package/dist/native.js +3 -3
- package/dist/{options-CY6p-C9L.js → options-DnOUjft1.js} +49 -44
- package/dist/remote-control/types.d.ts +1 -1
- package/dist/tools.d.ts +1 -1
- package/package.json +4 -4
package/dist/{generated-tool-input-schema-BYoyY-l-.js → generated-tool-input-schema--kVuUNc5.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
2
2
|
var _a$1;
|
|
3
3
|
/** A special constant with type `never` */
|
|
4
|
-
const NEVER =
|
|
4
|
+
const NEVER = /*@__PURE__*/ Object.freeze({ status: "aborted" });
|
|
5
5
|
function $constructor(name, initializer, params) {
|
|
6
6
|
function init(inst, def) {
|
|
7
7
|
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
@@ -93,7 +93,7 @@ function floatSafeRemainder(val, step) {
|
|
|
93
93
|
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
94
94
|
return ratio - roundedRatio;
|
|
95
95
|
}
|
|
96
|
-
const EVALUATING = /* @__PURE__
|
|
96
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
97
97
|
function defineLazy(object, key, getter) {
|
|
98
98
|
let value = void 0;
|
|
99
99
|
Object.defineProperty(object, key, {
|
|
@@ -134,7 +134,7 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
|
|
|
134
134
|
function isObject(data) {
|
|
135
135
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
136
136
|
}
|
|
137
|
-
const allowsEval = /* @__PURE__
|
|
137
|
+
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
138
138
|
if (globalConfig.jitless) return false;
|
|
139
139
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
140
140
|
try {
|
|
@@ -161,7 +161,7 @@ function shallowClone(o) {
|
|
|
161
161
|
if (o instanceof Set) return new Set(o);
|
|
162
162
|
return o;
|
|
163
163
|
}
|
|
164
|
-
const propertyKeyTypes = /* @__PURE__
|
|
164
|
+
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
165
165
|
"string",
|
|
166
166
|
"number",
|
|
167
167
|
"symbol"
|
|
@@ -449,7 +449,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
449
449
|
}
|
|
450
450
|
return result.value;
|
|
451
451
|
};
|
|
452
|
-
const parse$1 = /* @__PURE__
|
|
452
|
+
const parse$1 = /* @__PURE__*/ _parse($ZodRealError);
|
|
453
453
|
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
454
454
|
const ctx = _ctx ? {
|
|
455
455
|
..._ctx,
|
|
@@ -467,7 +467,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
467
467
|
}
|
|
468
468
|
return result.value;
|
|
469
469
|
};
|
|
470
|
-
const parseAsync$1 = /* @__PURE__
|
|
470
|
+
const parseAsync$1 = /* @__PURE__*/ _parseAsync($ZodRealError);
|
|
471
471
|
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
472
472
|
const ctx = _ctx ? {
|
|
473
473
|
..._ctx,
|
|
@@ -486,7 +486,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
486
486
|
data: result.value
|
|
487
487
|
};
|
|
488
488
|
};
|
|
489
|
-
const safeParse$1 = /* @__PURE__
|
|
489
|
+
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
490
490
|
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
491
491
|
const ctx = _ctx ? {
|
|
492
492
|
..._ctx,
|
|
@@ -505,7 +505,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
505
505
|
data: result.value
|
|
506
506
|
};
|
|
507
507
|
};
|
|
508
|
-
const safeParseAsync$1 = /* @__PURE__
|
|
508
|
+
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
509
509
|
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
510
510
|
const ctx = _ctx ? {
|
|
511
511
|
..._ctx,
|
|
@@ -585,7 +585,7 @@ const base64url = /^[A-Za-z0-9_-]*$/;
|
|
|
585
585
|
const httpProtocol = /^https?$/;
|
|
586
586
|
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
587
587
|
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])))`;
|
|
588
|
-
const date$1 =
|
|
588
|
+
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
589
589
|
function timeSource(args) {
|
|
590
590
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
591
591
|
return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -613,7 +613,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
613
613
|
const uppercase = /^[^a-z]*$/;
|
|
614
614
|
//#endregion
|
|
615
615
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
616
|
-
const $ZodCheck =
|
|
616
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
617
617
|
var _a;
|
|
618
618
|
inst._zod ?? (inst._zod = {});
|
|
619
619
|
inst._zod.def = def;
|
|
@@ -624,7 +624,7 @@ const numericOriginMap = {
|
|
|
624
624
|
bigint: "bigint",
|
|
625
625
|
object: "date"
|
|
626
626
|
};
|
|
627
|
-
const $ZodCheckLessThan =
|
|
627
|
+
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
628
628
|
$ZodCheck.init(inst, def);
|
|
629
629
|
const origin = numericOriginMap[typeof def.value];
|
|
630
630
|
inst._zod.onattach.push((inst) => {
|
|
@@ -646,7 +646,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
|
|
|
646
646
|
});
|
|
647
647
|
};
|
|
648
648
|
});
|
|
649
|
-
const $ZodCheckGreaterThan =
|
|
649
|
+
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
650
650
|
$ZodCheck.init(inst, def);
|
|
651
651
|
const origin = numericOriginMap[typeof def.value];
|
|
652
652
|
inst._zod.onattach.push((inst) => {
|
|
@@ -668,7 +668,7 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
668
668
|
});
|
|
669
669
|
};
|
|
670
670
|
});
|
|
671
|
-
const $ZodCheckMultipleOf =
|
|
671
|
+
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
672
672
|
$ZodCheck.init(inst, def);
|
|
673
673
|
inst._zod.onattach.push((inst) => {
|
|
674
674
|
var _a;
|
|
@@ -687,7 +687,7 @@ const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf",
|
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
689
|
});
|
|
690
|
-
const $ZodCheckNumberFormat =
|
|
690
|
+
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
691
691
|
$ZodCheck.init(inst, def);
|
|
692
692
|
def.format = def.format || "float64";
|
|
693
693
|
const isInt = def.format?.includes("int");
|
|
@@ -758,7 +758,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
});
|
|
761
|
-
const $ZodCheckMaxLength =
|
|
761
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
762
762
|
var _a;
|
|
763
763
|
$ZodCheck.init(inst, def);
|
|
764
764
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -784,7 +784,7 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
784
784
|
});
|
|
785
785
|
};
|
|
786
786
|
});
|
|
787
|
-
const $ZodCheckMinLength =
|
|
787
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
788
788
|
var _a;
|
|
789
789
|
$ZodCheck.init(inst, def);
|
|
790
790
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -810,7 +810,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
810
810
|
});
|
|
811
811
|
};
|
|
812
812
|
});
|
|
813
|
-
const $ZodCheckLengthEquals =
|
|
813
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
814
814
|
var _a;
|
|
815
815
|
$ZodCheck.init(inst, def);
|
|
816
816
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -846,7 +846,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
846
846
|
});
|
|
847
847
|
};
|
|
848
848
|
});
|
|
849
|
-
const $ZodCheckStringFormat =
|
|
849
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
850
850
|
var _a, _b;
|
|
851
851
|
$ZodCheck.init(inst, def);
|
|
852
852
|
inst._zod.onattach.push((inst) => {
|
|
@@ -872,7 +872,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
872
872
|
});
|
|
873
873
|
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
874
874
|
});
|
|
875
|
-
const $ZodCheckRegex =
|
|
875
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
876
876
|
$ZodCheckStringFormat.init(inst, def);
|
|
877
877
|
inst._zod.check = (payload) => {
|
|
878
878
|
def.pattern.lastIndex = 0;
|
|
@@ -888,15 +888,15 @@ const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def
|
|
|
888
888
|
});
|
|
889
889
|
};
|
|
890
890
|
});
|
|
891
|
-
const $ZodCheckLowerCase =
|
|
891
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
892
892
|
def.pattern ?? (def.pattern = lowercase);
|
|
893
893
|
$ZodCheckStringFormat.init(inst, def);
|
|
894
894
|
});
|
|
895
|
-
const $ZodCheckUpperCase =
|
|
895
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
896
896
|
def.pattern ?? (def.pattern = uppercase);
|
|
897
897
|
$ZodCheckStringFormat.init(inst, def);
|
|
898
898
|
});
|
|
899
|
-
const $ZodCheckIncludes =
|
|
899
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
900
900
|
$ZodCheck.init(inst, def);
|
|
901
901
|
const escapedRegex = escapeRegex(def.includes);
|
|
902
902
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
@@ -919,7 +919,7 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
|
|
|
919
919
|
});
|
|
920
920
|
};
|
|
921
921
|
});
|
|
922
|
-
const $ZodCheckStartsWith =
|
|
922
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
923
923
|
$ZodCheck.init(inst, def);
|
|
924
924
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
925
925
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -941,7 +941,7 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
|
|
|
941
941
|
});
|
|
942
942
|
};
|
|
943
943
|
});
|
|
944
|
-
const $ZodCheckEndsWith =
|
|
944
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
945
945
|
$ZodCheck.init(inst, def);
|
|
946
946
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
947
947
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -963,7 +963,7 @@ const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (ins
|
|
|
963
963
|
});
|
|
964
964
|
};
|
|
965
965
|
});
|
|
966
|
-
const $ZodCheckOverwrite =
|
|
966
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
967
967
|
$ZodCheck.init(inst, def);
|
|
968
968
|
inst._zod.check = (payload) => {
|
|
969
969
|
payload.value = def.tx(payload.value);
|
|
@@ -1009,7 +1009,7 @@ const version = {
|
|
|
1009
1009
|
};
|
|
1010
1010
|
//#endregion
|
|
1011
1011
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1012
|
-
const $ZodType =
|
|
1012
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1013
1013
|
var _a;
|
|
1014
1014
|
inst ?? (inst = {});
|
|
1015
1015
|
inst._zod.def = def;
|
|
@@ -1098,7 +1098,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1098
1098
|
version: 1
|
|
1099
1099
|
}));
|
|
1100
1100
|
});
|
|
1101
|
-
const $ZodString =
|
|
1101
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1102
1102
|
$ZodType.init(inst, def);
|
|
1103
1103
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
1104
1104
|
inst._zod.parse = (payload, _) => {
|
|
@@ -1115,15 +1115,15 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1115
1115
|
return payload;
|
|
1116
1116
|
};
|
|
1117
1117
|
});
|
|
1118
|
-
const $ZodStringFormat =
|
|
1118
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1119
1119
|
$ZodCheckStringFormat.init(inst, def);
|
|
1120
1120
|
$ZodString.init(inst, def);
|
|
1121
1121
|
});
|
|
1122
|
-
const $ZodGUID =
|
|
1122
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1123
1123
|
def.pattern ?? (def.pattern = guid);
|
|
1124
1124
|
$ZodStringFormat.init(inst, def);
|
|
1125
1125
|
});
|
|
1126
|
-
const $ZodUUID =
|
|
1126
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1127
1127
|
if (def.version) {
|
|
1128
1128
|
const v = {
|
|
1129
1129
|
v1: 1,
|
|
@@ -1140,11 +1140,11 @@ const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
|
1140
1140
|
} else def.pattern ?? (def.pattern = uuid());
|
|
1141
1141
|
$ZodStringFormat.init(inst, def);
|
|
1142
1142
|
});
|
|
1143
|
-
const $ZodEmail =
|
|
1143
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1144
1144
|
def.pattern ?? (def.pattern = email);
|
|
1145
1145
|
$ZodStringFormat.init(inst, def);
|
|
1146
1146
|
});
|
|
1147
|
-
const $ZodURL =
|
|
1147
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1148
1148
|
$ZodStringFormat.init(inst, def);
|
|
1149
1149
|
inst._zod.check = (payload) => {
|
|
1150
1150
|
try {
|
|
@@ -1201,11 +1201,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
1203
|
});
|
|
1204
|
-
const $ZodEmoji =
|
|
1204
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1205
1205
|
def.pattern ?? (def.pattern = emoji());
|
|
1206
1206
|
$ZodStringFormat.init(inst, def);
|
|
1207
1207
|
});
|
|
1208
|
-
const $ZodNanoID =
|
|
1208
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1209
1209
|
def.pattern ?? (def.pattern = nanoid);
|
|
1210
1210
|
$ZodStringFormat.init(inst, def);
|
|
1211
1211
|
});
|
|
@@ -1214,48 +1214,48 @@ const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
|
1214
1214
|
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1215
1215
|
* See https://github.com/paralleldrive/cuid.
|
|
1216
1216
|
*/
|
|
1217
|
-
const $ZodCUID =
|
|
1217
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1218
1218
|
def.pattern ?? (def.pattern = cuid);
|
|
1219
1219
|
$ZodStringFormat.init(inst, def);
|
|
1220
1220
|
});
|
|
1221
|
-
const $ZodCUID2 =
|
|
1221
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1222
1222
|
def.pattern ?? (def.pattern = cuid2);
|
|
1223
1223
|
$ZodStringFormat.init(inst, def);
|
|
1224
1224
|
});
|
|
1225
|
-
const $ZodULID =
|
|
1225
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1226
1226
|
def.pattern ?? (def.pattern = ulid);
|
|
1227
1227
|
$ZodStringFormat.init(inst, def);
|
|
1228
1228
|
});
|
|
1229
|
-
const $ZodXID =
|
|
1229
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1230
1230
|
def.pattern ?? (def.pattern = xid);
|
|
1231
1231
|
$ZodStringFormat.init(inst, def);
|
|
1232
1232
|
});
|
|
1233
|
-
const $ZodKSUID =
|
|
1233
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1234
1234
|
def.pattern ?? (def.pattern = ksuid);
|
|
1235
1235
|
$ZodStringFormat.init(inst, def);
|
|
1236
1236
|
});
|
|
1237
|
-
const $ZodISODateTime =
|
|
1237
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1238
1238
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1239
1239
|
$ZodStringFormat.init(inst, def);
|
|
1240
1240
|
});
|
|
1241
|
-
const $ZodISODate =
|
|
1241
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1242
1242
|
def.pattern ?? (def.pattern = date$1);
|
|
1243
1243
|
$ZodStringFormat.init(inst, def);
|
|
1244
1244
|
});
|
|
1245
|
-
const $ZodISOTime =
|
|
1245
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1246
1246
|
def.pattern ?? (def.pattern = time$1(def));
|
|
1247
1247
|
$ZodStringFormat.init(inst, def);
|
|
1248
1248
|
});
|
|
1249
|
-
const $ZodISODuration =
|
|
1249
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1250
1250
|
def.pattern ?? (def.pattern = duration$1);
|
|
1251
1251
|
$ZodStringFormat.init(inst, def);
|
|
1252
1252
|
});
|
|
1253
|
-
const $ZodIPv4 =
|
|
1253
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1254
1254
|
def.pattern ?? (def.pattern = ipv4);
|
|
1255
1255
|
$ZodStringFormat.init(inst, def);
|
|
1256
1256
|
inst._zod.bag.format = `ipv4`;
|
|
1257
1257
|
});
|
|
1258
|
-
const $ZodIPv6 =
|
|
1258
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1259
1259
|
def.pattern ?? (def.pattern = ipv6);
|
|
1260
1260
|
$ZodStringFormat.init(inst, def);
|
|
1261
1261
|
inst._zod.bag.format = `ipv6`;
|
|
@@ -1273,11 +1273,11 @@ const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
});
|
|
1276
|
-
const $ZodCIDRv4 =
|
|
1276
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1277
1277
|
def.pattern ?? (def.pattern = cidrv4);
|
|
1278
1278
|
$ZodStringFormat.init(inst, def);
|
|
1279
1279
|
});
|
|
1280
|
-
const $ZodCIDRv6 =
|
|
1280
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1281
1281
|
def.pattern ?? (def.pattern = cidrv6);
|
|
1282
1282
|
$ZodStringFormat.init(inst, def);
|
|
1283
1283
|
inst._zod.check = (payload) => {
|
|
@@ -1312,7 +1312,7 @@ function isValidBase64(data) {
|
|
|
1312
1312
|
return false;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
const $ZodBase64 =
|
|
1315
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1316
1316
|
def.pattern ?? (def.pattern = base64);
|
|
1317
1317
|
$ZodStringFormat.init(inst, def);
|
|
1318
1318
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -1332,7 +1332,7 @@ function isValidBase64URL(data) {
|
|
|
1332
1332
|
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1333
1333
|
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1334
1334
|
}
|
|
1335
|
-
const $ZodBase64URL =
|
|
1335
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1336
1336
|
def.pattern ?? (def.pattern = base64url);
|
|
1337
1337
|
$ZodStringFormat.init(inst, def);
|
|
1338
1338
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -1347,7 +1347,7 @@ const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def)
|
|
|
1347
1347
|
});
|
|
1348
1348
|
};
|
|
1349
1349
|
});
|
|
1350
|
-
const $ZodE164 =
|
|
1350
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1351
1351
|
def.pattern ?? (def.pattern = e164);
|
|
1352
1352
|
$ZodStringFormat.init(inst, def);
|
|
1353
1353
|
});
|
|
@@ -1366,7 +1366,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1366
1366
|
return false;
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
const $ZodJWT =
|
|
1369
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1370
1370
|
$ZodStringFormat.init(inst, def);
|
|
1371
1371
|
inst._zod.check = (payload) => {
|
|
1372
1372
|
if (isValidJWT(payload.value, def.alg)) return;
|
|
@@ -1379,7 +1379,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1379
1379
|
});
|
|
1380
1380
|
};
|
|
1381
1381
|
});
|
|
1382
|
-
const $ZodNumber =
|
|
1382
|
+
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1383
1383
|
$ZodType.init(inst, def);
|
|
1384
1384
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1385
1385
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1399,11 +1399,11 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
1399
1399
|
return payload;
|
|
1400
1400
|
};
|
|
1401
1401
|
});
|
|
1402
|
-
const $ZodNumberFormat =
|
|
1402
|
+
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1403
1403
|
$ZodCheckNumberFormat.init(inst, def);
|
|
1404
1404
|
$ZodNumber.init(inst, def);
|
|
1405
1405
|
});
|
|
1406
|
-
const $ZodBoolean =
|
|
1406
|
+
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1407
1407
|
$ZodType.init(inst, def);
|
|
1408
1408
|
inst._zod.pattern = boolean$1;
|
|
1409
1409
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1421,7 +1421,7 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
1421
1421
|
return payload;
|
|
1422
1422
|
};
|
|
1423
1423
|
});
|
|
1424
|
-
const $ZodNull =
|
|
1424
|
+
const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
|
|
1425
1425
|
$ZodType.init(inst, def);
|
|
1426
1426
|
inst._zod.pattern = _null$2;
|
|
1427
1427
|
inst._zod.values = new Set([null]);
|
|
@@ -1437,15 +1437,15 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1437
1437
|
return payload;
|
|
1438
1438
|
};
|
|
1439
1439
|
});
|
|
1440
|
-
const $ZodAny =
|
|
1440
|
+
const $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => {
|
|
1441
1441
|
$ZodType.init(inst, def);
|
|
1442
1442
|
inst._zod.parse = (payload) => payload;
|
|
1443
1443
|
});
|
|
1444
|
-
const $ZodUnknown =
|
|
1444
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1445
1445
|
$ZodType.init(inst, def);
|
|
1446
1446
|
inst._zod.parse = (payload) => payload;
|
|
1447
1447
|
});
|
|
1448
|
-
const $ZodNever =
|
|
1448
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1449
1449
|
$ZodType.init(inst, def);
|
|
1450
1450
|
inst._zod.parse = (payload, _ctx) => {
|
|
1451
1451
|
payload.issues.push({
|
|
@@ -1461,7 +1461,7 @@ function handleArrayResult(result, final, index) {
|
|
|
1461
1461
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1462
1462
|
final.value[index] = result.value;
|
|
1463
1463
|
}
|
|
1464
|
-
const $ZodArray =
|
|
1464
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1465
1465
|
$ZodType.init(inst, def);
|
|
1466
1466
|
inst._zod.parse = (payload, ctx) => {
|
|
1467
1467
|
const input = payload.value;
|
|
@@ -1552,7 +1552,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1552
1552
|
return payload;
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
|
-
const $ZodObject =
|
|
1555
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1556
1556
|
$ZodType.init(inst, def);
|
|
1557
1557
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1558
1558
|
const sh = def.shape;
|
|
@@ -1608,7 +1608,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1608
1608
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1609
1609
|
};
|
|
1610
1610
|
});
|
|
1611
|
-
const $ZodObjectJIT =
|
|
1611
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1612
1612
|
$ZodObject.init(inst, def);
|
|
1613
1613
|
const superParse = inst._zod.parse;
|
|
1614
1614
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -1748,7 +1748,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
1748
1748
|
});
|
|
1749
1749
|
return final;
|
|
1750
1750
|
}
|
|
1751
|
-
const $ZodUnion =
|
|
1751
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1752
1752
|
$ZodType.init(inst, def);
|
|
1753
1753
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1754
1754
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -1785,7 +1785,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1785
1785
|
});
|
|
1786
1786
|
};
|
|
1787
1787
|
});
|
|
1788
|
-
const $ZodDiscriminatedUnion =
|
|
1788
|
+
const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
1789
1789
|
def.inclusive = false;
|
|
1790
1790
|
$ZodUnion.init(inst, def);
|
|
1791
1791
|
const _super = inst._zod.parse;
|
|
@@ -1841,7 +1841,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
1841
1841
|
return payload;
|
|
1842
1842
|
};
|
|
1843
1843
|
});
|
|
1844
|
-
const $ZodIntersection =
|
|
1844
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1845
1845
|
$ZodType.init(inst, def);
|
|
1846
1846
|
inst._zod.parse = (payload, ctx) => {
|
|
1847
1847
|
const input = payload.value;
|
|
@@ -1940,7 +1940,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1940
1940
|
result.value = merged.data;
|
|
1941
1941
|
return result;
|
|
1942
1942
|
}
|
|
1943
|
-
const $ZodRecord =
|
|
1943
|
+
const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
1944
1944
|
$ZodType.init(inst, def);
|
|
1945
1945
|
inst._zod.parse = (payload, ctx) => {
|
|
1946
1946
|
const input = payload.value;
|
|
@@ -2049,7 +2049,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
2049
2049
|
return payload;
|
|
2050
2050
|
};
|
|
2051
2051
|
});
|
|
2052
|
-
const $ZodEnum =
|
|
2052
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
2053
2053
|
$ZodType.init(inst, def);
|
|
2054
2054
|
const values = getEnumValues(def.entries);
|
|
2055
2055
|
const valuesSet = new Set(values);
|
|
@@ -2067,7 +2067,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
2067
2067
|
return payload;
|
|
2068
2068
|
};
|
|
2069
2069
|
});
|
|
2070
|
-
const $ZodLiteral =
|
|
2070
|
+
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
2071
2071
|
$ZodType.init(inst, def);
|
|
2072
2072
|
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
2073
2073
|
const values = new Set(def.values);
|
|
@@ -2085,7 +2085,7 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
2085
2085
|
return payload;
|
|
2086
2086
|
};
|
|
2087
2087
|
});
|
|
2088
|
-
const $ZodTransform =
|
|
2088
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
2089
2089
|
$ZodType.init(inst, def);
|
|
2090
2090
|
inst._zod.optin = "optional";
|
|
2091
2091
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2109,7 +2109,7 @@ function handleOptionalResult(result, input) {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
return result;
|
|
2111
2111
|
}
|
|
2112
|
-
const $ZodOptional =
|
|
2112
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
2113
2113
|
$ZodType.init(inst, def);
|
|
2114
2114
|
inst._zod.optin = "optional";
|
|
2115
2115
|
inst._zod.optout = "optional";
|
|
@@ -2131,7 +2131,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2131
2131
|
return def.innerType._zod.run(payload, ctx);
|
|
2132
2132
|
};
|
|
2133
2133
|
});
|
|
2134
|
-
const $ZodExactOptional =
|
|
2134
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2135
2135
|
$ZodOptional.init(inst, def);
|
|
2136
2136
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2137
2137
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -2139,7 +2139,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
|
|
|
2139
2139
|
return def.innerType._zod.run(payload, ctx);
|
|
2140
2140
|
};
|
|
2141
2141
|
});
|
|
2142
|
-
const $ZodNullable =
|
|
2142
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
2143
2143
|
$ZodType.init(inst, def);
|
|
2144
2144
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2145
2145
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2155,7 +2155,7 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
|
|
|
2155
2155
|
return def.innerType._zod.run(payload, ctx);
|
|
2156
2156
|
};
|
|
2157
2157
|
});
|
|
2158
|
-
const $ZodDefault =
|
|
2158
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
2159
2159
|
$ZodType.init(inst, def);
|
|
2160
2160
|
inst._zod.optin = "optional";
|
|
2161
2161
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2177,7 +2177,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2177
2177
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2178
2178
|
return payload;
|
|
2179
2179
|
}
|
|
2180
|
-
const $ZodPrefault =
|
|
2180
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2181
2181
|
$ZodType.init(inst, def);
|
|
2182
2182
|
inst._zod.optin = "optional";
|
|
2183
2183
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2187,7 +2187,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
2187
2187
|
return def.innerType._zod.run(payload, ctx);
|
|
2188
2188
|
};
|
|
2189
2189
|
});
|
|
2190
|
-
const $ZodNonOptional =
|
|
2190
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2191
2191
|
$ZodType.init(inst, def);
|
|
2192
2192
|
defineLazy(inst._zod, "values", () => {
|
|
2193
2193
|
const v = def.innerType._zod.values;
|
|
@@ -2208,7 +2208,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
2208
2208
|
});
|
|
2209
2209
|
return payload;
|
|
2210
2210
|
}
|
|
2211
|
-
const $ZodCatch =
|
|
2211
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2212
2212
|
$ZodType.init(inst, def);
|
|
2213
2213
|
inst._zod.optin = "optional";
|
|
2214
2214
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2242,7 +2242,7 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2242
2242
|
return payload;
|
|
2243
2243
|
};
|
|
2244
2244
|
});
|
|
2245
|
-
const $ZodPipe =
|
|
2245
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2246
2246
|
$ZodType.init(inst, def);
|
|
2247
2247
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2248
2248
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -2270,10 +2270,10 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2270
2270
|
fallback: left.fallback
|
|
2271
2271
|
}, ctx);
|
|
2272
2272
|
}
|
|
2273
|
-
const $ZodPreprocess =
|
|
2273
|
+
const $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
2274
2274
|
$ZodPipe.init(inst, def);
|
|
2275
2275
|
});
|
|
2276
|
-
const $ZodReadonly =
|
|
2276
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2277
2277
|
$ZodType.init(inst, def);
|
|
2278
2278
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2279
2279
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2290,7 +2290,7 @@ function handleReadonlyResult(payload) {
|
|
|
2290
2290
|
payload.value = Object.freeze(payload.value);
|
|
2291
2291
|
return payload;
|
|
2292
2292
|
}
|
|
2293
|
-
const $ZodCustom =
|
|
2293
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2294
2294
|
$ZodCheck.init(inst, def);
|
|
2295
2295
|
$ZodType.init(inst, def);
|
|
2296
2296
|
inst._zod.parse = (payload, _) => {
|
|
@@ -2365,14 +2365,14 @@ function registry() {
|
|
|
2365
2365
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2366
2366
|
//#endregion
|
|
2367
2367
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2368
|
-
|
|
2368
|
+
// @__NO_SIDE_EFFECTS__
|
|
2369
2369
|
function _string(Class, params) {
|
|
2370
2370
|
return new Class({
|
|
2371
2371
|
type: "string",
|
|
2372
2372
|
...normalizeParams(params)
|
|
2373
2373
|
});
|
|
2374
2374
|
}
|
|
2375
|
-
|
|
2375
|
+
// @__NO_SIDE_EFFECTS__
|
|
2376
2376
|
function _email(Class, params) {
|
|
2377
2377
|
return new Class({
|
|
2378
2378
|
type: "string",
|
|
@@ -2382,7 +2382,7 @@ function _email(Class, params) {
|
|
|
2382
2382
|
...normalizeParams(params)
|
|
2383
2383
|
});
|
|
2384
2384
|
}
|
|
2385
|
-
|
|
2385
|
+
// @__NO_SIDE_EFFECTS__
|
|
2386
2386
|
function _guid(Class, params) {
|
|
2387
2387
|
return new Class({
|
|
2388
2388
|
type: "string",
|
|
@@ -2392,7 +2392,7 @@ function _guid(Class, params) {
|
|
|
2392
2392
|
...normalizeParams(params)
|
|
2393
2393
|
});
|
|
2394
2394
|
}
|
|
2395
|
-
|
|
2395
|
+
// @__NO_SIDE_EFFECTS__
|
|
2396
2396
|
function _uuid(Class, params) {
|
|
2397
2397
|
return new Class({
|
|
2398
2398
|
type: "string",
|
|
@@ -2402,7 +2402,7 @@ function _uuid(Class, params) {
|
|
|
2402
2402
|
...normalizeParams(params)
|
|
2403
2403
|
});
|
|
2404
2404
|
}
|
|
2405
|
-
|
|
2405
|
+
// @__NO_SIDE_EFFECTS__
|
|
2406
2406
|
function _uuidv4(Class, params) {
|
|
2407
2407
|
return new Class({
|
|
2408
2408
|
type: "string",
|
|
@@ -2413,7 +2413,7 @@ function _uuidv4(Class, params) {
|
|
|
2413
2413
|
...normalizeParams(params)
|
|
2414
2414
|
});
|
|
2415
2415
|
}
|
|
2416
|
-
|
|
2416
|
+
// @__NO_SIDE_EFFECTS__
|
|
2417
2417
|
function _uuidv6(Class, params) {
|
|
2418
2418
|
return new Class({
|
|
2419
2419
|
type: "string",
|
|
@@ -2424,7 +2424,7 @@ function _uuidv6(Class, params) {
|
|
|
2424
2424
|
...normalizeParams(params)
|
|
2425
2425
|
});
|
|
2426
2426
|
}
|
|
2427
|
-
|
|
2427
|
+
// @__NO_SIDE_EFFECTS__
|
|
2428
2428
|
function _uuidv7(Class, params) {
|
|
2429
2429
|
return new Class({
|
|
2430
2430
|
type: "string",
|
|
@@ -2435,7 +2435,7 @@ function _uuidv7(Class, params) {
|
|
|
2435
2435
|
...normalizeParams(params)
|
|
2436
2436
|
});
|
|
2437
2437
|
}
|
|
2438
|
-
|
|
2438
|
+
// @__NO_SIDE_EFFECTS__
|
|
2439
2439
|
function _url(Class, params) {
|
|
2440
2440
|
return new Class({
|
|
2441
2441
|
type: "string",
|
|
@@ -2445,7 +2445,7 @@ function _url(Class, params) {
|
|
|
2445
2445
|
...normalizeParams(params)
|
|
2446
2446
|
});
|
|
2447
2447
|
}
|
|
2448
|
-
|
|
2448
|
+
// @__NO_SIDE_EFFECTS__
|
|
2449
2449
|
function _emoji(Class, params) {
|
|
2450
2450
|
return new Class({
|
|
2451
2451
|
type: "string",
|
|
@@ -2455,7 +2455,7 @@ function _emoji(Class, params) {
|
|
|
2455
2455
|
...normalizeParams(params)
|
|
2456
2456
|
});
|
|
2457
2457
|
}
|
|
2458
|
-
|
|
2458
|
+
// @__NO_SIDE_EFFECTS__
|
|
2459
2459
|
function _nanoid(Class, params) {
|
|
2460
2460
|
return new Class({
|
|
2461
2461
|
type: "string",
|
|
@@ -2470,7 +2470,7 @@ function _nanoid(Class, params) {
|
|
|
2470
2470
|
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2471
2471
|
* See https://github.com/paralleldrive/cuid.
|
|
2472
2472
|
*/
|
|
2473
|
-
|
|
2473
|
+
// @__NO_SIDE_EFFECTS__
|
|
2474
2474
|
function _cuid(Class, params) {
|
|
2475
2475
|
return new Class({
|
|
2476
2476
|
type: "string",
|
|
@@ -2480,7 +2480,7 @@ function _cuid(Class, params) {
|
|
|
2480
2480
|
...normalizeParams(params)
|
|
2481
2481
|
});
|
|
2482
2482
|
}
|
|
2483
|
-
|
|
2483
|
+
// @__NO_SIDE_EFFECTS__
|
|
2484
2484
|
function _cuid2(Class, params) {
|
|
2485
2485
|
return new Class({
|
|
2486
2486
|
type: "string",
|
|
@@ -2490,7 +2490,7 @@ function _cuid2(Class, params) {
|
|
|
2490
2490
|
...normalizeParams(params)
|
|
2491
2491
|
});
|
|
2492
2492
|
}
|
|
2493
|
-
|
|
2493
|
+
// @__NO_SIDE_EFFECTS__
|
|
2494
2494
|
function _ulid(Class, params) {
|
|
2495
2495
|
return new Class({
|
|
2496
2496
|
type: "string",
|
|
@@ -2500,7 +2500,7 @@ function _ulid(Class, params) {
|
|
|
2500
2500
|
...normalizeParams(params)
|
|
2501
2501
|
});
|
|
2502
2502
|
}
|
|
2503
|
-
|
|
2503
|
+
// @__NO_SIDE_EFFECTS__
|
|
2504
2504
|
function _xid(Class, params) {
|
|
2505
2505
|
return new Class({
|
|
2506
2506
|
type: "string",
|
|
@@ -2510,7 +2510,7 @@ function _xid(Class, params) {
|
|
|
2510
2510
|
...normalizeParams(params)
|
|
2511
2511
|
});
|
|
2512
2512
|
}
|
|
2513
|
-
|
|
2513
|
+
// @__NO_SIDE_EFFECTS__
|
|
2514
2514
|
function _ksuid(Class, params) {
|
|
2515
2515
|
return new Class({
|
|
2516
2516
|
type: "string",
|
|
@@ -2520,7 +2520,7 @@ function _ksuid(Class, params) {
|
|
|
2520
2520
|
...normalizeParams(params)
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
|
-
|
|
2523
|
+
// @__NO_SIDE_EFFECTS__
|
|
2524
2524
|
function _ipv4(Class, params) {
|
|
2525
2525
|
return new Class({
|
|
2526
2526
|
type: "string",
|
|
@@ -2530,7 +2530,7 @@ function _ipv4(Class, params) {
|
|
|
2530
2530
|
...normalizeParams(params)
|
|
2531
2531
|
});
|
|
2532
2532
|
}
|
|
2533
|
-
|
|
2533
|
+
// @__NO_SIDE_EFFECTS__
|
|
2534
2534
|
function _ipv6(Class, params) {
|
|
2535
2535
|
return new Class({
|
|
2536
2536
|
type: "string",
|
|
@@ -2540,7 +2540,7 @@ function _ipv6(Class, params) {
|
|
|
2540
2540
|
...normalizeParams(params)
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
2543
|
-
|
|
2543
|
+
// @__NO_SIDE_EFFECTS__
|
|
2544
2544
|
function _cidrv4(Class, params) {
|
|
2545
2545
|
return new Class({
|
|
2546
2546
|
type: "string",
|
|
@@ -2550,7 +2550,7 @@ function _cidrv4(Class, params) {
|
|
|
2550
2550
|
...normalizeParams(params)
|
|
2551
2551
|
});
|
|
2552
2552
|
}
|
|
2553
|
-
|
|
2553
|
+
// @__NO_SIDE_EFFECTS__
|
|
2554
2554
|
function _cidrv6(Class, params) {
|
|
2555
2555
|
return new Class({
|
|
2556
2556
|
type: "string",
|
|
@@ -2560,7 +2560,7 @@ function _cidrv6(Class, params) {
|
|
|
2560
2560
|
...normalizeParams(params)
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
|
|
2563
|
+
// @__NO_SIDE_EFFECTS__
|
|
2564
2564
|
function _base64(Class, params) {
|
|
2565
2565
|
return new Class({
|
|
2566
2566
|
type: "string",
|
|
@@ -2570,7 +2570,7 @@ function _base64(Class, params) {
|
|
|
2570
2570
|
...normalizeParams(params)
|
|
2571
2571
|
});
|
|
2572
2572
|
}
|
|
2573
|
-
|
|
2573
|
+
// @__NO_SIDE_EFFECTS__
|
|
2574
2574
|
function _base64url(Class, params) {
|
|
2575
2575
|
return new Class({
|
|
2576
2576
|
type: "string",
|
|
@@ -2580,7 +2580,7 @@ function _base64url(Class, params) {
|
|
|
2580
2580
|
...normalizeParams(params)
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
2583
|
-
|
|
2583
|
+
// @__NO_SIDE_EFFECTS__
|
|
2584
2584
|
function _e164(Class, params) {
|
|
2585
2585
|
return new Class({
|
|
2586
2586
|
type: "string",
|
|
@@ -2590,7 +2590,7 @@ function _e164(Class, params) {
|
|
|
2590
2590
|
...normalizeParams(params)
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
|
|
2593
|
+
// @__NO_SIDE_EFFECTS__
|
|
2594
2594
|
function _jwt(Class, params) {
|
|
2595
2595
|
return new Class({
|
|
2596
2596
|
type: "string",
|
|
@@ -2600,7 +2600,7 @@ function _jwt(Class, params) {
|
|
|
2600
2600
|
...normalizeParams(params)
|
|
2601
2601
|
});
|
|
2602
2602
|
}
|
|
2603
|
-
|
|
2603
|
+
// @__NO_SIDE_EFFECTS__
|
|
2604
2604
|
function _isoDateTime(Class, params) {
|
|
2605
2605
|
return new Class({
|
|
2606
2606
|
type: "string",
|
|
@@ -2612,7 +2612,7 @@ function _isoDateTime(Class, params) {
|
|
|
2612
2612
|
...normalizeParams(params)
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
|
-
|
|
2615
|
+
// @__NO_SIDE_EFFECTS__
|
|
2616
2616
|
function _isoDate(Class, params) {
|
|
2617
2617
|
return new Class({
|
|
2618
2618
|
type: "string",
|
|
@@ -2621,7 +2621,7 @@ function _isoDate(Class, params) {
|
|
|
2621
2621
|
...normalizeParams(params)
|
|
2622
2622
|
});
|
|
2623
2623
|
}
|
|
2624
|
-
|
|
2624
|
+
// @__NO_SIDE_EFFECTS__
|
|
2625
2625
|
function _isoTime(Class, params) {
|
|
2626
2626
|
return new Class({
|
|
2627
2627
|
type: "string",
|
|
@@ -2631,7 +2631,7 @@ function _isoTime(Class, params) {
|
|
|
2631
2631
|
...normalizeParams(params)
|
|
2632
2632
|
});
|
|
2633
2633
|
}
|
|
2634
|
-
|
|
2634
|
+
// @__NO_SIDE_EFFECTS__
|
|
2635
2635
|
function _isoDuration(Class, params) {
|
|
2636
2636
|
return new Class({
|
|
2637
2637
|
type: "string",
|
|
@@ -2640,7 +2640,7 @@ function _isoDuration(Class, params) {
|
|
|
2640
2640
|
...normalizeParams(params)
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
|
-
|
|
2643
|
+
// @__NO_SIDE_EFFECTS__
|
|
2644
2644
|
function _number(Class, params) {
|
|
2645
2645
|
return new Class({
|
|
2646
2646
|
type: "number",
|
|
@@ -2648,7 +2648,7 @@ function _number(Class, params) {
|
|
|
2648
2648
|
...normalizeParams(params)
|
|
2649
2649
|
});
|
|
2650
2650
|
}
|
|
2651
|
-
|
|
2651
|
+
// @__NO_SIDE_EFFECTS__
|
|
2652
2652
|
function _coercedNumber(Class, params) {
|
|
2653
2653
|
return new Class({
|
|
2654
2654
|
type: "number",
|
|
@@ -2657,7 +2657,7 @@ function _coercedNumber(Class, params) {
|
|
|
2657
2657
|
...normalizeParams(params)
|
|
2658
2658
|
});
|
|
2659
2659
|
}
|
|
2660
|
-
|
|
2660
|
+
// @__NO_SIDE_EFFECTS__
|
|
2661
2661
|
function _int(Class, params) {
|
|
2662
2662
|
return new Class({
|
|
2663
2663
|
type: "number",
|
|
@@ -2667,36 +2667,36 @@ function _int(Class, params) {
|
|
|
2667
2667
|
...normalizeParams(params)
|
|
2668
2668
|
});
|
|
2669
2669
|
}
|
|
2670
|
-
|
|
2670
|
+
// @__NO_SIDE_EFFECTS__
|
|
2671
2671
|
function _boolean(Class, params) {
|
|
2672
2672
|
return new Class({
|
|
2673
2673
|
type: "boolean",
|
|
2674
2674
|
...normalizeParams(params)
|
|
2675
2675
|
});
|
|
2676
2676
|
}
|
|
2677
|
-
|
|
2677
|
+
// @__NO_SIDE_EFFECTS__
|
|
2678
2678
|
function _null$1(Class, params) {
|
|
2679
2679
|
return new Class({
|
|
2680
2680
|
type: "null",
|
|
2681
2681
|
...normalizeParams(params)
|
|
2682
2682
|
});
|
|
2683
2683
|
}
|
|
2684
|
-
|
|
2684
|
+
// @__NO_SIDE_EFFECTS__
|
|
2685
2685
|
function _any(Class) {
|
|
2686
2686
|
return new Class({ type: "any" });
|
|
2687
2687
|
}
|
|
2688
|
-
|
|
2688
|
+
// @__NO_SIDE_EFFECTS__
|
|
2689
2689
|
function _unknown(Class) {
|
|
2690
2690
|
return new Class({ type: "unknown" });
|
|
2691
2691
|
}
|
|
2692
|
-
|
|
2692
|
+
// @__NO_SIDE_EFFECTS__
|
|
2693
2693
|
function _never(Class, params) {
|
|
2694
2694
|
return new Class({
|
|
2695
2695
|
type: "never",
|
|
2696
2696
|
...normalizeParams(params)
|
|
2697
2697
|
});
|
|
2698
2698
|
}
|
|
2699
|
-
|
|
2699
|
+
// @__NO_SIDE_EFFECTS__
|
|
2700
2700
|
function _lt(value, params) {
|
|
2701
2701
|
return new $ZodCheckLessThan({
|
|
2702
2702
|
check: "less_than",
|
|
@@ -2705,7 +2705,7 @@ function _lt(value, params) {
|
|
|
2705
2705
|
inclusive: false
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
2708
|
-
|
|
2708
|
+
// @__NO_SIDE_EFFECTS__
|
|
2709
2709
|
function _lte(value, params) {
|
|
2710
2710
|
return new $ZodCheckLessThan({
|
|
2711
2711
|
check: "less_than",
|
|
@@ -2714,7 +2714,7 @@ function _lte(value, params) {
|
|
|
2714
2714
|
inclusive: true
|
|
2715
2715
|
});
|
|
2716
2716
|
}
|
|
2717
|
-
|
|
2717
|
+
// @__NO_SIDE_EFFECTS__
|
|
2718
2718
|
function _gt(value, params) {
|
|
2719
2719
|
return new $ZodCheckGreaterThan({
|
|
2720
2720
|
check: "greater_than",
|
|
@@ -2723,7 +2723,7 @@ function _gt(value, params) {
|
|
|
2723
2723
|
inclusive: false
|
|
2724
2724
|
});
|
|
2725
2725
|
}
|
|
2726
|
-
|
|
2726
|
+
// @__NO_SIDE_EFFECTS__
|
|
2727
2727
|
function _gte(value, params) {
|
|
2728
2728
|
return new $ZodCheckGreaterThan({
|
|
2729
2729
|
check: "greater_than",
|
|
@@ -2732,7 +2732,7 @@ function _gte(value, params) {
|
|
|
2732
2732
|
inclusive: true
|
|
2733
2733
|
});
|
|
2734
2734
|
}
|
|
2735
|
-
|
|
2735
|
+
// @__NO_SIDE_EFFECTS__
|
|
2736
2736
|
function _multipleOf(value, params) {
|
|
2737
2737
|
return new $ZodCheckMultipleOf({
|
|
2738
2738
|
check: "multiple_of",
|
|
@@ -2740,7 +2740,7 @@ function _multipleOf(value, params) {
|
|
|
2740
2740
|
value
|
|
2741
2741
|
});
|
|
2742
2742
|
}
|
|
2743
|
-
|
|
2743
|
+
// @__NO_SIDE_EFFECTS__
|
|
2744
2744
|
function _maxLength(maximum, params) {
|
|
2745
2745
|
return new $ZodCheckMaxLength({
|
|
2746
2746
|
check: "max_length",
|
|
@@ -2748,7 +2748,7 @@ function _maxLength(maximum, params) {
|
|
|
2748
2748
|
maximum
|
|
2749
2749
|
});
|
|
2750
2750
|
}
|
|
2751
|
-
|
|
2751
|
+
// @__NO_SIDE_EFFECTS__
|
|
2752
2752
|
function _minLength(minimum, params) {
|
|
2753
2753
|
return new $ZodCheckMinLength({
|
|
2754
2754
|
check: "min_length",
|
|
@@ -2756,7 +2756,7 @@ function _minLength(minimum, params) {
|
|
|
2756
2756
|
minimum
|
|
2757
2757
|
});
|
|
2758
2758
|
}
|
|
2759
|
-
|
|
2759
|
+
// @__NO_SIDE_EFFECTS__
|
|
2760
2760
|
function _length(length, params) {
|
|
2761
2761
|
return new $ZodCheckLengthEquals({
|
|
2762
2762
|
check: "length_equals",
|
|
@@ -2764,7 +2764,7 @@ function _length(length, params) {
|
|
|
2764
2764
|
length
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
|
-
|
|
2767
|
+
// @__NO_SIDE_EFFECTS__
|
|
2768
2768
|
function _regex(pattern, params) {
|
|
2769
2769
|
return new $ZodCheckRegex({
|
|
2770
2770
|
check: "string_format",
|
|
@@ -2773,7 +2773,7 @@ function _regex(pattern, params) {
|
|
|
2773
2773
|
pattern
|
|
2774
2774
|
});
|
|
2775
2775
|
}
|
|
2776
|
-
|
|
2776
|
+
// @__NO_SIDE_EFFECTS__
|
|
2777
2777
|
function _lowercase(params) {
|
|
2778
2778
|
return new $ZodCheckLowerCase({
|
|
2779
2779
|
check: "string_format",
|
|
@@ -2781,7 +2781,7 @@ function _lowercase(params) {
|
|
|
2781
2781
|
...normalizeParams(params)
|
|
2782
2782
|
});
|
|
2783
2783
|
}
|
|
2784
|
-
|
|
2784
|
+
// @__NO_SIDE_EFFECTS__
|
|
2785
2785
|
function _uppercase(params) {
|
|
2786
2786
|
return new $ZodCheckUpperCase({
|
|
2787
2787
|
check: "string_format",
|
|
@@ -2789,7 +2789,7 @@ function _uppercase(params) {
|
|
|
2789
2789
|
...normalizeParams(params)
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2792
|
+
// @__NO_SIDE_EFFECTS__
|
|
2793
2793
|
function _includes(includes, params) {
|
|
2794
2794
|
return new $ZodCheckIncludes({
|
|
2795
2795
|
check: "string_format",
|
|
@@ -2798,7 +2798,7 @@ function _includes(includes, params) {
|
|
|
2798
2798
|
includes
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2801
|
+
// @__NO_SIDE_EFFECTS__
|
|
2802
2802
|
function _startsWith(prefix, params) {
|
|
2803
2803
|
return new $ZodCheckStartsWith({
|
|
2804
2804
|
check: "string_format",
|
|
@@ -2807,7 +2807,7 @@ function _startsWith(prefix, params) {
|
|
|
2807
2807
|
prefix
|
|
2808
2808
|
});
|
|
2809
2809
|
}
|
|
2810
|
-
|
|
2810
|
+
// @__NO_SIDE_EFFECTS__
|
|
2811
2811
|
function _endsWith(suffix, params) {
|
|
2812
2812
|
return new $ZodCheckEndsWith({
|
|
2813
2813
|
check: "string_format",
|
|
@@ -2816,34 +2816,34 @@ function _endsWith(suffix, params) {
|
|
|
2816
2816
|
suffix
|
|
2817
2817
|
});
|
|
2818
2818
|
}
|
|
2819
|
-
|
|
2819
|
+
// @__NO_SIDE_EFFECTS__
|
|
2820
2820
|
function _overwrite(tx) {
|
|
2821
2821
|
return new $ZodCheckOverwrite({
|
|
2822
2822
|
check: "overwrite",
|
|
2823
2823
|
tx
|
|
2824
2824
|
});
|
|
2825
2825
|
}
|
|
2826
|
-
|
|
2826
|
+
// @__NO_SIDE_EFFECTS__
|
|
2827
2827
|
function _normalize(form) {
|
|
2828
2828
|
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2829
2829
|
}
|
|
2830
|
-
|
|
2830
|
+
// @__NO_SIDE_EFFECTS__
|
|
2831
2831
|
function _trim() {
|
|
2832
2832
|
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2833
2833
|
}
|
|
2834
|
-
|
|
2834
|
+
// @__NO_SIDE_EFFECTS__
|
|
2835
2835
|
function _toLowerCase() {
|
|
2836
2836
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2837
2837
|
}
|
|
2838
|
-
|
|
2838
|
+
// @__NO_SIDE_EFFECTS__
|
|
2839
2839
|
function _toUpperCase() {
|
|
2840
2840
|
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2841
2841
|
}
|
|
2842
|
-
|
|
2842
|
+
// @__NO_SIDE_EFFECTS__
|
|
2843
2843
|
function _slugify() {
|
|
2844
2844
|
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2845
2845
|
}
|
|
2846
|
-
|
|
2846
|
+
// @__NO_SIDE_EFFECTS__
|
|
2847
2847
|
function _array(Class, element, params) {
|
|
2848
2848
|
return new Class({
|
|
2849
2849
|
type: "array",
|
|
@@ -2851,7 +2851,7 @@ function _array(Class, element, params) {
|
|
|
2851
2851
|
...normalizeParams(params)
|
|
2852
2852
|
});
|
|
2853
2853
|
}
|
|
2854
|
-
|
|
2854
|
+
// @__NO_SIDE_EFFECTS__
|
|
2855
2855
|
function _custom(Class, fn, _params) {
|
|
2856
2856
|
const norm = normalizeParams(_params);
|
|
2857
2857
|
norm.abort ?? (norm.abort = true);
|
|
@@ -2862,7 +2862,7 @@ function _custom(Class, fn, _params) {
|
|
|
2862
2862
|
...norm
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
|
-
|
|
2865
|
+
// @__NO_SIDE_EFFECTS__
|
|
2866
2866
|
function _refine(Class, fn, _params) {
|
|
2867
2867
|
return new Class({
|
|
2868
2868
|
type: "custom",
|
|
@@ -2871,7 +2871,7 @@ function _refine(Class, fn, _params) {
|
|
|
2871
2871
|
...normalizeParams(_params)
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
|
-
|
|
2874
|
+
// @__NO_SIDE_EFFECTS__
|
|
2875
2875
|
function _superRefine(fn, params) {
|
|
2876
2876
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2877
2877
|
payload.addIssue = (issue$2) => {
|
|
@@ -2890,7 +2890,7 @@ function _superRefine(fn, params) {
|
|
|
2890
2890
|
}, params);
|
|
2891
2891
|
return ch;
|
|
2892
2892
|
}
|
|
2893
|
-
|
|
2893
|
+
// @__NO_SIDE_EFFECTS__
|
|
2894
2894
|
function _check(fn, params) {
|
|
2895
2895
|
const ch = new $ZodCheck({
|
|
2896
2896
|
check: "custom",
|
|
@@ -3646,28 +3646,28 @@ function toJSONSchema(input, params) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
//#endregion
|
|
3648
3648
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3649
|
-
const ZodISODateTime =
|
|
3649
|
+
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3650
3650
|
$ZodISODateTime.init(inst, def);
|
|
3651
3651
|
ZodStringFormat.init(inst, def);
|
|
3652
3652
|
});
|
|
3653
3653
|
function datetime(params) {
|
|
3654
3654
|
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
3655
3655
|
}
|
|
3656
|
-
const ZodISODate =
|
|
3656
|
+
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
3657
3657
|
$ZodISODate.init(inst, def);
|
|
3658
3658
|
ZodStringFormat.init(inst, def);
|
|
3659
3659
|
});
|
|
3660
3660
|
function date(params) {
|
|
3661
3661
|
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
3662
3662
|
}
|
|
3663
|
-
const ZodISOTime =
|
|
3663
|
+
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
3664
3664
|
$ZodISOTime.init(inst, def);
|
|
3665
3665
|
ZodStringFormat.init(inst, def);
|
|
3666
3666
|
});
|
|
3667
3667
|
function time(params) {
|
|
3668
3668
|
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
3669
3669
|
}
|
|
3670
|
-
const ZodISODuration =
|
|
3670
|
+
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
3671
3671
|
$ZodISODuration.init(inst, def);
|
|
3672
3672
|
ZodStringFormat.init(inst, def);
|
|
3673
3673
|
});
|
|
@@ -3695,7 +3695,7 @@ const initializer = (inst, issues) => {
|
|
|
3695
3695
|
} }
|
|
3696
3696
|
});
|
|
3697
3697
|
};
|
|
3698
|
-
const ZodRealError =
|
|
3698
|
+
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3699
3699
|
//#endregion
|
|
3700
3700
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3701
3701
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -3748,7 +3748,7 @@ function _installLazyMethods(inst, group, methods) {
|
|
|
3748
3748
|
});
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
|
-
const ZodType =
|
|
3751
|
+
const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3752
3752
|
$ZodType.init(inst, def);
|
|
3753
3753
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3754
3754
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -3874,7 +3874,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3874
3874
|
return inst;
|
|
3875
3875
|
});
|
|
3876
3876
|
/** @internal */
|
|
3877
|
-
const _ZodString =
|
|
3877
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3878
3878
|
$ZodString.init(inst, def);
|
|
3879
3879
|
ZodType.init(inst, def);
|
|
3880
3880
|
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
@@ -3930,7 +3930,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
3930
3930
|
}
|
|
3931
3931
|
});
|
|
3932
3932
|
});
|
|
3933
|
-
const ZodString =
|
|
3933
|
+
const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3934
3934
|
$ZodString.init(inst, def);
|
|
3935
3935
|
_ZodString.init(inst, def);
|
|
3936
3936
|
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
@@ -3964,34 +3964,34 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
3964
3964
|
function string(params) {
|
|
3965
3965
|
return /* @__PURE__ */ _string(ZodString, params);
|
|
3966
3966
|
}
|
|
3967
|
-
const ZodStringFormat =
|
|
3967
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3968
3968
|
$ZodStringFormat.init(inst, def);
|
|
3969
3969
|
_ZodString.init(inst, def);
|
|
3970
3970
|
});
|
|
3971
|
-
const ZodEmail =
|
|
3971
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3972
3972
|
$ZodEmail.init(inst, def);
|
|
3973
3973
|
ZodStringFormat.init(inst, def);
|
|
3974
3974
|
});
|
|
3975
|
-
const ZodGUID =
|
|
3975
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
3976
3976
|
$ZodGUID.init(inst, def);
|
|
3977
3977
|
ZodStringFormat.init(inst, def);
|
|
3978
3978
|
});
|
|
3979
|
-
const ZodUUID =
|
|
3979
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
3980
3980
|
$ZodUUID.init(inst, def);
|
|
3981
3981
|
ZodStringFormat.init(inst, def);
|
|
3982
3982
|
});
|
|
3983
|
-
const ZodURL =
|
|
3983
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
3984
3984
|
$ZodURL.init(inst, def);
|
|
3985
3985
|
ZodStringFormat.init(inst, def);
|
|
3986
3986
|
});
|
|
3987
3987
|
function url(params) {
|
|
3988
3988
|
return /* @__PURE__ */ _url(ZodURL, params);
|
|
3989
3989
|
}
|
|
3990
|
-
const ZodEmoji =
|
|
3990
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
3991
3991
|
$ZodEmoji.init(inst, def);
|
|
3992
3992
|
ZodStringFormat.init(inst, def);
|
|
3993
3993
|
});
|
|
3994
|
-
const ZodNanoID =
|
|
3994
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
3995
3995
|
$ZodNanoID.init(inst, def);
|
|
3996
3996
|
ZodStringFormat.init(inst, def);
|
|
3997
3997
|
});
|
|
@@ -4000,59 +4000,59 @@ const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
|
4000
4000
|
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
4001
4001
|
* See https://github.com/paralleldrive/cuid.
|
|
4002
4002
|
*/
|
|
4003
|
-
const ZodCUID =
|
|
4003
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
4004
4004
|
$ZodCUID.init(inst, def);
|
|
4005
4005
|
ZodStringFormat.init(inst, def);
|
|
4006
4006
|
});
|
|
4007
|
-
const ZodCUID2 =
|
|
4007
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
4008
4008
|
$ZodCUID2.init(inst, def);
|
|
4009
4009
|
ZodStringFormat.init(inst, def);
|
|
4010
4010
|
});
|
|
4011
|
-
const ZodULID =
|
|
4011
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
4012
4012
|
$ZodULID.init(inst, def);
|
|
4013
4013
|
ZodStringFormat.init(inst, def);
|
|
4014
4014
|
});
|
|
4015
|
-
const ZodXID =
|
|
4015
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
4016
4016
|
$ZodXID.init(inst, def);
|
|
4017
4017
|
ZodStringFormat.init(inst, def);
|
|
4018
4018
|
});
|
|
4019
|
-
const ZodKSUID =
|
|
4019
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
4020
4020
|
$ZodKSUID.init(inst, def);
|
|
4021
4021
|
ZodStringFormat.init(inst, def);
|
|
4022
4022
|
});
|
|
4023
|
-
const ZodIPv4 =
|
|
4023
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
4024
4024
|
$ZodIPv4.init(inst, def);
|
|
4025
4025
|
ZodStringFormat.init(inst, def);
|
|
4026
4026
|
});
|
|
4027
|
-
const ZodIPv6 =
|
|
4027
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
4028
4028
|
$ZodIPv6.init(inst, def);
|
|
4029
4029
|
ZodStringFormat.init(inst, def);
|
|
4030
4030
|
});
|
|
4031
|
-
const ZodCIDRv4 =
|
|
4031
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
4032
4032
|
$ZodCIDRv4.init(inst, def);
|
|
4033
4033
|
ZodStringFormat.init(inst, def);
|
|
4034
4034
|
});
|
|
4035
|
-
const ZodCIDRv6 =
|
|
4035
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
4036
4036
|
$ZodCIDRv6.init(inst, def);
|
|
4037
4037
|
ZodStringFormat.init(inst, def);
|
|
4038
4038
|
});
|
|
4039
|
-
const ZodBase64 =
|
|
4039
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
4040
4040
|
$ZodBase64.init(inst, def);
|
|
4041
4041
|
ZodStringFormat.init(inst, def);
|
|
4042
4042
|
});
|
|
4043
|
-
const ZodBase64URL =
|
|
4043
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
4044
4044
|
$ZodBase64URL.init(inst, def);
|
|
4045
4045
|
ZodStringFormat.init(inst, def);
|
|
4046
4046
|
});
|
|
4047
|
-
const ZodE164 =
|
|
4047
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
4048
4048
|
$ZodE164.init(inst, def);
|
|
4049
4049
|
ZodStringFormat.init(inst, def);
|
|
4050
4050
|
});
|
|
4051
|
-
const ZodJWT =
|
|
4051
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
4052
4052
|
$ZodJWT.init(inst, def);
|
|
4053
4053
|
ZodStringFormat.init(inst, def);
|
|
4054
4054
|
});
|
|
4055
|
-
const ZodNumber =
|
|
4055
|
+
const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
4056
4056
|
$ZodNumber.init(inst, def);
|
|
4057
4057
|
ZodType.init(inst, def);
|
|
4058
4058
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
@@ -4113,14 +4113,14 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
4113
4113
|
function number(params) {
|
|
4114
4114
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
4115
4115
|
}
|
|
4116
|
-
const ZodNumberFormat =
|
|
4116
|
+
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
4117
4117
|
$ZodNumberFormat.init(inst, def);
|
|
4118
4118
|
ZodNumber.init(inst, def);
|
|
4119
4119
|
});
|
|
4120
4120
|
function int(params) {
|
|
4121
4121
|
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
4122
4122
|
}
|
|
4123
|
-
const ZodBoolean =
|
|
4123
|
+
const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
4124
4124
|
$ZodBoolean.init(inst, def);
|
|
4125
4125
|
ZodType.init(inst, def);
|
|
4126
4126
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
@@ -4128,7 +4128,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
4128
4128
|
function boolean(params) {
|
|
4129
4129
|
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
4130
4130
|
}
|
|
4131
|
-
const ZodNull =
|
|
4131
|
+
const ZodNull = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => {
|
|
4132
4132
|
$ZodNull.init(inst, def);
|
|
4133
4133
|
ZodType.init(inst, def);
|
|
4134
4134
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
@@ -4136,7 +4136,7 @@ const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
4136
4136
|
function _null(params) {
|
|
4137
4137
|
return /* @__PURE__ */ _null$1(ZodNull, params);
|
|
4138
4138
|
}
|
|
4139
|
-
const ZodAny =
|
|
4139
|
+
const ZodAny = /*@__PURE__*/ $constructor("ZodAny", (inst, def) => {
|
|
4140
4140
|
$ZodAny.init(inst, def);
|
|
4141
4141
|
ZodType.init(inst, def);
|
|
4142
4142
|
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
@@ -4144,7 +4144,7 @@ const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
|
4144
4144
|
function any() {
|
|
4145
4145
|
return /* @__PURE__ */ _any(ZodAny);
|
|
4146
4146
|
}
|
|
4147
|
-
const ZodUnknown =
|
|
4147
|
+
const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
4148
4148
|
$ZodUnknown.init(inst, def);
|
|
4149
4149
|
ZodType.init(inst, def);
|
|
4150
4150
|
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
@@ -4152,7 +4152,7 @@ const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
4152
4152
|
function unknown() {
|
|
4153
4153
|
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
4154
4154
|
}
|
|
4155
|
-
const ZodNever =
|
|
4155
|
+
const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
4156
4156
|
$ZodNever.init(inst, def);
|
|
4157
4157
|
ZodType.init(inst, def);
|
|
4158
4158
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
@@ -4160,7 +4160,7 @@ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
4160
4160
|
function never(params) {
|
|
4161
4161
|
return /* @__PURE__ */ _never(ZodNever, params);
|
|
4162
4162
|
}
|
|
4163
|
-
const ZodArray =
|
|
4163
|
+
const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
4164
4164
|
$ZodArray.init(inst, def);
|
|
4165
4165
|
ZodType.init(inst, def);
|
|
4166
4166
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
@@ -4186,7 +4186,7 @@ const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
4186
4186
|
function array(element, params) {
|
|
4187
4187
|
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
4188
4188
|
}
|
|
4189
|
-
const ZodObject =
|
|
4189
|
+
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
4190
4190
|
$ZodObjectJIT.init(inst, def);
|
|
4191
4191
|
ZodType.init(inst, def);
|
|
4192
4192
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -4265,7 +4265,7 @@ function looseObject(shape, params) {
|
|
|
4265
4265
|
...normalizeParams(params)
|
|
4266
4266
|
});
|
|
4267
4267
|
}
|
|
4268
|
-
const ZodUnion =
|
|
4268
|
+
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
4269
4269
|
$ZodUnion.init(inst, def);
|
|
4270
4270
|
ZodType.init(inst, def);
|
|
4271
4271
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -4278,7 +4278,7 @@ function union(options, params) {
|
|
|
4278
4278
|
...normalizeParams(params)
|
|
4279
4279
|
});
|
|
4280
4280
|
}
|
|
4281
|
-
const ZodDiscriminatedUnion =
|
|
4281
|
+
const ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
4282
4282
|
ZodUnion.init(inst, def);
|
|
4283
4283
|
$ZodDiscriminatedUnion.init(inst, def);
|
|
4284
4284
|
});
|
|
@@ -4290,7 +4290,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
4290
4290
|
...normalizeParams(params)
|
|
4291
4291
|
});
|
|
4292
4292
|
}
|
|
4293
|
-
const ZodIntersection =
|
|
4293
|
+
const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
4294
4294
|
$ZodIntersection.init(inst, def);
|
|
4295
4295
|
ZodType.init(inst, def);
|
|
4296
4296
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -4302,7 +4302,7 @@ function intersection(left, right) {
|
|
|
4302
4302
|
right
|
|
4303
4303
|
});
|
|
4304
4304
|
}
|
|
4305
|
-
const ZodRecord =
|
|
4305
|
+
const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
4306
4306
|
$ZodRecord.init(inst, def);
|
|
4307
4307
|
ZodType.init(inst, def);
|
|
4308
4308
|
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
@@ -4323,7 +4323,7 @@ function record(keyType, valueType, params) {
|
|
|
4323
4323
|
...normalizeParams(params)
|
|
4324
4324
|
});
|
|
4325
4325
|
}
|
|
4326
|
-
const ZodEnum =
|
|
4326
|
+
const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
4327
4327
|
$ZodEnum.init(inst, def);
|
|
4328
4328
|
ZodType.init(inst, def);
|
|
4329
4329
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -4360,7 +4360,7 @@ function _enum(values, params) {
|
|
|
4360
4360
|
...normalizeParams(params)
|
|
4361
4361
|
});
|
|
4362
4362
|
}
|
|
4363
|
-
const ZodLiteral =
|
|
4363
|
+
const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
4364
4364
|
$ZodLiteral.init(inst, def);
|
|
4365
4365
|
ZodType.init(inst, def);
|
|
4366
4366
|
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
@@ -4377,7 +4377,7 @@ function literal(value, params) {
|
|
|
4377
4377
|
...normalizeParams(params)
|
|
4378
4378
|
});
|
|
4379
4379
|
}
|
|
4380
|
-
const ZodTransform =
|
|
4380
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
4381
4381
|
$ZodTransform.init(inst, def);
|
|
4382
4382
|
ZodType.init(inst, def);
|
|
4383
4383
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -4411,7 +4411,7 @@ function transform(fn) {
|
|
|
4411
4411
|
transform: fn
|
|
4412
4412
|
});
|
|
4413
4413
|
}
|
|
4414
|
-
const ZodOptional =
|
|
4414
|
+
const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
4415
4415
|
$ZodOptional.init(inst, def);
|
|
4416
4416
|
ZodType.init(inst, def);
|
|
4417
4417
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4423,7 +4423,7 @@ function optional(innerType) {
|
|
|
4423
4423
|
innerType
|
|
4424
4424
|
});
|
|
4425
4425
|
}
|
|
4426
|
-
const ZodExactOptional =
|
|
4426
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
4427
4427
|
$ZodExactOptional.init(inst, def);
|
|
4428
4428
|
ZodType.init(inst, def);
|
|
4429
4429
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4435,7 +4435,7 @@ function exactOptional(innerType) {
|
|
|
4435
4435
|
innerType
|
|
4436
4436
|
});
|
|
4437
4437
|
}
|
|
4438
|
-
const ZodNullable =
|
|
4438
|
+
const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
4439
4439
|
$ZodNullable.init(inst, def);
|
|
4440
4440
|
ZodType.init(inst, def);
|
|
4441
4441
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -4447,7 +4447,7 @@ function nullable(innerType) {
|
|
|
4447
4447
|
innerType
|
|
4448
4448
|
});
|
|
4449
4449
|
}
|
|
4450
|
-
const ZodDefault =
|
|
4450
|
+
const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
4451
4451
|
$ZodDefault.init(inst, def);
|
|
4452
4452
|
ZodType.init(inst, def);
|
|
4453
4453
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -4463,7 +4463,7 @@ function _default(innerType, defaultValue) {
|
|
|
4463
4463
|
}
|
|
4464
4464
|
});
|
|
4465
4465
|
}
|
|
4466
|
-
const ZodPrefault =
|
|
4466
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
4467
4467
|
$ZodPrefault.init(inst, def);
|
|
4468
4468
|
ZodType.init(inst, def);
|
|
4469
4469
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -4478,7 +4478,7 @@ function prefault(innerType, defaultValue) {
|
|
|
4478
4478
|
}
|
|
4479
4479
|
});
|
|
4480
4480
|
}
|
|
4481
|
-
const ZodNonOptional =
|
|
4481
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
4482
4482
|
$ZodNonOptional.init(inst, def);
|
|
4483
4483
|
ZodType.init(inst, def);
|
|
4484
4484
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -4491,7 +4491,7 @@ function nonoptional(innerType, params) {
|
|
|
4491
4491
|
...normalizeParams(params)
|
|
4492
4492
|
});
|
|
4493
4493
|
}
|
|
4494
|
-
const ZodCatch =
|
|
4494
|
+
const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
4495
4495
|
$ZodCatch.init(inst, def);
|
|
4496
4496
|
ZodType.init(inst, def);
|
|
4497
4497
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -4505,7 +4505,7 @@ function _catch(innerType, catchValue) {
|
|
|
4505
4505
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4506
4506
|
});
|
|
4507
4507
|
}
|
|
4508
|
-
const ZodPipe =
|
|
4508
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4509
4509
|
$ZodPipe.init(inst, def);
|
|
4510
4510
|
ZodType.init(inst, def);
|
|
4511
4511
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -4519,11 +4519,11 @@ function pipe(in_, out) {
|
|
|
4519
4519
|
out
|
|
4520
4520
|
});
|
|
4521
4521
|
}
|
|
4522
|
-
const ZodPreprocess =
|
|
4522
|
+
const ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
4523
4523
|
ZodPipe.init(inst, def);
|
|
4524
4524
|
$ZodPreprocess.init(inst, def);
|
|
4525
4525
|
});
|
|
4526
|
-
const ZodReadonly =
|
|
4526
|
+
const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4527
4527
|
$ZodReadonly.init(inst, def);
|
|
4528
4528
|
ZodType.init(inst, def);
|
|
4529
4529
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -4535,7 +4535,7 @@ function readonly(innerType) {
|
|
|
4535
4535
|
innerType
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
|
-
const ZodCustom =
|
|
4538
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4539
4539
|
$ZodCustom.init(inst, def);
|
|
4540
4540
|
ZodType.init(inst, def);
|
|
4541
4541
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
@@ -4559,7 +4559,7 @@ function preprocess(fn, schema) {
|
|
|
4559
4559
|
//#endregion
|
|
4560
4560
|
//#region src/generated-tool-input-schema.ts
|
|
4561
4561
|
const operations = [
|
|
4562
|
-
"
|
|
4562
|
+
"inspect",
|
|
4563
4563
|
"check_backend",
|
|
4564
4564
|
"list_tools",
|
|
4565
4565
|
"search_tools",
|
|
@@ -4578,7 +4578,7 @@ const mcpOperations = [
|
|
|
4578
4578
|
"complete"
|
|
4579
4579
|
];
|
|
4580
4580
|
const generatedToolInputDescriptions = {
|
|
4581
|
-
operation: "Wrapper operation:
|
|
4581
|
+
operation: "Wrapper operation: inspect, check_backend, list_tools, search_tools, get_tool, call_tool. MCP Caplets also expose resources, prompts, and completions.",
|
|
4582
4582
|
query: "Required for search operations only.",
|
|
4583
4583
|
limit: "Optional list/search result limit.",
|
|
4584
4584
|
tool: "Exact downstream tool name for get_tool or call_tool.",
|