@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.cjs +193 -254
- package/dist/index.js +163 -204
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -1,58 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path3 = require('node:path');
|
|
4
|
+
var node_url = require('node:url');
|
|
5
|
+
var typeweaverGen = require('@rexeus/typeweaver-gen');
|
|
6
|
+
var typeweaverZodToTs = require('@rexeus/typeweaver-zod-to-ts');
|
|
7
|
+
var Case3 = require('case');
|
|
8
|
+
var typeweaverCore = require('@rexeus/typeweaver-core');
|
|
9
|
+
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var path3__default = /*#__PURE__*/_interopDefault(path3);
|
|
13
|
+
var Case3__default = /*#__PURE__*/_interopDefault(Case3);
|
|
14
|
+
|
|
3
15
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
16
|
var __export = (target, all) => {
|
|
9
17
|
for (var name in all)
|
|
10
18
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
19
|
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
20
|
|
|
30
|
-
//
|
|
31
|
-
var index_exports = {};
|
|
32
|
-
__export(index_exports, {
|
|
33
|
-
default: () => TypesPlugin
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
|
|
21
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
|
|
38
22
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
39
23
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
40
|
-
|
|
41
|
-
// src/index.ts
|
|
42
|
-
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
43
|
-
var import_node_url6 = require("node:url");
|
|
44
|
-
var import_typeweaver_gen5 = require("@rexeus/typeweaver-gen");
|
|
45
|
-
|
|
46
|
-
// src/RequestGenerator.ts
|
|
47
|
-
var import_node_path = __toESM(require("node:path"), 1);
|
|
48
|
-
var import_node_url = require("node:url");
|
|
49
|
-
var import_typeweaver_gen = require("@rexeus/typeweaver-gen");
|
|
50
|
-
var import_typeweaver_zod_to_ts = require("@rexeus/typeweaver-zod-to-ts");
|
|
51
|
-
var import_case = __toESM(require("case"), 1);
|
|
52
|
-
var moduleDir = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
24
|
+
var moduleDir = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
53
25
|
var RequestGenerator = class {
|
|
54
26
|
static generate(context) {
|
|
55
|
-
const templateFilePath =
|
|
27
|
+
const templateFilePath = path3__default.default.join(moduleDir, "templates", "Request.ejs");
|
|
56
28
|
for (const [, entityResource] of Object.entries(
|
|
57
29
|
context.resources.entityResources
|
|
58
30
|
)) {
|
|
@@ -70,14 +42,14 @@ var RequestGenerator = class {
|
|
|
70
42
|
} = operationResource;
|
|
71
43
|
const { request, operationId, method, responses } = definition;
|
|
72
44
|
const { header, query, param, body } = request;
|
|
73
|
-
const headerTsType = header ?
|
|
74
|
-
const queryTsType = query ?
|
|
75
|
-
const paramTsType = param ?
|
|
76
|
-
const bodyTsType = body ?
|
|
77
|
-
const pascalCaseOperationId =
|
|
78
|
-
const sourcePath =
|
|
45
|
+
const headerTsType = header ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(header)) : void 0;
|
|
46
|
+
const queryTsType = query ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(query)) : void 0;
|
|
47
|
+
const paramTsType = param ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(param)) : void 0;
|
|
48
|
+
const bodyTsType = body ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(body)) : void 0;
|
|
49
|
+
const pascalCaseOperationId = Case3__default.default.pascal(operationId);
|
|
50
|
+
const sourcePath = typeweaverGen.Path.relative(
|
|
79
51
|
outputDir,
|
|
80
|
-
`${operationResource.sourceDir}/${
|
|
52
|
+
`${operationResource.sourceDir}/${path3__default.default.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
|
|
81
53
|
);
|
|
82
54
|
const ownSuccessResponses = [];
|
|
83
55
|
const ownErrorResponses = [];
|
|
@@ -94,9 +66,9 @@ var RequestGenerator = class {
|
|
|
94
66
|
const entityResponses = context.resources.entityResources[operationResource.entityName]?.responses;
|
|
95
67
|
const entityResponse = entityResponses?.find((r) => r.name === name);
|
|
96
68
|
if (entityResponse) {
|
|
97
|
-
responsePath =
|
|
69
|
+
responsePath = typeweaverGen.Path.relative(
|
|
98
70
|
outputDir,
|
|
99
|
-
`${entityResponse.outputDir}/${
|
|
71
|
+
`${entityResponse.outputDir}/${path3__default.default.basename(entityResponse.outputFileName, ".ts")}`
|
|
100
72
|
);
|
|
101
73
|
} else {
|
|
102
74
|
throw new Error(
|
|
@@ -104,9 +76,9 @@ var RequestGenerator = class {
|
|
|
104
76
|
);
|
|
105
77
|
}
|
|
106
78
|
} else {
|
|
107
|
-
responsePath =
|
|
79
|
+
responsePath = typeweaverGen.Path.relative(
|
|
108
80
|
outputDir,
|
|
109
|
-
`${sharedResponse.outputDir}/${
|
|
81
|
+
`${sharedResponse.outputDir}/${path3__default.default.basename(sharedResponse.outputFileName, ".ts")}`
|
|
110
82
|
);
|
|
111
83
|
}
|
|
112
84
|
const assembledResponse2 = {
|
|
@@ -143,18 +115,18 @@ var RequestGenerator = class {
|
|
|
143
115
|
ownErrorResponses,
|
|
144
116
|
sharedSuccessResponses,
|
|
145
117
|
sharedErrorResponses,
|
|
146
|
-
responseFile:
|
|
118
|
+
responseFile: typeweaverGen.Path.relative(
|
|
147
119
|
outputDir,
|
|
148
|
-
`${outputDir}/${
|
|
120
|
+
`${outputDir}/${path3__default.default.basename(outputResponseFileName, ".ts")}`
|
|
149
121
|
),
|
|
150
|
-
responseValidationFile:
|
|
122
|
+
responseValidationFile: typeweaverGen.Path.relative(
|
|
151
123
|
outputDir,
|
|
152
|
-
`${outputDir}/${
|
|
124
|
+
`${outputDir}/${path3__default.default.basename(outputResponseValidationFileName, ".ts")}`
|
|
153
125
|
),
|
|
154
126
|
hasErrorResponses: ownErrorResponses.length > 0 || sharedErrorResponses.length > 0,
|
|
155
127
|
hasSuccessResponses: ownSuccessResponses.length > 0 || sharedSuccessResponses.length > 0
|
|
156
128
|
});
|
|
157
|
-
const relativePath =
|
|
129
|
+
const relativePath = path3__default.default.relative(
|
|
158
130
|
context.outputDir,
|
|
159
131
|
operationResource.outputRequestFile
|
|
160
132
|
);
|
|
@@ -162,13 +134,7 @@ var RequestGenerator = class {
|
|
|
162
134
|
}
|
|
163
135
|
};
|
|
164
136
|
|
|
165
|
-
//
|
|
166
|
-
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
167
|
-
var import_node_url2 = require("node:url");
|
|
168
|
-
var import_typeweaver_gen2 = require("@rexeus/typeweaver-gen");
|
|
169
|
-
var import_case2 = __toESM(require("case"), 1);
|
|
170
|
-
|
|
171
|
-
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/external.js
|
|
137
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
172
138
|
var external_exports = {};
|
|
173
139
|
__export(external_exports, {
|
|
174
140
|
$brand: () => $brand,
|
|
@@ -409,7 +375,7 @@ __export(external_exports, {
|
|
|
409
375
|
xor: () => xor
|
|
410
376
|
});
|
|
411
377
|
|
|
412
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
378
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
413
379
|
var core_exports2 = {};
|
|
414
380
|
__export(core_exports2, {
|
|
415
381
|
$ZodAny: () => $ZodAny,
|
|
@@ -687,7 +653,7 @@ __export(core_exports2, {
|
|
|
687
653
|
version: () => version
|
|
688
654
|
});
|
|
689
655
|
|
|
690
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
656
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
691
657
|
var NEVER = Object.freeze({
|
|
692
658
|
status: "aborted"
|
|
693
659
|
});
|
|
@@ -762,7 +728,7 @@ function config(newConfig) {
|
|
|
762
728
|
return globalConfig;
|
|
763
729
|
}
|
|
764
730
|
|
|
765
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
731
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
766
732
|
var util_exports = {};
|
|
767
733
|
__export(util_exports, {
|
|
768
734
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -855,15 +821,13 @@ function jsonStringifyReplacer(_, value) {
|
|
|
855
821
|
return value;
|
|
856
822
|
}
|
|
857
823
|
function cached(getter) {
|
|
858
|
-
const set2 = false;
|
|
859
824
|
return {
|
|
860
825
|
get value() {
|
|
861
|
-
|
|
826
|
+
{
|
|
862
827
|
const value = getter();
|
|
863
828
|
Object.defineProperty(this, "value", { value });
|
|
864
829
|
return value;
|
|
865
830
|
}
|
|
866
|
-
throw new Error("cached value already set");
|
|
867
831
|
}
|
|
868
832
|
};
|
|
869
833
|
}
|
|
@@ -1441,7 +1405,7 @@ var Class = class {
|
|
|
1441
1405
|
}
|
|
1442
1406
|
};
|
|
1443
1407
|
|
|
1444
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1408
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
1445
1409
|
var initializer = (inst, def) => {
|
|
1446
1410
|
inst.name = "$ZodError";
|
|
1447
1411
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1577,7 +1541,7 @@ function prettifyError(error48) {
|
|
|
1577
1541
|
return lines.join("\n");
|
|
1578
1542
|
}
|
|
1579
1543
|
|
|
1580
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1544
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
1581
1545
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1582
1546
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1583
1547
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1665,7 +1629,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1665
1629
|
};
|
|
1666
1630
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1667
1631
|
|
|
1668
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1632
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
1669
1633
|
var regexes_exports = {};
|
|
1670
1634
|
__export(regexes_exports, {
|
|
1671
1635
|
base64: () => base64,
|
|
@@ -1822,7 +1786,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1822
1786
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1823
1787
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1824
1788
|
|
|
1825
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1789
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
1826
1790
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1827
1791
|
var _a2;
|
|
1828
1792
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2370,7 +2334,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2370
2334
|
};
|
|
2371
2335
|
});
|
|
2372
2336
|
|
|
2373
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
2337
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
2374
2338
|
var Doc = class {
|
|
2375
2339
|
constructor(args = []) {
|
|
2376
2340
|
this.content = [];
|
|
@@ -2406,14 +2370,14 @@ var Doc = class {
|
|
|
2406
2370
|
}
|
|
2407
2371
|
};
|
|
2408
2372
|
|
|
2409
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
2373
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
2410
2374
|
var version = {
|
|
2411
2375
|
major: 4,
|
|
2412
2376
|
minor: 3,
|
|
2413
|
-
patch:
|
|
2377
|
+
patch: 6
|
|
2414
2378
|
};
|
|
2415
2379
|
|
|
2416
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
2380
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
2417
2381
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2418
2382
|
var _a2;
|
|
2419
2383
|
inst ?? (inst = {});
|
|
@@ -3701,7 +3665,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3701
3665
|
if (keyResult instanceof Promise) {
|
|
3702
3666
|
throw new Error("Async schemas not supported in object keys currently");
|
|
3703
3667
|
}
|
|
3704
|
-
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length
|
|
3668
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
3705
3669
|
if (checkNumericKey) {
|
|
3706
3670
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
3707
3671
|
if (retryResult instanceof Promise) {
|
|
@@ -4384,7 +4348,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4384
4348
|
}
|
|
4385
4349
|
}
|
|
4386
4350
|
|
|
4387
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4351
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
|
|
4388
4352
|
var locales_exports = {};
|
|
4389
4353
|
__export(locales_exports, {
|
|
4390
4354
|
ar: () => ar_default,
|
|
@@ -4438,7 +4402,7 @@ __export(locales_exports, {
|
|
|
4438
4402
|
zhTW: () => zh_TW_default
|
|
4439
4403
|
});
|
|
4440
4404
|
|
|
4441
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4405
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
4442
4406
|
var error = () => {
|
|
4443
4407
|
const Sizable = {
|
|
4444
4408
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4545,7 +4509,7 @@ function ar_default() {
|
|
|
4545
4509
|
};
|
|
4546
4510
|
}
|
|
4547
4511
|
|
|
4548
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4512
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
|
|
4549
4513
|
var error2 = () => {
|
|
4550
4514
|
const Sizable = {
|
|
4551
4515
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4651,7 +4615,7 @@ function az_default() {
|
|
|
4651
4615
|
};
|
|
4652
4616
|
}
|
|
4653
4617
|
|
|
4654
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4618
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
|
|
4655
4619
|
function getBelarusianPlural(count, one, few, many) {
|
|
4656
4620
|
const absCount = Math.abs(count);
|
|
4657
4621
|
const lastDigit = absCount % 10;
|
|
@@ -4808,7 +4772,7 @@ function be_default() {
|
|
|
4808
4772
|
};
|
|
4809
4773
|
}
|
|
4810
4774
|
|
|
4811
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4775
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
|
|
4812
4776
|
var error4 = () => {
|
|
4813
4777
|
const Sizable = {
|
|
4814
4778
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -4929,7 +4893,7 @@ function bg_default() {
|
|
|
4929
4893
|
};
|
|
4930
4894
|
}
|
|
4931
4895
|
|
|
4932
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4896
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
|
|
4933
4897
|
var error5 = () => {
|
|
4934
4898
|
const Sizable = {
|
|
4935
4899
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5038,7 +5002,7 @@ function ca_default() {
|
|
|
5038
5002
|
};
|
|
5039
5003
|
}
|
|
5040
5004
|
|
|
5041
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5005
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
|
|
5042
5006
|
var error6 = () => {
|
|
5043
5007
|
const Sizable = {
|
|
5044
5008
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5150,7 +5114,7 @@ function cs_default() {
|
|
|
5150
5114
|
};
|
|
5151
5115
|
}
|
|
5152
5116
|
|
|
5153
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5117
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
|
|
5154
5118
|
var error7 = () => {
|
|
5155
5119
|
const Sizable = {
|
|
5156
5120
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5266,7 +5230,7 @@ function da_default() {
|
|
|
5266
5230
|
};
|
|
5267
5231
|
}
|
|
5268
5232
|
|
|
5269
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5233
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
|
|
5270
5234
|
var error8 = () => {
|
|
5271
5235
|
const Sizable = {
|
|
5272
5236
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5375,7 +5339,7 @@ function de_default() {
|
|
|
5375
5339
|
};
|
|
5376
5340
|
}
|
|
5377
5341
|
|
|
5378
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5342
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
5379
5343
|
var error9 = () => {
|
|
5380
5344
|
const Sizable = {
|
|
5381
5345
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -5484,7 +5448,7 @@ function en_default() {
|
|
|
5484
5448
|
};
|
|
5485
5449
|
}
|
|
5486
5450
|
|
|
5487
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5451
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
|
|
5488
5452
|
var error10 = () => {
|
|
5489
5453
|
const Sizable = {
|
|
5490
5454
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -5594,7 +5558,7 @@ function eo_default() {
|
|
|
5594
5558
|
};
|
|
5595
5559
|
}
|
|
5596
5560
|
|
|
5597
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5561
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
|
|
5598
5562
|
var error11 = () => {
|
|
5599
5563
|
const Sizable = {
|
|
5600
5564
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5727,7 +5691,7 @@ function es_default() {
|
|
|
5727
5691
|
};
|
|
5728
5692
|
}
|
|
5729
5693
|
|
|
5730
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5694
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
|
|
5731
5695
|
var error12 = () => {
|
|
5732
5696
|
const Sizable = {
|
|
5733
5697
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5842,7 +5806,7 @@ function fa_default() {
|
|
|
5842
5806
|
};
|
|
5843
5807
|
}
|
|
5844
5808
|
|
|
5845
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5809
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
|
|
5846
5810
|
var error13 = () => {
|
|
5847
5811
|
const Sizable = {
|
|
5848
5812
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -5955,7 +5919,7 @@ function fi_default() {
|
|
|
5955
5919
|
};
|
|
5956
5920
|
}
|
|
5957
5921
|
|
|
5958
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5922
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
|
|
5959
5923
|
var error14 = () => {
|
|
5960
5924
|
const Sizable = {
|
|
5961
5925
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6064,7 +6028,7 @@ function fr_default() {
|
|
|
6064
6028
|
};
|
|
6065
6029
|
}
|
|
6066
6030
|
|
|
6067
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6031
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
|
|
6068
6032
|
var error15 = () => {
|
|
6069
6033
|
const Sizable = {
|
|
6070
6034
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6172,7 +6136,7 @@ function fr_CA_default() {
|
|
|
6172
6136
|
};
|
|
6173
6137
|
}
|
|
6174
6138
|
|
|
6175
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6139
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
|
|
6176
6140
|
var error16 = () => {
|
|
6177
6141
|
const TypeNames = {
|
|
6178
6142
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -6367,7 +6331,7 @@ function he_default() {
|
|
|
6367
6331
|
};
|
|
6368
6332
|
}
|
|
6369
6333
|
|
|
6370
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6334
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
|
|
6371
6335
|
var error17 = () => {
|
|
6372
6336
|
const Sizable = {
|
|
6373
6337
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6476,7 +6440,7 @@ function hu_default() {
|
|
|
6476
6440
|
};
|
|
6477
6441
|
}
|
|
6478
6442
|
|
|
6479
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6443
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
|
|
6480
6444
|
function getArmenianPlural(count, one, many) {
|
|
6481
6445
|
return Math.abs(count) === 1 ? one : many;
|
|
6482
6446
|
}
|
|
@@ -6624,7 +6588,7 @@ function hy_default() {
|
|
|
6624
6588
|
};
|
|
6625
6589
|
}
|
|
6626
6590
|
|
|
6627
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6591
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
|
|
6628
6592
|
var error19 = () => {
|
|
6629
6593
|
const Sizable = {
|
|
6630
6594
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6731,7 +6695,7 @@ function id_default() {
|
|
|
6731
6695
|
};
|
|
6732
6696
|
}
|
|
6733
6697
|
|
|
6734
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6698
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
|
|
6735
6699
|
var error20 = () => {
|
|
6736
6700
|
const Sizable = {
|
|
6737
6701
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -6841,7 +6805,7 @@ function is_default() {
|
|
|
6841
6805
|
};
|
|
6842
6806
|
}
|
|
6843
6807
|
|
|
6844
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6808
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
|
|
6845
6809
|
var error21 = () => {
|
|
6846
6810
|
const Sizable = {
|
|
6847
6811
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -6950,7 +6914,7 @@ function it_default() {
|
|
|
6950
6914
|
};
|
|
6951
6915
|
}
|
|
6952
6916
|
|
|
6953
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6917
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
|
|
6954
6918
|
var error22 = () => {
|
|
6955
6919
|
const Sizable = {
|
|
6956
6920
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -7058,7 +7022,7 @@ function ja_default() {
|
|
|
7058
7022
|
};
|
|
7059
7023
|
}
|
|
7060
7024
|
|
|
7061
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7025
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
|
|
7062
7026
|
var error23 = () => {
|
|
7063
7027
|
const Sizable = {
|
|
7064
7028
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7171,7 +7135,7 @@ function ka_default() {
|
|
|
7171
7135
|
};
|
|
7172
7136
|
}
|
|
7173
7137
|
|
|
7174
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7138
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
|
|
7175
7139
|
var error24 = () => {
|
|
7176
7140
|
const Sizable = {
|
|
7177
7141
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7282,12 +7246,12 @@ function km_default() {
|
|
|
7282
7246
|
};
|
|
7283
7247
|
}
|
|
7284
7248
|
|
|
7285
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7249
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
|
|
7286
7250
|
function kh_default() {
|
|
7287
7251
|
return km_default();
|
|
7288
7252
|
}
|
|
7289
7253
|
|
|
7290
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7254
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
|
|
7291
7255
|
var error25 = () => {
|
|
7292
7256
|
const Sizable = {
|
|
7293
7257
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -7399,7 +7363,7 @@ function ko_default() {
|
|
|
7399
7363
|
};
|
|
7400
7364
|
}
|
|
7401
7365
|
|
|
7402
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7366
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
|
|
7403
7367
|
var capitalizeFirstCharacter = (text) => {
|
|
7404
7368
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7405
7369
|
};
|
|
@@ -7603,7 +7567,7 @@ function lt_default() {
|
|
|
7603
7567
|
};
|
|
7604
7568
|
}
|
|
7605
7569
|
|
|
7606
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7570
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
|
|
7607
7571
|
var error27 = () => {
|
|
7608
7572
|
const Sizable = {
|
|
7609
7573
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7713,7 +7677,7 @@ function mk_default() {
|
|
|
7713
7677
|
};
|
|
7714
7678
|
}
|
|
7715
7679
|
|
|
7716
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7680
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
|
|
7717
7681
|
var error28 = () => {
|
|
7718
7682
|
const Sizable = {
|
|
7719
7683
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -7821,7 +7785,7 @@ function ms_default() {
|
|
|
7821
7785
|
};
|
|
7822
7786
|
}
|
|
7823
7787
|
|
|
7824
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7788
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
|
|
7825
7789
|
var error29 = () => {
|
|
7826
7790
|
const Sizable = {
|
|
7827
7791
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -7932,7 +7896,7 @@ function nl_default() {
|
|
|
7932
7896
|
};
|
|
7933
7897
|
}
|
|
7934
7898
|
|
|
7935
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7899
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
|
|
7936
7900
|
var error30 = () => {
|
|
7937
7901
|
const Sizable = {
|
|
7938
7902
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -8041,7 +8005,7 @@ function no_default() {
|
|
|
8041
8005
|
};
|
|
8042
8006
|
}
|
|
8043
8007
|
|
|
8044
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8008
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
|
|
8045
8009
|
var error31 = () => {
|
|
8046
8010
|
const Sizable = {
|
|
8047
8011
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8151,7 +8115,7 @@ function ota_default() {
|
|
|
8151
8115
|
};
|
|
8152
8116
|
}
|
|
8153
8117
|
|
|
8154
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8118
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
|
|
8155
8119
|
var error32 = () => {
|
|
8156
8120
|
const Sizable = {
|
|
8157
8121
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8266,7 +8230,7 @@ function ps_default() {
|
|
|
8266
8230
|
};
|
|
8267
8231
|
}
|
|
8268
8232
|
|
|
8269
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8233
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
|
|
8270
8234
|
var error33 = () => {
|
|
8271
8235
|
const Sizable = {
|
|
8272
8236
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -8376,7 +8340,7 @@ function pl_default() {
|
|
|
8376
8340
|
};
|
|
8377
8341
|
}
|
|
8378
8342
|
|
|
8379
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8343
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
|
|
8380
8344
|
var error34 = () => {
|
|
8381
8345
|
const Sizable = {
|
|
8382
8346
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8485,7 +8449,7 @@ function pt_default() {
|
|
|
8485
8449
|
};
|
|
8486
8450
|
}
|
|
8487
8451
|
|
|
8488
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8452
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
|
|
8489
8453
|
function getRussianPlural(count, one, few, many) {
|
|
8490
8454
|
const absCount = Math.abs(count);
|
|
8491
8455
|
const lastDigit = absCount % 10;
|
|
@@ -8642,7 +8606,7 @@ function ru_default() {
|
|
|
8642
8606
|
};
|
|
8643
8607
|
}
|
|
8644
8608
|
|
|
8645
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8609
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
|
|
8646
8610
|
var error36 = () => {
|
|
8647
8611
|
const Sizable = {
|
|
8648
8612
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -8752,7 +8716,7 @@ function sl_default() {
|
|
|
8752
8716
|
};
|
|
8753
8717
|
}
|
|
8754
8718
|
|
|
8755
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8719
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
|
|
8756
8720
|
var error37 = () => {
|
|
8757
8721
|
const Sizable = {
|
|
8758
8722
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -8863,7 +8827,7 @@ function sv_default() {
|
|
|
8863
8827
|
};
|
|
8864
8828
|
}
|
|
8865
8829
|
|
|
8866
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8830
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
|
|
8867
8831
|
var error38 = () => {
|
|
8868
8832
|
const Sizable = {
|
|
8869
8833
|
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" },
|
|
@@ -8974,7 +8938,7 @@ function ta_default() {
|
|
|
8974
8938
|
};
|
|
8975
8939
|
}
|
|
8976
8940
|
|
|
8977
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
8941
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
|
|
8978
8942
|
var error39 = () => {
|
|
8979
8943
|
const Sizable = {
|
|
8980
8944
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9085,7 +9049,7 @@ function th_default() {
|
|
|
9085
9049
|
};
|
|
9086
9050
|
}
|
|
9087
9051
|
|
|
9088
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9052
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
|
|
9089
9053
|
var error40 = () => {
|
|
9090
9054
|
const Sizable = {
|
|
9091
9055
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -9191,7 +9155,7 @@ function tr_default() {
|
|
|
9191
9155
|
};
|
|
9192
9156
|
}
|
|
9193
9157
|
|
|
9194
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9158
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
|
|
9195
9159
|
var error41 = () => {
|
|
9196
9160
|
const Sizable = {
|
|
9197
9161
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9300,12 +9264,12 @@ function uk_default() {
|
|
|
9300
9264
|
};
|
|
9301
9265
|
}
|
|
9302
9266
|
|
|
9303
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9267
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
|
|
9304
9268
|
function ua_default() {
|
|
9305
9269
|
return uk_default();
|
|
9306
9270
|
}
|
|
9307
9271
|
|
|
9308
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9272
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
|
|
9309
9273
|
var error42 = () => {
|
|
9310
9274
|
const Sizable = {
|
|
9311
9275
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9416,7 +9380,7 @@ function ur_default() {
|
|
|
9416
9380
|
};
|
|
9417
9381
|
}
|
|
9418
9382
|
|
|
9419
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9383
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
|
|
9420
9384
|
var error43 = () => {
|
|
9421
9385
|
const Sizable = {
|
|
9422
9386
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -9526,7 +9490,7 @@ function uz_default() {
|
|
|
9526
9490
|
};
|
|
9527
9491
|
}
|
|
9528
9492
|
|
|
9529
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9493
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
|
|
9530
9494
|
var error44 = () => {
|
|
9531
9495
|
const Sizable = {
|
|
9532
9496
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -9635,7 +9599,7 @@ function vi_default() {
|
|
|
9635
9599
|
};
|
|
9636
9600
|
}
|
|
9637
9601
|
|
|
9638
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9602
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
|
|
9639
9603
|
var error45 = () => {
|
|
9640
9604
|
const Sizable = {
|
|
9641
9605
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -9745,7 +9709,7 @@ function zh_CN_default() {
|
|
|
9745
9709
|
};
|
|
9746
9710
|
}
|
|
9747
9711
|
|
|
9748
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9712
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
|
|
9749
9713
|
var error46 = () => {
|
|
9750
9714
|
const Sizable = {
|
|
9751
9715
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -9853,7 +9817,7 @@ function zh_TW_default() {
|
|
|
9853
9817
|
};
|
|
9854
9818
|
}
|
|
9855
9819
|
|
|
9856
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9820
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
|
|
9857
9821
|
var error47 = () => {
|
|
9858
9822
|
const Sizable = {
|
|
9859
9823
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -9961,7 +9925,7 @@ function yo_default() {
|
|
|
9961
9925
|
};
|
|
9962
9926
|
}
|
|
9963
9927
|
|
|
9964
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9928
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
9965
9929
|
var _a;
|
|
9966
9930
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
9967
9931
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -10011,7 +9975,7 @@ function registry() {
|
|
|
10011
9975
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
10012
9976
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10013
9977
|
|
|
10014
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
9978
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
10015
9979
|
// @__NO_SIDE_EFFECTS__
|
|
10016
9980
|
function _string(Class2, params) {
|
|
10017
9981
|
return new Class2({
|
|
@@ -11050,7 +11014,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11050
11014
|
return inst;
|
|
11051
11015
|
}
|
|
11052
11016
|
|
|
11053
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
11017
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
11054
11018
|
function initializeContext(params) {
|
|
11055
11019
|
let target = params?.target ?? "draft-2020-12";
|
|
11056
11020
|
if (target === "draft-4")
|
|
@@ -11249,7 +11213,7 @@ function finalize(ctx, schema) {
|
|
|
11249
11213
|
}
|
|
11250
11214
|
}
|
|
11251
11215
|
}
|
|
11252
|
-
if (refSchema.$ref) {
|
|
11216
|
+
if (refSchema.$ref && refSeen.def) {
|
|
11253
11217
|
for (const key in schema2) {
|
|
11254
11218
|
if (key === "$ref" || key === "allOf")
|
|
11255
11219
|
continue;
|
|
@@ -11292,9 +11256,7 @@ function finalize(ctx, schema) {
|
|
|
11292
11256
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
11293
11257
|
} else if (ctx.target === "draft-04") {
|
|
11294
11258
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
11295
|
-
} else if (ctx.target === "openapi-3.0")
|
|
11296
|
-
} else {
|
|
11297
|
-
}
|
|
11259
|
+
} else if (ctx.target === "openapi-3.0") ; else ;
|
|
11298
11260
|
if (ctx.external?.uri) {
|
|
11299
11261
|
const id = ctx.external.registry.get(schema)?.id;
|
|
11300
11262
|
if (!id)
|
|
@@ -11309,8 +11271,7 @@ function finalize(ctx, schema) {
|
|
|
11309
11271
|
defs[seen.defId] = seen.def;
|
|
11310
11272
|
}
|
|
11311
11273
|
}
|
|
11312
|
-
if (ctx.external) {
|
|
11313
|
-
} else {
|
|
11274
|
+
if (ctx.external) ; else {
|
|
11314
11275
|
if (Object.keys(defs).length > 0) {
|
|
11315
11276
|
if (ctx.target === "draft-2020-12") {
|
|
11316
11277
|
result.$defs = defs;
|
|
@@ -11402,7 +11363,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11402
11363
|
return finalize(ctx, schema);
|
|
11403
11364
|
};
|
|
11404
11365
|
|
|
11405
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
11366
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
11406
11367
|
var formatMap = {
|
|
11407
11368
|
guid: "uuid",
|
|
11408
11369
|
url: "uri",
|
|
@@ -11547,7 +11508,6 @@ var literalProcessor = (schema, ctx, json2, _params) => {
|
|
|
11547
11508
|
if (val === void 0) {
|
|
11548
11509
|
if (ctx.unrepresentable === "throw") {
|
|
11549
11510
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
11550
|
-
} else {
|
|
11551
11511
|
}
|
|
11552
11512
|
} else if (typeof val === "bigint") {
|
|
11553
11513
|
if (ctx.unrepresentable === "throw") {
|
|
@@ -11559,8 +11519,7 @@ var literalProcessor = (schema, ctx, json2, _params) => {
|
|
|
11559
11519
|
vals.push(val);
|
|
11560
11520
|
}
|
|
11561
11521
|
}
|
|
11562
|
-
if (vals.length === 0) {
|
|
11563
|
-
} else if (vals.length === 1) {
|
|
11522
|
+
if (vals.length === 0) ; else if (vals.length === 1) {
|
|
11564
11523
|
const val = vals[0];
|
|
11565
11524
|
json2.type = val === null ? "null" : typeof val;
|
|
11566
11525
|
if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
|
|
@@ -11953,7 +11912,7 @@ function toJSONSchema(input, params) {
|
|
|
11953
11912
|
return finalize(ctx, input);
|
|
11954
11913
|
}
|
|
11955
11914
|
|
|
11956
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
11915
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
|
|
11957
11916
|
var JSONSchemaGenerator = class {
|
|
11958
11917
|
/** @deprecated Access via ctx instead */
|
|
11959
11918
|
get metadataRegistry() {
|
|
@@ -12028,10 +11987,10 @@ var JSONSchemaGenerator = class {
|
|
|
12028
11987
|
}
|
|
12029
11988
|
};
|
|
12030
11989
|
|
|
12031
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
11990
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
|
|
12032
11991
|
var json_schema_exports = {};
|
|
12033
11992
|
|
|
12034
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
11993
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
12035
11994
|
var schemas_exports2 = {};
|
|
12036
11995
|
__export(schemas_exports2, {
|
|
12037
11996
|
ZodAny: () => ZodAny,
|
|
@@ -12200,7 +12159,7 @@ __export(schemas_exports2, {
|
|
|
12200
12159
|
xor: () => xor
|
|
12201
12160
|
});
|
|
12202
12161
|
|
|
12203
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
12162
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
12204
12163
|
var checks_exports2 = {};
|
|
12205
12164
|
__export(checks_exports2, {
|
|
12206
12165
|
endsWith: () => _endsWith,
|
|
@@ -12234,7 +12193,7 @@ __export(checks_exports2, {
|
|
|
12234
12193
|
uppercase: () => _uppercase
|
|
12235
12194
|
});
|
|
12236
12195
|
|
|
12237
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
12196
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
12238
12197
|
var iso_exports = {};
|
|
12239
12198
|
__export(iso_exports, {
|
|
12240
12199
|
ZodISODate: () => ZodISODate,
|
|
@@ -12275,7 +12234,7 @@ function duration2(params) {
|
|
|
12275
12234
|
return _isoDuration(ZodISODuration, params);
|
|
12276
12235
|
}
|
|
12277
12236
|
|
|
12278
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
12237
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
12279
12238
|
var initializer2 = (inst, issues) => {
|
|
12280
12239
|
$ZodError.init(inst, issues);
|
|
12281
12240
|
inst.name = "ZodError";
|
|
@@ -12315,7 +12274,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
12315
12274
|
Parent: Error
|
|
12316
12275
|
});
|
|
12317
12276
|
|
|
12318
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
12277
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
12319
12278
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
12320
12279
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
12321
12280
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12329,7 +12288,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12329
12288
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12330
12289
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12331
12290
|
|
|
12332
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
12291
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
12333
12292
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12334
12293
|
$ZodType.init(inst, def);
|
|
12335
12294
|
Object.assign(inst["~standard"], {
|
|
@@ -12416,7 +12375,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12416
12375
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
12417
12376
|
$ZodString.init(inst, def);
|
|
12418
12377
|
ZodType.init(inst, def);
|
|
12419
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2
|
|
12378
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2);
|
|
12420
12379
|
const bag = inst._zod.bag;
|
|
12421
12380
|
inst.format = bag.format ?? null;
|
|
12422
12381
|
inst.minLength = bag.minimum ?? null;
|
|
@@ -12655,7 +12614,7 @@ function hash(alg, params) {
|
|
|
12655
12614
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
12656
12615
|
$ZodNumber.init(inst, def);
|
|
12657
12616
|
ZodType.init(inst, def);
|
|
12658
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2
|
|
12617
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2);
|
|
12659
12618
|
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
12660
12619
|
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
12661
12620
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
@@ -12703,7 +12662,7 @@ function uint32(params) {
|
|
|
12703
12662
|
var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
12704
12663
|
$ZodBoolean.init(inst, def);
|
|
12705
12664
|
ZodType.init(inst, def);
|
|
12706
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2
|
|
12665
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2);
|
|
12707
12666
|
});
|
|
12708
12667
|
function boolean2(params) {
|
|
12709
12668
|
return _boolean(ZodBoolean, params);
|
|
@@ -12711,7 +12670,7 @@ function boolean2(params) {
|
|
|
12711
12670
|
var ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {
|
|
12712
12671
|
$ZodBigInt.init(inst, def);
|
|
12713
12672
|
ZodType.init(inst, def);
|
|
12714
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx
|
|
12673
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx);
|
|
12715
12674
|
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
12716
12675
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
12717
12676
|
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
@@ -12746,7 +12705,7 @@ function uint64(params) {
|
|
|
12746
12705
|
var ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {
|
|
12747
12706
|
$ZodSymbol.init(inst, def);
|
|
12748
12707
|
ZodType.init(inst, def);
|
|
12749
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx
|
|
12708
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx);
|
|
12750
12709
|
});
|
|
12751
12710
|
function symbol(params) {
|
|
12752
12711
|
return _symbol(ZodSymbol, params);
|
|
@@ -12754,7 +12713,7 @@ function symbol(params) {
|
|
|
12754
12713
|
var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
|
|
12755
12714
|
$ZodUndefined.init(inst, def);
|
|
12756
12715
|
ZodType.init(inst, def);
|
|
12757
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx
|
|
12716
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx);
|
|
12758
12717
|
});
|
|
12759
12718
|
function _undefined3(params) {
|
|
12760
12719
|
return _undefined2(ZodUndefined, params);
|
|
@@ -12762,7 +12721,7 @@ function _undefined3(params) {
|
|
|
12762
12721
|
var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
12763
12722
|
$ZodNull.init(inst, def);
|
|
12764
12723
|
ZodType.init(inst, def);
|
|
12765
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2
|
|
12724
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2);
|
|
12766
12725
|
});
|
|
12767
12726
|
function _null3(params) {
|
|
12768
12727
|
return _null2(ZodNull, params);
|
|
@@ -12770,7 +12729,7 @@ function _null3(params) {
|
|
|
12770
12729
|
var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
12771
12730
|
$ZodAny.init(inst, def);
|
|
12772
12731
|
ZodType.init(inst, def);
|
|
12773
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor(
|
|
12732
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor();
|
|
12774
12733
|
});
|
|
12775
12734
|
function any() {
|
|
12776
12735
|
return _any(ZodAny);
|
|
@@ -12778,7 +12737,7 @@ function any() {
|
|
|
12778
12737
|
var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
12779
12738
|
$ZodUnknown.init(inst, def);
|
|
12780
12739
|
ZodType.init(inst, def);
|
|
12781
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor(
|
|
12740
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor();
|
|
12782
12741
|
});
|
|
12783
12742
|
function unknown() {
|
|
12784
12743
|
return _unknown(ZodUnknown);
|
|
@@ -12786,7 +12745,7 @@ function unknown() {
|
|
|
12786
12745
|
var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
12787
12746
|
$ZodNever.init(inst, def);
|
|
12788
12747
|
ZodType.init(inst, def);
|
|
12789
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2
|
|
12748
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2);
|
|
12790
12749
|
});
|
|
12791
12750
|
function never(params) {
|
|
12792
12751
|
return _never(ZodNever, params);
|
|
@@ -12794,7 +12753,7 @@ function never(params) {
|
|
|
12794
12753
|
var ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {
|
|
12795
12754
|
$ZodVoid.init(inst, def);
|
|
12796
12755
|
ZodType.init(inst, def);
|
|
12797
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx
|
|
12756
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx);
|
|
12798
12757
|
});
|
|
12799
12758
|
function _void2(params) {
|
|
12800
12759
|
return _void(ZodVoid, params);
|
|
@@ -12802,7 +12761,7 @@ function _void2(params) {
|
|
|
12802
12761
|
var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
|
|
12803
12762
|
$ZodDate.init(inst, def);
|
|
12804
12763
|
ZodType.init(inst, def);
|
|
12805
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx
|
|
12764
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx);
|
|
12806
12765
|
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
12807
12766
|
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
12808
12767
|
const c = inst._zod.bag;
|
|
@@ -12987,7 +12946,7 @@ function looseRecord(keyType, valueType, params) {
|
|
|
12987
12946
|
var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
|
|
12988
12947
|
$ZodMap.init(inst, def);
|
|
12989
12948
|
ZodType.init(inst, def);
|
|
12990
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx
|
|
12949
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx);
|
|
12991
12950
|
inst.keyType = def.keyType;
|
|
12992
12951
|
inst.valueType = def.valueType;
|
|
12993
12952
|
inst.min = (...args) => inst.check(_minSize(...args));
|
|
@@ -13006,7 +12965,7 @@ function map(keyType, valueType, params) {
|
|
|
13006
12965
|
var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
|
|
13007
12966
|
$ZodSet.init(inst, def);
|
|
13008
12967
|
ZodType.init(inst, def);
|
|
13009
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx
|
|
12968
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx);
|
|
13010
12969
|
inst.min = (...args) => inst.check(_minSize(...args));
|
|
13011
12970
|
inst.nonempty = (params) => inst.check(_minSize(1, params));
|
|
13012
12971
|
inst.max = (...args) => inst.check(_maxSize(...args));
|
|
@@ -13022,7 +12981,7 @@ function set(valueType, params) {
|
|
|
13022
12981
|
var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
13023
12982
|
$ZodEnum.init(inst, def);
|
|
13024
12983
|
ZodType.init(inst, def);
|
|
13025
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2
|
|
12984
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2);
|
|
13026
12985
|
inst.enum = def.entries;
|
|
13027
12986
|
inst.options = Object.values(def.entries);
|
|
13028
12987
|
const keys = new Set(Object.keys(def.entries));
|
|
@@ -13075,7 +13034,7 @@ function nativeEnum(entries, params) {
|
|
|
13075
13034
|
var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
|
|
13076
13035
|
$ZodLiteral.init(inst, def);
|
|
13077
13036
|
ZodType.init(inst, def);
|
|
13078
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => literalProcessor(inst, ctx, json2
|
|
13037
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => literalProcessor(inst, ctx, json2);
|
|
13079
13038
|
inst.values = new Set(def.values);
|
|
13080
13039
|
Object.defineProperty(inst, "value", {
|
|
13081
13040
|
get() {
|
|
@@ -13096,7 +13055,7 @@ function literal(value, params) {
|
|
|
13096
13055
|
var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
|
|
13097
13056
|
$ZodFile.init(inst, def);
|
|
13098
13057
|
ZodType.init(inst, def);
|
|
13099
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2
|
|
13058
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2);
|
|
13100
13059
|
inst.min = (size, params) => inst.check(_minSize(size, params));
|
|
13101
13060
|
inst.max = (size, params) => inst.check(_maxSize(size, params));
|
|
13102
13061
|
inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
|
|
@@ -13107,7 +13066,7 @@ function file(params) {
|
|
|
13107
13066
|
var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
13108
13067
|
$ZodTransform.init(inst, def);
|
|
13109
13068
|
ZodType.init(inst, def);
|
|
13110
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx
|
|
13069
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx);
|
|
13111
13070
|
inst._zod.parse = (payload, _ctx) => {
|
|
13112
13071
|
if (_ctx.direction === "backward") {
|
|
13113
13072
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -13228,7 +13187,7 @@ function nonoptional(innerType, params) {
|
|
|
13228
13187
|
var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {
|
|
13229
13188
|
$ZodSuccess.init(inst, def);
|
|
13230
13189
|
ZodType.init(inst, def);
|
|
13231
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => successProcessor(inst, ctx, json2
|
|
13190
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => successProcessor(inst, ctx, json2);
|
|
13232
13191
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
13233
13192
|
});
|
|
13234
13193
|
function success(innerType) {
|
|
@@ -13254,7 +13213,7 @@ function _catch2(innerType, catchValue) {
|
|
|
13254
13213
|
var ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => {
|
|
13255
13214
|
$ZodNaN.init(inst, def);
|
|
13256
13215
|
ZodType.init(inst, def);
|
|
13257
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx
|
|
13216
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx);
|
|
13258
13217
|
});
|
|
13259
13218
|
function nan(params) {
|
|
13260
13219
|
return _nan(ZodNaN, params);
|
|
@@ -13302,7 +13261,7 @@ function readonly(innerType) {
|
|
|
13302
13261
|
var ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => {
|
|
13303
13262
|
$ZodTemplateLiteral.init(inst, def);
|
|
13304
13263
|
ZodType.init(inst, def);
|
|
13305
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => templateLiteralProcessor(inst, ctx, json2
|
|
13264
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => templateLiteralProcessor(inst, ctx, json2);
|
|
13306
13265
|
});
|
|
13307
13266
|
function templateLiteral(parts, params) {
|
|
13308
13267
|
return new ZodTemplateLiteral({
|
|
@@ -13338,7 +13297,7 @@ function promise(innerType) {
|
|
|
13338
13297
|
var ZodFunction = /* @__PURE__ */ $constructor("ZodFunction", (inst, def) => {
|
|
13339
13298
|
$ZodFunction.init(inst, def);
|
|
13340
13299
|
ZodType.init(inst, def);
|
|
13341
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => functionProcessor(inst, ctx
|
|
13300
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => functionProcessor(inst, ctx);
|
|
13342
13301
|
});
|
|
13343
13302
|
function _function(params) {
|
|
13344
13303
|
return new ZodFunction({
|
|
@@ -13350,7 +13309,7 @@ function _function(params) {
|
|
|
13350
13309
|
var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
13351
13310
|
$ZodCustom.init(inst, def);
|
|
13352
13311
|
ZodType.init(inst, def);
|
|
13353
|
-
inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx
|
|
13312
|
+
inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx);
|
|
13354
13313
|
});
|
|
13355
13314
|
function check(fn) {
|
|
13356
13315
|
const ch = new $ZodCheck({
|
|
@@ -13408,7 +13367,7 @@ function preprocess(fn, schema) {
|
|
|
13408
13367
|
return pipe(transform(fn), schema);
|
|
13409
13368
|
}
|
|
13410
13369
|
|
|
13411
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
13370
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
13412
13371
|
var ZodIssueCode = {
|
|
13413
13372
|
invalid_type: "invalid_type",
|
|
13414
13373
|
too_big: "too_big",
|
|
@@ -13434,7 +13393,7 @@ var ZodFirstPartyTypeKind;
|
|
|
13434
13393
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
13435
13394
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13436
13395
|
|
|
13437
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
13396
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
13438
13397
|
var z = {
|
|
13439
13398
|
...schemas_exports2,
|
|
13440
13399
|
...checks_exports2,
|
|
@@ -13908,7 +13867,7 @@ function fromJSONSchema(schema, params) {
|
|
|
13908
13867
|
return convertSchema(schema, ctx);
|
|
13909
13868
|
}
|
|
13910
13869
|
|
|
13911
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
13870
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
13912
13871
|
var coerce_exports = {};
|
|
13913
13872
|
__export(coerce_exports, {
|
|
13914
13873
|
bigint: () => bigint3,
|
|
@@ -13933,14 +13892,14 @@ function date4(params) {
|
|
|
13933
13892
|
return _coercedDate(ZodDate, params);
|
|
13934
13893
|
}
|
|
13935
13894
|
|
|
13936
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
13895
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
13937
13896
|
config(en_default());
|
|
13938
13897
|
|
|
13939
13898
|
// src/RequestValidationGenerator.ts
|
|
13940
|
-
var moduleDir2 =
|
|
13899
|
+
var moduleDir2 = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
13941
13900
|
var RequestValidationGenerator = class {
|
|
13942
13901
|
static generate(context) {
|
|
13943
|
-
const templateFilePath =
|
|
13902
|
+
const templateFilePath = path3__default.default.join(
|
|
13944
13903
|
moduleDir2,
|
|
13945
13904
|
"templates",
|
|
13946
13905
|
"RequestValidator.ejs"
|
|
@@ -13957,18 +13916,18 @@ var RequestValidationGenerator = class {
|
|
|
13957
13916
|
const { outputDir, definition, outputRequestFileName } = operationResource;
|
|
13958
13917
|
const { operationId, request } = definition;
|
|
13959
13918
|
const { body, query, param, header } = request;
|
|
13960
|
-
const pascalCaseOperationId =
|
|
13919
|
+
const pascalCaseOperationId = Case3__default.default.pascal(operationId);
|
|
13961
13920
|
const content = context.renderTemplate(templateFilePath, {
|
|
13962
13921
|
pascalCaseOperationId,
|
|
13963
13922
|
operationId,
|
|
13964
|
-
sourcePath:
|
|
13923
|
+
sourcePath: typeweaverGen.Path.relative(
|
|
13965
13924
|
outputDir,
|
|
13966
|
-
`${operationResource.sourceDir}/${
|
|
13925
|
+
`${operationResource.sourceDir}/${path3__default.default.relative(operationResource.sourceDir, operationResource.sourceFile).replace(/\.ts$/, "")}`
|
|
13967
13926
|
),
|
|
13968
13927
|
corePath: context.coreDir,
|
|
13969
|
-
requestFile:
|
|
13928
|
+
requestFile: typeweaverGen.Path.relative(
|
|
13970
13929
|
outputDir,
|
|
13971
|
-
`${outputDir}/${
|
|
13930
|
+
`${outputDir}/${path3__default.default.basename(outputRequestFileName, ".ts")}`
|
|
13972
13931
|
),
|
|
13973
13932
|
body,
|
|
13974
13933
|
query,
|
|
@@ -13976,26 +13935,18 @@ var RequestValidationGenerator = class {
|
|
|
13976
13935
|
header,
|
|
13977
13936
|
z: external_exports
|
|
13978
13937
|
});
|
|
13979
|
-
const relativePath =
|
|
13938
|
+
const relativePath = path3__default.default.relative(
|
|
13980
13939
|
context.outputDir,
|
|
13981
13940
|
operationResource.outputRequestValidationFile
|
|
13982
13941
|
);
|
|
13983
13942
|
context.writeFile(relativePath, content);
|
|
13984
13943
|
}
|
|
13985
13944
|
};
|
|
13986
|
-
|
|
13987
|
-
// src/ResponseGenerator.ts
|
|
13988
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
13989
|
-
var import_node_url3 = require("node:url");
|
|
13990
|
-
var import_typeweaver_core = require("@rexeus/typeweaver-core");
|
|
13991
|
-
var import_typeweaver_gen3 = require("@rexeus/typeweaver-gen");
|
|
13992
|
-
var import_typeweaver_zod_to_ts2 = require("@rexeus/typeweaver-zod-to-ts");
|
|
13993
|
-
var import_case3 = __toESM(require("case"), 1);
|
|
13994
|
-
var moduleDir3 = import_node_path3.default.dirname((0, import_node_url3.fileURLToPath)(importMetaUrl));
|
|
13945
|
+
var moduleDir3 = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
13995
13946
|
var ResponseGenerator = class {
|
|
13996
13947
|
static generate(context) {
|
|
13997
|
-
const templateFile =
|
|
13998
|
-
const sharedResponseTemplateFile =
|
|
13948
|
+
const templateFile = path3__default.default.join(moduleDir3, "templates", "Response.ejs");
|
|
13949
|
+
const sharedResponseTemplateFile = path3__default.default.join(
|
|
13999
13950
|
moduleDir3,
|
|
14000
13951
|
"templates",
|
|
14001
13952
|
"SharedResponse.ejs"
|
|
@@ -14025,7 +13976,7 @@ var ResponseGenerator = class {
|
|
|
14025
13976
|
sourceFile
|
|
14026
13977
|
} = resource;
|
|
14027
13978
|
const { responses, operationId } = definition;
|
|
14028
|
-
const pascalCaseOperationId =
|
|
13979
|
+
const pascalCaseOperationId = Case3__default.default.pascal(operationId);
|
|
14029
13980
|
const ownResponses = [];
|
|
14030
13981
|
const sharedResponses = [];
|
|
14031
13982
|
for (const response of responses) {
|
|
@@ -14037,9 +13988,9 @@ var ResponseGenerator = class {
|
|
|
14037
13988
|
if (sharedResponse) {
|
|
14038
13989
|
sharedResponses.push({
|
|
14039
13990
|
name,
|
|
14040
|
-
path:
|
|
13991
|
+
path: typeweaverGen.Path.relative(
|
|
14041
13992
|
outputDir,
|
|
14042
|
-
`${sharedResponse.outputDir}/${
|
|
13993
|
+
`${sharedResponse.outputDir}/${path3__default.default.basename(sharedResponse.outputFileName, ".ts")}`
|
|
14043
13994
|
)
|
|
14044
13995
|
});
|
|
14045
13996
|
} else {
|
|
@@ -14052,9 +14003,9 @@ var ResponseGenerator = class {
|
|
|
14052
14003
|
}
|
|
14053
14004
|
sharedResponses.push({
|
|
14054
14005
|
name,
|
|
14055
|
-
path:
|
|
14006
|
+
path: typeweaverGen.Path.relative(
|
|
14056
14007
|
outputDir,
|
|
14057
|
-
`${entityResponse.outputDir}/${
|
|
14008
|
+
`${entityResponse.outputDir}/${path3__default.default.basename(entityResponse.outputFileName, ".ts")}`
|
|
14058
14009
|
)
|
|
14059
14010
|
});
|
|
14060
14011
|
}
|
|
@@ -14062,10 +14013,10 @@ var ResponseGenerator = class {
|
|
|
14062
14013
|
}
|
|
14063
14014
|
ownResponses.push({
|
|
14064
14015
|
name,
|
|
14065
|
-
body: body ?
|
|
14066
|
-
header: header ?
|
|
14016
|
+
body: body ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(body)) : void 0,
|
|
14017
|
+
header: header ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(header)) : void 0,
|
|
14067
14018
|
statusCode,
|
|
14068
|
-
statusCodeKey:
|
|
14019
|
+
statusCodeKey: typeweaverCore.HttpStatusCode[statusCode]
|
|
14069
14020
|
});
|
|
14070
14021
|
}
|
|
14071
14022
|
const content = context.renderTemplate(templateFile, {
|
|
@@ -14074,47 +14025,40 @@ var ResponseGenerator = class {
|
|
|
14074
14025
|
coreDir: context.coreDir,
|
|
14075
14026
|
ownResponses,
|
|
14076
14027
|
sharedResponses,
|
|
14077
|
-
responseFile:
|
|
14028
|
+
responseFile: typeweaverGen.Path.relative(
|
|
14078
14029
|
outputDir,
|
|
14079
|
-
`${outputDir}/${
|
|
14030
|
+
`${outputDir}/${path3__default.default.basename(outputResponseFileName, ".ts")}`
|
|
14080
14031
|
),
|
|
14081
|
-
sourcePath:
|
|
14032
|
+
sourcePath: typeweaverGen.Path.relative(
|
|
14082
14033
|
outputDir,
|
|
14083
|
-
`${sourceDir}/${
|
|
14034
|
+
`${sourceDir}/${path3__default.default.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`
|
|
14084
14035
|
)
|
|
14085
14036
|
});
|
|
14086
|
-
const relativePath =
|
|
14037
|
+
const relativePath = path3__default.default.relative(context.outputDir, outputResponseFile);
|
|
14087
14038
|
context.writeFile(relativePath, content);
|
|
14088
14039
|
}
|
|
14089
14040
|
static writeEntityResponseType(templateFile, resource, context) {
|
|
14090
14041
|
const { name, body, header, outputFile } = resource;
|
|
14091
|
-
const pascalCaseName =
|
|
14092
|
-
const headerTsType = header ?
|
|
14093
|
-
const bodyTsType = body ?
|
|
14042
|
+
const pascalCaseName = Case3__default.default.pascal(name);
|
|
14043
|
+
const headerTsType = header ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(header)) : void 0;
|
|
14044
|
+
const bodyTsType = body ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(body)) : void 0;
|
|
14094
14045
|
const content = context.renderTemplate(templateFile, {
|
|
14095
14046
|
coreDir: context.coreDir,
|
|
14096
|
-
httpStatusCode:
|
|
14047
|
+
httpStatusCode: typeweaverCore.HttpStatusCode,
|
|
14097
14048
|
headerTsType,
|
|
14098
14049
|
bodyTsType,
|
|
14099
14050
|
pascalCaseName,
|
|
14100
14051
|
sharedResponse: resource
|
|
14101
14052
|
// The template expects this property name
|
|
14102
14053
|
});
|
|
14103
|
-
const relativePath =
|
|
14054
|
+
const relativePath = path3__default.default.relative(context.outputDir, outputFile);
|
|
14104
14055
|
context.writeFile(relativePath, content);
|
|
14105
14056
|
}
|
|
14106
14057
|
};
|
|
14107
|
-
|
|
14108
|
-
// src/ResponseValidationGenerator.ts
|
|
14109
|
-
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
14110
|
-
var import_node_url4 = require("node:url");
|
|
14111
|
-
var import_typeweaver_core2 = require("@rexeus/typeweaver-core");
|
|
14112
|
-
var import_typeweaver_gen4 = require("@rexeus/typeweaver-gen");
|
|
14113
|
-
var import_case4 = __toESM(require("case"), 1);
|
|
14114
|
-
var moduleDir4 = import_node_path4.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
14058
|
+
var moduleDir4 = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
14115
14059
|
var ResponseValidationGenerator = class {
|
|
14116
14060
|
static generate(context) {
|
|
14117
|
-
const templateFilePath =
|
|
14061
|
+
const templateFilePath = path3__default.default.join(
|
|
14118
14062
|
moduleDir4,
|
|
14119
14063
|
"templates",
|
|
14120
14064
|
"ResponseValidator.ejs"
|
|
@@ -14141,7 +14085,7 @@ var ResponseValidationGenerator = class {
|
|
|
14141
14085
|
outputResponseValidationFile
|
|
14142
14086
|
} = resource;
|
|
14143
14087
|
const { responses, operationId } = definition;
|
|
14144
|
-
const pascalCaseOperationId =
|
|
14088
|
+
const pascalCaseOperationId = Case3__default.default.pascal(operationId);
|
|
14145
14089
|
const ownResponses = [];
|
|
14146
14090
|
const sharedResponses = [];
|
|
14147
14091
|
const allStatusCodes = [];
|
|
@@ -14166,9 +14110,9 @@ var ResponseValidationGenerator = class {
|
|
|
14166
14110
|
const entityResponses = context.resources.entityResources[resource.entityName]?.responses;
|
|
14167
14111
|
const entityResponse = entityResponses?.find((r) => r.name === name);
|
|
14168
14112
|
if (entityResponse) {
|
|
14169
|
-
importPath =
|
|
14113
|
+
importPath = typeweaverGen.Path.relative(
|
|
14170
14114
|
outputDir,
|
|
14171
|
-
`${entityResponse.outputDir}/${
|
|
14115
|
+
`${entityResponse.outputDir}/${path3__default.default.basename(entityResponse.outputFileName, ".ts")}`
|
|
14172
14116
|
);
|
|
14173
14117
|
} else {
|
|
14174
14118
|
throw new Error(
|
|
@@ -14176,9 +14120,9 @@ var ResponseValidationGenerator = class {
|
|
|
14176
14120
|
);
|
|
14177
14121
|
}
|
|
14178
14122
|
} else {
|
|
14179
|
-
importPath =
|
|
14123
|
+
importPath = typeweaverGen.Path.relative(
|
|
14180
14124
|
outputDir,
|
|
14181
|
-
`${sharedResponse.outputDir}/${
|
|
14125
|
+
`${sharedResponse.outputDir}/${path3__default.default.basename(sharedResponse.outputFileName, ".ts")}`
|
|
14182
14126
|
);
|
|
14183
14127
|
}
|
|
14184
14128
|
sharedResponses.push({
|
|
@@ -14196,7 +14140,7 @@ var ResponseValidationGenerator = class {
|
|
|
14196
14140
|
hasBody: !!body,
|
|
14197
14141
|
hasHeader: !!header,
|
|
14198
14142
|
statusCode,
|
|
14199
|
-
statusCodeKey:
|
|
14143
|
+
statusCodeKey: typeweaverCore.HttpStatusCode[statusCode],
|
|
14200
14144
|
index
|
|
14201
14145
|
});
|
|
14202
14146
|
}
|
|
@@ -14204,33 +14148,26 @@ var ResponseValidationGenerator = class {
|
|
|
14204
14148
|
operationId,
|
|
14205
14149
|
pascalCaseOperationId,
|
|
14206
14150
|
coreDir: context.coreDir,
|
|
14207
|
-
responseFile: `./${
|
|
14208
|
-
sourcePath:
|
|
14151
|
+
responseFile: `./${path3__default.default.basename(outputResponseFileName, ".ts")}`,
|
|
14152
|
+
sourcePath: typeweaverGen.Path.relative(
|
|
14209
14153
|
outputDir,
|
|
14210
|
-
`${sourceDir}/${
|
|
14154
|
+
`${sourceDir}/${path3__default.default.relative(sourceDir, sourceFile).replace(/\.ts$/, "")}`
|
|
14211
14155
|
),
|
|
14212
14156
|
sharedResponses,
|
|
14213
14157
|
ownResponses,
|
|
14214
14158
|
allStatusCodes
|
|
14215
14159
|
});
|
|
14216
|
-
const relativePath =
|
|
14160
|
+
const relativePath = path3__default.default.relative(
|
|
14217
14161
|
context.outputDir,
|
|
14218
14162
|
outputResponseValidationFile
|
|
14219
14163
|
);
|
|
14220
14164
|
context.writeFile(relativePath, content);
|
|
14221
14165
|
}
|
|
14222
14166
|
};
|
|
14223
|
-
|
|
14224
|
-
// src/SharedResponseGenerator.ts
|
|
14225
|
-
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
14226
|
-
var import_node_url5 = require("node:url");
|
|
14227
|
-
var import_typeweaver_core3 = require("@rexeus/typeweaver-core");
|
|
14228
|
-
var import_typeweaver_zod_to_ts3 = require("@rexeus/typeweaver-zod-to-ts");
|
|
14229
|
-
var import_case5 = __toESM(require("case"), 1);
|
|
14230
|
-
var moduleDir5 = import_node_path5.default.dirname((0, import_node_url5.fileURLToPath)(importMetaUrl));
|
|
14167
|
+
var moduleDir5 = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
14231
14168
|
var SharedResponseGenerator = class {
|
|
14232
14169
|
static generate(context) {
|
|
14233
|
-
const templateFile =
|
|
14170
|
+
const templateFile = path3__default.default.join(
|
|
14234
14171
|
moduleDir5,
|
|
14235
14172
|
"templates",
|
|
14236
14173
|
"SharedResponse.ejs"
|
|
@@ -14240,18 +14177,18 @@ var SharedResponseGenerator = class {
|
|
|
14240
14177
|
}
|
|
14241
14178
|
}
|
|
14242
14179
|
static writeSharedResponse(templateFile, sharedResponse, context) {
|
|
14243
|
-
const headerTsType = sharedResponse.header ?
|
|
14244
|
-
const bodyTsType = sharedResponse.body ?
|
|
14245
|
-
const pascalCaseName =
|
|
14180
|
+
const headerTsType = sharedResponse.header ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(sharedResponse.header)) : void 0;
|
|
14181
|
+
const bodyTsType = sharedResponse.body ? typeweaverZodToTs.TsTypePrinter.print(typeweaverZodToTs.TsTypeNode.fromZod(sharedResponse.body)) : void 0;
|
|
14182
|
+
const pascalCaseName = Case3__default.default.pascal(sharedResponse.name);
|
|
14246
14183
|
const content = context.renderTemplate(templateFile, {
|
|
14247
14184
|
coreDir: context.coreDir,
|
|
14248
|
-
httpStatusCode:
|
|
14185
|
+
httpStatusCode: typeweaverCore.HttpStatusCode,
|
|
14249
14186
|
headerTsType,
|
|
14250
14187
|
bodyTsType,
|
|
14251
14188
|
pascalCaseName,
|
|
14252
14189
|
sharedResponse
|
|
14253
14190
|
});
|
|
14254
|
-
const relativePath =
|
|
14191
|
+
const relativePath = path3__default.default.relative(
|
|
14255
14192
|
context.outputDir,
|
|
14256
14193
|
sharedResponse.outputFile
|
|
14257
14194
|
);
|
|
@@ -14260,11 +14197,11 @@ var SharedResponseGenerator = class {
|
|
|
14260
14197
|
};
|
|
14261
14198
|
|
|
14262
14199
|
// src/index.ts
|
|
14263
|
-
var moduleDir6 =
|
|
14264
|
-
var TypesPlugin = class extends
|
|
14200
|
+
var moduleDir6 = path3__default.default.dirname(node_url.fileURLToPath(importMetaUrl));
|
|
14201
|
+
var TypesPlugin = class extends typeweaverGen.BasePlugin {
|
|
14265
14202
|
name = "types";
|
|
14266
14203
|
generate(context) {
|
|
14267
|
-
const libDir =
|
|
14204
|
+
const libDir = path3__default.default.join(moduleDir6, "lib");
|
|
14268
14205
|
this.copyLibFiles(context, libDir, this.name);
|
|
14269
14206
|
SharedResponseGenerator.generate(context);
|
|
14270
14207
|
RequestGenerator.generate(context);
|
|
@@ -14273,3 +14210,5 @@ var TypesPlugin = class extends import_typeweaver_gen5.BasePlugin {
|
|
|
14273
14210
|
ResponseValidationGenerator.generate(context);
|
|
14274
14211
|
}
|
|
14275
14212
|
};
|
|
14213
|
+
|
|
14214
|
+
module.exports = TypesPlugin;
|