@rexeus/typeweaver-types 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,50 +1,45 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- import { BasePlugin, Path } from "@rexeus/typeweaver-gen";
4
- import { TsTypeNode, TsTypePrinter } from "@rexeus/typeweaver-zod-to-ts";
3
+ import { BasePlugin } from "@rexeus/typeweaver-gen";
4
+ import { fromZod, print } from "@rexeus/typeweaver-zod-to-ts";
5
5
  import Case from "case";
6
6
  import { HttpStatusCode } from "@rexeus/typeweaver-core";
7
-
8
7
  //#region \0rolldown/runtime.js
9
8
  var __defProp = Object.defineProperty;
10
9
  var __exportAll = (all, no_symbols) => {
11
10
  let target = {};
12
- for (var name in all) {
13
- __defProp(target, name, {
14
- get: all[name],
15
- enumerable: true
16
- });
17
- }
18
- if (!no_symbols) {
19
- __defProp(target, Symbol.toStringTag, { value: "Module" });
20
- }
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
21
16
  return target;
22
17
  };
23
-
24
18
  //#endregion
25
- //#region src/RequestGenerator.ts
26
- const moduleDir$5 = path.dirname(fileURLToPath(import.meta.url));
27
- var RequestGenerator = class {
28
- static generate(context) {
29
- const templateFilePath = path.join(moduleDir$5, "templates", "Request.ejs");
30
- for (const [, entityResource] of Object.entries(context.resources.entityResources)) for (const definition of entityResource.operations) this.writeRequestType(templateFilePath, definition, context);
31
- }
32
- static writeRequestType(templateFilePath, operationResource, context) {
33
- const { request, operationId, method } = operationResource.definition;
34
- const { header, query, param, body } = request;
35
- const content = context.renderTemplate(templateFilePath, {
36
- pascalCaseOperationId: Case.pascal(operationId),
37
- method,
38
- headerTsType: header ? TsTypePrinter.print(TsTypeNode.fromZod(header)) : void 0,
39
- queryTsType: query ? TsTypePrinter.print(TsTypeNode.fromZod(query)) : void 0,
40
- paramTsType: param ? TsTypePrinter.print(TsTypeNode.fromZod(param)) : void 0,
41
- bodyTsType: body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0
42
- });
43
- const relativePath = path.relative(context.outputDir, operationResource.outputRequestFile);
44
- context.writeFile(relativePath, content);
45
- }
46
- };
47
-
19
+ //#region src/requestGenerator.ts
20
+ const moduleDir$4 = path.dirname(fileURLToPath(import.meta.url));
21
+ function generate$3(context) {
22
+ const templateFilePath = path.join(moduleDir$4, "templates", "Request.ejs");
23
+ for (const resource of context.normalizedSpec.resources) for (const operation of resource.operations) writeRequestType(templateFilePath, resource.name, operation, context);
24
+ }
25
+ function writeRequestType(templateFilePath, resourceName, operation, context) {
26
+ const { request, operationId, method } = operation;
27
+ const { header, query, param, body } = request ?? {};
28
+ const outputPaths = context.getOperationOutputPaths({
29
+ resourceName,
30
+ operationId
31
+ });
32
+ const content = context.renderTemplate(templateFilePath, {
33
+ pascalCaseOperationId: Case.pascal(operationId),
34
+ method,
35
+ headerTsType: header ? print(fromZod(header)) : void 0,
36
+ queryTsType: query ? print(fromZod(query)) : void 0,
37
+ paramTsType: param ? print(fromZod(param)) : void 0,
38
+ bodyTsType: body ? print(fromZod(body)) : void 0
39
+ });
40
+ const relativePath = path.relative(context.outputDir, outputPaths.requestFile);
41
+ context.writeFile(relativePath, content);
42
+ }
48
43
  //#endregion
49
44
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
50
45
  /** A special constant with type `never` */
@@ -105,7 +100,6 @@ function config(newConfig) {
105
100
  if (newConfig) Object.assign(globalConfig, newConfig);
106
101
  return globalConfig;
107
102
  }
108
-
109
103
  //#endregion
