@mastra/deployer 1.37.0-alpha.5 → 1.37.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/arktype-aI7TBD0R-3P5RF7MP.js +8 -0
- package/dist/{arktype-aI7TBD0R-FXOAT7L5.js.map → arktype-aI7TBD0R-3P5RF7MP.js.map} +1 -1
- package/dist/{arktype-aI7TBD0R-CH6FW6SC.cjs → arktype-aI7TBD0R-MM5ZQA7T.cjs} +3 -3
- package/dist/{arktype-aI7TBD0R-CH6FW6SC.cjs.map → arktype-aI7TBD0R-MM5ZQA7T.cjs.map} +1 -1
- package/dist/chunk-25FDH34P.cjs +4 -0
- package/dist/{chunk-PJRU3FAS.cjs.map → chunk-25FDH34P.cjs.map} +1 -1
- package/dist/{chunk-GJADEAFP.cjs → chunk-3BPH376H.cjs} +3 -3
- package/dist/{chunk-GJADEAFP.cjs.map → chunk-3BPH376H.cjs.map} +1 -1
- package/dist/chunk-5AW6ZK5L.js +3 -0
- package/dist/{chunk-4MQB32L7.js.map → chunk-5AW6ZK5L.js.map} +1 -1
- package/dist/{chunk-N22YZ2SO.js → chunk-7S5IH2W7.js} +3 -3
- package/dist/{chunk-N22YZ2SO.js.map → chunk-7S5IH2W7.js.map} +1 -1
- package/dist/{chunk-B5MDFOOY.js → chunk-H3XBG3TG.js} +9 -9
- package/dist/{chunk-B5MDFOOY.js.map → chunk-H3XBG3TG.js.map} +1 -1
- package/dist/chunk-I5QGSZ76.cjs +16 -0
- package/dist/{chunk-UDZGL4UX.cjs.map → chunk-I5QGSZ76.cjs.map} +1 -1
- package/dist/{chunk-QHAPK6PL.cjs → chunk-O3MMPMLF.cjs} +9 -9
- package/dist/{chunk-QHAPK6PL.cjs.map → chunk-O3MMPMLF.cjs.map} +1 -1
- package/dist/{chunk-Z7S7UHLW.cjs → chunk-PUO4FNLE.cjs} +3 -3
- package/dist/{chunk-Z7S7UHLW.cjs.map → chunk-PUO4FNLE.cjs.map} +1 -1
- package/dist/chunk-QEZZJA2G.js +6 -0
- package/dist/{chunk-SMZZ3IKP.js.map → chunk-QEZZJA2G.js.map} +1 -1
- package/dist/chunk-SQEAL6BL.js +14 -0
- package/dist/{chunk-OM4GXHMV.js.map → chunk-SQEAL6BL.js.map} +1 -1
- package/dist/core-6CQRSKZJ.js +11866 -0
- package/dist/core-6CQRSKZJ.js.map +1 -0
- package/dist/core-AU3VAW4X.cjs +12141 -0
- package/dist/core-AU3VAW4X.cjs.map +1 -0
- package/dist/default-u_dwuiYb-EC2X54LJ.cjs +9 -0
- package/dist/{default-u_dwuiYb-ZN3QN5Z7.cjs.map → default-u_dwuiYb-EC2X54LJ.cjs.map} +1 -1
- package/dist/default-u_dwuiYb-LP5TT3QO.js +3 -0
- package/dist/{default-u_dwuiYb-4FNEQAC4.js.map → default-u_dwuiYb-LP5TT3QO.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/effect-QlVUlMFu-AG2UGFDX.cjs +17 -0
- package/dist/{effect-QlVUlMFu-7FMSB45N.cjs.map → effect-QlVUlMFu-AG2UGFDX.cjs.map} +1 -1
- package/dist/{effect-QlVUlMFu-H6SA273U.js → effect-QlVUlMFu-CMIANNDJ.js} +4 -4
- package/dist/{effect-QlVUlMFu-H6SA273U.js.map → effect-QlVUlMFu-CMIANNDJ.js.map} +1 -1
- package/dist/{esm-QZXXQQYB.js → esm-O6BGW5O2.js} +298 -45
- package/dist/esm-O6BGW5O2.js.map +1 -0
- package/dist/{esm-O5U7FUQQ.cjs → esm-XCKJ5Z6I.cjs} +339 -86
- package/dist/esm-XCKJ5Z6I.cjs.map +1 -0
- package/dist/server/index.cjs +56 -88
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +56 -88
- package/dist/server/index.js.map +1 -1
- package/dist/{sury-CWZTCd75-SAXXZQP6.js → sury-CWZTCd75-3I5DBBFO.js} +4 -4
- package/dist/{sury-CWZTCd75-SAXXZQP6.js.map → sury-CWZTCd75-3I5DBBFO.js.map} +1 -1
- package/dist/sury-CWZTCd75-KWZ5SP6R.cjs +17 -0
- package/dist/{sury-CWZTCd75-TSCANIKB.cjs.map → sury-CWZTCd75-KWZ5SP6R.cjs.map} +1 -1
- package/dist/{typebox-Dei93FPO-V6KUC6LS.cjs → typebox-Dei93FPO-PLRBZ6HI.cjs} +3 -3
- package/dist/{typebox-Dei93FPO-V6KUC6LS.cjs.map → typebox-Dei93FPO-PLRBZ6HI.cjs.map} +1 -1
- package/dist/typebox-Dei93FPO-QYPV4NRU.js +8 -0
- package/dist/{typebox-Dei93FPO-Z2PFIK65.js.map → typebox-Dei93FPO-QYPV4NRU.js.map} +1 -1
- package/dist/{valibot--1zFm7rT-OWIZ7TCZ.js → valibot--1zFm7rT-C7A7FGJ2.js} +4 -4
- package/dist/{valibot--1zFm7rT-OWIZ7TCZ.js.map → valibot--1zFm7rT-C7A7FGJ2.js.map} +1 -1
- package/dist/valibot--1zFm7rT-KMUXFXU5.cjs +17 -0
- package/dist/{valibot--1zFm7rT-OFSJWS3O.cjs.map → valibot--1zFm7rT-KMUXFXU5.cjs.map} +1 -1
- package/dist/{valibot-D_HTw1Gn-FOK7YYT6.js → valibot-D_HTw1Gn-Q6P44V54.js} +5 -5
- package/dist/{valibot-D_HTw1Gn-FOK7YYT6.js.map → valibot-D_HTw1Gn-Q6P44V54.js.map} +1 -1
- package/dist/{valibot-D_HTw1Gn-CTPUDOX5.cjs → valibot-D_HTw1Gn-U6IRYYPK.cjs} +7 -7
- package/dist/{valibot-D_HTw1Gn-CTPUDOX5.cjs.map → valibot-D_HTw1Gn-U6IRYYPK.cjs.map} +1 -1
- package/dist/zod-Bwrt9trS-7ZKFPQIW.cjs +31 -0
- package/dist/zod-Bwrt9trS-7ZKFPQIW.cjs.map +1 -0
- package/dist/{zod-Bwrt9trS-6WLQRJO3.js → zod-Bwrt9trS-KSTCMD4H.js} +6 -6
- package/dist/zod-Bwrt9trS-KSTCMD4H.js.map +1 -0
- package/dist/{zod-DSgpEGAE-Z7XWMQKD.cjs → zod-DSgpEGAE-AWAPWX2N.cjs} +7 -7
- package/dist/{zod-DSgpEGAE-Z7XWMQKD.cjs.map → zod-DSgpEGAE-AWAPWX2N.cjs.map} +1 -1
- package/dist/{zod-DSgpEGAE-EQIA3EQN.js → zod-DSgpEGAE-HGCVPPB4.js} +5 -5
- package/dist/{zod-DSgpEGAE-EQIA3EQN.js.map → zod-DSgpEGAE-HGCVPPB4.js.map} +1 -1
- package/package.json +9 -10
- package/dist/arktype-aI7TBD0R-FXOAT7L5.js +0 -8
- package/dist/chunk-4MQB32L7.js +0 -3
- package/dist/chunk-OM4GXHMV.js +0 -14
- package/dist/chunk-PJRU3FAS.cjs +0 -4
- package/dist/chunk-SMZZ3IKP.js +0 -6
- package/dist/chunk-UDZGL4UX.cjs +0 -16
- package/dist/default-u_dwuiYb-4FNEQAC4.js +0 -3
- package/dist/default-u_dwuiYb-ZN3QN5Z7.cjs +0 -9
- package/dist/effect-QlVUlMFu-7FMSB45N.cjs +0 -17
- package/dist/esm-O5U7FUQQ.cjs.map +0 -1
- package/dist/esm-QZXXQQYB.js.map +0 -1
- package/dist/sury-CWZTCd75-TSCANIKB.cjs +0 -17
- package/dist/typebox-Dei93FPO-Z2PFIK65.js +0 -8
- package/dist/valibot--1zFm7rT-OFSJWS3O.cjs +0 -17
- package/dist/zod-Bwrt9trS-6WLQRJO3.js.map +0 -1
- package/dist/zod-Bwrt9trS-OH7I5GXF.cjs +0 -31
- package/dist/zod-Bwrt9trS-OH7I5GXF.cjs.map +0 -1
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
5
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
8
6
|
var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
9
7
|
var jsonDescription = (jsonSchema, def) => {
|
|
10
8
|
if (def.description) {
|
|
@@ -50,7 +48,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
50
48
|
...options
|
|
51
49
|
};
|
|
52
50
|
|
|
53
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
51
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
54
52
|
var getRefs = (options) => {
|
|
55
53
|
const _options = getDefaultOptions(options);
|
|
56
54
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -71,7 +69,7 @@ var getRefs = (options) => {
|
|
|
71
69
|
};
|
|
72
70
|
};
|
|
73
71
|
|
|
74
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
72
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
75
73
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
76
74
|
if (!refs?.errorMessages)
|
|
77
75
|
return;
|
|
@@ -87,7 +85,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
87
85
|
addErrorMessage(res, key, errorMessage, refs);
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
88
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
91
89
|
var getRelativePath = (pathA, pathB) => {
|
|
92
90
|
let i = 0;
|
|
93
91
|
for (; i < pathA.length && i < pathB.length; i++) {
|
|
@@ -97,7 +95,260 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
97
95
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
98
96
|
};
|
|
99
97
|
|
|
100
|
-
// ../../node_modules/.pnpm/zod
|
|
98
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.js
|
|
99
|
+
var util;
|
|
100
|
+
(function(util2) {
|
|
101
|
+
util2.assertEqual = (_) => {
|
|
102
|
+
};
|
|
103
|
+
function assertIs(_arg) {
|
|
104
|
+
}
|
|
105
|
+
util2.assertIs = assertIs;
|
|
106
|
+
function assertNever(_x) {
|
|
107
|
+
throw new Error();
|
|
108
|
+
}
|
|
109
|
+
util2.assertNever = assertNever;
|
|
110
|
+
util2.arrayToEnum = (items) => {
|
|
111
|
+
const obj = {};
|
|
112
|
+
for (const item of items) {
|
|
113
|
+
obj[item] = item;
|
|
114
|
+
}
|
|
115
|
+
return obj;
|
|
116
|
+
};
|
|
117
|
+
util2.getValidEnumValues = (obj) => {
|
|
118
|
+
const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
119
|
+
const filtered = {};
|
|
120
|
+
for (const k of validKeys) {
|
|
121
|
+
filtered[k] = obj[k];
|
|
122
|
+
}
|
|
123
|
+
return util2.objectValues(filtered);
|
|
124
|
+
};
|
|
125
|
+
util2.objectValues = (obj) => {
|
|
126
|
+
return util2.objectKeys(obj).map(function(e) {
|
|
127
|
+
return obj[e];
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
131
|
+
const keys = [];
|
|
132
|
+
for (const key in object) {
|
|
133
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
134
|
+
keys.push(key);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return keys;
|
|
138
|
+
};
|
|
139
|
+
util2.find = (arr, checker) => {
|
|
140
|
+
for (const item of arr) {
|
|
141
|
+
if (checker(item))
|
|
142
|
+
return item;
|
|
143
|
+
}
|
|
144
|
+
return void 0;
|
|
145
|
+
};
|
|
146
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
147
|
+
function joinValues(array, separator = " | ") {
|
|
148
|
+
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
149
|
+
}
|
|
150
|
+
util2.joinValues = joinValues;
|
|
151
|
+
util2.jsonStringifyReplacer = (_, value) => {
|
|
152
|
+
if (typeof value === "bigint") {
|
|
153
|
+
return value.toString();
|
|
154
|
+
}
|
|
155
|
+
return value;
|
|
156
|
+
};
|
|
157
|
+
})(util || (util = {}));
|
|
158
|
+
var objectUtil;
|
|
159
|
+
(function(objectUtil2) {
|
|
160
|
+
objectUtil2.mergeShapes = (first, second) => {
|
|
161
|
+
return {
|
|
162
|
+
...first,
|
|
163
|
+
...second
|
|
164
|
+
// second overwrites first
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
})(objectUtil || (objectUtil = {}));
|
|
168
|
+
util.arrayToEnum([
|
|
169
|
+
"string",
|
|
170
|
+
"nan",
|
|
171
|
+
"number",
|
|
172
|
+
"integer",
|
|
173
|
+
"float",
|
|
174
|
+
"boolean",
|
|
175
|
+
"date",
|
|
176
|
+
"bigint",
|
|
177
|
+
"symbol",
|
|
178
|
+
"function",
|
|
179
|
+
"undefined",
|
|
180
|
+
"null",
|
|
181
|
+
"array",
|
|
182
|
+
"object",
|
|
183
|
+
"unknown",
|
|
184
|
+
"promise",
|
|
185
|
+
"void",
|
|
186
|
+
"never",
|
|
187
|
+
"map",
|
|
188
|
+
"set"
|
|
189
|
+
]);
|
|
190
|
+
|
|
191
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.js
|
|
192
|
+
util.arrayToEnum([
|
|
193
|
+
"invalid_type",
|
|
194
|
+
"invalid_literal",
|
|
195
|
+
"custom",
|
|
196
|
+
"invalid_union",
|
|
197
|
+
"invalid_union_discriminator",
|
|
198
|
+
"invalid_enum_value",
|
|
199
|
+
"unrecognized_keys",
|
|
200
|
+
"invalid_arguments",
|
|
201
|
+
"invalid_return_type",
|
|
202
|
+
"invalid_date",
|
|
203
|
+
"invalid_string",
|
|
204
|
+
"too_small",
|
|
205
|
+
"too_big",
|
|
206
|
+
"invalid_intersection_types",
|
|
207
|
+
"not_multiple_of",
|
|
208
|
+
"not_finite"
|
|
209
|
+
]);
|
|
210
|
+
var ZodError = class _ZodError extends Error {
|
|
211
|
+
get errors() {
|
|
212
|
+
return this.issues;
|
|
213
|
+
}
|
|
214
|
+
constructor(issues) {
|
|
215
|
+
super();
|
|
216
|
+
this.issues = [];
|
|
217
|
+
this.addIssue = (sub) => {
|
|
218
|
+
this.issues = [...this.issues, sub];
|
|
219
|
+
};
|
|
220
|
+
this.addIssues = (subs = []) => {
|
|
221
|
+
this.issues = [...this.issues, ...subs];
|
|
222
|
+
};
|
|
223
|
+
const actualProto = new.target.prototype;
|
|
224
|
+
if (Object.setPrototypeOf) {
|
|
225
|
+
Object.setPrototypeOf(this, actualProto);
|
|
226
|
+
} else {
|
|
227
|
+
this.__proto__ = actualProto;
|
|
228
|
+
}
|
|
229
|
+
this.name = "ZodError";
|
|
230
|
+
this.issues = issues;
|
|
231
|
+
}
|
|
232
|
+
format(_mapper) {
|
|
233
|
+
const mapper = _mapper || function(issue) {
|
|
234
|
+
return issue.message;
|
|
235
|
+
};
|
|
236
|
+
const fieldErrors = { _errors: [] };
|
|
237
|
+
const processError = (error) => {
|
|
238
|
+
for (const issue of error.issues) {
|
|
239
|
+
if (issue.code === "invalid_union") {
|
|
240
|
+
issue.unionErrors.map(processError);
|
|
241
|
+
} else if (issue.code === "invalid_return_type") {
|
|
242
|
+
processError(issue.returnTypeError);
|
|
243
|
+
} else if (issue.code === "invalid_arguments") {
|
|
244
|
+
processError(issue.argumentsError);
|
|
245
|
+
} else if (issue.path.length === 0) {
|
|
246
|
+
fieldErrors._errors.push(mapper(issue));
|
|
247
|
+
} else {
|
|
248
|
+
let curr = fieldErrors;
|
|
249
|
+
let i = 0;
|
|
250
|
+
while (i < issue.path.length) {
|
|
251
|
+
const el = issue.path[i];
|
|
252
|
+
const terminal = i === issue.path.length - 1;
|
|
253
|
+
if (!terminal) {
|
|
254
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
255
|
+
} else {
|
|
256
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
257
|
+
curr[el]._errors.push(mapper(issue));
|
|
258
|
+
}
|
|
259
|
+
curr = curr[el];
|
|
260
|
+
i++;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
processError(this);
|
|
266
|
+
return fieldErrors;
|
|
267
|
+
}
|
|
268
|
+
static assert(value) {
|
|
269
|
+
if (!(value instanceof _ZodError)) {
|
|
270
|
+
throw new Error(`Not a ZodError: ${value}`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
toString() {
|
|
274
|
+
return this.message;
|
|
275
|
+
}
|
|
276
|
+
get message() {
|
|
277
|
+
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
278
|
+
}
|
|
279
|
+
get isEmpty() {
|
|
280
|
+
return this.issues.length === 0;
|
|
281
|
+
}
|
|
282
|
+
flatten(mapper = (issue) => issue.message) {
|
|
283
|
+
const fieldErrors = /* @__PURE__ */ Object.create(null);
|
|
284
|
+
const formErrors = [];
|
|
285
|
+
for (const sub of this.issues) {
|
|
286
|
+
if (sub.path.length > 0) {
|
|
287
|
+
const firstEl = sub.path[0];
|
|
288
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
289
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
290
|
+
} else {
|
|
291
|
+
formErrors.push(mapper(sub));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return { formErrors, fieldErrors };
|
|
295
|
+
}
|
|
296
|
+
get formErrors() {
|
|
297
|
+
return this.flatten();
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
ZodError.create = (issues) => {
|
|
301
|
+
const error = new ZodError(issues);
|
|
302
|
+
return error;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.js
|
|
306
|
+
var errorUtil;
|
|
307
|
+
(function(errorUtil2) {
|
|
308
|
+
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
309
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
310
|
+
})(errorUtil || (errorUtil = {}));
|
|
311
|
+
var ZodFirstPartyTypeKind;
|
|
312
|
+
(function(ZodFirstPartyTypeKind2) {
|
|
313
|
+
ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
|
|
314
|
+
ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";
|
|
315
|
+
ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";
|
|
316
|
+
ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";
|
|
317
|
+
ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";
|
|
318
|
+
ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";
|
|
319
|
+
ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";
|
|
320
|
+
ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";
|
|
321
|
+
ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";
|
|
322
|
+
ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";
|
|
323
|
+
ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";
|
|
324
|
+
ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";
|
|
325
|
+
ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";
|
|
326
|
+
ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";
|
|
327
|
+
ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";
|
|
328
|
+
ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";
|
|
329
|
+
ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
|
|
330
|
+
ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";
|
|
331
|
+
ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";
|
|
332
|
+
ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";
|
|
333
|
+
ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";
|
|
334
|
+
ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";
|
|
335
|
+
ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";
|
|
336
|
+
ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";
|
|
337
|
+
ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";
|
|
338
|
+
ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";
|
|
339
|
+
ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";
|
|
340
|
+
ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";
|
|
341
|
+
ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";
|
|
342
|
+
ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";
|
|
343
|
+
ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";
|
|
344
|
+
ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";
|
|
345
|
+
ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";
|
|
346
|
+
ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";
|
|
347
|
+
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
348
|
+
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
349
|
+
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
350
|
+
|
|
351
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
101
352
|
function parseAnyDef(refs) {
|
|
102
353
|
if (refs.target !== "openAi") {
|
|
103
354
|
return {};
|
|
@@ -112,11 +363,13 @@ function parseAnyDef(refs) {
|
|
|
112
363
|
$ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/")
|
|
113
364
|
};
|
|
114
365
|
}
|
|
366
|
+
|
|
367
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
115
368
|
function parseArrayDef(def, refs) {
|
|
116
369
|
const res = {
|
|
117
370
|
type: "array"
|
|
118
371
|
};
|
|
119
|
-
if (def.type?._def && def.type?._def?.typeName !==
|
|
372
|
+
if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) {
|
|
120
373
|
res.items = parseDef(def.type._def, {
|
|
121
374
|
...refs,
|
|
122
375
|
currentPath: [...refs.currentPath, "items"]
|
|
@@ -135,7 +388,7 @@ function parseArrayDef(def, refs) {
|
|
|
135
388
|
return res;
|
|
136
389
|
}
|
|
137
390
|
|
|
138
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
391
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
139
392
|
function parseBigintDef(def, refs) {
|
|
140
393
|
const res = {
|
|
141
394
|
type: "integer",
|
|
@@ -181,24 +434,24 @@ function parseBigintDef(def, refs) {
|
|
|
181
434
|
return res;
|
|
182
435
|
}
|
|
183
436
|
|
|
184
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
437
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
185
438
|
function parseBooleanDef() {
|
|
186
439
|
return {
|
|
187
440
|
type: "boolean"
|
|
188
441
|
};
|
|
189
442
|
}
|
|
190
443
|
|
|
191
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
444
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
192
445
|
function parseBrandedDef(_def, refs) {
|
|
193
446
|
return parseDef(_def.type._def, refs);
|
|
194
447
|
}
|
|
195
448
|
|
|
196
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
449
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
197
450
|
var parseCatchDef = (def, refs) => {
|
|
198
451
|
return parseDef(def.innerType._def, refs);
|
|
199
452
|
};
|
|
200
453
|
|
|
201
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
454
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
202
455
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
203
456
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
204
457
|
if (Array.isArray(strategy)) {
|
|
@@ -257,7 +510,7 @@ var integerDateParser = (def, refs) => {
|
|
|
257
510
|
return res;
|
|
258
511
|
};
|
|
259
512
|
|
|
260
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
513
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
261
514
|
function parseDefaultDef(_def, refs) {
|
|
262
515
|
return {
|
|
263
516
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -265,12 +518,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
265
518
|
};
|
|
266
519
|
}
|
|
267
520
|
|
|
268
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
521
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
269
522
|
function parseEffectsDef(_def, refs) {
|
|
270
523
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
271
524
|
}
|
|
272
525
|
|
|
273
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
526
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
274
527
|
function parseEnumDef(def) {
|
|
275
528
|
return {
|
|
276
529
|
type: "string",
|
|
@@ -278,7 +531,7 @@ function parseEnumDef(def) {
|
|
|
278
531
|
};
|
|
279
532
|
}
|
|
280
533
|
|
|
281
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
534
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
282
535
|
var isJsonSchema7AllOfType = (type) => {
|
|
283
536
|
if ("type" in type && type.type === "string")
|
|
284
537
|
return false;
|
|
@@ -320,7 +573,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
320
573
|
} : void 0;
|
|
321
574
|
}
|
|
322
575
|
|
|
323
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
576
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
324
577
|
function parseLiteralDef(def, refs) {
|
|
325
578
|
const parsedType = typeof def.value;
|
|
326
579
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -340,8 +593,8 @@ function parseLiteralDef(def, refs) {
|
|
|
340
593
|
};
|
|
341
594
|
}
|
|
342
595
|
|
|
343
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
344
|
-
var
|
|
596
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
597
|
+
var emojiRegex2 = void 0;
|
|
345
598
|
var zodPatterns = {
|
|
346
599
|
/**
|
|
347
600
|
* `c` was changed to `[cC]` to replicate /i flag
|
|
@@ -365,10 +618,10 @@ var zodPatterns = {
|
|
|
365
618
|
* https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
|
|
366
619
|
*/
|
|
367
620
|
emoji: () => {
|
|
368
|
-
if (
|
|
369
|
-
|
|
621
|
+
if (emojiRegex2 === void 0) {
|
|
622
|
+
emojiRegex2 = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u");
|
|
370
623
|
}
|
|
371
|
-
return
|
|
624
|
+
return emojiRegex2;
|
|
372
625
|
},
|
|
373
626
|
/**
|
|
374
627
|
* Unused
|
|
@@ -652,12 +905,12 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
652
905
|
return pattern;
|
|
653
906
|
}
|
|
654
907
|
|
|
655
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
908
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
656
909
|
function parseRecordDef(def, refs) {
|
|
657
910
|
if (refs.target === "openAi") {
|
|
658
911
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
659
912
|
}
|
|
660
|
-
if (refs.target === "openApi3" && def.keyType?._def.typeName ===
|
|
913
|
+
if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {
|
|
661
914
|
return {
|
|
662
915
|
type: "object",
|
|
663
916
|
required: def.keyType._def.values,
|
|
@@ -681,20 +934,20 @@ function parseRecordDef(def, refs) {
|
|
|
681
934
|
if (refs.target === "openApi3") {
|
|
682
935
|
return schema;
|
|
683
936
|
}
|
|
684
|
-
if (def.keyType?._def.typeName ===
|
|
937
|
+
if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString && def.keyType._def.checks?.length) {
|
|
685
938
|
const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
686
939
|
return {
|
|
687
940
|
...schema,
|
|
688
941
|
propertyNames: keyType
|
|
689
942
|
};
|
|
690
|
-
} else if (def.keyType?._def.typeName ===
|
|
943
|
+
} else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {
|
|
691
944
|
return {
|
|
692
945
|
...schema,
|
|
693
946
|
propertyNames: {
|
|
694
947
|
enum: def.keyType._def.values
|
|
695
948
|
}
|
|
696
949
|
};
|
|
697
|
-
} else if (def.keyType?._def.typeName ===
|
|
950
|
+
} else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodBranded && def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString && def.keyType._def.type._def.checks?.length) {
|
|
698
951
|
const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs);
|
|
699
952
|
return {
|
|
700
953
|
...schema,
|
|
@@ -704,7 +957,7 @@ function parseRecordDef(def, refs) {
|
|
|
704
957
|
return schema;
|
|
705
958
|
}
|
|
706
959
|
|
|
707
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
960
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
708
961
|
function parseMapDef(def, refs) {
|
|
709
962
|
if (refs.mapStrategy === "record") {
|
|
710
963
|
return parseRecordDef(def, refs);
|
|
@@ -729,7 +982,7 @@ function parseMapDef(def, refs) {
|
|
|
729
982
|
};
|
|
730
983
|
}
|
|
731
984
|
|
|
732
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
985
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
733
986
|
function parseNativeEnumDef(def) {
|
|
734
987
|
const object = def.values;
|
|
735
988
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -743,7 +996,7 @@ function parseNativeEnumDef(def) {
|
|
|
743
996
|
};
|
|
744
997
|
}
|
|
745
998
|
|
|
746
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
999
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
747
1000
|
function parseNeverDef(refs) {
|
|
748
1001
|
return refs.target === "openAi" ? void 0 : {
|
|
749
1002
|
not: parseAnyDef({
|
|
@@ -753,7 +1006,7 @@ function parseNeverDef(refs) {
|
|
|
753
1006
|
};
|
|
754
1007
|
}
|
|
755
1008
|
|
|
756
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1009
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
757
1010
|
function parseNullDef(refs) {
|
|
758
1011
|
return refs.target === "openApi3" ? {
|
|
759
1012
|
enum: ["null"],
|
|
@@ -763,7 +1016,7 @@ function parseNullDef(refs) {
|
|
|
763
1016
|
};
|
|
764
1017
|
}
|
|
765
1018
|
|
|
766
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1019
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
767
1020
|
var primitiveMappings = {
|
|
768
1021
|
ZodString: "string",
|
|
769
1022
|
ZodNumber: "number",
|
|
@@ -831,7 +1084,7 @@ var asAnyOf = (def, refs) => {
|
|
|
831
1084
|
return anyOf.length ? { anyOf } : void 0;
|
|
832
1085
|
};
|
|
833
1086
|
|
|
834
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1087
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
835
1088
|
function parseNullableDef(def, refs) {
|
|
836
1089
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
837
1090
|
if (refs.target === "openApi3") {
|
|
@@ -863,7 +1116,7 @@ function parseNullableDef(def, refs) {
|
|
|
863
1116
|
return base && { anyOf: [base, { type: "null" }] };
|
|
864
1117
|
}
|
|
865
1118
|
|
|
866
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1119
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
867
1120
|
function parseNumberDef(def, refs) {
|
|
868
1121
|
const res = {
|
|
869
1122
|
type: "number"
|
|
@@ -912,7 +1165,7 @@ function parseNumberDef(def, refs) {
|
|
|
912
1165
|
return res;
|
|
913
1166
|
}
|
|
914
1167
|
|
|
915
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1168
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
916
1169
|
function parseObjectDef(def, refs) {
|
|
917
1170
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
918
1171
|
const result = {
|
|
@@ -982,7 +1235,7 @@ function safeIsOptional(schema) {
|
|
|
982
1235
|
}
|
|
983
1236
|
}
|
|
984
1237
|
|
|
985
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1238
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
986
1239
|
var parseOptionalDef = (def, refs) => {
|
|
987
1240
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
988
1241
|
return parseDef(def.innerType._def, refs);
|
|
@@ -1001,7 +1254,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
1001
1254
|
} : parseAnyDef(refs);
|
|
1002
1255
|
};
|
|
1003
1256
|
|
|
1004
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1257
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
1005
1258
|
var parsePipelineDef = (def, refs) => {
|
|
1006
1259
|
if (refs.pipeStrategy === "input") {
|
|
1007
1260
|
return parseDef(def.in._def, refs);
|
|
@@ -1021,12 +1274,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
1021
1274
|
};
|
|
1022
1275
|
};
|
|
1023
1276
|
|
|
1024
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1277
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
1025
1278
|
function parsePromiseDef(def, refs) {
|
|
1026
1279
|
return parseDef(def.type._def, refs);
|
|
1027
1280
|
}
|
|
1028
1281
|
|
|
1029
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1282
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
1030
1283
|
function parseSetDef(def, refs) {
|
|
1031
1284
|
const items = parseDef(def.valueType._def, {
|
|
1032
1285
|
...refs,
|
|
@@ -1046,7 +1299,7 @@ function parseSetDef(def, refs) {
|
|
|
1046
1299
|
return schema;
|
|
1047
1300
|
}
|
|
1048
1301
|
|
|
1049
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1302
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
1050
1303
|
function parseTupleDef(def, refs) {
|
|
1051
1304
|
if (def.rest) {
|
|
1052
1305
|
return {
|
|
@@ -1074,100 +1327,100 @@ function parseTupleDef(def, refs) {
|
|
|
1074
1327
|
}
|
|
1075
1328
|
}
|
|
1076
1329
|
|
|
1077
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1330
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
1078
1331
|
function parseUndefinedDef(refs) {
|
|
1079
1332
|
return {
|
|
1080
1333
|
not: parseAnyDef(refs)
|
|
1081
1334
|
};
|
|
1082
1335
|
}
|
|
1083
1336
|
|
|
1084
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1337
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
1085
1338
|
function parseUnknownDef(refs) {
|
|
1086
1339
|
return parseAnyDef(refs);
|
|
1087
1340
|
}
|
|
1088
1341
|
|
|
1089
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1342
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
1090
1343
|
var parseReadonlyDef = (def, refs) => {
|
|
1091
1344
|
return parseDef(def.innerType._def, refs);
|
|
1092
1345
|
};
|
|
1093
1346
|
|
|
1094
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1347
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
1095
1348
|
var selectParser = (def, typeName, refs) => {
|
|
1096
1349
|
switch (typeName) {
|
|
1097
|
-
case
|
|
1350
|
+
case ZodFirstPartyTypeKind.ZodString:
|
|
1098
1351
|
return parseStringDef(def, refs);
|
|
1099
|
-
case
|
|
1352
|
+
case ZodFirstPartyTypeKind.ZodNumber:
|
|
1100
1353
|
return parseNumberDef(def, refs);
|
|
1101
|
-
case
|
|
1354
|
+
case ZodFirstPartyTypeKind.ZodObject:
|
|
1102
1355
|
return parseObjectDef(def, refs);
|
|
1103
|
-
case
|
|
1356
|
+
case ZodFirstPartyTypeKind.ZodBigInt:
|
|
1104
1357
|
return parseBigintDef(def, refs);
|
|
1105
|
-
case
|
|
1358
|
+
case ZodFirstPartyTypeKind.ZodBoolean:
|
|
1106
1359
|
return parseBooleanDef();
|
|
1107
|
-
case
|
|
1360
|
+
case ZodFirstPartyTypeKind.ZodDate:
|
|
1108
1361
|
return parseDateDef(def, refs);
|
|
1109
|
-
case
|
|
1362
|
+
case ZodFirstPartyTypeKind.ZodUndefined:
|
|
1110
1363
|
return parseUndefinedDef(refs);
|
|
1111
|
-
case
|
|
1364
|
+
case ZodFirstPartyTypeKind.ZodNull:
|
|
1112
1365
|
return parseNullDef(refs);
|
|
1113
|
-
case
|
|
1366
|
+
case ZodFirstPartyTypeKind.ZodArray:
|
|
1114
1367
|
return parseArrayDef(def, refs);
|
|
1115
|
-
case
|
|
1116
|
-
case
|
|
1368
|
+
case ZodFirstPartyTypeKind.ZodUnion:
|
|
1369
|
+
case ZodFirstPartyTypeKind.ZodDiscriminatedUnion:
|
|
1117
1370
|
return parseUnionDef(def, refs);
|
|
1118
|
-
case
|
|
1371
|
+
case ZodFirstPartyTypeKind.ZodIntersection:
|
|
1119
1372
|
return parseIntersectionDef(def, refs);
|
|
1120
|
-
case
|
|
1373
|
+
case ZodFirstPartyTypeKind.ZodTuple:
|
|
1121
1374
|
return parseTupleDef(def, refs);
|
|
1122
|
-
case
|
|
1375
|
+
case ZodFirstPartyTypeKind.ZodRecord:
|
|
1123
1376
|
return parseRecordDef(def, refs);
|
|
1124
|
-
case
|
|
1377
|
+
case ZodFirstPartyTypeKind.ZodLiteral:
|
|
1125
1378
|
return parseLiteralDef(def, refs);
|
|
1126
|
-
case
|
|
1379
|
+
case ZodFirstPartyTypeKind.ZodEnum:
|
|
1127
1380
|
return parseEnumDef(def);
|
|
1128
|
-
case
|
|
1381
|
+
case ZodFirstPartyTypeKind.ZodNativeEnum:
|
|
1129
1382
|
return parseNativeEnumDef(def);
|
|
1130
|
-
case
|
|
1383
|
+
case ZodFirstPartyTypeKind.ZodNullable:
|
|
1131
1384
|
return parseNullableDef(def, refs);
|
|
1132
|
-
case
|
|
1385
|
+
case ZodFirstPartyTypeKind.ZodOptional:
|
|
1133
1386
|
return parseOptionalDef(def, refs);
|
|
1134
|
-
case
|
|
1387
|
+
case ZodFirstPartyTypeKind.ZodMap:
|
|
1135
1388
|
return parseMapDef(def, refs);
|
|
1136
|
-
case
|
|
1389
|
+
case ZodFirstPartyTypeKind.ZodSet:
|
|
1137
1390
|
return parseSetDef(def, refs);
|
|
1138
|
-
case
|
|
1391
|
+
case ZodFirstPartyTypeKind.ZodLazy:
|
|
1139
1392
|
return () => def.getter()._def;
|
|
1140
|
-
case
|
|
1393
|
+
case ZodFirstPartyTypeKind.ZodPromise:
|
|
1141
1394
|
return parsePromiseDef(def, refs);
|
|
1142
|
-
case
|
|
1143
|
-
case
|
|
1395
|
+
case ZodFirstPartyTypeKind.ZodNaN:
|
|
1396
|
+
case ZodFirstPartyTypeKind.ZodNever:
|
|
1144
1397
|
return parseNeverDef(refs);
|
|
1145
|
-
case
|
|
1398
|
+
case ZodFirstPartyTypeKind.ZodEffects:
|
|
1146
1399
|
return parseEffectsDef(def, refs);
|
|
1147
|
-
case
|
|
1400
|
+
case ZodFirstPartyTypeKind.ZodAny:
|
|
1148
1401
|
return parseAnyDef(refs);
|
|
1149
|
-
case
|
|
1402
|
+
case ZodFirstPartyTypeKind.ZodUnknown:
|
|
1150
1403
|
return parseUnknownDef(refs);
|
|
1151
|
-
case
|
|
1404
|
+
case ZodFirstPartyTypeKind.ZodDefault:
|
|
1152
1405
|
return parseDefaultDef(def, refs);
|
|
1153
|
-
case
|
|
1406
|
+
case ZodFirstPartyTypeKind.ZodBranded:
|
|
1154
1407
|
return parseBrandedDef(def, refs);
|
|
1155
|
-
case
|
|
1408
|
+
case ZodFirstPartyTypeKind.ZodReadonly:
|
|
1156
1409
|
return parseReadonlyDef(def, refs);
|
|
1157
|
-
case
|
|
1410
|
+
case ZodFirstPartyTypeKind.ZodCatch:
|
|
1158
1411
|
return parseCatchDef(def, refs);
|
|
1159
|
-
case
|
|
1412
|
+
case ZodFirstPartyTypeKind.ZodPipeline:
|
|
1160
1413
|
return parsePipelineDef(def, refs);
|
|
1161
|
-
case
|
|
1162
|
-
case
|
|
1163
|
-
case
|
|
1414
|
+
case ZodFirstPartyTypeKind.ZodFunction:
|
|
1415
|
+
case ZodFirstPartyTypeKind.ZodVoid:
|
|
1416
|
+
case ZodFirstPartyTypeKind.ZodSymbol:
|
|
1164
1417
|
return void 0;
|
|
1165
1418
|
default:
|
|
1166
1419
|
return /* @__PURE__ */ ((_) => void 0)();
|
|
1167
1420
|
}
|
|
1168
1421
|
};
|
|
1169
1422
|
|
|
1170
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1423
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
1171
1424
|
function parseDef(def, refs, forceResolution = false) {
|
|
1172
1425
|
const seenItem = refs.seen.get(def);
|
|
1173
1426
|
if (refs.override) {
|
|
@@ -1223,7 +1476,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
1223
1476
|
return jsonSchema;
|
|
1224
1477
|
};
|
|
1225
1478
|
|
|
1226
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1479
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
1227
1480
|
var zodToJsonSchema = (schema, options) => {
|
|
1228
1481
|
const refs = getRefs(options);
|
|
1229
1482
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -1285,7 +1538,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
1285
1538
|
return combined;
|
|
1286
1539
|
};
|
|
1287
1540
|
|
|
1288
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.3
|
|
1541
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/index.js
|
|
1289
1542
|
var esm_default = zodToJsonSchema;
|
|
1290
1543
|
|
|
1291
1544
|
exports.addErrorMessage = addErrorMessage;
|
|
@@ -1332,5 +1585,5 @@ exports.selectParser = selectParser;
|
|
|
1332
1585
|
exports.setResponseValueAndErrors = setResponseValueAndErrors;
|
|
1333
1586
|
exports.zodPatterns = zodPatterns;
|
|
1334
1587
|
exports.zodToJsonSchema = zodToJsonSchema;
|
|
1335
|
-
//# sourceMappingURL=esm-
|
|
1336
|
-
//# sourceMappingURL=esm-
|
|
1588
|
+
//# sourceMappingURL=esm-XCKJ5Z6I.cjs.map
|
|
1589
|
+
//# sourceMappingURL=esm-XCKJ5Z6I.cjs.map
|