@rexeus/typeweaver-core 0.3.1 → 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 +86 -122
- package/dist/index.js +70 -81
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1,96 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
HttpMethod: () => HttpMethod,
|
|
24
|
-
HttpOperationDefinition: () => HttpOperationDefinition,
|
|
25
|
-
HttpRequestDefinition: () => HttpRequestDefinition,
|
|
26
|
-
HttpResponse: () => HttpResponse,
|
|
27
|
-
HttpResponseDefinition: () => HttpResponseDefinition,
|
|
28
|
-
HttpStatusCode: () => HttpStatusCode,
|
|
29
|
-
HttpStatusCodeNameMap: () => HttpStatusCodeNameMap,
|
|
30
|
-
RequestValidationError: () => RequestValidationError,
|
|
31
|
-
ResponseValidationError: () => ResponseValidationError,
|
|
32
|
-
UnknownResponse: () => UnknownResponse
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(index_exports);
|
|
3
|
+
var zod = require('zod');
|
|
35
4
|
|
|
36
5
|
// src/HttpStatusCode.ts
|
|
37
|
-
var HttpStatusCode = /* @__PURE__ */ ((
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return
|
|
6
|
+
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
7
|
+
HttpStatusCode2[HttpStatusCode2["OK"] = 200] = "OK";
|
|
8
|
+
HttpStatusCode2[HttpStatusCode2["CREATED"] = 201] = "CREATED";
|
|
9
|
+
HttpStatusCode2[HttpStatusCode2["ACCEPTED"] = 202] = "ACCEPTED";
|
|
10
|
+
HttpStatusCode2[HttpStatusCode2["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
11
|
+
HttpStatusCode2[HttpStatusCode2["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
12
|
+
HttpStatusCode2[HttpStatusCode2["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
13
|
+
HttpStatusCode2[HttpStatusCode2["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
14
|
+
HttpStatusCode2[HttpStatusCode2["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
15
|
+
HttpStatusCode2[HttpStatusCode2["IM_USED"] = 226] = "IM_USED";
|
|
16
|
+
HttpStatusCode2[HttpStatusCode2["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
17
|
+
HttpStatusCode2[HttpStatusCode2["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
18
|
+
HttpStatusCode2[HttpStatusCode2["FOUND"] = 302] = "FOUND";
|
|
19
|
+
HttpStatusCode2[HttpStatusCode2["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
20
|
+
HttpStatusCode2[HttpStatusCode2["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
21
|
+
HttpStatusCode2[HttpStatusCode2["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
22
|
+
HttpStatusCode2[HttpStatusCode2["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
23
|
+
HttpStatusCode2[HttpStatusCode2["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
24
|
+
HttpStatusCode2[HttpStatusCode2["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
25
|
+
HttpStatusCode2[HttpStatusCode2["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
26
|
+
HttpStatusCode2[HttpStatusCode2["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
27
|
+
HttpStatusCode2[HttpStatusCode2["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
28
|
+
HttpStatusCode2[HttpStatusCode2["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
29
|
+
HttpStatusCode2[HttpStatusCode2["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
30
|
+
HttpStatusCode2[HttpStatusCode2["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
31
|
+
HttpStatusCode2[HttpStatusCode2["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
32
|
+
HttpStatusCode2[HttpStatusCode2["CONFLICT"] = 409] = "CONFLICT";
|
|
33
|
+
HttpStatusCode2[HttpStatusCode2["GONE"] = 410] = "GONE";
|
|
34
|
+
HttpStatusCode2[HttpStatusCode2["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
35
|
+
HttpStatusCode2[HttpStatusCode2["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
36
|
+
HttpStatusCode2[HttpStatusCode2["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
37
|
+
HttpStatusCode2[HttpStatusCode2["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
38
|
+
HttpStatusCode2[HttpStatusCode2["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
39
|
+
HttpStatusCode2[HttpStatusCode2["RANGE_NOT_SATISFIABLE"] = 416] = "RANGE_NOT_SATISFIABLE";
|
|
40
|
+
HttpStatusCode2[HttpStatusCode2["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
41
|
+
HttpStatusCode2[HttpStatusCode2["IM_A_TEAPOT"] = 418] = "IM_A_TEAPOT";
|
|
42
|
+
HttpStatusCode2[HttpStatusCode2["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
43
|
+
HttpStatusCode2[HttpStatusCode2["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
44
|
+
HttpStatusCode2[HttpStatusCode2["LOCKED"] = 423] = "LOCKED";
|
|
45
|
+
HttpStatusCode2[HttpStatusCode2["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
46
|
+
HttpStatusCode2[HttpStatusCode2["UPGRADE_REQUIRED"] = 426] = "UPGRADE_REQUIRED";
|
|
47
|
+
HttpStatusCode2[HttpStatusCode2["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
48
|
+
HttpStatusCode2[HttpStatusCode2["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
49
|
+
HttpStatusCode2[HttpStatusCode2["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
50
|
+
HttpStatusCode2[HttpStatusCode2["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
51
|
+
HttpStatusCode2[HttpStatusCode2["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
52
|
+
HttpStatusCode2[HttpStatusCode2["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
53
|
+
HttpStatusCode2[HttpStatusCode2["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
54
|
+
HttpStatusCode2[HttpStatusCode2["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
55
|
+
HttpStatusCode2[HttpStatusCode2["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
56
|
+
HttpStatusCode2[HttpStatusCode2["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
57
|
+
HttpStatusCode2[HttpStatusCode2["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
58
|
+
HttpStatusCode2[HttpStatusCode2["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
59
|
+
HttpStatusCode2[HttpStatusCode2["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
60
|
+
HttpStatusCode2[HttpStatusCode2["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
61
|
+
HttpStatusCode2[HttpStatusCode2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
62
|
+
return HttpStatusCode2;
|
|
94
63
|
})(HttpStatusCode || {});
|
|
95
64
|
var HttpStatusCodeNameMap = {
|
|
96
65
|
[200 /* OK */]: "Ok",
|
|
@@ -160,15 +129,15 @@ var HttpResponse = class {
|
|
|
160
129
|
};
|
|
161
130
|
|
|
162
131
|
// src/HttpMethod.ts
|
|
163
|
-
var HttpMethod = /* @__PURE__ */ ((
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return
|
|
132
|
+
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
133
|
+
HttpMethod2["GET"] = "GET";
|
|
134
|
+
HttpMethod2["POST"] = "POST";
|
|
135
|
+
HttpMethod2["PUT"] = "PUT";
|
|
136
|
+
HttpMethod2["DELETE"] = "DELETE";
|
|
137
|
+
HttpMethod2["PATCH"] = "PATCH";
|
|
138
|
+
HttpMethod2["OPTIONS"] = "OPTIONS";
|
|
139
|
+
HttpMethod2["HEAD"] = "HEAD";
|
|
140
|
+
return HttpMethod2;
|
|
172
141
|
})(HttpMethod || {});
|
|
173
142
|
|
|
174
143
|
// src/HttpOperationDefinition.ts
|
|
@@ -202,9 +171,6 @@ var HttpRequestDefinition = class {
|
|
|
202
171
|
this.body = definition.body;
|
|
203
172
|
}
|
|
204
173
|
};
|
|
205
|
-
|
|
206
|
-
// src/HttpResponseDefinition.ts
|
|
207
|
-
var import_zod = require("zod");
|
|
208
174
|
var HttpResponseDefinition = class _HttpResponseDefinition {
|
|
209
175
|
constructor(definition) {
|
|
210
176
|
this.definition = definition;
|
|
@@ -221,18 +187,18 @@ var HttpResponseDefinition = class _HttpResponseDefinition {
|
|
|
221
187
|
body;
|
|
222
188
|
extend(definition) {
|
|
223
189
|
const mergedHeader = (() => {
|
|
224
|
-
if (this.header instanceof
|
|
190
|
+
if (this.header instanceof zod.z.ZodRecord || definition.header instanceof zod.z.ZodRecord || this.header instanceof zod.z.ZodOptional && this.header.unwrap() instanceof zod.z.ZodRecord || definition.header instanceof zod.z.ZodOptional && definition.header.unwrap() instanceof zod.z.ZodRecord) {
|
|
225
191
|
throw new Error("Cannot merge ZodRecord headers");
|
|
226
192
|
}
|
|
227
193
|
if (!this.header && !definition.header) return void 0;
|
|
228
194
|
if (!this.header) return definition.header;
|
|
229
195
|
if (!definition.header) return this.header;
|
|
230
|
-
const mergedHeader2 =
|
|
231
|
-
...this.header instanceof
|
|
232
|
-
...definition.header instanceof
|
|
196
|
+
const mergedHeader2 = zod.z.object({
|
|
197
|
+
...this.header instanceof zod.z.ZodObject ? this.header.shape : this.header.unwrap().shape,
|
|
198
|
+
...definition.header instanceof zod.z.ZodObject ? definition.header.shape : definition.header.unwrap().shape
|
|
233
199
|
});
|
|
234
200
|
if (Object.values(mergedHeader2.shape).every(
|
|
235
|
-
(schema) => schema instanceof
|
|
201
|
+
(schema) => schema instanceof zod.z.ZodOptional
|
|
236
202
|
)) {
|
|
237
203
|
return mergedHeader2.optional();
|
|
238
204
|
}
|
|
@@ -242,8 +208,8 @@ var HttpResponseDefinition = class _HttpResponseDefinition {
|
|
|
242
208
|
if (!this.body && !definition.body) return void 0;
|
|
243
209
|
if (!this.body) return definition.body;
|
|
244
210
|
if (!definition.body) return this.body;
|
|
245
|
-
if (this.body instanceof
|
|
246
|
-
return
|
|
211
|
+
if (this.body instanceof zod.z.ZodObject && definition.body instanceof zod.z.ZodObject) {
|
|
212
|
+
return zod.z.object({
|
|
247
213
|
...this.body.shape,
|
|
248
214
|
...definition.body.shape
|
|
249
215
|
});
|
|
@@ -416,16 +382,14 @@ var UnknownResponse = class extends HttpResponse {
|
|
|
416
382
|
this.validationError = validationError;
|
|
417
383
|
}
|
|
418
384
|
};
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
UnknownResponse
|
|
431
|
-
});
|
|
385
|
+
|
|
386
|
+
exports.HttpMethod = HttpMethod;
|
|
387
|
+
exports.HttpOperationDefinition = HttpOperationDefinition;
|
|
388
|
+
exports.HttpRequestDefinition = HttpRequestDefinition;
|
|
389
|
+
exports.HttpResponse = HttpResponse;
|
|
390
|
+
exports.HttpResponseDefinition = HttpResponseDefinition;
|
|
391
|
+
exports.HttpStatusCode = HttpStatusCode;
|
|
392
|
+
exports.HttpStatusCodeNameMap = HttpStatusCodeNameMap;
|
|
393
|
+
exports.RequestValidationError = RequestValidationError;
|
|
394
|
+
exports.ResponseValidationError = ResponseValidationError;
|
|
395
|
+
exports.UnknownResponse = UnknownResponse;
|
package/dist/index.js
CHANGED
|
@@ -1,61 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
1
3
|
// src/HttpStatusCode.ts
|
|
2
|
-
var HttpStatusCode = /* @__PURE__ */ ((
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
4
|
+
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
5
|
+
HttpStatusCode2[HttpStatusCode2["OK"] = 200] = "OK";
|
|
6
|
+
HttpStatusCode2[HttpStatusCode2["CREATED"] = 201] = "CREATED";
|
|
7
|
+
HttpStatusCode2[HttpStatusCode2["ACCEPTED"] = 202] = "ACCEPTED";
|
|
8
|
+
HttpStatusCode2[HttpStatusCode2["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
9
|
+
HttpStatusCode2[HttpStatusCode2["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
10
|
+
HttpStatusCode2[HttpStatusCode2["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
11
|
+
HttpStatusCode2[HttpStatusCode2["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
12
|
+
HttpStatusCode2[HttpStatusCode2["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
13
|
+
HttpStatusCode2[HttpStatusCode2["IM_USED"] = 226] = "IM_USED";
|
|
14
|
+
HttpStatusCode2[HttpStatusCode2["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
15
|
+
HttpStatusCode2[HttpStatusCode2["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
16
|
+
HttpStatusCode2[HttpStatusCode2["FOUND"] = 302] = "FOUND";
|
|
17
|
+
HttpStatusCode2[HttpStatusCode2["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
18
|
+
HttpStatusCode2[HttpStatusCode2["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
19
|
+
HttpStatusCode2[HttpStatusCode2["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
20
|
+
HttpStatusCode2[HttpStatusCode2["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
21
|
+
HttpStatusCode2[HttpStatusCode2["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
22
|
+
HttpStatusCode2[HttpStatusCode2["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
23
|
+
HttpStatusCode2[HttpStatusCode2["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
24
|
+
HttpStatusCode2[HttpStatusCode2["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
25
|
+
HttpStatusCode2[HttpStatusCode2["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
26
|
+
HttpStatusCode2[HttpStatusCode2["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
27
|
+
HttpStatusCode2[HttpStatusCode2["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
28
|
+
HttpStatusCode2[HttpStatusCode2["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
29
|
+
HttpStatusCode2[HttpStatusCode2["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
30
|
+
HttpStatusCode2[HttpStatusCode2["CONFLICT"] = 409] = "CONFLICT";
|
|
31
|
+
HttpStatusCode2[HttpStatusCode2["GONE"] = 410] = "GONE";
|
|
32
|
+
HttpStatusCode2[HttpStatusCode2["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
33
|
+
HttpStatusCode2[HttpStatusCode2["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
34
|
+
HttpStatusCode2[HttpStatusCode2["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
35
|
+
HttpStatusCode2[HttpStatusCode2["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
36
|
+
HttpStatusCode2[HttpStatusCode2["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
37
|
+
HttpStatusCode2[HttpStatusCode2["RANGE_NOT_SATISFIABLE"] = 416] = "RANGE_NOT_SATISFIABLE";
|
|
38
|
+
HttpStatusCode2[HttpStatusCode2["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
39
|
+
HttpStatusCode2[HttpStatusCode2["IM_A_TEAPOT"] = 418] = "IM_A_TEAPOT";
|
|
40
|
+
HttpStatusCode2[HttpStatusCode2["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
41
|
+
HttpStatusCode2[HttpStatusCode2["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
42
|
+
HttpStatusCode2[HttpStatusCode2["LOCKED"] = 423] = "LOCKED";
|
|
43
|
+
HttpStatusCode2[HttpStatusCode2["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
44
|
+
HttpStatusCode2[HttpStatusCode2["UPGRADE_REQUIRED"] = 426] = "UPGRADE_REQUIRED";
|
|
45
|
+
HttpStatusCode2[HttpStatusCode2["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
46
|
+
HttpStatusCode2[HttpStatusCode2["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
47
|
+
HttpStatusCode2[HttpStatusCode2["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
48
|
+
HttpStatusCode2[HttpStatusCode2["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
49
|
+
HttpStatusCode2[HttpStatusCode2["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
50
|
+
HttpStatusCode2[HttpStatusCode2["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
51
|
+
HttpStatusCode2[HttpStatusCode2["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
52
|
+
HttpStatusCode2[HttpStatusCode2["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
53
|
+
HttpStatusCode2[HttpStatusCode2["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
54
|
+
HttpStatusCode2[HttpStatusCode2["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
55
|
+
HttpStatusCode2[HttpStatusCode2["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
56
|
+
HttpStatusCode2[HttpStatusCode2["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
57
|
+
HttpStatusCode2[HttpStatusCode2["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
58
|
+
HttpStatusCode2[HttpStatusCode2["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
59
|
+
HttpStatusCode2[HttpStatusCode2["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
60
|
+
return HttpStatusCode2;
|
|
59
61
|
})(HttpStatusCode || {});
|
|
60
62
|
var HttpStatusCodeNameMap = {
|
|
61
63
|
[200 /* OK */]: "Ok",
|
|
@@ -125,15 +127,15 @@ var HttpResponse = class {
|
|
|
125
127
|
};
|
|
126
128
|
|
|
127
129
|
// src/HttpMethod.ts
|
|
128
|
-
var HttpMethod = /* @__PURE__ */ ((
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return
|
|
130
|
+
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
131
|
+
HttpMethod2["GET"] = "GET";
|
|
132
|
+
HttpMethod2["POST"] = "POST";
|
|
133
|
+
HttpMethod2["PUT"] = "PUT";
|
|
134
|
+
HttpMethod2["DELETE"] = "DELETE";
|
|
135
|
+
HttpMethod2["PATCH"] = "PATCH";
|
|
136
|
+
HttpMethod2["OPTIONS"] = "OPTIONS";
|
|
137
|
+
HttpMethod2["HEAD"] = "HEAD";
|
|
138
|
+
return HttpMethod2;
|
|
137
139
|
})(HttpMethod || {});
|
|
138
140
|
|
|
139
141
|
// src/HttpOperationDefinition.ts
|
|
@@ -167,9 +169,6 @@ var HttpRequestDefinition = class {
|
|
|
167
169
|
this.body = definition.body;
|
|
168
170
|
}
|
|
169
171
|
};
|
|
170
|
-
|
|
171
|
-
// src/HttpResponseDefinition.ts
|
|
172
|
-
import { z } from "zod";
|
|
173
172
|
var HttpResponseDefinition = class _HttpResponseDefinition {
|
|
174
173
|
constructor(definition) {
|
|
175
174
|
this.definition = definition;
|
|
@@ -381,15 +380,5 @@ var UnknownResponse = class extends HttpResponse {
|
|
|
381
380
|
this.validationError = validationError;
|
|
382
381
|
}
|
|
383
382
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
HttpOperationDefinition,
|
|
387
|
-
HttpRequestDefinition,
|
|
388
|
-
HttpResponse,
|
|
389
|
-
HttpResponseDefinition,
|
|
390
|
-
HttpStatusCode,
|
|
391
|
-
HttpStatusCodeNameMap,
|
|
392
|
-
RequestValidationError,
|
|
393
|
-
ResponseValidationError,
|
|
394
|
-
UnknownResponse
|
|
395
|
-
};
|
|
383
|
+
|
|
384
|
+
export { HttpMethod, HttpOperationDefinition, HttpRequestDefinition, HttpResponse, HttpResponseDefinition, HttpStatusCode, HttpStatusCodeNameMap, RequestValidationError, ResponseValidationError, UnknownResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../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":{"bytes":569,"imports":[],"format":"esm"},"src/HttpRequest.ts":{"bytes":542,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpStatusCode.ts":{"bytes":4615,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpResponse.ts":{"bytes":627,"imports":[{"path":"src/HttpStatusCode.ts","kind":"import-statement","original":"./HttpStatusCode"},{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpHeader.ts":{"bytes":672,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpBody.ts":{"bytes":117,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpParam.ts":{"bytes":351,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpQuery.ts":{"bytes":664,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpMethod.ts":{"bytes":154,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpOperationDefinition.ts":{"bytes":4464,"imports":[{"path":"src/HttpMethod.ts","kind":"import-statement","original":"./HttpMethod"},{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpRequestDefinition.ts":{"bytes":1303,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/HttpResponseDefinition.ts":{"bytes":5151,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/RequestValidationError.ts":{"bytes":3064,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/RequestValidator.ts":{"bytes":836,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/ResponseValidationError.ts":{"bytes":3522,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/ResponseValidator.ts":{"bytes":891,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/UnknownResponse.ts":{"bytes":621,"imports":[{"path":"src/HttpResponse.ts","kind":"import-statement","original":"./HttpResponse"},{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":607,"imports":[{"path":"src/HttpRequest.ts","kind":"import-statement","original":"./HttpRequest"},{"path":"src/HttpResponse.ts","kind":"import-statement","original":"./HttpResponse"},{"path":"src/HttpHeader.ts","kind":"import-statement","original":"./HttpHeader"},{"path":"src/HttpBody.ts","kind":"import-statement","original":"./HttpBody"},{"path":"src/HttpParam.ts","kind":"import-statement","original":"./HttpParam"},{"path":"src/HttpQuery.ts","kind":"import-statement","original":"./HttpQuery"},{"path":"src/HttpMethod.ts","kind":"import-statement","original":"./HttpMethod"},{"path":"src/HttpOperationDefinition.ts","kind":"import-statement","original":"./HttpOperationDefinition"},{"path":"src/HttpRequestDefinition.ts","kind":"import-statement","original":"./HttpRequestDefinition"},{"path":"src/HttpResponseDefinition.ts","kind":"import-statement","original":"./HttpResponseDefinition"},{"path":"src/HttpStatusCode.ts","kind":"import-statement","original":"./HttpStatusCode"},{"path":"src/RequestValidationError.ts","kind":"import-statement","original":"./RequestValidationError"},{"path":"src/RequestValidator.ts","kind":"import-statement","original":"./RequestValidator"},{"path":"src/ResponseValidationError.ts","kind":"import-statement","original":"./ResponseValidationError"},{"path":"src/ResponseValidator.ts","kind":"import-statement","original":"./ResponseValidator"},{"path":"src/UnknownResponse.ts","kind":"import-statement","original":"./UnknownResponse"},{"path":"/home/runner/work/typeweaver/typeweaver/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","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.cjs":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["HttpMethod","HttpOperationDefinition","HttpRequestDefinition","HttpResponse","HttpResponseDefinition","HttpStatusCode","HttpStatusCodeNameMap","RequestValidationError","ResponseValidationError","UnknownResponse"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/HttpStatusCode.ts":{"bytesInOutput":7374},"src/HttpResponse.ts":{"bytesInOutput":158},"src/HttpMethod.ts":{"bytesInOutput":329},"src/HttpOperationDefinition.ts":{"bytesInOutput":379},"src/HttpRequestDefinition.ts":{"bytesInOutput":247},"src/HttpResponseDefinition.ts":{"bytesInOutput":2173},"src/RequestValidationError.ts":{"bytesInOutput":1839},"src/ResponseValidationError.ts":{"bytesInOutput":2402},"src/UnknownResponse.ts":{"bytesInOutput":198}},"bytes":15602}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../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/esm_shims.js":{"bytes":322,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true}],"format":"esm"},"src/HttpRequest.ts":{"bytes":542,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpStatusCode.ts":{"bytes":4615,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpResponse.ts":{"bytes":627,"imports":[{"path":"src/HttpStatusCode.ts","kind":"import-statement","original":"./HttpStatusCode"},{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpHeader.ts":{"bytes":672,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpBody.ts":{"bytes":117,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpParam.ts":{"bytes":351,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpQuery.ts":{"bytes":664,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpMethod.ts":{"bytes":154,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpOperationDefinition.ts":{"bytes":4464,"imports":[{"path":"src/HttpMethod.ts","kind":"import-statement","original":"./HttpMethod"},{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpRequestDefinition.ts":{"bytes":1303,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/HttpResponseDefinition.ts":{"bytes":5151,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/RequestValidationError.ts":{"bytes":3064,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/RequestValidator.ts":{"bytes":836,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/ResponseValidationError.ts":{"bytes":3522,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/ResponseValidator.ts":{"bytes":891,"imports":[{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/UnknownResponse.ts":{"bytes":621,"imports":[{"path":"src/HttpResponse.ts","kind":"import-statement","original":"./HttpResponse"},{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":607,"imports":[{"path":"src/HttpRequest.ts","kind":"import-statement","original":"./HttpRequest"},{"path":"src/HttpResponse.ts","kind":"import-statement","original":"./HttpResponse"},{"path":"src/HttpHeader.ts","kind":"import-statement","original":"./HttpHeader"},{"path":"src/HttpBody.ts","kind":"import-statement","original":"./HttpBody"},{"path":"src/HttpParam.ts","kind":"import-statement","original":"./HttpParam"},{"path":"src/HttpQuery.ts","kind":"import-statement","original":"./HttpQuery"},{"path":"src/HttpMethod.ts","kind":"import-statement","original":"./HttpMethod"},{"path":"src/HttpOperationDefinition.ts","kind":"import-statement","original":"./HttpOperationDefinition"},{"path":"src/HttpRequestDefinition.ts","kind":"import-statement","original":"./HttpRequestDefinition"},{"path":"src/HttpResponseDefinition.ts","kind":"import-statement","original":"./HttpResponseDefinition"},{"path":"src/HttpStatusCode.ts","kind":"import-statement","original":"./HttpStatusCode"},{"path":"src/RequestValidationError.ts","kind":"import-statement","original":"./RequestValidationError"},{"path":"src/RequestValidator.ts","kind":"import-statement","original":"./RequestValidator"},{"path":"src/ResponseValidationError.ts","kind":"import-statement","original":"./ResponseValidationError"},{"path":"src/ResponseValidator.ts","kind":"import-statement","original":"./ResponseValidator"},{"path":"src/UnknownResponse.ts","kind":"import-statement","original":"./UnknownResponse"},{"path":"/home/runner/work/typeweaver/typeweaver/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/esm_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["HttpMethod","HttpOperationDefinition","HttpRequestDefinition","HttpResponse","HttpResponseDefinition","HttpStatusCode","HttpStatusCodeNameMap","RequestValidationError","ResponseValidationError","UnknownResponse"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/HttpStatusCode.ts":{"bytesInOutput":7374},"src/HttpResponse.ts":{"bytesInOutput":158},"src/HttpMethod.ts":{"bytesInOutput":329},"src/HttpOperationDefinition.ts":{"bytesInOutput":379},"src/HttpRequestDefinition.ts":{"bytesInOutput":247},"src/HttpResponseDefinition.ts":{"bytesInOutput":2173},"src/RequestValidationError.ts":{"bytesInOutput":1839},"src/ResponseValidationError.ts":{"bytesInOutput":2402},"src/UnknownResponse.ts":{"bytesInOutput":198}},"bytes":15602}}}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexeus/typeweaver-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Runtime utilities and shared types to drive type-safe API definitions. Powered by Typeweaver 🧵✨",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
6
7
|
"main": "dist/index.cjs",
|
|
7
8
|
"module": "dist/index.js",
|
|
8
9
|
"types": "dist/index.d.ts",
|
|
@@ -46,10 +47,10 @@
|
|
|
46
47
|
},
|
|
47
48
|
"homepage": "https://github.com/rexeus/typeweaver#readme",
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"zod": "^4.3.
|
|
50
|
+
"zod": "^4.3.0"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"zod": "^4.3.
|
|
53
|
+
"zod": "^4.3.6"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"typecheck": "tsc --noEmit",
|