sunpeak 0.16.29 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/dev.mjs +169 -342
- package/bin/commands/inspect.mjs +763 -0
- package/bin/commands/new.mjs +2 -2
- package/bin/lib/inspect/inspect-config.d.mts +20 -0
- package/bin/lib/inspect/inspect-config.mjs +76 -0
- package/bin/lib/live/global-setup.mjs +6 -1
- package/bin/sunpeak.js +11 -1
- package/dist/chatgpt/globals.css +8 -0
- package/dist/chatgpt/index.cjs +3 -11
- package/dist/chatgpt/index.cjs.map +1 -1
- package/dist/chatgpt/index.d.ts +2 -2
- package/dist/chatgpt/index.js +4 -8
- package/dist/chatgpt/index.js.map +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/discovery-Cgoegt62.js +114 -0
- package/dist/discovery-Cgoegt62.js.map +1 -0
- package/dist/discovery-Clu4uHp1.cjs +161 -0
- package/dist/discovery-Clu4uHp1.cjs.map +1 -0
- package/dist/index.cjs +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/discovery-cli.cjs +1 -1
- package/dist/lib/discovery-cli.js +1 -1
- package/dist/lib/discovery.d.ts +7 -67
- package/dist/lib/index.d.ts +0 -1
- package/dist/mcp/index.cjs +34 -23
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +34 -23
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/types.d.ts +5 -0
- package/dist/simulator/index.cjs +5 -11
- package/dist/simulator/index.cjs.map +1 -1
- package/dist/simulator/index.d.ts +4 -2
- package/dist/simulator/index.js +5 -8
- package/dist/simulator/index.js.map +1 -1
- package/dist/simulator/simple-sidebar.d.ts +7 -4
- package/dist/simulator/simulator-url.d.ts +8 -0
- package/dist/simulator/simulator.d.ts +15 -2
- package/dist/simulator/use-mcp-connection.d.ts +19 -0
- package/dist/{simulator-DIVvI69i.cjs → simulator-CH9hs0N6.cjs} +129 -21
- package/dist/simulator-CH9hs0N6.cjs.map +1 -0
- package/dist/{simulator-C7mkK7Sz.js → simulator-Dl8B-Ljb.js} +124 -22
- package/dist/simulator-Dl8B-Ljb.js.map +1 -0
- package/dist/{simulator-url-BDGD4vZD.cjs → simulator-url-CozKF1jf.cjs} +3 -1
- package/dist/simulator-url-CozKF1jf.cjs.map +1 -0
- package/dist/{simulator-url-Bkxj43yT.js → simulator-url-KoS_ToP6.js} +3 -1
- package/dist/simulator-url-KoS_ToP6.js.map +1 -0
- package/dist/style.css +8 -0
- package/package.json +11 -3
- package/template/dist/albums/albums.html +105 -0
- package/template/dist/albums/albums.json +16 -0
- package/template/dist/carousel/carousel.html +105 -0
- package/template/dist/carousel/carousel.json +16 -0
- package/template/dist/map/map.html +3060 -0
- package/template/dist/map/map.json +22 -0
- package/template/dist/review/review.html +105 -0
- package/template/dist/review/review.json +16 -0
- package/template/dist/server.js +15 -0
- package/template/dist/tools/review-diff.js +50 -0
- package/template/dist/tools/review-post.js +50 -0
- package/template/dist/tools/review-purchase.js +61 -0
- package/template/dist/tools/review.js +31 -0
- package/template/dist/tools/show-albums.js +56 -0
- package/template/dist/tools/show-carousel.js +41 -0
- package/template/dist/tools/show-map.js +47 -0
- package/template/node_modules/.vite/deps/_metadata.json +8 -0
- package/template/node_modules/.vite/deps/package.json +3 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +500 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +563 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +575 -0
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/@testing-library_react.js +11363 -0
- package/template/node_modules/.vite-mcp/deps/@testing-library_react.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/_metadata.json +130 -0
- package/template/node_modules/.vite-mcp/deps/chunk-BoAXSpZd.js +33 -0
- package/template/node_modules/.vite-mcp/deps/client-CU1wWud4.js +14385 -0
- package/template/node_modules/.vite-mcp/deps/client-CU1wWud4.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/clsx.js +18 -0
- package/template/node_modules/.vite-mcp/deps/clsx.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/dist-uWX8WbjY.js +505 -0
- package/template/node_modules/.vite-mcp/deps/dist-uWX8WbjY.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js +1461 -0
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/embla-carousel-wheel-gestures.js +536 -0
- package/template/node_modules/.vite-mcp/deps/embla-carousel-wheel-gestures.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/magic-string.es-Cklsmr-5.js +1013 -0
- package/template/node_modules/.vite-mcp/deps/magic-string.es-Cklsmr-5.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +46311 -0
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/package.json +3 -0
- package/template/node_modules/.vite-mcp/deps/protocol-CTflwIfG.js +2090 -0
- package/template/node_modules/.vite-mcp/deps/protocol-CTflwIfG.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/react-dom.js +186 -0
- package/template/node_modules/.vite-mcp/deps/react-dom.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/react-dom_client.js +2 -0
- package/template/node_modules/.vite-mcp/deps/react.js +769 -0
- package/template/node_modules/.vite-mcp/deps/react.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/react_jsx-dev-runtime.js +205 -0
- package/template/node_modules/.vite-mcp/deps/react_jsx-dev-runtime.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/react_jsx-runtime.js +209 -0
- package/template/node_modules/.vite-mcp/deps/react_jsx-runtime.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/schemas-NsgmY9QV.js +12157 -0
- package/template/node_modules/.vite-mcp/deps/schemas-NsgmY9QV.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/tailwind-merge.js +2025 -0
- package/template/node_modules/.vite-mcp/deps/tailwind-merge.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/vitest.js +14021 -0
- package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -0
- package/template/node_modules/.vite-mcp/deps/zod.js +624 -0
- package/template/node_modules/.vite-mcp/deps/zod.js.map +1 -0
- package/template/src/tools/review-diff.test.ts +5 -1
- package/template/src/tools/review-diff.ts +1 -1
- package/template/src/tools/review-post.test.ts +5 -1
- package/template/src/tools/review-post.ts +1 -1
- package/template/src/tools/review-purchase.test.ts +5 -1
- package/template/src/tools/review-purchase.ts +1 -1
- package/template/src/tools/review.test.ts +5 -1
- package/template/src/tools/review.ts +1 -1
- package/template/src/tools/show-albums.test.ts +5 -1
- package/template/src/tools/show-albums.ts +1 -1
- package/template/src/tools/show-carousel.test.ts +5 -1
- package/template/src/tools/show-carousel.ts +1 -1
- package/template/src/tools/show-map.test.ts +5 -1
- package/template/src/tools/show-map.ts +1 -1
- package/dist/discovery-BxKCIgG5.cjs +0 -332
- package/dist/discovery-BxKCIgG5.cjs.map +0 -1
- package/dist/discovery-Du4LHrih.js +0 -261
- package/dist/discovery-Du4LHrih.js.map +0 -1
- package/dist/simulator-C7mkK7Sz.js.map +0 -1
- package/dist/simulator-DIVvI69i.cjs.map +0 -1
- package/dist/simulator-url-BDGD4vZD.cjs.map +0 -1
- package/dist/simulator-url-Bkxj43yT.js.map +0 -1
- package/template/.sunpeak/dev.tsx +0 -79
- package/template/.sunpeak/resource-loader.html +0 -20
- package/template/.sunpeak/resource-loader.tsx +0 -57
- package/template/index.html +0 -14
- package/template/src/resources/index.ts +0 -17
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { n as __exportAll } from "./chunk-BoAXSpZd.js";
|
|
2
|
+
import { $ as ZodStringFormat, $n as uuidv6, $r as _regex, $t as int32, A as ZodJWT, An as readonly, Ar as _coercedNumber, At as check, B as ZodNull, Bn as superRefine, Br as _maxLength, Bt as e164, C as ZodExactOptional, Ci as config, Cn as object, Cr as checks_exports, Ct as _void, D as ZodIPv4, Dn as prefault, Dr as _coercedBigint, Dt as base64url, E as ZodGUID, En as pipe, Er as TimePrecision, Et as base64, F as ZodMap, Fn as strictObject, Fr as _includes, Ft as cuid2, G as ZodOptional, Gn as uint32, Gr as _multipleOf, Gt as float32, H as ZodNumber, Hn as templateLiteral, Hr as _mime, Ht as emoji, I as ZodNaN, In as string, Ir as _length, It as custom, J as ZodPromise, Jn as union, Jr as _nonpositive, Jt as hash, K as ZodPipe, Kn as uint64, Kr as _negative, Kt as float64, L as ZodNanoID, Ln as stringFormat, Lr as _lowercase, Lt as date, M as ZodLazy, Mn as refine, Mr as _endsWith, Mt as cidrv6, N as ZodLiteral, Nn as schemas_exports, Nr as _gt, Nt as codec, O as ZodIPv6, On as preprocess, Or as _coercedBoolean, Ot as bigint, P as ZodMAC, Pn as set, Pr as _gte, Pt as cuid, Q as ZodString, Qn as uuidv4, Qr as _property, Qt as int, R as ZodNever, Rn as stringbool, Rr as _lt, Rt as describe, S as ZodEnum, Si as NEVER, Sn as number, Sr as iso_exports, St as _undefined, T as ZodFunction, Tn as partialRecord, Tr as toJSONSchema, Tt as array, U as ZodNumberFormat, Un as transform, Ur as _minLength, Ut as exactOptional, V as ZodNullable, Vn as symbol, Vr as _maxSize, Vt as email, W as ZodObject, Wn as tuple, Wr as _minSize, Wt as file, X as ZodRecord, Xn as url, Xr as _overwrite, Xt as hostname, Y as ZodReadonly, Yn as unknown, Yr as _normalize, Yt as hex, Z as ZodSet, Zn as uuid, Zr as _positive, Zt as httpUrl, _ as ZodDefault, _i as prettifyError, _n as nativeEnum, _r as ZodISODate, _t as _default, a as ZodBigInt, ai as _trim, an as jwt, ar as encode, at as ZodType, b as ZodEmail, bi as util_exports, bn as nullable, br as ZodISOTime, bt as _instanceof, c as ZodCIDRv4, ci as $output, cn as lazy, cr as parseAsync, ct as ZodUUID, d as ZodCUID2, di as locales_exports, dn as looseRecord, dr as safeEncode, dt as ZodUnknown, ei as _size, en as int64, er as uuidv7, et as ZodSuccess, f as ZodCatch, fi as en_default, fn as mac, fr as safeEncodeAsync, ft as ZodVoid, g as ZodDate, gi as formatError, gn as nanoid, gr as ZodRealError, gt as _catch, h as ZodCustomStringFormat, hi as flattenError, hn as nan, hr as ZodError, ht as _ZodString, i as ZodBase64URL, ii as _toUpperCase, in as json, ir as decodeAsync, it as ZodTuple, j as ZodKSUID, jn as record, jr as _coercedString, jt as cidrv4, k as ZodIntersection, kn as promise, kr as _coercedDate, kt as boolean, l as ZodCIDRv6, li as globalRegistry, ln as literal, lr as safeDecode, lt as ZodUndefined, m as ZodCustom, mn as meta, mr as safeParseAsync, mt as ZodXor, n as ZodArray, ni as _startsWith, nn as ipv4, nr as xor, nt as ZodTemplateLiteral, o as ZodBigIntFormat, oi as _uppercase, on as keyof, or as encodeAsync, ot as ZodULID, p as ZodCodec, pi as regexes_exports, pn as map, pr as safeParse, pt as ZodXID, q as ZodPrefault, qn as ulid, qr as _nonnegative, qt as guid, r as ZodBase64, ri as _toLowerCase, rn as ipv6, rr as decode, rt as ZodTransform, s as ZodBoolean, si as $input, sn as ksuid, sr as parse, st as ZodURL, t as ZodAny, ti as _slugify, tn as intersection, tr as xid, tt as ZodSymbol, u as ZodCUID, ui as registry, un as looseObject, ur as safeDecodeAsync, ut as ZodUnion, v as ZodDiscriminatedUnion, vi as treeifyError, vn as never, vr as ZodISODateTime, vt as _enum, w as ZodFile, wn as optional, wr as core_exports, wt as any, x as ZodEmoji, xi as $brand, xn as nullish, xt as _null, y as ZodE164, yi as clone, yn as nonoptional, yr as ZodISODuration, yt as _function, z as ZodNonOptional, zn as success, zr as _lte, zt as discriminatedUnion } from "./schemas-NsgmY9QV.js";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
4
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
5
|
+
var ZodIssueCode = {
|
|
6
|
+
invalid_type: "invalid_type",
|
|
7
|
+
too_big: "too_big",
|
|
8
|
+
too_small: "too_small",
|
|
9
|
+
invalid_format: "invalid_format",
|
|
10
|
+
not_multiple_of: "not_multiple_of",
|
|
11
|
+
unrecognized_keys: "unrecognized_keys",
|
|
12
|
+
invalid_union: "invalid_union",
|
|
13
|
+
invalid_key: "invalid_key",
|
|
14
|
+
invalid_element: "invalid_element",
|
|
15
|
+
invalid_value: "invalid_value",
|
|
16
|
+
custom: "custom"
|
|
17
|
+
};
|
|
18
|
+
/** @deprecated Use `z.config(params)` instead. */
|
|
19
|
+
function setErrorMap(map) {
|
|
20
|
+
config({ customError: map });
|
|
21
|
+
}
|
|
22
|
+
/** @deprecated Use `z.config()` instead. */
|
|
23
|
+
function getErrorMap() {
|
|
24
|
+
return config().customError;
|
|
25
|
+
}
|
|
26
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
27
|
+
var ZodFirstPartyTypeKind;
|
|
28
|
+
(function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
31
|
+
var z = {
|
|
32
|
+
...schemas_exports,
|
|
33
|
+
...checks_exports,
|
|
34
|
+
iso: iso_exports
|
|
35
|
+
};
|
|
36
|
+
var RECOGNIZED_KEYS = new Set([
|
|
37
|
+
"$schema",
|
|
38
|
+
"$ref",
|
|
39
|
+
"$defs",
|
|
40
|
+
"definitions",
|
|
41
|
+
"$id",
|
|
42
|
+
"id",
|
|
43
|
+
"$comment",
|
|
44
|
+
"$anchor",
|
|
45
|
+
"$vocabulary",
|
|
46
|
+
"$dynamicRef",
|
|
47
|
+
"$dynamicAnchor",
|
|
48
|
+
"type",
|
|
49
|
+
"enum",
|
|
50
|
+
"const",
|
|
51
|
+
"anyOf",
|
|
52
|
+
"oneOf",
|
|
53
|
+
"allOf",
|
|
54
|
+
"not",
|
|
55
|
+
"properties",
|
|
56
|
+
"required",
|
|
57
|
+
"additionalProperties",
|
|
58
|
+
"patternProperties",
|
|
59
|
+
"propertyNames",
|
|
60
|
+
"minProperties",
|
|
61
|
+
"maxProperties",
|
|
62
|
+
"items",
|
|
63
|
+
"prefixItems",
|
|
64
|
+
"additionalItems",
|
|
65
|
+
"minItems",
|
|
66
|
+
"maxItems",
|
|
67
|
+
"uniqueItems",
|
|
68
|
+
"contains",
|
|
69
|
+
"minContains",
|
|
70
|
+
"maxContains",
|
|
71
|
+
"minLength",
|
|
72
|
+
"maxLength",
|
|
73
|
+
"pattern",
|
|
74
|
+
"format",
|
|
75
|
+
"minimum",
|
|
76
|
+
"maximum",
|
|
77
|
+
"exclusiveMinimum",
|
|
78
|
+
"exclusiveMaximum",
|
|
79
|
+
"multipleOf",
|
|
80
|
+
"description",
|
|
81
|
+
"default",
|
|
82
|
+
"contentEncoding",
|
|
83
|
+
"contentMediaType",
|
|
84
|
+
"contentSchema",
|
|
85
|
+
"unevaluatedItems",
|
|
86
|
+
"unevaluatedProperties",
|
|
87
|
+
"if",
|
|
88
|
+
"then",
|
|
89
|
+
"else",
|
|
90
|
+
"dependentSchemas",
|
|
91
|
+
"dependentRequired",
|
|
92
|
+
"nullable",
|
|
93
|
+
"readOnly"
|
|
94
|
+
]);
|
|
95
|
+
function detectVersion(schema, defaultTarget) {
|
|
96
|
+
const $schema = schema.$schema;
|
|
97
|
+
if ($schema === "https://json-schema.org/draft/2020-12/schema") return "draft-2020-12";
|
|
98
|
+
if ($schema === "http://json-schema.org/draft-07/schema#") return "draft-7";
|
|
99
|
+
if ($schema === "http://json-schema.org/draft-04/schema#") return "draft-4";
|
|
100
|
+
return defaultTarget ?? "draft-2020-12";
|
|
101
|
+
}
|
|
102
|
+
function resolveRef(ref, ctx) {
|
|
103
|
+
if (!ref.startsWith("#")) throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
104
|
+
const path = ref.slice(1).split("/").filter(Boolean);
|
|
105
|
+
if (path.length === 0) return ctx.rootSchema;
|
|
106
|
+
const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
|
|
107
|
+
if (path[0] === defsKey) {
|
|
108
|
+
const key = path[1];
|
|
109
|
+
if (!key || !ctx.defs[key]) throw new Error(`Reference not found: ${ref}`);
|
|
110
|
+
return ctx.defs[key];
|
|
111
|
+
}
|
|
112
|
+
throw new Error(`Reference not found: ${ref}`);
|
|
113
|
+
}
|
|
114
|
+
function convertBaseSchema(schema, ctx) {
|
|
115
|
+
if (schema.not !== void 0) {
|
|
116
|
+
if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) return z.never();
|
|
117
|
+
throw new Error("not is not supported in Zod (except { not: {} } for never)");
|
|
118
|
+
}
|
|
119
|
+
if (schema.unevaluatedItems !== void 0) throw new Error("unevaluatedItems is not supported");
|
|
120
|
+
if (schema.unevaluatedProperties !== void 0) throw new Error("unevaluatedProperties is not supported");
|
|
121
|
+
if (schema.if !== void 0 || schema.then !== void 0 || schema.else !== void 0) throw new Error("Conditional schemas (if/then/else) are not supported");
|
|
122
|
+
if (schema.dependentSchemas !== void 0 || schema.dependentRequired !== void 0) throw new Error("dependentSchemas and dependentRequired are not supported");
|
|
123
|
+
if (schema.$ref) {
|
|
124
|
+
const refPath = schema.$ref;
|
|
125
|
+
if (ctx.refs.has(refPath)) return ctx.refs.get(refPath);
|
|
126
|
+
if (ctx.processing.has(refPath)) return z.lazy(() => {
|
|
127
|
+
if (!ctx.refs.has(refPath)) throw new Error(`Circular reference not resolved: ${refPath}`);
|
|
128
|
+
return ctx.refs.get(refPath);
|
|
129
|
+
});
|
|
130
|
+
ctx.processing.add(refPath);
|
|
131
|
+
const zodSchema = convertSchema(resolveRef(refPath, ctx), ctx);
|
|
132
|
+
ctx.refs.set(refPath, zodSchema);
|
|
133
|
+
ctx.processing.delete(refPath);
|
|
134
|
+
return zodSchema;
|
|
135
|
+
}
|
|
136
|
+
if (schema.enum !== void 0) {
|
|
137
|
+
const enumValues = schema.enum;
|
|
138
|
+
if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) return z.null();
|
|
139
|
+
if (enumValues.length === 0) return z.never();
|
|
140
|
+
if (enumValues.length === 1) return z.literal(enumValues[0]);
|
|
141
|
+
if (enumValues.every((v) => typeof v === "string")) return z.enum(enumValues);
|
|
142
|
+
const literalSchemas = enumValues.map((v) => z.literal(v));
|
|
143
|
+
if (literalSchemas.length < 2) return literalSchemas[0];
|
|
144
|
+
return z.union([
|
|
145
|
+
literalSchemas[0],
|
|
146
|
+
literalSchemas[1],
|
|
147
|
+
...literalSchemas.slice(2)
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
if (schema.const !== void 0) return z.literal(schema.const);
|
|
151
|
+
const type = schema.type;
|
|
152
|
+
if (Array.isArray(type)) {
|
|
153
|
+
const typeSchemas = type.map((t) => {
|
|
154
|
+
return convertBaseSchema({
|
|
155
|
+
...schema,
|
|
156
|
+
type: t
|
|
157
|
+
}, ctx);
|
|
158
|
+
});
|
|
159
|
+
if (typeSchemas.length === 0) return z.never();
|
|
160
|
+
if (typeSchemas.length === 1) return typeSchemas[0];
|
|
161
|
+
return z.union(typeSchemas);
|
|
162
|
+
}
|
|
163
|
+
if (!type) return z.any();
|
|
164
|
+
let zodSchema;
|
|
165
|
+
switch (type) {
|
|
166
|
+
case "string": {
|
|
167
|
+
let stringSchema = z.string();
|
|
168
|
+
if (schema.format) {
|
|
169
|
+
const format = schema.format;
|
|
170
|
+
if (format === "email") stringSchema = stringSchema.check(z.email());
|
|
171
|
+
else if (format === "uri" || format === "uri-reference") stringSchema = stringSchema.check(z.url());
|
|
172
|
+
else if (format === "uuid" || format === "guid") stringSchema = stringSchema.check(z.uuid());
|
|
173
|
+
else if (format === "date-time") stringSchema = stringSchema.check(z.iso.datetime());
|
|
174
|
+
else if (format === "date") stringSchema = stringSchema.check(z.iso.date());
|
|
175
|
+
else if (format === "time") stringSchema = stringSchema.check(z.iso.time());
|
|
176
|
+
else if (format === "duration") stringSchema = stringSchema.check(z.iso.duration());
|
|
177
|
+
else if (format === "ipv4") stringSchema = stringSchema.check(z.ipv4());
|
|
178
|
+
else if (format === "ipv6") stringSchema = stringSchema.check(z.ipv6());
|
|
179
|
+
else if (format === "mac") stringSchema = stringSchema.check(z.mac());
|
|
180
|
+
else if (format === "cidr") stringSchema = stringSchema.check(z.cidrv4());
|
|
181
|
+
else if (format === "cidr-v6") stringSchema = stringSchema.check(z.cidrv6());
|
|
182
|
+
else if (format === "base64") stringSchema = stringSchema.check(z.base64());
|
|
183
|
+
else if (format === "base64url") stringSchema = stringSchema.check(z.base64url());
|
|
184
|
+
else if (format === "e164") stringSchema = stringSchema.check(z.e164());
|
|
185
|
+
else if (format === "jwt") stringSchema = stringSchema.check(z.jwt());
|
|
186
|
+
else if (format === "emoji") stringSchema = stringSchema.check(z.emoji());
|
|
187
|
+
else if (format === "nanoid") stringSchema = stringSchema.check(z.nanoid());
|
|
188
|
+
else if (format === "cuid") stringSchema = stringSchema.check(z.cuid());
|
|
189
|
+
else if (format === "cuid2") stringSchema = stringSchema.check(z.cuid2());
|
|
190
|
+
else if (format === "ulid") stringSchema = stringSchema.check(z.ulid());
|
|
191
|
+
else if (format === "xid") stringSchema = stringSchema.check(z.xid());
|
|
192
|
+
else if (format === "ksuid") stringSchema = stringSchema.check(z.ksuid());
|
|
193
|
+
}
|
|
194
|
+
if (typeof schema.minLength === "number") stringSchema = stringSchema.min(schema.minLength);
|
|
195
|
+
if (typeof schema.maxLength === "number") stringSchema = stringSchema.max(schema.maxLength);
|
|
196
|
+
if (schema.pattern) stringSchema = stringSchema.regex(new RegExp(schema.pattern));
|
|
197
|
+
zodSchema = stringSchema;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
case "number":
|
|
201
|
+
case "integer": {
|
|
202
|
+
let numberSchema = type === "integer" ? z.number().int() : z.number();
|
|
203
|
+
if (typeof schema.minimum === "number") numberSchema = numberSchema.min(schema.minimum);
|
|
204
|
+
if (typeof schema.maximum === "number") numberSchema = numberSchema.max(schema.maximum);
|
|
205
|
+
if (typeof schema.exclusiveMinimum === "number") numberSchema = numberSchema.gt(schema.exclusiveMinimum);
|
|
206
|
+
else if (schema.exclusiveMinimum === true && typeof schema.minimum === "number") numberSchema = numberSchema.gt(schema.minimum);
|
|
207
|
+
if (typeof schema.exclusiveMaximum === "number") numberSchema = numberSchema.lt(schema.exclusiveMaximum);
|
|
208
|
+
else if (schema.exclusiveMaximum === true && typeof schema.maximum === "number") numberSchema = numberSchema.lt(schema.maximum);
|
|
209
|
+
if (typeof schema.multipleOf === "number") numberSchema = numberSchema.multipleOf(schema.multipleOf);
|
|
210
|
+
zodSchema = numberSchema;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
case "boolean":
|
|
214
|
+
zodSchema = z.boolean();
|
|
215
|
+
break;
|
|
216
|
+
case "null":
|
|
217
|
+
zodSchema = z.null();
|
|
218
|
+
break;
|
|
219
|
+
case "object": {
|
|
220
|
+
const shape = {};
|
|
221
|
+
const properties = schema.properties || {};
|
|
222
|
+
const requiredSet = new Set(schema.required || []);
|
|
223
|
+
for (const [key, propSchema] of Object.entries(properties)) {
|
|
224
|
+
const propZodSchema = convertSchema(propSchema, ctx);
|
|
225
|
+
shape[key] = requiredSet.has(key) ? propZodSchema : propZodSchema.optional();
|
|
226
|
+
}
|
|
227
|
+
if (schema.propertyNames) {
|
|
228
|
+
const keySchema = convertSchema(schema.propertyNames, ctx);
|
|
229
|
+
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z.any();
|
|
230
|
+
if (Object.keys(shape).length === 0) {
|
|
231
|
+
zodSchema = z.record(keySchema, valueSchema);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
const objectSchema = z.object(shape).passthrough();
|
|
235
|
+
const recordSchema = z.looseRecord(keySchema, valueSchema);
|
|
236
|
+
zodSchema = z.intersection(objectSchema, recordSchema);
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
if (schema.patternProperties) {
|
|
240
|
+
const patternProps = schema.patternProperties;
|
|
241
|
+
const patternKeys = Object.keys(patternProps);
|
|
242
|
+
const looseRecords = [];
|
|
243
|
+
for (const pattern of patternKeys) {
|
|
244
|
+
const patternValue = convertSchema(patternProps[pattern], ctx);
|
|
245
|
+
const keySchema = z.string().regex(new RegExp(pattern));
|
|
246
|
+
looseRecords.push(z.looseRecord(keySchema, patternValue));
|
|
247
|
+
}
|
|
248
|
+
const schemasToIntersect = [];
|
|
249
|
+
if (Object.keys(shape).length > 0) schemasToIntersect.push(z.object(shape).passthrough());
|
|
250
|
+
schemasToIntersect.push(...looseRecords);
|
|
251
|
+
if (schemasToIntersect.length === 0) zodSchema = z.object({}).passthrough();
|
|
252
|
+
else if (schemasToIntersect.length === 1) zodSchema = schemasToIntersect[0];
|
|
253
|
+
else {
|
|
254
|
+
let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]);
|
|
255
|
+
for (let i = 2; i < schemasToIntersect.length; i++) result = z.intersection(result, schemasToIntersect[i]);
|
|
256
|
+
zodSchema = result;
|
|
257
|
+
}
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
const objectSchema = z.object(shape);
|
|
261
|
+
if (schema.additionalProperties === false) zodSchema = objectSchema.strict();
|
|
262
|
+
else if (typeof schema.additionalProperties === "object") zodSchema = objectSchema.catchall(convertSchema(schema.additionalProperties, ctx));
|
|
263
|
+
else zodSchema = objectSchema.passthrough();
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
case "array": {
|
|
267
|
+
const prefixItems = schema.prefixItems;
|
|
268
|
+
const items = schema.items;
|
|
269
|
+
if (prefixItems && Array.isArray(prefixItems)) {
|
|
270
|
+
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
271
|
+
const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0;
|
|
272
|
+
if (rest) zodSchema = z.tuple(tupleItems).rest(rest);
|
|
273
|
+
else zodSchema = z.tuple(tupleItems);
|
|
274
|
+
if (typeof schema.minItems === "number") zodSchema = zodSchema.check(z.minLength(schema.minItems));
|
|
275
|
+
if (typeof schema.maxItems === "number") zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
|
|
276
|
+
} else if (Array.isArray(items)) {
|
|
277
|
+
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
278
|
+
const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0;
|
|
279
|
+
if (rest) zodSchema = z.tuple(tupleItems).rest(rest);
|
|
280
|
+
else zodSchema = z.tuple(tupleItems);
|
|
281
|
+
if (typeof schema.minItems === "number") zodSchema = zodSchema.check(z.minLength(schema.minItems));
|
|
282
|
+
if (typeof schema.maxItems === "number") zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
|
|
283
|
+
} else if (items !== void 0) {
|
|
284
|
+
const element = convertSchema(items, ctx);
|
|
285
|
+
let arraySchema = z.array(element);
|
|
286
|
+
if (typeof schema.minItems === "number") arraySchema = arraySchema.min(schema.minItems);
|
|
287
|
+
if (typeof schema.maxItems === "number") arraySchema = arraySchema.max(schema.maxItems);
|
|
288
|
+
zodSchema = arraySchema;
|
|
289
|
+
} else zodSchema = z.array(z.any());
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
default: throw new Error(`Unsupported type: ${type}`);
|
|
293
|
+
}
|
|
294
|
+
if (schema.description) zodSchema = zodSchema.describe(schema.description);
|
|
295
|
+
if (schema.default !== void 0) zodSchema = zodSchema.default(schema.default);
|
|
296
|
+
return zodSchema;
|
|
297
|
+
}
|
|
298
|
+
function convertSchema(schema, ctx) {
|
|
299
|
+
if (typeof schema === "boolean") return schema ? z.any() : z.never();
|
|
300
|
+
let baseSchema = convertBaseSchema(schema, ctx);
|
|
301
|
+
const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
|
|
302
|
+
if (schema.anyOf && Array.isArray(schema.anyOf)) {
|
|
303
|
+
const options = schema.anyOf.map((s) => convertSchema(s, ctx));
|
|
304
|
+
const anyOfUnion = z.union(options);
|
|
305
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
306
|
+
}
|
|
307
|
+
if (schema.oneOf && Array.isArray(schema.oneOf)) {
|
|
308
|
+
const options = schema.oneOf.map((s) => convertSchema(s, ctx));
|
|
309
|
+
const oneOfUnion = z.xor(options);
|
|
310
|
+
baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
311
|
+
}
|
|
312
|
+
if (schema.allOf && Array.isArray(schema.allOf)) if (schema.allOf.length === 0) baseSchema = hasExplicitType ? baseSchema : z.any();
|
|
313
|
+
else {
|
|
314
|
+
let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
|
|
315
|
+
const startIdx = hasExplicitType ? 0 : 1;
|
|
316
|
+
for (let i = startIdx; i < schema.allOf.length; i++) result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
|
|
317
|
+
baseSchema = result;
|
|
318
|
+
}
|
|
319
|
+
if (schema.nullable === true && ctx.version === "openapi-3.0") baseSchema = z.nullable(baseSchema);
|
|
320
|
+
if (schema.readOnly === true) baseSchema = z.readonly(baseSchema);
|
|
321
|
+
const extraMeta = {};
|
|
322
|
+
for (const key of [
|
|
323
|
+
"$id",
|
|
324
|
+
"id",
|
|
325
|
+
"$comment",
|
|
326
|
+
"$anchor",
|
|
327
|
+
"$vocabulary",
|
|
328
|
+
"$dynamicRef",
|
|
329
|
+
"$dynamicAnchor"
|
|
330
|
+
]) if (key in schema) extraMeta[key] = schema[key];
|
|
331
|
+
for (const key of [
|
|
332
|
+
"contentEncoding",
|
|
333
|
+
"contentMediaType",
|
|
334
|
+
"contentSchema"
|
|
335
|
+
]) if (key in schema) extraMeta[key] = schema[key];
|
|
336
|
+
for (const key of Object.keys(schema)) if (!RECOGNIZED_KEYS.has(key)) extraMeta[key] = schema[key];
|
|
337
|
+
if (Object.keys(extraMeta).length > 0) ctx.registry.add(baseSchema, extraMeta);
|
|
338
|
+
return baseSchema;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
|
|
342
|
+
function fromJSONSchema(schema, params) {
|
|
343
|
+
if (typeof schema === "boolean") return schema ? z.any() : z.never();
|
|
344
|
+
return convertSchema(schema, {
|
|
345
|
+
version: detectVersion(schema, params?.defaultTarget),
|
|
346
|
+
defs: schema.$defs || schema.definitions || {},
|
|
347
|
+
refs: /* @__PURE__ */ new Map(),
|
|
348
|
+
processing: /* @__PURE__ */ new Set(),
|
|
349
|
+
rootSchema: schema,
|
|
350
|
+
registry: params?.registry ?? globalRegistry
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
355
|
+
var coerce_exports = /* @__PURE__ */ __exportAll({
|
|
356
|
+
bigint: () => bigint$1,
|
|
357
|
+
boolean: () => boolean$1,
|
|
358
|
+
date: () => date$1,
|
|
359
|
+
number: () => number$1,
|
|
360
|
+
string: () => string$1
|
|
361
|
+
});
|
|
362
|
+
function string$1(params) {
|
|
363
|
+
return _coercedString(ZodString, params);
|
|
364
|
+
}
|
|
365
|
+
function number$1(params) {
|
|
366
|
+
return _coercedNumber(ZodNumber, params);
|
|
367
|
+
}
|
|
368
|
+
function boolean$1(params) {
|
|
369
|
+
return _coercedBoolean(ZodBoolean, params);
|
|
370
|
+
}
|
|
371
|
+
function bigint$1(params) {
|
|
372
|
+
return _coercedBigint(ZodBigInt, params);
|
|
373
|
+
}
|
|
374
|
+
function date$1(params) {
|
|
375
|
+
return _coercedDate(ZodDate, params);
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
379
|
+
var external_exports = /* @__PURE__ */ __exportAll({
|
|
380
|
+
$brand: () => $brand,
|
|
381
|
+
$input: () => $input,
|
|
382
|
+
$output: () => $output,
|
|
383
|
+
NEVER: () => NEVER,
|
|
384
|
+
TimePrecision: () => TimePrecision,
|
|
385
|
+
ZodAny: () => ZodAny,
|
|
386
|
+
ZodArray: () => ZodArray,
|
|
387
|
+
ZodBase64: () => ZodBase64,
|
|
388
|
+
ZodBase64URL: () => ZodBase64URL,
|
|
389
|
+
ZodBigInt: () => ZodBigInt,
|
|
390
|
+
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
391
|
+
ZodBoolean: () => ZodBoolean,
|
|
392
|
+
ZodCIDRv4: () => ZodCIDRv4,
|
|
393
|
+
ZodCIDRv6: () => ZodCIDRv6,
|
|
394
|
+
ZodCUID: () => ZodCUID,
|
|
395
|
+
ZodCUID2: () => ZodCUID2,
|
|
396
|
+
ZodCatch: () => ZodCatch,
|
|
397
|
+
ZodCodec: () => ZodCodec,
|
|
398
|
+
ZodCustom: () => ZodCustom,
|
|
399
|
+
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
400
|
+
ZodDate: () => ZodDate,
|
|
401
|
+
ZodDefault: () => ZodDefault,
|
|
402
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
403
|
+
ZodE164: () => ZodE164,
|
|
404
|
+
ZodEmail: () => ZodEmail,
|
|
405
|
+
ZodEmoji: () => ZodEmoji,
|
|
406
|
+
ZodEnum: () => ZodEnum,
|
|
407
|
+
ZodError: () => ZodError,
|
|
408
|
+
ZodExactOptional: () => ZodExactOptional,
|
|
409
|
+
ZodFile: () => ZodFile,
|
|
410
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
411
|
+
ZodFunction: () => ZodFunction,
|
|
412
|
+
ZodGUID: () => ZodGUID,
|
|
413
|
+
ZodIPv4: () => ZodIPv4,
|
|
414
|
+
ZodIPv6: () => ZodIPv6,
|
|
415
|
+
ZodISODate: () => ZodISODate,
|
|
416
|
+
ZodISODateTime: () => ZodISODateTime,
|
|
417
|
+
ZodISODuration: () => ZodISODuration,
|
|
418
|
+
ZodISOTime: () => ZodISOTime,
|
|
419
|
+
ZodIntersection: () => ZodIntersection,
|
|
420
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
421
|
+
ZodJWT: () => ZodJWT,
|
|
422
|
+
ZodKSUID: () => ZodKSUID,
|
|
423
|
+
ZodLazy: () => ZodLazy,
|
|
424
|
+
ZodLiteral: () => ZodLiteral,
|
|
425
|
+
ZodMAC: () => ZodMAC,
|
|
426
|
+
ZodMap: () => ZodMap,
|
|
427
|
+
ZodNaN: () => ZodNaN,
|
|
428
|
+
ZodNanoID: () => ZodNanoID,
|
|
429
|
+
ZodNever: () => ZodNever,
|
|
430
|
+
ZodNonOptional: () => ZodNonOptional,
|
|
431
|
+
ZodNull: () => ZodNull,
|
|
432
|
+
ZodNullable: () => ZodNullable,
|
|
433
|
+
ZodNumber: () => ZodNumber,
|
|
434
|
+
ZodNumberFormat: () => ZodNumberFormat,
|
|
435
|
+
ZodObject: () => ZodObject,
|
|
436
|
+
ZodOptional: () => ZodOptional,
|
|
437
|
+
ZodPipe: () => ZodPipe,
|
|
438
|
+
ZodPrefault: () => ZodPrefault,
|
|
439
|
+
ZodPromise: () => ZodPromise,
|
|
440
|
+
ZodReadonly: () => ZodReadonly,
|
|
441
|
+
ZodRealError: () => ZodRealError,
|
|
442
|
+
ZodRecord: () => ZodRecord,
|
|
443
|
+
ZodSet: () => ZodSet,
|
|
444
|
+
ZodString: () => ZodString,
|
|
445
|
+
ZodStringFormat: () => ZodStringFormat,
|
|
446
|
+
ZodSuccess: () => ZodSuccess,
|
|
447
|
+
ZodSymbol: () => ZodSymbol,
|
|
448
|
+
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
449
|
+
ZodTransform: () => ZodTransform,
|
|
450
|
+
ZodTuple: () => ZodTuple,
|
|
451
|
+
ZodType: () => ZodType,
|
|
452
|
+
ZodULID: () => ZodULID,
|
|
453
|
+
ZodURL: () => ZodURL,
|
|
454
|
+
ZodUUID: () => ZodUUID,
|
|
455
|
+
ZodUndefined: () => ZodUndefined,
|
|
456
|
+
ZodUnion: () => ZodUnion,
|
|
457
|
+
ZodUnknown: () => ZodUnknown,
|
|
458
|
+
ZodVoid: () => ZodVoid,
|
|
459
|
+
ZodXID: () => ZodXID,
|
|
460
|
+
ZodXor: () => ZodXor,
|
|
461
|
+
_ZodString: () => _ZodString,
|
|
462
|
+
_default: () => _default,
|
|
463
|
+
_function: () => _function,
|
|
464
|
+
any: () => any,
|
|
465
|
+
array: () => array,
|
|
466
|
+
base64: () => base64,
|
|
467
|
+
base64url: () => base64url,
|
|
468
|
+
bigint: () => bigint,
|
|
469
|
+
boolean: () => boolean,
|
|
470
|
+
catch: () => _catch,
|
|
471
|
+
check: () => check,
|
|
472
|
+
cidrv4: () => cidrv4,
|
|
473
|
+
cidrv6: () => cidrv6,
|
|
474
|
+
clone: () => clone,
|
|
475
|
+
codec: () => codec,
|
|
476
|
+
coerce: () => coerce_exports,
|
|
477
|
+
config: () => config,
|
|
478
|
+
core: () => core_exports,
|
|
479
|
+
cuid: () => cuid,
|
|
480
|
+
cuid2: () => cuid2,
|
|
481
|
+
custom: () => custom,
|
|
482
|
+
date: () => date,
|
|
483
|
+
decode: () => decode,
|
|
484
|
+
decodeAsync: () => decodeAsync,
|
|
485
|
+
describe: () => describe,
|
|
486
|
+
discriminatedUnion: () => discriminatedUnion,
|
|
487
|
+
e164: () => e164,
|
|
488
|
+
email: () => email,
|
|
489
|
+
emoji: () => emoji,
|
|
490
|
+
encode: () => encode,
|
|
491
|
+
encodeAsync: () => encodeAsync,
|
|
492
|
+
endsWith: () => _endsWith,
|
|
493
|
+
enum: () => _enum,
|
|
494
|
+
exactOptional: () => exactOptional,
|
|
495
|
+
file: () => file,
|
|
496
|
+
flattenError: () => flattenError,
|
|
497
|
+
float32: () => float32,
|
|
498
|
+
float64: () => float64,
|
|
499
|
+
formatError: () => formatError,
|
|
500
|
+
fromJSONSchema: () => fromJSONSchema,
|
|
501
|
+
function: () => _function,
|
|
502
|
+
getErrorMap: () => getErrorMap,
|
|
503
|
+
globalRegistry: () => globalRegistry,
|
|
504
|
+
gt: () => _gt,
|
|
505
|
+
gte: () => _gte,
|
|
506
|
+
guid: () => guid,
|
|
507
|
+
hash: () => hash,
|
|
508
|
+
hex: () => hex,
|
|
509
|
+
hostname: () => hostname,
|
|
510
|
+
httpUrl: () => httpUrl,
|
|
511
|
+
includes: () => _includes,
|
|
512
|
+
instanceof: () => _instanceof,
|
|
513
|
+
int: () => int,
|
|
514
|
+
int32: () => int32,
|
|
515
|
+
int64: () => int64,
|
|
516
|
+
intersection: () => intersection,
|
|
517
|
+
ipv4: () => ipv4,
|
|
518
|
+
ipv6: () => ipv6,
|
|
519
|
+
iso: () => iso_exports,
|
|
520
|
+
json: () => json,
|
|
521
|
+
jwt: () => jwt,
|
|
522
|
+
keyof: () => keyof,
|
|
523
|
+
ksuid: () => ksuid,
|
|
524
|
+
lazy: () => lazy,
|
|
525
|
+
length: () => _length,
|
|
526
|
+
literal: () => literal,
|
|
527
|
+
locales: () => locales_exports,
|
|
528
|
+
looseObject: () => looseObject,
|
|
529
|
+
looseRecord: () => looseRecord,
|
|
530
|
+
lowercase: () => _lowercase,
|
|
531
|
+
lt: () => _lt,
|
|
532
|
+
lte: () => _lte,
|
|
533
|
+
mac: () => mac,
|
|
534
|
+
map: () => map,
|
|
535
|
+
maxLength: () => _maxLength,
|
|
536
|
+
maxSize: () => _maxSize,
|
|
537
|
+
meta: () => meta,
|
|
538
|
+
mime: () => _mime,
|
|
539
|
+
minLength: () => _minLength,
|
|
540
|
+
minSize: () => _minSize,
|
|
541
|
+
multipleOf: () => _multipleOf,
|
|
542
|
+
nan: () => nan,
|
|
543
|
+
nanoid: () => nanoid,
|
|
544
|
+
nativeEnum: () => nativeEnum,
|
|
545
|
+
negative: () => _negative,
|
|
546
|
+
never: () => never,
|
|
547
|
+
nonnegative: () => _nonnegative,
|
|
548
|
+
nonoptional: () => nonoptional,
|
|
549
|
+
nonpositive: () => _nonpositive,
|
|
550
|
+
normalize: () => _normalize,
|
|
551
|
+
null: () => _null,
|
|
552
|
+
nullable: () => nullable,
|
|
553
|
+
nullish: () => nullish,
|
|
554
|
+
number: () => number,
|
|
555
|
+
object: () => object,
|
|
556
|
+
optional: () => optional,
|
|
557
|
+
overwrite: () => _overwrite,
|
|
558
|
+
parse: () => parse,
|
|
559
|
+
parseAsync: () => parseAsync,
|
|
560
|
+
partialRecord: () => partialRecord,
|
|
561
|
+
pipe: () => pipe,
|
|
562
|
+
positive: () => _positive,
|
|
563
|
+
prefault: () => prefault,
|
|
564
|
+
preprocess: () => preprocess,
|
|
565
|
+
prettifyError: () => prettifyError,
|
|
566
|
+
promise: () => promise,
|
|
567
|
+
property: () => _property,
|
|
568
|
+
readonly: () => readonly,
|
|
569
|
+
record: () => record,
|
|
570
|
+
refine: () => refine,
|
|
571
|
+
regex: () => _regex,
|
|
572
|
+
regexes: () => regexes_exports,
|
|
573
|
+
registry: () => registry,
|
|
574
|
+
safeDecode: () => safeDecode,
|
|
575
|
+
safeDecodeAsync: () => safeDecodeAsync,
|
|
576
|
+
safeEncode: () => safeEncode,
|
|
577
|
+
safeEncodeAsync: () => safeEncodeAsync,
|
|
578
|
+
safeParse: () => safeParse,
|
|
579
|
+
safeParseAsync: () => safeParseAsync,
|
|
580
|
+
set: () => set,
|
|
581
|
+
setErrorMap: () => setErrorMap,
|
|
582
|
+
size: () => _size,
|
|
583
|
+
slugify: () => _slugify,
|
|
584
|
+
startsWith: () => _startsWith,
|
|
585
|
+
strictObject: () => strictObject,
|
|
586
|
+
string: () => string,
|
|
587
|
+
stringFormat: () => stringFormat,
|
|
588
|
+
stringbool: () => stringbool,
|
|
589
|
+
success: () => success,
|
|
590
|
+
superRefine: () => superRefine,
|
|
591
|
+
symbol: () => symbol,
|
|
592
|
+
templateLiteral: () => templateLiteral,
|
|
593
|
+
toJSONSchema: () => toJSONSchema,
|
|
594
|
+
toLowerCase: () => _toLowerCase,
|
|
595
|
+
toUpperCase: () => _toUpperCase,
|
|
596
|
+
transform: () => transform,
|
|
597
|
+
treeifyError: () => treeifyError,
|
|
598
|
+
trim: () => _trim,
|
|
599
|
+
tuple: () => tuple,
|
|
600
|
+
uint32: () => uint32,
|
|
601
|
+
uint64: () => uint64,
|
|
602
|
+
ulid: () => ulid,
|
|
603
|
+
undefined: () => _undefined,
|
|
604
|
+
union: () => union,
|
|
605
|
+
unknown: () => unknown,
|
|
606
|
+
uppercase: () => _uppercase,
|
|
607
|
+
url: () => url,
|
|
608
|
+
util: () => util_exports,
|
|
609
|
+
uuid: () => uuid,
|
|
610
|
+
uuidv4: () => uuidv4,
|
|
611
|
+
uuidv6: () => uuidv6,
|
|
612
|
+
uuidv7: () => uuidv7,
|
|
613
|
+
void: () => _void,
|
|
614
|
+
xid: () => xid,
|
|
615
|
+
xor: () => xor
|
|
616
|
+
});
|
|
617
|
+
config(en_default());
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
620
|
+
var zod_default = external_exports;
|
|
621
|
+
//#endregion
|
|
622
|
+
export { $brand, $input, $output, NEVER, TimePrecision, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodExactOptional, ZodFile, ZodFirstPartyTypeKind, ZodFunction, ZodGUID, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodIntersection, ZodIssueCode, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPromise, ZodReadonly, ZodRealError, ZodRecord, ZodSet, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodString, _default, _function, _function as function, any, array, base64, base64url, bigint, boolean, _catch as catch, check, cidrv4, cidrv6, clone, codec, coerce_exports as coerce, config, core_exports as core, cuid, cuid2, custom, date, decode, decodeAsync, zod_default as default, describe, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _endsWith as endsWith, _enum as enum, exactOptional, file, flattenError, float32, float64, formatError, fromJSONSchema, getErrorMap, globalRegistry, _gt as gt, _gte as gte, guid, hash, hex, hostname, httpUrl, _includes as includes, _instanceof as instanceof, int, int32, int64, intersection, ipv4, ipv6, iso_exports as iso, json, jwt, keyof, ksuid, lazy, _length as length, literal, locales_exports as locales, looseObject, looseRecord, _lowercase as lowercase, _lt as lt, _lte as lte, mac, map, _maxLength as maxLength, _maxSize as maxSize, meta, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, nan, nanoid, nativeEnum, _negative as negative, never, _nonnegative as nonnegative, nonoptional, _nonpositive as nonpositive, _normalize as normalize, _null as null, nullable, nullish, number, object, optional, _overwrite as overwrite, parse, parseAsync, partialRecord, pipe, _positive as positive, prefault, preprocess, prettifyError, promise, _property as property, readonly, record, refine, _regex as regex, regexes_exports as regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, _size as size, _slugify as slugify, _startsWith as startsWith, strictObject, string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, transform, treeifyError, _trim as trim, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, _uppercase as uppercase, url, util_exports as util, uuid, uuidv4, uuidv6, uuidv7, _void as void, xid, xor, external_exports as z };
|
|
623
|
+
|
|
624
|
+
//# sourceMappingURL=zod.js.map
|