@typia/interface 12.0.0-dev.20260225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -0
  3. package/lib/http/IHttpConnection.d.ts +163 -0
  4. package/lib/http/IHttpConnection.js +4 -0
  5. package/lib/http/IHttpConnection.js.map +1 -0
  6. package/lib/http/IHttpLlmApplication.d.ts +73 -0
  7. package/lib/http/IHttpLlmApplication.js +3 -0
  8. package/lib/http/IHttpLlmApplication.js.map +1 -0
  9. package/lib/http/IHttpLlmController.d.ts +86 -0
  10. package/lib/http/IHttpLlmController.js +3 -0
  11. package/lib/http/IHttpLlmController.js.map +1 -0
  12. package/lib/http/IHttpLlmFunction.d.ts +79 -0
  13. package/lib/http/IHttpLlmFunction.js +3 -0
  14. package/lib/http/IHttpLlmFunction.js.map +1 -0
  15. package/lib/http/IHttpMigrateApplication.d.ts +42 -0
  16. package/lib/http/IHttpMigrateApplication.js +3 -0
  17. package/lib/http/IHttpMigrateApplication.js.map +1 -0
  18. package/lib/http/IHttpMigrateRoute.d.ts +121 -0
  19. package/lib/http/IHttpMigrateRoute.js +3 -0
  20. package/lib/http/IHttpMigrateRoute.js.map +1 -0
  21. package/lib/http/IHttpResponse.d.ts +40 -0
  22. package/lib/http/IHttpResponse.js +3 -0
  23. package/lib/http/IHttpResponse.js.map +1 -0
  24. package/lib/http/index.d.ts +7 -0
  25. package/lib/http/index.js +24 -0
  26. package/lib/http/index.js.map +1 -0
  27. package/lib/index.d.ts +8 -0
  28. package/lib/index.js +48 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/metadata/IJsDocTagInfo.d.ts +23 -0
  31. package/lib/metadata/IJsDocTagInfo.js +3 -0
  32. package/lib/metadata/IJsDocTagInfo.js.map +1 -0
  33. package/lib/metadata/IMetadataComponents.d.ts +20 -0
  34. package/lib/metadata/IMetadataComponents.js +3 -0
  35. package/lib/metadata/IMetadataComponents.js.map +1 -0
  36. package/lib/metadata/IMetadataSchema.d.ts +219 -0
  37. package/lib/metadata/IMetadataSchema.js +3 -0
  38. package/lib/metadata/IMetadataSchema.js.map +1 -0
  39. package/lib/metadata/IMetadataSchemaCollection.d.ts +18 -0
  40. package/lib/metadata/IMetadataSchemaCollection.js +3 -0
  41. package/lib/metadata/IMetadataSchemaCollection.js.map +1 -0
  42. package/lib/metadata/IMetadataSchemaUnit.d.ts +18 -0
  43. package/lib/metadata/IMetadataSchemaUnit.js +3 -0
  44. package/lib/metadata/IMetadataSchemaUnit.js.map +1 -0
  45. package/lib/metadata/IMetadataTypeTag.d.ts +28 -0
  46. package/lib/metadata/IMetadataTypeTag.js +3 -0
  47. package/lib/metadata/IMetadataTypeTag.js.map +1 -0
  48. package/lib/metadata/index.d.ts +6 -0
  49. package/lib/metadata/index.js +23 -0
  50. package/lib/metadata/index.js.map +1 -0
  51. package/lib/openapi/OpenApi.d.ts +454 -0
  52. package/lib/openapi/OpenApi.js +3 -0
  53. package/lib/openapi/OpenApi.js.map +1 -0
  54. package/lib/openapi/OpenApiV3.d.ts +420 -0
  55. package/lib/openapi/OpenApiV3.js +3 -0
  56. package/lib/openapi/OpenApiV3.js.map +1 -0
  57. package/lib/openapi/OpenApiV3_1.d.ts +463 -0
  58. package/lib/openapi/OpenApiV3_1.js +3 -0
  59. package/lib/openapi/OpenApiV3_1.js.map +1 -0
  60. package/lib/openapi/SwaggerV2.d.ts +343 -0
  61. package/lib/openapi/SwaggerV2.js +3 -0
  62. package/lib/openapi/SwaggerV2.js.map +1 -0
  63. package/lib/openapi/index.d.ts +4 -0
  64. package/lib/openapi/index.js +21 -0
  65. package/lib/openapi/index.js.map +1 -0
  66. package/lib/protobuf/ProtobufWire.d.ts +46 -0
  67. package/lib/protobuf/ProtobufWire.js +3 -0
  68. package/lib/protobuf/ProtobufWire.js.map +1 -0
  69. package/lib/protobuf/index.d.ts +1 -0
  70. package/lib/protobuf/index.js +18 -0
  71. package/lib/protobuf/index.js.map +1 -0
  72. package/lib/schema/IJsonSchemaApplication.d.ts +232 -0
  73. package/lib/schema/IJsonSchemaApplication.js +3 -0
  74. package/lib/schema/IJsonSchemaApplication.js.map +1 -0
  75. package/lib/schema/IJsonSchemaAttribute.d.ts +152 -0
  76. package/lib/schema/IJsonSchemaAttribute.js +3 -0
  77. package/lib/schema/IJsonSchemaAttribute.js.map +1 -0
  78. package/lib/schema/IJsonSchemaCollection.d.ts +109 -0
  79. package/lib/schema/IJsonSchemaCollection.js +3 -0
  80. package/lib/schema/IJsonSchemaCollection.js.map +1 -0
  81. package/lib/schema/IJsonSchemaTransformError.d.ts +81 -0
  82. package/lib/schema/IJsonSchemaTransformError.js +3 -0
  83. package/lib/schema/IJsonSchemaTransformError.js.map +1 -0
  84. package/lib/schema/IJsonSchemaUnit.d.ts +106 -0
  85. package/lib/schema/IJsonSchemaUnit.js +3 -0
  86. package/lib/schema/IJsonSchemaUnit.js.map +1 -0
  87. package/lib/schema/ILlmApplication.d.ts +95 -0
  88. package/lib/schema/ILlmApplication.js +3 -0
  89. package/lib/schema/ILlmApplication.js.map +1 -0
  90. package/lib/schema/ILlmController.d.ts +53 -0
  91. package/lib/schema/ILlmController.js +3 -0
  92. package/lib/schema/ILlmController.js.map +1 -0
  93. package/lib/schema/ILlmFunction.d.ts +134 -0
  94. package/lib/schema/ILlmFunction.js +3 -0
  95. package/lib/schema/ILlmFunction.js.map +1 -0
  96. package/lib/schema/ILlmSchema.d.ts +412 -0
  97. package/lib/schema/ILlmSchema.js +3 -0
  98. package/lib/schema/ILlmSchema.js.map +1 -0
  99. package/lib/schema/IResult.d.ts +81 -0
  100. package/lib/schema/IResult.js +3 -0
  101. package/lib/schema/IResult.js.map +1 -0
  102. package/lib/schema/IValidation.d.ts +123 -0
  103. package/lib/schema/IValidation.js +3 -0
  104. package/lib/schema/IValidation.js.map +1 -0
  105. package/lib/schema/index.d.ts +11 -0
  106. package/lib/schema/index.js +28 -0
  107. package/lib/schema/index.js.map +1 -0
  108. package/lib/tags/Constant.d.ts +44 -0
  109. package/lib/tags/Constant.js +3 -0
  110. package/lib/tags/Constant.js.map +1 -0
  111. package/lib/tags/ContentMediaType.d.ts +39 -0
  112. package/lib/tags/ContentMediaType.js +3 -0
  113. package/lib/tags/ContentMediaType.js.map +1 -0
  114. package/lib/tags/Default.d.ts +42 -0
  115. package/lib/tags/Default.js +3 -0
  116. package/lib/tags/Default.js.map +1 -0
  117. package/lib/tags/Example.d.ts +38 -0
  118. package/lib/tags/Example.js +3 -0
  119. package/lib/tags/Example.js.map +1 -0
  120. package/lib/tags/Examples.d.ts +44 -0
  121. package/lib/tags/Examples.js +3 -0
  122. package/lib/tags/Examples.js.map +1 -0
  123. package/lib/tags/ExclusiveMaximum.d.ts +39 -0
  124. package/lib/tags/ExclusiveMaximum.js +3 -0
  125. package/lib/tags/ExclusiveMaximum.js.map +1 -0
  126. package/lib/tags/ExclusiveMinimum.d.ts +39 -0
  127. package/lib/tags/ExclusiveMinimum.js +3 -0
  128. package/lib/tags/ExclusiveMinimum.js.map +1 -0
  129. package/lib/tags/Format.d.ts +43 -0
  130. package/lib/tags/Format.js +3 -0
  131. package/lib/tags/Format.js.map +1 -0
  132. package/lib/tags/JsonSchemaPlugin.d.ts +44 -0
  133. package/lib/tags/JsonSchemaPlugin.js +3 -0
  134. package/lib/tags/JsonSchemaPlugin.js.map +1 -0
  135. package/lib/tags/MaxItems.d.ts +38 -0
  136. package/lib/tags/MaxItems.js +3 -0
  137. package/lib/tags/MaxItems.js.map +1 -0
  138. package/lib/tags/MaxLength.d.ts +36 -0
  139. package/lib/tags/MaxLength.js +3 -0
  140. package/lib/tags/MaxLength.js.map +1 -0
  141. package/lib/tags/Maximum.d.ts +41 -0
  142. package/lib/tags/Maximum.js +3 -0
  143. package/lib/tags/Maximum.js.map +1 -0
  144. package/lib/tags/MinItems.d.ts +38 -0
  145. package/lib/tags/MinItems.js +3 -0
  146. package/lib/tags/MinItems.js.map +1 -0
  147. package/lib/tags/MinLength.d.ts +36 -0
  148. package/lib/tags/MinLength.js +3 -0
  149. package/lib/tags/MinLength.js.map +1 -0
  150. package/lib/tags/Minimum.d.ts +41 -0
  151. package/lib/tags/Minimum.js +3 -0
  152. package/lib/tags/Minimum.js.map +1 -0
  153. package/lib/tags/MultipleOf.d.ts +49 -0
  154. package/lib/tags/MultipleOf.js +3 -0
  155. package/lib/tags/MultipleOf.js.map +1 -0
  156. package/lib/tags/Pattern.d.ts +51 -0
  157. package/lib/tags/Pattern.js +3 -0
  158. package/lib/tags/Pattern.js.map +1 -0
  159. package/lib/tags/Sequence.d.ts +42 -0
  160. package/lib/tags/Sequence.js +3 -0
  161. package/lib/tags/Sequence.js.map +1 -0
  162. package/lib/tags/TagBase.d.ts +109 -0
  163. package/lib/tags/TagBase.js +3 -0
  164. package/lib/tags/TagBase.js.map +1 -0
  165. package/lib/tags/Type.d.ts +53 -0
  166. package/lib/tags/Type.js +3 -0
  167. package/lib/tags/Type.js.map +1 -0
  168. package/lib/tags/UniqueItems.d.ts +41 -0
  169. package/lib/tags/UniqueItems.js +3 -0
  170. package/lib/tags/UniqueItems.js.map +1 -0
  171. package/lib/tags/index.d.ts +21 -0
  172. package/lib/tags/index.js +38 -0
  173. package/lib/tags/index.js.map +1 -0
  174. package/lib/typings/AssertionGuard.d.ts +12 -0
  175. package/lib/typings/AssertionGuard.js +3 -0
  176. package/lib/typings/AssertionGuard.js.map +1 -0
  177. package/lib/typings/Atomic.d.ts +19 -0
  178. package/lib/typings/Atomic.js +3 -0
  179. package/lib/typings/Atomic.js.map +1 -0
  180. package/lib/typings/CamelCase.d.ts +26 -0
  181. package/lib/typings/CamelCase.js +3 -0
  182. package/lib/typings/CamelCase.js.map +1 -0
  183. package/lib/typings/ClassProperties.d.ts +14 -0
  184. package/lib/typings/ClassProperties.js +3 -0
  185. package/lib/typings/ClassProperties.js.map +1 -0
  186. package/lib/typings/OmitNever.d.ts +11 -0
  187. package/lib/typings/OmitNever.js +3 -0
  188. package/lib/typings/OmitNever.js.map +1 -0
  189. package/lib/typings/PascalCase.d.ts +25 -0
  190. package/lib/typings/PascalCase.js +3 -0
  191. package/lib/typings/PascalCase.js.map +1 -0
  192. package/lib/typings/Primitive.d.ts +29 -0
  193. package/lib/typings/Primitive.js +3 -0
  194. package/lib/typings/Primitive.js.map +1 -0
  195. package/lib/typings/ProtobufAtomic.d.ts +15 -0
  196. package/lib/typings/ProtobufAtomic.js +3 -0
  197. package/lib/typings/ProtobufAtomic.js.map +1 -0
  198. package/lib/typings/Resolved.d.ts +23 -0
  199. package/lib/typings/Resolved.js +3 -0
  200. package/lib/typings/Resolved.js.map +1 -0
  201. package/lib/typings/SnakeCase.d.ts +31 -0
  202. package/lib/typings/SnakeCase.js +3 -0
  203. package/lib/typings/SnakeCase.js.map +1 -0
  204. package/lib/typings/SpecialFields.d.ts +13 -0
  205. package/lib/typings/SpecialFields.js +3 -0
  206. package/lib/typings/SpecialFields.js.map +1 -0
  207. package/lib/typings/ValidationPipe.d.ts +18 -0
  208. package/lib/typings/ValidationPipe.js +3 -0
  209. package/lib/typings/ValidationPipe.js.map +1 -0
  210. package/lib/typings/index.d.ts +12 -0
  211. package/lib/typings/index.js +29 -0
  212. package/lib/typings/index.js.map +1 -0
  213. package/lib/typings/internal/Equal.d.ts +11 -0
  214. package/lib/typings/internal/Equal.js +3 -0
  215. package/lib/typings/internal/Equal.js.map +1 -0
  216. package/lib/typings/internal/IsTuple.d.ts +13 -0
  217. package/lib/typings/internal/IsTuple.js +3 -0
  218. package/lib/typings/internal/IsTuple.js.map +1 -0
  219. package/lib/typings/internal/NativeClass.d.ts +9 -0
  220. package/lib/typings/internal/NativeClass.js +3 -0
  221. package/lib/typings/internal/NativeClass.js.map +1 -0
  222. package/lib/typings/internal/ValueOf.d.ts +15 -0
  223. package/lib/typings/internal/ValueOf.js +3 -0
  224. package/lib/typings/internal/ValueOf.js.map +1 -0
  225. package/lib/utils/IRandomGenerator.d.ts +68 -0
  226. package/lib/utils/IRandomGenerator.js +3 -0
  227. package/lib/utils/IRandomGenerator.js.map +1 -0
  228. package/lib/utils/IReadableURLSearchParams.d.ts +22 -0
  229. package/lib/utils/IReadableURLSearchParams.js +3 -0
  230. package/lib/utils/IReadableURLSearchParams.js.map +1 -0
  231. package/lib/utils/index.d.ts +2 -0
  232. package/lib/utils/index.js +19 -0
  233. package/lib/utils/index.js.map +1 -0
  234. package/package.json +79 -0
  235. package/src/http/IHttpConnection.ts +200 -0
  236. package/src/http/IHttpLlmApplication.ts +83 -0
  237. package/src/http/IHttpLlmController.ts +96 -0
  238. package/src/http/IHttpLlmFunction.ts +93 -0
  239. package/src/http/IHttpMigrateApplication.ts +48 -0
  240. package/src/http/IHttpMigrateRoute.ts +165 -0
  241. package/src/http/IHttpResponse.ts +42 -0
  242. package/src/http/index.ts +7 -0
  243. package/src/index.ts +9 -0
  244. package/src/metadata/IJsDocTagInfo.ts +25 -0
  245. package/src/metadata/IMetadataComponents.ts +24 -0
  246. package/src/metadata/IMetadataSchema.ts +293 -0
  247. package/src/metadata/IMetadataSchemaCollection.ts +20 -0
  248. package/src/metadata/IMetadataSchemaUnit.ts +20 -0
  249. package/src/metadata/IMetadataTypeTag.ts +39 -0
  250. package/src/metadata/index.ts +6 -0
  251. package/src/openapi/OpenApi.ts +643 -0
  252. package/src/openapi/OpenApiV3.ts +655 -0
  253. package/src/openapi/OpenApiV3_1.ts +735 -0
  254. package/src/openapi/SwaggerV2.ts +559 -0
  255. package/src/openapi/index.ts +4 -0
  256. package/src/protobuf/ProtobufWire.ts +51 -0
  257. package/src/protobuf/index.ts +1 -0
  258. package/src/schema/IJsonSchemaApplication.ts +274 -0
  259. package/src/schema/IJsonSchemaAttribute.ts +158 -0
  260. package/src/schema/IJsonSchemaCollection.ts +123 -0
  261. package/src/schema/IJsonSchemaTransformError.ts +86 -0
  262. package/src/schema/IJsonSchemaUnit.ts +120 -0
  263. package/src/schema/ILlmApplication.ts +103 -0
  264. package/src/schema/ILlmController.ts +57 -0
  265. package/src/schema/ILlmFunction.ts +144 -0
  266. package/src/schema/ILlmSchema.ts +484 -0
  267. package/src/schema/IResult.ts +84 -0
  268. package/src/schema/IValidation.ts +134 -0
  269. package/src/schema/index.ts +13 -0
  270. package/src/tags/Constant.ts +49 -0
  271. package/src/tags/ContentMediaType.ts +40 -0
  272. package/src/tags/Default.ts +50 -0
  273. package/src/tags/Example.ts +48 -0
  274. package/src/tags/Examples.ts +50 -0
  275. package/src/tags/ExclusiveMaximum.ts +46 -0
  276. package/src/tags/ExclusiveMinimum.ts +46 -0
  277. package/src/tags/Format.ts +76 -0
  278. package/src/tags/JsonSchemaPlugin.ts +45 -0
  279. package/src/tags/MaxItems.ts +39 -0
  280. package/src/tags/MaxLength.ts +37 -0
  281. package/src/tags/Maximum.ts +44 -0
  282. package/src/tags/MinItems.ts +39 -0
  283. package/src/tags/MinLength.ts +37 -0
  284. package/src/tags/Minimum.ts +44 -0
  285. package/src/tags/MultipleOf.ts +54 -0
  286. package/src/tags/Pattern.ts +59 -0
  287. package/src/tags/Sequence.ts +43 -0
  288. package/src/tags/TagBase.ts +131 -0
  289. package/src/tags/Type.ts +70 -0
  290. package/src/tags/UniqueItems.ts +44 -0
  291. package/src/tags/index.ts +21 -0
  292. package/src/typings/AssertionGuard.ts +12 -0
  293. package/src/typings/Atomic.ts +21 -0
  294. package/src/typings/CamelCase.ts +75 -0
  295. package/src/typings/ClassProperties.ts +15 -0
  296. package/src/typings/OmitNever.ts +12 -0
  297. package/src/typings/PascalCase.ts +71 -0
  298. package/src/typings/Primitive.ts +71 -0
  299. package/src/typings/ProtobufAtomic.ts +30 -0
  300. package/src/typings/Resolved.ts +58 -0
  301. package/src/typings/SnakeCase.ts +126 -0
  302. package/src/typings/SpecialFields.ts +13 -0
  303. package/src/typings/ValidationPipe.ts +20 -0
  304. package/src/typings/index.ts +13 -0
  305. package/src/typings/internal/Equal.ts +14 -0
  306. package/src/typings/internal/IsTuple.ts +17 -0
  307. package/src/typings/internal/NativeClass.ts +31 -0
  308. package/src/typings/internal/ValueOf.ts +29 -0
  309. package/src/utils/IRandomGenerator.ts +105 -0
  310. package/src/utils/IReadableURLSearchParams.ts +25 -0
  311. package/src/utils/index.ts +2 -0
