@rexeus/typeweaver-types 0.3.2 → 0.4.0

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.js CHANGED
@@ -1,24 +1,19 @@
1
+ import path3 from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+ import { BasePlugin, Path } from '@rexeus/typeweaver-gen';
4
+ import { TsTypePrinter, TsTypeNode } from '@rexeus/typeweaver-zod-to-ts';
5
+ import Case3 from 'case';
6
+ import { HttpStatusCode } from '@rexeus/typeweaver-core';
7
+
1
8
  var __defProp = Object.defineProperty;
2
9
  var __export = (target, all) => {
3
10
  for (var name in all)
4
11
  __defProp(target, name, { get: all[name], enumerable: true });
5
12
  };
6
-
7
- // src/index.ts
8
- import path6 from "node:path";
9
- import { fileURLToPath as fileURLToPath6 } from "node:url";
10
- import { BasePlugin } from "@rexeus/typeweaver-gen";
11
-
12
- // src/RequestGenerator.ts
13
- import path from "node:path";
14
- import { fileURLToPath } from "node:url";
15
- import { Path } from "@rexeus/typeweaver-gen";
16
- import { TsTypeNode, TsTypePrinter } from "@rexeus/typeweaver-zod-to-ts";
17
- import Case from "case";
18
- var moduleDir = path.dirname(fileURLToPath(import.meta.url));
13
+ var moduleDir = path3.dirname(fileURLToPath(import.meta.url));
19
14
  var RequestGenerator = class {
20
15
  static generate(context) {
21
- const templateFilePath = path.join(moduleDir, "templates", "Request.ejs");
16
+ const templateFilePath = path3.join(moduleDir, "templates", "Request.ejs");
22
17
  for (const [, entityResource] of Object.entries(
23
18
  context.resources.entityResources
24
19
  )) {
@@ -40,10 +35,10 @@ var RequestGenerator = class {
40
35
  const queryTsType = query ? TsTypePrinter.print(TsTypeNode.fromZod(query)) : void 0;
41
36
  const paramTsType = param ? TsTypePrinter.print(TsTypeNode.fromZod(param)) : void 0;
42
37
  const bodyTsType = body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0;
43
- const pascalCaseOperationId = Case.pascal(operationId);
38
+ const pascalCaseOperationId = Case3.pascal(operationId);
44
39
  const sourcePath = Path.relative(
45
40
  outputDir,
46
- `${operationResource.sourceDir}/${path.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
41
+ `${operationResource.sourceDir}/${path3.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
47
42
  );
48
43
  const ownSuccessResponses = [];
49
44
  const ownErrorResponses = [];
@@ -62,7 +57,7 @@ var RequestGenerator = class {
62
57
  if (entityResponse) {
63
58
  responsePath = Path.relative(
64
59
  outputDir,
65
- `${entityResponse.outputDir}/${path.basename(entityResponse.outputFileName, ".ts")}`
60
+ `${entityResponse.outputDir}/${path3.basename(entityResponse.outputFileName, ".ts")}`
66
61
  );
67
62
  } else {
68
63
  throw new Error(
@@ -72,7 +67,7 @@ var RequestGenerator = class {
72
67
  } else {
73
68
  responsePath = Path.relative(
74
69
  outputDir,
75
- `${sharedResponse.outputDir}/${path.basename(sharedResponse.outputFileName, ".ts")}`
70
+ `${sharedResponse.outputDir}/${path3.basename(sharedResponse.outputFileName, ".ts")}`
76
71
  );
77
72
  }
78
73
  const assembledResponse2 = {
@@ -111,16 +106,16 @@ var RequestGenerator = class {
111
106
  sharedErrorResponses,
112
107
  responseFile: Path.relative(
113
108
  outputDir,
114
- `${outputDir}/${path.basename(outputResponseFileName, ".ts")}`
109
+ `${outputDir}/${path3.basename(outputResponseFileName, ".ts")}`
115
110
  ),
116
111
  responseValidationFile: Path.relative(
117
112
  outputDir,
118
- `${outputDir}/${path.basename(outputResponseValidationFileName, ".ts")}`
113
+ `${outputDir}/${path3.basename(outputResponseValidationFileName, ".ts")}`
119
114
  ),
120
115
  hasErrorResponses: ownErrorResponses.length > 0 || sharedErrorResponses.length > 0,
121
116
  hasSuccessResponses: ownSuccessResponses.length > 0 || sharedSuccessResponses.length > 0
122
117
  });
123
- const relativePath = path.relative(
118
+ const relativePath = path3.relative(
124
119
  context.outputDir,
125
120
  operationResource.outputRequestFile
126
121
  );
@@ -128,13 +123,7 @@ var RequestGenerator = class {
128
123
  }
129
124
  };
130
125
 
131
- // src/RequestValidationGenerator.ts
132
- import path2 from "node:path";
133
- import { fileURLToPath as fileURLToPath2 } from "node:url";
134
- import { Path as Path2 } from "@rexeus/typeweaver-gen";
135
- import Case2 from "case";
136
-
137
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/external.js
126
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
138
127
  var external_exports = {};
139
128
  __export(external_exports, {
140
129
  $brand: () => $brand,
@@ -375,7 +364,7 @@ __export(external_exports, {
375
364
  xor: () => xor
376
365
  });
377
366
 
378
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/index.js
367
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
379
368
  var core_exports2 = {};
380
369
  __export(core_exports2, {
381
370
  $ZodAny: () => $ZodAny,
@@ -653,7 +642,7 @@ __export(core_exports2, {
653
642
  version: () => version
654
643
  });
655
644
 
656
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js
645
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
657
646
  var NEVER = Object.freeze({
658
647
  status: "aborted"
659
648
  });
@@ -728,7 +717,7 @@ function config(newConfig) {
728
717
  return globalConfig;
729
718
  }
730
719
 
731
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
720
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
732
721
  var util_exports = {};
733
722
  __export(util_exports, {
734
723
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -821,15 +810,13 @@ function jsonStringifyReplacer(_, value) {
821
810
  return value;
822
811
  }
823
812
  function cached(getter) {
824
- const set2 = false;
825
813
  return {
826
814
  get value() {
827
- if (!set2) {
815
+ {
828
816
  const value = getter();
829
817
  Object.defineProperty(this, "value", { value });
830
818
  return value;
831
819
  }
832
- throw new Error("cached value already set");
833
820
  }
834
821
  };
835
822
  }
@@ -1407,7 +1394,7 @@ var Class = class {
1407
1394
  }
1408
1395
  };
1409
1396
 
1410
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
1397
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
1411
1398
  var initializer = (inst, def) => {
1412
1399
  inst.name = "$ZodError";
1413
1400
  Object.defineProperty(inst, "_zod", {
@@ -1543,7 +1530,7 @@ function prettifyError(error48) {
1543
1530
  return lines.join("\n");
1544
1531
  }
1545
1532
 
1546
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js
1533
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
1547
1534
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1548
1535
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1549
1536
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1631,7 +1618,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1631
1618
  };
1632
1619
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1633
1620
 
1634
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js
1621
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
1635
1622
  var regexes_exports = {};
1636
1623
  __export(regexes_exports, {
1637
1624
  base64: () => base64,
@@ -1788,7 +1775,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1788
1775
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1789
1776
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1790
1777
 
1791
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js
1778
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
1792
1779
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1793
1780
  var _a2;
1794
1781
  inst._zod ?? (inst._zod = {});
@@ -2336,7 +2323,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2336
2323
  };
2337
2324
  });
2338
2325
 
2339
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js
2326
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
2340
2327
  var Doc = class {
2341
2328
  constructor(args = []) {
2342
2329
  this.content = [];
@@ -2372,14 +2359,14 @@ var Doc = class {
2372
2359
  }
2373
2360
  };
2374
2361
 
2375
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js
2362
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
2376
2363
  var version = {
2377
2364
  major: 4,
2378
2365
  minor: 3,
2379
- patch: 5
2366
+ patch: 6
2380
2367
  };
2381
2368
 
2382
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js
2369
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
2383
2370
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2384
2371
  var _a2;
2385
2372
  inst ?? (inst = {});
@@ -3667,7 +3654,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3667
3654
  if (keyResult instanceof Promise) {
3668
3655
  throw new Error("Async schemas not supported in object keys currently");
3669
3656
  }
3670
- const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
3657
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
3671
3658
  if (checkNumericKey) {
3672
3659
  const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
3673
3660
  if (retryResult instanceof Promise) {
@@ -4350,7 +4337,7 @@ function handleRefineResult(result, payload, input, inst) {
4350
4337
  }
4351
4338
  }
4352
4339
 
4353
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/index.js
4340
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
4354
4341
  var locales_exports = {};
4355
4342
  __export(locales_exports, {
4356
4343
  ar: () => ar_default,
@@ -4404,7 +4391,7 @@ __export(locales_exports, {
4404
4391
  zhTW: () => zh_TW_default
4405
4392
  });
4406
4393
 
4407
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ar.js
4394
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
4408
4395
  var error = () => {
4409
4396
  const Sizable = {
4410
4397
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -4511,7 +4498,7 @@ function ar_default() {
4511
4498
  };
4512
4499
  }
4513
4500
 
4514
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/az.js
4501
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
4515
4502
  var error2 = () => {
4516
4503
  const Sizable = {
4517
4504
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -4617,7 +4604,7 @@ function az_default() {
4617
4604
  };
4618
4605
  }
4619
4606
 
4620
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/be.js
4607
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
4621
4608
  function getBelarusianPlural(count, one, few, many) {
4622
4609
  const absCount = Math.abs(count);
4623
4610
  const lastDigit = absCount % 10;
@@ -4774,7 +4761,7 @@ function be_default() {
4774
4761
  };
4775
4762
  }
4776
4763
 
4777
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/bg.js
4764
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
4778
4765
  var error4 = () => {
4779
4766
  const Sizable = {
4780
4767
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -4895,7 +4882,7 @@ function bg_default() {
4895
4882
  };
4896
4883
  }
4897
4884
 
4898
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ca.js
4885
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
4899
4886
  var error5 = () => {
4900
4887
  const Sizable = {
4901
4888
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5004,7 +4991,7 @@ function ca_default() {
5004
4991
  };
5005
4992
  }
5006
4993
 
5007
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/cs.js
4994
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
5008
4995
  var error6 = () => {
5009
4996
  const Sizable = {
5010
4997
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -5116,7 +5103,7 @@ function cs_default() {
5116
5103
  };
5117
5104
  }
5118
5105
 
5119
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/da.js
5106
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
5120
5107
  var error7 = () => {
5121
5108
  const Sizable = {
5122
5109
  string: { unit: "tegn", verb: "havde" },
@@ -5232,7 +5219,7 @@ function da_default() {
5232
5219
  };
5233
5220
  }
5234
5221
 
5235
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/de.js
5222
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
5236
5223
  var error8 = () => {
5237
5224
  const Sizable = {
5238
5225
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -5341,7 +5328,7 @@ function de_default() {
5341
5328
  };
5342
5329
  }
5343
5330
 
5344
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/en.js
5331
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
5345
5332
  var error9 = () => {
5346
5333
  const Sizable = {
5347
5334
  string: { unit: "characters", verb: "to have" },
@@ -5450,7 +5437,7 @@ function en_default() {
5450
5437
  };
5451
5438
  }
5452
5439
 
5453
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/eo.js
5440
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
5454
5441
  var error10 = () => {
5455
5442
  const Sizable = {
5456
5443
  string: { unit: "karaktrojn", verb: "havi" },
@@ -5560,7 +5547,7 @@ function eo_default() {
5560
5547
  };
5561
5548
  }
5562
5549
 
5563
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/es.js
5550
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
5564
5551
  var error11 = () => {
5565
5552
  const Sizable = {
5566
5553
  string: { unit: "caracteres", verb: "tener" },
@@ -5693,7 +5680,7 @@ function es_default() {
5693
5680
  };
5694
5681
  }
5695
5682
 
5696
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/fa.js
5683
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
5697
5684
  var error12 = () => {
5698
5685
  const Sizable = {
5699
5686
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5808,7 +5795,7 @@ function fa_default() {
5808
5795
  };
5809
5796
  }
5810
5797
 
5811
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/fi.js
5798
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
5812
5799
  var error13 = () => {
5813
5800
  const Sizable = {
5814
5801
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -5921,7 +5908,7 @@ function fi_default() {
5921
5908
  };
5922
5909
  }
5923
5910
 
5924
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/fr.js
5911
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
5925
5912
  var error14 = () => {
5926
5913
  const Sizable = {
5927
5914
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6030,7 +6017,7 @@ function fr_default() {
6030
6017
  };
6031
6018
  }
6032
6019
 
6033
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/fr-CA.js
6020
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
6034
6021
  var error15 = () => {
6035
6022
  const Sizable = {
6036
6023
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6138,7 +6125,7 @@ function fr_CA_default() {
6138
6125
  };
6139
6126
  }
6140
6127
 
6141
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/he.js
6128
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
6142
6129
  var error16 = () => {
6143
6130
  const TypeNames = {
6144
6131
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -6333,7 +6320,7 @@ function he_default() {
6333
6320
  };
6334
6321
  }
6335
6322
 
6336
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/hu.js
6323
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
6337
6324
  var error17 = () => {
6338
6325
  const Sizable = {
6339
6326
  string: { unit: "karakter", verb: "legyen" },
@@ -6442,7 +6429,7 @@ function hu_default() {
6442
6429
  };
6443
6430
  }
6444
6431
 
6445
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/hy.js
6432
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
6446
6433
  function getArmenianPlural(count, one, many) {
6447
6434
  return Math.abs(count) === 1 ? one : many;
6448
6435
  }
@@ -6590,7 +6577,7 @@ function hy_default() {
6590
6577
  };
6591
6578
  }
6592
6579
 
6593
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/id.js
6580
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
6594
6581
  var error19 = () => {
6595
6582
  const Sizable = {
6596
6583
  string: { unit: "karakter", verb: "memiliki" },
@@ -6697,7 +6684,7 @@ function id_default() {
6697
6684
  };
6698
6685
  }
6699
6686
 
6700
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/is.js
6687
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
6701
6688
  var error20 = () => {
6702
6689
  const Sizable = {
6703
6690
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -6807,7 +6794,7 @@ function is_default() {
6807
6794
  };
6808
6795
  }
6809
6796
 
6810
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/it.js
6797
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
6811
6798
  var error21 = () => {
6812
6799
  const Sizable = {
6813
6800
  string: { unit: "caratteri", verb: "avere" },
@@ -6916,7 +6903,7 @@ function it_default() {
6916
6903
  };
6917
6904
  }
6918
6905
 
6919
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ja.js
6906
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
6920
6907
  var error22 = () => {
6921
6908
  const Sizable = {
6922
6909
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -7024,7 +7011,7 @@ function ja_default() {
7024
7011
  };
7025
7012
  }
7026
7013
 
7027
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ka.js
7014
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
7028
7015
  var error23 = () => {
7029
7016
  const Sizable = {
7030
7017
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7137,7 +7124,7 @@ function ka_default() {
7137
7124
  };
7138
7125
  }
7139
7126
 
7140
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/km.js
7127
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
7141
7128
  var error24 = () => {
7142
7129
  const Sizable = {
7143
7130
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7248,12 +7235,12 @@ function km_default() {
7248
7235
  };
7249
7236
  }
7250
7237
 
7251
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/kh.js
7238
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
7252
7239
  function kh_default() {
7253
7240
  return km_default();
7254
7241
  }
7255
7242
 
7256
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ko.js
7243
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
7257
7244
  var error25 = () => {
7258
7245
  const Sizable = {
7259
7246
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -7365,7 +7352,7 @@ function ko_default() {
7365
7352
  };
7366
7353
  }
7367
7354
 
7368
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/lt.js
7355
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
7369
7356
  var capitalizeFirstCharacter = (text) => {
7370
7357
  return text.charAt(0).toUpperCase() + text.slice(1);
7371
7358
  };
@@ -7569,7 +7556,7 @@ function lt_default() {
7569
7556
  };
7570
7557
  }
7571
7558
 
7572
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/mk.js
7559
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
7573
7560
  var error27 = () => {
7574
7561
  const Sizable = {
7575
7562
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7679,7 +7666,7 @@ function mk_default() {
7679
7666
  };
7680
7667
  }
7681
7668
 
7682
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ms.js
7669
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
7683
7670
  var error28 = () => {
7684
7671
  const Sizable = {
7685
7672
  string: { unit: "aksara", verb: "mempunyai" },
@@ -7787,7 +7774,7 @@ function ms_default() {
7787
7774
  };
7788
7775
  }
7789
7776
 
7790
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/nl.js
7777
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
7791
7778
  var error29 = () => {
7792
7779
  const Sizable = {
7793
7780
  string: { unit: "tekens", verb: "heeft" },
@@ -7898,7 +7885,7 @@ function nl_default() {
7898
7885
  };
7899
7886
  }
7900
7887
 
7901
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/no.js
7888
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
7902
7889
  var error30 = () => {
7903
7890
  const Sizable = {
7904
7891
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -8007,7 +7994,7 @@ function no_default() {
8007
7994
  };
8008
7995
  }
8009
7996
 
8010
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ota.js
7997
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
8011
7998
  var error31 = () => {
8012
7999
  const Sizable = {
8013
8000
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -8117,7 +8104,7 @@ function ota_default() {
8117
8104
  };
8118
8105
  }
8119
8106
 
8120
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ps.js
8107
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
8121
8108
  var error32 = () => {
8122
8109
  const Sizable = {
8123
8110
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -8232,7 +8219,7 @@ function ps_default() {
8232
8219
  };
8233
8220
  }
8234
8221
 
8235
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/pl.js
8222
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
8236
8223
  var error33 = () => {
8237
8224
  const Sizable = {
8238
8225
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -8342,7 +8329,7 @@ function pl_default() {
8342
8329
  };
8343
8330
  }
8344
8331
 
8345
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/pt.js
8332
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
8346
8333
  var error34 = () => {
8347
8334
  const Sizable = {
8348
8335
  string: { unit: "caracteres", verb: "ter" },
@@ -8451,7 +8438,7 @@ function pt_default() {
8451
8438
  };
8452
8439
  }
8453
8440
 
8454
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ru.js
8441
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
8455
8442
  function getRussianPlural(count, one, few, many) {
8456
8443
  const absCount = Math.abs(count);
8457
8444
  const lastDigit = absCount % 10;
@@ -8608,7 +8595,7 @@ function ru_default() {
8608
8595
  };
8609
8596
  }
8610
8597
 
8611
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/sl.js
8598
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
8612
8599
  var error36 = () => {
8613
8600
  const Sizable = {
8614
8601
  string: { unit: "znakov", verb: "imeti" },
@@ -8718,7 +8705,7 @@ function sl_default() {
8718
8705
  };
8719
8706
  }
8720
8707
 
8721
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/sv.js
8708
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
8722
8709
  var error37 = () => {
8723
8710
  const Sizable = {
8724
8711
  string: { unit: "tecken", verb: "att ha" },
@@ -8829,7 +8816,7 @@ function sv_default() {
8829
8816
  };
8830
8817
  }
8831
8818
 
8832
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ta.js
8819
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
8833
8820
  var error38 = () => {
8834
8821
  const Sizable = {
8835
8822
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -8940,7 +8927,7 @@ function ta_default() {
8940
8927
  };
8941
8928
  }
8942
8929
 
8943
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/th.js
8930
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
8944
8931
  var error39 = () => {
8945
8932
  const Sizable = {
8946
8933
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9051,7 +9038,7 @@ function th_default() {
9051
9038
  };
9052
9039
  }
9053
9040
 
9054
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/tr.js
9041
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
9055
9042
  var error40 = () => {
9056
9043
  const Sizable = {
9057
9044
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -9157,7 +9144,7 @@ function tr_default() {
9157
9144
  };
9158
9145
  }
9159
9146
 
9160
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/uk.js
9147
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
9161
9148
  var error41 = () => {
9162
9149
  const Sizable = {
9163
9150
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9266,12 +9253,12 @@ function uk_default() {
9266
9253
  };
9267
9254
  }
9268
9255
 
9269
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ua.js
9256
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
9270
9257
  function ua_default() {
9271
9258
  return uk_default();
9272
9259
  }
9273
9260
 
9274
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/ur.js
9261
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
9275
9262
  var error42 = () => {
9276
9263
  const Sizable = {
9277
9264
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9382,7 +9369,7 @@ function ur_default() {
9382
9369
  };
9383
9370
  }
9384
9371
 
9385
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/uz.js
9372
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
9386
9373
  var error43 = () => {
9387
9374
  const Sizable = {
9388
9375
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -9492,7 +9479,7 @@ function uz_default() {
9492
9479
  };
9493
9480
  }
9494
9481
 
9495
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/vi.js
9482
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
9496
9483
  var error44 = () => {
9497
9484
  const Sizable = {
9498
9485
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -9601,7 +9588,7 @@ function vi_default() {
9601
9588
  };
9602
9589
  }
9603
9590
 
9604
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/zh-CN.js
9591
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
9605
9592
  var error45 = () => {
9606
9593
  const Sizable = {
9607
9594
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -9711,7 +9698,7 @@ function zh_CN_default() {
9711
9698
  };
9712
9699
  }
9713
9700
 
9714
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/zh-TW.js
9701
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
9715
9702
  var error46 = () => {
9716
9703
  const Sizable = {
9717
9704
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -9819,7 +9806,7 @@ function zh_TW_default() {
9819
9806
  };
9820
9807
  }
9821
9808
 
9822
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/yo.js
9809
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
9823
9810
  var error47 = () => {
9824
9811
  const Sizable = {
9825
9812
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -9927,7 +9914,7 @@ function yo_default() {
9927
9914
  };
9928
9915
  }
9929
9916
 
9930
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js
9917
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
9931
9918
  var _a;
9932
9919
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
9933
9920
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -9977,7 +9964,7 @@ function registry() {
9977
9964
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
9978
9965
  var globalRegistry = globalThis.__zod_globalRegistry;
9979
9966
 
9980
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
9967
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
9981
9968
  // @__NO_SIDE_EFFECTS__
9982
9969
  function _string(Class2, params) {
9983
9970
  return new Class2({
@@ -11016,7 +11003,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11016
11003
  return inst;
11017
11004
  }
11018
11005
 
11019
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js
11006
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
11020
11007
  function initializeContext(params) {
11021
11008
  let target = params?.target ?? "draft-2020-12";
11022
11009
  if (target === "draft-4")
@@ -11215,7 +11202,7 @@ function finalize(ctx, schema) {
11215
11202
  }
11216
11203
  }
11217
11204
  }
11218
- if (refSchema.$ref) {
11205
+ if (refSchema.$ref && refSeen.def) {
11219
11206
  for (const key in schema2) {
11220
11207
  if (key === "$ref" || key === "allOf")
11221
11208
  continue;
@@ -11258,9 +11245,7 @@ function finalize(ctx, schema) {
11258
11245
  result.$schema = "http://json-schema.org/draft-07/schema#";
11259
11246
  } else if (ctx.target === "draft-04") {
11260
11247
  result.$schema = "http://json-schema.org/draft-04/schema#";
11261
- } else if (ctx.target === "openapi-3.0") {
11262
- } else {
11263
- }
11248
+ } else if (ctx.target === "openapi-3.0") ; else ;
11264
11249
  if (ctx.external?.uri) {
11265
11250
  const id = ctx.external.registry.get(schema)?.id;
11266
11251
  if (!id)
@@ -11275,8 +11260,7 @@ function finalize(ctx, schema) {
11275
11260
  defs[seen.defId] = seen.def;
11276
11261
  }
11277
11262
  }
11278
- if (ctx.external) {
11279
- } else {
11263
+ if (ctx.external) ; else {
11280
11264
  if (Object.keys(defs).length > 0) {
11281
11265
  if (ctx.target === "draft-2020-12") {
11282
11266
  result.$defs = defs;
@@ -11368,7 +11352,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
11368
11352
  return finalize(ctx, schema);
11369
11353
  };
11370
11354
 
11371
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js
11355
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
11372
11356
  var formatMap = {
11373
11357
  guid: "uuid",
11374
11358
  url: "uri",
@@ -11513,7 +11497,6 @@ var literalProcessor = (schema, ctx, json2, _params) => {
11513
11497
  if (val === void 0) {
11514
11498
  if (ctx.unrepresentable === "throw") {
11515
11499
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
11516
- } else {
11517
11500
  }
11518
11501
  } else if (typeof val === "bigint") {
11519
11502
  if (ctx.unrepresentable === "throw") {
@@ -11525,8 +11508,7 @@ var literalProcessor = (schema, ctx, json2, _params) => {
11525
11508
  vals.push(val);
11526
11509
  }
11527
11510
  }
11528
- if (vals.length === 0) {
11529
- } else if (vals.length === 1) {
11511
+ if (vals.length === 0) ; else if (vals.length === 1) {
11530
11512
  const val = vals[0];
11531
11513
  json2.type = val === null ? "null" : typeof val;
11532
11514
  if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
@@ -11919,7 +11901,7 @@ function toJSONSchema(input, params) {
11919
11901
  return finalize(ctx, input);
11920
11902
  }
11921
11903
 
11922
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-generator.js
11904
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
11923
11905
  var JSONSchemaGenerator = class {
11924
11906
  /** @deprecated Access via ctx instead */
11925
11907
  get metadataRegistry() {
@@ -11994,10 +11976,10 @@ var JSONSchemaGenerator = class {
11994
11976
  }
11995
11977
  };
11996
11978
 
11997
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema.js
11979
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
11998
11980
  var json_schema_exports = {};
11999
11981
 
12000
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
11982
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
12001
11983
  var schemas_exports2 = {};
12002
11984
  __export(schemas_exports2, {
12003
11985
  ZodAny: () => ZodAny,
@@ -12166,7 +12148,7 @@ __export(schemas_exports2, {
12166
12148
  xor: () => xor
12167
12149
  });
12168
12150
 
12169
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/checks.js
12151
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
12170
12152
  var checks_exports2 = {};
12171
12153
  __export(checks_exports2, {
12172
12154
  endsWith: () => _endsWith,
@@ -12200,7 +12182,7 @@ __export(checks_exports2, {
12200
12182
  uppercase: () => _uppercase
12201
12183
  });
12202
12184
 
12203
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js
12185
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
12204
12186
  var iso_exports = {};
12205
12187
  __export(iso_exports, {
12206
12188
  ZodISODate: () => ZodISODate,
@@ -12241,7 +12223,7 @@ function duration2(params) {
12241
12223
  return _isoDuration(ZodISODuration, params);
12242
12224
  }
12243
12225
 
12244
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js
12226
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
12245
12227
  var initializer2 = (inst, issues) => {
12246
12228
  $ZodError.init(inst, issues);
12247
12229
  inst.name = "ZodError";
@@ -12281,7 +12263,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
12281
12263
  Parent: Error
12282
12264
  });
12283
12265
 
12284
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js
12266
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
12285
12267
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12286
12268
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12287
12269
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12295,7 +12277,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12295
12277
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12296
12278
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12297
12279
 
12298
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
12280
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
12299
12281
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12300
12282
  $ZodType.init(inst, def);
12301
12283
  Object.assign(inst["~standard"], {
@@ -12382,7 +12364,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12382
12364
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
12383
12365
  $ZodString.init(inst, def);
12384
12366
  ZodType.init(inst, def);
12385
- inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2, params);
12367
+ inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2);
12386
12368
  const bag = inst._zod.bag;
12387
12369
  inst.format = bag.format ?? null;
12388
12370
  inst.minLength = bag.minimum ?? null;
@@ -12621,7 +12603,7 @@ function hash(alg, params) {
12621
12603
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
12622
12604
  $ZodNumber.init(inst, def);
12623
12605
  ZodType.init(inst, def);
12624
- inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
12606
+ inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2);
12625
12607
  inst.gt = (value, params) => inst.check(_gt(value, params));
12626
12608
  inst.gte = (value, params) => inst.check(_gte(value, params));
12627
12609
  inst.min = (value, params) => inst.check(_gte(value, params));
@@ -12669,7 +12651,7 @@ function uint32(params) {
12669
12651
  var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
12670
12652
  $ZodBoolean.init(inst, def);
12671
12653
  ZodType.init(inst, def);
12672
- inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2, params);
12654
+ inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2);
12673
12655
  });
12674
12656
  function boolean2(params) {
12675
12657
  return _boolean(ZodBoolean, params);
@@ -12677,7 +12659,7 @@ function boolean2(params) {
12677
12659
  var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
12678
12660
  $ZodBigInt.init(inst, def);
12679
12661
  ZodType.init(inst, def);
12680
- inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx, json2, params);
12662
+ inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx);
12681
12663
  inst.gte = (value, params) => inst.check(_gte(value, params));
12682
12664
  inst.min = (value, params) => inst.check(_gte(value, params));
12683
12665
  inst.gt = (value, params) => inst.check(_gt(value, params));
@@ -12712,7 +12694,7 @@ function uint64(params) {
12712
12694
  var ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
12713
12695
  $ZodSymbol.init(inst, def);
12714
12696
  ZodType.init(inst, def);
12715
- inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx, json2, params);
12697
+ inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx);
12716
12698
  });
12717
12699
  function symbol(params) {
12718
12700
  return _symbol(ZodSymbol, params);
@@ -12720,7 +12702,7 @@ function symbol(params) {
12720
12702
  var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
12721
12703
  $ZodUndefined.init(inst, def);
12722
12704
  ZodType.init(inst, def);
12723
- inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx, json2, params);
12705
+ inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx);
12724
12706
  });
12725
12707
  function _undefined3(params) {
12726
12708
  return _undefined2(ZodUndefined, params);
@@ -12728,7 +12710,7 @@ function _undefined3(params) {
12728
12710
  var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
12729
12711
  $ZodNull.init(inst, def);
12730
12712
  ZodType.init(inst, def);
12731
- inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2, params);
12713
+ inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2);
12732
12714
  });
12733
12715
  function _null3(params) {
12734
12716
  return _null2(ZodNull, params);
@@ -12736,7 +12718,7 @@ function _null3(params) {
12736
12718
  var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
12737
12719
  $ZodAny.init(inst, def);
12738
12720
  ZodType.init(inst, def);
12739
- inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor(inst, ctx, json2, params);
12721
+ inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor();
12740
12722
  });
12741
12723
  function any() {
12742
12724
  return _any(ZodAny);
@@ -12744,7 +12726,7 @@ function any() {
12744
12726
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
12745
12727
  $ZodUnknown.init(inst, def);
12746
12728
  ZodType.init(inst, def);
12747
- inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor(inst, ctx, json2, params);
12729
+ inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor();
12748
12730
  });
12749
12731
  function unknown() {
12750
12732
  return _unknown(ZodUnknown);
@@ -12752,7 +12734,7 @@ function unknown() {
12752
12734
  var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
12753
12735
  $ZodNever.init(inst, def);
12754
12736
  ZodType.init(inst, def);
12755
- inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2, params);
12737
+ inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2);
12756
12738
  });
12757
12739
  function never(params) {
12758
12740
  return _never(ZodNever, params);
@@ -12760,7 +12742,7 @@ function never(params) {
12760
12742
  var ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
12761
12743
  $ZodVoid.init(inst, def);
12762
12744
  ZodType.init(inst, def);
12763
- inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx, json2, params);
12745
+ inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx);
12764
12746
  });
12765
12747
  function _void2(params) {
12766
12748
  return _void(ZodVoid, params);
@@ -12768,7 +12750,7 @@ function _void2(params) {
12768
12750
  var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
12769
12751
  $ZodDate.init(inst, def);
12770
12752
  ZodType.init(inst, def);
12771
- inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
12753
+ inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx);
12772
12754
  inst.min = (value, params) => inst.check(_gte(value, params));
12773
12755
  inst.max = (value, params) => inst.check(_lte(value, params));
12774
12756
  const c = inst._zod.bag;
@@ -12953,7 +12935,7 @@ function looseRecord(keyType, valueType, params) {
12953
12935
  var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
12954
12936
  $ZodMap.init(inst, def);
12955
12937
  ZodType.init(inst, def);
12956
- inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx, json2, params);
12938
+ inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx);
12957
12939
  inst.keyType = def.keyType;
12958
12940
  inst.valueType = def.valueType;
12959
12941
  inst.min = (...args) => inst.check(_minSize(...args));
@@ -12972,7 +12954,7 @@ function map(keyType, valueType, params) {
12972
12954
  var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
12973
12955
  $ZodSet.init(inst, def);
12974
12956
  ZodType.init(inst, def);
12975
- inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx, json2, params);
12957
+ inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx);
12976
12958
  inst.min = (...args) => inst.check(_minSize(...args));
12977
12959
  inst.nonempty = (params) => inst.check(_minSize(1, params));
12978
12960
  inst.max = (...args) => inst.check(_maxSize(...args));
@@ -12988,7 +12970,7 @@ function set(valueType, params) {
12988
12970
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
12989
12971
  $ZodEnum.init(inst, def);
12990
12972
  ZodType.init(inst, def);
12991
- inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2, params);
12973
+ inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2);
12992
12974
  inst.enum = def.entries;
12993
12975
  inst.options = Object.values(def.entries);
12994
12976
  const keys = new Set(Object.keys(def.entries));
@@ -13041,7 +13023,7 @@ function nativeEnum(entries, params) {
13041
13023
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
13042
13024
  $ZodLiteral.init(inst, def);
13043
13025
  ZodType.init(inst, def);
13044
- inst._zod.processJSONSchema = (ctx, json2, params) => literalProcessor(inst, ctx, json2, params);
13026
+ inst._zod.processJSONSchema = (ctx, json2, params) => literalProcessor(inst, ctx, json2);
13045
13027
  inst.values = new Set(def.values);
13046
13028
  Object.defineProperty(inst, "value", {
13047
13029
  get() {
@@ -13062,7 +13044,7 @@ function literal(value, params) {
13062
13044
  var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
13063
13045
  $ZodFile.init(inst, def);
13064
13046
  ZodType.init(inst, def);
13065
- inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2, params);
13047
+ inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2);
13066
13048
  inst.min = (size, params) => inst.check(_minSize(size, params));
13067
13049
  inst.max = (size, params) => inst.check(_maxSize(size, params));
13068
13050
  inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
@@ -13073,7 +13055,7 @@ function file(params) {
13073
13055
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13074
13056
  $ZodTransform.init(inst, def);
13075
13057
  ZodType.init(inst, def);
13076
- inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx, json2, params);
13058
+ inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx);
13077
13059
  inst._zod.parse = (payload, _ctx) => {
13078
13060
  if (_ctx.direction === "backward") {
13079
13061
  throw new $ZodEncodeError(inst.constructor.name);
@@ -13194,7 +13176,7 @@ function nonoptional(innerType, params) {
13194
13176
  var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {
13195
13177
  $ZodSuccess.init(inst, def);
13196
13178
  ZodType.init(inst, def);
13197
- inst._zod.processJSONSchema = (ctx, json2, params) => successProcessor(inst, ctx, json2, params);
13179
+ inst._zod.processJSONSchema = (ctx, json2, params) => successProcessor(inst, ctx, json2);
13198
13180
  inst.unwrap = () => inst._zod.def.innerType;
13199
13181
  });
13200
13182
  function success(innerType) {
@@ -13220,7 +13202,7 @@ function _catch2(innerType, catchValue) {
13220
13202
  var ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => {
13221
13203
  $ZodNaN.init(inst, def);
13222
13204
  ZodType.init(inst, def);
13223
- inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx, json2, params);
13205
+ inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx);
13224
13206
  });
13225
13207
  function nan(params) {
13226
13208
  return _nan(ZodNaN, params);
@@ -13268,7 +13250,7 @@ function readonly(innerType) {
13268
13250
  var ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => {
13269
13251
  $ZodTemplateLiteral.init(inst, def);
13270
13252
  ZodType.init(inst, def);
13271
- inst._zod.processJSONSchema = (ctx, json2, params) => templateLiteralProcessor(inst, ctx, json2, params);
13253
+ inst._zod.processJSONSchema = (ctx, json2, params) => templateLiteralProcessor(inst, ctx, json2);
13272
13254
  });
13273
13255
  function templateLiteral(parts, params) {
13274
13256
  return new ZodTemplateLiteral({
@@ -13304,7 +13286,7 @@ function promise(innerType) {
13304
13286
  var ZodFunction = /* @__PURE__ */ $constructor("ZodFunction", (inst, def) => {
13305
13287
  $ZodFunction.init(inst, def);
13306
13288
  ZodType.init(inst, def);
13307
- inst._zod.processJSONSchema = (ctx, json2, params) => functionProcessor(inst, ctx, json2, params);
13289
+ inst._zod.processJSONSchema = (ctx, json2, params) => functionProcessor(inst, ctx);
13308
13290
  });
13309
13291
  function _function(params) {
13310
13292
  return new ZodFunction({
@@ -13316,7 +13298,7 @@ function _function(params) {
13316
13298
  var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
13317
13299
  $ZodCustom.init(inst, def);
13318
13300
  ZodType.init(inst, def);
13319
- inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx, json2, params);
13301
+ inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx);
13320
13302
  });
13321
13303
  function check(fn) {
13322
13304
  const ch = new $ZodCheck({
@@ -13374,7 +13356,7 @@ function preprocess(fn, schema) {
13374
13356
  return pipe(transform(fn), schema);
13375
13357
  }
13376
13358
 
13377
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/compat.js
13359
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
13378
13360
  var ZodIssueCode = {
13379
13361
  invalid_type: "invalid_type",
13380
13362
  too_big: "too_big",
@@ -13400,7 +13382,7 @@ var ZodFirstPartyTypeKind;
13400
13382
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
13401
13383
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13402
13384
 
13403
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/from-json-schema.js
13385
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
13404
13386
  var z = {
13405
13387
  ...schemas_exports2,
13406
13388
  ...checks_exports2,
@@ -13874,7 +13856,7 @@ function fromJSONSchema(schema, params) {
13874
13856
  return convertSchema(schema, ctx);
13875
13857
  }
13876
13858
 
13877
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/coerce.js
13859
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
13878
13860
  var coerce_exports = {};
13879
13861
  __export(coerce_exports, {
13880
13862
  bigint: () => bigint3,
@@ -13899,14 +13881,14 @@ function date4(params) {
13899
13881
  return _coercedDate(ZodDate, params);
13900
13882
  }
13901
13883
 
13902
- // ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/external.js
13884
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
13903
13885
  config(en_default());
13904
13886
 
13905
13887
  // src/RequestValidationGenerator.ts
13906
- var moduleDir2 = path2.dirname(fileURLToPath2(import.meta.url));
13888
+ var moduleDir2 = path3.dirname(fileURLToPath(import.meta.url));
13907
13889
  var RequestValidationGenerator = class {
13908
13890
  static generate(context) {
13909
- const templateFilePath = path2.join(
13891
+ const templateFilePath = path3.join(
13910
13892
  moduleDir2,
13911
13893
  "templates",
13912
13894
  "RequestValidator.ejs"
@@ -13923,18 +13905,18 @@ var RequestValidationGenerator = class {
13923
13905
  const { outputDir, definition, outputRequestFileName } = operationResource;
13924
13906
  const { operationId, request } = definition;
13925
13907
  const { body, query, param, header } = request;
13926
- const pascalCaseOperationId = Case2.pascal(operationId);
13908
+ const pascalCaseOperationId = Case3.pascal(operationId);
13927
13909
  const content = context.renderTemplate(templateFilePath, {
13928
13910
  pascalCaseOperationId,
13929
13911
  operationId,
13930
- sourcePath: Path2.relative(
13912
+ sourcePath: Path.relative(
13931
13913
  outputDir,
13932
- `${operationResource.sourceDir}/${path2.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
13914
+ `${operationResource.sourceDir}/${path3.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
13933
13915
  ),
13934
13916
  corePath: context.coreDir,
13935
- requestFile: Path2.relative(
13917
+ requestFile: Path.relative(
13936
13918
  outputDir,
13937
- `${outputDir}/${path2.basename(outputRequestFileName, ".ts")}`
13919
+ `${outputDir}/${path3.basename(outputRequestFileName, ".ts")}`
13938
13920
  ),
13939
13921
  body,
13940
13922
  query,
@@ -13942,22 +13924,14 @@ var RequestValidationGenerator = class {
13942
13924
  header,
13943
13925
  z: external_exports
13944
13926
  });
13945
- const relativePath = path2.relative(
13927
+ const relativePath = path3.relative(
13946
13928
  context.outputDir,
13947
13929
  operationResource.outputRequestValidationFile
13948
13930
  );
13949
13931
  context.writeFile(relativePath, content);
13950
13932
  }
13951
13933
  };
13952
-
13953
- // src/ResponseGenerator.ts
13954
- import path3 from "node:path";
13955
- import { fileURLToPath as fileURLToPath3 } from "node:url";
13956
- import { HttpStatusCode } from "@rexeus/typeweaver-core";
13957
- import { Path as Path3 } from "@rexeus/typeweaver-gen";
13958
- import { TsTypeNode as TsTypeNode2, TsTypePrinter as TsTypePrinter2 } from "@rexeus/typeweaver-zod-to-ts";
13959
- import Case3 from "case";
13960
- var moduleDir3 = path3.dirname(fileURLToPath3(import.meta.url));
13934
+ var moduleDir3 = path3.dirname(fileURLToPath(import.meta.url));
13961
13935
  var ResponseGenerator = class {
13962
13936
  static generate(context) {
13963
13937
  const templateFile = path3.join(moduleDir3, "templates", "Response.ejs");
@@ -14003,7 +13977,7 @@ var ResponseGenerator = class {
14003
13977
  if (sharedResponse) {
14004
13978
  sharedResponses.push({
14005
13979
  name,
14006
- path: Path3.relative(
13980
+ path: Path.relative(
14007
13981
  outputDir,
14008
13982
  `${sharedResponse.outputDir}/${path3.basename(sharedResponse.outputFileName, ".ts")}`
14009
13983
  )
@@ -14018,7 +13992,7 @@ var ResponseGenerator = class {
14018
13992
  }
14019
13993
  sharedResponses.push({
14020
13994
  name,
14021
- path: Path3.relative(
13995
+ path: Path.relative(
14022
13996
  outputDir,
14023
13997
  `${entityResponse.outputDir}/${path3.basename(entityResponse.outputFileName, ".ts")}`
14024
13998
  )
@@ -14028,8 +14002,8 @@ var ResponseGenerator = class {
14028
14002
  }
14029
14003
  ownResponses.push({
14030
14004
  name,
14031
- body: body ? TsTypePrinter2.print(TsTypeNode2.fromZod(body)) : void 0,
14032
- header: header ? TsTypePrinter2.print(TsTypeNode2.fromZod(header)) : void 0,
14005
+ body: body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0,
14006
+ header: header ? TsTypePrinter.print(TsTypeNode.fromZod(header)) : void 0,
14033
14007
  statusCode,
14034
14008
  statusCodeKey: HttpStatusCode[statusCode]
14035
14009
  });
@@ -14040,11 +14014,11 @@ var ResponseGenerator = class {
14040
14014
  coreDir: context.coreDir,
14041
14015
  ownResponses,
14042
14016
  sharedResponses,
14043
- responseFile: Path3.relative(
14017
+ responseFile: Path.relative(
14044
14018
  outputDir,
14045
14019
  `${outputDir}/${path3.basename(outputResponseFileName, ".ts")}`
14046
14020
  ),
14047
- sourcePath: Path3.relative(
14021
+ sourcePath: Path.relative(
14048
14022
  outputDir,
14049
14023
  `${sourceDir}/${path3.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`
14050
14024
  )
@@ -14055,8 +14029,8 @@ var ResponseGenerator = class {
14055
14029
  static writeEntityResponseType(templateFile, resource, context) {
14056
14030
  const { name, body, header, outputFile } = resource;
14057
14031
  const pascalCaseName = Case3.pascal(name);
14058
- const headerTsType = header ? TsTypePrinter2.print(TsTypeNode2.fromZod(header)) : void 0;
14059
- const bodyTsType = body ? TsTypePrinter2.print(TsTypeNode2.fromZod(body)) : void 0;
14032
+ const headerTsType = header ? TsTypePrinter.print(TsTypeNode.fromZod(header)) : void 0;
14033
+ const bodyTsType = body ? TsTypePrinter.print(TsTypeNode.fromZod(body)) : void 0;
14060
14034
  const content = context.renderTemplate(templateFile, {
14061
14035
  coreDir: context.coreDir,
14062
14036
  httpStatusCode: HttpStatusCode,
@@ -14070,17 +14044,10 @@ var ResponseGenerator = class {
14070
14044
  context.writeFile(relativePath, content);
14071
14045
  }
14072
14046
  };
14073
-
14074
- // src/ResponseValidationGenerator.ts
14075
- import path4 from "node:path";
14076
- import { fileURLToPath as fileURLToPath4 } from "node:url";
14077
- import { HttpStatusCode as HttpStatusCode2 } from "@rexeus/typeweaver-core";
14078
- import { Path as Path4 } from "@rexeus/typeweaver-gen";
14079
- import Case4 from "case";
14080
- var moduleDir4 = path4.dirname(fileURLToPath4(import.meta.url));
14047
+ var moduleDir4 = path3.dirname(fileURLToPath(import.meta.url));
14081
14048
  var ResponseValidationGenerator = class {
14082
14049
  static generate(context) {
14083
- const templateFilePath = path4.join(
14050
+ const templateFilePath = path3.join(
14084
14051
  moduleDir4,
14085
14052
  "templates",
14086
14053
  "ResponseValidator.ejs"
@@ -14107,7 +14074,7 @@ var ResponseValidationGenerator = class {
14107
14074
  outputResponseValidationFile
14108
14075
  } = resource;
14109
14076
  const { responses, operationId } = definition;
14110
- const pascalCaseOperationId = Case4.pascal(operationId);
14077
+ const pascalCaseOperationId = Case3.pascal(operationId);
14111
14078
  const ownResponses = [];
14112
14079
  const sharedResponses = [];
14113
14080
  const allStatusCodes = [];
@@ -14132,9 +14099,9 @@ var ResponseValidationGenerator = class {
14132
14099
  const entityResponses = context.resources.entityResources[resource.entityName]?.responses;
14133
14100
  const entityResponse = entityResponses?.find((r) => r.name === name);
14134
14101
  if (entityResponse) {
14135
- importPath = Path4.relative(
14102
+ importPath = Path.relative(
14136
14103
  outputDir,
14137
- `${entityResponse.outputDir}/${path4.basename(entityResponse.outputFileName, ".ts")}`
14104
+ `${entityResponse.outputDir}/${path3.basename(entityResponse.outputFileName, ".ts")}`
14138
14105
  );
14139
14106
  } else {
14140
14107
  throw new Error(
@@ -14142,9 +14109,9 @@ var ResponseValidationGenerator = class {
14142
14109
  );
14143
14110
  }
14144
14111
  } else {
14145
- importPath = Path4.relative(
14112
+ importPath = Path.relative(
14146
14113
  outputDir,
14147
- `${sharedResponse.outputDir}/${path4.basename(sharedResponse.outputFileName, ".ts")}`
14114
+ `${sharedResponse.outputDir}/${path3.basename(sharedResponse.outputFileName, ".ts")}`
14148
14115
  );
14149
14116
  }
14150
14117
  sharedResponses.push({
@@ -14162,7 +14129,7 @@ var ResponseValidationGenerator = class {
14162
14129
  hasBody: !!body,
14163
14130
  hasHeader: !!header,
14164
14131
  statusCode,
14165
- statusCodeKey: HttpStatusCode2[statusCode],
14132
+ statusCodeKey: HttpStatusCode[statusCode],
14166
14133
  index
14167
14134
  });
14168
14135
  }
@@ -14170,33 +14137,26 @@ var ResponseValidationGenerator = class {
14170
14137
  operationId,
14171
14138
  pascalCaseOperationId,
14172
14139
  coreDir: context.coreDir,
14173
- responseFile: `./${path4.basename(outputResponseFileName, ".ts")}`,
14174
- sourcePath: Path4.relative(
14140
+ responseFile: `./${path3.basename(outputResponseFileName, ".ts")}`,
14141
+ sourcePath: Path.relative(
14175
14142
  outputDir,
14176
- `${sourceDir}/${path4.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`
14143
+ `${sourceDir}/${path3.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`
14177
14144
  ),
14178
14145
  sharedResponses,
14179
14146
  ownResponses,
14180
14147
  allStatusCodes
14181
14148
  });
14182
- const relativePath = path4.relative(
14149
+ const relativePath = path3.relative(
14183
14150
  context.outputDir,
14184
14151
  outputResponseValidationFile
14185
14152
  );
14186
14153
  context.writeFile(relativePath, content);
14187
14154
  }
14188
14155
  };
14189
-
14190
- // src/SharedResponseGenerator.ts
14191
- import path5 from "node:path";
14192
- import { fileURLToPath as fileURLToPath5 } from "node:url";
14193
- import { HttpStatusCode as HttpStatusCode3 } from "@rexeus/typeweaver-core";
14194
- import { TsTypeNode as TsTypeNode3, TsTypePrinter as TsTypePrinter3 } from "@rexeus/typeweaver-zod-to-ts";
14195
- import Case5 from "case";
14196
- var moduleDir5 = path5.dirname(fileURLToPath5(import.meta.url));
14156
+ var moduleDir5 = path3.dirname(fileURLToPath(import.meta.url));
14197
14157
  var SharedResponseGenerator = class {
14198
14158
  static generate(context) {
14199
- const templateFile = path5.join(
14159
+ const templateFile = path3.join(
14200
14160
  moduleDir5,
14201
14161
  "templates",
14202
14162
  "SharedResponse.ejs"
@@ -14206,18 +14166,18 @@ var SharedResponseGenerator = class {
14206
14166
  }
14207
14167
  }
14208
14168
  static writeSharedResponse(templateFile, sharedResponse, context) {
14209
- const headerTsType = sharedResponse.header ? TsTypePrinter3.print(TsTypeNode3.fromZod(sharedResponse.header)) : void 0;
14210
- const bodyTsType = sharedResponse.body ? TsTypePrinter3.print(TsTypeNode3.fromZod(sharedResponse.body)) : void 0;
14211
- const pascalCaseName = Case5.pascal(sharedResponse.name);
14169
+ const headerTsType = sharedResponse.header ? TsTypePrinter.print(TsTypeNode.fromZod(sharedResponse.header)) : void 0;
14170
+ const bodyTsType = sharedResponse.body ? TsTypePrinter.print(TsTypeNode.fromZod(sharedResponse.body)) : void 0;
14171
+ const pascalCaseName = Case3.pascal(sharedResponse.name);
14212
14172
  const content = context.renderTemplate(templateFile, {
14213
14173
  coreDir: context.coreDir,
14214
- httpStatusCode: HttpStatusCode3,
14174
+ httpStatusCode: HttpStatusCode,
14215
14175
  headerTsType,
14216
14176
  bodyTsType,
14217
14177
  pascalCaseName,
14218
14178
  sharedResponse
14219
14179
  });
14220
- const relativePath = path5.relative(
14180
+ const relativePath = path3.relative(
14221
14181
  context.outputDir,
14222
14182
  sharedResponse.outputFile
14223
14183
  );
@@ -14226,11 +14186,11 @@ var SharedResponseGenerator = class {
14226
14186
  };
14227
14187
 
14228
14188
  // src/index.ts
14229
- var moduleDir6 = path6.dirname(fileURLToPath6(import.meta.url));
14189
+ var moduleDir6 = path3.dirname(fileURLToPath(import.meta.url));
14230
14190
  var TypesPlugin = class extends BasePlugin {
14231
14191
  name = "types";
14232
14192
  generate(context) {
14233
- const libDir = path6.join(moduleDir6, "lib");
14193
+ const libDir = path3.join(moduleDir6, "lib");
14234
14194
  this.copyLibFiles(context, libDir, this.name);
14235
14195
  SharedResponseGenerator.generate(context);
14236
14196
  RequestGenerator.generate(context);
@@ -14239,6 +14199,5 @@ var TypesPlugin = class extends BasePlugin {
14239
14199
  ResponseValidationGenerator.generate(context);
14240
14200
  }
14241
14201
  };
14242
- export {
14243
- TypesPlugin as default
14244
- };
14202
+
14203
+ export { TypesPlugin as default };