@mastra/deployer 1.79.0 → 1.80.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{analyze-Cb5JJp7Y.cjs → analyze-B4cKPVju.cjs} +65 -18
  2. package/dist/analyze-B4cKPVju.cjs.map +1 -0
  3. package/dist/{analyze-CbVhoukh.js → analyze-DzJoNBCX.js} +63 -16
  4. package/dist/analyze-DzJoNBCX.js.map +1 -0
  5. package/dist/{arktype-aI7TBD0R-cgd8o1cq.js → arktype-aI7TBD0R-CrIkuKY8.js} +2 -2
  6. package/dist/{arktype-aI7TBD0R-cgd8o1cq.js.map → arktype-aI7TBD0R-CrIkuKY8.js.map} +1 -1
  7. package/dist/{arktype-aI7TBD0R-BP9yJr5x.cjs → arktype-aI7TBD0R-LEyxmA2b.cjs} +2 -2
  8. package/dist/{arktype-aI7TBD0R-BP9yJr5x.cjs.map → arktype-aI7TBD0R-LEyxmA2b.cjs.map} +1 -1
  9. package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
  10. package/dist/build/analyze.cjs +1 -1
  11. package/dist/build/analyze.js +1 -1
  12. package/dist/build/index.cjs +3 -3
  13. package/dist/build/index.js +3 -3
  14. package/dist/{build-DGwrw0dD.cjs → build-D0odKdrs.cjs} +3 -3
  15. package/dist/{build-DGwrw0dD.cjs.map → build-D0odKdrs.cjs.map} +1 -1
  16. package/dist/{build-qnakIZAs.js → build-DZuiBxfv.js} +3 -3
  17. package/dist/{build-qnakIZAs.js.map → build-DZuiBxfv.js.map} +1 -1
  18. package/dist/bundler/index.cjs +2 -2
  19. package/dist/bundler/index.js +2 -2
  20. package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
  21. package/dist/{dist-DYm9bBZO.js → dist-CQdaZ_Cj.js} +202 -48
  22. package/dist/dist-CQdaZ_Cj.js.map +1 -0
  23. package/dist/{dist-twPJIvYf.cjs → dist-IbfljCaD.cjs} +202 -48
  24. package/dist/dist-IbfljCaD.cjs.map +1 -0
  25. package/dist/docs/SKILL.md +1 -1
  26. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  27. package/dist/{effect-QlVUlMFu-Cvay38Oi.js → effect-QlVUlMFu-CgfR_0ad.js} +3 -3
  28. package/dist/{effect-QlVUlMFu-Cvay38Oi.js.map → effect-QlVUlMFu-CgfR_0ad.js.map} +1 -1
  29. package/dist/{effect-QlVUlMFu-CC0Mpf1v.cjs → effect-QlVUlMFu-D_Bo06-a.cjs} +3 -3
  30. package/dist/{effect-QlVUlMFu-CC0Mpf1v.cjs.map → effect-QlVUlMFu-D_Bo06-a.cjs.map} +1 -1
  31. package/dist/{index-CLddUTqr-86A1rnBL.js → index-CLddUTqr-73bY0Z8P.js} +8 -8
  32. package/dist/{index-CLddUTqr-86A1rnBL.js.map → index-CLddUTqr-73bY0Z8P.js.map} +1 -1
  33. package/dist/{index-CLddUTqr-D0GzVJyg.cjs → index-CLddUTqr-CgjYL5XV.cjs} +8 -8
  34. package/dist/{index-CLddUTqr-D0GzVJyg.cjs.map → index-CLddUTqr-CgjYL5XV.cjs.map} +1 -1
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.js +2 -2
  37. package/dist/server/index.cjs +7 -23
  38. package/dist/server/index.cjs.map +1 -1
  39. package/dist/server/index.js +8 -24
  40. package/dist/server/index.js.map +1 -1
  41. package/dist/services/deps.d.ts.map +1 -1
  42. package/dist/services/index.cjs +1 -1
  43. package/dist/services/index.js +1 -1
  44. package/dist/{services-C1jM_6ta.cjs → services-CzhmXlRZ.cjs} +28 -3
  45. package/dist/services-CzhmXlRZ.cjs.map +1 -0
  46. package/dist/{services-183Omg3U.js → services-Imf20x6f.js} +28 -3
  47. package/dist/services-Imf20x6f.js.map +1 -0
  48. package/dist/{sury-CWZTCd75-TIJwZAOz.cjs → sury-CWZTCd75-BmWsp9y9.cjs} +3 -3
  49. package/dist/{sury-CWZTCd75-TIJwZAOz.cjs.map → sury-CWZTCd75-BmWsp9y9.cjs.map} +1 -1
  50. package/dist/{sury-CWZTCd75-r5hgAI0o.js → sury-CWZTCd75-DiZVb8bZ.js} +3 -3
  51. package/dist/{sury-CWZTCd75-r5hgAI0o.js.map → sury-CWZTCd75-DiZVb8bZ.js.map} +1 -1
  52. package/dist/{typebox-Dei93FPO-BCfJ-0cP.js → typebox-Dei93FPO-CwpAqpd5.js} +2 -2
  53. package/dist/{typebox-Dei93FPO-BCfJ-0cP.js.map → typebox-Dei93FPO-CwpAqpd5.js.map} +1 -1
  54. package/dist/{typebox-Dei93FPO-B14DOQQD.cjs → typebox-Dei93FPO-Dv_TSG2I.cjs} +2 -2
  55. package/dist/{typebox-Dei93FPO-B14DOQQD.cjs.map → typebox-Dei93FPO-Dv_TSG2I.cjs.map} +1 -1
  56. package/dist/{valibot--1zFm7rT-CU_2XLpq.js → valibot--1zFm7rT-BfSX2bry.js} +4 -4
  57. package/dist/{valibot--1zFm7rT-CU_2XLpq.js.map → valibot--1zFm7rT-BfSX2bry.js.map} +1 -1
  58. package/dist/{valibot--1zFm7rT-BiQdCU9y.cjs → valibot--1zFm7rT-YckVXzoz.cjs} +4 -4
  59. package/dist/{valibot--1zFm7rT-BiQdCU9y.cjs.map → valibot--1zFm7rT-YckVXzoz.cjs.map} +1 -1
  60. package/dist/{zod-Bwrt9trS-BurSNK0g.js → zod-Bwrt9trS-CO1V3tYt.js} +3 -3
  61. package/dist/{zod-Bwrt9trS-BurSNK0g.js.map → zod-Bwrt9trS-CO1V3tYt.js.map} +1 -1
  62. package/dist/{zod-Bwrt9trS-Kv0hKWrV.cjs → zod-Bwrt9trS-CdR6J7TM.cjs} +3 -3
  63. package/dist/{zod-Bwrt9trS-Kv0hKWrV.cjs.map → zod-Bwrt9trS-CdR6J7TM.cjs.map} +1 -1
  64. package/package.json +15 -14
  65. package/dist/analyze-Cb5JJp7Y.cjs.map +0 -1
  66. package/dist/analyze-CbVhoukh.js.map +0 -1
  67. package/dist/bundler/find-workspaces.d.ts +0 -52
  68. package/dist/bundler/find-workspaces.d.ts.map +0 -1
  69. package/dist/dist-DYm9bBZO.js.map +0 -1
  70. package/dist/dist-twPJIvYf.cjs.map +0 -1
  71. package/dist/services-183Omg3U.js.map +0 -1
  72. package/dist/services-C1jM_6ta.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@valibot/to-json-schema/1.7.0/b36fad4bd6524f21cfe585b3ac241b359a9e7ea8ac877b85e25b3da705437e48/node_modules/@valibot/to-json-schema/dist/index.mjs