110
104
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
111
105
  var util_exports = /* @__PURE__ */ __exportAll({
@@ -254,10 +248,7 @@ function assignProp(target, prop, value) {
254
248
  }
255
249
  function mergeDefs(...defs) {
256
250
  const mergedDescriptors = {};
257
- for (const def of defs) {
258
- const descriptors = Object.getOwnPropertyDescriptors(def);
259
- Object.assign(mergedDescriptors, descriptors);
260
- }
251
+ for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
261
252
  return Object.defineProperties({}, mergedDescriptors);
262
253
  }
263
254
  function cloneDef(schema) {
@@ -654,7 +645,6 @@ function uint8ArrayToHex(bytes) {
654
645
  var Class = class {
655
646
  constructor(..._args) {}
656
647
  };
657
-
658
648
  //#endregion
659
649
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
660
650
  const initializer$1 = (inst, def) => {
@@ -800,7 +790,6 @@ function prettifyError(error) {
800
790
  }
801
791
  return lines.join("\n");
802
792
  }
803
-
804
793
  //#endregion
805
794
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
806
795
  const _parse = (_Err) => (schema, value, _ctx, _params) => {
@@ -904,7 +893,6 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
904
893
  return _safeParseAsync(_Err)(schema, value, _ctx);
905
894
  };
906
895
  const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
907
-
908
896
  //#endregion
909
897
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
910
898
  var regexes_exports = /* @__PURE__ */ __exportAll({
@@ -1067,7 +1055,6 @@ const sha384_base64url = /* @__PURE__ */ fixedBase64url(64);
1067
1055
  const sha512_hex = /^[0-9a-fA-F]{128}$/;
1068
1056
  const sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1069
1057
  const sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1070
-
1071
1058
  //#endregion
1072
1059
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
1073
1060
  const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
@@ -1573,7 +1560,6 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
1573
1560
  payload.value = def.tx(payload.value);
1574
1561
  };
1575
1562
  });
1576
-
1577
1563
  //#endregion
1578
1564
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
1579
1565
  var Doc = class {
@@ -1605,7 +1591,6 @@ var Doc = class {
1605
1591
  return new F(...args, lines.join("\n"));
1606
1592
  }
1607
1593
  };
1608
-
1609
1594
  //#endregion
1610
1595
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
1611
1596
  const version = {
@@ -1613,7 +1598,6 @@ const version = {
1613
1598
  minor: 3,
1614
1599
  patch: 6
1615
1600
  };
1616
-
1617
1601
  //#endregion
1618
1602
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
1619
1603
  const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
@@ -2356,8 +2340,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
2356
2340
  let fastpass;
2357
2341
  const isObject$1 = isObject;
2358
2342
  const jit = !globalConfig.jitless;
2359
- const allowsEval$1 = allowsEval;
2360
- const fastEnabled = jit && allowsEval$1.value;
2343
+ const fastEnabled = jit && allowsEval.value;
2361
2344
  const catchall = def.catchall;
2362
2345
  let value;
2363
2346
  inst._zod.parse = (payload, ctx) => {
@@ -3345,7 +3328,6 @@ function handleRefineResult(result, payload, input, inst) {
3345
3328
  payload.issues.push(issue(_iss));
3346
3329
  }
3347
3330
  }
3348
-
3349
3331
  //#endregion
3350
3332
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
3351
3333
  const error$46 = () => {
@@ -3445,7 +3427,6 @@ const error$46 = () => {
3445
3427
  function ar_default() {
3446
3428
  return { localeError: error$46() };
3447
3429
  }
3448
-
3449
3430
  //#endregion
3450
3431
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
3451
3432
  const error$45 = () => {
@@ -3545,7 +3526,6 @@ const error$45 = () => {
3545
3526
  function az_default() {
3546
3527
  return { localeError: error$45() };
3547
3528
  }
3548
-
3549
3529
  //#endregion
3550
3530
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
3551
3531
  function getBelarusianPlural(count, one, few, many) {
@@ -3680,7 +3660,6 @@ const error$44 = () => {
3680
3660
  function be_default() {
3681
3661
  return { localeError: error$44() };
3682
3662
  }
3683
-
3684
3663
  //#endregion
3685
3664
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
3686
3665
  const error$43 = () => {
@@ -3790,7 +3769,6 @@ const error$43 = () => {
3790
3769
  function bg_default() {
3791
3770
  return { localeError: error$43() };
3792
3771
  }
3793
-
3794
3772
  //#endregion
3795
3773
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
3796
3774
  const error$42 = () => {
@@ -3890,7 +3868,6 @@ const error$42 = () => {
3890
3868
  function ca_default() {
3891
3869
  return { localeError: error$42() };
3892
3870
  }
3893
-
3894
3871
  //#endregion
3895
3872
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
3896
3873
  const error$41 = () => {
@@ -3996,7 +3973,6 @@ const error$41 = () => {
3996
3973
  function cs_default() {
3997
3974
  return { localeError: error$41() };
3998
3975
  }
3999
-
4000
3976
  //#endregion
4001
3977
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
4002
3978
  const error$40 = () => {
@@ -4107,7 +4083,6 @@ const error$40 = () => {
4107
4083
  function da_default() {
4108
4084
  return { localeError: error$40() };
4109
4085
  }
4110
-
4111
4086
  //#endregion
4112
4087
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
4113
4088
  const error$39 = () => {
@@ -4211,7 +4186,6 @@ const error$39 = () => {
4211
4186
  function de_default() {
4212
4187
  return { localeError: error$39() };
4213
4188
  }
4214
-
4215
4189
  //#endregion
4216
4190
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
4217
4191
  const error$38 = () => {
@@ -4314,7 +4288,6 @@ const error$38 = () => {
4314
4288
  function en_default() {
4315
4289
  return { localeError: error$38() };
4316
4290
  }
4317
-
4318
4291
  //#endregion
4319
4292
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
4320
4293
  const error$37 = () => {
@@ -4419,7 +4392,6 @@ const error$37 = () => {
4419
4392
  function eo_default() {
4420
4393
  return { localeError: error$37() };
4421
4394
  }
4422
-
4423
4395
  //#endregion
4424
4396
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
4425
4397
  const error$36 = () => {
@@ -4547,7 +4519,6 @@ const error$36 = () => {
4547
4519
  function es_default() {
4548
4520
  return { localeError: error$36() };
4549
4521
  }
4550
-
4551
4522
  //#endregion
4552
4523
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
4553
4524
  const error$35 = () => {
@@ -4651,7 +4622,6 @@ const error$35 = () => {
4651
4622
  function fa_default() {
4652
4623
  return { localeError: error$35() };
4653
4624
  }
4654
-
4655
4625
  //#endregion
4656
4626
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
4657
4627
  const error$34 = () => {
@@ -4767,7 +4737,6 @@ const error$34 = () => {
4767
4737
  function fi_default() {
4768
4738
  return { localeError: error$34() };
4769
4739
  }
4770
-
4771
4740
  //#endregion
4772
4741
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
4773
4742
  const error$33 = () => {
@@ -4871,7 +4840,6 @@ const error$33 = () => {
4871
4840
  function fr_default() {
4872
4841
  return { localeError: error$33() };
4873
4842
  }
4874
-
4875
4843
  //#endregion
4876
4844
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
4877
4845
  const error$32 = () => {
@@ -4971,7 +4939,6 @@ const error$32 = () => {
4971
4939
  function fr_CA_default() {
4972
4940
  return { localeError: error$32() };
4973
4941
  }
4974
-
4975
4942
  //#endregion
4976
4943
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
4977
4944
  const error$31 = () => {
@@ -5277,7 +5244,6 @@ const error$31 = () => {
5277
5244
  function he_default() {
5278
5245
  return { localeError: error$31() };
5279
5246
  }
5280
-
5281
5247
  //#endregion
5282
5248
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
5283
5249
  const error$30 = () => {
@@ -5381,7 +5347,6 @@ const error$30 = () => {
5381
5347
  function hu_default() {
5382
5348
  return { localeError: error$30() };
5383
5349
  }
5384
-
5385
5350
  //#endregion
5386
5351
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
5387
5352
  function getArmenianPlural(count, one, many) {
@@ -5520,7 +5485,6 @@ const error$29 = () => {
5520
5485
  function hy_default() {
5521
5486
  return { localeError: error$29() };
5522
5487
  }
5523
-
5524
5488
  //#endregion
5525
5489
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
5526
5490
  const error$28 = () => {
@@ -5620,7 +5584,6 @@ const error$28 = () => {
5620
5584
  function id_default() {
5621
5585
  return { localeError: error$28() };
5622
5586
  }
5623
-
5624
5587
  //#endregion
5625
5588
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
5626
5589
  const error$27 = () => {
@@ -5724,7 +5687,6 @@ const error$27 = () => {
5724
5687
  function is_default() {
5725
5688
  return { localeError: error$27() };
5726
5689
  }
5727
-
5728
5690
  //#endregion
5729
5691
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
5730
5692
  const error$26 = () => {
@@ -5828,7 +5790,6 @@ const error$26 = () => {
5828
5790
  function it_default() {
5829
5791
  return { localeError: error$26() };
5830
5792
  }
5831
-
5832
5793
  //#endregion
5833
5794
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
5834
5795
  const error$25 = () => {
@@ -5932,7 +5893,6 @@ const error$25 = () => {
5932
5893
  function ja_default() {
5933
5894
  return { localeError: error$25() };
5934
5895
  }
5935
-
5936
5896
  //#endregion
5937
5897
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
5938
5898
  const error$24 = () => {
@@ -6039,7 +5999,6 @@ const error$24 = () => {
6039
5999
  function ka_default() {
6040
6000
  return { localeError: error$24() };
6041
6001
  }
6042
-
6043
6002
  //#endregion
6044
6003
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
6045
6004
  const error$23 = () => {
@@ -6144,14 +6103,12 @@ const error$23 = () => {
6144
6103
  function km_default() {
6145
6104
  return { localeError: error$23() };
6146
6105
  }
6147
-
6148
6106
  //#endregion
6149
6107
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
6150
6108
  /** @deprecated Use `km` instead. */
6151
6109
  function kh_default() {
6152
6110
  return km_default();
6153
6111
  }
6154
-
6155
6112
  //#endregion
6156
6113
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
6157
6114
  const error$22 = () => {
@@ -6255,7 +6212,6 @@ const error$22 = () => {
6255
6212
  function ko_default() {
6256
6213
  return { localeError: error$22() };
6257
6214
  }
6258
-
6259
6215
  //#endregion
6260
6216
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
6261
6217
  const capitalizeFirstCharacter = (text) => {
@@ -6437,7 +6393,6 @@ const error$21 = () => {
6437
6393
  function lt_default() {
6438
6394
  return { localeError: error$21() };
6439
6395
  }
6440
-
6441
6396
  //#endregion
6442
6397
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
6443
6398
  const error$20 = () => {
@@ -6541,7 +6496,6 @@ const error$20 = () => {
6541
6496
  function mk_default() {
6542
6497
  return { localeError: error$20() };
6543
6498
  }
6544
-
6545
6499
  //#endregion
6546
6500
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
6547
6501
  const error$19 = () => {
@@ -6644,7 +6598,6 @@ const error$19 = () => {
6644
6598
  function ms_default() {
6645
6599
  return { localeError: error$19() };
6646
6600
  }
6647
-
6648
6601
  //#endregion
6649
6602
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
6650
6603
  const error$18 = () => {
@@ -6749,7 +6702,6 @@ const error$18 = () => {
6749
6702
  function nl_default() {
6750
6703
  return { localeError: error$18() };
6751
6704
  }
6752
-
6753
6705
  //#endregion
6754
6706
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
6755
6707
  const error$17 = () => {
@@ -6853,7 +6805,6 @@ const error$17 = () => {
6853
6805
  function no_default() {
6854
6806
  return { localeError: error$17() };
6855
6807
  }
6856
-
6857
6808
  //#endregion
6858
6809
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
6859
6810
  const error$16 = () => {
@@ -6958,7 +6909,6 @@ const error$16 = () => {
6958
6909
  function ota_default() {
6959
6910
  return { localeError: error$16() };
6960
6911
  }
6961
-
6962
6912
  //#endregion
6963
6913
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
6964
6914
  const error$15 = () => {
@@ -7062,7 +7012,6 @@ const error$15 = () => {
7062
7012
  function ps_default() {
7063
7013
  return { localeError: error$15() };
7064
7014
  }
7065
-
7066
7015
  //#endregion
7067
7016
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
7068
7017
  const error$14 = () => {
@@ -7166,7 +7115,6 @@ const error$14 = () => {
7166
7115
  function pl_default() {
7167
7116
  return { localeError: error$14() };
7168
7117
  }
7169
-
7170
7118
  //#endregion
7171
7119
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
7172
7120
  const error$13 = () => {
@@ -7270,7 +7218,6 @@ const error$13 = () => {
7270
7218
  function pt_default() {
7271
7219
  return { localeError: error$13() };
7272
7220
  }
7273
-
7274
7221
  //#endregion
7275
7222
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
7276
7223
  function getRussianPlural(count, one, few, many) {
@@ -7405,7 +7352,6 @@ const error$12 = () => {
7405
7352
  function ru_default() {
7406
7353
  return { localeError: error$12() };
7407
7354
  }
7408
-
7409
7355
  //#endregion
7410
7356
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
7411
7357
  const error$11 = () => {
@@ -7509,7 +7455,6 @@ const error$11 = () => {
7509
7455
  function sl_default() {
7510
7456
  return { localeError: error$11() };
7511
7457
  }
7512
-
7513
7458
  //#endregion
7514
7459
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
7515
7460
  const error$10 = () => {
@@ -7613,7 +7558,6 @@ const error$10 = () => {
7613
7558
  function sv_default() {
7614
7559
  return { localeError: error$10() };
7615
7560
  }
7616
-
7617
7561
  //#endregion
7618
7562
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
7619
7563
  const error$9 = () => {
@@ -7718,7 +7662,6 @@ const error$9 = () => {
7718
7662
  function ta_default() {
7719
7663
  return { localeError: error$9() };
7720
7664
  }
7721
-
7722
7665
  //#endregion
7723
7666
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
7724
7667
  const error$8 = () => {
@@ -7823,7 +7766,6 @@ const error$8 = () => {
7823
7766
  function th_default() {
7824
7767
  return { localeError: error$8() };
7825
7768
  }
7826
-
7827
7769
  //#endregion
7828
7770
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
7829
7771
  const error$7 = () => {
@@ -7923,7 +7865,6 @@ const error$7 = () => {
7923
7865
  function tr_default() {
7924
7866
  return { localeError: error$7() };
7925
7867
  }
7926
-
7927
7868
  //#endregion
7928
7869
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
7929
7870
  const error$6 = () => {
@@ -8027,14 +7968,12 @@ const error$6 = () => {
8027
7968
  function uk_default() {
8028
7969
  return { localeError: error$6() };
8029
7970
  }
8030
-
8031
7971
  //#endregion
8032
7972
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
8033
7973
  /** @deprecated Use `uk` instead. */
8034
7974
  function ua_default() {
8035
7975
  return uk_default();
8036
7976
  }
8037
-
8038
7977
  //#endregion
8039
7978
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
8040
7979
  const error$5 = () => {
@@ -8139,7 +8078,6 @@ const error$5 = () => {
8139
8078
  function ur_default() {
8140
8079
  return { localeError: error$5() };
8141
8080
  }
8142
-
8143
8081
  //#endregion
8144
8082
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
8145
8083
  const error$4 = () => {
@@ -8244,7 +8182,6 @@ const error$4 = () => {
8244
8182
  function uz_default() {
8245
8183
  return { localeError: error$4() };
8246
8184
  }
8247
-
8248
8185
  //#endregion
8249
8186
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
8250
8187
  const error$3 = () => {
@@ -8348,7 +8285,6 @@ const error$3 = () => {
8348
8285
  function vi_default() {
8349
8286
  return { localeError: error$3() };
8350
8287
  }
8351
-
8352
8288
  //#endregion
8353
8289
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
8354
8290
  const error$2 = () => {
@@ -8453,7 +8389,6 @@ const error$2 = () => {
8453
8389
  function zh_CN_default() {
8454
8390
  return { localeError: error$2() };
8455
8391
  }
8456
-
8457
8392
  //#endregion
8458
8393
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
8459
8394
  const error$1 = () => {
@@ -8553,7 +8488,6 @@ const error$1 = () => {
8553
8488
  function zh_TW_default() {
8554
8489
  return { localeError: error$1() };
8555
8490
  }
8556
-
8557
8491
  //#endregion
8558
8492
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
8559
8493
  const error = () => {
@@ -8657,7 +8591,6 @@ const error = () => {
8657
8591
  function yo_default() {
8658
8592
  return { localeError: error() };
8659
8593
  }
8660
-
8661
8594
  //#endregion
8662
8595
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
8663
8596
  var locales_exports = /* @__PURE__ */ __exportAll({
@@ -8711,7 +8644,6 @@ var locales_exports = /* @__PURE__ */ __exportAll({
8711
8644
  zhCN: () => zh_CN_default,
8712
8645
  zhTW: () => zh_TW_default
8713
8646
  });
8714
-
8715
8647
  //#endregion
8716
8648
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
8717
8649
  var _a;
@@ -8761,7 +8693,6 @@ function registry() {
8761
8693
  }
8762
8694
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
8763
8695
  const globalRegistry = globalThis.__zod_globalRegistry;
8764
-
8765
8696
  //#endregion
8766
8697
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
8767
8698
  /* @__NO_SIDE_EFFECTS__ */
@@ -9489,12 +9420,11 @@ function _intersection(Class, left, right) {
9489
9420
  /* @__NO_SIDE_EFFECTS__ */
9490
9421
  function _tuple(Class, items, _paramsOrRest, _params) {
9491
9422
  const hasRest = _paramsOrRest instanceof $ZodType;
9492
- const params = hasRest ? _params : _paramsOrRest;
9493
9423
  return new Class({
9494
9424
  type: "tuple",
9495
9425
  items,
9496
9426
  rest: hasRest ? _paramsOrRest : null,
9497
- ...normalizeParams(params)
9427
+ ...normalizeParams(hasRest ? _params : _paramsOrRest)
9498
9428
  });
9499
9429
  }
9500
9430
  /* @__NO_SIDE_EFFECTS__ */
@@ -9802,7 +9732,6 @@ function _stringFormat(Class, format, fnOrRegex, _params = {}) {
9802
9732
  if (fnOrRegex instanceof RegExp) def.pattern = fnOrRegex;
9803
9733
  return new Class(def);
9804
9734
  }
9805
-
9806
9735
  //#endregion
9807
9736
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
9808
9737
  function initializeContext(params) {
@@ -10088,7 +10017,6 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
10088
10017
  extractDefs(ctx, schema);
10089
10018
  return finalize(ctx, schema);
10090
10019
  };
10091
-
10092
10020
  //#endregion
10093
10021
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
10094
10022
  const formatMap = {
@@ -10545,7 +10473,6 @@ function toJSONSchema(input, params) {
10545
10473
  extractDefs(ctx, input);
10546
10474
  return finalize(ctx, input);
10547
10475
  }
10548
-
10549
10476
  //#endregion
10550
10477
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
10551
10478
  /**
@@ -10635,11 +10562,9 @@ var JSONSchemaGenerator = class {
10635
10562
  return plainResult;
10636
10563
  }
10637
10564
  };
10638
-
10639
10565
  //#endregion
10640
10566
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
10641
10567
  var json_schema_exports = /* @__PURE__ */ __exportAll({});
10642
-
10643
10568
  //#endregion
10644
10569
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
10645
10570
  var core_exports = /* @__PURE__ */ __exportAll({
@@ -10917,7 +10842,6 @@ var core_exports = /* @__PURE__ */ __exportAll({
10917
10842
  util: () => util_exports,
10918
10843
  version: () => version
10919
10844
  });
10920
-
10921
10845
  //#endregion
10922
10846
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
10923
10847
  var checks_exports = /* @__PURE__ */ __exportAll({
@@ -10951,7 +10875,6 @@ var checks_exports = /* @__PURE__ */ __exportAll({
10951
10875
  trim: () => _trim,
10952
10876
  uppercase: () => _uppercase
10953
10877
  });
10954
-
10955
10878
  //#endregion
10956
10879
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
10957
10880
  var iso_exports = /* @__PURE__ */ __exportAll({
@@ -10969,30 +10892,29 @@ const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def
10969
10892
  ZodStringFormat.init(inst, def);
10970
10893
  });
10971
10894
  function datetime(params) {
10972
- return _isoDateTime(ZodISODateTime, params);
10895
+ return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
10973
10896
  }
10974
10897
  const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
10975
10898
  $ZodISODate.init(inst, def);
10976
10899
  ZodStringFormat.init(inst, def);
10977
10900
  });
10978
10901
  function date$2(params) {
10979
- return _isoDate(ZodISODate, params);
10902
+ return /* @__PURE__ */ _isoDate(ZodISODate, params);
10980
10903
  }
10981
10904
  const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
10982
10905
  $ZodISOTime.init(inst, def);
10983
10906
  ZodStringFormat.init(inst, def);
10984
10907
  });
10985
10908
  function time(params) {
10986
- return _isoTime(ZodISOTime, params);
10909
+ return /* @__PURE__ */ _isoTime(ZodISOTime, params);
10987
10910
  }
10988
10911
  const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
10989
10912
  $ZodISODuration.init(inst, def);
10990
10913
  ZodStringFormat.init(inst, def);
10991
10914
  });
10992
10915
  function duration(params) {
10993
- return _isoDuration(ZodISODuration, params);
10916
+ return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
10994
10917
  }
10995
-
10996
10918
  //#endregion
10997
10919
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
10998
10920
  const initializer = (inst, issues) => {
@@ -11016,7 +10938,6 @@ const initializer = (inst, issues) => {
11016
10938
  };
11017
10939
  const ZodError = $constructor("ZodError", initializer);
11018
10940
  const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
11019
-
11020
10941
  //#endregion
11021
10942
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
11022
10943
  const parse = /* @__PURE__ */ _parse(ZodRealError);
@@ -11031,7 +10952,6 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
11031
10952
  const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
11032
10953
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
11033
10954
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
11034
-
11035
10955
  //#endregion
11036
10956
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
11037
10957
  var schemas_exports = /* @__PURE__ */ __exportAll({
@@ -11239,7 +11159,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
11239
11159
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
11240
11160
  inst.refine = (check, params) => inst.check(refine(check, params));
11241
11161
  inst.superRefine = (refinement) => inst.check(superRefine(refinement));
11242
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
11162
+ inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
11243
11163
  inst.optional = () => optional(inst);
11244
11164
  inst.exactOptional = () => exactOptional(inst);
11245
11165
  inst.nullable = () => nullable(inst);
@@ -11285,55 +11205,55 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
11285
11205
  inst.format = bag.format ?? null;
11286
11206
  inst.minLength = bag.minimum ?? null;
11287
11207
  inst.maxLength = bag.maximum ?? null;
11288
- inst.regex = (...args) => inst.check(_regex(...args));
11289
- inst.includes = (...args) => inst.check(_includes(...args));
11290
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
11291
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
11292
- inst.min = (...args) => inst.check(_minLength(...args));
11293
- inst.max = (...args) => inst.check(_maxLength(...args));
11294
- inst.length = (...args) => inst.check(_length(...args));
11295
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
11296
- inst.lowercase = (params) => inst.check(_lowercase(params));
11297
- inst.uppercase = (params) => inst.check(_uppercase(params));
11298
- inst.trim = () => inst.check(_trim());
11299
- inst.normalize = (...args) => inst.check(_normalize(...args));
11300
- inst.toLowerCase = () => inst.check(_toLowerCase());
11301
- inst.toUpperCase = () => inst.check(_toUpperCase());
11302
- inst.slugify = () => inst.check(_slugify());
11208
+ inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
11209
+ inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
11210
+ inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
11211
+ inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
11212
+ inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
11213
+ inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
11214
+ inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
11215
+ inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
11216
+ inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
11217
+ inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
11218
+ inst.trim = () => inst.check(/* @__PURE__ */ _trim());
11219
+ inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
11220
+ inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
11221
+ inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
11222
+ inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
11303
11223
  });
11304
11224
  const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
11305
11225
  $ZodString.init(inst, def);
11306
11226
  _ZodString.init(inst, def);
11307
- inst.email = (params) => inst.check(_email(ZodEmail, params));
11308
- inst.url = (params) => inst.check(_url(ZodURL, params));
11309
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
11310
- inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params));
11311
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
11312
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
11313
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
11314
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
11315
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
11316
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
11317
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
11318
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
11319
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
11320
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
11321
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
11322
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
11323
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
11324
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
11325
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
11326
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
11327
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
11328
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
11329
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
11227
+ inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
11228
+ inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
11229
+ inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
11230
+ inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
11231
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
11232
+ inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
11233
+ inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
11234
+ inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
11235
+ inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
11236
+ inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
11237
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
11238
+ inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
11239
+ inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
11240
+ inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
11241
+ inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
11242
+ inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
11243
+ inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
11244
+ inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
11245
+ inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
11246
+ inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
11247
+ inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
11248
+ inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
11249
+ inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
11330
11250
  inst.datetime = (params) => inst.check(datetime(params));
11331
11251
  inst.date = (params) => inst.check(date$2(params));
11332
11252
  inst.time = (params) => inst.check(time(params));
11333
11253
  inst.duration = (params) => inst.check(duration(params));
11334
11254
  });
11335
11255
  function string$1(params) {
11336
- return _string(ZodString, params);
11256
+ return /* @__PURE__ */ _string(ZodString, params);
11337
11257
  }
11338
11258
  const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
11339
11259
  $ZodStringFormat.init(inst, def);
@@ -11344,40 +11264,40 @@ const ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
11344
11264
  ZodStringFormat.init(inst, def);
11345
11265
  });
11346
11266
  function email(params) {
11347
- return _email(ZodEmail, params);
11267
+ return /* @__PURE__ */ _email(ZodEmail, params);
11348
11268
  }
11349
11269
  const ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
11350
11270
  $ZodGUID.init(inst, def);
11351
11271
  ZodStringFormat.init(inst, def);
11352
11272
  });
11353
11273
  function guid(params) {
11354
- return _guid(ZodGUID, params);
11274
+ return /* @__PURE__ */ _guid(ZodGUID, params);
11355
11275
  }
11356
11276
  const ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
11357
11277
  $ZodUUID.init(inst, def);
11358
11278
  ZodStringFormat.init(inst, def);
11359
11279
  });
11360
11280
  function uuid(params) {
11361
- return _uuid(ZodUUID, params);
11281
+ return /* @__PURE__ */ _uuid(ZodUUID, params);
11362
11282
  }
11363
11283
  function uuidv4(params) {
11364
- return _uuidv4(ZodUUID, params);
11284
+ return /* @__PURE__ */ _uuidv4(ZodUUID, params);
11365
11285
  }
11366
11286
  function uuidv6(params) {
11367
- return _uuidv6(ZodUUID, params);
11287
+ return /* @__PURE__ */ _uuidv6(ZodUUID, params);
11368
11288
  }
11369
11289
  function uuidv7(params) {
11370
- return _uuidv7(ZodUUID, params);
11290
+ return /* @__PURE__ */ _uuidv7(ZodUUID, params);
11371
11291
  }
11372
11292
  const ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
11373
11293
  $ZodURL.init(inst, def);
11374
11294
  ZodStringFormat.init(inst, def);
11375
11295
  });
11376
11296
  function url(params) {
11377
- return _url(ZodURL, params);
11297
+ return /* @__PURE__ */ _url(ZodURL, params);
11378
11298
  }
11379
11299
  function httpUrl(params) {
11380
- return _url(ZodURL, {
11300
+ return /* @__PURE__ */ _url(ZodURL, {
11381
11301
  protocol: /^https?$/,
11382
11302
  hostname: domain,
11383
11303
  ...normalizeParams(params)
@@ -11388,150 +11308,150 @@ const ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
11388
11308
  ZodStringFormat.init(inst, def);
11389
11309
  });
11390
11310
  function emoji(params) {
11391
- return _emoji(ZodEmoji, params);
11311
+ return /* @__PURE__ */ _emoji(ZodEmoji, params);
11392
11312
  }
11393
11313
  const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
11394
11314
  $ZodNanoID.init(inst, def);
11395
11315
  ZodStringFormat.init(inst, def);
11396
11316
  });
11397
11317
  function nanoid(params) {
11398
- return _nanoid(ZodNanoID, params);
11318
+ return /* @__PURE__ */ _nanoid(ZodNanoID, params);
11399
11319
  }
11400
11320
  const ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
11401
11321
  $ZodCUID.init(inst, def);
11402
11322
  ZodStringFormat.init(inst, def);
11403
11323
  });
11404
11324
  function cuid(params) {
11405
- return _cuid(ZodCUID, params);
11325
+ return /* @__PURE__ */ _cuid(ZodCUID, params);
11406
11326
  }
11407
11327
  const ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
11408
11328
  $ZodCUID2.init(inst, def);
11409
11329
  ZodStringFormat.init(inst, def);
11410
11330
  });
11411
11331
  function cuid2(params) {
11412
- return _cuid2(ZodCUID2, params);
11332
+ return /* @__PURE__ */ _cuid2(ZodCUID2, params);
11413
11333
  }
11414
11334
  const ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
11415
11335
  $ZodULID.init(inst, def);
11416
11336
  ZodStringFormat.init(inst, def);
11417
11337
  });
11418
11338
  function ulid(params) {
11419
- return _ulid(ZodULID, params);
11339
+ return /* @__PURE__ */ _ulid(ZodULID, params);
11420
11340
  }
11421
11341
  const ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
11422
11342
  $ZodXID.init(inst, def);
11423
11343
  ZodStringFormat.init(inst, def);
11424
11344
  });
11425
11345
  function xid(params) {
11426
- return _xid(ZodXID, params);
11346
+ return /* @__PURE__ */ _xid(ZodXID, params);
11427
11347
  }
11428
11348
  const ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
11429
11349
  $ZodKSUID.init(inst, def);
11430
11350
  ZodStringFormat.init(inst, def);
11431
11351
  });
11432
11352
  function ksuid(params) {
11433
- return _ksuid(ZodKSUID, params);
11353
+ return /* @__PURE__ */ _ksuid(ZodKSUID, params);
11434
11354
  }
11435
11355
  const ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
11436
11356
  $ZodIPv4.init(inst, def);
11437
11357
  ZodStringFormat.init(inst, def);
11438
11358
  });
11439
11359
  function ipv4(params) {
11440
- return _ipv4(ZodIPv4, params);
11360
+ return /* @__PURE__ */ _ipv4(ZodIPv4, params);
11441
11361
  }
11442
11362
  const ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
11443
11363
  $ZodMAC.init(inst, def);
11444
11364
  ZodStringFormat.init(inst, def);
11445
11365
  });
11446
11366
  function mac(params) {
11447
- return _mac(ZodMAC, params);
11367
+ return /* @__PURE__ */ _mac(ZodMAC, params);
11448
11368
  }
11449
11369
  const ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
11450
11370
  $ZodIPv6.init(inst, def);
11451
11371
  ZodStringFormat.init(inst, def);
11452
11372
  });
11453
11373
  function ipv6(params) {
11454
- return _ipv6(ZodIPv6, params);
11374
+ return /* @__PURE__ */ _ipv6(ZodIPv6, params);
11455
11375
  }
11456
11376
  const ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
11457
11377
  $ZodCIDRv4.init(inst, def);
11458
11378
  ZodStringFormat.init(inst, def);
11459
11379
  });
11460
11380
  function cidrv4(params) {
11461
- return _cidrv4(ZodCIDRv4, params);
11381
+ return /* @__PURE__ */ _cidrv4(ZodCIDRv4, params);
11462
11382
  }
11463
11383
  const ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
11464
11384
  $ZodCIDRv6.init(inst, def);
11465
11385
  ZodStringFormat.init(inst, def);
11466
11386
  });
11467
11387
  function cidrv6(params) {
11468
- return _cidrv6(ZodCIDRv6, params);
11388
+ return /* @__PURE__ */ _cidrv6(ZodCIDRv6, params);
11469
11389
  }
11470
11390
  const ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
11471
11391
  $ZodBase64.init(inst, def);
11472
11392
  ZodStringFormat.init(inst, def);
11473
11393
  });
11474
11394
  function base64(params) {
11475
- return _base64(ZodBase64, params);
11395
+ return /* @__PURE__ */ _base64(ZodBase64, params);
11476
11396
  }
11477
11397
  const ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
11478
11398
  $ZodBase64URL.init(inst, def);
11479
11399
  ZodStringFormat.init(inst, def);
11480
11400
  });
11481
11401
  function base64url(params) {
11482
- return _base64url(ZodBase64URL, params);
11402
+ return /* @__PURE__ */ _base64url(ZodBase64URL, params);
11483
11403
  }
11484
11404
  const ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
11485
11405
  $ZodE164.init(inst, def);
11486
11406
  ZodStringFormat.init(inst, def);
11487
11407
  });
11488
11408
  function e164(params) {
11489
- return _e164(ZodE164, params);
11409
+ return /* @__PURE__ */ _e164(ZodE164, params);
11490
11410
  }
11491
11411
  const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
11492
11412
  $ZodJWT.init(inst, def);
11493
11413
  ZodStringFormat.init(inst, def);
11494
11414
  });
11495
11415
  function jwt(params) {
11496
- return _jwt(ZodJWT, params);
11416
+ return /* @__PURE__ */ _jwt(ZodJWT, params);
11497
11417
  }
11498
11418
  const ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => {
11499
11419
  $ZodCustomStringFormat.init(inst, def);
11500
11420
  ZodStringFormat.init(inst, def);
11501
11421
  });
11502
11422
  function stringFormat(format, fnOrRegex, _params = {}) {
11503
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
11423
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
11504
11424
  }
11505
11425
  function hostname(_params) {
11506
- return _stringFormat(ZodCustomStringFormat, "hostname", hostname$1, _params);
11426
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, "hostname", hostname$1, _params);
11507
11427
  }
11508
11428
  function hex(_params) {
11509
- return _stringFormat(ZodCustomStringFormat, "hex", hex$1, _params);
11429
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, "hex", hex$1, _params);
11510
11430
  }
11511
11431
  function hash(alg, params) {
11512
11432
  const format = `${alg}_${params?.enc ?? "hex"}`;
11513
11433
  const regex = regexes_exports[format];
11514
11434
  if (!regex) throw new Error(`Unrecognized hash format: ${format}`);
11515
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
11435
+ return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format, regex, params);
11516
11436
  }
11517
11437
  const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
11518
11438
  $ZodNumber.init(inst, def);
11519
11439
  ZodType.init(inst, def);
11520
11440
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
11521
- inst.gt = (value, params) => inst.check(_gt(value, params));
11522
- inst.gte = (value, params) => inst.check(_gte(value, params));
11523
- inst.min = (value, params) => inst.check(_gte(value, params));
11524
- inst.lt = (value, params) => inst.check(_lt(value, params));
11525
- inst.lte = (value, params) => inst.check(_lte(value, params));
11526
- inst.max = (value, params) => inst.check(_lte(value, params));
11441
+ inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
11442
+ inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11443
+ inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11444
+ inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
11445
+ inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11446
+ inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11527
11447
  inst.int = (params) => inst.check(int(params));
11528
11448
  inst.safe = (params) => inst.check(int(params));
11529
- inst.positive = (params) => inst.check(_gt(0, params));
11530
- inst.nonnegative = (params) => inst.check(_gte(0, params));
11531
- inst.negative = (params) => inst.check(_lt(0, params));
11532
- inst.nonpositive = (params) => inst.check(_lte(0, params));
11533
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
11534
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
11449
+ inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(0, params));
11450
+ inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(0, params));
11451
+ inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(0, params));
11452
+ inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(0, params));
11453
+ inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
11454
+ inst.step = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
11535
11455
  inst.finite = () => inst;
11536
11456
  const bag = inst._zod.bag;
11537
11457
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
@@ -11541,26 +11461,26 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
11541
11461
  inst.format = bag.format ?? null;
11542
11462
  });
11543
11463
  function number$1(params) {
11544
- return _number(ZodNumber, params);
11464
+ return /* @__PURE__ */ _number(ZodNumber, params);
11545
11465
  }
11546
11466
  const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
11547
11467
  $ZodNumberFormat.init(inst, def);
11548
11468
  ZodNumber.init(inst, def);
11549
11469
  });
11550
11470
  function int(params) {
11551
- return _int(ZodNumberFormat, params);
11471
+ return /* @__PURE__ */ _int(ZodNumberFormat, params);
11552
11472
  }
11553
11473
  function float32(params) {
11554
- return _float32(ZodNumberFormat, params);
11474
+ return /* @__PURE__ */ _float32(ZodNumberFormat, params);
11555
11475
  }
11556
11476
  function float64(params) {
11557
- return _float64(ZodNumberFormat, params);
11477
+ return /* @__PURE__ */ _float64(ZodNumberFormat, params);
11558
11478
  }
11559
11479
  function int32(params) {
11560
- return _int32(ZodNumberFormat, params);
11480
+ return /* @__PURE__ */ _int32(ZodNumberFormat, params);
11561
11481
  }
11562
11482
  function uint32(params) {
11563
- return _uint32(ZodNumberFormat, params);
11483
+ return /* @__PURE__ */ _uint32(ZodNumberFormat, params);
11564
11484
  }
11565
11485
  const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
11566
11486
  $ZodBoolean.init(inst, def);
@@ -11568,42 +11488,42 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
11568
11488
  inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
11569
11489
  });
11570
11490
  function boolean$1(params) {
11571
- return _boolean(ZodBoolean, params);
11491
+ return /* @__PURE__ */ _boolean(ZodBoolean, params);
11572
11492
  }
11573
11493
  const ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
11574
11494
  $ZodBigInt.init(inst, def);
11575
11495
  ZodType.init(inst, def);
11576
11496
  inst._zod.processJSONSchema = (ctx, json, params) => bigintProcessor(inst, ctx, json, params);
11577
- inst.gte = (value, params) => inst.check(_gte(value, params));
11578
- inst.min = (value, params) => inst.check(_gte(value, params));
11579
- inst.gt = (value, params) => inst.check(_gt(value, params));
11580
- inst.gte = (value, params) => inst.check(_gte(value, params));
11581
- inst.min = (value, params) => inst.check(_gte(value, params));
11582
- inst.lt = (value, params) => inst.check(_lt(value, params));
11583
- inst.lte = (value, params) => inst.check(_lte(value, params));
11584
- inst.max = (value, params) => inst.check(_lte(value, params));
11585
- inst.positive = (params) => inst.check(_gt(BigInt(0), params));
11586
- inst.negative = (params) => inst.check(_lt(BigInt(0), params));
11587
- inst.nonpositive = (params) => inst.check(_lte(BigInt(0), params));
11588
- inst.nonnegative = (params) => inst.check(_gte(BigInt(0), params));
11589
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
11497
+ inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11498
+ inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11499
+ inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
11500
+ inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11501
+ inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11502
+ inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
11503
+ inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11504
+ inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11505
+ inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(BigInt(0), params));
11506
+ inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(BigInt(0), params));
11507
+ inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(BigInt(0), params));
11508
+ inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(BigInt(0), params));
11509
+ inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
11590
11510
  const bag = inst._zod.bag;
11591
11511
  inst.minValue = bag.minimum ?? null;
11592
11512
  inst.maxValue = bag.maximum ?? null;
11593
11513
  inst.format = bag.format ?? null;
11594
11514
  });
11595
11515
  function bigint$1(params) {
11596
- return _bigint(ZodBigInt, params);
11516
+ return /* @__PURE__ */ _bigint(ZodBigInt, params);
11597
11517
  }
11598
11518
  const ZodBigIntFormat = /* @__PURE__ */ $constructor("ZodBigIntFormat", (inst, def) => {
11599
11519
  $ZodBigIntFormat.init(inst, def);
11600
11520
  ZodBigInt.init(inst, def);
11601
11521
  });
11602
11522
  function int64(params) {
11603
- return _int64(ZodBigIntFormat, params);
11523
+ return /* @__PURE__ */ _int64(ZodBigIntFormat, params);
11604
11524
  }
11605
11525
  function uint64(params) {
11606
- return _uint64(ZodBigIntFormat, params);
11526
+ return /* @__PURE__ */ _uint64(ZodBigIntFormat, params);
11607
11527
  }
11608
11528
  const ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
11609
11529
  $ZodSymbol.init(inst, def);
@@ -11611,7 +11531,7 @@ const ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
11611
11531
  inst._zod.processJSONSchema = (ctx, json, params) => symbolProcessor(inst, ctx, json, params);
11612
11532
  });
11613
11533
  function symbol(params) {
11614
- return _symbol(ZodSymbol, params);
11534
+ return /* @__PURE__ */ _symbol(ZodSymbol, params);
11615
11535
  }
11616
11536
  const ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
11617
11537
  $ZodUndefined.init(inst, def);
@@ -11619,7 +11539,7 @@ const ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) =>
11619
11539
  inst._zod.processJSONSchema = (ctx, json, params) => undefinedProcessor(inst, ctx, json, params);
11620
11540
  });
11621
11541
  function _undefined(params) {
11622
- return _undefined$1(ZodUndefined, params);
11542
+ return /* @__PURE__ */ _undefined$1(ZodUndefined, params);
11623
11543
  }
11624
11544
  const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
11625
11545
  $ZodNull.init(inst, def);
@@ -11627,7 +11547,7 @@ const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
11627
11547
  inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
11628
11548
  });
11629
11549
  function _null(params) {
11630
- return _null$1(ZodNull, params);
11550
+ return /* @__PURE__ */ _null$1(ZodNull, params);
11631
11551
  }
11632
11552
  const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
11633
11553
  $ZodAny.init(inst, def);
@@ -11635,7 +11555,7 @@ const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
11635
11555
  inst._zod.processJSONSchema = (ctx, json, params) => anyProcessor(inst, ctx, json, params);
11636
11556
  });
11637
11557
  function any() {
11638
- return _any(ZodAny);
11558
+ return /* @__PURE__ */ _any(ZodAny);
11639
11559
  }
11640
11560
  const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
11641
11561
  $ZodUnknown.init(inst, def);
@@ -11643,7 +11563,7 @@ const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
11643
11563
  inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
11644
11564
  });
11645
11565
  function unknown() {
11646
- return _unknown(ZodUnknown);
11566
+ return /* @__PURE__ */ _unknown(ZodUnknown);
11647
11567
  }
11648
11568
  const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
11649
11569
  $ZodNever.init(inst, def);
@@ -11651,7 +11571,7 @@ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
11651
11571
  inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
11652
11572
  });
11653
11573
  function never(params) {
11654
- return _never(ZodNever, params);
11574
+ return /* @__PURE__ */ _never(ZodNever, params);
11655
11575
  }
11656
11576
  const ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
11657
11577
  $ZodVoid.init(inst, def);
@@ -11659,34 +11579,34 @@ const ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
11659
11579
  inst._zod.processJSONSchema = (ctx, json, params) => voidProcessor(inst, ctx, json, params);
11660
11580
  });
11661
11581
  function _void(params) {
11662
- return _void$1(ZodVoid, params);
11582
+ return /* @__PURE__ */ _void$1(ZodVoid, params);
11663
11583
  }
11664
11584
  const ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
11665
11585
  $ZodDate.init(inst, def);
11666
11586
  ZodType.init(inst, def);
11667
11587
  inst._zod.processJSONSchema = (ctx, json, params) => dateProcessor(inst, ctx, json, params);
11668
- inst.min = (value, params) => inst.check(_gte(value, params));
11669
- inst.max = (value, params) => inst.check(_lte(value, params));
11588
+ inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
11589
+ inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
11670
11590
  const c = inst._zod.bag;
11671
11591
  inst.minDate = c.minimum ? new Date(c.minimum) : null;
11672
11592
  inst.maxDate = c.maximum ? new Date(c.maximum) : null;
11673
11593
  });
11674
11594
  function date$1(params) {
11675
- return _date(ZodDate, params);
11595
+ return /* @__PURE__ */ _date(ZodDate, params);
11676
11596
  }
11677
11597
  const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
11678
11598
  $ZodArray.init(inst, def);
11679
11599
  ZodType.init(inst, def);
11680
11600
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
11681
11601
  inst.element = def.element;
11682
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
11683
- inst.nonempty = (params) => inst.check(_minLength(1, params));
11684
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
11685
- inst.length = (len, params) => inst.check(_length(len, params));
11602
+ inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
11603
+ inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
11604
+ inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
11605
+ inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
11686
11606
  inst.unwrap = () => inst.element;
11687
11607
  });
11688
11608
  function array(element, params) {
11689
- return _array(ZodArray, element, params);
11609
+ return /* @__PURE__ */ _array(ZodArray, element, params);
11690
11610
  }
11691
11611
  function keyof(schema) {
11692
11612
  const shape = schema._zod.def.shape;
@@ -11820,12 +11740,11 @@ const ZodTuple = /* @__PURE__ */ $constructor("ZodTuple", (inst, def) => {
11820
11740
  });
11821
11741
  function tuple(items, _paramsOrRest, _params) {
11822
11742
  const hasRest = _paramsOrRest instanceof $ZodType;
11823
- const params = hasRest ? _params : _paramsOrRest;
11824
11743
  return new ZodTuple({
11825
11744
  type: "tuple",
11826
11745
  items,
11827
11746
  rest: hasRest ? _paramsOrRest : null,
11828
- ...normalizeParams(params)
11747
+ ...normalizeParams(hasRest ? _params : _paramsOrRest)
11829
11748
  });
11830
11749
  }
11831
11750
  const ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
@@ -11868,10 +11787,10 @@ const ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
11868
11787
  inst._zod.processJSONSchema = (ctx, json, params) => mapProcessor(inst, ctx, json, params);
11869
11788
  inst.keyType = def.keyType;
11870
11789
  inst.valueType = def.valueType;
11871
- inst.min = (...args) => inst.check(_minSize(...args));
11872
- inst.nonempty = (params) => inst.check(_minSize(1, params));
11873
- inst.max = (...args) => inst.check(_maxSize(...args));
11874
- inst.size = (...args) => inst.check(_size(...args));
11790
+ inst.min = (...args) => inst.check(/* @__PURE__ */ _minSize(...args));
11791
+ inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minSize(1, params));
11792
+ inst.max = (...args) => inst.check(/* @__PURE__ */ _maxSize(...args));
11793
+ inst.size = (...args) => inst.check(/* @__PURE__ */ _size(...args));
11875
11794
  });
11876
11795
  function map(keyType, valueType, params) {
11877
11796
  return new ZodMap({
@@ -11885,10 +11804,10 @@ const ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
11885
11804
  $ZodSet.init(inst, def);
11886
11805
  ZodType.init(inst, def);
11887
11806
  inst._zod.processJSONSchema = (ctx, json, params) => setProcessor(inst, ctx, json, params);
11888
- inst.min = (...args) => inst.check(_minSize(...args));
11889
- inst.nonempty = (params) => inst.check(_minSize(1, params));
11890
- inst.max = (...args) => inst.check(_maxSize(...args));
11891
- inst.size = (...args) => inst.check(_size(...args));
11807
+ inst.min = (...args) => inst.check(/* @__PURE__ */ _minSize(...args));
11808
+ inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minSize(1, params));
11809
+ inst.max = (...args) => inst.check(/* @__PURE__ */ _maxSize(...args));
11810
+ inst.size = (...args) => inst.check(/* @__PURE__ */ _size(...args));
11892
11811
  });
11893
11812
  function set(valueType, params) {
11894
11813
  return new ZodSet({
@@ -11969,12 +11888,12 @@ const ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
11969
11888
  $ZodFile.init(inst, def);
11970
11889
  ZodType.init(inst, def);
11971
11890
  inst._zod.processJSONSchema = (ctx, json, params) => fileProcessor(inst, ctx, json, params);
11972
- inst.min = (size, params) => inst.check(_minSize(size, params));
11973
- inst.max = (size, params) => inst.check(_maxSize(size, params));
11974
- inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
11891
+ inst.min = (size, params) => inst.check(/* @__PURE__ */ _minSize(size, params));
11892
+ inst.max = (size, params) => inst.check(/* @__PURE__ */ _maxSize(size, params));
11893
+ inst.mime = (types, params) => inst.check(/* @__PURE__ */ _mime(Array.isArray(types) ? types : [types], params));
11975
11894
  });
11976
11895
  function file(params) {
11977
- return _file(ZodFile, params);
11896
+ return /* @__PURE__ */ _file(ZodFile, params);
11978
11897
  }
11979
11898
  const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
11980
11899
  $ZodTransform.init(inst, def);
@@ -12123,7 +12042,7 @@ const ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => {
12123
12042
  inst._zod.processJSONSchema = (ctx, json, params) => nanProcessor(inst, ctx, json, params);
12124
12043
  });
12125
12044
  function nan(params) {
12126
- return _nan(ZodNaN, params);
12045
+ return /* @__PURE__ */ _nan(ZodNaN, params);
12127
12046
  }
12128
12047
  const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
12129
12048
  $ZodPipe.init(inst, def);
@@ -12223,13 +12142,13 @@ function check(fn) {
12223
12142
  return ch;
12224
12143
  }
12225
12144
  function custom(fn, _params) {
12226
- return _custom(ZodCustom, fn ?? (() => true), _params);
12145
+ return /* @__PURE__ */ _custom(ZodCustom, fn ?? (() => true), _params);
12227
12146
  }
12228
12147
  function refine(fn, _params = {}) {
12229
- return _refine(ZodCustom, fn, _params);
12148
+ return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
12230
12149
  }
12231
12150
  function superRefine(fn) {
12232
- return _superRefine(fn);
12151
+ return /* @__PURE__ */ _superRefine(fn);
12233
12152
  }
12234
12153
  const describe = describe$1;
12235
12154
  const meta = meta$1;
@@ -12253,7 +12172,7 @@ function _instanceof(cls, params = {}) {
12253
12172
  };
12254
12173
  return inst;
12255
12174
  }
12256
- const stringbool = (...args) => _stringbool({
12175
+ const stringbool = (...args) => /* @__PURE__ */ _stringbool({
12257
12176
  Codec: ZodCodec,
12258
12177
  Boolean: ZodBoolean,
12259
12178
  String: ZodString
@@ -12274,7 +12193,6 @@ function json(params) {
12274
12193
  function preprocess(fn, schema) {
12275
12194
  return pipe(transform(fn), schema);
12276
12195
  }
12277
-
12278
12196
  //#endregion
12279
12197
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
12280
12198
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -12302,7 +12220,6 @@ function getErrorMap() {
12302
12220
  /** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
12303
12221
  var ZodFirstPartyTypeKind;
12304
12222
  (function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
12305
-
12306
12223
  //#endregion
12307
12224
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
12308
12225
  const z = {
@@ -12627,7 +12544,6 @@ function fromJSONSchema(schema, params) {
12627
12544
  registry: params?.registry ?? globalRegistry
12628
12545
  });
12629
12546
  }
12630
-
12631
12547
  //#endregion
12632
12548
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
12633
12549
  var coerce_exports = /* @__PURE__ */ __exportAll({
@@ -12638,21 +12554,20 @@ var coerce_exports = /* @__PURE__ */ __exportAll({
12638
12554
  string: () => string
12639
12555
  });
12640
12556
  function string(params) {
12641
- return _coercedString(ZodString, params);
12557
+ return /* @__PURE__ */ _coercedString(ZodString, params);
12642
12558
  }
12643
12559
  function number(params) {
12644
- return _coercedNumber(ZodNumber, params);
12560
+ return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
12645
12561
  }
12646
12562
  function boolean(params) {
12647
- return _coercedBoolean(ZodBoolean, params);
12563
+ return /* @__PURE__ */ _coercedBoolean(ZodBoolean, params);
12648
12564
  }
12649
12565
  function bigint(params) {
12650
- return _coercedBigint(ZodBigInt, params);
12566
+ return /* @__PURE__ */ _coercedBigint(ZodBigInt, params);
12651
12567
  }
12652
12568
  function date(params) {
12653
- return _coercedDate(ZodDate, params);
12569
+ return /* @__PURE__ */ _coercedDate(ZodDate, params);
12654
12570
  }
12655
-
12656
12571
  //#endregion
12657
12572
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
12658
12573
  var external_exports = /* @__PURE__ */ __exportAll({
@@ -12894,204 +12809,159 @@ var external_exports = /* @__PURE__ */ __exportAll({
12894
12809
  xor: () => xor
12895
12810
  });
12896
12811
  config(en_default());
12897
-
12898
- //#endregion
12899
- //#region src/RequestValidationGenerator.ts
12900
- const moduleDir$4 = path.dirname(fileURLToPath(import.meta.url));
12901
- var RequestValidationGenerator = class {
12902
- static generate(context) {
12903
- const templateFilePath = path.join(moduleDir$4, "templates", "RequestValidator.ejs");
12904
- for (const [, entityResource] of Object.entries(context.resources.entityResources)) for (const definition of entityResource.operations) this.writeRequestValidator(templateFilePath, definition, context);
12905
- }
12906
- static writeRequestValidator(templateFilePath, operationResource, context) {
12907
- const { outputDir, definition, outputRequestFileName } = operationResource;
12908
- const { operationId, request } = definition;
12909
- const { body, query, param, header } = request;
12910
- const pascalCaseOperationId = Case.pascal(operationId);
12911
- const content = context.renderTemplate(templateFilePath, {
12912
- pascalCaseOperationId,
12913
- operationId,
12914
- sourcePath: Path.relative(outputDir, `${operationResource.sourceDir}/${path.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`),
12915
- corePath: context.coreDir,
12916
- requestFile: Path.relative(outputDir, `${outputDir}/${path.basename(outputRequestFileName, ".ts")}`),
12917
- body,
12918
- query,
12919
- param,
12920
- header,
12921
- z: external_exports
12922
- });
12923
- const relativePath = path.relative(context.outputDir, operationResource.outputRequestValidationFile);
12924
- context.writeFile(relativePath, content);
12925
- }
12926
- };
12927
-
12928
12812
  //#endregion
12929
- //#region src/ResponseGenerator.ts
12813
+ //#region src/requestValidationGenerator.ts
12930
12814
  const moduleDir$3 = path.dirname(fileURLToPath(import.meta.url));
12931
- var ResponseGenerator = class {
12932
- static generate(context) {
12933
- const templateFile = path.join(moduleDir$3, "templates", "Response.ejs");
12934
- const sharedResponseTemplateFile = path.join(moduleDir$3, "templates", "SharedResponse.ejs");
12935
- for (const [, entityResource] of Object.entries(context.resources.entityResources)) {
12936
- for (const definition of entityResource.operations) this.writeResponseType(templateFile, definition, context);
12937
- for (const responseResource of entityResource.responses) this.writeEntityResponseType(sharedResponseTemplateFile, responseResource, context);
12938
- }
12939
- }
12940
- static writeResponseType(templateFile, resource, context) {
12941
- const { definition, outputResponseFile, outputDir, outputResponseFileName, sourceDir, sourceFile } = resource;
12942
- const { responses, operationId } = definition;
12943
- const pascalCaseOperationId = Case.pascal(operationId);
12944
- const ownResponses = [];
12945
- const entityResponses = [];
12946
- const sharedResponses = [];
12947
- for (const response of responses) {
12948
- const { statusCode, name, body, header, isReference } = response;
12949
- if (isReference) {
12950
- const sharedResponse = context.resources.sharedResponseResources.find((resource) => resource.name === name);
12951
- if (sharedResponse) sharedResponses.push({
12952
- name,
12953
- path: Path.relative(outputDir, `${sharedResponse.outputDir}/${path.basename(sharedResponse.outputFileName, ".ts")}`)
12954
- });
12955
- else {
12956
- const entityResponse = (context.resources.entityResources[resource.entityName]?.responses)?.find((r) => r.name === name);
12957
- if (!entityResponse) throw new Error(`Response ${name} not found in shared or entity-specific responses`);
12958
- entityResponses.push({
12959
- name,
12960
- path: Path.relative(outputDir, `${entityResponse.outputDir}/${path.basename(entityResponse.outputFileName, ".ts")}`)
12961
- });
12962
- }
12963
- continue;
12964
- }
12965
- ownResponses.push({
12966
- name,
12967
- body: body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0,
12968
- header: header ? TsTypePrinter.print(TsTypeNode.fromZod(header)) : void 0,
12969
- statusCode,
12970
- statusCodeKey: HttpStatusCode[statusCode]
12971
- });
12972
- }
12973
- const content = context.renderTemplate(templateFile, {
12974
- operationId,
12975
- pascalCaseOperationId,
12976
- coreDir: context.coreDir,
12977
- ownResponses,
12978
- entityResponses,
12979
- sharedResponses,
12980
- responseFile: Path.relative(outputDir, `${outputDir}/${path.basename(outputResponseFileName, ".ts")}`),
12981
- sourcePath: Path.relative(outputDir, `${sourceDir}/${path.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`)
12982
- });
12983
- const relativePath = path.relative(context.outputDir, outputResponseFile);
12984
- context.writeFile(relativePath, content);
12985
- }
12986
- static writeEntityResponseType(templateFile, resource, context) {
12987
- const { name, body, header, outputFile } = resource;
12988
- const pascalCaseName = Case.pascal(name);
12989
- const headerTsType = header ? TsTypePrinter.print(TsTypeNode.fromZod(header)) : void 0;
12990
- const bodyTsType = body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0;
12991
- const content = context.renderTemplate(templateFile, {
12992
- coreDir: context.coreDir,
12993
- httpStatusCode: HttpStatusCode,
12994
- headerTsType,
12995
- bodyTsType,
12996
- pascalCaseName,
12997
- sharedResponse: resource
12998
- });
12999
- const relativePath = path.relative(context.outputDir, outputFile);
13000
- context.writeFile(relativePath, content);
13001
- }
13002
- };
13003
-
12815
+ function generate$2(context) {
12816
+ const templateFilePath = path.join(moduleDir$3, "templates", "RequestValidator.ejs");
12817
+ for (const resource of context.normalizedSpec.resources) resource.operations.forEach((operation) => {
12818
+ writeRequestValidator(templateFilePath, resource.name, operation, context);
12819
+ });
12820
+ }
12821
+ function writeRequestValidator(templateFilePath, resourceName, operation, context) {
12822
+ const { operationId, request } = operation;
12823
+ const { body, query, param, header } = request ?? {};
12824
+ const outputPaths = context.getOperationOutputPaths({
12825
+ resourceName,
12826
+ operationId
12827
+ });
12828
+ const pascalCaseOperationId = Case.pascal(operationId);
12829
+ const content = context.renderTemplate(templateFilePath, {
12830
+ pascalCaseOperationId,
12831
+ operationId,
12832
+ resourceName,
12833
+ specPath: context.getSpecImportPath({ importerDir: outputPaths.outputDir }),
12834
+ corePath: context.coreDir,
12835
+ requestFile: `./${path.basename(outputPaths.requestFileName, ".ts")}`,
12836
+ body,
12837
+ query,
12838
+ param,
12839
+ header,
12840
+ z: external_exports
12841
+ });
12842
+ const relativePath = path.relative(context.outputDir, outputPaths.requestValidationFile);
12843
+ context.writeFile(relativePath, content);
12844
+ }
13004
12845
  //#endregion
13005
- //#region src/ResponseValidationGenerator.ts
12846
+ //#region src/responseGenerator.ts
13006
12847
  const moduleDir$2 = path.dirname(fileURLToPath(import.meta.url));
13007
- var ResponseValidationGenerator = class {
13008
- static generate(context) {
13009
- const templateFilePath = path.join(moduleDir$2, "templates", "ResponseValidator.ejs");
13010
- for (const [, entityResource] of Object.entries(context.resources.entityResources)) for (const operationResource of entityResource.operations) this.writeResponseValidator(templateFilePath, operationResource, context);
13011
- }
13012
- static writeResponseValidator(templateFilePath, resource, context) {
13013
- const { definition, outputDir, outputResponseFileName, sourceDir, sourceFile, outputResponseValidationFile } = resource;
13014
- const { responses, operationId } = definition;
13015
- const pascalCaseOperationId = Case.pascal(operationId);
13016
- const ownResponses = [];
13017
- const sharedResponses = [];
13018
- const allStatusCodes = [];
13019
- for (const response of responses) {
13020
- const { statusCode, name, isReference, body, header, statusCodeName } = response;
13021
- const index = responses.indexOf(response);
13022
- if (!allStatusCodes.some((status) => {
13023
- return status.statusCode === statusCode;
13024
- })) allStatusCodes.push({
13025
- statusCode,
13026
- name: statusCodeName
13027
- });
13028
- if (isReference) {
13029
- const sharedResponse = context.resources.sharedResponseResources.find((resource) => resource.name === name);
13030
- let importPath;
13031
- if (!sharedResponse) {
13032
- const entityResponse = (context.resources.entityResources[resource.entityName]?.responses)?.find((r) => r.name === name);
13033
- if (entityResponse) importPath = Path.relative(outputDir, `${entityResponse.outputDir}/${path.basename(entityResponse.outputFileName, ".ts")}`);
13034
- else throw new Error(`Shared response '${response.name}' not found in shared or entity resources`);
13035
- } else importPath = Path.relative(outputDir, `${sharedResponse.outputDir}/${path.basename(sharedResponse.outputFileName, ".ts")}`);
13036
- sharedResponses.push({
13037
- name,
13038
- importPath,
13039
- hasBody: !!body,
13040
- hasHeader: !!header,
13041
- statusCode,
13042
- index
13043
- });
13044
- continue;
13045
- }
13046
- ownResponses.push({
13047
- name,
13048
- hasBody: !!body,
13049
- hasHeader: !!header,
13050
- statusCode,
13051
- statusCodeKey: HttpStatusCode[statusCode],
13052
- index
12848
+ function generate$1(context) {
12849
+ const templateFile = path.join(moduleDir$2, "templates", "Response.ejs");
12850
+ const canonicalResponseTemplateFile = path.join(moduleDir$2, "templates", "SharedResponse.ejs");
12851
+ for (const response of context.normalizedSpec.responses) writeCanonicalResponseType(canonicalResponseTemplateFile, response, context);
12852
+ for (const resource of context.normalizedSpec.resources) for (const operation of resource.operations) writeResponseType(templateFile, resource, operation, context);
12853
+ }
12854
+ function writeResponseType(templateFile, resource, operation, context) {
12855
+ const outputPaths = context.getOperationOutputPaths({
12856
+ resourceName: resource.name,
12857
+ operationId: operation.operationId
12858
+ });
12859
+ const pascalCaseOperationId = Case.pascal(operation.operationId);
12860
+ const ownResponses = [];
12861
+ const canonicalResponses = [];
12862
+ for (const responseUsage of operation.responses) {
12863
+ if (responseUsage.source === "canonical") {
12864
+ canonicalResponses.push({
12865
+ name: responseUsage.responseName,
12866
+ path: context.getCanonicalResponseImportPath({
12867
+ importerDir: outputPaths.outputDir,
12868
+ responseName: responseUsage.responseName
12869
+ })
13053
12870
  });
12871
+ continue;
13054
12872
  }
13055
- const content = context.renderTemplate(templateFilePath, {
13056
- operationId,
13057
- pascalCaseOperationId,
13058
- coreDir: context.coreDir,
13059
- responseFile: `./${path.basename(outputResponseFileName, ".ts")}`,
13060
- sourcePath: Path.relative(outputDir, `${sourceDir}/${path.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`),
13061
- sharedResponses,
13062
- ownResponses,
13063
- allStatusCodes
13064
- });
13065
- const relativePath = path.relative(context.outputDir, outputResponseValidationFile);
13066
- context.writeFile(relativePath, content);
12873
+ ownResponses.push(createOwnResponseTemplateData(responseUsage.response));
13067
12874
  }
13068
- };
13069
-
12875
+ const content = context.renderTemplate(templateFile, {
12876
+ operationId: operation.operationId,
12877
+ pascalCaseOperationId,
12878
+ coreDir: context.coreDir,
12879
+ ownResponses,
12880
+ entityResponses: [],
12881
+ sharedResponses: canonicalResponses,
12882
+ responseFile: `./${path.basename(outputPaths.responseFileName, ".ts")}`
12883
+ });
12884
+ const relativePath = path.relative(context.outputDir, outputPaths.responseFile);
12885
+ context.writeFile(relativePath, content);
12886
+ }
12887
+ function createOwnResponseTemplateData(response) {
12888
+ return {
12889
+ name: response.name,
12890
+ body: response.body ? print(fromZod(response.body)) : void 0,
12891
+ header: response.header ? print(fromZod(response.header)) : void 0,
12892
+ statusCode: response.statusCode,
12893
+ statusCodeKey: HttpStatusCode[response.statusCode]
12894
+ };
12895
+ }
12896
+ function writeCanonicalResponseType(templateFile, response, context) {
12897
+ const pascalCaseName = Case.pascal(response.name);
12898
+ const headerTsType = response.header ? print(fromZod(response.header)) : void 0;
12899
+ const bodyTsType = response.body ? print(fromZod(response.body)) : void 0;
12900
+ const content = context.renderTemplate(templateFile, {
12901
+ coreDir: context.coreDir,
12902
+ httpStatusCode: HttpStatusCode,
12903
+ headerTsType,
12904
+ bodyTsType,
12905
+ pascalCaseName,
12906
+ sharedResponse: response
12907
+ });
12908
+ const relativePath = path.relative(context.outputDir, context.getCanonicalResponseOutputFile(response.name));
12909
+ context.writeFile(relativePath, content);
12910
+ }
13070
12911
  //#endregion
13071
- //#region src/SharedResponseGenerator.ts
12912
+ //#region src/responseValidationGenerator.ts
13072
12913
  const moduleDir$1 = path.dirname(fileURLToPath(import.meta.url));
13073
- var SharedResponseGenerator = class {
13074
- static generate(context) {
13075
- const templateFile = path.join(moduleDir$1, "templates", "SharedResponse.ejs");
13076
- for (const sharedResponse of context.resources.sharedResponseResources) this.writeSharedResponse(templateFile, sharedResponse, context);
13077
- }
13078
- static writeSharedResponse(templateFile, sharedResponse, context) {
13079
- const headerTsType = sharedResponse.header ? TsTypePrinter.print(TsTypeNode.fromZod(sharedResponse.header)) : void 0;
13080
- const bodyTsType = sharedResponse.body ? TsTypePrinter.print(TsTypeNode.fromZod(sharedResponse.body)) : void 0;
13081
- const pascalCaseName = Case.pascal(sharedResponse.name);
13082
- const content = context.renderTemplate(templateFile, {
13083
- coreDir: context.coreDir,
13084
- httpStatusCode: HttpStatusCode,
13085
- headerTsType,
13086
- bodyTsType,
13087
- pascalCaseName,
13088
- sharedResponse
12914
+ function generate(context) {
12915
+ const templateFilePath = path.join(moduleDir$1, "templates", "ResponseValidator.ejs");
12916
+ for (const resource of context.normalizedSpec.resources) resource.operations.forEach((operation) => {
12917
+ writeResponseValidator(templateFilePath, resource, operation, context);
12918
+ });
12919
+ }
12920
+ function writeResponseValidator(templateFilePath, resource, operation, context) {
12921
+ const outputPaths = context.getOperationOutputPaths({
12922
+ resourceName: resource.name,
12923
+ operationId: operation.operationId
12924
+ });
12925
+ const pascalCaseOperationId = Case.pascal(operation.operationId);
12926
+ const ownResponses = [];
12927
+ const sharedResponses = [];
12928
+ const allStatusCodes = /* @__PURE__ */ new Map();
12929
+ operation.responses.forEach((responseUsage) => {
12930
+ const response = responseUsage.source === "canonical" ? context.getCanonicalResponse(responseUsage.responseName) : responseUsage.response;
12931
+ allStatusCodes.set(response.statusCode, response.statusCodeName);
12932
+ const templateData = {
12933
+ definitionVariableName: `${Case.camel(response.name)}Definition`,
12934
+ name: response.name,
12935
+ hasBody: response.body !== void 0,
12936
+ hasHeader: response.header !== void 0,
12937
+ statusCode: response.statusCode
12938
+ };
12939
+ if (responseUsage.source === "canonical") {
12940
+ sharedResponses.push(templateData);
12941
+ return;
12942
+ }
12943
+ ownResponses.push({
12944
+ ...templateData,
12945
+ statusCodeKey: HttpStatusCode[response.statusCode]
13089
12946
  });
13090
- const relativePath = path.relative(context.outputDir, sharedResponse.outputFile);
13091
- context.writeFile(relativePath, content);
13092
- }
13093
- };
13094
-
12947
+ });
12948
+ const content = context.renderTemplate(templateFilePath, {
12949
+ resourceName: resource.name,
12950
+ operationId: operation.operationId,
12951
+ pascalCaseOperationId,
12952
+ coreDir: context.coreDir,
12953
+ responseFile: `./${path.basename(outputPaths.responseFileName, ".ts")}`,
12954
+ specPath: context.getSpecImportPath({ importerDir: outputPaths.outputDir }),
12955
+ sharedResponses,
12956
+ ownResponses,
12957
+ allStatusCodes: Array.from(allStatusCodes.entries()).map(([statusCode, name]) => ({
12958
+ statusCode,
12959
+ name
12960
+ }))
12961
+ });
12962
+ const relativePath = path.relative(context.outputDir, outputPaths.responseValidationFile);
12963
+ context.writeFile(relativePath, content);
12964
+ }
13095
12965
  //#endregion
13096
12966
  //#region src/index.ts
13097
12967
  const moduleDir = path.dirname(fileURLToPath(import.meta.url));
@@ -13100,14 +12970,13 @@ var TypesPlugin = class extends BasePlugin {
13100
12970
  generate(context) {
13101
12971
  const libDir = path.join(moduleDir, "lib");
13102
12972
  this.copyLibFiles(context, libDir, this.name);
13103
- SharedResponseGenerator.generate(context);
13104
- RequestGenerator.generate(context);
13105
- RequestValidationGenerator.generate(context);
13106
- ResponseGenerator.generate(context);
13107
- ResponseValidationGenerator.generate(context);
12973
+ generate$3(context);
12974
+ generate$2(context);
12975
+ generate$1(context);
12976
+ generate(context);
13108
12977
  }
13109
12978
  };
13110
-
13111
12979
  //#endregion
13112
12980
  export { TypesPlugin as default };
12981
+
13113
12982
  //# sourceMappingURL=index.mjs.map