adorn-api 1.0.23 → 1.0.24

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 (382) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.cjs +30 -0
  3. package/README.md +375 -531
  4. package/dist/core/express-adapter.d.ts +27 -0
  5. package/dist/core/express-adapter.d.ts.map +1 -0
  6. package/dist/core/express-adapter.js +146 -0
  7. package/dist/core/express-adapter.js.map +1 -0
  8. package/dist/core/http-error.d.ts +7 -0
  9. package/dist/core/http-error.d.ts.map +1 -0
  10. package/dist/core/http-error.js +14 -0
  11. package/dist/core/http-error.js.map +1 -0
  12. package/dist/decorators/controller.decorator.d.ts +2 -0
  13. package/dist/decorators/controller.decorator.d.ts.map +1 -0
  14. package/dist/decorators/controller.decorator.js +26 -0
  15. package/dist/decorators/controller.decorator.js.map +1 -0
  16. package/dist/decorators/create.decorator.d.ts +8 -0
  17. package/dist/decorators/create.decorator.d.ts.map +1 -0
  18. package/dist/decorators/create.decorator.js +67 -0
  19. package/dist/decorators/create.decorator.js.map +1 -0
  20. package/dist/decorators/http-method.decorator.d.ts +16 -0
  21. package/dist/decorators/http-method.decorator.d.ts.map +1 -0
  22. package/dist/decorators/http-method.decorator.js +117 -0
  23. package/dist/decorators/http-method.decorator.js.map +1 -0
  24. package/dist/decorators/http-params.d.ts +17 -0
  25. package/dist/decorators/http-params.d.ts.map +1 -0
  26. package/dist/decorators/http-params.js +26 -0
  27. package/dist/decorators/http-params.js.map +1 -0
  28. package/dist/decorators/index.d.ts +10 -5
  29. package/dist/decorators/index.d.ts.map +1 -1
  30. package/dist/decorators/index.js +14 -0
  31. package/dist/decorators/index.js.map +1 -0
  32. package/dist/decorators/list.decorator.d.ts +18 -0
  33. package/dist/decorators/list.decorator.d.ts.map +1 -0
  34. package/dist/decorators/list.decorator.js +99 -0
  35. package/dist/decorators/list.decorator.js.map +1 -0
  36. package/dist/decorators/middleware.decorator.d.ts +4 -0
  37. package/dist/decorators/middleware.decorator.d.ts.map +1 -0
  38. package/dist/decorators/middleware.decorator.js +34 -0
  39. package/dist/decorators/middleware.decorator.js.map +1 -0
  40. package/dist/decorators/response.decorator.d.ts +8 -0
  41. package/dist/decorators/response.decorator.d.ts.map +1 -0
  42. package/dist/decorators/response.decorator.js +44 -0
  43. package/dist/decorators/response.decorator.js.map +1 -0
  44. package/dist/decorators/route-options.d.ts +14 -0
  45. package/dist/decorators/route-options.d.ts.map +1 -0
  46. package/dist/decorators/route-options.js +22 -0
  47. package/dist/decorators/route-options.js.map +1 -0
  48. package/dist/decorators/schema.decorator.d.ts +82 -0
  49. package/dist/decorators/schema.decorator.d.ts.map +1 -0
  50. package/dist/decorators/schema.decorator.js +123 -0
  51. package/dist/decorators/schema.decorator.js.map +1 -0
  52. package/dist/decorators/update.decorator.d.ts +8 -0
  53. package/dist/decorators/update.decorator.d.ts.map +1 -0
  54. package/dist/decorators/update.decorator.js +63 -0
  55. package/dist/decorators/update.decorator.js.map +1 -0
  56. package/dist/index.d.ts +11 -13
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +18 -637
  59. package/dist/index.js.map +1 -1
  60. package/dist/metadata/metadata-storage.d.ts +38 -0
  61. package/dist/metadata/metadata-storage.d.ts.map +1 -0
  62. package/dist/metadata/metadata-storage.js +102 -0
  63. package/dist/metadata/metadata-storage.js.map +1 -0
  64. package/dist/metal-orm-integration/dto-helper.d.ts +5 -0
  65. package/dist/metal-orm-integration/dto-helper.d.ts.map +1 -0
  66. package/dist/metal-orm-integration/dto-helper.js +48 -0
  67. package/dist/metal-orm-integration/dto-helper.js.map +1 -0
  68. package/dist/metal-orm-integration/dto-response.decorator.d.ts +4 -0
  69. package/dist/metal-orm-integration/dto-response.decorator.d.ts.map +1 -0
  70. package/dist/metal-orm-integration/dto-response.decorator.js +69 -0
  71. package/dist/metal-orm-integration/dto-response.decorator.js.map +1 -0
  72. package/dist/metal-orm-integration/entity-schema-builder.d.ts +20 -0
  73. package/dist/metal-orm-integration/entity-schema-builder.d.ts.map +1 -0
  74. package/dist/metal-orm-integration/entity-schema-builder.js +356 -0
  75. package/dist/metal-orm-integration/entity-schema-builder.js.map +1 -0
  76. package/dist/metal-orm-integration/index.d.ts +5 -0
  77. package/dist/metal-orm-integration/index.d.ts.map +1 -0
  78. package/dist/metal-orm-integration/index.js +5 -0
  79. package/dist/metal-orm-integration/index.js.map +1 -0
  80. package/dist/metal-orm-integration/schema-modifier.d.ts +11 -0
  81. package/dist/metal-orm-integration/schema-modifier.d.ts.map +1 -0
  82. package/dist/metal-orm-integration/schema-modifier.js +62 -0
  83. package/dist/metal-orm-integration/schema-modifier.js.map +1 -0
  84. package/dist/openapi/index.d.ts +4 -0
  85. package/dist/openapi/index.d.ts.map +1 -0
  86. package/dist/openapi/index.js +4 -0
  87. package/dist/openapi/index.js.map +1 -0
  88. package/dist/openapi/openapi-generator.d.ts +22 -0
  89. package/dist/openapi/openapi-generator.d.ts.map +1 -0
  90. package/dist/openapi/openapi-generator.js +428 -0
  91. package/dist/openapi/openapi-generator.js.map +1 -0
  92. package/dist/openapi/swagger-ui.d.ts +11 -0
  93. package/dist/openapi/swagger-ui.d.ts.map +1 -0
  94. package/dist/openapi/swagger-ui.js +20 -0
  95. package/dist/openapi/swagger-ui.js.map +1 -0
  96. package/dist/openapi/zod-to-openapi.d.ts +4 -0
  97. package/dist/openapi/zod-to-openapi.d.ts.map +1 -0
  98. package/dist/openapi/zod-to-openapi.js +184 -0
  99. package/dist/openapi/zod-to-openapi.js.map +1 -0
  100. package/dist/types/common.d.ts +4 -0
  101. package/dist/types/common.d.ts.map +1 -0
  102. package/dist/types/common.js +2 -0
  103. package/dist/types/common.js.map +1 -0
  104. package/dist/types/controller.d.ts +14 -0
  105. package/dist/types/controller.d.ts.map +1 -0
  106. package/dist/types/controller.js +2 -0
  107. package/dist/types/controller.js.map +1 -0
  108. package/dist/types/metadata.d.ts +48 -0
  109. package/dist/types/metadata.d.ts.map +1 -0
  110. package/dist/types/metadata.js +2 -0
  111. package/dist/types/metadata.js.map +1 -0
  112. package/dist/types/openapi.d.ts +30 -0
  113. package/dist/types/openapi.d.ts.map +1 -0
  114. package/dist/types/openapi.js +2 -0
  115. package/dist/types/openapi.js.map +1 -0
  116. package/dist/validation/zod-adapter.d.ts +15 -0
  117. package/dist/validation/zod-adapter.d.ts.map +1 -0
  118. package/dist/validation/zod-adapter.js +61 -0
  119. package/dist/validation/zod-adapter.js.map +1 -0
  120. package/examples/basic/app.ts +15 -0
  121. package/examples/basic/index.ts +6 -0
  122. package/examples/basic/user.controller.ts +35 -0
  123. package/examples/basic/user.dtos.ts +23 -0
  124. package/examples/metal-orm-sqlite/app.ts +18 -0
  125. package/examples/metal-orm-sqlite/db.ts +90 -0
  126. package/examples/metal-orm-sqlite/index.ts +6 -0
  127. package/examples/metal-orm-sqlite/post.controller.ts +209 -0
  128. package/examples/metal-orm-sqlite/post.dtos.ts +78 -0
  129. package/examples/metal-orm-sqlite/post.entity.ts +24 -0
  130. package/examples/metal-orm-sqlite/user.controller.helpers.ts +305 -0
  131. package/examples/metal-orm-sqlite/user.controller.ts +231 -0
  132. package/examples/metal-orm-sqlite/user.dtos.ts +88 -0
  133. package/examples/metal-orm-sqlite/user.entity.ts +21 -0
  134. package/examples/metal-orm-sqlite-music/album.controller.ts +278 -0
  135. package/examples/metal-orm-sqlite-music/album.dtos.ts +85 -0
  136. package/examples/metal-orm-sqlite-music/album.entity.ts +28 -0
  137. package/examples/metal-orm-sqlite-music/app.ts +19 -0
  138. package/examples/metal-orm-sqlite-music/artist.controller.ts +272 -0
  139. package/examples/metal-orm-sqlite-music/artist.dtos.ts +68 -0
  140. package/examples/metal-orm-sqlite-music/artist.entity.ts +27 -0
  141. package/examples/metal-orm-sqlite-music/db.ts +148 -0
  142. package/examples/metal-orm-sqlite-music/index.ts +6 -0
  143. package/examples/metal-orm-sqlite-music/track.controller.ts +221 -0
  144. package/examples/metal-orm-sqlite-music/track.dtos.ts +82 -0
  145. package/examples/metal-orm-sqlite-music/track.entity.ts +27 -0
  146. package/examples/openapi/health.controller.ts +11 -0
  147. package/examples/openapi/health.dto.ts +7 -0
  148. package/examples/openapi/index.ts +12 -0
  149. package/examples/restful/app.ts +15 -0
  150. package/examples/restful/index.ts +9 -0
  151. package/examples/restful/task.controller.ts +118 -0
  152. package/examples/restful/task.dtos.ts +66 -0
  153. package/examples/restful/task.store.ts +95 -0
  154. package/examples/tsconfig.json +8 -0
  155. package/examples/utils/start-server.ts +56 -0
  156. package/package.json +33 -97
  157. package/scripts/run-example.js +29 -0
  158. package/src/adapter/express.ts +589 -0
  159. package/src/adapter/metal-orm/convention-overrides.ts +115 -0
  160. package/src/adapter/metal-orm/crud-dtos.ts +141 -0
  161. package/src/adapter/metal-orm/dto.ts +20 -0
  162. package/src/adapter/metal-orm/error-dtos.ts +51 -0
  163. package/src/adapter/metal-orm/field-builder.ts +185 -0
  164. package/src/adapter/metal-orm/filters.ts +52 -0
  165. package/src/adapter/metal-orm/index.ts +66 -0
  166. package/src/adapter/metal-orm/paged-dtos.ts +94 -0
  167. package/src/adapter/metal-orm/pagination.ts +28 -0
  168. package/src/adapter/metal-orm/types.ts +250 -0
  169. package/src/adapter/metal-orm/utils.ts +36 -0
  170. package/src/adapter/metal-orm.test.ts +439 -0
  171. package/src/core/__tests__/coerce.test.ts +39 -0
  172. package/src/core/__tests__/dto-compose.test.ts +68 -0
  173. package/src/core/__tests__/schema-builder.test.ts +82 -0
  174. package/src/core/coerce.ts +190 -0
  175. package/src/core/decorators.ts +645 -0
  176. package/src/core/errors.ts +55 -0
  177. package/src/core/metadata.ts +110 -0
  178. package/src/core/openapi.ts +282 -0
  179. package/src/core/schema-builder.ts +287 -0
  180. package/src/core/schema.ts +400 -0
  181. package/src/core/types.ts +14 -0
  182. package/src/e2e/http-error.e2e.test.ts +52 -0
  183. package/src/e2e/sqlite-metal-orm.e2e.test.ts +174 -0
  184. package/src/e2e/sqlite.e2e.test.ts +126 -0
  185. package/src/index.ts +8 -0
  186. package/tsconfig.eslint.json +7 -0
  187. package/tsconfig.json +18 -0
  188. package/vitest.config.ts +8 -0
  189. package/dist/adapter/express/auth.d.ts +0 -13
  190. package/dist/adapter/express/auth.d.ts.map +0 -1
  191. package/dist/adapter/express/bootstrap.d.ts +0 -40
  192. package/dist/adapter/express/bootstrap.d.ts.map +0 -1
  193. package/dist/adapter/express/coercion.d.ts +0 -102
  194. package/dist/adapter/express/coercion.d.ts.map +0 -1
  195. package/dist/adapter/express/index.d.ts +0 -6
  196. package/dist/adapter/express/index.d.ts.map +0 -1
  197. package/dist/adapter/express/merge.d.ts +0 -45
  198. package/dist/adapter/express/merge.d.ts.map +0 -1
  199. package/dist/adapter/express/openapi.d.ts +0 -66
  200. package/dist/adapter/express/openapi.d.ts.map +0 -1
  201. package/dist/adapter/express/router.d.ts +0 -10
  202. package/dist/adapter/express/router.d.ts.map +0 -1
  203. package/dist/adapter/express/swagger.d.ts +0 -18
  204. package/dist/adapter/express/swagger.d.ts.map +0 -1
  205. package/dist/adapter/express/types.d.ts +0 -110
  206. package/dist/adapter/express/types.d.ts.map +0 -1
  207. package/dist/adapter/express/validation.d.ts +0 -27
  208. package/dist/adapter/express/validation.d.ts.map +0 -1
  209. package/dist/cli/progress.d.ts +0 -124
  210. package/dist/cli/progress.d.ts.map +0 -1
  211. package/dist/cli.cjs +0 -4622
  212. package/dist/cli.cjs.map +0 -1
  213. package/dist/cli.d.ts +0 -3
  214. package/dist/cli.d.ts.map +0 -1
  215. package/dist/cli.js +0 -4603
  216. package/dist/cli.js.map +0 -1
  217. package/dist/compiler/analyze/index.d.ts +0 -5
  218. package/dist/compiler/analyze/index.d.ts.map +0 -1
  219. package/dist/compiler/analyze/scanControllers.d.ts +0 -88
  220. package/dist/compiler/analyze/scanControllers.d.ts.map +0 -1
  221. package/dist/compiler/cache/isStale.d.ts +0 -46
  222. package/dist/compiler/cache/isStale.d.ts.map +0 -1
  223. package/dist/compiler/cache/loadArtifacts.d.ts +0 -149
  224. package/dist/compiler/cache/loadArtifacts.d.ts.map +0 -1
  225. package/dist/compiler/cache/schema.d.ts +0 -32
  226. package/dist/compiler/cache/schema.d.ts.map +0 -1
  227. package/dist/compiler/cache/writeCache.d.ts +0 -14
  228. package/dist/compiler/cache/writeCache.d.ts.map +0 -1
  229. package/dist/compiler/gems.d.ts +0 -75
  230. package/dist/compiler/gems.d.ts.map +0 -1
  231. package/dist/compiler/generator/index.d.ts +0 -7
  232. package/dist/compiler/generator/index.d.ts.map +0 -1
  233. package/dist/compiler/generator/manifest.d.ts +0 -23
  234. package/dist/compiler/generator/manifest.d.ts.map +0 -1
  235. package/dist/compiler/generator/openapi.d.ts +0 -118
  236. package/dist/compiler/generator/openapi.d.ts.map +0 -1
  237. package/dist/compiler/graph/builder.d.ts +0 -24
  238. package/dist/compiler/graph/builder.d.ts.map +0 -1
  239. package/dist/compiler/graph/index.d.ts +0 -7
  240. package/dist/compiler/graph/index.d.ts.map +0 -1
  241. package/dist/compiler/graph/schemaGraph.d.ts +0 -67
  242. package/dist/compiler/graph/schemaGraph.d.ts.map +0 -1
  243. package/dist/compiler/graph/types.d.ts +0 -203
  244. package/dist/compiler/graph/types.d.ts.map +0 -1
  245. package/dist/compiler/index.d.ts +0 -12
  246. package/dist/compiler/index.d.ts.map +0 -1
  247. package/dist/compiler/ir/index.d.ts +0 -7
  248. package/dist/compiler/ir/index.d.ts.map +0 -1
  249. package/dist/compiler/ir/pipeline.d.ts +0 -82
  250. package/dist/compiler/ir/pipeline.d.ts.map +0 -1
  251. package/dist/compiler/ir/stages.d.ts +0 -40
  252. package/dist/compiler/ir/stages.d.ts.map +0 -1
  253. package/dist/compiler/ir/visitor.d.ts +0 -98
  254. package/dist/compiler/ir/visitor.d.ts.map +0 -1
  255. package/dist/compiler/manifest/emit.d.ts +0 -21
  256. package/dist/compiler/manifest/emit.d.ts.map +0 -1
  257. package/dist/compiler/manifest/format.d.ts +0 -119
  258. package/dist/compiler/manifest/format.d.ts.map +0 -1
  259. package/dist/compiler/manifest/index.d.ts +0 -6
  260. package/dist/compiler/manifest/index.d.ts.map +0 -1
  261. package/dist/compiler/runner/createProgram.d.ts +0 -24
  262. package/dist/compiler/runner/createProgram.d.ts.map +0 -1
  263. package/dist/compiler/runner/index.d.ts +0 -5
  264. package/dist/compiler/runner/index.d.ts.map +0 -1
  265. package/dist/compiler/schema/extractAnnotations.d.ts +0 -57
  266. package/dist/compiler/schema/extractAnnotations.d.ts.map +0 -1
  267. package/dist/compiler/schema/index.d.ts +0 -10
  268. package/dist/compiler/schema/index.d.ts.map +0 -1
  269. package/dist/compiler/schema/intersectionHandler.d.ts +0 -44
  270. package/dist/compiler/schema/intersectionHandler.d.ts.map +0 -1
  271. package/dist/compiler/schema/objectHandler.d.ts +0 -146
  272. package/dist/compiler/schema/objectHandler.d.ts.map +0 -1
  273. package/dist/compiler/schema/openapi.d.ts +0 -71
  274. package/dist/compiler/schema/openapi.d.ts.map +0 -1
  275. package/dist/compiler/schema/parameters.d.ts +0 -90
  276. package/dist/compiler/schema/parameters.d.ts.map +0 -1
  277. package/dist/compiler/schema/partitioner.d.ts +0 -85
  278. package/dist/compiler/schema/partitioner.d.ts.map +0 -1
  279. package/dist/compiler/schema/primitives.d.ts +0 -68
  280. package/dist/compiler/schema/primitives.d.ts.map +0 -1
  281. package/dist/compiler/schema/queryBuilderAnalyzer.d.ts +0 -95
  282. package/dist/compiler/schema/queryBuilderAnalyzer.d.ts.map +0 -1
  283. package/dist/compiler/schema/queryBuilderSchemaBuilder.d.ts +0 -13
  284. package/dist/compiler/schema/queryBuilderSchemaBuilder.d.ts.map +0 -1
  285. package/dist/compiler/schema/serviceCallAnalyzer.d.ts +0 -102
  286. package/dist/compiler/schema/serviceCallAnalyzer.d.ts.map +0 -1
  287. package/dist/compiler/schema/splitOpenapi.d.ts +0 -46
  288. package/dist/compiler/schema/splitOpenapi.d.ts.map +0 -1
  289. package/dist/compiler/schema/typeToJsonSchema.d.ts +0 -26
  290. package/dist/compiler/schema/typeToJsonSchema.d.ts.map +0 -1
  291. package/dist/compiler/schema/types.d.ts +0 -70
  292. package/dist/compiler/schema/types.d.ts.map +0 -1
  293. package/dist/compiler/schema/unionHandler.d.ts +0 -70
  294. package/dist/compiler/schema/unionHandler.d.ts.map +0 -1
  295. package/dist/compiler/transform/dedup.d.ts +0 -35
  296. package/dist/compiler/transform/dedup.d.ts.map +0 -1
  297. package/dist/compiler/transform/flatten.d.ts +0 -50
  298. package/dist/compiler/transform/flatten.d.ts.map +0 -1
  299. package/dist/compiler/transform/index.d.ts +0 -7
  300. package/dist/compiler/transform/index.d.ts.map +0 -1
  301. package/dist/compiler/transform/inline.d.ts +0 -46
  302. package/dist/compiler/transform/inline.d.ts.map +0 -1
  303. package/dist/compiler/validation/emitPrecompiledValidators.d.ts +0 -62
  304. package/dist/compiler/validation/emitPrecompiledValidators.d.ts.map +0 -1
  305. package/dist/compiler/validation/index.d.ts +0 -5
  306. package/dist/compiler/validation/index.d.ts.map +0 -1
  307. package/dist/decorators/Auth.d.ts +0 -22
  308. package/dist/decorators/Auth.d.ts.map +0 -1
  309. package/dist/decorators/Controller.d.ts +0 -17
  310. package/dist/decorators/Controller.d.ts.map +0 -1
  311. package/dist/decorators/Public.d.ts +0 -15
  312. package/dist/decorators/Public.d.ts.map +0 -1
  313. package/dist/decorators/Use.d.ts +0 -23
  314. package/dist/decorators/Use.d.ts.map +0 -1
  315. package/dist/decorators/methods.d.ts +0 -26
  316. package/dist/decorators/methods.d.ts.map +0 -1
  317. package/dist/express.cjs +0 -1186
  318. package/dist/express.cjs.map +0 -1
  319. package/dist/express.d.ts +0 -8
  320. package/dist/express.d.ts.map +0 -1
  321. package/dist/express.js +0 -1150
  322. package/dist/express.js.map +0 -1
  323. package/dist/http.d.ts +0 -33
  324. package/dist/http.d.ts.map +0 -1
  325. package/dist/index.cjs +0 -724
  326. package/dist/index.cjs.map +0 -1
  327. package/dist/metal/applyListQuery.d.ts +0 -100
  328. package/dist/metal/applyListQuery.d.ts.map +0 -1
  329. package/dist/metal/index.cjs +0 -278
  330. package/dist/metal/index.cjs.map +0 -1
  331. package/dist/metal/index.d.ts +0 -15
  332. package/dist/metal/index.d.ts.map +0 -1
  333. package/dist/metal/index.js +0 -243
  334. package/dist/metal/index.js.map +0 -1
  335. package/dist/metal/listQuery.d.ts +0 -26
  336. package/dist/metal/listQuery.d.ts.map +0 -1
  337. package/dist/metal/queryOptions.d.ts +0 -16
  338. package/dist/metal/queryOptions.d.ts.map +0 -1
  339. package/dist/metal/readMetalBag.d.ts +0 -69
  340. package/dist/metal/readMetalBag.d.ts.map +0 -1
  341. package/dist/metal/registerMetalEntities.d.ts +0 -26
  342. package/dist/metal/registerMetalEntities.d.ts.map +0 -1
  343. package/dist/metal/schemaFromEntity.d.ts +0 -41
  344. package/dist/metal/schemaFromEntity.d.ts.map +0 -1
  345. package/dist/metal/searchWhere.d.ts +0 -97
  346. package/dist/metal/searchWhere.d.ts.map +0 -1
  347. package/dist/metal/symbolMetadata.d.ts +0 -8
  348. package/dist/metal/symbolMetadata.d.ts.map +0 -1
  349. package/dist/runtime/auth/runtime.d.ts +0 -183
  350. package/dist/runtime/auth/runtime.d.ts.map +0 -1
  351. package/dist/runtime/metadata/bucket.d.ts +0 -2
  352. package/dist/runtime/metadata/bucket.d.ts.map +0 -1
  353. package/dist/runtime/metadata/key.d.ts +0 -2
  354. package/dist/runtime/metadata/key.d.ts.map +0 -1
  355. package/dist/runtime/metadata/read.d.ts +0 -2
  356. package/dist/runtime/metadata/read.d.ts.map +0 -1
  357. package/dist/runtime/metadata/types.d.ts +0 -95
  358. package/dist/runtime/metadata/types.d.ts.map +0 -1
  359. package/dist/runtime/polyfill.d.ts +0 -2
  360. package/dist/runtime/polyfill.d.ts.map +0 -1
  361. package/dist/runtime/upload.d.ts +0 -44
  362. package/dist/runtime/upload.d.ts.map +0 -1
  363. package/dist/runtime/validation/ajv.d.ts +0 -120
  364. package/dist/runtime/validation/ajv.d.ts.map +0 -1
  365. package/dist/runtime/validation/index.d.ts +0 -11
  366. package/dist/runtime/validation/index.d.ts.map +0 -1
  367. package/dist/schema/decorators.d.ts +0 -37
  368. package/dist/schema/decorators.d.ts.map +0 -1
  369. package/dist/schema/index.cjs +0 -214
  370. package/dist/schema/index.cjs.map +0 -1
  371. package/dist/schema/index.d.ts +0 -2
  372. package/dist/schema/index.d.ts.map +0 -1
  373. package/dist/schema/index.js +0 -163
  374. package/dist/schema/index.js.map +0 -1
  375. package/dist/scripts/adorn-example.cjs +0 -404
  376. package/dist/scripts/adorn-example.cjs.map +0 -1
  377. package/dist/utils/operationId.d.ts +0 -2
  378. package/dist/utils/operationId.d.ts.map +0 -1
  379. package/dist/utils/path.d.ts +0 -2
  380. package/dist/utils/path.d.ts.map +0 -1
  381. package/dist/utils/port.d.ts +0 -9
  382. package/dist/utils/port.d.ts.map +0 -1