1
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@valibot/to-json-schema/1.8.0/da8e5dfe6d777e6c5fbea87a5fac738e4a893332a460d7e4b8ed7828a422fa0c/node_modules/@valibot/to-json-schema/dist/index.mjs
2
2
  /**
3
3
  * Adds an error message to the errors array.
4
4
  *
@@ -61,6 +61,96 @@ function isJsonEnumValues(values) {
61
61
  return values.every(isJsonConstValue);
62
62
  }
63
63
  /**
64
+ * Schema reference map with collision-free reference ID allocation.
65
+ */
66
+ var ReferenceMap = class extends Map {
67
+ /**
68
+ * Creates an empty schema reference map.
69
+ */
70
+ constructor() {
71
+ super();
72
+ this.count = 0;
73
+ this.usedIds = /* @__PURE__ */ new Set();
74
+ }
75
+ /**
76
+ * Adds a schema reference and reserves its ID.
77
+ *
78
+ * @param schema The Valibot schema.
79
+ * @param referenceId The reference ID.
80
+ *
81
+ * @returns The reference map.
82
+ */
83
+ set(schema, referenceId) {
84
+ this.usedIds.add(referenceId);
85
+ return super.set(schema, referenceId);
86
+ }
87
+ /**
88
+ * Creates a reference ID that is not yet used.
89
+ *
90
+ * @param definitions The JSON Schema definitions.
91
+ *
92
+ * @returns The unused reference ID.
93
+ */
94
+ createId(definitions) {
95
+ while (this.usedIds.has(`${this.count}`) || `${this.count}` in definitions) this.count++;
96
+ return `${this.count++}`;
97
+ }
98
+ };
99
+ /**
100
+ * Returns the stricter lower bound.
101
+ *
102
+ * @param current The current lower bound.
103
+ * @param value The new lower bound.
104
+ *
105
+ * @returns The stricter lower bound.
106
+ */
107
+ function getLowerBound(current, value) {
108
+ if (typeof current !== "number" || !Number.isFinite(current) || value > current) return value;
109
+ return current;
110
+ }
111
+ /**
112
+ * Returns the stricter upper bound.
113
+ *
114
+ * @param current The current upper bound.
115
+ * @param value The new upper bound.
116
+ *
117
+ * @returns The stricter upper bound.
118
+ */
119
+ function getUpperBound(current, value) {
120
+ if (typeof current !== "number" || !Number.isFinite(current) || value < current) return value;
121
+ return current;
122
+ }
123
+ /**
124
+ * Returns the combined not restriction.
125
+ *
126
+ * @param current The current not restriction.
127
+ * @param value The new not restriction.
128
+ *
129
+ * @returns The combined not restriction.
130
+ */
131
+ /* @__NO_SIDE_EFFECTS__ */
132
+ function getNotRestriction(current, value) {
133
+ return current !== void 0 ? { anyOf: [current, value] } : value;
134
+ }
135
+ /**
136
+ * Intersects allowed values with an existing enum restriction.
137
+ *
138
+ * @param jsonSchema The JSON Schema object.
139
+ * @param values The allowed values.
140
+ */
141
+ function intersectEnum(jsonSchema, values) {
142
+ let enumValues = jsonSchema.enum ?? values;
143
+ if (jsonSchema.enum) {
144
+ const valueSet = new Set(values);
145
+ enumValues = enumValues.filter((value) => valueSet.has(value));
146
+ }
147
+ if (enumValues.length) jsonSchema.enum = [...new Set(enumValues)];
148
+ else {
149
+ delete jsonSchema.enum;
150
+ jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, {});
151
+ }
152
+ }
153
+ /**
64
154
  * Converts any supported Valibot action to the JSON Schema format.
65
155
  *
66
156
  * @param jsonSchema The JSON Schema object.
@@ -88,6 +178,7 @@ function convertAction(jsonSchema, valibotAction, config) {
88
178
  case "isrc":
89
179
  case "iso_time_second":
90
180
  case "iso_week":
181
+ case "ksuid":
91
182
  case "mac":
92
183
  case "mac48":
93
184
  case "mac64":
@@ -117,20 +208,31 @@ function convertAction(jsonSchema, valibotAction, config) {
117
208
  }
118
209
  break;
119
210
  case "entries":
120
- jsonSchema.minProperties = valibotAction.requirement;
121
- jsonSchema.maxProperties = valibotAction.requirement;
211
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
212
+ errors = addError(errors, "The requirement of the \"entries\" action must be a non-negative integer.");
213
+ break;
214
+ }
215
+ jsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);
216
+ jsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);
122
217
  break;
123
218
  case "examples":
124
219
  if (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.examples];
125
220
  else jsonSchema.examples = valibotAction.examples;
126
221
  break;
127
222
  case "gt_value":
128
- if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") errors = addError(errors, `The "gt_value" action is not supported on type "${jsonSchema.type}".`);
223
+ if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
224
+ errors = addError(errors, `The "gt_value" action is not supported on type "${jsonSchema.type}".`);
225
+ break;
226
+ }
227
+ if (!Number.isFinite(valibotAction.requirement)) {
228
+ errors = addError(errors, "The requirement of the \"gt_value\" action is not JSON compatible.");
229
+ break;
230
+ }
129
231
  if (config?.target === "openapi-3.0") {
130
232
  errors = addError(errors, "The \"gt_value\" action is not supported for OpenAPI 3.0.");
131
233
  break;
132
234
  }
133
- jsonSchema.exclusiveMinimum = valibotAction.requirement;
235
+ jsonSchema.exclusiveMinimum = getLowerBound(jsonSchema.exclusiveMinimum, valibotAction.requirement);
134
236
  break;
135
237
  case "includes":
136
238
  if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
@@ -160,65 +262,107 @@ function convertAction(jsonSchema, valibotAction, config) {
160
262
  else jsonSchema.pattern = valibotAction.requirement.source;
161
263
  break;
162
264
  case "length":
265
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
266
+ errors = addError(errors, "The requirement of the \"length\" action must be a non-negative integer.");
267
+ break;
268
+ }
163
269
  if (jsonSchema.type === "array") {
164
- jsonSchema.minItems = valibotAction.requirement;
165
- jsonSchema.maxItems = valibotAction.requirement;
270
+ jsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);
271
+ jsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);
166
272
  } else {
167
273
  if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
168
- jsonSchema.minLength = valibotAction.requirement;
169
- jsonSchema.maxLength = valibotAction.requirement;
274
+ jsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);
275
+ jsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);
170
276
  }
171
277
  break;
172
278
  case "lt_value":
173
- if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") errors = addError(errors, `The "lt_value" action is not supported on type "${jsonSchema.type}".`);
279
+ if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
280
+ errors = addError(errors, `The "lt_value" action is not supported on type "${jsonSchema.type}".`);
281
+ break;
282
+ }
283
+ if (!Number.isFinite(valibotAction.requirement)) {
284
+ errors = addError(errors, "The requirement of the \"lt_value\" action is not JSON compatible.");
285
+ break;
286
+ }
174
287
  if (config?.target === "openapi-3.0") {
175
288
  errors = addError(errors, "The \"lt_value\" action is not supported for OpenAPI 3.0.");
176
289
  break;
177
290
  }
178
- jsonSchema.exclusiveMaximum = valibotAction.requirement;
291
+ jsonSchema.exclusiveMaximum = getUpperBound(jsonSchema.exclusiveMaximum, valibotAction.requirement);
179
292
  break;
180
293
  case "max_entries":
181
- jsonSchema.maxProperties = valibotAction.requirement;
294
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
295
+ errors = addError(errors, "The requirement of the \"max_entries\" action must be a non-negative integer.");
296
+ break;
297
+ }
298
+ jsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);
182
299
  break;
183
300
  case "max_length":
184
- if (jsonSchema.type === "array") jsonSchema.maxItems = valibotAction.requirement;
301
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
302
+ errors = addError(errors, "The requirement of the \"max_length\" action must be a non-negative integer.");
303
+ break;
304
+ }
305
+ if (jsonSchema.type === "array") jsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);
185
306
  else {
186
307
  if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
187
- jsonSchema.maxLength = valibotAction.requirement;
308
+ jsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);
188
309
  }
189
310
  break;
190
311
  case "max_value":
191
- if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") errors = addError(errors, `The "max_value" action is not supported on type "${jsonSchema.type}".`);
192
- jsonSchema.maximum = valibotAction.requirement;
312
+ if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
313
+ errors = addError(errors, `The "max_value" action is not supported on type "${jsonSchema.type}".`);
314
+ break;
315
+ }
316
+ if (!Number.isFinite(valibotAction.requirement)) {
317
+ errors = addError(errors, "The requirement of the \"max_value\" action is not JSON compatible.");
318
+ break;
319
+ }
320
+ jsonSchema.maximum = getUpperBound(jsonSchema.maximum, valibotAction.requirement);
193
321
  break;
194
322
  case "metadata":
195
323
  if (typeof valibotAction.metadata.title === "string") jsonSchema.title = valibotAction.metadata.title;
196
324
  if (typeof valibotAction.metadata.description === "string") jsonSchema.description = valibotAction.metadata.description;
197
325
  if (Array.isArray(valibotAction.metadata.examples)) if (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.metadata.examples];
198
326
  else jsonSchema.examples = valibotAction.metadata.examples;
327
+ for (const key of Object.keys(valibotAction.metadata)) if (key !== "title" && key !== "description" && key !== "examples" && key !== "__proto__") jsonSchema[key] = valibotAction.metadata[key];
199
328
  break;
200
329
  case "min_entries":
201
- jsonSchema.minProperties = valibotAction.requirement;
330
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
331
+ errors = addError(errors, "The requirement of the \"min_entries\" action must be a non-negative integer.");
332
+ break;
333
+ }
334
+ jsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);
202
335
  break;
203
336
  case "min_length":
204
- if (jsonSchema.type === "array") jsonSchema.minItems = valibotAction.requirement;
337
+ if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
338
+ errors = addError(errors, "The requirement of the \"min_length\" action must be a non-negative integer.");
339
+ break;
340
+ }
341
+ if (jsonSchema.type === "array") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);
205
342
  else {
206
343
  if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
207
- jsonSchema.minLength = valibotAction.requirement;
344
+ jsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);
208
345
  }
209
346
  break;
210
347
  case "min_value":
211
- if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") errors = addError(errors, `The "min_value" action is not supported on type "${jsonSchema.type}".`);
212
- jsonSchema.minimum = valibotAction.requirement;
348
+ if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
349
+ errors = addError(errors, `The "min_value" action is not supported on type "${jsonSchema.type}".`);
350
+ break;
351
+ }
352
+ if (!Number.isFinite(valibotAction.requirement)) {
353
+ errors = addError(errors, "The requirement of the \"min_value\" action is not JSON compatible.");
354
+ break;
355
+ }
356
+ jsonSchema.minimum = getLowerBound(jsonSchema.minimum, valibotAction.requirement);
213
357
  break;
214
358
  case "multiple_of":
215
359
  jsonSchema.multipleOf = valibotAction.requirement;
216
360
  break;
217
361
  case "non_empty":
218
- if (jsonSchema.type === "array") jsonSchema.minItems = 1;
362
+ if (jsonSchema.type === "array") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, 1);
219
363
  else {
220
364
  if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
221
- jsonSchema.minLength = 1;
365
+ jsonSchema.minLength = getLowerBound(jsonSchema.minLength, 1);
222
366
  }
223
367
  break;
224
368
  case "not_value":
@@ -226,15 +370,14 @@ function convertAction(jsonSchema, valibotAction, config) {
226
370
  errors = addError(errors, "The requirement of the \"not_value\" action is not JSON compatible.");
227
371
  break;
228
372
  }
229
- if (config?.target === "openapi-3.0") jsonSchema.not = { enum: [valibotAction.requirement] };
230
- else jsonSchema.not = { const: valibotAction.requirement };
373
+ jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, config?.target === "openapi-3.0" ? { enum: [valibotAction.requirement] } : { const: valibotAction.requirement });
231
374
  break;
232
375
  case "not_values":
233
376
  if (!isJsonEnumValues(valibotAction.requirement)) {
234
377
  errors = addError(errors, "A requirement of the \"not_values\" action is not JSON compatible.");
235
378
  break;
236
379
  }
237
- jsonSchema.not = { enum: valibotAction.requirement };
380
+ if (valibotAction.requirement.length) jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, { enum: [...new Set(valibotAction.requirement)] });
238
381
  break;
239
382
  case "regex":
240
383
  if (valibotAction.requirement.flags) errors = addError(errors, "RegExp flags are not supported by JSON Schema.");
@@ -243,8 +386,8 @@ function convertAction(jsonSchema, valibotAction, config) {
243
386
  break;
244
387
  case "safe_integer":
245
388
  jsonSchema.type = "integer";
246
- if (typeof jsonSchema.minimum !== "number" || jsonSchema.minimum < Number.MIN_SAFE_INTEGER) jsonSchema.minimum = Number.MIN_SAFE_INTEGER;
247
- if (typeof jsonSchema.maximum !== "number" || jsonSchema.maximum > Number.MAX_SAFE_INTEGER) jsonSchema.maximum = Number.MAX_SAFE_INTEGER;
389
+ jsonSchema.minimum = getLowerBound(jsonSchema.minimum, Number.MIN_SAFE_INTEGER);
390
+ jsonSchema.maximum = getUpperBound(jsonSchema.maximum, Number.MAX_SAFE_INTEGER);
248
391
  break;
249
392
  case "starts_with":
250
393
  if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
@@ -264,7 +407,8 @@ function convertAction(jsonSchema, valibotAction, config) {
264
407
  errors = addError(errors, "The requirement of the \"value\" action is not JSON compatible.");
265
408
  break;
266
409
  }
267
- if (config?.target === "openapi-3.0") jsonSchema.enum = [valibotAction.requirement];
410
+ if (config?.target === "openapi-3.0") intersectEnum(jsonSchema, [valibotAction.requirement]);
411
+ else if ("const" in jsonSchema && jsonSchema.const !== valibotAction.requirement) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with a different "const" restriction.`);
268
412
  else jsonSchema.const = valibotAction.requirement;
269
413
  break;
270
414
  case "values":
@@ -272,7 +416,7 @@ function convertAction(jsonSchema, valibotAction, config) {
272
416
  errors = addError(errors, "A requirement of the \"values\" action is not JSON compatible.");
273
417
  break;
274
418
  }
275
- jsonSchema.enum = valibotAction.requirement;
419
+ intersectEnum(jsonSchema, valibotAction.requirement);
276
420
  break;
277
421
  default: errors = addError(errors, `The "${valibotAction.type}" action cannot be converted to JSON Schema.`);
278
422
  }
@@ -297,7 +441,16 @@ function convertAction(jsonSchema, valibotAction, config) {
297
441
  function flattenPipe(pipe) {
298
442
  return pipe.flatMap((item) => "pipe" in item ? flattenPipe(item.pipe) : item);
299
443
  }
300
- let refCount = 0;
444
+ /**
445
+ * Returns the JSON Pointer reference for a definition key.
446
+ *
447
+ * @param referenceId The unescaped definition key.
448
+ *
449
+ * @returns The encoded JSON Pointer fragment.
450
+ */
451
+ function getDefinitionRef(referenceId) {
452
+ return `#/$defs/${referenceId.replaceAll("~", "~0").replaceAll("/", "~1")}`;
453
+ }
301
454
  /**
302
455
  * Converts any supported Valibot schema to the JSON Schema format.
303
456
  *
@@ -313,7 +466,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context, skipRef = fal
313
466
  if (!skipRef) {
314
467
  const referenceId = context.referenceMap.get(valibotSchema);
315
468
  if (referenceId) {
316
- jsonSchema.$ref = `#/$defs/${referenceId}`;
469
+ jsonSchema.$ref = getDefinitionRef(referenceId);
317
470
  if (config?.overrideRef) {
318
471
  const refOverride = config.overrideRef({
319
472
  ...context,
@@ -433,23 +586,24 @@ function convertSchema(jsonSchema, valibotSchema, config, context, skipRef = fal
433
586
  if (valibotSchema.default !== void 0) jsonSchema.default = typeof valibotSchema.default === "function" ? valibotSchema.default() : valibotSchema.default;
434
587
  break;
435
588
  case "literal":
436
- if (typeof valibotSchema.literal !== "boolean" && typeof valibotSchema.literal !== "number" && typeof valibotSchema.literal !== "string") errors = addError(errors, "The value of the \"literal\" schema is not JSON compatible.");
589
+ if (!isJsonConstValue(valibotSchema.literal)) {
590
+ errors = addError(errors, "The value of the \"literal\" schema is not JSON compatible.");
591
+ break;
592
+ }
437
593
  if (config?.target === "openapi-3.0") jsonSchema.enum = [valibotSchema.literal];
438
594
  else jsonSchema.const = valibotSchema.literal;
439
595
  break;
440
596
  case "enum":
441
- jsonSchema.enum = valibotSchema.options;
442
- if (valibotSchema.options.every((option) => typeof option === "string")) jsonSchema.type = "string";
443
- else if (valibotSchema.options.every((option) => typeof option === "number")) jsonSchema.type = "number";
444
- else if (config?.target !== "openapi-3.0") jsonSchema.type = ["string", "number"];
445
- break;
446
597
  case "picklist": {
447
- const hasInvalidOption = valibotSchema.options.some((option) => typeof option !== "number" && typeof option !== "string");
448
- if (hasInvalidOption) errors = addError(errors, "An option of the \"picklist\" schema is not JSON compatible.");
449
- jsonSchema.enum = valibotSchema.options;
450
- if (valibotSchema.options.every((option) => typeof option === "string")) jsonSchema.type = "string";
451
- else if (valibotSchema.options.every((option) => typeof option === "number")) jsonSchema.type = "number";
452
- else if (!hasInvalidOption && config?.target !== "openapi-3.0") jsonSchema.type = ["string", "number"];
598
+ const options = valibotSchema.options;
599
+ if (!options.every((option) => typeof option === "string" || typeof option === "number" && Number.isFinite(option))) {
600
+ errors = addError(errors, `An option of the "${valibotSchema.type}" schema is not JSON compatible.`);
601
+ break;
602
+ }
603
+ jsonSchema.enum = options;
604
+ if (options.every((option) => typeof option === "string")) jsonSchema.type = "string";
605
+ else if (options.every((option) => typeof option === "number")) jsonSchema.type = "number";
606
+ else if (config?.target !== "openapi-3.0") jsonSchema.type = ["string", "number"];
453
607
  break;
454
608
  }
455
609
  case "union":
@@ -469,11 +623,11 @@ function convertSchema(jsonSchema, valibotSchema, config, context, skipRef = fal
469
623
  }
470
624
  let referenceId = context.referenceMap.get(wrappedValibotSchema);
471
625
  if (!referenceId) {
472
- referenceId = `${refCount++}`;
626
+ referenceId = context.referenceMap.createId(context.definitions);
473
627
  context.referenceMap.set(wrappedValibotSchema, referenceId);
474
628
  context.definitions[referenceId] = convertSchema({}, wrappedValibotSchema, config, context, true);
475
629
  }
476
- jsonSchema.$ref = `#/$defs/${referenceId}`;
630
+ jsonSchema.$ref = getDefinitionRef(referenceId);
477
631
  if (config?.overrideRef) {
478
632
  const refOverride = config.overrideRef({
479
633
  ...context,
@@ -511,7 +665,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context, skipRef = fal
511
665
  function toJsonSchema(schema, config) {
512
666
  const context = {
513
667
  definitions: {},
514
- referenceMap: /* @__PURE__ */ new Map(),
668
+ referenceMap: new ReferenceMap(),
515
669
  getterMap: /* @__PURE__ */ new Map()
