clivly 0.4.1 → 0.7.1
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/README.md +89 -10
- package/{adapter-CXr12l4K.d.cts → adapter-C2eRbBfo.d.cts} +1 -2
- package/{adapter-CvNBD_3y.d.mts → adapter-D5LRa-NA.d.mts} +1 -2
- package/{auth-adapter-CdLODn2p.d.cts → auth-adapter-Bjgo8LhN.d.mts} +1 -2
- package/{auth-adapter-CRBW4elj.d.mts → auth-adapter-DWzgl5Yq.d.cts} +1 -2
- package/auth-better-auth.d.cts +1 -2
- package/auth-better-auth.d.mts +1 -2
- package/auth-clerk.d.cts +1 -2
- package/auth-clerk.d.mts +1 -2
- package/auth-workos.d.cts +1 -2
- package/auth-workos.d.mts +1 -2
- package/core-adapter.cjs +5 -0
- package/core-adapter.d.cts +1 -1
- package/core-adapter.d.mts +1 -1
- package/core-adapter.mjs +5 -0
- package/core-auth-adapter.cjs +6 -1
- package/core-auth-adapter.d.cts +1 -1
- package/core-auth-adapter.d.mts +1 -1
- package/core-auth-adapter.mjs +6 -1
- package/core-drizzle.cjs +6 -30
- package/core-drizzle.d.cts +1 -20
- package/core-drizzle.d.mts +1 -20
- package/core-drizzle.mjs +5 -29
- package/core-entity-config.cjs +4 -1
- package/core-entity-config.d.cts +1 -1
- package/core-entity-config.d.mts +1 -1
- package/core-entity-config.mjs +5 -1
- package/core-entity-heuristics.cjs +14 -453
- package/core-entity-heuristics.d.cts +1 -67
- package/core-entity-heuristics.d.mts +1 -67
- package/core-entity-heuristics.mjs +4 -442
- package/core-mapping-form.cjs +6 -1
- package/core-mapping-form.d.cts +1 -1
- package/core-mapping-form.d.mts +1 -1
- package/core-mapping-form.mjs +6 -1
- package/core-mapping-score.cjs +4 -1
- package/core-mapping-score.d.cts +1 -1
- package/core-mapping-score.d.mts +1 -1
- package/core-mapping-score.mjs +5 -1
- package/core-mappings-config.cjs +6 -1
- package/core-mappings-config.d.cts +1 -1
- package/core-mappings-config.d.mts +1 -1
- package/core-mappings-config.mjs +6 -1
- package/core-sync-engine.cjs +6 -1
- package/core-sync-engine.d.cts +1 -1
- package/core-sync-engine.d.mts +1 -1
- package/core-sync-engine.mjs +6 -1
- package/core-types.cjs +5 -0
- package/core-types.d.cts +1 -1
- package/core-types.d.mts +1 -1
- package/core-types.mjs +5 -0
- package/core-view-compiler.cjs +6 -1
- package/core-view-compiler.d.cts +1 -1
- package/core-view-compiler.d.mts +1 -1
- package/core-view-compiler.mjs +6 -1
- package/core.cjs +11 -6
- package/core.d.cts +9 -9
- package/core.d.mts +9 -9
- package/core.mjs +11 -6
- package/deprecate-subpath-B9ngvizt.cjs +30 -0
- package/deprecate-subpath-CmvZtCpE.mjs +25 -0
- package/drizzle-B89tLo4T.mjs +31 -0
- package/drizzle-CFOr9dU9.d.mts +20 -0
- package/drizzle-DiReZf6d.cjs +36 -0
- package/drizzle-DmeKSqeF.d.cts +20 -0
- package/drizzle.cjs +3 -1
- package/drizzle.d.cts +11 -3
- package/drizzle.d.mts +11 -3
- package/drizzle.mjs +3 -2
- package/{entity-config-DMuZpchz.cjs → entity-config-D87rV-tE.cjs} +194 -192
- package/{entity-config-D1DFyeUp.d.mts → entity-config-DoUCXtq5.d.cts} +48 -35
- package/{entity-config-GczjD3y8.d.cts → entity-config-DoUCXtq5.d.mts} +48 -35
- package/{entity-config-D3YpQB0z.mjs → entity-config-va2bkH5o.mjs} +194 -192
- package/index.cjs +910 -234
- package/index.d.cts +30 -2
- package/index.d.mts +30 -2
- package/index.mjs +900 -226
- package/internal-adapter.cjs +0 -0
- package/internal-adapter.d.cts +2 -0
- package/internal-adapter.d.mts +2 -0
- package/internal-adapter.mjs +1 -0
- package/internal-auth-adapter.cjs +3 -0
- package/internal-auth-adapter.d.cts +2 -0
- package/internal-auth-adapter.d.mts +2 -0
- package/internal-auth-adapter.mjs +2 -0
- package/internal-drizzle.cjs +3 -0
- package/internal-drizzle.d.cts +2 -0
- package/internal-drizzle.d.mts +2 -0
- package/internal-drizzle.mjs +2 -0
- package/internal-entity-config.cjs +13 -0
- package/internal-entity-config.d.cts +2 -0
- package/internal-entity-config.d.mts +2 -0
- package/internal-entity-config.mjs +2 -0
- package/internal-entity-heuristics.cjs +455 -0
- package/internal-entity-heuristics.d.cts +67 -0
- package/internal-entity-heuristics.d.mts +67 -0
- package/internal-entity-heuristics.mjs +444 -0
- package/internal-mapping-form.cjs +5 -0
- package/internal-mapping-form.d.cts +2 -0
- package/internal-mapping-form.d.mts +2 -0
- package/internal-mapping-form.mjs +2 -0
- package/internal-mapping-score.cjs +12 -0
- package/internal-mapping-score.d.cts +2 -0
- package/internal-mapping-score.d.mts +2 -0
- package/internal-mapping-score.mjs +2 -0
- package/internal-mappings-config.cjs +3 -0
- package/internal-mappings-config.d.cts +2 -0
- package/internal-mappings-config.d.mts +2 -0
- package/internal-mappings-config.mjs +2 -0
- package/internal-sync-engine.cjs +6 -0
- package/internal-sync-engine.d.cts +2 -0
- package/internal-sync-engine.d.mts +2 -0
- package/internal-sync-engine.mjs +2 -0
- package/internal-types.cjs +0 -0
- package/internal-types.d.cts +2 -0
- package/internal-types.d.mts +2 -0
- package/internal-types.mjs +1 -0
- package/internal-view-compiler.cjs +6 -0
- package/internal-view-compiler.d.cts +2 -0
- package/internal-view-compiler.d.mts +2 -0
- package/internal-view-compiler.mjs +2 -0
- package/internal.cjs +28 -0
- package/internal.d.cts +9 -0
- package/internal.d.mts +9 -0
- package/internal.mjs +7 -0
- package/{mapping-form-CUlFVfG8.d.cts → mapping-form-D93lhHEc.d.mts} +1 -2
- package/{mapping-form-kjSiJaCX.d.mts → mapping-form-lfyEE7EJ.d.cts} +1 -2
- package/{mappings-config-DYZ_uOOB.cjs → mappings-config-BsRADNRv.cjs} +1 -1
- package/{mappings-config-CNTZRD4g.mjs → mappings-config-Dbgxx3Nv.mjs} +1 -1
- package/{mappings-config-DjRLCb2Q.d.cts → mappings-config-DsUa7-1w.d.mts} +1 -2
- package/{mappings-config-GxiYsSBQ.d.mts → mappings-config-XmzB4dag.d.cts} +1 -2
- package/package.json +152 -4
- package/{sdk-DdzBxgMx.mjs → sdk-C6WANW8M.mjs} +173 -34
- package/{sdk-D1BHQDf5.cjs → sdk-iqOXeWIp.cjs} +173 -34
- package/sdk.cjs +3 -1
- package/sdk.d.cts +1 -41
- package/sdk.d.mts +1 -41
- package/sdk.mjs +3 -2
- package/{sync-engine-DIVMG9EV.d.cts → sync-engine-B7QIbXro.d.cts} +6 -5
- package/{sync-engine-BtzkzKmY.cjs → sync-engine-CzEbpQGv.cjs} +1 -1
- package/{sync-engine-DLx243iw.d.mts → sync-engine-DGk_AeHJ.d.mts} +6 -5
- package/{sync-engine-D9vghQab.mjs → sync-engine-Do5ru3WF.mjs} +1 -1
- package/types-CsL0rFYh.d.cts +155 -0
- package/types-CsL0rFYh.d.mts +155 -0
- package/{view-compiler-4HsRUTWH.d.cts → view-compiler-BWz0sGdm.d.cts} +1 -2
- package/{view-compiler-BpIDExjd.d.mts → view-compiler-Bn_EJJMO.d.mts} +1 -2
- package/vite.d.cts +1 -2
- package/vite.d.mts +1 -2
- package/namespace-probe-CA4Vj40g.d.mts +0 -331
- package/namespace-probe-CkHCj9tQ.d.cts +0 -331
- /package/{auth-adapter-CBOKDhlc.cjs → auth-adapter-CiEXcweZ.cjs} +0 -0
- /package/{auth-adapter-wqnnEjo3.mjs → auth-adapter-gfVDxf3d.mjs} +0 -0
- /package/{drizzle-meta-BVR1qiyu.cjs → drizzle-meta-Bb1JWYqf.cjs} +0 -0
- /package/{drizzle-meta-DpMKataU.mjs → drizzle-meta-D-5k3n0i.mjs} +0 -0
- /package/{mapping-form-DdmDebC3.cjs → mapping-form-BpfON_ME.cjs} +0 -0
- /package/{mapping-form-BHtPexzI.mjs → mapping-form-DigkuvFc.mjs} +0 -0
- /package/{mapping-score-CPPvwoZC.mjs → mapping-score-C68uAqGB.mjs} +0 -0
- /package/{mapping-score-i3p8LWDF.cjs → mapping-score-CaB3F4Uu.cjs} +0 -0
- /package/{mapping-score-A2lRnlpk.d.mts → mapping-score-D7Gzg7Ii.d.cts} +0 -0
- /package/{mapping-score-BcjC0ZQs.d.cts → mapping-score-D7Gzg7Ii.d.mts} +0 -0
- /package/{types-BpsKVccL.d.cts → types-B1oRXdNP.d.cts} +0 -0
- /package/{types-_qbJXMt_.d.mts → types-B1oRXdNP.d.mts} +0 -0
- /package/{view-compiler-BcgJINr7.cjs → view-compiler-BIwvm-o2.cjs} +0 -0
- /package/{view-compiler-DeZzx_jn.mjs → view-compiler-ChWr_Lml.mjs} +0 -0
|
@@ -73,7 +73,6 @@ function cached(getter) {
|
|
|
73
73
|
Object.defineProperty(this, "value", { value });
|
|
74
74
|
return value;
|
|
75
75
|
}
|
|
76
|
-
throw new Error("cached value already set");
|
|
77
76
|
} };
|
|
78
77
|
}
|
|
79
78
|
function nullish(input) {
|
|
@@ -91,7 +90,7 @@ function floatSafeRemainder(val, step) {
|
|
|
91
90
|
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
92
91
|
return ratio - roundedRatio;
|
|
93
92
|
}
|
|
94
|
-
const EVALUATING = /* @__PURE__
|
|
93
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
95
94
|
function defineLazy(object, key, getter) {
|
|
96
95
|
let value = void 0;
|
|
97
96
|
Object.defineProperty(object, key, {
|
|
@@ -119,7 +118,10 @@ function assignProp(target, prop, value) {
|
|
|
119
118
|
}
|
|
120
119
|
function mergeDefs(...defs) {
|
|
121
120
|
const mergedDescriptors = {};
|
|
122
|
-
for (const def of defs)
|
|
121
|
+
for (const def of defs) {
|
|
122
|
+
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
123
|
+
Object.assign(mergedDescriptors, descriptors);
|
|
124
|
+
}
|
|
123
125
|
return Object.defineProperties({}, mergedDescriptors);
|
|
124
126
|
}
|
|
125
127
|
function esc(str) {
|
|
@@ -132,7 +134,7 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
|
|
|
132
134
|
function isObject(data) {
|
|
133
135
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
134
136
|
}
|
|
135
|
-
const allowsEval = /* @__PURE__
|
|
137
|
+
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
136
138
|
if (globalConfig.jitless) return false;
|
|
137
139
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
138
140
|
try {
|
|
@@ -159,7 +161,7 @@ function shallowClone(o) {
|
|
|
159
161
|
if (o instanceof Set) return new Set(o);
|
|
160
162
|
return o;
|
|
161
163
|
}
|
|
162
|
-
const propertyKeyTypes = /* @__PURE__
|
|
164
|
+
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
163
165
|
"string",
|
|
164
166
|
"number",
|
|
165
167
|
"symbol"
|
|
@@ -441,7 +443,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
441
443
|
}, ctx);
|
|
442
444
|
if (result instanceof Promise) throw new $ZodAsyncError();
|
|
443
445
|
if (result.issues.length) {
|
|
444
|
-
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
446
|
+
const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
445
447
|
captureStackTrace(e, _params?.callee);
|
|
446
448
|
throw e;
|
|
447
449
|
}
|
|
@@ -458,7 +460,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
458
460
|
}, ctx);
|
|
459
461
|
if (result instanceof Promise) result = await result;
|
|
460
462
|
if (result.issues.length) {
|
|
461
|
-
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
463
|
+
const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
|
|
462
464
|
captureStackTrace(e, params?.callee);
|
|
463
465
|
throw e;
|
|
464
466
|
}
|
|
@@ -482,7 +484,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
482
484
|
data: result.value
|
|
483
485
|
};
|
|
484
486
|
};
|
|
485
|
-
const safeParse$1 = /* @__PURE__
|
|
487
|
+
const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
486
488
|
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
487
489
|
const ctx = _ctx ? {
|
|
488
490
|
..._ctx,
|
|
@@ -501,7 +503,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
501
503
|
data: result.value
|
|
502
504
|
};
|
|
503
505
|
};
|
|
504
|
-
const safeParseAsync$1 = /* @__PURE__
|
|
506
|
+
const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
505
507
|
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
506
508
|
const ctx = _ctx ? {
|
|
507
509
|
..._ctx,
|
|
@@ -581,7 +583,7 @@ const base64url = /^[A-Za-z0-9_-]*$/;
|
|
|
581
583
|
const httpProtocol = /^https?$/;
|
|
582
584
|
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
583
585
|
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])))`;
|
|
584
|
-
const date$1 =
|
|
586
|
+
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
585
587
|
function timeSource(args) {
|
|
586
588
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
587
589
|
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+)?)?`;
|
|
@@ -608,7 +610,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
608
610
|
const uppercase = /^[^a-z]*$/;
|
|
609
611
|
//#endregion
|
|
610
612
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
611
|
-
const $ZodCheck =
|
|
613
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
612
614
|
var _a;
|
|
613
615
|
inst._zod ?? (inst._zod = {});
|
|
614
616
|
inst._zod.def = def;
|
|
@@ -619,7 +621,7 @@ const numericOriginMap = {
|
|
|
619
621
|
bigint: "bigint",
|
|
620
622
|
object: "date"
|
|
621
623
|
};
|
|
622
|
-
const $ZodCheckLessThan =
|
|
624
|
+
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
623
625
|
$ZodCheck.init(inst, def);
|
|
624
626
|
const origin = numericOriginMap[typeof def.value];
|
|
625
627
|
inst._zod.onattach.push((inst) => {
|
|
@@ -641,7 +643,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
|
|
|
641
643
|
});
|
|
642
644
|
};
|
|
643
645
|
});
|
|
644
|
-
const $ZodCheckGreaterThan =
|
|
646
|
+
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
645
647
|
$ZodCheck.init(inst, def);
|
|
646
648
|
const origin = numericOriginMap[typeof def.value];
|
|
647
649
|
inst._zod.onattach.push((inst) => {
|
|
@@ -663,7 +665,7 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
663
665
|
});
|
|
664
666
|
};
|
|
665
667
|
});
|
|
666
|
-
const $ZodCheckMultipleOf =
|
|
668
|
+
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
667
669
|
$ZodCheck.init(inst, def);
|
|
668
670
|
inst._zod.onattach.push((inst) => {
|
|
669
671
|
var _a;
|
|
@@ -682,7 +684,7 @@ const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf",
|
|
|
682
684
|
});
|
|
683
685
|
};
|
|
684
686
|
});
|
|
685
|
-
const $ZodCheckNumberFormat =
|
|
687
|
+
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
686
688
|
$ZodCheck.init(inst, def);
|
|
687
689
|
def.format = def.format || "float64";
|
|
688
690
|
const isInt = def.format?.includes("int");
|
|
@@ -753,7 +755,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
753
755
|
});
|
|
754
756
|
};
|
|
755
757
|
});
|
|
756
|
-
const $ZodCheckMaxLength =
|
|
758
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
757
759
|
var _a;
|
|
758
760
|
$ZodCheck.init(inst, def);
|
|
759
761
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -779,7 +781,7 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
779
781
|
});
|
|
780
782
|
};
|
|
781
783
|
});
|
|
782
|
-
const $ZodCheckMinLength =
|
|
784
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
783
785
|
var _a;
|
|
784
786
|
$ZodCheck.init(inst, def);
|
|
785
787
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -805,7 +807,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
805
807
|
});
|
|
806
808
|
};
|
|
807
809
|
});
|
|
808
|
-
const $ZodCheckLengthEquals =
|
|
810
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
809
811
|
var _a;
|
|
810
812
|
$ZodCheck.init(inst, def);
|
|
811
813
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -841,7 +843,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
841
843
|
});
|
|
842
844
|
};
|
|
843
845
|
});
|
|
844
|
-
const $ZodCheckStringFormat =
|
|
846
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
845
847
|
var _a, _b;
|
|
846
848
|
$ZodCheck.init(inst, def);
|
|
847
849
|
inst._zod.onattach.push((inst) => {
|
|
@@ -867,7 +869,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
867
869
|
});
|
|
868
870
|
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
869
871
|
});
|
|
870
|
-
const $ZodCheckRegex =
|
|
872
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
871
873
|
$ZodCheckStringFormat.init(inst, def);
|
|
872
874
|
inst._zod.check = (payload) => {
|
|
873
875
|
def.pattern.lastIndex = 0;
|
|
@@ -883,15 +885,15 @@ const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def
|
|
|
883
885
|
});
|
|
884
886
|
};
|
|
885
887
|
});
|
|
886
|
-
const $ZodCheckLowerCase =
|
|
888
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
887
889
|
def.pattern ?? (def.pattern = lowercase);
|
|
888
890
|
$ZodCheckStringFormat.init(inst, def);
|
|
889
891
|
});
|
|
890
|
-
const $ZodCheckUpperCase =
|
|
892
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
891
893
|
def.pattern ?? (def.pattern = uppercase);
|
|
892
894
|
$ZodCheckStringFormat.init(inst, def);
|
|
893
895
|
});
|
|
894
|
-
const $ZodCheckIncludes =
|
|
896
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
895
897
|
$ZodCheck.init(inst, def);
|
|
896
898
|
const escapedRegex = escapeRegex(def.includes);
|
|
897
899
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
@@ -914,7 +916,7 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
|
|
|
914
916
|
});
|
|
915
917
|
};
|
|
916
918
|
});
|
|
917
|
-
const $ZodCheckStartsWith =
|
|
919
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
918
920
|
$ZodCheck.init(inst, def);
|
|
919
921
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
920
922
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -936,7 +938,7 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
|
|
|
936
938
|
});
|
|
937
939
|
};
|
|
938
940
|
});
|
|
939
|
-
const $ZodCheckEndsWith =
|
|
941
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
940
942
|
$ZodCheck.init(inst, def);
|
|
941
943
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
942
944
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -958,7 +960,7 @@ const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (ins
|
|
|
958
960
|
});
|
|
959
961
|
};
|
|
960
962
|
});
|
|
961
|
-
const $ZodCheckOverwrite =
|
|
963
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
962
964
|
$ZodCheck.init(inst, def);
|
|
963
965
|
inst._zod.check = (payload) => {
|
|
964
966
|
payload.value = def.tx(payload.value);
|
|
@@ -1004,7 +1006,7 @@ const version = {
|
|
|
1004
1006
|
};
|
|
1005
1007
|
//#endregion
|
|
1006
1008
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1007
|
-
const $ZodType =
|
|
1009
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1008
1010
|
var _a;
|
|
1009
1011
|
inst ?? (inst = {});
|
|
1010
1012
|
inst._zod.def = def;
|
|
@@ -1093,7 +1095,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1093
1095
|
version: 1
|
|
1094
1096
|
}));
|
|
1095
1097
|
});
|
|
1096
|
-
const $ZodString =
|
|
1098
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1097
1099
|
$ZodType.init(inst, def);
|
|
1098
1100
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
1099
1101
|
inst._zod.parse = (payload, _) => {
|
|
@@ -1110,15 +1112,15 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1110
1112
|
return payload;
|
|
1111
1113
|
};
|
|
1112
1114
|
});
|
|
1113
|
-
const $ZodStringFormat =
|
|
1115
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1114
1116
|
$ZodCheckStringFormat.init(inst, def);
|
|
1115
1117
|
$ZodString.init(inst, def);
|
|
1116
1118
|
});
|
|
1117
|
-
const $ZodGUID =
|
|
1119
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1118
1120
|
def.pattern ?? (def.pattern = guid);
|
|
1119
1121
|
$ZodStringFormat.init(inst, def);
|
|
1120
1122
|
});
|
|
1121
|
-
const $ZodUUID =
|
|
1123
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1122
1124
|
if (def.version) {
|
|
1123
1125
|
const v = {
|
|
1124
1126
|
v1: 1,
|
|
@@ -1135,11 +1137,11 @@ const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
|
1135
1137
|
} else def.pattern ?? (def.pattern = uuid());
|
|
1136
1138
|
$ZodStringFormat.init(inst, def);
|
|
1137
1139
|
});
|
|
1138
|
-
const $ZodEmail =
|
|
1140
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1139
1141
|
def.pattern ?? (def.pattern = email);
|
|
1140
1142
|
$ZodStringFormat.init(inst, def);
|
|
1141
1143
|
});
|
|
1142
|
-
const $ZodURL =
|
|
1144
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1143
1145
|
$ZodStringFormat.init(inst, def);
|
|
1144
1146
|
inst._zod.check = (payload) => {
|
|
1145
1147
|
try {
|
|
@@ -1196,11 +1198,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1196
1198
|
}
|
|
1197
1199
|
};
|
|
1198
1200
|
});
|
|
1199
|
-
const $ZodEmoji =
|
|
1201
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1200
1202
|
def.pattern ?? (def.pattern = emoji());
|
|
1201
1203
|
$ZodStringFormat.init(inst, def);
|
|
1202
1204
|
});
|
|
1203
|
-
const $ZodNanoID =
|
|
1205
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1204
1206
|
def.pattern ?? (def.pattern = nanoid);
|
|
1205
1207
|
$ZodStringFormat.init(inst, def);
|
|
1206
1208
|
});
|
|
@@ -1209,48 +1211,48 @@ const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
|
1209
1211
|
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1210
1212
|
* See https://github.com/paralleldrive/cuid.
|
|
1211
1213
|
*/
|
|
1212
|
-
const $ZodCUID =
|
|
1214
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1213
1215
|
def.pattern ?? (def.pattern = cuid);
|
|
1214
1216
|
$ZodStringFormat.init(inst, def);
|
|
1215
1217
|
});
|
|
1216
|
-
const $ZodCUID2 =
|
|
1218
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1217
1219
|
def.pattern ?? (def.pattern = cuid2);
|
|
1218
1220
|
$ZodStringFormat.init(inst, def);
|
|
1219
1221
|
});
|
|
1220
|
-
const $ZodULID =
|
|
1222
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1221
1223
|
def.pattern ?? (def.pattern = ulid);
|
|
1222
1224
|
$ZodStringFormat.init(inst, def);
|
|
1223
1225
|
});
|
|
1224
|
-
const $ZodXID =
|
|
1226
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1225
1227
|
def.pattern ?? (def.pattern = xid);
|
|
1226
1228
|
$ZodStringFormat.init(inst, def);
|
|
1227
1229
|
});
|
|
1228
|
-
const $ZodKSUID =
|
|
1230
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1229
1231
|
def.pattern ?? (def.pattern = ksuid);
|
|
1230
1232
|
$ZodStringFormat.init(inst, def);
|
|
1231
1233
|
});
|
|
1232
|
-
const $ZodISODateTime =
|
|
1234
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1233
1235
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1234
1236
|
$ZodStringFormat.init(inst, def);
|
|
1235
1237
|
});
|
|
1236
|
-
const $ZodISODate =
|
|
1238
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1237
1239
|
def.pattern ?? (def.pattern = date$1);
|
|
1238
1240
|
$ZodStringFormat.init(inst, def);
|
|
1239
1241
|
});
|
|
1240
|
-
const $ZodISOTime =
|
|
1242
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1241
1243
|
def.pattern ?? (def.pattern = time$1(def));
|
|
1242
1244
|
$ZodStringFormat.init(inst, def);
|
|
1243
1245
|
});
|
|
1244
|
-
const $ZodISODuration =
|
|
1246
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1245
1247
|
def.pattern ?? (def.pattern = duration$1);
|
|
1246
1248
|
$ZodStringFormat.init(inst, def);
|
|
1247
1249
|
});
|
|
1248
|
-
const $ZodIPv4 =
|
|
1250
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1249
1251
|
def.pattern ?? (def.pattern = ipv4);
|
|
1250
1252
|
$ZodStringFormat.init(inst, def);
|
|
1251
1253
|
inst._zod.bag.format = `ipv4`;
|
|
1252
1254
|
});
|
|
1253
|
-
const $ZodIPv6 =
|
|
1255
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1254
1256
|
def.pattern ?? (def.pattern = ipv6);
|
|
1255
1257
|
$ZodStringFormat.init(inst, def);
|
|
1256
1258
|
inst._zod.bag.format = `ipv6`;
|
|
@@ -1268,11 +1270,11 @@ const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
1268
1270
|
}
|
|
1269
1271
|
};
|
|
1270
1272
|
});
|
|
1271
|
-
const $ZodCIDRv4 =
|
|
1273
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1272
1274
|
def.pattern ?? (def.pattern = cidrv4);
|
|
1273
1275
|
$ZodStringFormat.init(inst, def);
|
|
1274
1276
|
});
|
|
1275
|
-
const $ZodCIDRv6 =
|
|
1277
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1276
1278
|
def.pattern ?? (def.pattern = cidrv6);
|
|
1277
1279
|
$ZodStringFormat.init(inst, def);
|
|
1278
1280
|
inst._zod.check = (payload) => {
|
|
@@ -1307,7 +1309,7 @@ function isValidBase64(data) {
|
|
|
1307
1309
|
return false;
|
|
1308
1310
|
}
|
|
1309
1311
|
}
|
|
1310
|
-
const $ZodBase64 =
|
|
1312
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1311
1313
|
def.pattern ?? (def.pattern = base64);
|
|
1312
1314
|
$ZodStringFormat.init(inst, def);
|
|
1313
1315
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -1327,7 +1329,7 @@ function isValidBase64URL(data) {
|
|
|
1327
1329
|
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1328
1330
|
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1329
1331
|
}
|
|
1330
|
-
const $ZodBase64URL =
|
|
1332
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1331
1333
|
def.pattern ?? (def.pattern = base64url);
|
|
1332
1334
|
$ZodStringFormat.init(inst, def);
|
|
1333
1335
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -1342,7 +1344,7 @@ const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def)
|
|
|
1342
1344
|
});
|
|
1343
1345
|
};
|
|
1344
1346
|
});
|
|
1345
|
-
const $ZodE164 =
|
|
1347
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1346
1348
|
def.pattern ?? (def.pattern = e164);
|
|
1347
1349
|
$ZodStringFormat.init(inst, def);
|
|
1348
1350
|
});
|
|
@@ -1361,7 +1363,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
1361
1363
|
return false;
|
|
1362
1364
|
}
|
|
1363
1365
|
}
|
|
1364
|
-
const $ZodJWT =
|
|
1366
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1365
1367
|
$ZodStringFormat.init(inst, def);
|
|
1366
1368
|
inst._zod.check = (payload) => {
|
|
1367
1369
|
if (isValidJWT(payload.value, def.alg)) return;
|
|
@@ -1374,7 +1376,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1374
1376
|
});
|
|
1375
1377
|
};
|
|
1376
1378
|
});
|
|
1377
|
-
const $ZodNumber =
|
|
1379
|
+
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1378
1380
|
$ZodType.init(inst, def);
|
|
1379
1381
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1380
1382
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1394,11 +1396,11 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
1394
1396
|
return payload;
|
|
1395
1397
|
};
|
|
1396
1398
|
});
|
|
1397
|
-
const $ZodNumberFormat =
|
|
1399
|
+
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1398
1400
|
$ZodCheckNumberFormat.init(inst, def);
|
|
1399
1401
|
$ZodNumber.init(inst, def);
|
|
1400
1402
|
});
|
|
1401
|
-
const $ZodBoolean =
|
|
1403
|
+
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1402
1404
|
$ZodType.init(inst, def);
|
|
1403
1405
|
inst._zod.pattern = boolean$1;
|
|
1404
1406
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1416,11 +1418,11 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
1416
1418
|
return payload;
|
|
1417
1419
|
};
|
|
1418
1420
|
});
|
|
1419
|
-
const $ZodUnknown =
|
|
1421
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1420
1422
|
$ZodType.init(inst, def);
|
|
1421
1423
|
inst._zod.parse = (payload) => payload;
|
|
1422
1424
|
});
|
|
1423
|
-
const $ZodNever =
|
|
1425
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1424
1426
|
$ZodType.init(inst, def);
|
|
1425
1427
|
inst._zod.parse = (payload, _ctx) => {
|
|
1426
1428
|
payload.issues.push({
|
|
@@ -1436,7 +1438,7 @@ function handleArrayResult(result, final, index) {
|
|
|
1436
1438
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1437
1439
|
final.value[index] = result.value;
|
|
1438
1440
|
}
|
|
1439
|
-
const $ZodArray =
|
|
1441
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1440
1442
|
$ZodType.init(inst, def);
|
|
1441
1443
|
inst._zod.parse = (payload, ctx) => {
|
|
1442
1444
|
const input = payload.value;
|
|
@@ -1527,7 +1529,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1527
1529
|
return payload;
|
|
1528
1530
|
});
|
|
1529
1531
|
}
|
|
1530
|
-
const $ZodObject =
|
|
1532
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1531
1533
|
$ZodType.init(inst, def);
|
|
1532
1534
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1533
1535
|
const sh = def.shape;
|
|
@@ -1550,13 +1552,13 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1550
1552
|
}
|
|
1551
1553
|
return propValues;
|
|
1552
1554
|
});
|
|
1553
|
-
const isObject$
|
|
1555
|
+
const isObject$2 = isObject;
|
|
1554
1556
|
const catchall = def.catchall;
|
|
1555
1557
|
let value;
|
|
1556
1558
|
inst._zod.parse = (payload, ctx) => {
|
|
1557
1559
|
value ?? (value = _normalized.value);
|
|
1558
1560
|
const input = payload.value;
|
|
1559
|
-
if (!isObject$
|
|
1561
|
+
if (!isObject$2(input)) {
|
|
1560
1562
|
payload.issues.push({
|
|
1561
1563
|
expected: "object",
|
|
1562
1564
|
code: "invalid_type",
|
|
@@ -1583,7 +1585,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1583
1585
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1584
1586
|
};
|
|
1585
1587
|
});
|
|
1586
|
-
const $ZodObjectJIT =
|
|
1588
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1587
1589
|
$ZodObject.init(inst, def);
|
|
1588
1590
|
const superParse = inst._zod.parse;
|
|
1589
1591
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -1679,7 +1681,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
1679
1681
|
return (payload, ctx) => fn(shape, payload, ctx);
|
|
1680
1682
|
};
|
|
1681
1683
|
let fastpass;
|
|
1682
|
-
const isObject$
|
|
1684
|
+
const isObject$1 = isObject;
|
|
1683
1685
|
const jit = !globalConfig.jitless;
|
|
1684
1686
|
const fastEnabled = jit && allowsEval.value;
|
|
1685
1687
|
const catchall = def.catchall;
|
|
@@ -1687,7 +1689,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
1687
1689
|
inst._zod.parse = (payload, ctx) => {
|
|
1688
1690
|
value ?? (value = _normalized.value);
|
|
1689
1691
|
const input = payload.value;
|
|
1690
|
-
if (!isObject$
|
|
1692
|
+
if (!isObject$1(input)) {
|
|
1691
1693
|
payload.issues.push({
|
|
1692
1694
|
expected: "object",
|
|
1693
1695
|
code: "invalid_type",
|
|
@@ -1723,7 +1725,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
1723
1725
|
});
|
|
1724
1726
|
return final;
|
|
1725
1727
|
}
|
|
1726
|
-
const $ZodUnion =
|
|
1728
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1727
1729
|
$ZodType.init(inst, def);
|
|
1728
1730
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1729
1731
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -1760,7 +1762,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1760
1762
|
});
|
|
1761
1763
|
};
|
|
1762
1764
|
});
|
|
1763
|
-
const $ZodIntersection =
|
|
1765
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1764
1766
|
$ZodType.init(inst, def);
|
|
1765
1767
|
inst._zod.parse = (payload, ctx) => {
|
|
1766
1768
|
const input = payload.value;
|
|
@@ -1859,7 +1861,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1859
1861
|
result.value = merged.data;
|
|
1860
1862
|
return result;
|
|
1861
1863
|
}
|
|
1862
|
-
const $ZodRecord =
|
|
1864
|
+
const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
1863
1865
|
$ZodType.init(inst, def);
|
|
1864
1866
|
inst._zod.parse = (payload, ctx) => {
|
|
1865
1867
|
const input = payload.value;
|
|
@@ -1968,7 +1970,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
1968
1970
|
return payload;
|
|
1969
1971
|
};
|
|
1970
1972
|
});
|
|
1971
|
-
const $ZodEnum =
|
|
1973
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
1972
1974
|
$ZodType.init(inst, def);
|
|
1973
1975
|
const values = getEnumValues(def.entries);
|
|
1974
1976
|
const valuesSet = new Set(values);
|
|
@@ -1986,7 +1988,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
1986
1988
|
return payload;
|
|
1987
1989
|
};
|
|
1988
1990
|
});
|
|
1989
|
-
const $ZodLiteral =
|
|
1991
|
+
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
1990
1992
|
$ZodType.init(inst, def);
|
|
1991
1993
|
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
1992
1994
|
const values = new Set(def.values);
|
|
@@ -2004,7 +2006,7 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
2004
2006
|
return payload;
|
|
2005
2007
|
};
|
|
2006
2008
|
});
|
|
2007
|
-
const $ZodTransform =
|
|
2009
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
2008
2010
|
$ZodType.init(inst, def);
|
|
2009
2011
|
inst._zod.optin = "optional";
|
|
2010
2012
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2028,12 +2030,12 @@ function handleOptionalResult(result, input) {
|
|
|
2028
2030
|
};
|
|
2029
2031
|
return result;
|
|
2030
2032
|
}
|
|
2031
|
-
const $ZodOptional =
|
|
2033
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
2032
2034
|
$ZodType.init(inst, def);
|
|
2033
2035
|
inst._zod.optin = "optional";
|
|
2034
2036
|
inst._zod.optout = "optional";
|
|
2035
2037
|
defineLazy(inst._zod, "values", () => {
|
|
2036
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
2038
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
|
|
2037
2039
|
});
|
|
2038
2040
|
defineLazy(inst._zod, "pattern", () => {
|
|
2039
2041
|
const pattern = def.innerType._zod.pattern;
|
|
@@ -2050,7 +2052,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2050
2052
|
return def.innerType._zod.run(payload, ctx);
|
|
2051
2053
|
};
|
|
2052
2054
|
});
|
|
2053
|
-
const $ZodExactOptional =
|
|
2055
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2054
2056
|
$ZodOptional.init(inst, def);
|
|
2055
2057
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2056
2058
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -2058,7 +2060,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
|
|
|
2058
2060
|
return def.innerType._zod.run(payload, ctx);
|
|
2059
2061
|
};
|
|
2060
2062
|
});
|
|
2061
|
-
const $ZodNullable =
|
|
2063
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
2062
2064
|
$ZodType.init(inst, def);
|
|
2063
2065
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2064
2066
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2067,14 +2069,14 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
|
|
|
2067
2069
|
return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
|
|
2068
2070
|
});
|
|
2069
2071
|
defineLazy(inst._zod, "values", () => {
|
|
2070
|
-
return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
|
|
2072
|
+
return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
|
|
2071
2073
|
});
|
|
2072
2074
|
inst._zod.parse = (payload, ctx) => {
|
|
2073
2075
|
if (payload.value === null) return payload;
|
|
2074
2076
|
return def.innerType._zod.run(payload, ctx);
|
|
2075
2077
|
};
|
|
2076
2078
|
});
|
|
2077
|
-
const $ZodDefault =
|
|
2079
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
2078
2080
|
$ZodType.init(inst, def);
|
|
2079
2081
|
inst._zod.optin = "optional";
|
|
2080
2082
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2096,7 +2098,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2096
2098
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2097
2099
|
return payload;
|
|
2098
2100
|
}
|
|
2099
|
-
const $ZodPrefault =
|
|
2101
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2100
2102
|
$ZodType.init(inst, def);
|
|
2101
2103
|
inst._zod.optin = "optional";
|
|
2102
2104
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2106,7 +2108,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
2106
2108
|
return def.innerType._zod.run(payload, ctx);
|
|
2107
2109
|
};
|
|
2108
2110
|
});
|
|
2109
|
-
const $ZodNonOptional =
|
|
2111
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2110
2112
|
$ZodType.init(inst, def);
|
|
2111
2113
|
defineLazy(inst._zod, "values", () => {
|
|
2112
2114
|
const v = def.innerType._zod.values;
|
|
@@ -2127,7 +2129,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
2127
2129
|
});
|
|
2128
2130
|
return payload;
|
|
2129
2131
|
}
|
|
2130
|
-
const $ZodCatch =
|
|
2132
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2131
2133
|
$ZodType.init(inst, def);
|
|
2132
2134
|
inst._zod.optin = "optional";
|
|
2133
2135
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2161,7 +2163,7 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2161
2163
|
return payload;
|
|
2162
2164
|
};
|
|
2163
2165
|
});
|
|
2164
|
-
const $ZodPipe =
|
|
2166
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2165
2167
|
$ZodType.init(inst, def);
|
|
2166
2168
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2167
2169
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -2189,7 +2191,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2189
2191
|
fallback: left.fallback
|
|
2190
2192
|
}, ctx);
|
|
2191
2193
|
}
|
|
2192
|
-
const $ZodReadonly =
|
|
2194
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2193
2195
|
$ZodType.init(inst, def);
|
|
2194
2196
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2195
2197
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2206,7 +2208,7 @@ function handleReadonlyResult(payload) {
|
|
|
2206
2208
|
payload.value = Object.freeze(payload.value);
|
|
2207
2209
|
return payload;
|
|
2208
2210
|
}
|
|
2209
|
-
const $ZodCustom =
|
|
2211
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2210
2212
|
$ZodCheck.init(inst, def);
|
|
2211
2213
|
$ZodType.init(inst, def);
|
|
2212
2214
|
inst._zod.parse = (payload, _) => {
|
|
@@ -2281,14 +2283,14 @@ function registry() {
|
|
|
2281
2283
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2282
2284
|
//#endregion
|
|
2283
2285
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2284
|
-
|
|
2286
|
+
// @__NO_SIDE_EFFECTS__
|
|
2285
2287
|
function _string(Class, params) {
|
|
2286
2288
|
return new Class({
|
|
2287
2289
|
type: "string",
|
|
2288
2290
|
...normalizeParams(params)
|
|
2289
2291
|
});
|
|
2290
2292
|
}
|
|
2291
|
-
|
|
2293
|
+
// @__NO_SIDE_EFFECTS__
|
|
2292
2294
|
function _email(Class, params) {
|
|
2293
2295
|
return new Class({
|
|
2294
2296
|
type: "string",
|
|
@@ -2298,7 +2300,7 @@ function _email(Class, params) {
|
|
|
2298
2300
|
...normalizeParams(params)
|
|
2299
2301
|
});
|
|
2300
2302
|
}
|
|
2301
|
-
|
|
2303
|
+
// @__NO_SIDE_EFFECTS__
|
|
2302
2304
|
function _guid(Class, params) {
|
|
2303
2305
|
return new Class({
|
|
2304
2306
|
type: "string",
|
|
@@ -2308,7 +2310,7 @@ function _guid(Class, params) {
|
|
|
2308
2310
|
...normalizeParams(params)
|
|
2309
2311
|
});
|
|
2310
2312
|
}
|
|
2311
|
-
|
|
2313
|
+
// @__NO_SIDE_EFFECTS__
|
|
2312
2314
|
function _uuid(Class, params) {
|
|
2313
2315
|
return new Class({
|
|
2314
2316
|
type: "string",
|
|
@@ -2318,7 +2320,7 @@ function _uuid(Class, params) {
|
|
|
2318
2320
|
...normalizeParams(params)
|
|
2319
2321
|
});
|
|
2320
2322
|
}
|
|
2321
|
-
|
|
2323
|
+
// @__NO_SIDE_EFFECTS__
|
|
2322
2324
|
function _uuidv4(Class, params) {
|
|
2323
2325
|
return new Class({
|
|
2324
2326
|
type: "string",
|
|
@@ -2329,7 +2331,7 @@ function _uuidv4(Class, params) {
|
|
|
2329
2331
|
...normalizeParams(params)
|
|
2330
2332
|
});
|
|
2331
2333
|
}
|
|
2332
|
-
|
|
2334
|
+
// @__NO_SIDE_EFFECTS__
|
|
2333
2335
|
function _uuidv6(Class, params) {
|
|
2334
2336
|
return new Class({
|
|
2335
2337
|
type: "string",
|
|
@@ -2340,7 +2342,7 @@ function _uuidv6(Class, params) {
|
|
|
2340
2342
|
...normalizeParams(params)
|
|
2341
2343
|
});
|
|
2342
2344
|
}
|
|
2343
|
-
|
|
2345
|
+
// @__NO_SIDE_EFFECTS__
|
|
2344
2346
|
function _uuidv7(Class, params) {
|
|
2345
2347
|
return new Class({
|
|
2346
2348
|
type: "string",
|
|
@@ -2351,7 +2353,7 @@ function _uuidv7(Class, params) {
|
|
|
2351
2353
|
...normalizeParams(params)
|
|
2352
2354
|
});
|
|
2353
2355
|
}
|
|
2354
|
-
|
|
2356
|
+
// @__NO_SIDE_EFFECTS__
|
|
2355
2357
|
function _url(Class, params) {
|
|
2356
2358
|
return new Class({
|
|
2357
2359
|
type: "string",
|
|
@@ -2361,7 +2363,7 @@ function _url(Class, params) {
|
|
|
2361
2363
|
...normalizeParams(params)
|
|
2362
2364
|
});
|
|
2363
2365
|
}
|
|
2364
|
-
|
|
2366
|
+
// @__NO_SIDE_EFFECTS__
|
|
2365
2367
|
function _emoji(Class, params) {
|
|
2366
2368
|
return new Class({
|
|
2367
2369
|
type: "string",
|
|
@@ -2371,7 +2373,7 @@ function _emoji(Class, params) {
|
|
|
2371
2373
|
...normalizeParams(params)
|
|
2372
2374
|
});
|
|
2373
2375
|
}
|
|
2374
|
-
|
|
2376
|
+
// @__NO_SIDE_EFFECTS__
|
|
2375
2377
|
function _nanoid(Class, params) {
|
|
2376
2378
|
return new Class({
|
|
2377
2379
|
type: "string",
|
|
@@ -2386,7 +2388,7 @@ function _nanoid(Class, params) {
|
|
|
2386
2388
|
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2387
2389
|
* See https://github.com/paralleldrive/cuid.
|
|
2388
2390
|
*/
|
|
2389
|
-
|
|
2391
|
+
// @__NO_SIDE_EFFECTS__
|
|
2390
2392
|
function _cuid(Class, params) {
|
|
2391
2393
|
return new Class({
|
|
2392
2394
|
type: "string",
|
|
@@ -2396,7 +2398,7 @@ function _cuid(Class, params) {
|
|
|
2396
2398
|
...normalizeParams(params)
|
|
2397
2399
|
});
|
|
2398
2400
|
}
|
|
2399
|
-
|
|
2401
|
+
// @__NO_SIDE_EFFECTS__
|
|
2400
2402
|
function _cuid2(Class, params) {
|
|
2401
2403
|
return new Class({
|
|
2402
2404
|
type: "string",
|
|
@@ -2406,7 +2408,7 @@ function _cuid2(Class, params) {
|
|
|
2406
2408
|
...normalizeParams(params)
|
|
2407
2409
|
});
|
|
2408
2410
|
}
|
|
2409
|
-
|
|
2411
|
+
// @__NO_SIDE_EFFECTS__
|
|
2410
2412
|
function _ulid(Class, params) {
|
|
2411
2413
|
return new Class({
|
|
2412
2414
|
type: "string",
|
|
@@ -2416,7 +2418,7 @@ function _ulid(Class, params) {
|
|
|
2416
2418
|
...normalizeParams(params)
|
|
2417
2419
|
});
|
|
2418
2420
|
}
|
|
2419
|
-
|
|
2421
|
+
// @__NO_SIDE_EFFECTS__
|
|
2420
2422
|
function _xid(Class, params) {
|
|
2421
2423
|
return new Class({
|
|
2422
2424
|
type: "string",
|
|
@@ -2426,7 +2428,7 @@ function _xid(Class, params) {
|
|
|
2426
2428
|
...normalizeParams(params)
|
|
2427
2429
|
});
|
|
2428
2430
|
}
|
|
2429
|
-
|
|
2431
|
+
// @__NO_SIDE_EFFECTS__
|
|
2430
2432
|
function _ksuid(Class, params) {
|
|
2431
2433
|
return new Class({
|
|
2432
2434
|
type: "string",
|
|
@@ -2436,7 +2438,7 @@ function _ksuid(Class, params) {
|
|
|
2436
2438
|
...normalizeParams(params)
|
|
2437
2439
|
});
|
|
2438
2440
|
}
|
|
2439
|
-
|
|
2441
|
+
// @__NO_SIDE_EFFECTS__
|
|
2440
2442
|
function _ipv4(Class, params) {
|
|
2441
2443
|
return new Class({
|
|
2442
2444
|
type: "string",
|
|
@@ -2446,7 +2448,7 @@ function _ipv4(Class, params) {
|
|
|
2446
2448
|
...normalizeParams(params)
|
|
2447
2449
|
});
|
|
2448
2450
|
}
|
|
2449
|
-
|
|
2451
|
+
// @__NO_SIDE_EFFECTS__
|
|
2450
2452
|
function _ipv6(Class, params) {
|
|
2451
2453
|
return new Class({
|
|
2452
2454
|
type: "string",
|
|
@@ -2456,7 +2458,7 @@ function _ipv6(Class, params) {
|
|
|
2456
2458
|
...normalizeParams(params)
|
|
2457
2459
|
});
|
|
2458
2460
|
}
|
|
2459
|
-
|
|
2461
|
+
// @__NO_SIDE_EFFECTS__
|
|
2460
2462
|
function _cidrv4(Class, params) {
|
|
2461
2463
|
return new Class({
|
|
2462
2464
|
type: "string",
|
|
@@ -2466,7 +2468,7 @@ function _cidrv4(Class, params) {
|
|
|
2466
2468
|
...normalizeParams(params)
|
|
2467
2469
|
});
|
|
2468
2470
|
}
|
|
2469
|
-
|
|
2471
|
+
// @__NO_SIDE_EFFECTS__
|
|
2470
2472
|
function _cidrv6(Class, params) {
|
|
2471
2473
|
return new Class({
|
|
2472
2474
|
type: "string",
|
|
@@ -2476,7 +2478,7 @@ function _cidrv6(Class, params) {
|
|
|
2476
2478
|
...normalizeParams(params)
|
|
2477
2479
|
});
|
|
2478
2480
|
}
|
|
2479
|
-
|
|
2481
|
+
// @__NO_SIDE_EFFECTS__
|
|
2480
2482
|
function _base64(Class, params) {
|
|
2481
2483
|
return new Class({
|
|
2482
2484
|
type: "string",
|
|
@@ -2486,7 +2488,7 @@ function _base64(Class, params) {
|
|
|
2486
2488
|
...normalizeParams(params)
|
|
2487
2489
|
});
|
|
2488
2490
|
}
|
|
2489
|
-
|
|
2491
|
+
// @__NO_SIDE_EFFECTS__
|
|
2490
2492
|
function _base64url(Class, params) {
|
|
2491
2493
|
return new Class({
|
|
2492
2494
|
type: "string",
|
|
@@ -2496,7 +2498,7 @@ function _base64url(Class, params) {
|
|
|
2496
2498
|
...normalizeParams(params)
|
|
2497
2499
|
});
|
|
2498
2500
|
}
|
|
2499
|
-
|
|
2501
|
+
// @__NO_SIDE_EFFECTS__
|
|
2500
2502
|
function _e164(Class, params) {
|
|
2501
2503
|
return new Class({
|
|
2502
2504
|
type: "string",
|
|
@@ -2506,7 +2508,7 @@ function _e164(Class, params) {
|
|
|
2506
2508
|
...normalizeParams(params)
|
|
2507
2509
|
});
|
|
2508
2510
|
}
|
|
2509
|
-
|
|
2511
|
+
// @__NO_SIDE_EFFECTS__
|
|
2510
2512
|
function _jwt(Class, params) {
|
|
2511
2513
|
return new Class({
|
|
2512
2514
|
type: "string",
|
|
@@ -2516,7 +2518,7 @@ function _jwt(Class, params) {
|
|
|
2516
2518
|
...normalizeParams(params)
|
|
2517
2519
|
});
|
|
2518
2520
|
}
|
|
2519
|
-
|
|
2521
|
+
// @__NO_SIDE_EFFECTS__
|
|
2520
2522
|
function _isoDateTime(Class, params) {
|
|
2521
2523
|
return new Class({
|
|
2522
2524
|
type: "string",
|
|
@@ -2528,7 +2530,7 @@ function _isoDateTime(Class, params) {
|
|
|
2528
2530
|
...normalizeParams(params)
|
|
2529
2531
|
});
|
|
2530
2532
|
}
|
|
2531
|
-
|
|
2533
|
+
// @__NO_SIDE_EFFECTS__
|
|
2532
2534
|
function _isoDate(Class, params) {
|
|
2533
2535
|
return new Class({
|
|
2534
2536
|
type: "string",
|
|
@@ -2537,7 +2539,7 @@ function _isoDate(Class, params) {
|
|
|
2537
2539
|
...normalizeParams(params)
|
|
2538
2540
|
});
|
|
2539
2541
|
}
|
|
2540
|
-
|
|
2542
|
+
// @__NO_SIDE_EFFECTS__
|
|
2541
2543
|
function _isoTime(Class, params) {
|
|
2542
2544
|
return new Class({
|
|
2543
2545
|
type: "string",
|
|
@@ -2547,7 +2549,7 @@ function _isoTime(Class, params) {
|
|
|
2547
2549
|
...normalizeParams(params)
|
|
2548
2550
|
});
|
|
2549
2551
|
}
|
|
2550
|
-
|
|
2552
|
+
// @__NO_SIDE_EFFECTS__
|
|
2551
2553
|
function _isoDuration(Class, params) {
|
|
2552
2554
|
return new Class({
|
|
2553
2555
|
type: "string",
|
|
@@ -2556,7 +2558,7 @@ function _isoDuration(Class, params) {
|
|
|
2556
2558
|
...normalizeParams(params)
|
|
2557
2559
|
});
|
|
2558
2560
|
}
|
|
2559
|
-
|
|
2561
|
+
// @__NO_SIDE_EFFECTS__
|
|
2560
2562
|
function _number(Class, params) {
|
|
2561
2563
|
return new Class({
|
|
2562
2564
|
type: "number",
|
|
@@ -2564,7 +2566,7 @@ function _number(Class, params) {
|
|
|
2564
2566
|
...normalizeParams(params)
|
|
2565
2567
|
});
|
|
2566
2568
|
}
|
|
2567
|
-
|
|
2569
|
+
// @__NO_SIDE_EFFECTS__
|
|
2568
2570
|
function _int(Class, params) {
|
|
2569
2571
|
return new Class({
|
|
2570
2572
|
type: "number",
|
|
@@ -2574,25 +2576,25 @@ function _int(Class, params) {
|
|
|
2574
2576
|
...normalizeParams(params)
|
|
2575
2577
|
});
|
|
2576
2578
|
}
|
|
2577
|
-
|
|
2579
|
+
// @__NO_SIDE_EFFECTS__
|
|
2578
2580
|
function _boolean(Class, params) {
|
|
2579
2581
|
return new Class({
|
|
2580
2582
|
type: "boolean",
|
|
2581
2583
|
...normalizeParams(params)
|
|
2582
2584
|
});
|
|
2583
2585
|
}
|
|
2584
|
-
|
|
2586
|
+
// @__NO_SIDE_EFFECTS__
|
|
2585
2587
|
function _unknown(Class) {
|
|
2586
2588
|
return new Class({ type: "unknown" });
|
|
2587
2589
|
}
|
|
2588
|
-
|
|
2590
|
+
// @__NO_SIDE_EFFECTS__
|
|
2589
2591
|
function _never(Class, params) {
|
|
2590
2592
|
return new Class({
|
|
2591
2593
|
type: "never",
|
|
2592
2594
|
...normalizeParams(params)
|
|
2593
2595
|
});
|
|
2594
2596
|
}
|
|
2595
|
-
|
|
2597
|
+
// @__NO_SIDE_EFFECTS__
|
|
2596
2598
|
function _lt(value, params) {
|
|
2597
2599
|
return new $ZodCheckLessThan({
|
|
2598
2600
|
check: "less_than",
|
|
@@ -2601,7 +2603,7 @@ function _lt(value, params) {
|
|
|
2601
2603
|
inclusive: false
|
|
2602
2604
|
});
|
|
2603
2605
|
}
|
|
2604
|
-
|
|
2606
|
+
// @__NO_SIDE_EFFECTS__
|
|
2605
2607
|
function _lte(value, params) {
|
|
2606
2608
|
return new $ZodCheckLessThan({
|
|
2607
2609
|
check: "less_than",
|
|
@@ -2610,7 +2612,7 @@ function _lte(value, params) {
|
|
|
2610
2612
|
inclusive: true
|
|
2611
2613
|
});
|
|
2612
2614
|
}
|
|
2613
|
-
|
|
2615
|
+
// @__NO_SIDE_EFFECTS__
|
|
2614
2616
|
function _gt(value, params) {
|
|
2615
2617
|
return new $ZodCheckGreaterThan({
|
|
2616
2618
|
check: "greater_than",
|
|
@@ -2619,7 +2621,7 @@ function _gt(value, params) {
|
|
|
2619
2621
|
inclusive: false
|
|
2620
2622
|
});
|
|
2621
2623
|
}
|
|
2622
|
-
|
|
2624
|
+
// @__NO_SIDE_EFFECTS__
|
|
2623
2625
|
function _gte(value, params) {
|
|
2624
2626
|
return new $ZodCheckGreaterThan({
|
|
2625
2627
|
check: "greater_than",
|
|
@@ -2628,7 +2630,7 @@ function _gte(value, params) {
|
|
|
2628
2630
|
inclusive: true
|
|
2629
2631
|
});
|
|
2630
2632
|
}
|
|
2631
|
-
|
|
2633
|
+
// @__NO_SIDE_EFFECTS__
|
|
2632
2634
|
function _multipleOf(value, params) {
|
|
2633
2635
|
return new $ZodCheckMultipleOf({
|
|
2634
2636
|
check: "multiple_of",
|
|
@@ -2636,7 +2638,7 @@ function _multipleOf(value, params) {
|
|
|
2636
2638
|
value
|
|
2637
2639
|
});
|
|
2638
2640
|
}
|
|
2639
|
-
|
|
2641
|
+
// @__NO_SIDE_EFFECTS__
|
|
2640
2642
|
function _maxLength(maximum, params) {
|
|
2641
2643
|
return new $ZodCheckMaxLength({
|
|
2642
2644
|
check: "max_length",
|
|
@@ -2644,7 +2646,7 @@ function _maxLength(maximum, params) {
|
|
|
2644
2646
|
maximum
|
|
2645
2647
|
});
|
|
2646
2648
|
}
|
|
2647
|
-
|
|
2649
|
+
// @__NO_SIDE_EFFECTS__
|
|
2648
2650
|
function _minLength(minimum, params) {
|
|
2649
2651
|
return new $ZodCheckMinLength({
|
|
2650
2652
|
check: "min_length",
|
|
@@ -2652,7 +2654,7 @@ function _minLength(minimum, params) {
|
|
|
2652
2654
|
minimum
|
|
2653
2655
|
});
|
|
2654
2656
|
}
|
|
2655
|
-
|
|
2657
|
+
// @__NO_SIDE_EFFECTS__
|
|
2656
2658
|
function _length(length, params) {
|
|
2657
2659
|
return new $ZodCheckLengthEquals({
|
|
2658
2660
|
check: "length_equals",
|
|
@@ -2660,7 +2662,7 @@ function _length(length, params) {
|
|
|
2660
2662
|
length
|
|
2661
2663
|
});
|
|
2662
2664
|
}
|
|
2663
|
-
|
|
2665
|
+
// @__NO_SIDE_EFFECTS__
|
|
2664
2666
|
function _regex(pattern, params) {
|
|
2665
2667
|
return new $ZodCheckRegex({
|
|
2666
2668
|
check: "string_format",
|
|
@@ -2669,7 +2671,7 @@ function _regex(pattern, params) {
|
|
|
2669
2671
|
pattern
|
|
2670
2672
|
});
|
|
2671
2673
|
}
|
|
2672
|
-
|
|
2674
|
+
// @__NO_SIDE_EFFECTS__
|
|
2673
2675
|
function _lowercase(params) {
|
|
2674
2676
|
return new $ZodCheckLowerCase({
|
|
2675
2677
|
check: "string_format",
|
|
@@ -2677,7 +2679,7 @@ function _lowercase(params) {
|
|
|
2677
2679
|
...normalizeParams(params)
|
|
2678
2680
|
});
|
|
2679
2681
|
}
|
|
2680
|
-
|
|
2682
|
+
// @__NO_SIDE_EFFECTS__
|
|
2681
2683
|
function _uppercase(params) {
|
|
2682
2684
|
return new $ZodCheckUpperCase({
|
|
2683
2685
|
check: "string_format",
|
|
@@ -2685,7 +2687,7 @@ function _uppercase(params) {
|
|
|
2685
2687
|
...normalizeParams(params)
|
|
2686
2688
|
});
|
|
2687
2689
|
}
|
|
2688
|
-
|
|
2690
|
+
// @__NO_SIDE_EFFECTS__
|
|
2689
2691
|
function _includes(includes, params) {
|
|
2690
2692
|
return new $ZodCheckIncludes({
|
|
2691
2693
|
check: "string_format",
|
|
@@ -2694,7 +2696,7 @@ function _includes(includes, params) {
|
|
|
2694
2696
|
includes
|
|
2695
2697
|
});
|
|
2696
2698
|
}
|
|
2697
|
-
|
|
2699
|
+
// @__NO_SIDE_EFFECTS__
|
|
2698
2700
|
function _startsWith(prefix, params) {
|
|
2699
2701
|
return new $ZodCheckStartsWith({
|
|
2700
2702
|
check: "string_format",
|
|
@@ -2703,7 +2705,7 @@ function _startsWith(prefix, params) {
|
|
|
2703
2705
|
prefix
|
|
2704
2706
|
});
|
|
2705
2707
|
}
|
|
2706
|
-
|
|
2708
|
+
// @__NO_SIDE_EFFECTS__
|
|
2707
2709
|
function _endsWith(suffix, params) {
|
|
2708
2710
|
return new $ZodCheckEndsWith({
|
|
2709
2711
|
check: "string_format",
|
|
@@ -2712,34 +2714,34 @@ function _endsWith(suffix, params) {
|
|
|
2712
2714
|
suffix
|
|
2713
2715
|
});
|
|
2714
2716
|
}
|
|
2715
|
-
|
|
2717
|
+
// @__NO_SIDE_EFFECTS__
|
|
2716
2718
|
function _overwrite(tx) {
|
|
2717
2719
|
return new $ZodCheckOverwrite({
|
|
2718
2720
|
check: "overwrite",
|
|
2719
2721
|
tx
|
|
2720
2722
|
});
|
|
2721
2723
|
}
|
|
2722
|
-
|
|
2724
|
+
// @__NO_SIDE_EFFECTS__
|
|
2723
2725
|
function _normalize(form) {
|
|
2724
2726
|
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2725
2727
|
}
|
|
2726
|
-
|
|
2728
|
+
// @__NO_SIDE_EFFECTS__
|
|
2727
2729
|
function _trim() {
|
|
2728
2730
|
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2729
2731
|
}
|
|
2730
|
-
|
|
2732
|
+
// @__NO_SIDE_EFFECTS__
|
|
2731
2733
|
function _toLowerCase() {
|
|
2732
2734
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2733
2735
|
}
|
|
2734
|
-
|
|
2736
|
+
// @__NO_SIDE_EFFECTS__
|
|
2735
2737
|
function _toUpperCase() {
|
|
2736
2738
|
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2737
2739
|
}
|
|
2738
|
-
|
|
2740
|
+
// @__NO_SIDE_EFFECTS__
|
|
2739
2741
|
function _slugify() {
|
|
2740
2742
|
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2741
2743
|
}
|
|
2742
|
-
|
|
2744
|
+
// @__NO_SIDE_EFFECTS__
|
|
2743
2745
|
function _array(Class, element, params) {
|
|
2744
2746
|
return new Class({
|
|
2745
2747
|
type: "array",
|
|
@@ -2747,7 +2749,7 @@ function _array(Class, element, params) {
|
|
|
2747
2749
|
...normalizeParams(params)
|
|
2748
2750
|
});
|
|
2749
2751
|
}
|
|
2750
|
-
|
|
2752
|
+
// @__NO_SIDE_EFFECTS__
|
|
2751
2753
|
function _refine(Class, fn, _params) {
|
|
2752
2754
|
return new Class({
|
|
2753
2755
|
type: "custom",
|
|
@@ -2756,7 +2758,7 @@ function _refine(Class, fn, _params) {
|
|
|
2756
2758
|
...normalizeParams(_params)
|
|
2757
2759
|
});
|
|
2758
2760
|
}
|
|
2759
|
-
|
|
2761
|
+
// @__NO_SIDE_EFFECTS__
|
|
2760
2762
|
function _superRefine(fn, params) {
|
|
2761
2763
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2762
2764
|
payload.addIssue = (issue$2) => {
|
|
@@ -2775,7 +2777,7 @@ function _superRefine(fn, params) {
|
|
|
2775
2777
|
}, params);
|
|
2776
2778
|
return ch;
|
|
2777
2779
|
}
|
|
2778
|
-
|
|
2780
|
+
// @__NO_SIDE_EFFECTS__
|
|
2779
2781
|
function _check(fn, params) {
|
|
2780
2782
|
const ch = new $ZodCheck({
|
|
2781
2783
|
check: "custom",
|
|
@@ -3133,7 +3135,6 @@ const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
|
3133
3135
|
const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
3134
3136
|
json.not = {};
|
|
3135
3137
|
};
|
|
3136
|
-
const unknownProcessor = (_schema, _ctx, _json, _params) => {};
|
|
3137
3138
|
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
3138
3139
|
const def = schema._zod.def;
|
|
3139
3140
|
const values = getEnumValues(def.entries);
|
|
@@ -3342,28 +3343,28 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
3342
3343
|
};
|
|
3343
3344
|
//#endregion
|
|
3344
3345
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3345
|
-
const ZodISODateTime =
|
|
3346
|
+
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3346
3347
|
$ZodISODateTime.init(inst, def);
|
|
3347
3348
|
ZodStringFormat.init(inst, def);
|
|
3348
3349
|
});
|
|
3349
3350
|
function datetime(params) {
|
|
3350
3351
|
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
3351
3352
|
}
|
|
3352
|
-
const ZodISODate =
|
|
3353
|
+
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
3353
3354
|
$ZodISODate.init(inst, def);
|
|
3354
3355
|
ZodStringFormat.init(inst, def);
|
|
3355
3356
|
});
|
|
3356
3357
|
function date(params) {
|
|
3357
3358
|
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
3358
3359
|
}
|
|
3359
|
-
const ZodISOTime =
|
|
3360
|
+
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
3360
3361
|
$ZodISOTime.init(inst, def);
|
|
3361
3362
|
ZodStringFormat.init(inst, def);
|
|
3362
3363
|
});
|
|
3363
3364
|
function time(params) {
|
|
3364
3365
|
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
3365
3366
|
}
|
|
3366
|
-
const ZodISODuration =
|
|
3367
|
+
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
3367
3368
|
$ZodISODuration.init(inst, def);
|
|
3368
3369
|
ZodStringFormat.init(inst, def);
|
|
3369
3370
|
});
|
|
@@ -3391,7 +3392,7 @@ const initializer = (inst, issues) => {
|
|
|
3391
3392
|
} }
|
|
3392
3393
|
});
|
|
3393
3394
|
};
|
|
3394
|
-
const ZodRealError =
|
|
3395
|
+
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3395
3396
|
//#endregion
|
|
3396
3397
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3397
3398
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -3444,7 +3445,7 @@ function _installLazyMethods(inst, group, methods) {
|
|
|
3444
3445
|
});
|
|
3445
3446
|
}
|
|
3446
3447
|
}
|
|
3447
|
-
const ZodType =
|
|
3448
|
+
const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3448
3449
|
$ZodType.init(inst, def);
|
|
3449
3450
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3450
3451
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -3570,7 +3571,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3570
3571
|
return inst;
|
|
3571
3572
|
});
|
|
3572
3573
|
/** @internal */
|
|
3573
|
-
const _ZodString =
|
|
3574
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3574
3575
|
$ZodString.init(inst, def);
|
|
3575
3576
|
ZodType.init(inst, def);
|
|
3576
3577
|
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
@@ -3626,7 +3627,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
3626
3627
|
}
|
|
3627
3628
|
});
|
|
3628
3629
|
});
|
|
3629
|
-
const ZodString =
|
|
3630
|
+
const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3630
3631
|
$ZodString.init(inst, def);
|
|
3631
3632
|
_ZodString.init(inst, def);
|
|
3632
3633
|
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
@@ -3660,31 +3661,31 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
3660
3661
|
function string(params) {
|
|
3661
3662
|
return /* @__PURE__ */ _string(ZodString, params);
|
|
3662
3663
|
}
|
|
3663
|
-
const ZodStringFormat =
|
|
3664
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3664
3665
|
$ZodStringFormat.init(inst, def);
|
|
3665
3666
|
_ZodString.init(inst, def);
|
|
3666
3667
|
});
|
|
3667
|
-
const ZodEmail =
|
|
3668
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3668
3669
|
$ZodEmail.init(inst, def);
|
|
3669
3670
|
ZodStringFormat.init(inst, def);
|
|
3670
3671
|
});
|
|
3671
|
-
const ZodGUID =
|
|
3672
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
3672
3673
|
$ZodGUID.init(inst, def);
|
|
3673
3674
|
ZodStringFormat.init(inst, def);
|
|
3674
3675
|
});
|
|
3675
|
-
const ZodUUID =
|
|
3676
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
3676
3677
|
$ZodUUID.init(inst, def);
|
|
3677
3678
|
ZodStringFormat.init(inst, def);
|
|
3678
3679
|
});
|
|
3679
|
-
const ZodURL =
|
|
3680
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
3680
3681
|
$ZodURL.init(inst, def);
|
|
3681
3682
|
ZodStringFormat.init(inst, def);
|
|
3682
3683
|
});
|
|
3683
|
-
const ZodEmoji =
|
|
3684
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
3684
3685
|
$ZodEmoji.init(inst, def);
|
|
3685
3686
|
ZodStringFormat.init(inst, def);
|
|
3686
3687
|
});
|
|
3687
|
-
const ZodNanoID =
|
|
3688
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
3688
3689
|
$ZodNanoID.init(inst, def);
|
|
3689
3690
|
ZodStringFormat.init(inst, def);
|
|
3690
3691
|
});
|
|
@@ -3693,59 +3694,59 @@ const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
|
3693
3694
|
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
3694
3695
|
* See https://github.com/paralleldrive/cuid.
|
|
3695
3696
|
*/
|
|
3696
|
-
const ZodCUID =
|
|
3697
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
3697
3698
|
$ZodCUID.init(inst, def);
|
|
3698
3699
|
ZodStringFormat.init(inst, def);
|
|
3699
3700
|
});
|
|
3700
|
-
const ZodCUID2 =
|
|
3701
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
3701
3702
|
$ZodCUID2.init(inst, def);
|
|
3702
3703
|
ZodStringFormat.init(inst, def);
|
|
3703
3704
|
});
|
|
3704
|
-
const ZodULID =
|
|
3705
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
3705
3706
|
$ZodULID.init(inst, def);
|
|
3706
3707
|
ZodStringFormat.init(inst, def);
|
|
3707
3708
|
});
|
|
3708
|
-
const ZodXID =
|
|
3709
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
3709
3710
|
$ZodXID.init(inst, def);
|
|
3710
3711
|
ZodStringFormat.init(inst, def);
|
|
3711
3712
|
});
|
|
3712
|
-
const ZodKSUID =
|
|
3713
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
3713
3714
|
$ZodKSUID.init(inst, def);
|
|
3714
3715
|
ZodStringFormat.init(inst, def);
|
|
3715
3716
|
});
|
|
3716
|
-
const ZodIPv4 =
|
|
3717
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
3717
3718
|
$ZodIPv4.init(inst, def);
|
|
3718
3719
|
ZodStringFormat.init(inst, def);
|
|
3719
3720
|
});
|
|
3720
|
-
const ZodIPv6 =
|
|
3721
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
3721
3722
|
$ZodIPv6.init(inst, def);
|
|
3722
3723
|
ZodStringFormat.init(inst, def);
|
|
3723
3724
|
});
|
|
3724
|
-
const ZodCIDRv4 =
|
|
3725
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
3725
3726
|
$ZodCIDRv4.init(inst, def);
|
|
3726
3727
|
ZodStringFormat.init(inst, def);
|
|
3727
3728
|
});
|
|
3728
|
-
const ZodCIDRv6 =
|
|
3729
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
3729
3730
|
$ZodCIDRv6.init(inst, def);
|
|
3730
3731
|
ZodStringFormat.init(inst, def);
|
|
3731
3732
|
});
|
|
3732
|
-
const ZodBase64 =
|
|
3733
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
3733
3734
|
$ZodBase64.init(inst, def);
|
|
3734
3735
|
ZodStringFormat.init(inst, def);
|
|
3735
3736
|
});
|
|
3736
|
-
const ZodBase64URL =
|
|
3737
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
3737
3738
|
$ZodBase64URL.init(inst, def);
|
|
3738
3739
|
ZodStringFormat.init(inst, def);
|
|
3739
3740
|
});
|
|
3740
|
-
const ZodE164 =
|
|
3741
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
3741
3742
|
$ZodE164.init(inst, def);
|
|
3742
3743
|
ZodStringFormat.init(inst, def);
|
|
3743
3744
|
});
|
|
3744
|
-
const ZodJWT =
|
|
3745
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
3745
3746
|
$ZodJWT.init(inst, def);
|
|
3746
3747
|
ZodStringFormat.init(inst, def);
|
|
3747
3748
|
});
|
|
3748
|
-
const ZodNumber =
|
|
3749
|
+
const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
3749
3750
|
$ZodNumber.init(inst, def);
|
|
3750
3751
|
ZodType.init(inst, def);
|
|
3751
3752
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
@@ -3806,14 +3807,14 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
3806
3807
|
function number(params) {
|
|
3807
3808
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
3808
3809
|
}
|
|
3809
|
-
const ZodNumberFormat =
|
|
3810
|
+
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
3810
3811
|
$ZodNumberFormat.init(inst, def);
|
|
3811
3812
|
ZodNumber.init(inst, def);
|
|
3812
3813
|
});
|
|
3813
3814
|
function int(params) {
|
|
3814
3815
|
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
3815
3816
|
}
|
|
3816
|
-
const ZodBoolean =
|
|
3817
|
+
const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
3817
3818
|
$ZodBoolean.init(inst, def);
|
|
3818
3819
|
ZodType.init(inst, def);
|
|
3819
3820
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
@@ -3821,15 +3822,15 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
3821
3822
|
function boolean(params) {
|
|
3822
3823
|
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
3823
3824
|
}
|
|
3824
|
-
const ZodUnknown =
|
|
3825
|
+
const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
3825
3826
|
$ZodUnknown.init(inst, def);
|
|
3826
3827
|
ZodType.init(inst, def);
|
|
3827
|
-
inst._zod.processJSONSchema = (ctx, json, params) =>
|
|
3828
|
+
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
3828
3829
|
});
|
|
3829
3830
|
function unknown() {
|
|
3830
3831
|
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
3831
3832
|
}
|
|
3832
|
-
const ZodNever =
|
|
3833
|
+
const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
3833
3834
|
$ZodNever.init(inst, def);
|
|
3834
3835
|
ZodType.init(inst, def);
|
|
3835
3836
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
@@ -3837,7 +3838,7 @@ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
3837
3838
|
function never(params) {
|
|
3838
3839
|
return /* @__PURE__ */ _never(ZodNever, params);
|
|
3839
3840
|
}
|
|
3840
|
-
const ZodArray =
|
|
3841
|
+
const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
3841
3842
|
$ZodArray.init(inst, def);
|
|
3842
3843
|
ZodType.init(inst, def);
|
|
3843
3844
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
@@ -3863,7 +3864,7 @@ const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
3863
3864
|
function array(element, params) {
|
|
3864
3865
|
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
3865
3866
|
}
|
|
3866
|
-
const ZodObject =
|
|
3867
|
+
const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
3867
3868
|
$ZodObjectJIT.init(inst, def);
|
|
3868
3869
|
ZodType.init(inst, def);
|
|
3869
3870
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -3935,7 +3936,7 @@ function strictObject(shape, params) {
|
|
|
3935
3936
|
...normalizeParams(params)
|
|
3936
3937
|
});
|
|
3937
3938
|
}
|
|
3938
|
-
const ZodUnion =
|
|
3939
|
+
const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
3939
3940
|
$ZodUnion.init(inst, def);
|
|
3940
3941
|
ZodType.init(inst, def);
|
|
3941
3942
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -3948,7 +3949,7 @@ function union(options, params) {
|
|
|
3948
3949
|
...normalizeParams(params)
|
|
3949
3950
|
});
|
|
3950
3951
|
}
|
|
3951
|
-
const ZodIntersection =
|
|
3952
|
+
const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
3952
3953
|
$ZodIntersection.init(inst, def);
|
|
3953
3954
|
ZodType.init(inst, def);
|
|
3954
3955
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -3960,7 +3961,7 @@ function intersection(left, right) {
|
|
|
3960
3961
|
right
|
|
3961
3962
|
});
|
|
3962
3963
|
}
|
|
3963
|
-
const ZodRecord =
|
|
3964
|
+
const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
3964
3965
|
$ZodRecord.init(inst, def);
|
|
3965
3966
|
ZodType.init(inst, def);
|
|
3966
3967
|
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
@@ -3981,7 +3982,7 @@ function record(keyType, valueType, params) {
|
|
|
3981
3982
|
...normalizeParams(params)
|
|
3982
3983
|
});
|
|
3983
3984
|
}
|
|
3984
|
-
const ZodEnum =
|
|
3985
|
+
const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
3985
3986
|
$ZodEnum.init(inst, def);
|
|
3986
3987
|
ZodType.init(inst, def);
|
|
3987
3988
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -4012,13 +4013,14 @@ const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
|
4012
4013
|
};
|
|
4013
4014
|
});
|
|
4014
4015
|
function _enum(values, params) {
|
|
4016
|
+
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
4015
4017
|
return new ZodEnum({
|
|
4016
4018
|
type: "enum",
|
|
4017
|
-
entries
|
|
4019
|
+
entries,
|
|
4018
4020
|
...normalizeParams(params)
|
|
4019
4021
|
});
|
|
4020
4022
|
}
|
|
4021
|
-
const ZodLiteral =
|
|
4023
|
+
const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
4022
4024
|
$ZodLiteral.init(inst, def);
|
|
4023
4025
|
ZodType.init(inst, def);
|
|
4024
4026
|
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
@@ -4035,7 +4037,7 @@ function literal(value, params) {
|
|
|
4035
4037
|
...normalizeParams(params)
|
|
4036
4038
|
});
|
|
4037
4039
|
}
|
|
4038
|
-
const ZodTransform =
|
|
4040
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
4039
4041
|
$ZodTransform.init(inst, def);
|
|
4040
4042
|
ZodType.init(inst, def);
|
|
4041
4043
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -4069,7 +4071,7 @@ function transform(fn) {
|
|
|
4069
4071
|
transform: fn
|
|
4070
4072
|
});
|
|
4071
4073
|
}
|
|
4072
|
-
const ZodOptional =
|
|
4074
|
+
const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
4073
4075
|
$ZodOptional.init(inst, def);
|
|
4074
4076
|
ZodType.init(inst, def);
|
|
4075
4077
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4081,7 +4083,7 @@ function optional(innerType) {
|
|
|
4081
4083
|
innerType
|
|
4082
4084
|
});
|
|
4083
4085
|
}
|
|
4084
|
-
const ZodExactOptional =
|
|
4086
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
4085
4087
|
$ZodExactOptional.init(inst, def);
|
|
4086
4088
|
ZodType.init(inst, def);
|
|
4087
4089
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4093,7 +4095,7 @@ function exactOptional(innerType) {
|
|
|
4093
4095
|
innerType
|
|
4094
4096
|
});
|
|
4095
4097
|
}
|
|
4096
|
-
const ZodNullable =
|
|
4098
|
+
const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
4097
4099
|
$ZodNullable.init(inst, def);
|
|
4098
4100
|
ZodType.init(inst, def);
|
|
4099
4101
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -4105,7 +4107,7 @@ function nullable(innerType) {
|
|
|
4105
4107
|
innerType
|
|
4106
4108
|
});
|
|
4107
4109
|
}
|
|
4108
|
-
const ZodDefault =
|
|
4110
|
+
const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
4109
4111
|
$ZodDefault.init(inst, def);
|
|
4110
4112
|
ZodType.init(inst, def);
|
|
4111
4113
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -4121,7 +4123,7 @@ function _default(innerType, defaultValue) {
|
|
|
4121
4123
|
}
|
|
4122
4124
|
});
|
|
4123
4125
|
}
|
|
4124
|
-
const ZodPrefault =
|
|
4126
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
4125
4127
|
$ZodPrefault.init(inst, def);
|
|
4126
4128
|
ZodType.init(inst, def);
|
|
4127
4129
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -4136,7 +4138,7 @@ function prefault(innerType, defaultValue) {
|
|
|
4136
4138
|
}
|
|
4137
4139
|
});
|
|
4138
4140
|
}
|
|
4139
|
-
const ZodNonOptional =
|
|
4141
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
4140
4142
|
$ZodNonOptional.init(inst, def);
|
|
4141
4143
|
ZodType.init(inst, def);
|
|
4142
4144
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -4149,7 +4151,7 @@ function nonoptional(innerType, params) {
|
|
|
4149
4151
|
...normalizeParams(params)
|
|
4150
4152
|
});
|
|
4151
4153
|
}
|
|
4152
|
-
const ZodCatch =
|
|
4154
|
+
const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
4153
4155
|
$ZodCatch.init(inst, def);
|
|
4154
4156
|
ZodType.init(inst, def);
|
|
4155
4157
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -4163,7 +4165,7 @@ function _catch(innerType, catchValue) {
|
|
|
4163
4165
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4164
4166
|
});
|
|
4165
4167
|
}
|
|
4166
|
-
const ZodPipe =
|
|
4168
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4167
4169
|
$ZodPipe.init(inst, def);
|
|
4168
4170
|
ZodType.init(inst, def);
|
|
4169
4171
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -4177,7 +4179,7 @@ function pipe(in_, out) {
|
|
|
4177
4179
|
out
|
|
4178
4180
|
});
|
|
4179
4181
|
}
|
|
4180
|
-
const ZodReadonly =
|
|
4182
|
+
const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4181
4183
|
$ZodReadonly.init(inst, def);
|
|
4182
4184
|
ZodType.init(inst, def);
|
|
4183
4185
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -4189,7 +4191,7 @@ function readonly(innerType) {
|
|
|
4189
4191
|
innerType
|
|
4190
4192
|
});
|
|
4191
4193
|
}
|
|
4192
|
-
const ZodCustom =
|
|
4194
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4193
4195
|
$ZodCustom.init(inst, def);
|
|
4194
4196
|
ZodType.init(inst, def);
|
|
4195
4197
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|