@@ -0,0 +1,40 @@
1
+ /**
2
+ * HTTP response structure returned from server communication.
3
+ *
4
+ * `IHttpResponse` represents the complete HTTP response received from a remote
5
+ * server, containing the status code, response headers, and body. This
6
+ * interface is used by `@nestia/fetcher` to return structured response data
7
+ * from API calls.
8
+ *
9
+ * The {@link status} property contains the HTTP status code (e.g., 200, 404),
10
+ * {@link headers} contains all response headers (some may have multiple values),
11
+ * and {@link body} contains the parsed response body (typically JSON-decoded).
12
+ *
13
+ * @author Jeongho Nam - https://github.com/samchon
14
+ */
15
+ export interface IHttpResponse {
16
+ /**
17
+ * HTTP status code of the response.
18
+ *
19
+ * Standard HTTP status codes indicating the result of the request. Common
20
+ * values: 200 (OK), 201 (Created), 400 (Bad Request), 401 (Unauthorized), 404
21
+ * (Not Found), 500 (Internal Server Error).
22
+ */
23
+ status: number;
24
+ /**
25
+ * Response headers from the server.
26
+ *
27
+ * Contains all HTTP headers returned by the server. Header values can be
28
+ * either a single string or an array of strings for headers that appear
29
+ * multiple times (e.g., `Set-Cookie`).
30
+ */
31
+ headers: Record<string, string | string[]>;
32
+ /**
33
+ * Parsed body content of the response.
34
+ *
35
+ * The response body after parsing. For JSON responses, this is the decoded
36
+ * JavaScript object. The actual type depends on the endpoint and response
37
+ * content-type.
38
+ */
39
+ body: unknown;
40
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IHttpResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IHttpResponse.js","sourceRoot":"","sources":["../../src/http/IHttpResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export * from "./IHttpConnection";
2
+ export * from "./IHttpLlmController";
3
+ export * from "./IHttpLlmApplication";
4
+ export * from "./IHttpLlmFunction";
5
+ export * from "./IHttpMigrateApplication";
6
+ export * from "./IHttpMigrateRoute";
7
+ export * from "./IHttpResponse";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IHttpConnection"), exports);
18
+ __exportStar(require("./IHttpLlmController"), exports);
19
+ __exportStar(require("./IHttpLlmApplication"), exports);
20
+ __exportStar(require("./IHttpLlmFunction"), exports);
21
+ __exportStar(require("./IHttpMigrateApplication"), exports);
22
+ __exportStar(require("./IHttpMigrateRoute"), exports);
23
+ __exportStar(require("./IHttpResponse"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,4DAA0C;AAC1C,sDAAoC;AACpC,kDAAgC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export * from "./http/index";
2
+ export * from "./schema/index";
3
+ export * from "./openapi/index";
4
+ export * from "./typings/index";
5
+ export * from "./utils/index";
6
+ export * from "./metadata/index";
7
+ export * from "./protobuf/index";
8
+ export * as tags from "./tags/index";
package/lib/index.js ADDED
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.tags = void 0;
40
+ __exportStar(require("./http/index"), exports);
41
+ __exportStar(require("./schema/index"), exports);
42
+ __exportStar(require("./openapi/index"), exports);
43
+ __exportStar(require("./typings/index"), exports);
44
+ __exportStar(require("./utils/index"), exports);
45
+ __exportStar(require("./metadata/index"), exports);
46
+ __exportStar(require("./protobuf/index"), exports);
47
+ exports.tags = __importStar(require("./tags/index"));
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,mDAAiC;AAEjC,qDAAqC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * JSDoc tag information extracted from TypeScript source.
3
+ *
4
+ * Represents a single JSDoc tag like `@param`, `@returns`, `@deprecated`, etc.
5
+ * Used throughout typia's metadata system to preserve documentation.
6
+ *
7
+ * @author Jeongho Nam - https://github.com/samchon
8
+ */
9
+ export interface IJsDocTagInfo {
10
+ /** Tag name without `@` prefix (e.g., `"param"`, `"returns"`). */
11
+ name: string;
12
+ /** Tag text content, if any. */
13
+ text?: IJsDocTagInfo.IText[];
14
+ }
15
+ export declare namespace IJsDocTagInfo {
16
+ /** Text segment within a JSDoc tag. */
17
+ interface IText {
18
+ /** Text content. */
19
+ text: string;
20
+ /** Text kind (e.g., `"text"`, `"parameterName"`). */
21
+ kind: string;
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IJsDocTagInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IJsDocTagInfo.js","sourceRoot":"","sources":["../../src/metadata/IJsDocTagInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import { IMetadataSchema } from "./IMetadataSchema";
2
+ /**
3
+ * Shared type definitions for metadata schemas.
4
+ *
5
+ * `IMetadataComponents` stores reusable type definitions that can be referenced
6
+ * from {@link IMetadataSchema} via {@link IMetadataSchema.IReference}. This
7
+ * enables deduplication of complex types across multiple schemas.
8
+ *
9
+ * @author Jeongho Nam - https://github.com/samchon
10
+ */
11
+ export interface IMetadataComponents {
12
+ /** Object type definitions. */
13
+ objects: IMetadataSchema.IObjectType[];
14
+ /** Type alias definitions. */
15
+ aliases: IMetadataSchema.IAliasType[];
16
+ /** Array type definitions. */
17
+ arrays: IMetadataSchema.IArrayType[];
18
+ /** Tuple type definitions. */
19
+ tuples: IMetadataSchema.ITupleType[];
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMetadataComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMetadataComponents.js","sourceRoot":"","sources":["../../src/metadata/IMetadataComponents.ts"],"names":[],"mappings":""}
@@ -0,0 +1,219 @@
1
+ import { Atomic } from "../typings/Atomic";
2
+ import { IJsDocTagInfo } from "./IJsDocTagInfo";
3
+ import { IMetadataTypeTag } from "./IMetadataTypeTag";
4
+ /**
5
+ * Metadata schema representing a TypeScript type's structure.
6
+ *
7
+ * `IMetadataSchema` is typia's internal type representation, capturing full
8
+ * TypeScript type information including unions, optionality, nullability, and
9
+ * type constraints. Used by `typia.reflect.schema<T>()` for runtime type
10
+ * introspection.
11
+ *
12
+ * Type categories:
13
+ *
14
+ * - Primitives: {@link atomics} (boolean, bigint, number, string)
15
+ * - Literals: {@link constants} (literal values like `"hello"` or `42`)
16
+ * - Templates: {@link templates} (template literal types)
17
+ * - Collections: {@link arrays}, {@link tuples}, {@link sets}, {@link maps}
18
+ * - Objects: {@link objects} (named object types)
19
+ * - Aliases: {@link aliases} (type aliases)
20
+ * - Natives: {@link natives} (built-in classes like Date, Uint8Array)
21
+ * - Functions: {@link functions} (function types)
22
+ *
23
+ * @author Jeongho Nam - https://github.com/samchon
24
+ */
25
+ export interface IMetadataSchema {
26
+ /** Whether the type is `any`. */
27
+ any: boolean;
28
+ /** Whether the type is required (not `undefined`). */
29
+ required: boolean;
30
+ /** Whether the type is optional (`?` modifier). */
31
+ optional: boolean;
32
+ /** Whether the type is nullable (`null` included). */
33
+ nullable: boolean;
34
+ /** Function types in the union. */
35
+ functions: IMetadataSchema.IFunction[];
36
+ /** Primitive types (boolean, bigint, number, string) in the union. */
37
+ atomics: IMetadataSchema.IAtomic[];
38
+ /** Literal constant values in the union. */
39
+ constants: IMetadataSchema.IConstant[];
40
+ /** Template literal types in the union. */
41
+ templates: IMetadataSchema.ITemplate[];
42
+ /** Escaped type info (original and transformed). */
43
+ escaped: IMetadataSchema.IEscaped | null;
44
+ /** Rest element type for variadic tuples. */
45
+ rest: IMetadataSchema | null;
46
+ /** Array type references in the union. */
47
+ arrays: IMetadataSchema.IReference[];
48
+ /** Tuple type references in the union. */
49
+ tuples: IMetadataSchema.IReference[];
50
+ /** Object type references in the union. */
51
+ objects: IMetadataSchema.IReference[];
52
+ /** Type alias references in the union. */
53
+ aliases: IMetadataSchema.IReference[];
54
+ /** Native class references (Date, Uint8Array, etc.) in the union. */
55
+ natives: IMetadataSchema.IReference[];
56
+ /** Set types in the union. */
57
+ sets: IMetadataSchema.ISet[];
58
+ /** Map types in the union. */
59
+ maps: IMetadataSchema.IMap[];
60
+ }
61
+ export declare namespace IMetadataSchema {
62
+ /** Function type metadata. */
63
+ interface IFunction {
64
+ /** Whether the function is async. */
65
+ async: boolean;
66
+ /** Function parameters. */
67
+ parameters: IParameter[];
68
+ /** Return type schema. */
69
+ output: IMetadataSchema;
70
+ }
71
+ /** Function parameter metadata. */
72
+ interface IParameter {
73
+ /** Parameter name. */
74
+ name: string;
75
+ /** Parameter type schema. */
76
+ type: IMetadataSchema;
77
+ /** JSDoc description. */
78
+ description: string | null;
79
+ /** JSDoc tags. */
80
+ jsDocTags: IJsDocTagInfo[];
81
+ }
82
+ /** Primitive atomic type metadata. */
83
+ interface IAtomic {
84
+ /** Primitive type kind. */
85
+ type: "boolean" | "bigint" | "number" | "string";
86
+ /** Type constraint tags (e.g., `@minimum`, `@format`). */
87
+ tags: IMetadataTypeTag[][];
88
+ }
89
+ /** Literal constant type metadata. */
90
+ type IConstant = IConstant.IBase<"boolean"> | IConstant.IBase<"number"> | IConstant.IBase<"string"> | IConstant.IBase<"bigint">;
91
+ namespace IConstant {
92
+ /** Base interface for constant types. */
93
+ interface IBase<Type extends Atomic.Literal> {
94
+ /** Constant type kind. */
95
+ type: Type;
96
+ /** Literal values in the union. */
97
+ values: IValue<Atomic.Mapper[Type]>[];
98
+ }
99
+ /** Single constant value metadata. */
100
+ interface IValue<T extends Atomic.Type> {
101
+ /** The literal value. */
102
+ value: T;
103
+ /** Type constraint tags. */
104
+ tags: IMetadataTypeTag[][];
105
+ /** JSDoc description. */
106
+ description?: string | null;
107
+ /** JSDoc tags. */
108
+ jsDocTags?: IJsDocTagInfo[];
109
+ }
110
+ }
111
+ /** Template literal type metadata. */
112
+ interface ITemplate {
113
+ /** Template parts as schemas. */
114
+ row: IMetadataSchema[];
115
+ /** Type constraint tags. */
116
+ tags: IMetadataTypeTag[][];
117
+ }
118
+ /** Escaped type metadata (for special transformations). */
119
+ interface IEscaped {
120
+ /** Original type before escaping. */
121
+ original: IMetadataSchema;
122
+ /** Transformed return type. */
123
+ returns: IMetadataSchema;
124
+ }
125
+ /** Type alias definition. */
126
+ interface IAliasType {
127
+ /** Alias name. */
128
+ name: string;
129
+ /** Underlying type schema. */
130
+ value: IMetadataSchema;
131
+ /** Nullability per reference site. */
132
+ nullables: boolean[];
133
+ /** JSDoc description. */
134
+ description: string | null;
135
+ /** JSDoc tags. */
136
+ jsDocTags: IJsDocTagInfo[];
137
+ /** Whether the alias is recursive. */
138
+ recursive: boolean;
139
+ }
140
+ /** Array type definition. */
141
+ interface IArrayType {
142
+ /** Array type name. */
143
+ name: string;
144
+ /** Element type schema. */
145
+ value: IMetadataSchema;
146
+ /** Nullability per reference site. */
147
+ nullables: boolean[];
148
+ /** Whether the array type is recursive. */
149
+ recursive: boolean;
150
+ /** Index in components (for deduplication). */
151
+ index: number | null;
152
+ }
153
+ /** Tuple type definition. */
154
+ interface ITupleType {
155
+ /** Tuple type name. */
156
+ name: string;
157
+ /** Element schemas in order. */
158
+ elements: IMetadataSchema[];
159
+ /** Index in components (for deduplication). */
160
+ index: number | null;
161
+ /** Whether the tuple type is recursive. */
162
+ recursive: boolean;
163
+ /** Nullability per reference site. */
164
+ nullables: boolean[];
165
+ }
166
+ /** Object type definition. */
167
+ interface IObjectType {
168
+ /** Object type name. */
169
+ name: string;
170
+ /** Object properties. */
171
+ properties: IProperty[];
172
+ /** JSDoc description. */
173
+ description?: undefined | string;
174
+ /** JSDoc tags. */
175
+ jsDocTags: IJsDocTagInfo[];
176
+ /** Index in components (for deduplication). */
177
+ index: number;
178
+ /** Whether the object type is recursive. */
179
+ recursive: boolean;
180
+ /** Nullability per reference site. */
181
+ nullables: boolean[];
182
+ }
183
+ /** Object property metadata. */
184
+ interface IProperty {
185
+ /** Property key schema (string or symbol). */
186
+ key: IMetadataSchema;
187
+ /** Property value schema. */
188
+ value: IMetadataSchema;
189
+ /** JSDoc description. */
190
+ description: string | null;
191
+ /** JSDoc tags. */
192
+ jsDocTags: IJsDocTagInfo[];
193
+ /** Property mutability (`readonly` or mutable). */
194
+ mutability?: "readonly" | null | undefined;
195
+ }
196
+ /** Map type metadata. */
197
+ interface IMap {
198
+ /** Key type schema. */
199
+ key: IMetadataSchema;
200
+ /** Value type schema. */
201
+ value: IMetadataSchema;
202
+ /** Type constraint tags. */
203
+ tags: IMetadataTypeTag[][];
204
+ }
205
+ /** Set type metadata. */
206
+ interface ISet {
207
+ /** Element type schema. */
208
+ value: IMetadataSchema;
209
+ /** Type constraint tags. */
210
+ tags: IMetadataTypeTag[][];
211
+ }
212
+ /** Reference to a named type in components. */
213
+ interface IReference {
214
+ /** Referenced type name. */
215
+ name: string;
216
+ /** Type constraint tags. */
217
+ tags: IMetadataTypeTag[][];
218
+ }
219
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMetadataSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMetadataSchema.js","sourceRoot":"","sources":["../../src/metadata/IMetadataSchema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { IMetadataComponents } from "./IMetadataComponents";
2
+ import { IMetadataSchema } from "./IMetadataSchema";
3
+ /**
4
+ * Collection of metadata schemas for multiple types.
5
+ *
6
+ * `IMetadataSchemaCollection` contains metadata schemas generated from multiple
7
+ * TypeScript types via `typia.reflect.schemas<[T1, T2, ...]>()`. Each schema in
8
+ * {@link schemas} corresponds to one input type, while shared type definitions
9
+ * (objects, aliases, arrays, tuples) are stored in {@link components}.
10
+ *
11
+ * @author Jeongho Nam - https://github.com/samchon
12
+ */
13
+ export interface IMetadataSchemaCollection {
14
+ /** Array of metadata schemas, one per input type. */
15
+ schemas: IMetadataSchema[];
16
+ /** Shared type definitions referenced by schemas. */
17
+ components: IMetadataComponents;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMetadataSchemaCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMetadataSchemaCollection.js","sourceRoot":"","sources":["../../src/metadata/IMetadataSchemaCollection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { IMetadataComponents } from "./IMetadataComponents";
2
+ import { IMetadataSchema } from "./IMetadataSchema";
3
+ /**
4
+ * Single unit of metadata schema for one type.
5
+ *
6
+ * `IMetadataSchemaUnit` contains a metadata schema generated from a single
7
+ * TypeScript type via `typia.reflect.schema<T>()`. The main schema is in
8
+ * {@link schema}, while shared type definitions (objects, aliases, arrays,
9
+ * tuples) are stored in {@link components}.
10
+ *
11
+ * @author Jeongho Nam - https://github.com/samchon
12
+ */
13
+ export interface IMetadataSchemaUnit {
14
+ /** Metadata schema for the target type. */
15
+ schema: IMetadataSchema;
16
+ /** Shared type definitions referenced by the schema. */
17
+ components: IMetadataComponents;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMetadataSchemaUnit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMetadataSchemaUnit.js","sourceRoot":"","sources":["../../src/metadata/IMetadataSchemaUnit.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Type constraint tag metadata.
3
+ *
4
+ * Represents constraint tags like `@minimum`, `@format`, `@pattern` that are
5
+ * applied to types via typia's tag system. Used for validation and JSON schema
6
+ * generation.
7
+ *
8
+ * @author Jeongho Nam - https://github.com/samchon
9
+ */
10
+ export interface IMetadataTypeTag {
11
+ /** Target type this tag applies to. */
12
+ target: "boolean" | "bigint" | "number" | "string" | "array" | "object";
13
+ /** Full tag name (e.g., `"@typia/tag/Minimum"`). */
14
+ name: string;
15
+ /** Tag kind identifier (e.g., `"minimum"`, `"format"`). */
16
+ kind: string;
17
+ /**
18
+ * Exclusivity: `true` for unique tags, or array of mutually exclusive tag
19
+ * kinds.
20
+ */
21
+ exclusive: boolean | string[];
22
+ /** Tag value (e.g., `0` for `Minimum<0>`, `"email"` for `Format<"email">`). */
23
+ value?: any;
24
+ /** Validation expression template. */
25
+ validate?: string | undefined;
26
+ /** JSON schema fragment to merge. */
27
+ schema?: object | undefined;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IMetadataTypeTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMetadataTypeTag.js","sourceRoot":"","sources":["../../src/metadata/IMetadataTypeTag.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from "./IJsDocTagInfo";
2
+ export * from "./IMetadataComponents";
3
+ export * from "./IMetadataSchema";
4
+ export * from "./IMetadataSchemaCollection";
5
+ export * from "./IMetadataSchemaUnit";
6
+ export * from "./IMetadataTypeTag";
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IJsDocTagInfo"), exports);
18
+ __exportStar(require("./IMetadataComponents"), exports);
19
+ __exportStar(require("./IMetadataSchema"), exports);
20
+ __exportStar(require("./IMetadataSchemaCollection"), exports);
21
+ __exportStar(require("./IMetadataSchemaUnit"), exports);
22
+ __exportStar(require("./IMetadataTypeTag"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/metadata/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC;AAClC,8DAA4C;AAC5C,wDAAsC;AACtC,qDAAmC"}