caplets 0.17.7 → 0.17.8
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 +206 -206
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24,10 +24,10 @@ var __exportAll$1 = (all, no_symbols) => {
|
|
|
24
24
|
return target;
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region ../core/dist/generated-tool-input-schema-
|
|
27
|
+
//#region ../core/dist/generated-tool-input-schema-MbYF5jMW.js
|
|
28
28
|
var _a$1;
|
|
29
29
|
/** A special constant with type `never` */
|
|
30
|
-
const NEVER =
|
|
30
|
+
const NEVER = /*@__PURE__*/ Object.freeze({ status: "aborted" });
|
|
31
31
|
function $constructor(name, initializer, params) {
|
|
32
32
|
function init(inst, def) {
|
|
33
33
|
if (!inst._zod) Object.defineProperty(inst, "_zod", {
|
|
@@ -117,7 +117,7 @@ function floatSafeRemainder$1(val, step) {
|
|
|
117
117
|
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
118
118
|
return ratio - roundedRatio;
|
|
119
119
|
}
|
|
120
|
-
const EVALUATING = /* @__PURE__
|
|
120
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
121
121
|
function defineLazy(object, key, getter) {
|
|
122
122
|
let value = void 0;
|
|
123
123
|
Object.defineProperty(object, key, {
|
|
@@ -158,7 +158,7 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
|
|
|
158
158
|
function isObject(data) {
|
|
159
159
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
160
160
|
}
|
|
161
|
-
const allowsEval = /* @__PURE__
|
|
161
|
+
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
162
162
|
if (globalConfig.jitless) return false;
|
|
163
163
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
164
164
|
try {
|
|
@@ -185,7 +185,7 @@ function shallowClone(o) {
|
|
|
185
185
|
if (o instanceof Set) return new Set(o);
|
|
186
186
|
return o;
|
|
187
187
|
}
|
|
188
|
-
const propertyKeyTypes = /* @__PURE__
|
|
188
|
+
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
189
189
|
"string",
|
|
190
190
|
"number",
|
|
191
191
|
"symbol"
|
|
@@ -469,7 +469,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
469
469
|
}
|
|
470
470
|
return result.value;
|
|
471
471
|
};
|
|
472
|
-
const parse$1 = /* @__PURE__
|
|
472
|
+
const parse$1 = /* @__PURE__*/ _parse($ZodRealError);
|
|
473
473
|
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
474
474
|
const ctx = _ctx ? {
|
|
475
475
|
..._ctx,
|
|
@@ -487,7 +487,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
487
487
|
}
|
|
488
488
|
return result.value;
|
|
489
489
|
};
|
|
490
|
-
const parseAsync$1 = /* @__PURE__
|
|
490
|
+
const parseAsync$1 = /* @__PURE__*/ _parseAsync($ZodRealError);
|
|
491
491
|
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
492
492
|
const ctx = _ctx ? {
|
|
493
493
|
..._ctx,
|
|
@@ -506,7 +506,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
506
506
|
data: result.value
|
|
507
507
|
};
|
|
508
508
|
};
|
|
509
|
-
const safeParse$1 = /* @__PURE__
|
|
509
|
+
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
510
510
|
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
511
511
|
const ctx = _ctx ? {
|
|
512
512
|
..._ctx,
|
|
@@ -525,7 +525,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
525
525
|
data: result.value
|
|
526
526
|
};
|
|
527
527
|
};
|
|
528
|
-
const safeParseAsync$1 = /* @__PURE__
|
|
528
|
+
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
529
529
|
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
530
530
|
const ctx = _ctx ? {
|
|
531
531
|
..._ctx,
|
|
@@ -603,7 +603,7 @@ const base64url$1 = /^[A-Za-z0-9_-]*$/;
|
|
|
603
603
|
const httpProtocol = /^https?$/;
|
|
604
604
|
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
605
605
|
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])))`;
|
|
606
|
-
const date$1 =
|
|
606
|
+
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
607
607
|
function timeSource(args) {
|
|
608
608
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
609
609
|
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+)?)?`;
|
|
@@ -629,7 +629,7 @@ const boolean$1 = /^(?:true|false)$/i;
|
|
|
629
629
|
const _null$2 = /^null$/i;
|
|
630
630
|
const lowercase = /^[^A-Z]*$/;
|
|
631
631
|
const uppercase = /^[^a-z]*$/;
|
|
632
|
-
const $ZodCheck =
|
|
632
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
633
633
|
var _a;
|
|
634
634
|
inst._zod ?? (inst._zod = {});
|
|
635
635
|
inst._zod.def = def;
|
|
@@ -640,7 +640,7 @@ const numericOriginMap = {
|
|
|
640
640
|
bigint: "bigint",
|
|
641
641
|
object: "date"
|
|
642
642
|
};
|
|
643
|
-
const $ZodCheckLessThan =
|
|
643
|
+
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
644
644
|
$ZodCheck.init(inst, def);
|
|
645
645
|
const origin = numericOriginMap[typeof def.value];
|
|
646
646
|
inst._zod.onattach.push((inst) => {
|
|
@@ -662,7 +662,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
|
|
|
662
662
|
});
|
|
663
663
|
};
|
|
664
664
|
});
|
|
665
|
-
const $ZodCheckGreaterThan =
|
|
665
|
+
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
666
666
|
$ZodCheck.init(inst, def);
|
|
667
667
|
const origin = numericOriginMap[typeof def.value];
|
|
668
668
|
inst._zod.onattach.push((inst) => {
|
|
@@ -684,7 +684,7 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
684
684
|
});
|
|
685
685
|
};
|
|
686
686
|
});
|
|
687
|
-
const $ZodCheckMultipleOf =
|
|
687
|
+
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
688
688
|
$ZodCheck.init(inst, def);
|
|
689
689
|
inst._zod.onattach.push((inst) => {
|
|
690
690
|
var _a;
|
|
@@ -703,7 +703,7 @@ const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf",
|
|
|
703
703
|
});
|
|
704
704
|
};
|
|
705
705
|
});
|
|
706
|
-
const $ZodCheckNumberFormat =
|
|
706
|
+
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
707
707
|
$ZodCheck.init(inst, def);
|
|
708
708
|
def.format = def.format || "float64";
|
|
709
709
|
const isInt = def.format?.includes("int");
|
|
@@ -774,7 +774,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
774
774
|
});
|
|
775
775
|
};
|
|
776
776
|
});
|
|
777
|
-
const $ZodCheckMaxLength =
|
|
777
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
778
778
|
var _a;
|
|
779
779
|
$ZodCheck.init(inst, def);
|
|
780
780
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -800,7 +800,7 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
800
800
|
});
|
|
801
801
|
};
|
|
802
802
|
});
|
|
803
|
-
const $ZodCheckMinLength =
|
|
803
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
804
804
|
var _a;
|
|
805
805
|
$ZodCheck.init(inst, def);
|
|
806
806
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -826,7 +826,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
826
826
|
});
|
|
827
827
|
};
|
|
828
828
|
});
|
|
829
|
-
const $ZodCheckLengthEquals =
|
|
829
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
830
830
|
var _a;
|
|
831
831
|
$ZodCheck.init(inst, def);
|
|
832
832
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -862,7 +862,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
862
862
|
});
|
|
863
863
|
};
|
|
864
864
|
});
|
|
865
|
-
const $ZodCheckStringFormat =
|
|
865
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
866
866
|
var _a, _b;
|
|
867
867
|
$ZodCheck.init(inst, def);
|
|
868
868
|
inst._zod.onattach.push((inst) => {
|
|
@@ -888,7 +888,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
888
888
|
});
|
|
889
889
|
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
890
890
|
});
|
|
891
|
-
const $ZodCheckRegex =
|
|
891
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
892
892
|
$ZodCheckStringFormat.init(inst, def);
|
|
893
893
|
inst._zod.check = (payload) => {
|
|
894
894
|
def.pattern.lastIndex = 0;
|
|
@@ -904,15 +904,15 @@ const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def
|
|
|
904
904
|
});
|
|
905
905
|
};
|
|
906
906
|
});
|
|
907
|
-
const $ZodCheckLowerCase =
|
|
907
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
908
908
|
def.pattern ?? (def.pattern = lowercase);
|
|
909
909
|
$ZodCheckStringFormat.init(inst, def);
|
|
910
910
|
});
|
|
911
|
-
const $ZodCheckUpperCase =
|
|
911
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
912
912
|
def.pattern ?? (def.pattern = uppercase);
|
|
913
913
|
$ZodCheckStringFormat.init(inst, def);
|
|
914
914
|
});
|
|
915
|
-
const $ZodCheckIncludes =
|
|
915
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
916
916
|
$ZodCheck.init(inst, def);
|
|
917
917
|
const escapedRegex = escapeRegex(def.includes);
|
|
918
918
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
@@ -935,7 +935,7 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
|
|
|
935
935
|
});
|
|
936
936
|
};
|
|
937
937
|
});
|
|
938
|
-
const $ZodCheckStartsWith =
|
|
938
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
939
939
|
$ZodCheck.init(inst, def);
|
|
940
940
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
941
941
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -957,7 +957,7 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
});
|
|
960
|
-
const $ZodCheckEndsWith =
|
|
960
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
961
961
|
$ZodCheck.init(inst, def);
|
|
962
962
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
963
963
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -979,7 +979,7 @@ const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (ins
|
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
981
|
});
|
|
982
|
-
const $ZodCheckOverwrite =
|
|
982
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
983
983
|
$ZodCheck.init(inst, def);
|
|
984
984
|
inst._zod.check = (payload) => {
|
|
985
985
|
payload.value = def.tx(payload.value);
|
|
@@ -1019,7 +1019,7 @@ const version$2 = {
|
|
|
1019
1019
|
minor: 4,
|
|
1020
1020
|
patch: 3
|
|
1021
1021
|
};
|
|
1022
|
-
const $ZodType =
|
|
1022
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1023
1023
|
var _a;
|
|
1024
1024
|
inst ?? (inst = {});
|
|
1025
1025
|
inst._zod.def = def;
|
|
@@ -1108,7 +1108,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1108
1108
|
version: 1
|
|
1109
1109
|
}));
|
|
1110
1110
|
});
|
|
1111
|
-
const $ZodString =
|
|
1111
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1112
1112
|
$ZodType.init(inst, def);
|
|
1113
1113
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
1114
1114
|
inst._zod.parse = (payload, _) => {
|
|
@@ -1125,15 +1125,15 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1125
1125
|
return payload;
|
|
1126
1126
|
};
|
|
1127
1127
|
});
|
|
1128
|
-
const $ZodStringFormat =
|
|
1128
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1129
1129
|
$ZodCheckStringFormat.init(inst, def);
|
|
1130
1130
|
$ZodString.init(inst, def);
|
|
1131
1131
|
});
|
|
1132
|
-
const $ZodGUID =
|
|
1132
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1133
1133
|
def.pattern ?? (def.pattern = guid);
|
|
1134
1134
|
$ZodStringFormat.init(inst, def);
|
|
1135
1135
|
});
|
|
1136
|
-
const $ZodUUID =
|
|
1136
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1137
1137
|
if (def.version) {
|
|
1138
1138
|
const v = {
|
|
1139
1139
|
v1: 1,
|
|
@@ -1150,11 +1150,11 @@ const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
|
1150
1150
|
} else def.pattern ?? (def.pattern = uuid());
|
|
1151
1151
|
$ZodStringFormat.init(inst, def);
|
|
1152
1152
|
});
|
|
1153
|
-
const $ZodEmail =
|
|
1153
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1154
1154
|
def.pattern ?? (def.pattern = email);
|
|
1155
1155
|
$ZodStringFormat.init(inst, def);
|
|
1156
1156
|
});
|
|
1157
|
-
const $ZodURL =
|
|
1157
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1158
1158
|
$ZodStringFormat.init(inst, def);
|
|
1159
1159
|
inst._zod.check = (payload) => {
|
|
1160
1160
|
try {
|
|
@@ -1211,11 +1211,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
1213
|
});
|
|
1214
|
-
const $ZodEmoji =
|
|
1214
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1215
1215
|
def.pattern ?? (def.pattern = emoji());
|
|
1216
1216
|
$ZodStringFormat.init(inst, def);
|
|
1217
1217
|
});
|
|
1218
|
-
const $ZodNanoID =
|
|
1218
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1219
1219
|
def.pattern ?? (def.pattern = nanoid);
|
|
1220
1220
|
$ZodStringFormat.init(inst, def);
|
|
1221
1221
|
});
|
|
@@ -1224,48 +1224,48 @@ const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
|
1224
1224
|
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1225
1225
|
* See https://github.com/paralleldrive/cuid.
|
|
1226
1226
|
*/
|
|
1227
|
-
const $ZodCUID =
|
|
1227
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1228
1228
|
def.pattern ?? (def.pattern = cuid);
|
|
1229
1229
|
$ZodStringFormat.init(inst, def);
|
|
1230
1230
|
});
|
|
1231
|
-
const $ZodCUID2 =
|
|
1231
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1232
1232
|
def.pattern ?? (def.pattern = cuid2);
|
|
1233
1233
|
$ZodStringFormat.init(inst, def);
|
|
1234
1234
|
});
|
|
1235
|
-
const $ZodULID =
|
|
1235
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1236
1236
|
def.pattern ?? (def.pattern = ulid);
|
|
1237
1237
|
$ZodStringFormat.init(inst, def);
|
|
1238
1238
|
});
|
|
1239
|
-
const $ZodXID =
|
|
1239
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1240
1240
|
def.pattern ?? (def.pattern = xid);
|
|
1241
1241
|
$ZodStringFormat.init(inst, def);
|
|
1242
1242
|
});
|
|
1243
|
-
const $ZodKSUID =
|
|
1243
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1244
1244
|
def.pattern ?? (def.pattern = ksuid);
|
|
1245
1245
|
$ZodStringFormat.init(inst, def);
|
|
1246
1246
|
});
|
|
1247
|
-
const $ZodISODateTime =
|
|
1247
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1248
1248
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1249
1249
|
$ZodStringFormat.init(inst, def);
|
|
1250
1250
|
});
|
|
1251
|
-
const $ZodISODate =
|
|
1251
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1252
1252
|
def.pattern ?? (def.pattern = date$1);
|
|
1253
1253
|
$ZodStringFormat.init(inst, def);
|
|
1254
1254
|
});
|
|
1255
|
-
const $ZodISOTime =
|
|
1255
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1256
1256
|
def.pattern ?? (def.pattern = time$1(def));
|
|
1257
1257
|
$ZodStringFormat.init(inst, def);
|
|
1258
1258
|
});
|
|
1259
|
-
const $ZodISODuration =
|
|
1259
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1260
1260
|
def.pattern ?? (def.pattern = duration$1);
|
|
1261
1261
|
$ZodStringFormat.init(inst, def);
|
|
1262
1262
|
});
|
|
1263
|
-
const $ZodIPv4 =
|
|
1263
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1264
1264
|
def.pattern ?? (def.pattern = ipv4);
|
|
1265
1265
|
$ZodStringFormat.init(inst, def);
|
|
1266
1266
|
inst._zod.bag.format = `ipv4`;
|
|
1267
1267
|
});
|
|
1268
|
-
const $ZodIPv6 =
|
|
1268
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1269
1269
|
def.pattern ?? (def.pattern = ipv6);
|
|
1270
1270
|
$ZodStringFormat.init(inst, def);
|
|
1271
1271
|
inst._zod.bag.format = `ipv6`;
|
|
@@ -1283,11 +1283,11 @@ const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
};
|
|
1285
1285
|
});
|
|
1286
|
-
const $ZodCIDRv4 =
|
|
1286
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1287
1287
|
def.pattern ?? (def.pattern = cidrv4);
|
|
1288
1288
|
$ZodStringFormat.init(inst, def);
|
|
1289
1289
|
});
|
|
1290
|
-
const $ZodCIDRv6 =
|
|
1290
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1291
1291
|
def.pattern ?? (def.pattern = cidrv6);
|
|
1292
1292
|
$ZodStringFormat.init(inst, def);
|
|
1293
1293
|
inst._zod.check = (payload) => {
|
|
@@ -1322,7 +1322,7 @@ function isValidBase64(data) {
|
|
|
1322
1322
|
return false;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
const $ZodBase64 =
|
|
1325
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1326
1326
|
def.pattern ?? (def.pattern = base64);
|
|
1327
1327
|
$ZodStringFormat.init(inst, def);
|
|
1328
1328
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -1342,7 +1342,7 @@ function isValidBase64URL(data) {
|
|
|
1342
1342
|
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1343
1343
|
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1344
1344
|
}
|
|
1345
|
-
const $ZodBase64URL =
|
|
1345
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1346
1346
|
def.pattern ?? (def.pattern = base64url$1);
|
|
1347
1347
|
$ZodStringFormat.init(inst, def);
|
|
1348
1348
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -1357,7 +1357,7 @@ const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def)
|
|
|
1357
1357
|
});
|
|
1358
1358
|
};
|
|
1359
1359
|
});
|
|
1360
|
-
const $ZodE164 =
|
|
1360
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1361
1361
|
def.pattern ?? (def.pattern = e164);
|
|
1362
1362
|
$ZodStringFormat.init(inst, def);
|
|
1363
1363
|
});
|
|
@@ -1376,7 +1376,7 @@ function isValidJWT$1(token, algorithm = null) {
|
|
|
1376
1376
|
return false;
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
const $ZodJWT =
|
|
1379
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1380
1380
|
$ZodStringFormat.init(inst, def);
|
|
1381
1381
|
inst._zod.check = (payload) => {
|
|
1382
1382
|
if (isValidJWT$1(payload.value, def.alg)) return;
|
|
@@ -1389,7 +1389,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1389
1389
|
});
|
|
1390
1390
|
};
|
|
1391
1391
|
});
|
|
1392
|
-
const $ZodNumber =
|
|
1392
|
+
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1393
1393
|
$ZodType.init(inst, def);
|
|
1394
1394
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1395
1395
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1409,11 +1409,11 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
1409
1409
|
return payload;
|
|
1410
1410
|
};
|
|
1411
1411
|
});
|
|
1412
|
-
const $ZodNumberFormat =
|
|
1412
|
+
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1413
1413
|
$ZodCheckNumberFormat.init(inst, def);
|
|
1414
1414
|
$ZodNumber.init(inst, def);
|
|
1415
1415
|
});
|
|
1416
|
-
const $ZodBoolean =
|
|
1416
|
+
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1417
1417
|
$ZodType.init(inst, def);
|
|
1418
1418
|
inst._zod.pattern = boolean$1;
|
|
1419
1419
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1431,7 +1431,7 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
1431
1431
|
return payload;
|
|
1432
1432
|
};
|
|
1433
1433
|
});
|
|
1434
|
-
const $ZodNull =
|
|
1434
|
+
const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
|
|
1435
1435
|
$ZodType.init(inst, def);
|
|
1436
1436
|
inst._zod.pattern = _null$2;
|
|
1437
1437
|
inst._zod.values = new Set([null]);
|
|
@@ -1447,15 +1447,15 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1447
1447
|
return payload;
|
|
1448
1448
|
};
|
|
1449
1449
|
});
|
|
1450
|
-
const $ZodAny =
|
|
1450
|
+
const $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => {
|
|
1451
1451
|
$ZodType.init(inst, def);
|
|
1452
1452
|
inst._zod.parse = (payload) => payload;
|
|
1453
1453
|
});
|
|
1454
|
-
const $ZodUnknown =
|
|
1454
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1455
1455
|
$ZodType.init(inst, def);
|
|
1456
1456
|
inst._zod.parse = (payload) => payload;
|
|
1457
1457
|
});
|
|
1458
|
-
const $ZodNever =
|
|
1458
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1459
1459
|
$ZodType.init(inst, def);
|
|
1460
1460
|
inst._zod.parse = (payload, _ctx) => {
|
|
1461
1461
|
payload.issues.push({
|
|
@@ -1471,7 +1471,7 @@ function handleArrayResult(result, final, index) {
|
|
|
1471
1471
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1472
1472
|
final.value[index] = result.value;
|
|
1473
1473
|
}
|
|
1474
|
-
const $ZodArray =
|
|
1474
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1475
1475
|
$ZodType.init(inst, def);
|
|
1476
1476
|
inst._zod.parse = (payload, ctx) => {
|
|
1477
1477
|
const input = payload.value;
|
|
@@ -1562,7 +1562,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1562
1562
|
return payload;
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
|
-
const $ZodObject =
|
|
1565
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1566
1566
|
$ZodType.init(inst, def);
|
|
1567
1567
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1568
1568
|
const sh = def.shape;
|
|
@@ -1618,7 +1618,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1618
1618
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1619
1619
|
};
|
|
1620
1620
|
});
|
|
1621
|
-
const $ZodObjectJIT =
|
|
1621
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1622
1622
|
$ZodObject.init(inst, def);
|
|
1623
1623
|
const superParse = inst._zod.parse;
|
|
1624
1624
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -1758,7 +1758,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
return final;
|
|
1760
1760
|
}
|
|
1761
|
-
const $ZodUnion =
|
|
1761
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1762
1762
|
$ZodType.init(inst, def);
|
|
1763
1763
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1764
1764
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -1795,7 +1795,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1795
1795
|
});
|
|
1796
1796
|
};
|
|
1797
1797
|
});
|
|
1798
|
-
const $ZodDiscriminatedUnion =
|
|
1798
|
+
const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
1799
1799
|
def.inclusive = false;
|
|
1800
1800
|
$ZodUnion.init(inst, def);
|
|
1801
1801
|
const _super = inst._zod.parse;
|
|
@@ -1851,7 +1851,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
1851
1851
|
return payload;
|
|
1852
1852
|
};
|
|
1853
1853
|
});
|
|
1854
|
-
const $ZodIntersection =
|
|
1854
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1855
1855
|
$ZodType.init(inst, def);
|
|
1856
1856
|
inst._zod.parse = (payload, ctx) => {
|
|
1857
1857
|
const input = payload.value;
|
|
@@ -1950,7 +1950,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1950
1950
|
result.value = merged.data;
|
|
1951
1951
|
return result;
|
|
1952
1952
|
}
|
|
1953
|
-
const $ZodRecord =
|
|
1953
|
+
const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
1954
1954
|
$ZodType.init(inst, def);
|
|
1955
1955
|
inst._zod.parse = (payload, ctx) => {
|
|
1956
1956
|
const input = payload.value;
|
|
@@ -2059,7 +2059,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
2059
2059
|
return payload;
|
|
2060
2060
|
};
|
|
2061
2061
|
});
|
|
2062
|
-
const $ZodEnum =
|
|
2062
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
2063
2063
|
$ZodType.init(inst, def);
|
|
2064
2064
|
const values = getEnumValues(def.entries);
|
|
2065
2065
|
const valuesSet = new Set(values);
|
|
@@ -2077,7 +2077,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
2077
2077
|
return payload;
|
|
2078
2078
|
};
|
|
2079
2079
|
});
|
|
2080
|
-
const $ZodLiteral =
|
|
2080
|
+
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
2081
2081
|
$ZodType.init(inst, def);
|
|
2082
2082
|
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
2083
2083
|
const values = new Set(def.values);
|
|
@@ -2095,7 +2095,7 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
2095
2095
|
return payload;
|
|
2096
2096
|
};
|
|
2097
2097
|
});
|
|
2098
|
-
const $ZodTransform =
|
|
2098
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
2099
2099
|
$ZodType.init(inst, def);
|
|
2100
2100
|
inst._zod.optin = "optional";
|
|
2101
2101
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2119,7 +2119,7 @@ function handleOptionalResult(result, input) {
|
|
|
2119
2119
|
};
|
|
2120
2120
|
return result;
|
|
2121
2121
|
}
|
|
2122
|
-
const $ZodOptional =
|
|
2122
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
2123
2123
|
$ZodType.init(inst, def);
|
|
2124
2124
|
inst._zod.optin = "optional";
|
|
2125
2125
|
inst._zod.optout = "optional";
|
|
@@ -2141,7 +2141,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2141
2141
|
return def.innerType._zod.run(payload, ctx);
|
|
2142
2142
|
};
|
|
2143
2143
|
});
|
|
2144
|
-
const $ZodExactOptional =
|
|
2144
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2145
2145
|
$ZodOptional.init(inst, def);
|
|
2146
2146
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2147
2147
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -2149,7 +2149,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
|
|
|
2149
2149
|
return def.innerType._zod.run(payload, ctx);
|
|
2150
2150
|
};
|
|
2151
2151
|
});
|
|
2152
|
-
const $ZodNullable =
|
|
2152
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
2153
2153
|
$ZodType.init(inst, def);
|
|
2154
2154
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2155
2155
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2165,7 +2165,7 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
|
|
|
2165
2165
|
return def.innerType._zod.run(payload, ctx);
|
|
2166
2166
|
};
|
|
2167
2167
|
});
|
|
2168
|
-
const $ZodDefault =
|
|
2168
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
2169
2169
|
$ZodType.init(inst, def);
|
|
2170
2170
|
inst._zod.optin = "optional";
|
|
2171
2171
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2187,7 +2187,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2187
2187
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2188
2188
|
return payload;
|
|
2189
2189
|
}
|
|
2190
|
-
const $ZodPrefault =
|
|
2190
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2191
2191
|
$ZodType.init(inst, def);
|
|
2192
2192
|
inst._zod.optin = "optional";
|
|
2193
2193
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2197,7 +2197,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
2197
2197
|
return def.innerType._zod.run(payload, ctx);
|
|
2198
2198
|
};
|
|
2199
2199
|
});
|
|
2200
|
-
const $ZodNonOptional =
|
|
2200
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2201
2201
|
$ZodType.init(inst, def);
|
|
2202
2202
|
defineLazy(inst._zod, "values", () => {
|
|
2203
2203
|
const v = def.innerType._zod.values;
|
|
@@ -2218,7 +2218,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
return payload;
|
|
2220
2220
|
}
|
|
2221
|
-
const $ZodCatch =
|
|
2221
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2222
2222
|
$ZodType.init(inst, def);
|
|
2223
2223
|
inst._zod.optin = "optional";
|
|
2224
2224
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2252,7 +2252,7 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2252
2252
|
return payload;
|
|
2253
2253
|
};
|
|
2254
2254
|
});
|
|
2255
|
-
const $ZodPipe =
|
|
2255
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2256
2256
|
$ZodType.init(inst, def);
|
|
2257
2257
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2258
2258
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -2280,10 +2280,10 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2280
2280
|
fallback: left.fallback
|
|
2281
2281
|
}, ctx);
|
|
2282
2282
|
}
|
|
2283
|
-
const $ZodPreprocess =
|
|
2283
|
+
const $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
2284
2284
|
$ZodPipe.init(inst, def);
|
|
2285
2285
|
});
|
|
2286
|
-
const $ZodReadonly =
|
|
2286
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2287
2287
|
$ZodType.init(inst, def);
|
|
2288
2288
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2289
2289
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2300,7 +2300,7 @@ function handleReadonlyResult(payload) {
|
|
|
2300
2300
|
payload.value = Object.freeze(payload.value);
|
|
2301
2301
|
return payload;
|
|
2302
2302
|
}
|
|
2303
|
-
const $ZodCustom =
|
|
2303
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2304
2304
|
$ZodCheck.init(inst, def);
|
|
2305
2305
|
$ZodType.init(inst, def);
|
|
2306
2306
|
inst._zod.parse = (payload, _) => {
|
|
@@ -2371,14 +2371,14 @@ function registry() {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2373
2373
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2374
|
-
|
|
2374
|
+
// @__NO_SIDE_EFFECTS__
|
|
2375
2375
|
function _string(Class, params) {
|
|
2376
2376
|
return new Class({
|
|
2377
2377
|
type: "string",
|
|
2378
2378
|
...normalizeParams(params)
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
|
|
2381
|
+
// @__NO_SIDE_EFFECTS__
|
|
2382
2382
|
function _email(Class, params) {
|
|
2383
2383
|
return new Class({
|
|
2384
2384
|
type: "string",
|
|
@@ -2388,7 +2388,7 @@ function _email(Class, params) {
|
|
|
2388
2388
|
...normalizeParams(params)
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
|
-
|
|
2391
|
+
// @__NO_SIDE_EFFECTS__
|
|
2392
2392
|
function _guid(Class, params) {
|
|
2393
2393
|
return new Class({
|
|
2394
2394
|
type: "string",
|
|
@@ -2398,7 +2398,7 @@ function _guid(Class, params) {
|
|
|
2398
2398
|
...normalizeParams(params)
|
|
2399
2399
|
});
|
|
2400
2400
|
}
|
|
2401
|
-
|
|
2401
|
+
// @__NO_SIDE_EFFECTS__
|
|
2402
2402
|
function _uuid(Class, params) {
|
|
2403
2403
|
return new Class({
|
|
2404
2404
|
type: "string",
|
|
@@ -2408,7 +2408,7 @@ function _uuid(Class, params) {
|
|
|
2408
2408
|
...normalizeParams(params)
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
|
|
2411
|
+
// @__NO_SIDE_EFFECTS__
|
|
2412
2412
|
function _uuidv4(Class, params) {
|
|
2413
2413
|
return new Class({
|
|
2414
2414
|
type: "string",
|
|
@@ -2419,7 +2419,7 @@ function _uuidv4(Class, params) {
|
|
|
2419
2419
|
...normalizeParams(params)
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
// @__NO_SIDE_EFFECTS__
|
|
2423
2423
|
function _uuidv6(Class, params) {
|
|
2424
2424
|
return new Class({
|
|
2425
2425
|
type: "string",
|
|
@@ -2430,7 +2430,7 @@ function _uuidv6(Class, params) {
|
|
|
2430
2430
|
...normalizeParams(params)
|
|
2431
2431
|
});
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2433
|
+
// @__NO_SIDE_EFFECTS__
|
|
2434
2434
|
function _uuidv7(Class, params) {
|
|
2435
2435
|
return new Class({
|
|
2436
2436
|
type: "string",
|
|
@@ -2441,7 +2441,7 @@ function _uuidv7(Class, params) {
|
|
|
2441
2441
|
...normalizeParams(params)
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
2444
|
-
|
|
2444
|
+
// @__NO_SIDE_EFFECTS__
|
|
2445
2445
|
function _url$1(Class, params) {
|
|
2446
2446
|
return new Class({
|
|
2447
2447
|
type: "string",
|
|
@@ -2451,7 +2451,7 @@ function _url$1(Class, params) {
|
|
|
2451
2451
|
...normalizeParams(params)
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
2454
|
-
|
|
2454
|
+
// @__NO_SIDE_EFFECTS__
|
|
2455
2455
|
function _emoji(Class, params) {
|
|
2456
2456
|
return new Class({
|
|
2457
2457
|
type: "string",
|
|
@@ -2461,7 +2461,7 @@ function _emoji(Class, params) {
|
|
|
2461
2461
|
...normalizeParams(params)
|
|
2462
2462
|
});
|
|
2463
2463
|
}
|
|
2464
|
-
|
|
2464
|
+
// @__NO_SIDE_EFFECTS__
|
|
2465
2465
|
function _nanoid(Class, params) {
|
|
2466
2466
|
return new Class({
|
|
2467
2467
|
type: "string",
|
|
@@ -2476,7 +2476,7 @@ function _nanoid(Class, params) {
|
|
|
2476
2476
|
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2477
2477
|
* See https://github.com/paralleldrive/cuid.
|
|
2478
2478
|
*/
|
|
2479
|
-
|
|
2479
|
+
// @__NO_SIDE_EFFECTS__
|
|
2480
2480
|
function _cuid(Class, params) {
|
|
2481
2481
|
return new Class({
|
|
2482
2482
|
type: "string",
|
|
@@ -2486,7 +2486,7 @@ function _cuid(Class, params) {
|
|
|
2486
2486
|
...normalizeParams(params)
|
|
2487
2487
|
});
|
|
2488
2488
|
}
|
|
2489
|
-
|
|
2489
|
+
// @__NO_SIDE_EFFECTS__
|
|
2490
2490
|
function _cuid2(Class, params) {
|
|
2491
2491
|
return new Class({
|
|
2492
2492
|
type: "string",
|
|
@@ -2496,7 +2496,7 @@ function _cuid2(Class, params) {
|
|
|
2496
2496
|
...normalizeParams(params)
|
|
2497
2497
|
});
|
|
2498
2498
|
}
|
|
2499
|
-
|
|
2499
|
+
// @__NO_SIDE_EFFECTS__
|
|
2500
2500
|
function _ulid(Class, params) {
|
|
2501
2501
|
return new Class({
|
|
2502
2502
|
type: "string",
|
|
@@ -2506,7 +2506,7 @@ function _ulid(Class, params) {
|
|
|
2506
2506
|
...normalizeParams(params)
|
|
2507
2507
|
});
|
|
2508
2508
|
}
|
|
2509
|
-
|
|
2509
|
+
// @__NO_SIDE_EFFECTS__
|
|
2510
2510
|
function _xid(Class, params) {
|
|
2511
2511
|
return new Class({
|
|
2512
2512
|
type: "string",
|
|
@@ -2516,7 +2516,7 @@ function _xid(Class, params) {
|
|
|
2516
2516
|
...normalizeParams(params)
|
|
2517
2517
|
});
|
|
2518
2518
|
}
|
|
2519
|
-
|
|
2519
|
+
// @__NO_SIDE_EFFECTS__
|
|
2520
2520
|
function _ksuid(Class, params) {
|
|
2521
2521
|
return new Class({
|
|
2522
2522
|
type: "string",
|
|
@@ -2526,7 +2526,7 @@ function _ksuid(Class, params) {
|
|
|
2526
2526
|
...normalizeParams(params)
|
|
2527
2527
|
});
|
|
2528
2528
|
}
|
|
2529
|
-
|
|
2529
|
+
// @__NO_SIDE_EFFECTS__
|
|
2530
2530
|
function _ipv4(Class, params) {
|
|
2531
2531
|
return new Class({
|
|
2532
2532
|
type: "string",
|
|
@@ -2536,7 +2536,7 @@ function _ipv4(Class, params) {
|
|
|
2536
2536
|
...normalizeParams(params)
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
|
-
|
|
2539
|
+
// @__NO_SIDE_EFFECTS__
|
|
2540
2540
|
function _ipv6(Class, params) {
|
|
2541
2541
|
return new Class({
|
|
2542
2542
|
type: "string",
|
|
@@ -2546,7 +2546,7 @@ function _ipv6(Class, params) {
|
|
|
2546
2546
|
...normalizeParams(params)
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
|
-
|
|
2549
|
+
// @__NO_SIDE_EFFECTS__
|
|
2550
2550
|
function _cidrv4(Class, params) {
|
|
2551
2551
|
return new Class({
|
|
2552
2552
|
type: "string",
|
|
@@ -2556,7 +2556,7 @@ function _cidrv4(Class, params) {
|
|
|
2556
2556
|
...normalizeParams(params)
|
|
2557
2557
|
});
|
|
2558
2558
|
}
|
|
2559
|
-
|
|
2559
|
+
// @__NO_SIDE_EFFECTS__
|
|
2560
2560
|
function _cidrv6(Class, params) {
|
|
2561
2561
|
return new Class({
|
|
2562
2562
|
type: "string",
|
|
@@ -2566,7 +2566,7 @@ function _cidrv6(Class, params) {
|
|
|
2566
2566
|
...normalizeParams(params)
|
|
2567
2567
|
});
|
|
2568
2568
|
}
|
|
2569
|
-
|
|
2569
|
+
// @__NO_SIDE_EFFECTS__
|
|
2570
2570
|
function _base64(Class, params) {
|
|
2571
2571
|
return new Class({
|
|
2572
2572
|
type: "string",
|
|
@@ -2576,7 +2576,7 @@ function _base64(Class, params) {
|
|
|
2576
2576
|
...normalizeParams(params)
|
|
2577
2577
|
});
|
|
2578
2578
|
}
|
|
2579
|
-
|
|
2579
|
+
// @__NO_SIDE_EFFECTS__
|
|
2580
2580
|
function _base64url(Class, params) {
|
|
2581
2581
|
return new Class({
|
|
2582
2582
|
type: "string",
|
|
@@ -2586,7 +2586,7 @@ function _base64url(Class, params) {
|
|
|
2586
2586
|
...normalizeParams(params)
|
|
2587
2587
|
});
|
|
2588
2588
|
}
|
|
2589
|
-
|
|
2589
|
+
// @__NO_SIDE_EFFECTS__
|
|
2590
2590
|
function _e164(Class, params) {
|
|
2591
2591
|
return new Class({
|
|
2592
2592
|
type: "string",
|
|
@@ -2596,7 +2596,7 @@ function _e164(Class, params) {
|
|
|
2596
2596
|
...normalizeParams(params)
|
|
2597
2597
|
});
|
|
2598
2598
|
}
|
|
2599
|
-
|
|
2599
|
+
// @__NO_SIDE_EFFECTS__
|
|
2600
2600
|
function _jwt(Class, params) {
|
|
2601
2601
|
return new Class({
|
|
2602
2602
|
type: "string",
|
|
@@ -2606,7 +2606,7 @@ function _jwt(Class, params) {
|
|
|
2606
2606
|
...normalizeParams(params)
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
|
-
|
|
2609
|
+
// @__NO_SIDE_EFFECTS__
|
|
2610
2610
|
function _isoDateTime(Class, params) {
|
|
2611
2611
|
return new Class({
|
|
2612
2612
|
type: "string",
|
|
@@ -2618,7 +2618,7 @@ function _isoDateTime(Class, params) {
|
|
|
2618
2618
|
...normalizeParams(params)
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
|
-
|
|
2621
|
+
// @__NO_SIDE_EFFECTS__
|
|
2622
2622
|
function _isoDate(Class, params) {
|
|
2623
2623
|
return new Class({
|
|
2624
2624
|
type: "string",
|
|
@@ -2627,7 +2627,7 @@ function _isoDate(Class, params) {
|
|
|
2627
2627
|
...normalizeParams(params)
|
|
2628
2628
|
});
|
|
2629
2629
|
}
|
|
2630
|
-
|
|
2630
|
+
// @__NO_SIDE_EFFECTS__
|
|
2631
2631
|
function _isoTime(Class, params) {
|
|
2632
2632
|
return new Class({
|
|
2633
2633
|
type: "string",
|
|
@@ -2637,7 +2637,7 @@ function _isoTime(Class, params) {
|
|
|
2637
2637
|
...normalizeParams(params)
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
|
-
|
|
2640
|
+
// @__NO_SIDE_EFFECTS__
|
|
2641
2641
|
function _isoDuration(Class, params) {
|
|
2642
2642
|
return new Class({
|
|
2643
2643
|
type: "string",
|
|
@@ -2646,7 +2646,7 @@ function _isoDuration(Class, params) {
|
|
|
2646
2646
|
...normalizeParams(params)
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
|
-
|
|
2649
|
+
// @__NO_SIDE_EFFECTS__
|
|
2650
2650
|
function _number(Class, params) {
|
|
2651
2651
|
return new Class({
|
|
2652
2652
|
type: "number",
|
|
@@ -2654,7 +2654,7 @@ function _number(Class, params) {
|
|
|
2654
2654
|
...normalizeParams(params)
|
|
2655
2655
|
});
|
|
2656
2656
|
}
|
|
2657
|
-
|
|
2657
|
+
// @__NO_SIDE_EFFECTS__
|
|
2658
2658
|
function _coercedNumber(Class, params) {
|
|
2659
2659
|
return new Class({
|
|
2660
2660
|
type: "number",
|
|
@@ -2663,7 +2663,7 @@ function _coercedNumber(Class, params) {
|
|
|
2663
2663
|
...normalizeParams(params)
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
|
-
|
|
2666
|
+
// @__NO_SIDE_EFFECTS__
|
|
2667
2667
|
function _int(Class, params) {
|
|
2668
2668
|
return new Class({
|
|
2669
2669
|
type: "number",
|
|
@@ -2673,36 +2673,36 @@ function _int(Class, params) {
|
|
|
2673
2673
|
...normalizeParams(params)
|
|
2674
2674
|
});
|
|
2675
2675
|
}
|
|
2676
|
-
|
|
2676
|
+
// @__NO_SIDE_EFFECTS__
|
|
2677
2677
|
function _boolean(Class, params) {
|
|
2678
2678
|
return new Class({
|
|
2679
2679
|
type: "boolean",
|
|
2680
2680
|
...normalizeParams(params)
|
|
2681
2681
|
});
|
|
2682
2682
|
}
|
|
2683
|
-
|
|
2683
|
+
// @__NO_SIDE_EFFECTS__
|
|
2684
2684
|
function _null$1(Class, params) {
|
|
2685
2685
|
return new Class({
|
|
2686
2686
|
type: "null",
|
|
2687
2687
|
...normalizeParams(params)
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
|
-
|
|
2690
|
+
// @__NO_SIDE_EFFECTS__
|
|
2691
2691
|
function _any(Class) {
|
|
2692
2692
|
return new Class({ type: "any" });
|
|
2693
2693
|
}
|
|
2694
|
-
|
|
2694
|
+
// @__NO_SIDE_EFFECTS__
|
|
2695
2695
|
function _unknown(Class) {
|
|
2696
2696
|
return new Class({ type: "unknown" });
|
|
2697
2697
|
}
|
|
2698
|
-
|
|
2698
|
+
// @__NO_SIDE_EFFECTS__
|
|
2699
2699
|
function _never(Class, params) {
|
|
2700
2700
|
return new Class({
|
|
2701
2701
|
type: "never",
|
|
2702
2702
|
...normalizeParams(params)
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
2705
|
-
|
|
2705
|
+
// @__NO_SIDE_EFFECTS__
|
|
2706
2706
|
function _lt(value, params) {
|
|
2707
2707
|
return new $ZodCheckLessThan({
|
|
2708
2708
|
check: "less_than",
|
|
@@ -2711,7 +2711,7 @@ function _lt(value, params) {
|
|
|
2711
2711
|
inclusive: false
|
|
2712
2712
|
});
|
|
2713
2713
|
}
|
|
2714
|
-
|
|
2714
|
+
// @__NO_SIDE_EFFECTS__
|
|
2715
2715
|
function _lte(value, params) {
|
|
2716
2716
|
return new $ZodCheckLessThan({
|
|
2717
2717
|
check: "less_than",
|
|
@@ -2720,7 +2720,7 @@ function _lte(value, params) {
|
|
|
2720
2720
|
inclusive: true
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
|
-
|
|
2723
|
+
// @__NO_SIDE_EFFECTS__
|
|
2724
2724
|
function _gt(value, params) {
|
|
2725
2725
|
return new $ZodCheckGreaterThan({
|
|
2726
2726
|
check: "greater_than",
|
|
@@ -2729,7 +2729,7 @@ function _gt(value, params) {
|
|
|
2729
2729
|
inclusive: false
|
|
2730
2730
|
});
|
|
2731
2731
|
}
|
|
2732
|
-
|
|
2732
|
+
// @__NO_SIDE_EFFECTS__
|
|
2733
2733
|
function _gte(value, params) {
|
|
2734
2734
|
return new $ZodCheckGreaterThan({
|
|
2735
2735
|
check: "greater_than",
|
|
@@ -2738,7 +2738,7 @@ function _gte(value, params) {
|
|
|
2738
2738
|
inclusive: true
|
|
2739
2739
|
});
|
|
2740
2740
|
}
|
|
2741
|
-
|
|
2741
|
+
// @__NO_SIDE_EFFECTS__
|
|
2742
2742
|
function _multipleOf(value, params) {
|
|
2743
2743
|
return new $ZodCheckMultipleOf({
|
|
2744
2744
|
check: "multiple_of",
|
|
@@ -2746,7 +2746,7 @@ function _multipleOf(value, params) {
|
|
|
2746
2746
|
value
|
|
2747
2747
|
});
|
|
2748
2748
|
}
|
|
2749
|
-
|
|
2749
|
+
// @__NO_SIDE_EFFECTS__
|
|
2750
2750
|
function _maxLength(maximum, params) {
|
|
2751
2751
|
return new $ZodCheckMaxLength({
|
|
2752
2752
|
check: "max_length",
|
|
@@ -2754,7 +2754,7 @@ function _maxLength(maximum, params) {
|
|
|
2754
2754
|
maximum
|
|
2755
2755
|
});
|
|
2756
2756
|
}
|
|
2757
|
-
|
|
2757
|
+
// @__NO_SIDE_EFFECTS__
|
|
2758
2758
|
function _minLength(minimum, params) {
|
|
2759
2759
|
return new $ZodCheckMinLength({
|
|
2760
2760
|
check: "min_length",
|
|
@@ -2762,7 +2762,7 @@ function _minLength(minimum, params) {
|
|
|
2762
2762
|
minimum
|
|
2763
2763
|
});
|
|
2764
2764
|
}
|
|
2765
|
-
|
|
2765
|
+
// @__NO_SIDE_EFFECTS__
|
|
2766
2766
|
function _length(length, params) {
|
|
2767
2767
|
return new $ZodCheckLengthEquals({
|
|
2768
2768
|
check: "length_equals",
|
|
@@ -2770,7 +2770,7 @@ function _length(length, params) {
|
|
|
2770
2770
|
length
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
2773
|
-
|
|
2773
|
+
// @__NO_SIDE_EFFECTS__
|
|
2774
2774
|
function _regex(pattern, params) {
|
|
2775
2775
|
return new $ZodCheckRegex({
|
|
2776
2776
|
check: "string_format",
|
|
@@ -2779,7 +2779,7 @@ function _regex(pattern, params) {
|
|
|
2779
2779
|
pattern
|
|
2780
2780
|
});
|
|
2781
2781
|
}
|
|
2782
|
-
|
|
2782
|
+
// @__NO_SIDE_EFFECTS__
|
|
2783
2783
|
function _lowercase(params) {
|
|
2784
2784
|
return new $ZodCheckLowerCase({
|
|
2785
2785
|
check: "string_format",
|
|
@@ -2787,7 +2787,7 @@ function _lowercase(params) {
|
|
|
2787
2787
|
...normalizeParams(params)
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
2790
|
-
|
|
2790
|
+
// @__NO_SIDE_EFFECTS__
|
|
2791
2791
|
function _uppercase(params) {
|
|
2792
2792
|
return new $ZodCheckUpperCase({
|
|
2793
2793
|
check: "string_format",
|
|
@@ -2795,7 +2795,7 @@ function _uppercase(params) {
|
|
|
2795
2795
|
...normalizeParams(params)
|
|
2796
2796
|
});
|
|
2797
2797
|
}
|
|
2798
|
-
|
|
2798
|
+
// @__NO_SIDE_EFFECTS__
|
|
2799
2799
|
function _includes(includes, params) {
|
|
2800
2800
|
return new $ZodCheckIncludes({
|
|
2801
2801
|
check: "string_format",
|
|
@@ -2804,7 +2804,7 @@ function _includes(includes, params) {
|
|
|
2804
2804
|
includes
|
|
2805
2805
|
});
|
|
2806
2806
|
}
|
|
2807
|
-
|
|
2807
|
+
// @__NO_SIDE_EFFECTS__
|
|
2808
2808
|
function _startsWith(prefix, params) {
|
|
2809
2809
|
return new $ZodCheckStartsWith({
|
|
2810
2810
|
check: "string_format",
|
|
@@ -2813,7 +2813,7 @@ function _startsWith(prefix, params) {
|
|
|
2813
2813
|
prefix
|
|
2814
2814
|
});
|
|
2815
2815
|
}
|
|
2816
|
-
|
|
2816
|
+
// @__NO_SIDE_EFFECTS__
|
|
2817
2817
|
function _endsWith(suffix, params) {
|
|
2818
2818
|
return new $ZodCheckEndsWith({
|
|
2819
2819
|
check: "string_format",
|
|
@@ -2822,34 +2822,34 @@ function _endsWith(suffix, params) {
|
|
|
2822
2822
|
suffix
|
|
2823
2823
|
});
|
|
2824
2824
|
}
|
|
2825
|
-
|
|
2825
|
+
// @__NO_SIDE_EFFECTS__
|
|
2826
2826
|
function _overwrite(tx) {
|
|
2827
2827
|
return new $ZodCheckOverwrite({
|
|
2828
2828
|
check: "overwrite",
|
|
2829
2829
|
tx
|
|
2830
2830
|
});
|
|
2831
2831
|
}
|
|
2832
|
-
|
|
2832
|
+
// @__NO_SIDE_EFFECTS__
|
|
2833
2833
|
function _normalize(form) {
|
|
2834
2834
|
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2835
2835
|
}
|
|
2836
|
-
|
|
2836
|
+
// @__NO_SIDE_EFFECTS__
|
|
2837
2837
|
function _trim() {
|
|
2838
2838
|
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2839
2839
|
}
|
|
2840
|
-
|
|
2840
|
+
// @__NO_SIDE_EFFECTS__
|
|
2841
2841
|
function _toLowerCase() {
|
|
2842
2842
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2843
2843
|
}
|
|
2844
|
-
|
|
2844
|
+
// @__NO_SIDE_EFFECTS__
|
|
2845
2845
|
function _toUpperCase() {
|
|
2846
2846
|
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2847
2847
|
}
|
|
2848
|
-
|
|
2848
|
+
// @__NO_SIDE_EFFECTS__
|
|
2849
2849
|
function _slugify() {
|
|
2850
2850
|
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2851
2851
|
}
|
|
2852
|
-
|
|
2852
|
+
// @__NO_SIDE_EFFECTS__
|
|
2853
2853
|
function _array(Class, element, params) {
|
|
2854
2854
|
return new Class({
|
|
2855
2855
|
type: "array",
|
|
@@ -2857,7 +2857,7 @@ function _array(Class, element, params) {
|
|
|
2857
2857
|
...normalizeParams(params)
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
|
-
|
|
2860
|
+
// @__NO_SIDE_EFFECTS__
|
|
2861
2861
|
function _custom(Class, fn, _params) {
|
|
2862
2862
|
const norm = normalizeParams(_params);
|
|
2863
2863
|
norm.abort ?? (norm.abort = true);
|
|
@@ -2868,7 +2868,7 @@ function _custom(Class, fn, _params) {
|
|
|
2868
2868
|
...norm
|
|
2869
2869
|
});
|
|
2870
2870
|
}
|
|
2871
|
-
|
|
2871
|
+
// @__NO_SIDE_EFFECTS__
|
|
2872
2872
|
function _refine(Class, fn, _params) {
|
|
2873
2873
|
return new Class({
|
|
2874
2874
|
type: "custom",
|
|
@@ -2877,7 +2877,7 @@ function _refine(Class, fn, _params) {
|
|
|
2877
2877
|
...normalizeParams(_params)
|
|
2878
2878
|
});
|
|
2879
2879
|
}
|
|
2880
|
-
|
|
2880
|
+
// @__NO_SIDE_EFFECTS__
|
|
2881
2881
|
function _superRefine(fn, params) {
|
|
2882
2882
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2883
2883
|
payload.addIssue = (issue$2) => {
|
|
@@ -2896,7 +2896,7 @@ function _superRefine(fn, params) {
|
|
|
2896
2896
|
}, params);
|
|
2897
2897
|
return ch;
|
|
2898
2898
|
}
|
|
2899
|
-
|
|
2899
|
+
// @__NO_SIDE_EFFECTS__
|
|
2900
2900
|
function _check(fn, params) {
|
|
2901
2901
|
const ch = new $ZodCheck({
|
|
2902
2902
|
check: "custom",
|
|
@@ -3646,28 +3646,28 @@ function toJSONSchema(input, params) {
|
|
|
3646
3646
|
extractDefs(ctx, input);
|
|
3647
3647
|
return finalize(ctx, input);
|
|
3648
3648
|
}
|
|
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$2(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
|
});
|
|
@@ -3693,7 +3693,7 @@ const initializer = (inst, issues) => {
|
|
|
3693
3693
|
} }
|
|
3694
3694
|
});
|
|
3695
3695
|
};
|
|
3696
|
-
const ZodRealError =
|
|
3696
|
+
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3697
3697
|
const parse$2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
3698
3698
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3699
3699
|
const safeParse$2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3742,7 +3742,7 @@ function _installLazyMethods(inst, group, methods) {
|
|
|
3742
3742
|
});
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
|
-
const ZodType$1 =
|
|
3745
|
+
const ZodType$1 = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3746
3746
|
$ZodType.init(inst, def);
|
|
3747
3747
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3748
3748
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -3868,7 +3868,7 @@ const ZodType$1 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3868
3868
|
return inst;
|
|
3869
3869
|
});
|
|
3870
3870
|
/** @internal */
|
|
3871
|
-
const _ZodString =
|
|
3871
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3872
3872
|
$ZodString.init(inst, def);
|
|
3873
3873
|
ZodType$1.init(inst, def);
|
|
3874
3874
|
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
@@ -3924,7 +3924,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
3924
3924
|
}
|
|
3925
3925
|
});
|
|
3926
3926
|
});
|
|
3927
|
-
const ZodString$1 =
|
|
3927
|
+
const ZodString$1 = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3928
3928
|
$ZodString.init(inst, def);
|
|
3929
3929
|
_ZodString.init(inst, def);
|
|
3930
3930
|
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
@@ -3958,34 +3958,34 @@ const ZodString$1 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
3958
3958
|
function string(params) {
|
|
3959
3959
|
return /* @__PURE__ */ _string(ZodString$1, params);
|
|
3960
3960
|
}
|
|
3961
|
-
const ZodStringFormat =
|
|
3961
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3962
3962
|
$ZodStringFormat.init(inst, def);
|
|
3963
3963
|
_ZodString.init(inst, def);
|
|
3964
3964
|
});
|
|
3965
|
-
const ZodEmail =
|
|
3965
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3966
3966
|
$ZodEmail.init(inst, def);
|
|
3967
3967
|
ZodStringFormat.init(inst, def);
|
|
3968
3968
|
});
|
|
3969
|
-
const ZodGUID =
|
|
3969
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
3970
3970
|
$ZodGUID.init(inst, def);
|
|
3971
3971
|
ZodStringFormat.init(inst, def);
|
|
3972
3972
|
});
|
|
3973
|
-
const ZodUUID =
|
|
3973
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
3974
3974
|
$ZodUUID.init(inst, def);
|
|
3975
3975
|
ZodStringFormat.init(inst, def);
|
|
3976
3976
|
});
|
|
3977
|
-
const ZodURL =
|
|
3977
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
3978
3978
|
$ZodURL.init(inst, def);
|
|
3979
3979
|
ZodStringFormat.init(inst, def);
|
|
3980
3980
|
});
|
|
3981
3981
|
function url(params) {
|
|
3982
3982
|
return /* @__PURE__ */ _url$1(ZodURL, params);
|
|
3983
3983
|
}
|
|
3984
|
-
const ZodEmoji =
|
|
3984
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
3985
3985
|
$ZodEmoji.init(inst, def);
|
|
3986
3986
|
ZodStringFormat.init(inst, def);
|
|
3987
3987
|
});
|
|
3988
|
-
const ZodNanoID =
|
|
3988
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
3989
3989
|
$ZodNanoID.init(inst, def);
|
|
3990
3990
|
ZodStringFormat.init(inst, def);
|
|
3991
3991
|
});
|
|
@@ -3994,59 +3994,59 @@ const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
|
3994
3994
|
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3995
3995
|
* See https://github.com/paralleldrive/cuid.
|
|
3996
3996
|
*/
|
|
3997
|
-
const ZodCUID =
|
|
3997
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
3998
3998
|
$ZodCUID.init(inst, def);
|
|
3999
3999
|
ZodStringFormat.init(inst, def);
|
|
4000
4000
|
});
|
|
4001
|
-
const ZodCUID2 =
|
|
4001
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
4002
4002
|
$ZodCUID2.init(inst, def);
|
|
4003
4003
|
ZodStringFormat.init(inst, def);
|
|
4004
4004
|
});
|
|
4005
|
-
const ZodULID =
|
|
4005
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
4006
4006
|
$ZodULID.init(inst, def);
|
|
4007
4007
|
ZodStringFormat.init(inst, def);
|
|
4008
4008
|
});
|
|
4009
|
-
const ZodXID =
|
|
4009
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
4010
4010
|
$ZodXID.init(inst, def);
|
|
4011
4011
|
ZodStringFormat.init(inst, def);
|
|
4012
4012
|
});
|
|
4013
|
-
const ZodKSUID =
|
|
4013
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
4014
4014
|
$ZodKSUID.init(inst, def);
|
|
4015
4015
|
ZodStringFormat.init(inst, def);
|
|
4016
4016
|
});
|
|
4017
|
-
const ZodIPv4 =
|
|
4017
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
4018
4018
|
$ZodIPv4.init(inst, def);
|
|
4019
4019
|
ZodStringFormat.init(inst, def);
|
|
4020
4020
|
});
|
|
4021
|
-
const ZodIPv6 =
|
|
4021
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
4022
4022
|
$ZodIPv6.init(inst, def);
|
|
4023
4023
|
ZodStringFormat.init(inst, def);
|
|
4024
4024
|
});
|
|
4025
|
-
const ZodCIDRv4 =
|
|
4025
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
4026
4026
|
$ZodCIDRv4.init(inst, def);
|
|
4027
4027
|
ZodStringFormat.init(inst, def);
|
|
4028
4028
|
});
|
|
4029
|
-
const ZodCIDRv6 =
|
|
4029
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
4030
4030
|
$ZodCIDRv6.init(inst, def);
|
|
4031
4031
|
ZodStringFormat.init(inst, def);
|
|
4032
4032
|
});
|
|
4033
|
-
const ZodBase64 =
|
|
4033
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
4034
4034
|
$ZodBase64.init(inst, def);
|
|
4035
4035
|
ZodStringFormat.init(inst, def);
|
|
4036
4036
|
});
|
|
4037
|
-
const ZodBase64URL =
|
|
4037
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
4038
4038
|
$ZodBase64URL.init(inst, def);
|
|
4039
4039
|
ZodStringFormat.init(inst, def);
|
|
4040
4040
|
});
|
|
4041
|
-
const ZodE164 =
|
|
4041
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
4042
4042
|
$ZodE164.init(inst, def);
|
|
4043
4043
|
ZodStringFormat.init(inst, def);
|
|
4044
4044
|
});
|
|
4045
|
-
const ZodJWT =
|
|
4045
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
4046
4046
|
$ZodJWT.init(inst, def);
|
|
4047
4047
|
ZodStringFormat.init(inst, def);
|
|
4048
4048
|
});
|
|
4049
|
-
const ZodNumber$1 =
|
|
4049
|
+
const ZodNumber$1 = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
4050
4050
|
$ZodNumber.init(inst, def);
|
|
4051
4051
|
ZodType$1.init(inst, def);
|
|
4052
4052
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
@@ -4107,14 +4107,14 @@ const ZodNumber$1 = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
4107
4107
|
function number$2(params) {
|
|
4108
4108
|
return /* @__PURE__ */ _number(ZodNumber$1, params);
|
|
4109
4109
|
}
|
|
4110
|
-
const ZodNumberFormat =
|
|
4110
|
+
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
4111
4111
|
$ZodNumberFormat.init(inst, def);
|
|
4112
4112
|
ZodNumber$1.init(inst, def);
|
|
4113
4113
|
});
|
|
4114
4114
|
function int(params) {
|
|
4115
4115
|
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
4116
4116
|
}
|
|
4117
|
-
const ZodBoolean$1 =
|
|
4117
|
+
const ZodBoolean$1 = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
4118
4118
|
$ZodBoolean.init(inst, def);
|
|
4119
4119
|
ZodType$1.init(inst, def);
|
|
4120
4120
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
@@ -4122,7 +4122,7 @@ const ZodBoolean$1 = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
4122
4122
|
function boolean(params) {
|
|
4123
4123
|
return /* @__PURE__ */ _boolean(ZodBoolean$1, params);
|
|
4124
4124
|
}
|
|
4125
|
-
const ZodNull$1 =
|
|
4125
|
+
const ZodNull$1 = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => {
|
|
4126
4126
|
$ZodNull.init(inst, def);
|
|
4127
4127
|
ZodType$1.init(inst, def);
|
|
4128
4128
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
@@ -4130,7 +4130,7 @@ const ZodNull$1 = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
4130
4130
|
function _null(params) {
|
|
4131
4131
|
return /* @__PURE__ */ _null$1(ZodNull$1, params);
|
|
4132
4132
|
}
|
|
4133
|
-
const ZodAny$1 =
|
|
4133
|
+
const ZodAny$1 = /*@__PURE__*/ $constructor("ZodAny", (inst, def) => {
|
|
4134
4134
|
$ZodAny.init(inst, def);
|
|
4135
4135
|
ZodType$1.init(inst, def);
|
|
4136
4136
|
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
@@ -4138,7 +4138,7 @@ const ZodAny$1 = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
|
4138
4138
|
function any() {
|
|
4139
4139
|
return /* @__PURE__ */ _any(ZodAny$1);
|
|
4140
4140
|
}
|
|
4141
|
-
const ZodUnknown$1 =
|
|
4141
|
+
const ZodUnknown$1 = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
4142
4142
|
$ZodUnknown.init(inst, def);
|
|
4143
4143
|
ZodType$1.init(inst, def);
|
|
4144
4144
|
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
@@ -4146,7 +4146,7 @@ const ZodUnknown$1 = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
4146
4146
|
function unknown() {
|
|
4147
4147
|
return /* @__PURE__ */ _unknown(ZodUnknown$1);
|
|
4148
4148
|
}
|
|
4149
|
-
const ZodNever$1 =
|
|
4149
|
+
const ZodNever$1 = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
4150
4150
|
$ZodNever.init(inst, def);
|
|
4151
4151
|
ZodType$1.init(inst, def);
|
|
4152
4152
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
@@ -4154,7 +4154,7 @@ const ZodNever$1 = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
4154
4154
|
function never(params) {
|
|
4155
4155
|
return /* @__PURE__ */ _never(ZodNever$1, params);
|
|
4156
4156
|
}
|
|
4157
|
-
const ZodArray$1 =
|
|
4157
|
+
const ZodArray$1 = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
4158
4158
|
$ZodArray.init(inst, def);
|
|
4159
4159
|
ZodType$1.init(inst, def);
|
|
4160
4160
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
@@ -4180,7 +4180,7 @@ const ZodArray$1 = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
4180
4180
|
function array(element, params) {
|
|
4181
4181
|
return /* @__PURE__ */ _array(ZodArray$1, element, params);
|
|
4182
4182
|
}
|
|
4183
|
-
const ZodObject$1 =
|
|
4183
|
+
const ZodObject$1 = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
4184
4184
|
$ZodObjectJIT.init(inst, def);
|
|
4185
4185
|
ZodType$1.init(inst, def);
|
|
4186
4186
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -4259,7 +4259,7 @@ function looseObject(shape, params) {
|
|
|
4259
4259
|
...normalizeParams(params)
|
|
4260
4260
|
});
|
|
4261
4261
|
}
|
|
4262
|
-
const ZodUnion$1 =
|
|
4262
|
+
const ZodUnion$1 = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
4263
4263
|
$ZodUnion.init(inst, def);
|
|
4264
4264
|
ZodType$1.init(inst, def);
|
|
4265
4265
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -4272,7 +4272,7 @@ function union(options, params) {
|
|
|
4272
4272
|
...normalizeParams(params)
|
|
4273
4273
|
});
|
|
4274
4274
|
}
|
|
4275
|
-
const ZodDiscriminatedUnion$1 =
|
|
4275
|
+
const ZodDiscriminatedUnion$1 = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
4276
4276
|
ZodUnion$1.init(inst, def);
|
|
4277
4277
|
$ZodDiscriminatedUnion.init(inst, def);
|
|
4278
4278
|
});
|
|
@@ -4284,7 +4284,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
4284
4284
|
...normalizeParams(params)
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
|
-
const ZodIntersection$1 =
|
|
4287
|
+
const ZodIntersection$1 = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
4288
4288
|
$ZodIntersection.init(inst, def);
|
|
4289
4289
|
ZodType$1.init(inst, def);
|
|
4290
4290
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -4296,7 +4296,7 @@ function intersection(left, right) {
|
|
|
4296
4296
|
right
|
|
4297
4297
|
});
|
|
4298
4298
|
}
|
|
4299
|
-
const ZodRecord$1 =
|
|
4299
|
+
const ZodRecord$1 = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
4300
4300
|
$ZodRecord.init(inst, def);
|
|
4301
4301
|
ZodType$1.init(inst, def);
|
|
4302
4302
|
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
@@ -4317,7 +4317,7 @@ function record(keyType, valueType, params) {
|
|
|
4317
4317
|
...normalizeParams(params)
|
|
4318
4318
|
});
|
|
4319
4319
|
}
|
|
4320
|
-
const ZodEnum$1 =
|
|
4320
|
+
const ZodEnum$1 = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
4321
4321
|
$ZodEnum.init(inst, def);
|
|
4322
4322
|
ZodType$1.init(inst, def);
|
|
4323
4323
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -4354,7 +4354,7 @@ function _enum(values, params) {
|
|
|
4354
4354
|
...normalizeParams(params)
|
|
4355
4355
|
});
|
|
4356
4356
|
}
|
|
4357
|
-
const ZodLiteral$1 =
|
|
4357
|
+
const ZodLiteral$1 = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
4358
4358
|
$ZodLiteral.init(inst, def);
|
|
4359
4359
|
ZodType$1.init(inst, def);
|
|
4360
4360
|
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
@@ -4371,7 +4371,7 @@ function literal(value, params) {
|
|
|
4371
4371
|
...normalizeParams(params)
|
|
4372
4372
|
});
|
|
4373
4373
|
}
|
|
4374
|
-
const ZodTransform =
|
|
4374
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
4375
4375
|
$ZodTransform.init(inst, def);
|
|
4376
4376
|
ZodType$1.init(inst, def);
|
|
4377
4377
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -4405,7 +4405,7 @@ function transform(fn) {
|
|
|
4405
4405
|
transform: fn
|
|
4406
4406
|
});
|
|
4407
4407
|
}
|
|
4408
|
-
const ZodOptional$1 =
|
|
4408
|
+
const ZodOptional$1 = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
4409
4409
|
$ZodOptional.init(inst, def);
|
|
4410
4410
|
ZodType$1.init(inst, def);
|
|
4411
4411
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4417,7 +4417,7 @@ function optional(innerType) {
|
|
|
4417
4417
|
innerType
|
|
4418
4418
|
});
|
|
4419
4419
|
}
|
|
4420
|
-
const ZodExactOptional =
|
|
4420
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
4421
4421
|
$ZodExactOptional.init(inst, def);
|
|
4422
4422
|
ZodType$1.init(inst, def);
|
|
4423
4423
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4429,7 +4429,7 @@ function exactOptional(innerType) {
|
|
|
4429
4429
|
innerType
|
|
4430
4430
|
});
|
|
4431
4431
|
}
|
|
4432
|
-
const ZodNullable$1 =
|
|
4432
|
+
const ZodNullable$1 = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
4433
4433
|
$ZodNullable.init(inst, def);
|
|
4434
4434
|
ZodType$1.init(inst, def);
|
|
4435
4435
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -4441,7 +4441,7 @@ function nullable(innerType) {
|
|
|
4441
4441
|
innerType
|
|
4442
4442
|
});
|
|
4443
4443
|
}
|
|
4444
|
-
const ZodDefault$1 =
|
|
4444
|
+
const ZodDefault$1 = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
4445
4445
|
$ZodDefault.init(inst, def);
|
|
4446
4446
|
ZodType$1.init(inst, def);
|
|
4447
4447
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -4457,7 +4457,7 @@ function _default(innerType, defaultValue) {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
});
|
|
4459
4459
|
}
|
|
4460
|
-
const ZodPrefault =
|
|
4460
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
4461
4461
|
$ZodPrefault.init(inst, def);
|
|
4462
4462
|
ZodType$1.init(inst, def);
|
|
4463
4463
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -4472,7 +4472,7 @@ function prefault(innerType, defaultValue) {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
});
|
|
4474
4474
|
}
|
|
4475
|
-
const ZodNonOptional =
|
|
4475
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
4476
4476
|
$ZodNonOptional.init(inst, def);
|
|
4477
4477
|
ZodType$1.init(inst, def);
|
|
4478
4478
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -4485,7 +4485,7 @@ function nonoptional(innerType, params) {
|
|
|
4485
4485
|
...normalizeParams(params)
|
|
4486
4486
|
});
|
|
4487
4487
|
}
|
|
4488
|
-
const ZodCatch$1 =
|
|
4488
|
+
const ZodCatch$1 = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
4489
4489
|
$ZodCatch.init(inst, def);
|
|
4490
4490
|
ZodType$1.init(inst, def);
|
|
4491
4491
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -4499,7 +4499,7 @@ function _catch(innerType, catchValue) {
|
|
|
4499
4499
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4500
4500
|
});
|
|
4501
4501
|
}
|
|
4502
|
-
const ZodPipe =
|
|
4502
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4503
4503
|
$ZodPipe.init(inst, def);
|
|
4504
4504
|
ZodType$1.init(inst, def);
|
|
4505
4505
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -4513,11 +4513,11 @@ function pipe(in_, out) {
|
|
|
4513
4513
|
out
|
|
4514
4514
|
});
|
|
4515
4515
|
}
|
|
4516
|
-
const ZodPreprocess =
|
|
4516
|
+
const ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
4517
4517
|
ZodPipe.init(inst, def);
|
|
4518
4518
|
$ZodPreprocess.init(inst, def);
|
|
4519
4519
|
});
|
|
4520
|
-
const ZodReadonly$1 =
|
|
4520
|
+
const ZodReadonly$1 = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4521
4521
|
$ZodReadonly.init(inst, def);
|
|
4522
4522
|
ZodType$1.init(inst, def);
|
|
4523
4523
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -4529,7 +4529,7 @@ function readonly(innerType) {
|
|
|
4529
4529
|
innerType
|
|
4530
4530
|
});
|
|
4531
4531
|
}
|
|
4532
|
-
const ZodCustom =
|
|
4532
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4533
4533
|
$ZodCustom.init(inst, def);
|
|
4534
4534
|
ZodType$1.init(inst, def);
|
|
4535
4535
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
@@ -4709,7 +4709,7 @@ function generatedToolInputJsonSchema() {
|
|
|
4709
4709
|
return generatedToolInputJsonSchemaForCaplet({ backend: "tool" });
|
|
4710
4710
|
}
|
|
4711
4711
|
//#endregion
|
|
4712
|
-
//#region ../core/dist/options
|
|
4712
|
+
//#region ../core/dist/options--RoZwWjs.js
|
|
4713
4713
|
var __create = Object.create;
|
|
4714
4714
|
var __defProp = Object.defineProperty;
|
|
4715
4715
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -5393,7 +5393,7 @@ const ZodIssueCode$1 = {
|
|
|
5393
5393
|
};
|
|
5394
5394
|
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
5395
5395
|
var ZodFirstPartyTypeKind$1;
|
|
5396
|
-
|
|
5396
|
+
ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
|
|
5397
5397
|
function number(params) {
|
|
5398
5398
|
return /* @__PURE__ */ _coercedNumber(ZodNumber$1, params);
|
|
5399
5399
|
}
|
|
@@ -17974,7 +17974,7 @@ ZodOptional.create;
|
|
|
17974
17974
|
ZodNullable.create;
|
|
17975
17975
|
ZodEffects.createWithPreprocess;
|
|
17976
17976
|
ZodPipeline.create;
|
|
17977
|
-
const ZodMiniType =
|
|
17977
|
+
const ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
|
|
17978
17978
|
if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
|
|
17979
17979
|
$ZodType.init(inst, def);
|
|
17980
17980
|
inst.def = def;
|
|
@@ -18002,12 +18002,12 @@ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
18002
18002
|
});
|
|
18003
18003
|
inst.apply = (fn) => fn(inst);
|
|
18004
18004
|
});
|
|
18005
|
-
const ZodMiniObject =
|
|
18005
|
+
const ZodMiniObject = /*@__PURE__*/ $constructor("ZodMiniObject", (inst, def) => {
|
|
18006
18006
|
$ZodObject.init(inst, def);
|
|
18007
18007
|
ZodMiniType.init(inst, def);
|
|
18008
18008
|
defineLazy(inst, "shape", () => def.shape);
|
|
18009
18009
|
});
|
|
18010
|
-
|
|
18010
|
+
// @__NO_SIDE_EFFECTS__
|
|
18011
18011
|
function object(shape, params) {
|
|
18012
18012
|
return new ZodMiniObject({
|
|
18013
18013
|
type: "object",
|
|
@@ -20434,7 +20434,7 @@ function parseStringDef(def, refs) {
|
|
|
20434
20434
|
case "toLowerCase":
|
|
20435
20435
|
case "toUpperCase":
|
|
20436
20436
|
case "trim": break;
|
|
20437
|
-
default:
|
|
20437
|
+
default:
|
|
20438
20438
|
}
|
|
20439
20439
|
return res;
|
|
20440
20440
|
}
|
|
@@ -58217,7 +58217,7 @@ var CapletsEngine = class {
|
|
|
58217
58217
|
}
|
|
58218
58218
|
}
|
|
58219
58219
|
async completeCliWords(words) {
|
|
58220
|
-
const { completeCliWords } = await Promise.resolve().then(() =>
|
|
58220
|
+
const { completeCliWords } = await Promise.resolve().then(() => completion_DvWQk5qR_exports).then((n) => n.r);
|
|
58221
58221
|
return await completeCliWords(words, {
|
|
58222
58222
|
config: this.registry.config,
|
|
58223
58223
|
managers: {
|
|
@@ -58555,8 +58555,8 @@ function hasEnv$1(value) {
|
|
|
58555
58555
|
return value !== void 0 && value.trim() !== "";
|
|
58556
58556
|
}
|
|
58557
58557
|
//#endregion
|
|
58558
|
-
//#region ../core/dist/completion-
|
|
58559
|
-
var
|
|
58558
|
+
//#region ../core/dist/completion-DvWQk5qR.js
|
|
58559
|
+
var completion_DvWQk5qR_exports = /* @__PURE__ */ __exportAll$1({
|
|
58560
58560
|
a: () => formatCapletList,
|
|
58561
58561
|
c: () => resolveCliConfigPaths,
|
|
58562
58562
|
i: () => trailingSpaceCompletionToken,
|
|
@@ -60420,7 +60420,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
60420
60420
|
values: [],
|
|
60421
60421
|
hasMore: false
|
|
60422
60422
|
} };
|
|
60423
|
-
var version$1 = "0.18.
|
|
60423
|
+
var version$1 = "0.18.8";
|
|
60424
60424
|
var CapletsMcpSession = class {
|
|
60425
60425
|
engine;
|
|
60426
60426
|
server;
|
|
@@ -69694,7 +69694,7 @@ function writeAddResult(writeOut, label, result) {
|
|
|
69694
69694
|
}
|
|
69695
69695
|
//#endregion
|
|
69696
69696
|
//#region package.json
|
|
69697
|
-
var version = "0.17.
|
|
69697
|
+
var version = "0.17.8";
|
|
69698
69698
|
//#endregion
|
|
69699
69699
|
//#region src/index.ts
|
|
69700
69700
|
async function main() {
|