516
670
  };
517
671
  const definitions = config?.definitions ?? void 0;
@@ -529,4 +683,4 @@ function toJsonSchema(schema, config) {
529
683
  //#endregion
530
684
  exports.toJsonSchema = toJsonSchema;
531
685
 
532
- //# sourceMappingURL=dist-twPJIvYf.cjs.map
686
+ //# sourceMappingURL=dist-IbfljCaD.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dist-IbfljCaD.cjs","names":[],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@valibot/to-json-schema/1.8.0/da8e5dfe6d777e6c5fbea87a5fac738e4a893332a460d7e4b8ed7828a422fa0c/node_modules/@valibot/to-json-schema/dist/index.mjs"],"sourcesContent":["//#region src/utils/addError.ts\n/**\n* Adds an error message to the errors array.\n*\n* @param errors The array of error messages.\n* @param message The error message to add.\n*\n* @returns The new errors.\n*/\nfunction addError(errors, message) {\n\tif (errors) {\n\t\terrors.push(message);\n\t\treturn errors;\n\t}\n\treturn [message];\n}\n\n//#endregion\n//#region src/utils/escapeRegExp.ts\nconst ESCAPE_REGEX = /[.*+?^${}()|[\\]\\\\]/g;\n/**\n* Escapes special regex characters in a string.\n*\n* @param string The string to escape.\n*\n* @returns The escaped string.\n*/\nfunction escapeRegExp(string) {\n\treturn string.replace(ESCAPE_REGEX, \"\\\\$&\");\n}\n\n//#endregion\n//#region src/utils/handleError.ts\n/**\n* Throws an error or logs a warning based on the configuration.\n*\n* @param message The message to throw or log.\n* @param config The conversion configuration.\n*/\nfunction handleError(message, config) {\n\tswitch (config?.errorMode) {\n\t\tcase \"ignore\": break;\n\t\tcase \"warn\":\n\t\t\tconsole.warn(message);\n\t\t\tbreak;\n\t\tdefault: throw new Error(message);\n\t}\n}\n\n//#endregion\n//#region src/utils/isJsonConstValue.ts\n/**\n* Whether a value is JSON compatible for a const keyword.\n*\n* @param value The value to check.\n*\n* @returns Whether the value is JSON compatible.\n*/\nfunction isJsonConstValue(value) {\n\treturn typeof value === \"boolean\" || typeof value === \"number\" && Number.isFinite(value) || typeof value === \"string\";\n}\n\n//#endregion\n//#region src/utils/isJsonEnumValues.ts\n/**\n* Whether values are JSON compatible for an enum keyword.\n*\n* @param values The values to check.\n*\n* @returns Whether the values are JSON compatible.\n*/\nfunction isJsonEnumValues(values) {\n\treturn values.every(isJsonConstValue);\n}\n\n//#endregion\n//#region src/utils/ReferenceMap.ts\n/**\n* Schema reference map with collision-free reference ID allocation.\n*/\nvar ReferenceMap = class extends Map {\n\t/**\n\t* Creates an empty schema reference map.\n\t*/\n\tconstructor() {\n\t\tsuper();\n\t\tthis.count = 0;\n\t\tthis.usedIds = /* @__PURE__ */ new Set();\n\t}\n\t/**\n\t* Adds a schema reference and reserves its ID.\n\t*\n\t* @param schema The Valibot schema.\n\t* @param referenceId The reference ID.\n\t*\n\t* @returns The reference map.\n\t*/\n\tset(schema, referenceId) {\n\t\tthis.usedIds.add(referenceId);\n\t\treturn super.set(schema, referenceId);\n\t}\n\t/**\n\t* Creates a reference ID that is not yet used.\n\t*\n\t* @param definitions The JSON Schema definitions.\n\t*\n\t* @returns The unused reference ID.\n\t*/\n\tcreateId(definitions) {\n\t\twhile (this.usedIds.has(`${this.count}`) || `${this.count}` in definitions) this.count++;\n\t\treturn `${this.count++}`;\n\t}\n};\n\n//#endregion\n//#region src/converters/convertAction/convertAction.ts\n/**\n* Returns the stricter lower bound.\n*\n* @param current The current lower bound.\n* @param value The new lower bound.\n*\n* @returns The stricter lower bound.\n*/\nfunction getLowerBound(current, value) {\n\tif (typeof current !== \"number\" || !Number.isFinite(current) || value > current) return value;\n\treturn current;\n}\n/**\n* Returns the stricter upper bound.\n*\n* @param current The current upper bound.\n* @param value The new upper bound.\n*\n* @returns The stricter upper bound.\n*/\nfunction getUpperBound(current, value) {\n\tif (typeof current !== \"number\" || !Number.isFinite(current) || value < current) return value;\n\treturn current;\n}\n/**\n* Returns the combined not restriction.\n*\n* @param current The current not restriction.\n* @param value The new not restriction.\n*\n* @returns The combined not restriction.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getNotRestriction(current, value) {\n\treturn current !== void 0 ? { anyOf: [current, value] } : value;\n}\n/**\n* Intersects allowed values with an existing enum restriction.\n*\n* @param jsonSchema The JSON Schema object.\n* @param values The allowed values.\n*/\nfunction intersectEnum(jsonSchema, values) {\n\tlet enumValues = jsonSchema.enum ?? values;\n\tif (jsonSchema.enum) {\n\t\tconst valueSet = new Set(values);\n\t\tenumValues = enumValues.filter((value) => valueSet.has(value));\n\t}\n\tif (enumValues.length) jsonSchema.enum = [...new Set(enumValues)];\n\telse {\n\t\tdelete jsonSchema.enum;\n\t\tjsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, {});\n\t}\n}\n/**\n* Converts any supported Valibot action to the JSON Schema format.\n*\n* @param jsonSchema The JSON Schema object.\n* @param valibotAction The Valibot action object.\n* @param config The conversion configuration.\n*\n* @returns The converted JSON Schema.\n*/\nfunction convertAction(jsonSchema, valibotAction, config) {\n\tif (config?.ignoreActions?.includes(valibotAction.type)) return jsonSchema;\n\tlet errors;\n\tswitch (valibotAction.type) {\n\t\tcase \"base64\":\n\t\t\tjsonSchema.contentEncoding = \"base64\";\n\t\t\tbreak;\n\t\tcase \"bic\":\n\t\tcase \"cuid2\":\n\t\tcase \"decimal\":\n\t\tcase \"digits\":\n\t\tcase \"domain\":\n\t\tcase \"emoji\":\n\t\tcase \"hash\":\n\t\tcase \"hexadecimal\":\n\t\tcase \"hex_color\":\n\t\tcase \"isrc\":\n\t\tcase \"iso_time_second\":\n\t\tcase \"iso_week\":\n\t\tcase \"ksuid\":\n\t\tcase \"mac\":\n\t\tcase \"mac48\":\n\t\tcase \"mac64\":\n\t\tcase \"nanoid\":\n\t\tcase \"octal\":\n\t\tcase \"slug\":\n\t\tcase \"ulid\":\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = valibotAction.requirement.source;\n\t\t\tbreak;\n\t\tcase \"description\":\n\t\t\tjsonSchema.description = valibotAction.description;\n\t\t\tbreak;\n\t\tcase \"email\":\n\t\tcase \"rfc_email\":\n\t\t\tjsonSchema.format = \"email\";\n\t\t\tbreak;\n\t\tcase \"ends_with\":\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = `${escapeRegExp(valibotAction.requirement)}$`;\n\t\t\tbreak;\n\t\tcase \"empty\":\n\t\t\tif (jsonSchema.type === \"array\") jsonSchema.maxItems = 0;\n\t\t\telse {\n\t\t\t\tif (jsonSchema.type !== \"string\") errors = addError(errors, `The \"${valibotAction.type}\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tjsonSchema.maxLength = 0;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"entries\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"entries\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);\n\t\t\tjsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"examples\":\n\t\t\tif (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.examples];\n\t\t\telse jsonSchema.examples = valibotAction.examples;\n\t\t\tbreak;\n\t\tcase \"gt_value\":\n\t\t\tif (jsonSchema.type !== \"number\" && jsonSchema.type !== \"integer\") {\n\t\t\t\terrors = addError(errors, `The \"gt_value\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!Number.isFinite(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"gt_value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (config?.target === \"openapi-3.0\") {\n\t\t\t\terrors = addError(errors, \"The \\\"gt_value\\\" action is not supported for OpenAPI 3.0.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.exclusiveMinimum = getLowerBound(jsonSchema.exclusiveMinimum, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"includes\":\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = escapeRegExp(valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"integer\":\n\t\t\tjsonSchema.type = \"integer\";\n\t\t\tbreak;\n\t\tcase \"ipv4\":\n\t\t\tjsonSchema.format = \"ipv4\";\n\t\t\tbreak;\n\t\tcase \"ipv6\":\n\t\t\tjsonSchema.format = \"ipv6\";\n\t\t\tbreak;\n\t\tcase \"iso_date\":\n\t\t\tjsonSchema.format = \"date\";\n\t\t\tbreak;\n\t\tcase \"iso_date_time\":\n\t\tcase \"iso_timestamp\":\n\t\t\tjsonSchema.format = \"date-time\";\n\t\t\tbreak;\n\t\tcase \"iso_time\":\n\t\t\tjsonSchema.format = \"time\";\n\t\t\tbreak;\n\t\tcase \"jws_compact\":\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = valibotAction.requirement.source;\n\t\t\tbreak;\n\t\tcase \"length\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"length\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (jsonSchema.type === \"array\") {\n\t\t\t\tjsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);\n\t\t\t\tjsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);\n\t\t\t} else {\n\t\t\t\tif (jsonSchema.type !== \"string\") errors = addError(errors, `The \"${valibotAction.type}\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tjsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);\n\t\t\t\tjsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"lt_value\":\n\t\t\tif (jsonSchema.type !== \"number\" && jsonSchema.type !== \"integer\") {\n\t\t\t\terrors = addError(errors, `The \"lt_value\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!Number.isFinite(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"lt_value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (config?.target === \"openapi-3.0\") {\n\t\t\t\terrors = addError(errors, \"The \\\"lt_value\\\" action is not supported for OpenAPI 3.0.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.exclusiveMaximum = getUpperBound(jsonSchema.exclusiveMaximum, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"max_entries\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"max_entries\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"max_length\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"max_length\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (jsonSchema.type === \"array\") jsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);\n\t\t\telse {\n\t\t\t\tif (jsonSchema.type !== \"string\") errors = addError(errors, `The \"${valibotAction.type}\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tjsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"max_value\":\n\t\t\tif (jsonSchema.type !== \"number\" && jsonSchema.type !== \"integer\") {\n\t\t\t\terrors = addError(errors, `The \"max_value\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!Number.isFinite(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"max_value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.maximum = getUpperBound(jsonSchema.maximum, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"metadata\":\n\t\t\tif (typeof valibotAction.metadata.title === \"string\") jsonSchema.title = valibotAction.metadata.title;\n\t\t\tif (typeof valibotAction.metadata.description === \"string\") jsonSchema.description = valibotAction.metadata.description;\n\t\t\tif (Array.isArray(valibotAction.metadata.examples)) if (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.metadata.examples];\n\t\t\telse jsonSchema.examples = valibotAction.metadata.examples;\n\t\t\tfor (const key of Object.keys(valibotAction.metadata)) if (key !== \"title\" && key !== \"description\" && key !== \"examples\" && key !== \"__proto__\") jsonSchema[key] = valibotAction.metadata[key];\n\t\t\tbreak;\n\t\tcase \"min_entries\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"min_entries\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"min_length\":\n\t\t\tif (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"min_length\\\" action must be a non-negative integer.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (jsonSchema.type === \"array\") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);\n\t\t\telse {\n\t\t\t\tif (jsonSchema.type !== \"string\") errors = addError(errors, `The \"${valibotAction.type}\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tjsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"min_value\":\n\t\t\tif (jsonSchema.type !== \"number\" && jsonSchema.type !== \"integer\") {\n\t\t\t\terrors = addError(errors, `The \"min_value\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!Number.isFinite(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"min_value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.minimum = getLowerBound(jsonSchema.minimum, valibotAction.requirement);\n\t\t\tbreak;\n\t\tcase \"multiple_of\":\n\t\t\tjsonSchema.multipleOf = valibotAction.requirement;\n\t\t\tbreak;\n\t\tcase \"non_empty\":\n\t\t\tif (jsonSchema.type === \"array\") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, 1);\n\t\t\telse {\n\t\t\t\tif (jsonSchema.type !== \"string\") errors = addError(errors, `The \"${valibotAction.type}\" action is not supported on type \"${jsonSchema.type}\".`);\n\t\t\t\tjsonSchema.minLength = getLowerBound(jsonSchema.minLength, 1);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"not_value\":\n\t\t\tif (!isJsonConstValue(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"not_value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, config?.target === \"openapi-3.0\" ? { enum: [valibotAction.requirement] } : { const: valibotAction.requirement });\n\t\t\tbreak;\n\t\tcase \"not_values\":\n\t\t\tif (!isJsonEnumValues(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"A requirement of the \\\"not_values\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (valibotAction.requirement.length) jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, { enum: [...new Set(valibotAction.requirement)] });\n\t\t\tbreak;\n\t\tcase \"regex\":\n\t\t\tif (valibotAction.requirement.flags) errors = addError(errors, \"RegExp flags are not supported by JSON Schema.\");\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = valibotAction.requirement.source;\n\t\t\tbreak;\n\t\tcase \"safe_integer\":\n\t\t\tjsonSchema.type = \"integer\";\n\t\t\tjsonSchema.minimum = getLowerBound(jsonSchema.minimum, Number.MIN_SAFE_INTEGER);\n\t\t\tjsonSchema.maximum = getUpperBound(jsonSchema.maximum, Number.MAX_SAFE_INTEGER);\n\t\t\tbreak;\n\t\tcase \"starts_with\":\n\t\t\tif (jsonSchema.pattern) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with another regex action.`);\n\t\t\telse jsonSchema.pattern = `^${escapeRegExp(valibotAction.requirement)}`;\n\t\t\tbreak;\n\t\tcase \"title\":\n\t\t\tjsonSchema.title = valibotAction.title;\n\t\t\tbreak;\n\t\tcase \"url\":\n\t\t\tjsonSchema.format = \"uri\";\n\t\t\tbreak;\n\t\tcase \"uuid\":\n\t\t\tjsonSchema.format = \"uuid\";\n\t\t\tbreak;\n\t\tcase \"value\":\n\t\t\tif (!isJsonConstValue(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"The requirement of the \\\"value\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (config?.target === \"openapi-3.0\") intersectEnum(jsonSchema, [valibotAction.requirement]);\n\t\t\telse if (\"const\" in jsonSchema && jsonSchema.const !== valibotAction.requirement) errors = addError(errors, `The \"${valibotAction.type}\" action is not supported in combination with a different \"const\" restriction.`);\n\t\t\telse jsonSchema.const = valibotAction.requirement;\n\t\t\tbreak;\n\t\tcase \"values\":\n\t\t\tif (!isJsonEnumValues(valibotAction.requirement)) {\n\t\t\t\terrors = addError(errors, \"A requirement of the \\\"values\\\" action is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tintersectEnum(jsonSchema, valibotAction.requirement);\n\t\t\tbreak;\n\t\tdefault: errors = addError(errors, `The \"${valibotAction.type}\" action cannot be converted to JSON Schema.`);\n\t}\n\tif (config?.overrideAction) {\n\t\tconst actionOverride = config.overrideAction({\n\t\t\tvalibotAction,\n\t\t\tjsonSchema,\n\t\t\terrors\n\t\t});\n\t\tif (actionOverride) return { ...actionOverride };\n\t}\n\tif (errors) for (const message of errors) handleError(message, config);\n\treturn jsonSchema;\n}\n\n//#endregion\n//#region src/converters/convertSchema/convertSchema.ts\n/**\n* Flattens a Valibot pipe by recursively expanding nested pipes.\n*\n* @param pipe The pipeline to flatten.\n*\n* @returns A flat pipeline.\n*/\nfunction flattenPipe(pipe) {\n\treturn pipe.flatMap((item) => \"pipe\" in item ? flattenPipe(item.pipe) : item);\n}\n/**\n* Returns the JSON Pointer reference for a definition key.\n*\n* @param referenceId The unescaped definition key.\n*\n* @returns The encoded JSON Pointer fragment.\n*/\nfunction getDefinitionRef(referenceId) {\n\treturn `#/$defs/${referenceId.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\")}`;\n}\n/**\n* Converts any supported Valibot schema to the JSON Schema format.\n*\n* @param jsonSchema The JSON Schema object.\n* @param valibotSchema The Valibot schema object.\n* @param config The conversion configuration.\n* @param context The conversion context.\n* @param skipRef Whether to skip using a reference.\n*\n* @returns The converted JSON Schema.\n*/\nfunction convertSchema(jsonSchema, valibotSchema, config, context, skipRef = false) {\n\tif (!skipRef) {\n\t\tconst referenceId = context.referenceMap.get(valibotSchema);\n\t\tif (referenceId) {\n\t\t\tjsonSchema.$ref = getDefinitionRef(referenceId);\n\t\t\tif (config?.overrideRef) {\n\t\t\t\tconst refOverride = config.overrideRef({\n\t\t\t\t\t...context,\n\t\t\t\t\treferenceId,\n\t\t\t\t\tvalibotSchema,\n\t\t\t\t\tjsonSchema\n\t\t\t\t});\n\t\t\t\tif (refOverride) jsonSchema.$ref = refOverride;\n\t\t\t}\n\t\t\treturn jsonSchema;\n\t\t}\n\t}\n\tif (\"pipe\" in valibotSchema) {\n\t\tconst flatPipe = flattenPipe(valibotSchema.pipe);\n\t\tlet startIndex = 0;\n\t\tlet stopIndex = flatPipe.length - 1;\n\t\tif (config?.typeMode === \"input\") {\n\t\t\tconst inputStopIndex = flatPipe.slice(1).findIndex((item) => item.kind === \"schema\" || item.kind === \"transformation\" && (item.type === \"find_item\" || item.type === \"parse_json\" || item.type === \"raw_transform\" || item.type === \"reduce_items\" || item.type === \"stringify_json\" || item.type === \"to_bigint\" || item.type === \"to_boolean\" || item.type === \"to_date\" || item.type === \"to_number\" || item.type === \"to_string\" || item.type === \"transform\"));\n\t\t\tif (inputStopIndex !== -1) stopIndex = inputStopIndex;\n\t\t} else if (config?.typeMode === \"output\") {\n\t\t\tconst outputStartIndex = flatPipe.findLastIndex((item) => item.kind === \"schema\");\n\t\t\tif (outputStartIndex !== -1) startIndex = outputStartIndex;\n\t\t}\n\t\tfor (let index = startIndex; index <= stopIndex; index++) {\n\t\t\tconst valibotPipeItem = flatPipe[index];\n\t\t\tif (valibotPipeItem.kind === \"schema\") {\n\t\t\t\tif (index > startIndex) handleError(\"Set the \\\"typeMode\\\" config to \\\"input\\\" or \\\"output\\\" to convert pipelines with multiple schemas.\", config);\n\t\t\t\tjsonSchema = convertSchema(jsonSchema, valibotPipeItem, config, context, true);\n\t\t\t} else jsonSchema = convertAction(jsonSchema, valibotPipeItem, config);\n\t\t}\n\t\treturn jsonSchema;\n\t}\n\tlet errors;\n\tswitch (valibotSchema.type) {\n\t\tcase \"boolean\":\n\t\t\tjsonSchema.type = \"boolean\";\n\t\t\tbreak;\n\t\tcase \"null\":\n\t\t\tif (config?.target === \"openapi-3.0\") jsonSchema.enum = [null];\n\t\t\telse jsonSchema.type = \"null\";\n\t\t\tbreak;\n\t\tcase \"number\":\n\t\t\tjsonSchema.type = \"number\";\n\t\t\tbreak;\n\t\tcase \"string\":\n\t\t\tjsonSchema.type = \"string\";\n\t\t\tbreak;\n\t\tcase \"array\":\n\t\t\tjsonSchema.type = \"array\";\n\t\t\tjsonSchema.items = convertSchema({}, valibotSchema.item, config, context);\n\t\t\tbreak;\n\t\tcase \"tuple\":\n\t\tcase \"tuple_with_rest\":\n\t\tcase \"loose_tuple\":\n\t\tcase \"strict_tuple\":\n\t\t\tjsonSchema.type = \"array\";\n\t\t\tif (config?.target === \"openapi-3.0\") {\n\t\t\t\tjsonSchema.items = { anyOf: [] };\n\t\t\t\tjsonSchema.minItems = valibotSchema.items.length;\n\t\t\t\tfor (const item of valibotSchema.items) jsonSchema.items.anyOf.push(convertSchema({}, item, config, context));\n\t\t\t\tif (valibotSchema.type === \"tuple_with_rest\") jsonSchema.items.anyOf.push(convertSchema({}, valibotSchema.rest, config, context));\n\t\t\t\telse if (valibotSchema.type === \"strict_tuple\" || valibotSchema.type === \"tuple\") jsonSchema.maxItems = valibotSchema.items.length;\n\t\t\t} else if (config?.target === \"draft-2020-12\") {\n\t\t\t\tjsonSchema.prefixItems = [];\n\t\t\t\tjsonSchema.minItems = valibotSchema.items.length;\n\t\t\t\tfor (const item of valibotSchema.items) jsonSchema.prefixItems.push(convertSchema({}, item, config, context));\n\t\t\t\tif (valibotSchema.type === \"tuple_with_rest\") jsonSchema.items = convertSchema({}, valibotSchema.rest, config, context);\n\t\t\t\telse if (valibotSchema.type === \"strict_tuple\") jsonSchema.items = false;\n\t\t\t} else {\n\t\t\t\tjsonSchema.items = [];\n\t\t\t\tjsonSchema.minItems = valibotSchema.items.length;\n\t\t\t\tfor (const item of valibotSchema.items) jsonSchema.items.push(convertSchema({}, item, config, context));\n\t\t\t\tif (valibotSchema.type === \"tuple_with_rest\") jsonSchema.additionalItems = convertSchema({}, valibotSchema.rest, config, context);\n\t\t\t\telse if (valibotSchema.type === \"strict_tuple\") jsonSchema.additionalItems = false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"object\":\n\t\tcase \"object_with_rest\":\n\t\tcase \"loose_object\":\n\t\tcase \"strict_object\":\n\t\t\tjsonSchema.type = \"object\";\n\t\t\tjsonSchema.properties = {};\n\t\t\tjsonSchema.required = [];\n\t\t\tfor (const key in valibotSchema.entries) {\n\t\t\t\tconst entry = valibotSchema.entries[key];\n\t\t\t\tjsonSchema.properties[key] = convertSchema({}, entry, config, context);\n\t\t\t\tif (entry.type !== \"exact_optional\" && entry.type !== \"nullish\" && entry.type !== \"optional\") jsonSchema.required.push(key);\n\t\t\t}\n\t\t\tif (valibotSchema.type === \"object_with_rest\") jsonSchema.additionalProperties = convertSchema({}, valibotSchema.rest, config, context);\n\t\t\telse if (valibotSchema.type === \"strict_object\") jsonSchema.additionalProperties = false;\n\t\t\tbreak;\n\t\tcase \"record\":\n\t\t\tif (config?.target === \"openapi-3.0\" && \"pipe\" in valibotSchema.key) errors = addError(errors, \"The \\\"record\\\" schema with a schema for the key that contains a \\\"pipe\\\" cannot be converted to JSON Schema.\");\n\t\t\tif (valibotSchema.key.type !== \"string\") errors = addError(errors, `The \"record\" schema with the \"${valibotSchema.key.type}\" schema for the key cannot be converted to JSON Schema.`);\n\t\t\tjsonSchema.type = \"object\";\n\t\t\tif (config?.target !== \"openapi-3.0\") jsonSchema.propertyNames = convertSchema({}, valibotSchema.key, config, context);\n\t\t\tjsonSchema.additionalProperties = convertSchema({}, valibotSchema.value, config, context);\n\t\t\tbreak;\n\t\tcase \"any\":\n\t\tcase \"unknown\": break;\n\t\tcase \"never\":\n\t\t\tjsonSchema.not = {};\n\t\t\tbreak;\n\t\tcase \"nullable\":\n\t\tcase \"nullish\":\n\t\t\tif (config?.target === \"openapi-3.0\") {\n\t\t\t\tconst innerSchema = convertSchema({}, valibotSchema.wrapped, config, context);\n\t\t\t\tObject.assign(jsonSchema, innerSchema);\n\t\t\t\tjsonSchema.nullable = true;\n\t\t\t} else jsonSchema.anyOf = [convertSchema({}, valibotSchema.wrapped, config, context), { type: \"null\" }];\n\t\t\tif (valibotSchema.default !== void 0) jsonSchema.default = typeof valibotSchema.default === \"function\" ? valibotSchema.default() : valibotSchema.default;\n\t\t\tbreak;\n\t\tcase \"exact_optional\":\n\t\tcase \"optional\":\n\t\tcase \"undefinedable\":\n\t\t\tjsonSchema = convertSchema(jsonSchema, valibotSchema.wrapped, config, context);\n\t\t\tif (valibotSchema.default !== void 0) jsonSchema.default = typeof valibotSchema.default === \"function\" ? valibotSchema.default() : valibotSchema.default;\n\t\t\tbreak;\n\t\tcase \"literal\":\n\t\t\tif (!isJsonConstValue(valibotSchema.literal)) {\n\t\t\t\terrors = addError(errors, \"The value of the \\\"literal\\\" schema is not JSON compatible.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (config?.target === \"openapi-3.0\") jsonSchema.enum = [valibotSchema.literal];\n\t\t\telse jsonSchema.const = valibotSchema.literal;\n\t\t\tbreak;\n\t\tcase \"enum\":\n\t\tcase \"picklist\": {\n\t\t\tconst options = valibotSchema.options;\n\t\t\tif (!options.every((option) => typeof option === \"string\" || typeof option === \"number\" && Number.isFinite(option))) {\n\t\t\t\terrors = addError(errors, `An option of the \"${valibotSchema.type}\" schema is not JSON compatible.`);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tjsonSchema.enum = options;\n\t\t\tif (options.every((option) => typeof option === \"string\")) jsonSchema.type = \"string\";\n\t\t\telse if (options.every((option) => typeof option === \"number\")) jsonSchema.type = \"number\";\n\t\t\telse if (config?.target !== \"openapi-3.0\") jsonSchema.type = [\"string\", \"number\"];\n\t\t\tbreak;\n\t\t}\n\t\tcase \"union\":\n\t\t\tjsonSchema.anyOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));\n\t\t\tbreak;\n\t\tcase \"variant\":\n\t\t\tjsonSchema.oneOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));\n\t\t\tbreak;\n\t\tcase \"intersect\":\n\t\t\tjsonSchema.allOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));\n\t\t\tbreak;\n\t\tcase \"lazy\": {\n\t\t\tlet wrappedValibotSchema = context.getterMap.get(valibotSchema.getter);\n\t\t\tif (!wrappedValibotSchema) {\n\t\t\t\twrappedValibotSchema = valibotSchema.getter(void 0);\n\t\t\t\tcontext.getterMap.set(valibotSchema.getter, wrappedValibotSchema);\n\t\t\t}\n\t\t\tlet referenceId = context.referenceMap.get(wrappedValibotSchema);\n\t\t\tif (!referenceId) {\n\t\t\t\treferenceId = context.referenceMap.createId(context.definitions);\n\t\t\t\tcontext.referenceMap.set(wrappedValibotSchema, referenceId);\n\t\t\t\tcontext.definitions[referenceId] = convertSchema({}, wrappedValibotSchema, config, context, true);\n\t\t\t}\n\t\t\tjsonSchema.$ref = getDefinitionRef(referenceId);\n\t\t\tif (config?.overrideRef) {\n\t\t\t\tconst refOverride = config.overrideRef({\n\t\t\t\t\t...context,\n\t\t\t\t\treferenceId,\n\t\t\t\t\tvalibotSchema: wrappedValibotSchema,\n\t\t\t\t\tjsonSchema\n\t\t\t\t});\n\t\t\t\tif (refOverride) jsonSchema.$ref = refOverride;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tdefault: errors = addError(errors, `The \"${valibotSchema.type}\" schema cannot be converted to JSON Schema.`);\n\t}\n\tif (config?.overrideSchema) {\n\t\tconst schemaOverride = config.overrideSchema({\n\t\t\t...context,\n\t\t\treferenceId: context.referenceMap.get(valibotSchema),\n\t\t\tvalibotSchema,\n\t\t\tjsonSchema,\n\t\t\terrors\n\t\t});\n\t\tif (schemaOverride) return { ...schemaOverride };\n\t}\n\tif (errors) for (const message of errors) handleError(message, config);\n\treturn jsonSchema;\n}\n\n//#endregion\n//#region src/storages/globalDefs/globalDefs.ts\nlet store;\n/**\n* Adds new definitions to the global schema definitions.\n*\n* @param definitions The schema definitions.\n*\n* @beta\n*/\nfunction addGlobalDefs(definitions) {\n\tstore = {\n\t\t...store ?? {},\n\t\t...definitions\n\t};\n}\n/**\n* Returns the current global schema definitions.\n*\n* @returns The schema definitions.\n*\n* @beta\n*/\nfunction getGlobalDefs() {\n\treturn store;\n}\n\n//#endregion\n//#region src/functions/toJsonSchema/toJsonSchema.ts\n/**\n* Converts a Valibot schema to the JSON Schema format.\n*\n* @param schema The Valibot schema object.\n* @param config The JSON Schema configuration.\n*\n* @returns The converted JSON Schema.\n*/\nfunction toJsonSchema(schema, config) {\n\tconst context = {\n\t\tdefinitions: {},\n\t\treferenceMap: new ReferenceMap(),\n\t\tgetterMap: /* @__PURE__ */ new Map()\n\t};\n\tconst definitions = config?.definitions ?? getGlobalDefs();\n\tif (definitions) {\n\t\tfor (const key in definitions) context.referenceMap.set(definitions[key], key);\n\t\tfor (const key in definitions) context.definitions[key] = convertSchema({}, definitions[key], config, context, true);\n\t}\n\tconst jsonSchema = convertSchema({}, schema, config, context);\n\tconst target = config?.target ?? \"draft-07\";\n\tif (target === \"draft-2020-12\") jsonSchema.$schema = \"https://json-schema.org/draft/2020-12/schema\";\n\telse if (target === \"draft-07\") jsonSchema.$schema = \"http://json-schema.org/draft-07/schema#\";\n\tif (context.referenceMap.size) jsonSchema.$defs = context.definitions;\n\treturn jsonSchema;\n}\n\n//#endregion\n//#region src/functions/toJsonSchemaDefs/toJsonSchemaDefs.ts\n/**\n* Converts Valibot schema definitions to JSON Schema definitions.\n*\n* @param definitions The Valibot schema definitions.\n* @param config The JSON Schema configuration.\n*\n* @returns The converted JSON Schema definitions.\n*/\nfunction toJsonSchemaDefs(definitions, config) {\n\tconst context = {\n\t\tdefinitions: {},\n\t\treferenceMap: new ReferenceMap(),\n\t\tgetterMap: /* @__PURE__ */ new Map()\n\t};\n\tfor (const key in definitions) context.referenceMap.set(definitions[key], key);\n\tfor (const key in definitions) context.definitions[key] = convertSchema({}, definitions[key], config, context, true);\n\treturn context.definitions;\n}\n\n//#endregion\n//#region src/functions/toStandardJsonSchema/toStandardJsonSchema.ts\nconst SUPPORTED_TARGETS = [\n\t\"draft-07\",\n\t\"draft-2020-12\",\n\t\"openapi-3.0\"\n];\n/**\n* Converts a Valibot schema to the Standard JSON Schema format.\n*\n* @param schema The Valibot schema object.\n*\n* @returns The Standard JSON Schema.\n*/\nfunction toStandardJsonSchema(schema) {\n\treturn { \"~standard\": {\n\t\t...schema[\"~standard\"],\n\t\tjsonSchema: {\n\t\t\tinput(options) {\n\t\t\t\tif (SUPPORTED_TARGETS.includes(options.target)) return toJsonSchema(schema, {\n\t\t\t\t\ttypeMode: \"input\",\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\t...options.libraryOptions\n\t\t\t\t});\n\t\t\t\tthrow new Error(`Unsupported target: ${options.target}`);\n\t\t\t},\n\t\t\toutput(options) {\n\t\t\t\tif (SUPPORTED_TARGETS.includes(options.target)) return toJsonSchema(schema, {\n\t\t\t\t\ttypeMode: \"output\",\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\t...options.libraryOptions\n\t\t\t\t});\n\t\t\t\tthrow new Error(`Unsupported target: ${options.target}`);\n\t\t\t}\n\t\t}\n\t} };\n}\n\n//#endregion\nexport { addGlobalDefs, getGlobalDefs, toJsonSchema, toJsonSchemaDefs, toStandardJsonSchema };"],"ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAS,SAAS,QAAQ,SAAS;CAClC,IAAI,QAAQ;EACX,OAAO,KAAK,OAAO;EACnB,OAAO;CACR;CACA,OAAO,CAAC,OAAO;AAChB;AAIA,MAAM,eAAe;;;;;;;;AAQrB,SAAS,aAAa,QAAQ;CAC7B,OAAO,OAAO,QAAQ,cAAc,MAAM;AAC3C;;;;;;;AAUA,SAAS,YAAY,SAAS,QAAQ;CACrC,QAAQ,QAAQ,WAAhB;EACC,KAAK,UAAU;EACf,KAAK;GACJ,QAAQ,KAAK,OAAO;GACpB;EACD,SAAS,MAAM,IAAI,MAAM,OAAO;CACjC;AACD;;;;;;;;AAWA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,aAAa,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,KAAK,OAAO,UAAU;AAC9G;;;;;;;;AAWA,SAAS,iBAAiB,QAAQ;CACjC,OAAO,OAAO,MAAM,gBAAgB;AACrC;;;;AAOA,IAAI,eAAe,cAAc,IAAI;;;;CAIpC,cAAc;EACb,MAAM;EAC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UAAU;MAChD,IAAI,WAAW,YAAY,WAAW,UAAU;CACrD,IAAI,QAAQ,aAAa,MAAM,WAAW,QAAQ,QAAQ;CAC1D,OAAO;AACR"}
@@ -3,7 +3,7 @@ name: mastra-deployer
3
3
  description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/deployer"
6
- version: "1.79.0"
6
+ version: "1.80.0-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.79.0",
2
+ "version": "1.80.0-alpha.1",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -1,5 +1,5 @@
1
- import { t as MissingDependencyError } from "./index-CLddUTqr-86A1rnBL.js";
2
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/ac64b21b225adb3ad3012ab2f9eb19098705e52e435f5917b031a4235585ba33/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
1
+ import { t as MissingDependencyError } from "./index-CLddUTqr-73bY0Z8P.js";
2
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/4d6020dcf53f70114239812ce34537b149c7dad9eeb628e2fc9a220b3c2cefe0/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
3
3
  async function getToJsonSchemaFn() {
4
4
  try {
5
5
  const { JSONSchema } = await import("effect");
@@ -11,4 +11,4 @@ async function getToJsonSchemaFn() {
11
11
  //#endregion
12
12
  export { getToJsonSchemaFn as default };
13
13
 
14
- //# sourceMappingURL=effect-QlVUlMFu-Cvay38Oi.js.map
14
+ //# sourceMappingURL=effect-QlVUlMFu-CgfR_0ad.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"effect-QlVUlMFu-Cvay38Oi.js","names":[],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/ac64b21b225adb3ad3012ab2f9eb19098705e52e435f5917b031a4235585ba33/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAI,uBAAuB,QAAQ;CAC3C;AACF"}
1
+ {"version":3,"file":"effect-QlVUlMFu-CgfR_0ad.js","names":[],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/4d6020dcf53f70114239812ce34537b149c7dad9eeb628e2fc9a220b3c2cefe0/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAI,uBAAuB,QAAQ;CAC3C;AACF"}
@@ -1,5 +1,5 @@
1
- const require_index_CLddUTqr = require("./index-CLddUTqr-D0GzVJyg.cjs");
2
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/ac64b21b225adb3ad3012ab2f9eb19098705e52e435f5917b031a4235585ba33/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
1
+ const require_index_CLddUTqr = require("./index-CLddUTqr-CgjYL5XV.cjs");
2
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/4d6020dcf53f70114239812ce34537b149c7dad9eeb628e2fc9a220b3c2cefe0/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
3
3
  async function getToJsonSchemaFn() {
4
4
  try {
5
5
  const { JSONSchema } = await import("effect");
@@ -11,4 +11,4 @@ async function getToJsonSchemaFn() {
11
11
  //#endregion
12
12
  exports.default = getToJsonSchemaFn;
13
13
 
14
- //# sourceMappingURL=effect-QlVUlMFu-CC0Mpf1v.cjs.map
14
+ //# sourceMappingURL=effect-QlVUlMFu-D_Bo06-a.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"effect-QlVUlMFu-CC0Mpf1v.cjs","names":["MissingDependencyError"],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/ac64b21b225adb3ad3012ab2f9eb19098705e52e435f5917b031a4235585ba33/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAIA,uBAAAA,uBAAuB,QAAQ;CAC3C;AACF"}
1
+ {"version":3,"file":"effect-QlVUlMFu-D_Bo06-a.cjs","names":["MissingDependencyError"],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/4d6020dcf53f70114239812ce34537b149c7dad9eeb628e2fc9a220b3c2cefe0/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAIA,uBAAAA,uBAAuB,QAAQ;CAC3C;AACF"}
@@ -82,7 +82,7 @@ quansync({
82
82
  sync: () => false
83
83
  });
84
84
  //#endregion
85
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/ac64b21b225adb3ad3012ab2f9eb19098705e52e435f5917b031a4235585ba33/node_modules/@standard-community/standard-json/dist/index-CLddUTqr.js
85
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/4d6020dcf53f70114239812ce34537b149c7dad9eeb628e2fc9a220b3c2cefe0/node_modules/@standard-community/standard-json/dist/index-CLddUTqr.js
86
86
  const validationMapper = /* @__PURE__ */ new Map();
87
87
  var UnsupportedVendorError = class extends Error {
88
88
  constructor(vendor) {
@@ -100,22 +100,22 @@ const getToJsonSchemaFn = async (vendor) => {
100
100
  let vendorFnPromise;
101
101
  switch (vendor) {
102
102
  case "arktype":
103
- vendorFnPromise = (await import("./arktype-aI7TBD0R-cgd8o1cq.js")).default();
103
+ vendorFnPromise = (await import("./arktype-aI7TBD0R-CrIkuKY8.js")).default();
104
104
  break;
105
105
  case "effect":
106
- vendorFnPromise = (await import("./effect-QlVUlMFu-Cvay38Oi.js")).default();
106
+ vendorFnPromise = (await import("./effect-QlVUlMFu-CgfR_0ad.js")).default();
107
107
  break;
108
108
  case "sury":
109
- vendorFnPromise = (await import("./sury-CWZTCd75-r5hgAI0o.js")).default();
109
+ vendorFnPromise = (await import("./sury-CWZTCd75-DiZVb8bZ.js")).default();
110
110
  break;
111
111
  case "typebox":
112
- vendorFnPromise = (await import("./typebox-Dei93FPO-BCfJ-0cP.js")).default();
112
+ vendorFnPromise = (await import("./typebox-Dei93FPO-CwpAqpd5.js")).default();
113
113
  break;
114
114
  case "valibot":
115
- vendorFnPromise = (await import("./valibot--1zFm7rT-CU_2XLpq.js")).default();
115
+ vendorFnPromise = (await import("./valibot--1zFm7rT-BfSX2bry.js")).default();
116
116
  break;
117
117
  case "zod":
118
- vendorFnPromise = (await import("./zod-Bwrt9trS-BurSNK0g.js")).default();
118
+ vendorFnPromise = (await import("./zod-Bwrt9trS-CO1V3tYt.js")).default();
119
119
  break;
120
120
  default: throw new UnsupportedVendorError(vendor);
121
121
  }
@@ -137,4 +137,4 @@ quansync({
137
137
  //#endregion
138
138
  export { MissingDependencyError as t };
139
139
 
140
- //# sourceMappingURL=index-CLddUTqr-86A1rnBL.js.map
140
+ //# sourceMappingURL=index-CLddUTqr-73bY0Z8P.js.map