package/dist/index.cjs DELETED
@@ -1,724 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- 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
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
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
-
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- ADORN_META: () => ADORN_META2,
34
- AdditionalProperties: () => AdditionalProperties,
35
- Auth: () => Auth,
36
- Closed: () => Closed,
37
- ClosedUnevaluated: () => ClosedUnevaluated,
38
- Const: () => Const,
39
- Consumes: () => Consumes,
40
- Controller: () => Controller,
41
- Default: () => Default,
42
- Delete: () => Delete,
43
- Description: () => Description,
44
- Enum: () => Enum,
45
- Example: () => Example,
46
- Examples: () => Examples,
47
- ExclusiveMax: () => ExclusiveMax,
48
- ExclusiveMin: () => ExclusiveMin,
49
- File: () => File,
50
- Format: () => Format,
51
- Get: () => Get,
52
- Max: () => Max,
53
- MaxItems: () => MaxItems,
54
- MaxLength: () => MaxLength,
55
- MaxProperties: () => MaxProperties,
56
- Min: () => Min,
57
- MinItems: () => MinItems,
58
- MinLength: () => MinLength,
59
- MinProperties: () => MinProperties,
60
- MultipleOf: () => MultipleOf,
61
- PartType: () => PartType,
62
- PartType2: () => PartType,
63
- Patch: () => Patch,
64
- Pattern: () => Pattern,
65
- Post: () => Post,
66
- Produces: () => Produces,
67
- Public: () => Public,
68
- Put: () => Put,
69
- Schema: () => Schema,
70
- Union: () => Union,
71
- Use: () => Use,
72
- ValidationErrorResponse: () => ValidationErrorResponse,
73
- clearArtifactCache: () => clearArtifactCache,
74
- createValidator: () => createValidator,
75
- findProcessOnPort: () => findProcessOnPort,
76
- formatValidationErrors: () => formatValidationErrors,
77
- getArtifactCacheStats: () => getArtifactCacheStats,
78
- isPortAvailable: () => isPortAvailable,
79
- killProcess: () => killProcess,
80
- loadArtifacts: () => loadArtifacts,
81
- readAdornBucket: () => readAdornBucket,
82
- waitForPort: () => waitForPort
83
- });
84
- module.exports = __toCommonJS(index_exports);
85
-
86
- // src/runtime/polyfill.ts
87
- Symbol.metadata ??= /* @__PURE__ */ Symbol("Symbol.metadata");
88
-
89
- // src/runtime/metadata/key.ts
90
- var ADORN_META = /* @__PURE__ */ Symbol.for("adorn-api/meta");
91
-
92
- // src/runtime/metadata/bucket.ts
93
- function getBucket(metadata) {
94
- if (!metadata) {
95
- throw new Error("Decorator context.metadata is undefined. Ensure Symbol.metadata polyfill runs before decorators.");
96
- }
97
- let bucket = metadata[ADORN_META];
98
- if (!bucket) {
99
- bucket = { ops: [], controllerUse: [] };
100
- metadata[ADORN_META] = bucket;
101
- }
102
- if (!bucket.controllerUse) {
103
- bucket.controllerUse = [];
104
- }
105
- return bucket;
106
- }
107
-
108
- // src/decorators/Controller.ts
109
- function Controller(basePath) {
110
- return function(target, context) {
111
- const bucket = getBucket(context.metadata);
112
- bucket.basePath = basePath;
113
- };
114
- }
115
-
116
- // src/decorators/methods.ts
117
- function createMethodDecorator(httpMethod, path2) {
118
- return function(target, context) {
119
- if (context.private || context.static) {
120
- return;
121
- }
122
- const methodName = String(context.name);
123
- const bucket = getBucket(context.metadata);
124
- let op = bucket.ops.find((op2) => op2.methodName === methodName);
125
- if (!op) {
126
- op = {
127
- httpMethod,
128
- path: path2,
129
- methodName
130
- };
131
- bucket.ops.push(op);
132
- } else {
133
- op.httpMethod = httpMethod;
134
- op.path = path2;
135
- }
136
- };
137
- }
138
- var Get = (path2) => createMethodDecorator("GET", path2);
139
- var Post = (path2) => createMethodDecorator("POST", path2);
140
- var Put = (path2) => createMethodDecorator("PUT", path2);
141
- var Patch = (path2) => createMethodDecorator("PATCH", path2);
142
- var Delete = (path2) => createMethodDecorator("DELETE", path2);
143
-
144
- // src/decorators/Use.ts
145
- function Use(...middleware) {
146
- return function(target, context) {
147
- if (context.kind === "class") {
148
- const bucket = getBucket(context.metadata);
149
- if (!bucket.controllerUse) {
150
- bucket.controllerUse = [];
151
- }
152
- bucket.controllerUse.push(...middleware);
153
- } else if (context.kind === "method") {
154
- const methodName = String(context.name);
155
- const bucket = getBucket(context.metadata);
156
- let op = bucket.ops.find((op2) => op2.methodName === methodName);
157
- if (!op) {
158
- op = {
159
- httpMethod: "GET",
160
- path: "/",
161
- methodName
162
- };
163
- bucket.ops.push(op);
164
- }
165
- if (!op.use) {
166
- op.use = [];
167
- }
168
- op.use.push(...middleware);
169
- } else {
170
- throw new Error("@Use decorator can only be applied to classes or methods");
171
- }
172
- };
173
- }
174
-
175
- // src/decorators/Auth.ts
176
- function Auth(scheme, options) {
177
- return function(target, context) {
178
- if (context.kind !== "method") {
179
- throw new Error("@Auth decorator can only be applied to methods");
180
- }
181
- const methodName = String(context.name);
182
- const bucket = getBucket(context.metadata);
183
- let op = bucket.ops.find((op2) => op2.methodName === methodName);
184
- if (!op) {
185
- op = {
186
- httpMethod: "GET",
187
- path: "/",
188
- methodName
189
- };
190
- bucket.ops.push(op);
191
- }
192
- op.auth = {
193
- scheme,
194
- scopes: options?.scopes,
195
- optional: options?.optional ?? false
196
- };
197
- };
198
- }
199
-
200
- // src/decorators/Public.ts
201
- function Public() {
202
- return function(target, context) {
203
- if (context.kind !== "method") {
204
- throw new Error("@Public decorator can only be applied to methods");
205
- }
206
- const methodName = String(context.name);
207
- const bucket = getBucket(context.metadata);
208
- let op = bucket.ops.find((op2) => op2.methodName === methodName);
209
- if (!op) {
210
- op = {
211
- httpMethod: "GET",
212
- path: "/",
213
- methodName
214
- };
215
- bucket.ops.push(op);
216
- }
217
- op.auth = "public";
218
- };
219
- }
220
-
221
- // src/runtime/metadata/read.ts
222
- function readAdornBucket(ctor) {
223
- const metaSym = Symbol.metadata;
224
- if (!metaSym) {
225
- return null;
226
- }
227
- const classMetadata = ctor[metaSym];
228
- if (!classMetadata) {
229
- return null;
230
- }
231
- const bucket = classMetadata[ADORN_META];
232
- return bucket ?? null;
233
- }
234
-
235
- // src/schema/decorators.ts
236
- var ADORN_META2 = /* @__PURE__ */ Symbol.for("adorn-api.metadata");
237
- function getOrCreateMetadata(metadata) {
238
- const meta = metadata[ADORN_META2] ??= {};
239
- meta.schema ??= { props: {} };
240
- return meta;
241
- }
242
- function pushSchemaFrag(target, propertyKey, metadata, frag) {
243
- const meta = getOrCreateMetadata(metadata);
244
- const props = meta.schema.props;
245
- (props[propertyKey] ??= []).push(frag);
246
- }
247
- function Schema(frag) {
248
- return function(target, propertyKey) {
249
- pushSchemaFrag(target, propertyKey, {}, frag);
250
- };
251
- }
252
- function Min(n) {
253
- return function(target, propertyKey) {
254
- pushSchemaFrag(target, propertyKey, {}, { minimum: n });
255
- };
256
- }
257
- function Max(n) {
258
- return function(target, propertyKey) {
259
- pushSchemaFrag(target, propertyKey, {}, { maximum: n });
260
- };
261
- }
262
- function ExclusiveMin(n) {
263
- return function(target, propertyKey) {
264
- pushSchemaFrag(target, propertyKey, {}, { exclusiveMinimum: n });
265
- };
266
- }
267
- function ExclusiveMax(n) {
268
- return function(target, propertyKey) {
269
- pushSchemaFrag(target, propertyKey, {}, { exclusiveMaximum: n });
270
- };
271
- }
272
- function MinLength(n) {
273
- return function(target, propertyKey) {
274
- pushSchemaFrag(target, propertyKey, {}, { minLength: n });
275
- };
276
- }
277
- function MaxLength(n) {
278
- return function(target, propertyKey) {
279
- pushSchemaFrag(target, propertyKey, {}, { maxLength: n });
280
- };
281
- }
282
- function Pattern(re) {
283
- return function(target, propertyKey) {
284
- pushSchemaFrag(target, propertyKey, {}, { pattern: typeof re === "string" ? re : re.source });
285
- };
286
- }
287
- function Format(fmt) {
288
- return function(target, propertyKey) {
289
- pushSchemaFrag(target, propertyKey, {}, { format: fmt });
290
- };
291
- }
292
- function MinItems(n) {
293
- return function(target, propertyKey) {
294
- pushSchemaFrag(target, propertyKey, {}, { minItems: n });
295
- };
296
- }
297
- function MaxItems(n) {
298
- return function(target, propertyKey) {
299
- pushSchemaFrag(target, propertyKey, {}, { maxItems: n });
300
- };
301
- }
302
- function MinProperties(n) {
303
- return function(target, propertyKey) {
304
- pushSchemaFrag(target, propertyKey, {}, { minProperties: n });
305
- };
306
- }
307
- function MaxProperties(n) {
308
- return function(target, propertyKey) {
309
- pushSchemaFrag(target, propertyKey, {}, { maxProperties: n });
310
- };
311
- }
312
- function MultipleOf(n) {
313
- return function(target, propertyKey) {
314
- pushSchemaFrag(target, propertyKey, {}, { multipleOf: n });
315
- };
316
- }
317
- function Example(value) {
318
- return function(target, propertyKey) {
319
- pushSchemaFrag(target, propertyKey, {}, { example: value });
320
- };
321
- }
322
- function Examples(values) {
323
- return function(target, propertyKey) {
324
- pushSchemaFrag(target, propertyKey, {}, { examples: values });
325
- };
326
- }
327
- function Description(desc) {
328
- return function(target, propertyKey) {
329
- pushSchemaFrag(target, propertyKey, {}, { description: desc });
330
- };
331
- }
332
- function Enum(vals) {
333
- return function(target, propertyKey) {
334
- pushSchemaFrag(target, propertyKey, {}, { enum: vals });
335
- };
336
- }
337
- function Const(val) {
338
- return function(target, propertyKey) {
339
- pushSchemaFrag(target, propertyKey, {}, { const: val });
340
- };
341
- }
342
- function Default(val) {
343
- return function(target, propertyKey) {
344
- pushSchemaFrag(target, propertyKey, {}, { default: val });
345
- };
346
- }
347
- function AdditionalProperties(value) {
348
- return function(target, propertyKey) {
349
- pushSchemaFrag(target, propertyKey, {}, { additionalProperties: value });
350
- };
351
- }
352
- function Closed() {
353
- return function(target, propertyKey) {
354
- pushSchemaFrag(target, propertyKey, {}, { additionalProperties: false });
355
- };
356
- }
357
- function ClosedUnevaluated() {
358
- return function(target, propertyKey) {
359
- pushSchemaFrag(target, propertyKey, {}, { unevaluatedProperties: false });
360
- };
361
- }
362
- function Union(mode) {
363
- return function(target) {
364
- target[ADORN_META2] = target[ADORN_META2] ?? {};
365
- const meta = target[ADORN_META2];
366
- meta.schema = meta.schema ?? { props: {} };
367
- meta.schema.unionMode = mode;
368
- };
369
- }
370
-
371
- // src/runtime/validation/ajv.ts
372
- var import_ajv = __toESM(require("ajv"), 1);
373
- var import_ajv_formats = __toESM(require("ajv-formats"), 1);
374
- var ValidationErrorResponse = class extends Error {
375
- /**
376
- * HTTP status code for validation errors.
377
- */
378
- statusCode;
379
- /**
380
- * Detailed validation errors.
381
- */
382
- errors;
383
- /**
384
- * Creates a new ValidationErrorResponse.
385
- *
386
- * @param statusCode - HTTP status code (typically 400)
387
- * @param errors - Array of validation errors
388
- */
389
- constructor(statusCode, errors) {
390
- super("Validation failed");
391
- this.name = "ValidationErrorResponse";
392
- this.statusCode = statusCode;
393
- this.errors = errors;
394
- }
395
- };
396
- function createValidator() {
397
- const ajv = new import_ajv.default.default({
398
- allErrors: true,
399
- coerceTypes: false,
400
- strict: false,
401
- validateFormats: true
402
- });
403
- import_ajv_formats.default.default(ajv);
404
- ajv.addFormat("br-phone", /^\(\d{2}\)\s\d{5}-\d{4}$/);
405
- return ajv;
406
- }
407
- function formatValidationErrors(errors) {
408
- const formatted = {};
409
- for (const error of errors) {
410
- const path2 = error.path || "body";
411
- if (!formatted[path2]) {
412
- formatted[path2] = [];
413
- }
414
- formatted[path2].push(error.message);
415
- }
416
- return {
417
- error: "Validation failed",
418
- details: formatted
419
- };
420
- }
421
-
422
- // src/http.ts
423
- var ADORN_META3 = /* @__PURE__ */ Symbol.for("adorn-api.metadata");
424
- function getMetadata(target) {
425
- const host = target;
426
- const metadata = host[ADORN_META3] ?? {};
427
- host[ADORN_META3] = metadata;
428
- return metadata;
429
- }
430
- function PartType(contentTypeOrOptions) {
431
- return function(target, propertyKey) {
432
- const metadata = getMetadata(target);
433
- const options = typeof contentTypeOrOptions === "string" ? { contentType: contentTypeOrOptions } : contentTypeOrOptions;
434
- metadata.fileParts ??= {};
435
- metadata.fileParts[propertyKey.toString()] = options;
436
- };
437
- }
438
- function File() {
439
- return function(target, propertyKey) {
440
- const metadata = getMetadata(target);
441
- metadata.fileParts ??= {};
442
- metadata.fileParts[propertyKey.toString()] = metadata.fileParts[propertyKey.toString()] ?? {};
443
- };
444
- }
445
- function Consumes(...contentTypes) {
446
- return function(target) {
447
- const metadata = getMetadata(target.prototype);
448
- metadata.consumes = contentTypes;
449
- };
450
- }
451
- function Produces(...contentTypes) {
452
- return function(target) {
453
- const metadata = getMetadata(target.prototype);
454
- metadata.produces = contentTypes;
455
- };
456
- }
457
-
458
- // src/compiler/cache/loadArtifacts.ts
459
- var import_node_fs = __toESM(require("fs"), 1);
460
- var import_node_path = __toESM(require("path"), 1);
461
- var import_promises = require("fs/promises");
462
- var artifactCache = /* @__PURE__ */ new Map();
463
- async function getMtime(filePath) {
464
- try {
465
- const stats = await (0, import_promises.stat)(filePath);
466
- return stats.mtimeMs;
467
- } catch {
468
- return null;
469
- }
470
- }
471
- async function loadArtifacts(options) {
472
- const { outDir } = options;
473
- const cacheKey = import_node_path.default.resolve(outDir);
474
- const entry = artifactCache.get(cacheKey);
475
- const openapiPath = import_node_path.default.join(outDir, "openapi.json");
476
- const manifestPath = import_node_path.default.join(outDir, "manifest.json");
477
- const validatorsPath = import_node_path.default.join(outDir, "validators.mjs");
478
- const openapiMtime = await getMtime(openapiPath);
479
- const manifestMtime = await getMtime(manifestPath);
480
- const validatorsMtime = await getMtime(validatorsPath);
481
- if (entry) {
482
- const mtimesMatch = entry.mtimes.openapi === openapiMtime && entry.mtimes.manifest === manifestMtime && entry.mtimes.validators === validatorsMtime;
483
- if (mtimesMatch) {
484
- if (entry.openapi && entry.manifest) {
485
- return {
486
- openapi: entry.openapi,
487
- manifest: entry.manifest,
488
- validators: entry.validators
489
- };
490
- }
491
- }
492
- }
493
- const openapiContent = import_node_fs.default.readFileSync(openapiPath, "utf-8");
494
- const manifestContent = import_node_fs.default.readFileSync(manifestPath, "utf-8");
495
- const openapi = JSON.parse(openapiContent);
496
- const manifest = JSON.parse(manifestContent);
497
- let validators = null;
498
- if (manifest.validation.mode === "precompiled" && manifest.validation.precompiledModule) {
499
- try {
500
- const validatorsModule = await import(import_node_path.default.join(outDir, manifest.validation.precompiledModule));
501
- validators = validatorsModule;
502
- } catch (err) {
503
- console.warn(`Failed to load precompiled validators: ${err}`);
504
- }
505
- }
506
- artifactCache.set(cacheKey, {
507
- openapi,
508
- manifest,
509
- validators,
510
- mtimes: {
511
- openapi: openapiMtime,
512
- manifest: manifestMtime,
513
- validators: validatorsMtime
514
- }
515
- });
516
- return {
517
- openapi,
518
- manifest,
519
- validators
520
- };
521
- }
522
- function clearArtifactCache(outDir) {
523
- if (outDir) {
524
- const cacheKey = import_node_path.default.resolve(outDir);
525
- artifactCache.delete(cacheKey);
526
- } else {
527
- artifactCache.clear();
528
- }
529
- }
530
- function getArtifactCacheStats() {
531
- return {
532
- size: artifactCache.size,
533
- keys: Array.from(artifactCache.keys())
534
- };
535
- }
536
-
537
- // src/utils/port.ts
538
- var import_net = require("net");
539
- var import_child_process = require("child_process");
540
- var import_util = require("util");
541
- var execAsync = (0, import_util.promisify)(import_child_process.exec);
542
- async function isPortAvailable(port, host = "0.0.0.0") {
543
- return new Promise((resolve) => {
544
- const server = (0, import_net.createServer)();
545
- server.on("error", (err) => {
546
- if (err.code === "EADDRINUSE") {
547
- resolve(false);
548
- } else {
549
- resolve(false);
550
- }
551
- });
552
- server.once("listening", () => {
553
- server.close(() => {
554
- resolve(true);
555
- });
556
- });
557
- server.listen(port, host);
558
- });
559
- }
560
- async function findProcessOnPort(port) {
561
- try {
562
- const platform = process.platform;
563
- if (platform === "win32") {
564
- const { stdout } = await execAsync(`netstat -ano | findstr :${port}`);
565
- for (const line of stdout.split("\n")) {
566
- const trimmed = line.trim();
567
- if (!trimmed || trimmed.includes("PID")) continue;
568
- const parts = trimmed.split(/\s+/);
569
- if (parts.length >= 5) {
570
- const address = parts[1];
571
- const pid = parseInt(parts[parts.length - 1], 10);
572
- if (address.includes(`:${port}`) && !isNaN(pid)) {
573
- const command = await getProcessNameOnWindows(pid);
574
- return { pid, command };
575
- }
576
- }
577
- }
578
- } else {
579
- const { stdout } = await execAsync(`lsof -ti:${port}`);
580
- const pids = stdout.trim().split("\n").filter(Boolean).map(Number);
581
- if (pids.length > 0) {
582
- const pid = pids[0];
583
- const command = await getProcessNameOnUnix(pid);
584
- return { pid, command };
585
- }
586
- }
587
- return null;
588
- } catch (error) {
589
- if (error.message.includes("matches found")) {
590
- return null;
591
- }
592
- return null;
593
- }
594
- }
595
- async function getProcessNameOnWindows(pid) {
596
- try {
597
- const { stdout } = await execAsync(`tasklist /FI "PID eq ${pid}" /FO CSV /NH`);
598
- const line = stdout.trim().split("\n")[0];
599
- if (line) {
600
- const parts = line.split('","');
601
- if (parts.length >= 2) {
602
- return parts[0].replace(/"/g, "");
603
- }
604
- }
605
- } catch {
606
- return void 0;
607
- }
608
- }
609
- async function getProcessNameOnUnix(pid) {
610
- try {
611
- const { stdout } = await execAsync(`ps -p ${pid} -o comm=`);
612
- return stdout.trim() || void 0;
613
- } catch {
614
- return void 0;
615
- }
616
- }
617
- async function killProcess(pid) {
618
- try {
619
- process.kill(pid, "SIGTERM");
620
- await new Promise((resolve, reject) => {
621
- const timeout = setTimeout(() => {
622
- reject(new Error("Process did not terminate gracefully"));
623
- }, 5e3);
624
- const check = () => {
625
- try {
626
- process.kill(pid, 0);
627
- setTimeout(check, 500);
628
- } catch {
629
- clearInterval(interval);
630
- clearTimeout(timeout);
631
- resolve();
632
- }
633
- };
634
- const interval = setInterval(check, 500);
635
- });
636
- return true;
637
- } catch {
638
- try {
639
- process.kill(pid, "SIGKILL");
640
- await new Promise((resolve, reject) => {
641
- const timeout = setTimeout(() => {
642
- reject(new Error("Process did not terminate"));
643
- }, 3e3);
644
- setTimeout(() => {
645
- try {
646
- process.kill(pid, 0);
647
- clearTimeout(timeout);
648
- reject(new Error("Process still running"));
649
- } catch {
650
- clearTimeout(timeout);
651
- resolve();
652
- }
653
- }, 1e3);
654
- });
655
- return true;
656
- } catch {
657
- return false;
658
- }
659
- }
660
- }
661
- async function waitForPort(port, host = "0.0.0.0", timeout = 5e3) {
662
- const start = Date.now();
663
- while (Date.now() - start < timeout) {
664
- if (await isPortAvailable(port, host)) {
665
- return true;
666
- }
667
- await new Promise((resolve) => setTimeout(resolve, 200));
668
- }
669
- return false;
670
- }
671
- // Annotate the CommonJS export names for ESM import in node:
672
- 0 && (module.exports = {
673
- ADORN_META,
674
- AdditionalProperties,
675
- Auth,
676
- Closed,
677
- ClosedUnevaluated,
678
- Const,
679
- Consumes,
680
- Controller,
681
- Default,
682
- Delete,
683
- Description,
684
- Enum,
685
- Example,
686
- Examples,
687
- ExclusiveMax,
688
- ExclusiveMin,
689
- File,
690
- Format,
691
- Get,
692
- Max,
693
- MaxItems,
694
- MaxLength,
695
- MaxProperties,
696
- Min,
697
- MinItems,
698
- MinLength,
699
- MinProperties,
700
- MultipleOf,
701
- PartType,
702
- PartType2,
703
- Patch,
704
- Pattern,
705
- Post,
706
- Produces,
707
- Public,
708
- Put,
709
- Schema,
710
- Union,
711
- Use,
712
- ValidationErrorResponse,
713
- clearArtifactCache,
714
- createValidator,
715
- findProcessOnPort,
716
- formatValidationErrors,
717
- getArtifactCacheStats,
718
- isPortAvailable,
719
- killProcess,
720
- loadArtifacts,
721
- readAdornBucket,
722
- waitForPort
723
- });
724
- //# sourceMappingURL=index.cjs.map