@studiometa/productive-mcp 0.10.12 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formatters.d.ts +6 -0
- package/dist/formatters.d.ts.map +1 -1
- package/dist/handlers/people.d.ts.map +1 -1
- package/dist/handlers/valid-includes.d.ts +5 -2
- package/dist/handlers/valid-includes.d.ts.map +1 -1
- package/dist/{handlers-DonE83xo.js → handlers-BE96O-uy.js} +277 -227
- package/dist/handlers-BE96O-uy.js.map +1 -0
- package/dist/handlers.js +1 -1
- package/dist/{http-QQVUnV2e.js → http-BJd4MLh0.js} +4 -4
- package/dist/{http-QQVUnV2e.js.map → http-BJd4MLh0.js.map} +1 -1
- package/dist/http.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server.js +2 -2
- package/dist/{stdio-CRD2nJPs.js → stdio-BnfO285Q.js} +2 -2
- package/dist/{stdio-CRD2nJPs.js.map → stdio-BnfO285Q.js.map} +1 -1
- package/dist/stdio.js +1 -1
- package/dist/{version-DMEaGciu.js → version-Bza5GmW5.js} +3 -3
- package/dist/{version-DMEaGciu.js.map → version-Bza5GmW5.js.map} +1 -1
- package/package.json +8 -8
- package/dist/handlers-DonE83xo.js.map +0 -1
|
@@ -101,10 +101,21 @@ function compactify(obj, fieldsToRemove) {
|
|
|
101
101
|
return result;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
+
* Build the CLI formatter options for an MCP wrapper: the MCP defaults plus any
|
|
105
|
+
* sideloaded `included` array carried over, so each formatter forwards
|
|
106
|
+
* relationships with a single shared call instead of repeating the spread.
|
|
107
|
+
*/
|
|
108
|
+
function withIncluded(options) {
|
|
109
|
+
return {
|
|
110
|
+
...MCP_FORMAT_OPTIONS,
|
|
111
|
+
included: options?.included
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
104
115
|
* Format time entry for agent consumption
|
|
105
116
|
*/
|
|
106
117
|
function formatTimeEntry$1(entry, options) {
|
|
107
|
-
const result = formatTimeEntry(entry,
|
|
118
|
+
const result = formatTimeEntry(entry, withIncluded(options));
|
|
108
119
|
if (options?.compact) return compactify(result, [
|
|
109
120
|
"note",
|
|
110
121
|
"billable_time",
|
|
@@ -116,7 +127,7 @@ function formatTimeEntry$1(entry, options) {
|
|
|
116
127
|
* Format project for agent consumption
|
|
117
128
|
*/
|
|
118
129
|
function formatProject$1(project, options) {
|
|
119
|
-
const result = formatProject(project,
|
|
130
|
+
const result = formatProject(project, withIncluded(options));
|
|
120
131
|
if (options?.compact) return compactify(result, ["budget"]);
|
|
121
132
|
return result;
|
|
122
133
|
}
|
|
@@ -125,10 +136,7 @@ function formatProject$1(project, options) {
|
|
|
125
136
|
* Tasks use included resources to resolve project/company names
|
|
126
137
|
*/
|
|
127
138
|
function formatTask$1(task, options) {
|
|
128
|
-
const result = formatTask(task,
|
|
129
|
-
...MCP_FORMAT_OPTIONS,
|
|
130
|
-
included: options?.included
|
|
131
|
-
});
|
|
139
|
+
const result = formatTask(task, withIncluded(options));
|
|
132
140
|
if (options?.compact) return compactify(result, [
|
|
133
141
|
"description",
|
|
134
142
|
"initial_estimate",
|
|
@@ -143,7 +151,7 @@ function formatTask$1(task, options) {
|
|
|
143
151
|
* Format person for agent consumption
|
|
144
152
|
*/
|
|
145
153
|
function formatPerson$1(person, options) {
|
|
146
|
-
const result = formatPerson(person,
|
|
154
|
+
const result = formatPerson(person, withIncluded(options));
|
|
147
155
|
if (options?.compact) return compactify(result, [
|
|
148
156
|
"title",
|
|
149
157
|
"first_name",
|
|
@@ -155,7 +163,7 @@ function formatPerson$1(person, options) {
|
|
|
155
163
|
* Format service for agent consumption
|
|
156
164
|
*/
|
|
157
165
|
function formatService$1(service, options) {
|
|
158
|
-
const result = formatService(service,
|
|
166
|
+
const result = formatService(service, withIncluded(options));
|
|
159
167
|
if (options?.compact) return compactify(result, ["budgeted_time", "worked_time"]);
|
|
160
168
|
return result;
|
|
161
169
|
}
|
|
@@ -163,7 +171,7 @@ function formatService$1(service, options) {
|
|
|
163
171
|
* Format company for agent consumption
|
|
164
172
|
*/
|
|
165
173
|
function formatCompany$1(company, options) {
|
|
166
|
-
const result = formatCompany(company,
|
|
174
|
+
const result = formatCompany(company, withIncluded(options));
|
|
167
175
|
if (options?.compact) return compactify(result, [
|
|
168
176
|
"billing_name",
|
|
169
177
|
"domain",
|
|
@@ -175,10 +183,7 @@ function formatCompany$1(company, options) {
|
|
|
175
183
|
* Format comment for agent consumption
|
|
176
184
|
*/
|
|
177
185
|
function formatComment$1(comment, options) {
|
|
178
|
-
return formatComment(comment,
|
|
179
|
-
...MCP_FORMAT_OPTIONS,
|
|
180
|
-
included: options?.included
|
|
181
|
-
});
|
|
186
|
+
return formatComment(comment, withIncluded(options));
|
|
182
187
|
}
|
|
183
188
|
/**
|
|
184
189
|
* Format timer for agent consumption
|
|
@@ -190,10 +195,7 @@ function formatTimer$1(timer, _options) {
|
|
|
190
195
|
* Format deal for agent consumption
|
|
191
196
|
*/
|
|
192
197
|
function formatDeal$1(deal, options) {
|
|
193
|
-
const result = formatDeal(deal,
|
|
194
|
-
...MCP_FORMAT_OPTIONS,
|
|
195
|
-
included: options?.included
|
|
196
|
-
});
|
|
198
|
+
const result = formatDeal(deal, withIncluded(options));
|
|
197
199
|
if (options?.compact) return compactify(result, ["won_at", "lost_at"]);
|
|
198
200
|
return result;
|
|
199
201
|
}
|
|
@@ -201,10 +203,7 @@ function formatDeal$1(deal, options) {
|
|
|
201
203
|
* Format booking for agent consumption
|
|
202
204
|
*/
|
|
203
205
|
function formatBooking$1(booking, options) {
|
|
204
|
-
const result = formatBooking(booking,
|
|
205
|
-
...MCP_FORMAT_OPTIONS,
|
|
206
|
-
included: options?.included
|
|
207
|
-
});
|
|
206
|
+
const result = formatBooking(booking, withIncluded(options));
|
|
208
207
|
if (options?.compact) return compactify(result, [
|
|
209
208
|
"approved_at",
|
|
210
209
|
"rejected_at",
|
|
@@ -216,7 +215,7 @@ function formatBooking$1(booking, options) {
|
|
|
216
215
|
* Format attachment for agent consumption
|
|
217
216
|
*/
|
|
218
217
|
function formatAttachment$1(attachment, options) {
|
|
219
|
-
const result = formatAttachment(attachment,
|
|
218
|
+
const result = formatAttachment(attachment, withIncluded(options));
|
|
220
219
|
if (options?.compact) return compactify(result, ["url"]);
|
|
221
220
|
return result;
|
|
222
221
|
}
|
|
@@ -224,7 +223,7 @@ function formatAttachment$1(attachment, options) {
|
|
|
224
223
|
* Format page for agent consumption
|
|
225
224
|
*/
|
|
226
225
|
function formatPage$1(page, options) {
|
|
227
|
-
const result = formatPage(page,
|
|
226
|
+
const result = formatPage(page, withIncluded(options));
|
|
228
227
|
if (options?.compact) return compactify(result, ["body", "version_number"]);
|
|
229
228
|
return result;
|
|
230
229
|
}
|
|
@@ -232,24 +231,18 @@ function formatPage$1(page, options) {
|
|
|
232
231
|
* Format discussion for agent consumption
|
|
233
232
|
*/
|
|
234
233
|
function formatDiscussion$1(discussion, options) {
|
|
235
|
-
const result = formatDiscussion(discussion,
|
|
234
|
+
const result = formatDiscussion(discussion, withIncluded(options));
|
|
236
235
|
if (options?.compact) return compactify(result, ["body"]);
|
|
237
236
|
return result;
|
|
238
237
|
}
|
|
239
238
|
function formatActivity$1(activity, options) {
|
|
240
|
-
return formatActivity(activity,
|
|
241
|
-
...MCP_FORMAT_OPTIONS,
|
|
242
|
-
included: options?.included
|
|
243
|
-
});
|
|
239
|
+
return formatActivity(activity, withIncluded(options));
|
|
244
240
|
}
|
|
245
241
|
/**
|
|
246
242
|
* Format custom field for agent consumption
|
|
247
243
|
*/
|
|
248
244
|
function formatCustomField$1(field, options) {
|
|
249
|
-
return formatCustomField(field,
|
|
250
|
-
...MCP_FORMAT_OPTIONS,
|
|
251
|
-
included: options?.included
|
|
252
|
-
});
|
|
245
|
+
return formatCustomField(field, withIncluded(options));
|
|
253
246
|
}
|
|
254
247
|
/**
|
|
255
248
|
* Format list response with pagination
|
|
@@ -263,10 +256,7 @@ function formatListResponse$1(data, formatter, meta, options) {
|
|
|
263
256
|
const wrappedFormatter = (item, _cliOptions) => {
|
|
264
257
|
return formatter(item, options);
|
|
265
258
|
};
|
|
266
|
-
return formatListResponse(data, wrappedFormatter, meta,
|
|
267
|
-
...MCP_FORMAT_OPTIONS,
|
|
268
|
-
included: options?.included
|
|
269
|
-
});
|
|
259
|
+
return formatListResponse(data, wrappedFormatter, meta, withIncluded(options));
|
|
270
260
|
}
|
|
271
261
|
//#endregion
|
|
272
262
|
//#region src/hints.ts
|
|
@@ -1229,7 +1219,7 @@ var VALID_ACTIONS$3 = [
|
|
|
1229
1219
|
"resolve"
|
|
1230
1220
|
];
|
|
1231
1221
|
async function handlePeople(action, args, ctx, credentials) {
|
|
1232
|
-
const { formatOptions, filter, page, perPage } = ctx;
|
|
1222
|
+
const { formatOptions, filter, page, perPage, include } = ctx;
|
|
1233
1223
|
const { id, query, type } = args;
|
|
1234
1224
|
if (action === "resolve") return handleResolve({
|
|
1235
1225
|
query,
|
|
@@ -1238,7 +1228,14 @@ async function handlePeople(action, args, ctx, credentials) {
|
|
|
1238
1228
|
const execCtx = ctx.executor();
|
|
1239
1229
|
if (action === "get") {
|
|
1240
1230
|
if (!id) return inputErrorResult(ErrorMessages.missingId("get"));
|
|
1241
|
-
const
|
|
1231
|
+
const result = await getPerson({
|
|
1232
|
+
id,
|
|
1233
|
+
include
|
|
1234
|
+
}, execCtx);
|
|
1235
|
+
const formatted = formatPerson$1(result.data, {
|
|
1236
|
+
...formatOptions,
|
|
1237
|
+
included: result.included
|
|
1238
|
+
});
|
|
1242
1239
|
if (ctx.includeHints !== false) return jsonResult({
|
|
1243
1240
|
...formatted,
|
|
1244
1241
|
_hints: getPersonHints(id)
|
|
@@ -1247,7 +1244,14 @@ async function handlePeople(action, args, ctx, credentials) {
|
|
|
1247
1244
|
}
|
|
1248
1245
|
if (action === "me") {
|
|
1249
1246
|
if (credentials.userId) {
|
|
1250
|
-
const
|
|
1247
|
+
const result = await getPerson({
|
|
1248
|
+
id: credentials.userId,
|
|
1249
|
+
include
|
|
1250
|
+
}, execCtx);
|
|
1251
|
+
const formatted = formatPerson$1(result.data, {
|
|
1252
|
+
...formatOptions,
|
|
1253
|
+
included: result.included
|
|
1254
|
+
});
|
|
1251
1255
|
if (ctx.includeHints !== false) return jsonResult({
|
|
1252
1256
|
...formatted,
|
|
1253
1257
|
_hints: getPersonHints(credentials.userId)
|
|
@@ -1264,9 +1268,13 @@ async function handlePeople(action, args, ctx, credentials) {
|
|
|
1264
1268
|
const result = await listPeople({
|
|
1265
1269
|
page,
|
|
1266
1270
|
perPage,
|
|
1267
|
-
additionalFilters: filter
|
|
1271
|
+
additionalFilters: filter,
|
|
1272
|
+
include
|
|
1268
1273
|
}, execCtx);
|
|
1269
|
-
const response = formatListResponse$1(result.data, formatPerson$1, result.meta,
|
|
1274
|
+
const response = formatListResponse$1(result.data, formatPerson$1, result.meta, {
|
|
1275
|
+
...formatOptions,
|
|
1276
|
+
included: result.included
|
|
1277
|
+
});
|
|
1270
1278
|
if (result.resolved && Object.keys(result.resolved).length > 0) return jsonResult({
|
|
1271
1279
|
...response,
|
|
1272
1280
|
_resolved: result.resolved
|
|
@@ -1860,12 +1868,13 @@ var handleServices = createResourceHandler({
|
|
|
1860
1868
|
get: getService
|
|
1861
1869
|
},
|
|
1862
1870
|
customActions: { list: async (args, ctx, execCtx) => {
|
|
1863
|
-
const { formatOptions, filter, page, perPage } = ctx;
|
|
1871
|
+
const { formatOptions, filter, page, perPage, include } = ctx;
|
|
1864
1872
|
const additionalFilters = { ...filter };
|
|
1865
1873
|
const result = await listServices({
|
|
1866
1874
|
page,
|
|
1867
1875
|
perPage,
|
|
1868
|
-
additionalFilters
|
|
1876
|
+
additionalFilters,
|
|
1877
|
+
include
|
|
1869
1878
|
}, execCtx);
|
|
1870
1879
|
const response = formatListResponse$1(result.data, formatService$1, result.meta, {
|
|
1871
1880
|
...formatOptions,
|
|
@@ -2498,7 +2507,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
2498
2507
|
data: result.value
|
|
2499
2508
|
};
|
|
2500
2509
|
};
|
|
2501
|
-
var safeParse$1 = /* @__PURE__
|
|
2510
|
+
var safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
2502
2511
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2503
2512
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
2504
2513
|
let result = schema._zod.run({
|
|
@@ -2514,7 +2523,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
2514
2523
|
data: result.value
|
|
2515
2524
|
};
|
|
2516
2525
|
};
|
|
2517
|
-
var safeParseAsync$1 = /* @__PURE__
|
|
2526
|
+
var safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
2518
2527
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
2519
2528
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
2520
2529
|
return _parse(_Err)(schema, value, ctx);
|
|
@@ -2576,7 +2585,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
2576
2585
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
2577
2586
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
2578
2587
|
var 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])))`;
|
|
2579
|
-
var date$1 =
|
|
2588
|
+
var date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
2580
2589
|
function timeSource(args) {
|
|
2581
2590
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
2582
2591
|
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+)?)?`;
|
|
@@ -2604,7 +2613,7 @@ var lowercase = /^[^A-Z]*$/;
|
|
|
2604
2613
|
var uppercase = /^[^a-z]*$/;
|
|
2605
2614
|
//#endregion
|
|
2606
2615
|
//#region ../../node_modules/zod/v4/core/checks.js
|
|
2607
|
-
var $ZodCheck =
|
|
2616
|
+
var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
2608
2617
|
var _a;
|
|
2609
2618
|
inst._zod ?? (inst._zod = {});
|
|
2610
2619
|
inst._zod.def = def;
|
|
@@ -2615,7 +2624,7 @@ var numericOriginMap = {
|
|
|
2615
2624
|
bigint: "bigint",
|
|
2616
2625
|
object: "date"
|
|
2617
2626
|
};
|
|
2618
|
-
var $ZodCheckLessThan =
|
|
2627
|
+
var $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
2619
2628
|
$ZodCheck.init(inst, def);
|
|
2620
2629
|
const origin = numericOriginMap[typeof def.value];
|
|
2621
2630
|
inst._zod.onattach.push((inst) => {
|
|
@@ -2637,7 +2646,7 @@ var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst,
|
|
|
2637
2646
|
});
|
|
2638
2647
|
};
|
|
2639
2648
|
});
|
|
2640
|
-
var $ZodCheckGreaterThan =
|
|
2649
|
+
var $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
2641
2650
|
$ZodCheck.init(inst, def);
|
|
2642
2651
|
const origin = numericOriginMap[typeof def.value];
|
|
2643
2652
|
inst._zod.onattach.push((inst) => {
|
|
@@ -2659,7 +2668,7 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2659
2668
|
});
|
|
2660
2669
|
};
|
|
2661
2670
|
});
|
|
2662
|
-
var $ZodCheckMultipleOf =
|
|
2671
|
+
var $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2663
2672
|
$ZodCheck.init(inst, def);
|
|
2664
2673
|
inst._zod.onattach.push((inst) => {
|
|
2665
2674
|
var _a;
|
|
@@ -2678,7 +2687,7 @@ var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (i
|
|
|
2678
2687
|
});
|
|
2679
2688
|
};
|
|
2680
2689
|
});
|
|
2681
|
-
var $ZodCheckNumberFormat =
|
|
2690
|
+
var $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
2682
2691
|
$ZodCheck.init(inst, def);
|
|
2683
2692
|
def.format = def.format || "float64";
|
|
2684
2693
|
const isInt = def.format?.includes("int");
|
|
@@ -2749,7 +2758,7 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
2749
2758
|
});
|
|
2750
2759
|
};
|
|
2751
2760
|
});
|
|
2752
|
-
var $ZodCheckMaxLength =
|
|
2761
|
+
var $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2753
2762
|
var _a;
|
|
2754
2763
|
$ZodCheck.init(inst, def);
|
|
2755
2764
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -2775,7 +2784,7 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2775
2784
|
});
|
|
2776
2785
|
};
|
|
2777
2786
|
});
|
|
2778
|
-
var $ZodCheckMinLength =
|
|
2787
|
+
var $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2779
2788
|
var _a;
|
|
2780
2789
|
$ZodCheck.init(inst, def);
|
|
2781
2790
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -2801,7 +2810,7 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2801
2810
|
});
|
|
2802
2811
|
};
|
|
2803
2812
|
});
|
|
2804
|
-
var $ZodCheckLengthEquals =
|
|
2813
|
+
var $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2805
2814
|
var _a;
|
|
2806
2815
|
$ZodCheck.init(inst, def);
|
|
2807
2816
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -2837,7 +2846,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2837
2846
|
});
|
|
2838
2847
|
};
|
|
2839
2848
|
});
|
|
2840
|
-
var $ZodCheckStringFormat =
|
|
2849
|
+
var $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2841
2850
|
var _a, _b;
|
|
2842
2851
|
$ZodCheck.init(inst, def);
|
|
2843
2852
|
inst._zod.onattach.push((inst) => {
|
|
@@ -2863,7 +2872,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2863
2872
|
});
|
|
2864
2873
|
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
2865
2874
|
});
|
|
2866
|
-
var $ZodCheckRegex =
|
|
2875
|
+
var $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
2867
2876
|
$ZodCheckStringFormat.init(inst, def);
|
|
2868
2877
|
inst._zod.check = (payload) => {
|
|
2869
2878
|
def.pattern.lastIndex = 0;
|
|
@@ -2879,15 +2888,15 @@ var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def)
|
|
|
2879
2888
|
});
|
|
2880
2889
|
};
|
|
2881
2890
|
});
|
|
2882
|
-
var $ZodCheckLowerCase =
|
|
2891
|
+
var $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
2883
2892
|
def.pattern ?? (def.pattern = lowercase);
|
|
2884
2893
|
$ZodCheckStringFormat.init(inst, def);
|
|
2885
2894
|
});
|
|
2886
|
-
var $ZodCheckUpperCase =
|
|
2895
|
+
var $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
2887
2896
|
def.pattern ?? (def.pattern = uppercase);
|
|
2888
2897
|
$ZodCheckStringFormat.init(inst, def);
|
|
2889
2898
|
});
|
|
2890
|
-
var $ZodCheckIncludes =
|
|
2899
|
+
var $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
2891
2900
|
$ZodCheck.init(inst, def);
|
|
2892
2901
|
const escapedRegex = escapeRegex(def.includes);
|
|
2893
2902
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
@@ -2910,7 +2919,7 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
|
|
|
2910
2919
|
});
|
|
2911
2920
|
};
|
|
2912
2921
|
});
|
|
2913
|
-
var $ZodCheckStartsWith =
|
|
2922
|
+
var $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
2914
2923
|
$ZodCheck.init(inst, def);
|
|
2915
2924
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
2916
2925
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -2932,7 +2941,7 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
|
|
|
2932
2941
|
});
|
|
2933
2942
|
};
|
|
2934
2943
|
});
|
|
2935
|
-
var $ZodCheckEndsWith =
|
|
2944
|
+
var $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
2936
2945
|
$ZodCheck.init(inst, def);
|
|
2937
2946
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
2938
2947
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -2954,7 +2963,7 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
|
|
|
2954
2963
|
});
|
|
2955
2964
|
};
|
|
2956
2965
|
});
|
|
2957
|
-
var $ZodCheckOverwrite =
|
|
2966
|
+
var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
2958
2967
|
$ZodCheck.init(inst, def);
|
|
2959
2968
|
inst._zod.check = (payload) => {
|
|
2960
2969
|
payload.value = def.tx(payload.value);
|
|
@@ -3000,7 +3009,7 @@ var version = {
|
|
|
3000
3009
|
};
|
|
3001
3010
|
//#endregion
|
|
3002
3011
|
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
3003
|
-
var $ZodType =
|
|
3012
|
+
var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
3004
3013
|
var _a;
|
|
3005
3014
|
inst ?? (inst = {});
|
|
3006
3015
|
inst._zod.def = def;
|
|
@@ -3088,7 +3097,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
3088
3097
|
version: 1
|
|
3089
3098
|
}));
|
|
3090
3099
|
});
|
|
3091
|
-
var $ZodString =
|
|
3100
|
+
var $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
3092
3101
|
$ZodType.init(inst, def);
|
|
3093
3102
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
3094
3103
|
inst._zod.parse = (payload, _) => {
|
|
@@ -3105,15 +3114,15 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
3105
3114
|
return payload;
|
|
3106
3115
|
};
|
|
3107
3116
|
});
|
|
3108
|
-
var $ZodStringFormat =
|
|
3117
|
+
var $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
3109
3118
|
$ZodCheckStringFormat.init(inst, def);
|
|
3110
3119
|
$ZodString.init(inst, def);
|
|
3111
3120
|
});
|
|
3112
|
-
var $ZodGUID =
|
|
3121
|
+
var $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
3113
3122
|
def.pattern ?? (def.pattern = guid);
|
|
3114
3123
|
$ZodStringFormat.init(inst, def);
|
|
3115
3124
|
});
|
|
3116
|
-
var $ZodUUID =
|
|
3125
|
+
var $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
3117
3126
|
if (def.version) {
|
|
3118
3127
|
const v = {
|
|
3119
3128
|
v1: 1,
|
|
@@ -3130,11 +3139,11 @@ var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
|
3130
3139
|
} else def.pattern ?? (def.pattern = uuid());
|
|
3131
3140
|
$ZodStringFormat.init(inst, def);
|
|
3132
3141
|
});
|
|
3133
|
-
var $ZodEmail =
|
|
3142
|
+
var $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
3134
3143
|
def.pattern ?? (def.pattern = email);
|
|
3135
3144
|
$ZodStringFormat.init(inst, def);
|
|
3136
3145
|
});
|
|
3137
|
-
var $ZodURL =
|
|
3146
|
+
var $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
3138
3147
|
$ZodStringFormat.init(inst, def);
|
|
3139
3148
|
inst._zod.check = (payload) => {
|
|
3140
3149
|
try {
|
|
@@ -3178,56 +3187,56 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
3178
3187
|
}
|
|
3179
3188
|
};
|
|
3180
3189
|
});
|
|
3181
|
-
var $ZodEmoji =
|
|
3190
|
+
var $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
3182
3191
|
def.pattern ?? (def.pattern = emoji());
|
|
3183
3192
|
$ZodStringFormat.init(inst, def);
|
|
3184
3193
|
});
|
|
3185
|
-
var $ZodNanoID =
|
|
3194
|
+
var $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
3186
3195
|
def.pattern ?? (def.pattern = nanoid);
|
|
3187
3196
|
$ZodStringFormat.init(inst, def);
|
|
3188
3197
|
});
|
|
3189
|
-
var $ZodCUID =
|
|
3198
|
+
var $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
3190
3199
|
def.pattern ?? (def.pattern = cuid);
|
|
3191
3200
|
$ZodStringFormat.init(inst, def);
|
|
3192
3201
|
});
|
|
3193
|
-
var $ZodCUID2 =
|
|
3202
|
+
var $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
3194
3203
|
def.pattern ?? (def.pattern = cuid2);
|
|
3195
3204
|
$ZodStringFormat.init(inst, def);
|
|
3196
3205
|
});
|
|
3197
|
-
var $ZodULID =
|
|
3206
|
+
var $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
3198
3207
|
def.pattern ?? (def.pattern = ulid);
|
|
3199
3208
|
$ZodStringFormat.init(inst, def);
|
|
3200
3209
|
});
|
|
3201
|
-
var $ZodXID =
|
|
3210
|
+
var $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
3202
3211
|
def.pattern ?? (def.pattern = xid);
|
|
3203
3212
|
$ZodStringFormat.init(inst, def);
|
|
3204
3213
|
});
|
|
3205
|
-
var $ZodKSUID =
|
|
3214
|
+
var $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
3206
3215
|
def.pattern ?? (def.pattern = ksuid);
|
|
3207
3216
|
$ZodStringFormat.init(inst, def);
|
|
3208
3217
|
});
|
|
3209
|
-
var $ZodISODateTime =
|
|
3218
|
+
var $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
3210
3219
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
3211
3220
|
$ZodStringFormat.init(inst, def);
|
|
3212
3221
|
});
|
|
3213
|
-
var $ZodISODate =
|
|
3222
|
+
var $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
3214
3223
|
def.pattern ?? (def.pattern = date$1);
|
|
3215
3224
|
$ZodStringFormat.init(inst, def);
|
|
3216
3225
|
});
|
|
3217
|
-
var $ZodISOTime =
|
|
3226
|
+
var $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
3218
3227
|
def.pattern ?? (def.pattern = time$1(def));
|
|
3219
3228
|
$ZodStringFormat.init(inst, def);
|
|
3220
3229
|
});
|
|
3221
|
-
var $ZodISODuration =
|
|
3230
|
+
var $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
3222
3231
|
def.pattern ?? (def.pattern = duration$1);
|
|
3223
3232
|
$ZodStringFormat.init(inst, def);
|
|
3224
3233
|
});
|
|
3225
|
-
var $ZodIPv4 =
|
|
3234
|
+
var $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
3226
3235
|
def.pattern ?? (def.pattern = ipv4);
|
|
3227
3236
|
$ZodStringFormat.init(inst, def);
|
|
3228
3237
|
inst._zod.bag.format = `ipv4`;
|
|
3229
3238
|
});
|
|
3230
|
-
var $ZodIPv6 =
|
|
3239
|
+
var $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
3231
3240
|
def.pattern ?? (def.pattern = ipv6);
|
|
3232
3241
|
$ZodStringFormat.init(inst, def);
|
|
3233
3242
|
inst._zod.bag.format = `ipv6`;
|
|
@@ -3245,11 +3254,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
3245
3254
|
}
|
|
3246
3255
|
};
|
|
3247
3256
|
});
|
|
3248
|
-
var $ZodCIDRv4 =
|
|
3257
|
+
var $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
3249
3258
|
def.pattern ?? (def.pattern = cidrv4);
|
|
3250
3259
|
$ZodStringFormat.init(inst, def);
|
|
3251
3260
|
});
|
|
3252
|
-
var $ZodCIDRv6 =
|
|
3261
|
+
var $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
3253
3262
|
def.pattern ?? (def.pattern = cidrv6);
|
|
3254
3263
|
$ZodStringFormat.init(inst, def);
|
|
3255
3264
|
inst._zod.check = (payload) => {
|
|
@@ -3283,7 +3292,7 @@ function isValidBase64(data) {
|
|
|
3283
3292
|
return false;
|
|
3284
3293
|
}
|
|
3285
3294
|
}
|
|
3286
|
-
var $ZodBase64 =
|
|
3295
|
+
var $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
3287
3296
|
def.pattern ?? (def.pattern = base64);
|
|
3288
3297
|
$ZodStringFormat.init(inst, def);
|
|
3289
3298
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -3303,7 +3312,7 @@ function isValidBase64URL(data) {
|
|
|
3303
3312
|
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
3304
3313
|
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
3305
3314
|
}
|
|
3306
|
-
var $ZodBase64URL =
|
|
3315
|
+
var $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
3307
3316
|
def.pattern ?? (def.pattern = base64url);
|
|
3308
3317
|
$ZodStringFormat.init(inst, def);
|
|
3309
3318
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -3318,7 +3327,7 @@ var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) =>
|
|
|
3318
3327
|
});
|
|
3319
3328
|
};
|
|
3320
3329
|
});
|
|
3321
|
-
var $ZodE164 =
|
|
3330
|
+
var $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
3322
3331
|
def.pattern ?? (def.pattern = e164);
|
|
3323
3332
|
$ZodStringFormat.init(inst, def);
|
|
3324
3333
|
});
|
|
@@ -3337,7 +3346,7 @@ function isValidJWT(token, algorithm = null) {
|
|
|
3337
3346
|
return false;
|
|
3338
3347
|
}
|
|
3339
3348
|
}
|
|
3340
|
-
var $ZodJWT =
|
|
3349
|
+
var $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
3341
3350
|
$ZodStringFormat.init(inst, def);
|
|
3342
3351
|
inst._zod.check = (payload) => {
|
|
3343
3352
|
if (isValidJWT(payload.value, def.alg)) return;
|
|
@@ -3350,7 +3359,7 @@ var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
3350
3359
|
});
|
|
3351
3360
|
};
|
|
3352
3361
|
});
|
|
3353
|
-
var $ZodNumber =
|
|
3362
|
+
var $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
3354
3363
|
$ZodType.init(inst, def);
|
|
3355
3364
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
3356
3365
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -3370,11 +3379,11 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
3370
3379
|
return payload;
|
|
3371
3380
|
};
|
|
3372
3381
|
});
|
|
3373
|
-
var $ZodNumberFormat =
|
|
3382
|
+
var $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
3374
3383
|
$ZodCheckNumberFormat.init(inst, def);
|
|
3375
3384
|
$ZodNumber.init(inst, def);
|
|
3376
3385
|
});
|
|
3377
|
-
var $ZodBoolean =
|
|
3386
|
+
var $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
3378
3387
|
$ZodType.init(inst, def);
|
|
3379
3388
|
inst._zod.pattern = boolean$1;
|
|
3380
3389
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -3392,7 +3401,7 @@ var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
3392
3401
|
return payload;
|
|
3393
3402
|
};
|
|
3394
3403
|
});
|
|
3395
|
-
var $ZodNull =
|
|
3404
|
+
var $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
|
|
3396
3405
|
$ZodType.init(inst, def);
|
|
3397
3406
|
inst._zod.pattern = _null$2;
|
|
3398
3407
|
inst._zod.values = new Set([null]);
|
|
@@ -3408,11 +3417,11 @@ var $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
3408
3417
|
return payload;
|
|
3409
3418
|
};
|
|
3410
3419
|
});
|
|
3411
|
-
var $ZodUnknown =
|
|
3420
|
+
var $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
3412
3421
|
$ZodType.init(inst, def);
|
|
3413
3422
|
inst._zod.parse = (payload) => payload;
|
|
3414
3423
|
});
|
|
3415
|
-
var $ZodNever =
|
|
3424
|
+
var $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
3416
3425
|
$ZodType.init(inst, def);
|
|
3417
3426
|
inst._zod.parse = (payload, _ctx) => {
|
|
3418
3427
|
payload.issues.push({
|
|
@@ -3428,7 +3437,7 @@ function handleArrayResult(result, final, index) {
|
|
|
3428
3437
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
3429
3438
|
final.value[index] = result.value;
|
|
3430
3439
|
}
|
|
3431
|
-
var $ZodArray =
|
|
3440
|
+
var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
3432
3441
|
$ZodType.init(inst, def);
|
|
3433
3442
|
inst._zod.parse = (payload, ctx) => {
|
|
3434
3443
|
const input = payload.value;
|
|
@@ -3507,7 +3516,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3507
3516
|
return payload;
|
|
3508
3517
|
});
|
|
3509
3518
|
}
|
|
3510
|
-
var $ZodObject =
|
|
3519
|
+
var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
3511
3520
|
$ZodType.init(inst, def);
|
|
3512
3521
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
3513
3522
|
const sh = def.shape;
|
|
@@ -3562,7 +3571,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3562
3571
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
3563
3572
|
};
|
|
3564
3573
|
});
|
|
3565
|
-
var $ZodObjectJIT =
|
|
3574
|
+
var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
3566
3575
|
$ZodObject.init(inst, def);
|
|
3567
3576
|
const superParse = inst._zod.parse;
|
|
3568
3577
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -3674,7 +3683,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
3674
3683
|
});
|
|
3675
3684
|
return final;
|
|
3676
3685
|
}
|
|
3677
|
-
var $ZodUnion =
|
|
3686
|
+
var $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
3678
3687
|
$ZodType.init(inst, def);
|
|
3679
3688
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
3680
3689
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -3712,7 +3721,7 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3712
3721
|
});
|
|
3713
3722
|
};
|
|
3714
3723
|
});
|
|
3715
|
-
var $ZodDiscriminatedUnion =
|
|
3724
|
+
var $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
3716
3725
|
def.inclusive = false;
|
|
3717
3726
|
$ZodUnion.init(inst, def);
|
|
3718
3727
|
const _super = inst._zod.parse;
|
|
@@ -3767,7 +3776,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3767
3776
|
return payload;
|
|
3768
3777
|
};
|
|
3769
3778
|
});
|
|
3770
|
-
var $ZodIntersection =
|
|
3779
|
+
var $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
3771
3780
|
$ZodType.init(inst, def);
|
|
3772
3781
|
inst._zod.parse = (payload, ctx) => {
|
|
3773
3782
|
const input = payload.value;
|
|
@@ -3866,7 +3875,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
3866
3875
|
result.value = merged.data;
|
|
3867
3876
|
return result;
|
|
3868
3877
|
}
|
|
3869
|
-
var $ZodRecord =
|
|
3878
|
+
var $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
3870
3879
|
$ZodType.init(inst, def);
|
|
3871
3880
|
inst._zod.parse = (payload, ctx) => {
|
|
3872
3881
|
const input = payload.value;
|
|
@@ -3957,7 +3966,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3957
3966
|
return payload;
|
|
3958
3967
|
};
|
|
3959
3968
|
});
|
|
3960
|
-
var $ZodEnum =
|
|
3969
|
+
var $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
3961
3970
|
$ZodType.init(inst, def);
|
|
3962
3971
|
const values = getEnumValues(def.entries);
|
|
3963
3972
|
const valuesSet = new Set(values);
|
|
@@ -3975,7 +3984,7 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
3975
3984
|
return payload;
|
|
3976
3985
|
};
|
|
3977
3986
|
});
|
|
3978
|
-
var $ZodLiteral =
|
|
3987
|
+
var $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
3979
3988
|
$ZodType.init(inst, def);
|
|
3980
3989
|
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
3981
3990
|
const values = new Set(def.values);
|
|
@@ -3993,7 +4002,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
3993
4002
|
return payload;
|
|
3994
4003
|
};
|
|
3995
4004
|
});
|
|
3996
|
-
var $ZodTransform =
|
|
4005
|
+
var $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
3997
4006
|
$ZodType.init(inst, def);
|
|
3998
4007
|
inst._zod.parse = (payload, ctx) => {
|
|
3999
4008
|
if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4014,7 +4023,7 @@ function handleOptionalResult(result, input) {
|
|
|
4014
4023
|
};
|
|
4015
4024
|
return result;
|
|
4016
4025
|
}
|
|
4017
|
-
var $ZodOptional =
|
|
4026
|
+
var $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
4018
4027
|
$ZodType.init(inst, def);
|
|
4019
4028
|
inst._zod.optin = "optional";
|
|
4020
4029
|
inst._zod.optout = "optional";
|
|
@@ -4035,7 +4044,7 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
4035
4044
|
return def.innerType._zod.run(payload, ctx);
|
|
4036
4045
|
};
|
|
4037
4046
|
});
|
|
4038
|
-
var $ZodExactOptional =
|
|
4047
|
+
var $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
4039
4048
|
$ZodOptional.init(inst, def);
|
|
4040
4049
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4041
4050
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -4043,7 +4052,7 @@ var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst,
|
|
|
4043
4052
|
return def.innerType._zod.run(payload, ctx);
|
|
4044
4053
|
};
|
|
4045
4054
|
});
|
|
4046
|
-
var $ZodNullable =
|
|
4055
|
+
var $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
4047
4056
|
$ZodType.init(inst, def);
|
|
4048
4057
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
4049
4058
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -4059,7 +4068,7 @@ var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
|
|
|
4059
4068
|
return def.innerType._zod.run(payload, ctx);
|
|
4060
4069
|
};
|
|
4061
4070
|
});
|
|
4062
|
-
var $ZodDefault =
|
|
4071
|
+
var $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
4063
4072
|
$ZodType.init(inst, def);
|
|
4064
4073
|
inst._zod.optin = "optional";
|
|
4065
4074
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -4081,7 +4090,7 @@ function handleDefaultResult(payload, def) {
|
|
|
4081
4090
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
4082
4091
|
return payload;
|
|
4083
4092
|
}
|
|
4084
|
-
var $ZodPrefault =
|
|
4093
|
+
var $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
4085
4094
|
$ZodType.init(inst, def);
|
|
4086
4095
|
inst._zod.optin = "optional";
|
|
4087
4096
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -4091,7 +4100,7 @@ var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
|
|
|
4091
4100
|
return def.innerType._zod.run(payload, ctx);
|
|
4092
4101
|
};
|
|
4093
4102
|
});
|
|
4094
|
-
var $ZodNonOptional =
|
|
4103
|
+
var $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
4095
4104
|
$ZodType.init(inst, def);
|
|
4096
4105
|
defineLazy(inst._zod, "values", () => {
|
|
4097
4106
|
const v = def.innerType._zod.values;
|
|
@@ -4112,7 +4121,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
4112
4121
|
});
|
|
4113
4122
|
return payload;
|
|
4114
4123
|
}
|
|
4115
|
-
var $ZodCatch =
|
|
4124
|
+
var $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
4116
4125
|
$ZodType.init(inst, def);
|
|
4117
4126
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
4118
4127
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -4144,7 +4153,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
4144
4153
|
return payload;
|
|
4145
4154
|
};
|
|
4146
4155
|
});
|
|
4147
|
-
var $ZodPipe =
|
|
4156
|
+
var $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
4148
4157
|
$ZodType.init(inst, def);
|
|
4149
4158
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
4150
4159
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -4171,7 +4180,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4171
4180
|
issues: left.issues
|
|
4172
4181
|
}, ctx);
|
|
4173
4182
|
}
|
|
4174
|
-
var $ZodReadonly =
|
|
4183
|
+
var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
4175
4184
|
$ZodType.init(inst, def);
|
|
4176
4185
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
4177
4186
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -4188,7 +4197,7 @@ function handleReadonlyResult(payload) {
|
|
|
4188
4197
|
payload.value = Object.freeze(payload.value);
|
|
4189
4198
|
return payload;
|
|
4190
4199
|
}
|
|
4191
|
-
var $ZodCustom =
|
|
4200
|
+
var $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
4192
4201
|
$ZodCheck.init(inst, def);
|
|
4193
4202
|
$ZodType.init(inst, def);
|
|
4194
4203
|
inst._zod.parse = (payload, _) => {
|
|
@@ -4263,14 +4272,14 @@ function registry() {
|
|
|
4263
4272
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
4264
4273
|
//#endregion
|
|
4265
4274
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
4266
|
-
|
|
4275
|
+
// @__NO_SIDE_EFFECTS__
|
|
4267
4276
|
function _string(Class, params) {
|
|
4268
4277
|
return new Class({
|
|
4269
4278
|
type: "string",
|
|
4270
4279
|
...normalizeParams(params)
|
|
4271
4280
|
});
|
|
4272
4281
|
}
|
|
4273
|
-
|
|
4282
|
+
// @__NO_SIDE_EFFECTS__
|
|
4274
4283
|
function _email(Class, params) {
|
|
4275
4284
|
return new Class({
|
|
4276
4285
|
type: "string",
|
|
@@ -4280,7 +4289,7 @@ function _email(Class, params) {
|
|
|
4280
4289
|
...normalizeParams(params)
|
|
4281
4290
|
});
|
|
4282
4291
|
}
|
|
4283
|
-
|
|
4292
|
+
// @__NO_SIDE_EFFECTS__
|
|
4284
4293
|
function _guid(Class, params) {
|
|
4285
4294
|
return new Class({
|
|
4286
4295
|
type: "string",
|
|
@@ -4290,7 +4299,7 @@ function _guid(Class, params) {
|
|
|
4290
4299
|
...normalizeParams(params)
|
|
4291
4300
|
});
|
|
4292
4301
|
}
|
|
4293
|
-
|
|
4302
|
+
// @__NO_SIDE_EFFECTS__
|
|
4294
4303
|
function _uuid(Class, params) {
|
|
4295
4304
|
return new Class({
|
|
4296
4305
|
type: "string",
|
|
@@ -4300,7 +4309,7 @@ function _uuid(Class, params) {
|
|
|
4300
4309
|
...normalizeParams(params)
|
|
4301
4310
|
});
|
|
4302
4311
|
}
|
|
4303
|
-
|
|
4312
|
+
// @__NO_SIDE_EFFECTS__
|
|
4304
4313
|
function _uuidv4(Class, params) {
|
|
4305
4314
|
return new Class({
|
|
4306
4315
|
type: "string",
|
|
@@ -4311,7 +4320,7 @@ function _uuidv4(Class, params) {
|
|
|
4311
4320
|
...normalizeParams(params)
|
|
4312
4321
|
});
|
|
4313
4322
|
}
|
|
4314
|
-
|
|
4323
|
+
// @__NO_SIDE_EFFECTS__
|
|
4315
4324
|
function _uuidv6(Class, params) {
|
|
4316
4325
|
return new Class({
|
|
4317
4326
|
type: "string",
|
|
@@ -4322,7 +4331,7 @@ function _uuidv6(Class, params) {
|
|
|
4322
4331
|
...normalizeParams(params)
|
|
4323
4332
|
});
|
|
4324
4333
|
}
|
|
4325
|
-
|
|
4334
|
+
// @__NO_SIDE_EFFECTS__
|
|
4326
4335
|
function _uuidv7(Class, params) {
|
|
4327
4336
|
return new Class({
|
|
4328
4337
|
type: "string",
|
|
@@ -4333,7 +4342,7 @@ function _uuidv7(Class, params) {
|
|
|
4333
4342
|
...normalizeParams(params)
|
|
4334
4343
|
});
|
|
4335
4344
|
}
|
|
4336
|
-
|
|
4345
|
+
// @__NO_SIDE_EFFECTS__
|
|
4337
4346
|
function _url(Class, params) {
|
|
4338
4347
|
return new Class({
|
|
4339
4348
|
type: "string",
|
|
@@ -4343,7 +4352,7 @@ function _url(Class, params) {
|
|
|
4343
4352
|
...normalizeParams(params)
|
|
4344
4353
|
});
|
|
4345
4354
|
}
|
|
4346
|
-
|
|
4355
|
+
// @__NO_SIDE_EFFECTS__
|
|
4347
4356
|
function _emoji(Class, params) {
|
|
4348
4357
|
return new Class({
|
|
4349
4358
|
type: "string",
|
|
@@ -4353,7 +4362,7 @@ function _emoji(Class, params) {
|
|
|
4353
4362
|
...normalizeParams(params)
|
|
4354
4363
|
});
|
|
4355
4364
|
}
|
|
4356
|
-
|
|
4365
|
+
// @__NO_SIDE_EFFECTS__
|
|
4357
4366
|
function _nanoid(Class, params) {
|
|
4358
4367
|
return new Class({
|
|
4359
4368
|
type: "string",
|
|
@@ -4363,7 +4372,7 @@ function _nanoid(Class, params) {
|
|
|
4363
4372
|
...normalizeParams(params)
|
|
4364
4373
|
});
|
|
4365
4374
|
}
|
|
4366
|
-
|
|
4375
|
+
// @__NO_SIDE_EFFECTS__
|
|
4367
4376
|
function _cuid(Class, params) {
|
|
4368
4377
|
return new Class({
|
|
4369
4378
|
type: "string",
|
|
@@ -4373,7 +4382,7 @@ function _cuid(Class, params) {
|
|
|
4373
4382
|
...normalizeParams(params)
|
|
4374
4383
|
});
|
|
4375
4384
|
}
|
|
4376
|
-
|
|
4385
|
+
// @__NO_SIDE_EFFECTS__
|
|
4377
4386
|
function _cuid2(Class, params) {
|
|
4378
4387
|
return new Class({
|
|
4379
4388
|
type: "string",
|
|
@@ -4383,7 +4392,7 @@ function _cuid2(Class, params) {
|
|
|
4383
4392
|
...normalizeParams(params)
|
|
4384
4393
|
});
|
|
4385
4394
|
}
|
|
4386
|
-
|
|
4395
|
+
// @__NO_SIDE_EFFECTS__
|
|
4387
4396
|
function _ulid(Class, params) {
|
|
4388
4397
|
return new Class({
|
|
4389
4398
|
type: "string",
|
|
@@ -4393,7 +4402,7 @@ function _ulid(Class, params) {
|
|
|
4393
4402
|
...normalizeParams(params)
|
|
4394
4403
|
});
|
|
4395
4404
|
}
|
|
4396
|
-
|
|
4405
|
+
// @__NO_SIDE_EFFECTS__
|
|
4397
4406
|
function _xid(Class, params) {
|
|
4398
4407
|
return new Class({
|
|
4399
4408
|
type: "string",
|
|
@@ -4403,7 +4412,7 @@ function _xid(Class, params) {
|
|
|
4403
4412
|
...normalizeParams(params)
|
|
4404
4413
|
});
|
|
4405
4414
|
}
|
|
4406
|
-
|
|
4415
|
+
// @__NO_SIDE_EFFECTS__
|
|
4407
4416
|
function _ksuid(Class, params) {
|
|
4408
4417
|
return new Class({
|
|
4409
4418
|
type: "string",
|
|
@@ -4413,7 +4422,7 @@ function _ksuid(Class, params) {
|
|
|
4413
4422
|
...normalizeParams(params)
|
|
4414
4423
|
});
|
|
4415
4424
|
}
|
|
4416
|
-
|
|
4425
|
+
// @__NO_SIDE_EFFECTS__
|
|
4417
4426
|
function _ipv4(Class, params) {
|
|
4418
4427
|
return new Class({
|
|
4419
4428
|
type: "string",
|
|
@@ -4423,7 +4432,7 @@ function _ipv4(Class, params) {
|
|
|
4423
4432
|
...normalizeParams(params)
|
|
4424
4433
|
});
|
|
4425
4434
|
}
|
|
4426
|
-
|
|
4435
|
+
// @__NO_SIDE_EFFECTS__
|
|
4427
4436
|
function _ipv6(Class, params) {
|
|
4428
4437
|
return new Class({
|
|
4429
4438
|
type: "string",
|
|
@@ -4433,7 +4442,7 @@ function _ipv6(Class, params) {
|
|
|
4433
4442
|
...normalizeParams(params)
|
|
4434
4443
|
});
|
|
4435
4444
|
}
|
|
4436
|
-
|
|
4445
|
+
// @__NO_SIDE_EFFECTS__
|
|
4437
4446
|
function _cidrv4(Class, params) {
|
|
4438
4447
|
return new Class({
|
|
4439
4448
|
type: "string",
|
|
@@ -4443,7 +4452,7 @@ function _cidrv4(Class, params) {
|
|
|
4443
4452
|
...normalizeParams(params)
|
|
4444
4453
|
});
|
|
4445
4454
|
}
|
|
4446
|
-
|
|
4455
|
+
// @__NO_SIDE_EFFECTS__
|
|
4447
4456
|
function _cidrv6(Class, params) {
|
|
4448
4457
|
return new Class({
|
|
4449
4458
|
type: "string",
|
|
@@ -4453,7 +4462,7 @@ function _cidrv6(Class, params) {
|
|
|
4453
4462
|
...normalizeParams(params)
|
|
4454
4463
|
});
|
|
4455
4464
|
}
|
|
4456
|
-
|
|
4465
|
+
// @__NO_SIDE_EFFECTS__
|
|
4457
4466
|
function _base64(Class, params) {
|
|
4458
4467
|
return new Class({
|
|
4459
4468
|
type: "string",
|
|
@@ -4463,7 +4472,7 @@ function _base64(Class, params) {
|
|
|
4463
4472
|
...normalizeParams(params)
|
|
4464
4473
|
});
|
|
4465
4474
|
}
|
|
4466
|
-
|
|
4475
|
+
// @__NO_SIDE_EFFECTS__
|
|
4467
4476
|
function _base64url(Class, params) {
|
|
4468
4477
|
return new Class({
|
|
4469
4478
|
type: "string",
|
|
@@ -4473,7 +4482,7 @@ function _base64url(Class, params) {
|
|
|
4473
4482
|
...normalizeParams(params)
|
|
4474
4483
|
});
|
|
4475
4484
|
}
|
|
4476
|
-
|
|
4485
|
+
// @__NO_SIDE_EFFECTS__
|
|
4477
4486
|
function _e164(Class, params) {
|
|
4478
4487
|
return new Class({
|
|
4479
4488
|
type: "string",
|
|
@@ -4483,7 +4492,7 @@ function _e164(Class, params) {
|
|
|
4483
4492
|
...normalizeParams(params)
|
|
4484
4493
|
});
|
|
4485
4494
|
}
|
|
4486
|
-
|
|
4495
|
+
// @__NO_SIDE_EFFECTS__
|
|
4487
4496
|
function _jwt(Class, params) {
|
|
4488
4497
|
return new Class({
|
|
4489
4498
|
type: "string",
|
|
@@ -4493,7 +4502,7 @@ function _jwt(Class, params) {
|
|
|
4493
4502
|
...normalizeParams(params)
|
|
4494
4503
|
});
|
|
4495
4504
|
}
|
|
4496
|
-
|
|
4505
|
+
// @__NO_SIDE_EFFECTS__
|
|
4497
4506
|
function _isoDateTime(Class, params) {
|
|
4498
4507
|
return new Class({
|
|
4499
4508
|
type: "string",
|
|
@@ -4505,7 +4514,7 @@ function _isoDateTime(Class, params) {
|
|
|
4505
4514
|
...normalizeParams(params)
|
|
4506
4515
|
});
|
|
4507
4516
|
}
|
|
4508
|
-
|
|
4517
|
+
// @__NO_SIDE_EFFECTS__
|
|
4509
4518
|
function _isoDate(Class, params) {
|
|
4510
4519
|
return new Class({
|
|
4511
4520
|
type: "string",
|
|
@@ -4514,7 +4523,7 @@ function _isoDate(Class, params) {
|
|
|
4514
4523
|
...normalizeParams(params)
|
|
4515
4524
|
});
|
|
4516
4525
|
}
|
|
4517
|
-
|
|
4526
|
+
// @__NO_SIDE_EFFECTS__
|
|
4518
4527
|
function _isoTime(Class, params) {
|
|
4519
4528
|
return new Class({
|
|
4520
4529
|
type: "string",
|
|
@@ -4524,7 +4533,7 @@ function _isoTime(Class, params) {
|
|
|
4524
4533
|
...normalizeParams(params)
|
|
4525
4534
|
});
|
|
4526
4535
|
}
|
|
4527
|
-
|
|
4536
|
+
// @__NO_SIDE_EFFECTS__
|
|
4528
4537
|
function _isoDuration(Class, params) {
|
|
4529
4538
|
return new Class({
|
|
4530
4539
|
type: "string",
|
|
@@ -4533,7 +4542,7 @@ function _isoDuration(Class, params) {
|
|
|
4533
4542
|
...normalizeParams(params)
|
|
4534
4543
|
});
|
|
4535
4544
|
}
|
|
4536
|
-
|
|
4545
|
+
// @__NO_SIDE_EFFECTS__
|
|
4537
4546
|
function _number(Class, params) {
|
|
4538
4547
|
return new Class({
|
|
4539
4548
|
type: "number",
|
|
@@ -4541,7 +4550,7 @@ function _number(Class, params) {
|
|
|
4541
4550
|
...normalizeParams(params)
|
|
4542
4551
|
});
|
|
4543
4552
|
}
|
|
4544
|
-
|
|
4553
|
+
// @__NO_SIDE_EFFECTS__
|
|
4545
4554
|
function _int(Class, params) {
|
|
4546
4555
|
return new Class({
|
|
4547
4556
|
type: "number",
|
|
@@ -4551,32 +4560,32 @@ function _int(Class, params) {
|
|
|
4551
4560
|
...normalizeParams(params)
|
|
4552
4561
|
});
|
|
4553
4562
|
}
|
|
4554
|
-
|
|
4563
|
+
// @__NO_SIDE_EFFECTS__
|
|
4555
4564
|
function _boolean(Class, params) {
|
|
4556
4565
|
return new Class({
|
|
4557
4566
|
type: "boolean",
|
|
4558
4567
|
...normalizeParams(params)
|
|
4559
4568
|
});
|
|
4560
4569
|
}
|
|
4561
|
-
|
|
4570
|
+
// @__NO_SIDE_EFFECTS__
|
|
4562
4571
|
function _null$1(Class, params) {
|
|
4563
4572
|
return new Class({
|
|
4564
4573
|
type: "null",
|
|
4565
4574
|
...normalizeParams(params)
|
|
4566
4575
|
});
|
|
4567
4576
|
}
|
|
4568
|
-
|
|
4577
|
+
// @__NO_SIDE_EFFECTS__
|
|
4569
4578
|
function _unknown(Class) {
|
|
4570
4579
|
return new Class({ type: "unknown" });
|
|
4571
4580
|
}
|
|
4572
|
-
|
|
4581
|
+
// @__NO_SIDE_EFFECTS__
|
|
4573
4582
|
function _never(Class, params) {
|
|
4574
4583
|
return new Class({
|
|
4575
4584
|
type: "never",
|
|
4576
4585
|
...normalizeParams(params)
|
|
4577
4586
|
});
|
|
4578
4587
|
}
|
|
4579
|
-
|
|
4588
|
+
// @__NO_SIDE_EFFECTS__
|
|
4580
4589
|
function _lt(value, params) {
|
|
4581
4590
|
return new $ZodCheckLessThan({
|
|
4582
4591
|
check: "less_than",
|
|
@@ -4585,7 +4594,7 @@ function _lt(value, params) {
|
|
|
4585
4594
|
inclusive: false
|
|
4586
4595
|
});
|
|
4587
4596
|
}
|
|
4588
|
-
|
|
4597
|
+
// @__NO_SIDE_EFFECTS__
|
|
4589
4598
|
function _lte(value, params) {
|
|
4590
4599
|
return new $ZodCheckLessThan({
|
|
4591
4600
|
check: "less_than",
|
|
@@ -4594,7 +4603,7 @@ function _lte(value, params) {
|
|
|
4594
4603
|
inclusive: true
|
|
4595
4604
|
});
|
|
4596
4605
|
}
|
|
4597
|
-
|
|
4606
|
+
// @__NO_SIDE_EFFECTS__
|
|
4598
4607
|
function _gt(value, params) {
|
|
4599
4608
|
return new $ZodCheckGreaterThan({
|
|
4600
4609
|
check: "greater_than",
|
|
@@ -4603,7 +4612,7 @@ function _gt(value, params) {
|
|
|
4603
4612
|
inclusive: false
|
|
4604
4613
|
});
|
|
4605
4614
|
}
|
|
4606
|
-
|
|
4615
|
+
// @__NO_SIDE_EFFECTS__
|
|
4607
4616
|
function _gte(value, params) {
|
|
4608
4617
|
return new $ZodCheckGreaterThan({
|
|
4609
4618
|
check: "greater_than",
|
|
@@ -4612,7 +4621,7 @@ function _gte(value, params) {
|
|
|
4612
4621
|
inclusive: true
|
|
4613
4622
|
});
|
|
4614
4623
|
}
|
|
4615
|
-
|
|
4624
|
+
// @__NO_SIDE_EFFECTS__
|
|
4616
4625
|
function _multipleOf(value, params) {
|
|
4617
4626
|
return new $ZodCheckMultipleOf({
|
|
4618
4627
|
check: "multiple_of",
|
|
@@ -4620,7 +4629,7 @@ function _multipleOf(value, params) {
|
|
|
4620
4629
|
value
|
|
4621
4630
|
});
|
|
4622
4631
|
}
|
|
4623
|
-
|
|
4632
|
+
// @__NO_SIDE_EFFECTS__
|
|
4624
4633
|
function _maxLength(maximum, params) {
|
|
4625
4634
|
return new $ZodCheckMaxLength({
|
|
4626
4635
|
check: "max_length",
|
|
@@ -4628,7 +4637,7 @@ function _maxLength(maximum, params) {
|
|
|
4628
4637
|
maximum
|
|
4629
4638
|
});
|
|
4630
4639
|
}
|
|
4631
|
-
|
|
4640
|
+
// @__NO_SIDE_EFFECTS__
|
|
4632
4641
|
function _minLength(minimum, params) {
|
|
4633
4642
|
return new $ZodCheckMinLength({
|
|
4634
4643
|
check: "min_length",
|
|
@@ -4636,7 +4645,7 @@ function _minLength(minimum, params) {
|
|
|
4636
4645
|
minimum
|
|
4637
4646
|
});
|
|
4638
4647
|
}
|
|
4639
|
-
|
|
4648
|
+
// @__NO_SIDE_EFFECTS__
|
|
4640
4649
|
function _length(length, params) {
|
|
4641
4650
|
return new $ZodCheckLengthEquals({
|
|
4642
4651
|
check: "length_equals",
|
|
@@ -4644,7 +4653,7 @@ function _length(length, params) {
|
|
|
4644
4653
|
length
|
|
4645
4654
|
});
|
|
4646
4655
|
}
|
|
4647
|
-
|
|
4656
|
+
// @__NO_SIDE_EFFECTS__
|
|
4648
4657
|
function _regex(pattern, params) {
|
|
4649
4658
|
return new $ZodCheckRegex({
|
|
4650
4659
|
check: "string_format",
|
|
@@ -4653,7 +4662,7 @@ function _regex(pattern, params) {
|
|
|
4653
4662
|
pattern
|
|
4654
4663
|
});
|
|
4655
4664
|
}
|
|
4656
|
-
|
|
4665
|
+
// @__NO_SIDE_EFFECTS__
|
|
4657
4666
|
function _lowercase(params) {
|
|
4658
4667
|
return new $ZodCheckLowerCase({
|
|
4659
4668
|
check: "string_format",
|
|
@@ -4661,7 +4670,7 @@ function _lowercase(params) {
|
|
|
4661
4670
|
...normalizeParams(params)
|
|
4662
4671
|
});
|
|
4663
4672
|
}
|
|
4664
|
-
|
|
4673
|
+
// @__NO_SIDE_EFFECTS__
|
|
4665
4674
|
function _uppercase(params) {
|
|
4666
4675
|
return new $ZodCheckUpperCase({
|
|
4667
4676
|
check: "string_format",
|
|
@@ -4669,7 +4678,7 @@ function _uppercase(params) {
|
|
|
4669
4678
|
...normalizeParams(params)
|
|
4670
4679
|
});
|
|
4671
4680
|
}
|
|
4672
|
-
|
|
4681
|
+
// @__NO_SIDE_EFFECTS__
|
|
4673
4682
|
function _includes(includes, params) {
|
|
4674
4683
|
return new $ZodCheckIncludes({
|
|
4675
4684
|
check: "string_format",
|
|
@@ -4678,7 +4687,7 @@ function _includes(includes, params) {
|
|
|
4678
4687
|
includes
|
|
4679
4688
|
});
|
|
4680
4689
|
}
|
|
4681
|
-
|
|
4690
|
+
// @__NO_SIDE_EFFECTS__
|
|
4682
4691
|
function _startsWith(prefix, params) {
|
|
4683
4692
|
return new $ZodCheckStartsWith({
|
|
4684
4693
|
check: "string_format",
|
|
@@ -4687,7 +4696,7 @@ function _startsWith(prefix, params) {
|
|
|
4687
4696
|
prefix
|
|
4688
4697
|
});
|
|
4689
4698
|
}
|
|
4690
|
-
|
|
4699
|
+
// @__NO_SIDE_EFFECTS__
|
|
4691
4700
|
function _endsWith(suffix, params) {
|
|
4692
4701
|
return new $ZodCheckEndsWith({
|
|
4693
4702
|
check: "string_format",
|
|
@@ -4696,34 +4705,34 @@ function _endsWith(suffix, params) {
|
|
|
4696
4705
|
suffix
|
|
4697
4706
|
});
|
|
4698
4707
|
}
|
|
4699
|
-
|
|
4708
|
+
// @__NO_SIDE_EFFECTS__
|
|
4700
4709
|
function _overwrite(tx) {
|
|
4701
4710
|
return new $ZodCheckOverwrite({
|
|
4702
4711
|
check: "overwrite",
|
|
4703
4712
|
tx
|
|
4704
4713
|
});
|
|
4705
4714
|
}
|
|
4706
|
-
|
|
4715
|
+
// @__NO_SIDE_EFFECTS__
|
|
4707
4716
|
function _normalize(form) {
|
|
4708
4717
|
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
4709
4718
|
}
|
|
4710
|
-
|
|
4719
|
+
// @__NO_SIDE_EFFECTS__
|
|
4711
4720
|
function _trim() {
|
|
4712
4721
|
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
4713
4722
|
}
|
|
4714
|
-
|
|
4723
|
+
// @__NO_SIDE_EFFECTS__
|
|
4715
4724
|
function _toLowerCase() {
|
|
4716
4725
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
4717
4726
|
}
|
|
4718
|
-
|
|
4727
|
+
// @__NO_SIDE_EFFECTS__
|
|
4719
4728
|
function _toUpperCase() {
|
|
4720
4729
|
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
4721
4730
|
}
|
|
4722
|
-
|
|
4731
|
+
// @__NO_SIDE_EFFECTS__
|
|
4723
4732
|
function _slugify() {
|
|
4724
4733
|
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
4725
4734
|
}
|
|
4726
|
-
|
|
4735
|
+
// @__NO_SIDE_EFFECTS__
|
|
4727
4736
|
function _array(Class, element, params) {
|
|
4728
4737
|
return new Class({
|
|
4729
4738
|
type: "array",
|
|
@@ -4731,7 +4740,7 @@ function _array(Class, element, params) {
|
|
|
4731
4740
|
...normalizeParams(params)
|
|
4732
4741
|
});
|
|
4733
4742
|
}
|
|
4734
|
-
|
|
4743
|
+
// @__NO_SIDE_EFFECTS__
|
|
4735
4744
|
function _custom(Class, fn, _params) {
|
|
4736
4745
|
const norm = normalizeParams(_params);
|
|
4737
4746
|
norm.abort ?? (norm.abort = true);
|
|
@@ -4742,7 +4751,7 @@ function _custom(Class, fn, _params) {
|
|
|
4742
4751
|
...norm
|
|
4743
4752
|
});
|
|
4744
4753
|
}
|
|
4745
|
-
|
|
4754
|
+
// @__NO_SIDE_EFFECTS__
|
|
4746
4755
|
function _refine(Class, fn, _params) {
|
|
4747
4756
|
return new Class({
|
|
4748
4757
|
type: "custom",
|
|
@@ -4751,7 +4760,7 @@ function _refine(Class, fn, _params) {
|
|
|
4751
4760
|
...normalizeParams(_params)
|
|
4752
4761
|
});
|
|
4753
4762
|
}
|
|
4754
|
-
|
|
4763
|
+
// @__NO_SIDE_EFFECTS__
|
|
4755
4764
|
function _superRefine(fn) {
|
|
4756
4765
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
4757
4766
|
payload.addIssue = (issue$2) => {
|
|
@@ -4770,7 +4779,7 @@ function _superRefine(fn) {
|
|
|
4770
4779
|
});
|
|
4771
4780
|
return ch;
|
|
4772
4781
|
}
|
|
4773
|
-
|
|
4782
|
+
// @__NO_SIDE_EFFECTS__
|
|
4774
4783
|
function _check(fn, params) {
|
|
4775
4784
|
const ch = new $ZodCheck({
|
|
4776
4785
|
check: "custom",
|
|
@@ -5339,28 +5348,28 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
5339
5348
|
};
|
|
5340
5349
|
//#endregion
|
|
5341
5350
|
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
5342
|
-
var ZodISODateTime =
|
|
5351
|
+
var ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
5343
5352
|
$ZodISODateTime.init(inst, def);
|
|
5344
5353
|
ZodStringFormat.init(inst, def);
|
|
5345
5354
|
});
|
|
5346
5355
|
function datetime(params) {
|
|
5347
5356
|
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
5348
5357
|
}
|
|
5349
|
-
var ZodISODate =
|
|
5358
|
+
var ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
5350
5359
|
$ZodISODate.init(inst, def);
|
|
5351
5360
|
ZodStringFormat.init(inst, def);
|
|
5352
5361
|
});
|
|
5353
5362
|
function date(params) {
|
|
5354
5363
|
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
5355
5364
|
}
|
|
5356
|
-
var ZodISOTime =
|
|
5365
|
+
var ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
5357
5366
|
$ZodISOTime.init(inst, def);
|
|
5358
5367
|
ZodStringFormat.init(inst, def);
|
|
5359
5368
|
});
|
|
5360
5369
|
function time(params) {
|
|
5361
5370
|
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
5362
5371
|
}
|
|
5363
|
-
var ZodISODuration =
|
|
5372
|
+
var ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
5364
5373
|
$ZodISODuration.init(inst, def);
|
|
5365
5374
|
ZodStringFormat.init(inst, def);
|
|
5366
5375
|
});
|
|
@@ -5406,7 +5415,7 @@ var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
5406
5415
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5407
5416
|
//#endregion
|
|
5408
5417
|
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
5409
|
-
var ZodType =
|
|
5418
|
+
var ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
5410
5419
|
$ZodType.init(inst, def);
|
|
5411
5420
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
5412
5421
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -5483,7 +5492,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
5483
5492
|
return inst;
|
|
5484
5493
|
});
|
|
5485
5494
|
/** @internal */
|
|
5486
|
-
var _ZodString =
|
|
5495
|
+
var _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
5487
5496
|
$ZodString.init(inst, def);
|
|
5488
5497
|
ZodType.init(inst, def);
|
|
5489
5498
|
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
@@ -5507,7 +5516,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
5507
5516
|
inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
|
|
5508
5517
|
inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
|
|
5509
5518
|
});
|
|
5510
|
-
var ZodString =
|
|
5519
|
+
var ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
5511
5520
|
$ZodString.init(inst, def);
|
|
5512
5521
|
_ZodString.init(inst, def);
|
|
5513
5522
|
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
@@ -5541,87 +5550,87 @@ var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
5541
5550
|
function string(params) {
|
|
5542
5551
|
return /* @__PURE__ */ _string(ZodString, params);
|
|
5543
5552
|
}
|
|
5544
|
-
var ZodStringFormat =
|
|
5553
|
+
var ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
5545
5554
|
$ZodStringFormat.init(inst, def);
|
|
5546
5555
|
_ZodString.init(inst, def);
|
|
5547
5556
|
});
|
|
5548
|
-
var ZodEmail =
|
|
5557
|
+
var ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
5549
5558
|
$ZodEmail.init(inst, def);
|
|
5550
5559
|
ZodStringFormat.init(inst, def);
|
|
5551
5560
|
});
|
|
5552
|
-
var ZodGUID =
|
|
5561
|
+
var ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
5553
5562
|
$ZodGUID.init(inst, def);
|
|
5554
5563
|
ZodStringFormat.init(inst, def);
|
|
5555
5564
|
});
|
|
5556
|
-
var ZodUUID =
|
|
5565
|
+
var ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
5557
5566
|
$ZodUUID.init(inst, def);
|
|
5558
5567
|
ZodStringFormat.init(inst, def);
|
|
5559
5568
|
});
|
|
5560
|
-
var ZodURL =
|
|
5569
|
+
var ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
5561
5570
|
$ZodURL.init(inst, def);
|
|
5562
5571
|
ZodStringFormat.init(inst, def);
|
|
5563
5572
|
});
|
|
5564
|
-
var ZodEmoji =
|
|
5573
|
+
var ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
5565
5574
|
$ZodEmoji.init(inst, def);
|
|
5566
5575
|
ZodStringFormat.init(inst, def);
|
|
5567
5576
|
});
|
|
5568
|
-
var ZodNanoID =
|
|
5577
|
+
var ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
5569
5578
|
$ZodNanoID.init(inst, def);
|
|
5570
5579
|
ZodStringFormat.init(inst, def);
|
|
5571
5580
|
});
|
|
5572
|
-
var ZodCUID =
|
|
5581
|
+
var ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
5573
5582
|
$ZodCUID.init(inst, def);
|
|
5574
5583
|
ZodStringFormat.init(inst, def);
|
|
5575
5584
|
});
|
|
5576
|
-
var ZodCUID2 =
|
|
5585
|
+
var ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
5577
5586
|
$ZodCUID2.init(inst, def);
|
|
5578
5587
|
ZodStringFormat.init(inst, def);
|
|
5579
5588
|
});
|
|
5580
|
-
var ZodULID =
|
|
5589
|
+
var ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
5581
5590
|
$ZodULID.init(inst, def);
|
|
5582
5591
|
ZodStringFormat.init(inst, def);
|
|
5583
5592
|
});
|
|
5584
|
-
var ZodXID =
|
|
5593
|
+
var ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
5585
5594
|
$ZodXID.init(inst, def);
|
|
5586
5595
|
ZodStringFormat.init(inst, def);
|
|
5587
5596
|
});
|
|
5588
|
-
var ZodKSUID =
|
|
5597
|
+
var ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
5589
5598
|
$ZodKSUID.init(inst, def);
|
|
5590
5599
|
ZodStringFormat.init(inst, def);
|
|
5591
5600
|
});
|
|
5592
|
-
var ZodIPv4 =
|
|
5601
|
+
var ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
5593
5602
|
$ZodIPv4.init(inst, def);
|
|
5594
5603
|
ZodStringFormat.init(inst, def);
|
|
5595
5604
|
});
|
|
5596
|
-
var ZodIPv6 =
|
|
5605
|
+
var ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
5597
5606
|
$ZodIPv6.init(inst, def);
|
|
5598
5607
|
ZodStringFormat.init(inst, def);
|
|
5599
5608
|
});
|
|
5600
|
-
var ZodCIDRv4 =
|
|
5609
|
+
var ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
5601
5610
|
$ZodCIDRv4.init(inst, def);
|
|
5602
5611
|
ZodStringFormat.init(inst, def);
|
|
5603
5612
|
});
|
|
5604
|
-
var ZodCIDRv6 =
|
|
5613
|
+
var ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
5605
5614
|
$ZodCIDRv6.init(inst, def);
|
|
5606
5615
|
ZodStringFormat.init(inst, def);
|
|
5607
5616
|
});
|
|
5608
|
-
var ZodBase64 =
|
|
5617
|
+
var ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
5609
5618
|
$ZodBase64.init(inst, def);
|
|
5610
5619
|
ZodStringFormat.init(inst, def);
|
|
5611
5620
|
});
|
|
5612
|
-
var ZodBase64URL =
|
|
5621
|
+
var ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
5613
5622
|
$ZodBase64URL.init(inst, def);
|
|
5614
5623
|
ZodStringFormat.init(inst, def);
|
|
5615
5624
|
});
|
|
5616
|
-
var ZodE164 =
|
|
5625
|
+
var ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
5617
5626
|
$ZodE164.init(inst, def);
|
|
5618
5627
|
ZodStringFormat.init(inst, def);
|
|
5619
5628
|
});
|
|
5620
|
-
var ZodJWT =
|
|
5629
|
+
var ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
5621
5630
|
$ZodJWT.init(inst, def);
|
|
5622
5631
|
ZodStringFormat.init(inst, def);
|
|
5623
5632
|
});
|
|
5624
|
-
var ZodNumber =
|
|
5633
|
+
var ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
5625
5634
|
$ZodNumber.init(inst, def);
|
|
5626
5635
|
ZodType.init(inst, def);
|
|
5627
5636
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
@@ -5650,14 +5659,14 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
5650
5659
|
function number(params) {
|
|
5651
5660
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
5652
5661
|
}
|
|
5653
|
-
var ZodNumberFormat =
|
|
5662
|
+
var ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
5654
5663
|
$ZodNumberFormat.init(inst, def);
|
|
5655
5664
|
ZodNumber.init(inst, def);
|
|
5656
5665
|
});
|
|
5657
5666
|
function int(params) {
|
|
5658
5667
|
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
5659
5668
|
}
|
|
5660
|
-
var ZodBoolean =
|
|
5669
|
+
var ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
5661
5670
|
$ZodBoolean.init(inst, def);
|
|
5662
5671
|
ZodType.init(inst, def);
|
|
5663
5672
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
@@ -5665,7 +5674,7 @@ var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
5665
5674
|
function boolean(params) {
|
|
5666
5675
|
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
5667
5676
|
}
|
|
5668
|
-
var ZodNull =
|
|
5677
|
+
var ZodNull = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => {
|
|
5669
5678
|
$ZodNull.init(inst, def);
|
|
5670
5679
|
ZodType.init(inst, def);
|
|
5671
5680
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
@@ -5673,7 +5682,7 @@ var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
5673
5682
|
function _null(params) {
|
|
5674
5683
|
return /* @__PURE__ */ _null$1(ZodNull, params);
|
|
5675
5684
|
}
|
|
5676
|
-
var ZodUnknown =
|
|
5685
|
+
var ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
5677
5686
|
$ZodUnknown.init(inst, def);
|
|
5678
5687
|
ZodType.init(inst, def);
|
|
5679
5688
|
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
@@ -5681,7 +5690,7 @@ var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
5681
5690
|
function unknown() {
|
|
5682
5691
|
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
5683
5692
|
}
|
|
5684
|
-
var ZodNever =
|
|
5693
|
+
var ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
5685
5694
|
$ZodNever.init(inst, def);
|
|
5686
5695
|
ZodType.init(inst, def);
|
|
5687
5696
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
@@ -5689,7 +5698,7 @@ var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
5689
5698
|
function never(params) {
|
|
5690
5699
|
return /* @__PURE__ */ _never(ZodNever, params);
|
|
5691
5700
|
}
|
|
5692
|
-
var ZodArray =
|
|
5701
|
+
var ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
5693
5702
|
$ZodArray.init(inst, def);
|
|
5694
5703
|
ZodType.init(inst, def);
|
|
5695
5704
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
@@ -5703,7 +5712,7 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
5703
5712
|
function array(element, params) {
|
|
5704
5713
|
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
5705
5714
|
}
|
|
5706
|
-
var ZodObject =
|
|
5715
|
+
var ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
5707
5716
|
$ZodObjectJIT.init(inst, def);
|
|
5708
5717
|
ZodType.init(inst, def);
|
|
5709
5718
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -5758,7 +5767,7 @@ function looseObject(shape, params) {
|
|
|
5758
5767
|
...normalizeParams(params)
|
|
5759
5768
|
});
|
|
5760
5769
|
}
|
|
5761
|
-
var ZodUnion =
|
|
5770
|
+
var ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
5762
5771
|
$ZodUnion.init(inst, def);
|
|
5763
5772
|
ZodType.init(inst, def);
|
|
5764
5773
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -5771,7 +5780,7 @@ function union(options, params) {
|
|
|
5771
5780
|
...normalizeParams(params)
|
|
5772
5781
|
});
|
|
5773
5782
|
}
|
|
5774
|
-
var ZodDiscriminatedUnion =
|
|
5783
|
+
var ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
5775
5784
|
ZodUnion.init(inst, def);
|
|
5776
5785
|
$ZodDiscriminatedUnion.init(inst, def);
|
|
5777
5786
|
});
|
|
@@ -5783,7 +5792,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
5783
5792
|
...normalizeParams(params)
|
|
5784
5793
|
});
|
|
5785
5794
|
}
|
|
5786
|
-
var ZodIntersection =
|
|
5795
|
+
var ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
5787
5796
|
$ZodIntersection.init(inst, def);
|
|
5788
5797
|
ZodType.init(inst, def);
|
|
5789
5798
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -5795,7 +5804,7 @@ function intersection(left, right) {
|
|
|
5795
5804
|
right
|
|
5796
5805
|
});
|
|
5797
5806
|
}
|
|
5798
|
-
var ZodRecord =
|
|
5807
|
+
var ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
5799
5808
|
$ZodRecord.init(inst, def);
|
|
5800
5809
|
ZodType.init(inst, def);
|
|
5801
5810
|
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
@@ -5810,7 +5819,7 @@ function record(keyType, valueType, params) {
|
|
|
5810
5819
|
...normalizeParams(params)
|
|
5811
5820
|
});
|
|
5812
5821
|
}
|
|
5813
|
-
var ZodEnum =
|
|
5822
|
+
var ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
5814
5823
|
$ZodEnum.init(inst, def);
|
|
5815
5824
|
ZodType.init(inst, def);
|
|
5816
5825
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -5847,7 +5856,7 @@ function _enum(values, params) {
|
|
|
5847
5856
|
...normalizeParams(params)
|
|
5848
5857
|
});
|
|
5849
5858
|
}
|
|
5850
|
-
var ZodLiteral =
|
|
5859
|
+
var ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
5851
5860
|
$ZodLiteral.init(inst, def);
|
|
5852
5861
|
ZodType.init(inst, def);
|
|
5853
5862
|
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
@@ -5864,7 +5873,7 @@ function literal(value, params) {
|
|
|
5864
5873
|
...normalizeParams(params)
|
|
5865
5874
|
});
|
|
5866
5875
|
}
|
|
5867
|
-
var ZodTransform =
|
|
5876
|
+
var ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
5868
5877
|
$ZodTransform.init(inst, def);
|
|
5869
5878
|
ZodType.init(inst, def);
|
|
5870
5879
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -5896,7 +5905,7 @@ function transform(fn) {
|
|
|
5896
5905
|
transform: fn
|
|
5897
5906
|
});
|
|
5898
5907
|
}
|
|
5899
|
-
var ZodOptional =
|
|
5908
|
+
var ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
5900
5909
|
$ZodOptional.init(inst, def);
|
|
5901
5910
|
ZodType.init(inst, def);
|
|
5902
5911
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -5908,7 +5917,7 @@ function optional(innerType) {
|
|
|
5908
5917
|
innerType
|
|
5909
5918
|
});
|
|
5910
5919
|
}
|
|
5911
|
-
var ZodExactOptional =
|
|
5920
|
+
var ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
5912
5921
|
$ZodExactOptional.init(inst, def);
|
|
5913
5922
|
ZodType.init(inst, def);
|
|
5914
5923
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -5920,7 +5929,7 @@ function exactOptional(innerType) {
|
|
|
5920
5929
|
innerType
|
|
5921
5930
|
});
|
|
5922
5931
|
}
|
|
5923
|
-
var ZodNullable =
|
|
5932
|
+
var ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
5924
5933
|
$ZodNullable.init(inst, def);
|
|
5925
5934
|
ZodType.init(inst, def);
|
|
5926
5935
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -5932,7 +5941,7 @@ function nullable(innerType) {
|
|
|
5932
5941
|
innerType
|
|
5933
5942
|
});
|
|
5934
5943
|
}
|
|
5935
|
-
var ZodDefault =
|
|
5944
|
+
var ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
5936
5945
|
$ZodDefault.init(inst, def);
|
|
5937
5946
|
ZodType.init(inst, def);
|
|
5938
5947
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -5948,7 +5957,7 @@ function _default(innerType, defaultValue) {
|
|
|
5948
5957
|
}
|
|
5949
5958
|
});
|
|
5950
5959
|
}
|
|
5951
|
-
var ZodPrefault =
|
|
5960
|
+
var ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
5952
5961
|
$ZodPrefault.init(inst, def);
|
|
5953
5962
|
ZodType.init(inst, def);
|
|
5954
5963
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -5963,7 +5972,7 @@ function prefault(innerType, defaultValue) {
|
|
|
5963
5972
|
}
|
|
5964
5973
|
});
|
|
5965
5974
|
}
|
|
5966
|
-
var ZodNonOptional =
|
|
5975
|
+
var ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
5967
5976
|
$ZodNonOptional.init(inst, def);
|
|
5968
5977
|
ZodType.init(inst, def);
|
|
5969
5978
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -5976,7 +5985,7 @@ function nonoptional(innerType, params) {
|
|
|
5976
5985
|
...normalizeParams(params)
|
|
5977
5986
|
});
|
|
5978
5987
|
}
|
|
5979
|
-
var ZodCatch =
|
|
5988
|
+
var ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
5980
5989
|
$ZodCatch.init(inst, def);
|
|
5981
5990
|
ZodType.init(inst, def);
|
|
5982
5991
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -5990,7 +5999,7 @@ function _catch(innerType, catchValue) {
|
|
|
5990
5999
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
5991
6000
|
});
|
|
5992
6001
|
}
|
|
5993
|
-
var ZodPipe =
|
|
6002
|
+
var ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
5994
6003
|
$ZodPipe.init(inst, def);
|
|
5995
6004
|
ZodType.init(inst, def);
|
|
5996
6005
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -6004,7 +6013,7 @@ function pipe(in_, out) {
|
|
|
6004
6013
|
out
|
|
6005
6014
|
});
|
|
6006
6015
|
}
|
|
6007
|
-
var ZodReadonly =
|
|
6016
|
+
var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
6008
6017
|
$ZodReadonly.init(inst, def);
|
|
6009
6018
|
ZodType.init(inst, def);
|
|
6010
6019
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -6016,7 +6025,7 @@ function readonly(innerType) {
|
|
|
6016
6025
|
innerType
|
|
6017
6026
|
});
|
|
6018
6027
|
}
|
|
6019
|
-
var ZodCustom =
|
|
6028
|
+
var ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
6020
6029
|
$ZodCustom.init(inst, def);
|
|
6021
6030
|
ZodType.init(inst, def);
|
|
6022
6031
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
@@ -40940,8 +40949,11 @@ var handleTimers = createResourceHandler({
|
|
|
40940
40949
|
/**
|
|
40941
40950
|
* Valid include values per resource.
|
|
40942
40951
|
*
|
|
40943
|
-
* Sourced from help.ts
|
|
40944
|
-
* Resources not listed here have no include
|
|
40952
|
+
* Sourced from help.ts/schema.ts include lists and each resource's documented
|
|
40953
|
+
* Productive relationships. Resources not listed here have no include
|
|
40954
|
+
* validation (pass-through). Lists are intentionally generous: an unknown
|
|
40955
|
+
* include is hard-rejected before the request is sent, so omitting a genuinely
|
|
40956
|
+
* valid relationship would block it — when in doubt, include the relationship.
|
|
40945
40957
|
*/
|
|
40946
40958
|
var VALID_INCLUDES = {
|
|
40947
40959
|
activities: ["creator"],
|
|
@@ -40975,6 +40987,44 @@ var VALID_INCLUDES = {
|
|
|
40975
40987
|
"person",
|
|
40976
40988
|
"service",
|
|
40977
40989
|
"task"
|
|
40990
|
+
],
|
|
40991
|
+
projects: [
|
|
40992
|
+
"company",
|
|
40993
|
+
"memberships",
|
|
40994
|
+
"project_manager",
|
|
40995
|
+
"last_actor",
|
|
40996
|
+
"workflow"
|
|
40997
|
+
],
|
|
40998
|
+
people: [
|
|
40999
|
+
"company",
|
|
41000
|
+
"subsidiary",
|
|
41001
|
+
"manager",
|
|
41002
|
+
"teams",
|
|
41003
|
+
"holiday_schedule"
|
|
41004
|
+
],
|
|
41005
|
+
companies: [
|
|
41006
|
+
"contacts",
|
|
41007
|
+
"owner",
|
|
41008
|
+
"subsidiaries",
|
|
41009
|
+
"parent_company"
|
|
41010
|
+
],
|
|
41011
|
+
services: [
|
|
41012
|
+
"deal",
|
|
41013
|
+
"service_type",
|
|
41014
|
+
"person",
|
|
41015
|
+
"section"
|
|
41016
|
+
],
|
|
41017
|
+
pages: [
|
|
41018
|
+
"project",
|
|
41019
|
+
"creator",
|
|
41020
|
+
"parent_page",
|
|
41021
|
+
"root_page"
|
|
41022
|
+
],
|
|
41023
|
+
discussions: ["page", "creator"],
|
|
41024
|
+
attachments: [
|
|
41025
|
+
"attachable",
|
|
41026
|
+
"creator",
|
|
41027
|
+
"task"
|
|
40978
41028
|
]
|
|
40979
41029
|
};
|
|
40980
41030
|
/**
|
|
@@ -41286,4 +41336,4 @@ async function executeToolWithCredentials(name, args, credentials) {
|
|
|
41286
41336
|
//#endregion
|
|
41287
41337
|
export { handleSchemaOverview as C, handleDeals as E, handleServices as S, handlePeople as T, union as _, boolean as a, handleTasks as b, intersection as c, number as d, object as f, string as g, record as h, array as i, literal as l, preprocess as m, _enum as n, custom as o, optional as p, _null as r, discriminatedUnion as s, executeToolWithCredentials as t, looseObject as u, unknown as v, handleProjects as w, handleSummaries as x, datetime as y };
|
|
41288
41338
|
|
|
41289
|
-
//# sourceMappingURL=handlers-
|
|
41339
|
+
//# sourceMappingURL=handlers-BE96O-uy.js.map
|