raiton 6.8.9-beta.25 → 6.10.0-beta.28

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 (387) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +46 -1
  3. package/benchmarks/README.md +16 -0
  4. package/benchmarks/latest.json +172 -0
  5. package/benchmarks/latest.md +66 -0
  6. package/build/bin/index.mjs +33550 -21725
  7. package/build/types/bin/bootstrapper.d.ts +2 -0
  8. package/build/types/bin/cli-output.d.ts +46 -0
  9. package/build/types/bin/cli-tools.d.ts +13 -0
  10. package/build/types/bin/cli.d.ts +3 -0
  11. package/build/types/bin/commands.registry.d.ts +4 -0
  12. package/build/types/bin/constants.d.ts +3 -0
  13. package/build/types/bin/file-utils.d.ts +21 -0
  14. package/build/types/bin/index.d.ts +2 -0
  15. package/build/types/bin/name-utils.d.ts +4 -0
  16. package/build/types/bin/project-utils.d.ts +12 -0
  17. package/build/types/commands/artifact.command.d.ts +7 -0
  18. package/build/types/commands/build.command.d.ts +8 -0
  19. package/build/types/commands/client.command.d.ts +7 -0
  20. package/build/types/commands/contract.command.d.ts +8 -0
  21. package/build/types/commands/develop.command.d.ts +9 -0
  22. package/build/types/commands/docs.command.d.ts +8 -0
  23. package/build/types/commands/doctor.command.d.ts +9 -0
  24. package/build/types/commands/generate.command.d.ts +7 -0
  25. package/build/types/commands/inspect.command.d.ts +7 -0
  26. package/build/types/commands/mcp.command.d.ts +11 -0
  27. package/build/types/commands/new.command.d.ts +7 -0
  28. package/build/types/commands/openapi.command.d.ts +7 -0
  29. package/build/types/commands/routes.command.d.ts +7 -0
  30. package/build/types/commands/start.command.d.ts +9 -0
  31. package/build/types/commands/why.command.d.ts +7 -0
  32. package/build/types/contracts/decorators.d.ts +41 -0
  33. package/build/types/contracts/errors.d.ts +42 -0
  34. package/build/types/contracts/index.d.ts +4 -0
  35. package/build/types/contracts/schema.d.ts +70 -0
  36. package/build/types/contracts/typebox.d.ts +81 -0
  37. package/build/types/core/application.d.ts +37 -0
  38. package/build/types/core/artifacts/artifact.d.ts +3 -0
  39. package/build/types/core/artifacts/index.d.ts +1 -0
  40. package/build/types/core/artifacts/runner.d.ts +1 -0
  41. package/build/types/core/builder.d.ts +42 -0
  42. package/build/types/core/bytes.util.d.ts +3 -0
  43. package/build/types/core/command.d.ts +13 -0
  44. package/build/types/core/commands.d.ts +10 -0
  45. package/build/types/core/config/config.d.ts +27 -0
  46. package/build/types/core/config/define.d.ts +8 -0
  47. package/build/types/core/config/index.d.ts +3 -0
  48. package/build/types/core/config/schema.d.ts +24 -0
  49. package/build/types/core/context.d.ts +11 -0
  50. package/build/types/core/controller/builder.d.ts +26 -0
  51. package/build/types/core/controller/compiler.d.ts +2 -0
  52. package/build/types/core/controller/index.d.ts +4 -0
  53. package/build/types/core/controller/metadata.d.ts +3 -0
  54. package/build/types/core/controller/tracker.d.ts +9 -0
  55. package/build/types/core/directories.d.ts +10 -0
  56. package/build/types/core/guards.d.ts +11 -0
  57. package/build/types/core/helpers/index.d.ts +1 -0
  58. package/build/types/core/helpers/raiton.d.ts +1 -0
  59. package/build/types/core/hooks.d.ts +14 -0
  60. package/build/types/core/index.d.ts +17 -0
  61. package/build/types/core/injection/index.d.ts +1 -0
  62. package/build/types/core/injection/injection.d.ts +37 -0
  63. package/build/types/core/mcp/builder.d.ts +2 -0
  64. package/build/types/core/mcp/index.d.ts +3 -0
  65. package/build/types/core/mcp/metadata.d.ts +9 -0
  66. package/build/types/core/mcp/tracker.d.ts +9 -0
  67. package/build/types/core/middleware/compose.d.ts +8 -0
  68. package/build/types/core/middleware/index.d.ts +2 -0
  69. package/build/types/core/middleware/pipeline.d.ts +12 -0
  70. package/build/types/core/plugins/index.d.ts +2 -0
  71. package/build/types/core/plugins/plugin.d.ts +2 -0
  72. package/build/types/core/plugins/scope.d.ts +15 -0
  73. package/build/types/core/process.util.d.ts +1 -0
  74. package/build/types/core/raiton.d.ts +15 -0
  75. package/build/types/core/router/handler.d.ts +2 -0
  76. package/build/types/core/router/handler.utils.d.ts +37 -0
  77. package/build/types/core/router/index.d.ts +4 -0
  78. package/build/types/core/router/matcher.d.ts +50 -0
  79. package/build/types/core/router/route.d.ts +52 -0
  80. package/build/types/core/router/router.d.ts +23 -0
  81. package/build/types/core/scheduler/builder.d.ts +2 -0
  82. package/build/types/core/scheduler/cron.d.ts +32 -0
  83. package/build/types/core/scheduler/duration.d.ts +7 -0
  84. package/build/types/core/scheduler/index.d.ts +6 -0
  85. package/build/types/core/scheduler/manager.d.ts +47 -0
  86. package/build/types/core/scheduler/metadata.d.ts +8 -0
  87. package/build/types/core/scheduler/queue/backend.d.ts +42 -0
  88. package/build/types/core/scheduler/queue/index.d.ts +3 -0
  89. package/build/types/core/scheduler/queue/rabbitmq.backend.d.ts +37 -0
  90. package/build/types/core/scheduler/queue/redis.backend.d.ts +38 -0
  91. package/build/types/core/server.d.ts +9 -0
  92. package/build/types/core/socket/builder.d.ts +1 -0
  93. package/build/types/core/socket/index.d.ts +2 -0
  94. package/build/types/core/socket/metadata.d.ts +14 -0
  95. package/build/types/core/thread.d.ts +21 -0
  96. package/build/types/framework/artifacts.d.ts +20 -0
  97. package/build/types/framework/cache/cache.d.ts +84 -0
  98. package/build/types/framework/cache/cache.decorator.d.ts +21 -0
  99. package/build/types/framework/cache/etag.d.ts +62 -0
  100. package/build/types/framework/cache/index.d.ts +4 -0
  101. package/build/types/framework/cache/types.d.ts +89 -0
  102. package/build/types/framework/constants/decorators.constant.d.ts +28 -0
  103. package/build/types/framework/constants/index.d.ts +2 -0
  104. package/build/types/framework/constants/microservices.constant.d.ts +3 -0
  105. package/build/types/framework/controllers.d.ts +2 -0
  106. package/build/types/framework/data-transfer-object.d.ts +5 -0
  107. package/build/types/framework/decorators/access-guard.decorator.d.ts +1 -0
  108. package/build/types/framework/decorators/api-response.decorator.d.ts +66 -0
  109. package/build/types/framework/decorators/api.decorator.d.ts +160 -0
  110. package/build/types/framework/decorators/controllable.decorator.d.ts +3 -0
  111. package/build/types/framework/decorators/csrf-guard.decorator.d.ts +2 -0
  112. package/build/types/framework/decorators/csrf-token.decorator.d.ts +1 -0
  113. package/build/types/framework/decorators/guard.decorator.d.ts +2 -0
  114. package/build/types/framework/decorators/health-check.decorator.d.ts +17 -0
  115. package/build/types/framework/decorators/index.d.ts +15 -0
  116. package/build/types/framework/decorators/injection.decorator.d.ts +5 -0
  117. package/build/types/framework/decorators/mcp.decorator.d.ts +68 -0
  118. package/build/types/framework/decorators/middleware.decorator.d.ts +3 -0
  119. package/build/types/framework/decorators/parametrable.decorator.d.ts +9 -0
  120. package/build/types/framework/decorators/routable.decorator.d.ts +12 -0
  121. package/build/types/framework/decorators/route-interaction.decorator.d.ts +81 -0
  122. package/build/types/framework/decorators/scheduler.decorator.d.ts +54 -0
  123. package/build/types/framework/decorators/socket.decorator.d.ts +5 -0
  124. package/build/types/framework/encryption.d.ts +25 -0
  125. package/build/types/framework/enums/csrf.enum.d.ts +4 -0
  126. package/build/types/framework/enums/encrypted.enum.d.ts +20 -0
  127. package/build/types/framework/enums/event.message.enum.d.ts +4 -0
  128. package/build/types/framework/enums/http-method.enum.d.ts +10 -0
  129. package/build/types/framework/enums/http-parameters.enum.d.ts +11 -0
  130. package/build/types/framework/enums/http-status.enum.d.ts +64 -0
  131. package/build/types/framework/enums/index.d.ts +9 -0
  132. package/build/types/framework/enums/runtime.enum.d.ts +5 -0
  133. package/build/types/framework/enums/scheduler.enum.d.ts +21 -0
  134. package/build/types/framework/enums/timestamp.enum.d.ts +6 -0
  135. package/build/types/framework/env.d.ts +3 -0
  136. package/build/types/framework/errors/catalog.d.ts +42 -0
  137. package/build/types/framework/exceptions/http-exception.d.ts +18 -0
  138. package/build/types/framework/exceptions/index.d.ts +2 -0
  139. package/build/types/framework/exceptions/throwable.d.ts +76 -0
  140. package/build/types/framework/health-check.d.ts +42 -0
  141. package/build/types/framework/index.d.ts +20 -0
  142. package/build/types/framework/mcp/audit.d.ts +12 -0
  143. package/build/types/framework/mcp/conformance.d.ts +31 -0
  144. package/build/types/framework/mcp/handler.d.ts +11 -0
  145. package/build/types/framework/mcp/index.d.ts +5 -0
  146. package/build/types/framework/mcp/protocol.d.ts +17 -0
  147. package/build/types/framework/mcp/rate-limit.d.ts +10 -0
  148. package/build/types/framework/mcp/stdio.d.ts +40 -0
  149. package/build/types/framework/mcp/streamable-http.d.ts +17 -0
  150. package/build/types/framework/observability/index.d.ts +6 -0
  151. package/build/types/framework/observability/metrics.d.ts +23 -0
  152. package/build/types/framework/observability/plugin.d.ts +20 -0
  153. package/build/types/framework/observability/readiness.d.ts +9 -0
  154. package/build/types/framework/observability/request.d.ts +7 -0
  155. package/build/types/framework/observability/shutdown.d.ts +21 -0
  156. package/build/types/framework/observability/trace.d.ts +96 -0
  157. package/build/types/framework/parameter-bag.d.ts +14 -0
  158. package/build/types/framework/plugins/body-parser.plugin.d.ts +3 -0
  159. package/build/types/framework/plugins/dev.plugin.d.ts +12 -0
  160. package/build/types/framework/plugins/index.d.ts +5 -0
  161. package/build/types/framework/plugins/mcp.plugin.d.ts +15 -0
  162. package/build/types/framework/plugins/openapi.plugin.d.ts +58 -0
  163. package/build/types/framework/plugins/security/body-limit.d.ts +1 -0
  164. package/build/types/framework/plugins/security/cors.d.ts +10 -0
  165. package/build/types/framework/plugins/security/csrf.d.ts +2 -0
  166. package/build/types/framework/plugins/security/headers.d.ts +1 -0
  167. package/build/types/framework/plugins/security/index.d.ts +13 -0
  168. package/build/types/framework/plugins/security/method-guard.d.ts +1 -0
  169. package/build/types/framework/plugins/security/rate-limit.d.ts +5 -0
  170. package/build/types/framework/repositories.d.ts +5 -0
  171. package/build/types/framework/responses/error.d.ts +13 -0
  172. package/build/types/framework/responses/helpers.d.ts +7 -0
  173. package/build/types/framework/responses/http-throwable.d.ts +14 -0
  174. package/build/types/framework/responses/http.d.ts +13 -0
  175. package/build/types/framework/responses/index.d.ts +4 -0
  176. package/build/types/framework/runtime/bun/server.d.ts +2 -0
  177. package/build/types/framework/runtime/deno/server.d.ts +2 -0
  178. package/build/types/framework/runtime/index.d.ts +17 -0
  179. package/build/types/framework/runtime/node/reply.d.ts +12 -0
  180. package/build/types/framework/runtime/node/request.d.ts +33 -0
  181. package/build/types/framework/runtime/node/server.d.ts +2 -0
  182. package/build/types/framework/runtime/web/server.d.ts +1 -0
  183. package/build/types/framework/services.d.ts +5 -0
  184. package/build/types/framework/utilities/alias-path.util.d.ts +1 -0
  185. package/build/types/framework/utilities/artifact.util.d.ts +7 -0
  186. package/build/types/framework/utilities/callable.util.d.ts +1 -0
  187. package/build/types/framework/utilities/cookie.util.d.ts +1 -0
  188. package/build/types/framework/utilities/csrf.util.d.ts +26 -0
  189. package/build/types/framework/utilities/https.util.d.ts +49 -0
  190. package/build/types/framework/utilities/index.d.ts +12 -0
  191. package/build/types/framework/utilities/ip.util.d.ts +15 -0
  192. package/build/types/framework/utilities/json.util.d.ts +10 -0
  193. package/build/types/framework/utilities/openapi.utils.d.ts +7 -0
  194. package/build/types/framework/utilities/openapi.utils.impl.d.ts +18 -0
  195. package/build/types/framework/utilities/path.util.d.ts +3 -0
  196. package/build/types/framework/utilities/route-suggestion.util.d.ts +10 -0
  197. package/build/types/framework/utilities/url.util.d.ts +1 -0
  198. package/build/types/framework/utilities/utilities.util.d.ts +3 -0
  199. package/build/types/framework/utilities/validation.util.d.ts +8 -0
  200. package/build/types/framework/view-model.d.ts +4 -0
  201. package/build/types/generators/artifact.templates.d.ts +7 -0
  202. package/build/types/generators/index.d.ts +2 -0
  203. package/build/types/generators/project.templates.d.ts +21 -0
  204. package/build/types/manifest/client.d.ts +12 -0
  205. package/build/types/manifest/contract.d.ts +25 -0
  206. package/build/types/manifest/index.d.ts +5 -0
  207. package/build/types/manifest/introspect.d.ts +18 -0
  208. package/build/types/manifest/manifest.d.ts +18 -0
  209. package/build/types/manifest/schema.d.ts +177 -0
  210. package/build/types/requirements.d.ts +1 -0
  211. package/build/types/types/access-guards.d.ts +4 -0
  212. package/build/types/types/application.d.ts +32 -0
  213. package/build/types/types/artifact.d.ts +8 -0
  214. package/build/types/types/builder.d.ts +37 -0
  215. package/build/types/types/config.d.ts +62 -0
  216. package/build/types/types/controller.d.ts +27 -0
  217. package/build/types/types/contruct.d.ts +1 -0
  218. package/build/types/types/core.d.ts +11 -0
  219. package/build/types/types/csrf.d.ts +33 -0
  220. package/build/types/types/directory.d.ts +6 -0
  221. package/build/types/types/encryption.d.ts +14 -0
  222. package/build/types/types/generic.d.ts +2 -0
  223. package/build/types/types/guard.d.ts +9 -0
  224. package/build/types/types/http-responses.d.ts +7 -0
  225. package/build/types/types/index.d.ts +27 -0
  226. package/build/types/types/injection.d.ts +11 -0
  227. package/build/types/types/lifecycle.d.ts +9 -0
  228. package/build/types/types/mcp.d.ts +148 -0
  229. package/build/types/types/middleware.d.ts +12 -0
  230. package/build/types/types/parseable.d.ts +3 -0
  231. package/build/types/types/plugin.d.ts +6 -0
  232. package/build/types/types/raiton.d.ts +13 -0
  233. package/build/types/types/responses.d.ts +20 -0
  234. package/build/types/types/router.d.ts +13 -0
  235. package/build/types/types/runtime.d.ts +48 -0
  236. package/build/types/types/scheduler.d.ts +140 -0
  237. package/build/types/types/scheme.d.ts +125 -0
  238. package/build/types/types/server.d.ts +10 -0
  239. package/build/types/types/socket.d.ts +11 -0
  240. package/build/types/types/thread.d.ts +25 -0
  241. package/build/types/types/utilities.d.ts +4 -0
  242. package/build/types/types/values.d.ts +2 -0
  243. package/docs/AGENTS.md +55 -0
  244. package/docs/CLAUDE.md +55 -0
  245. package/docs/README.md +5 -0
  246. package/docs/contributors/cli/README.md +17 -3
  247. package/docs/contributors/cli/commands.md +28 -17
  248. package/docs/contributors/framework/plugins/openapi.md +12 -3
  249. package/docs/generated/cli/commands.md +26 -0
  250. package/docs/generated/config-schema.json +150 -0
  251. package/docs/generated/manifest-schema.json +236 -0
  252. package/docs/generated/manifest.json +101 -0
  253. package/docs/llms-full.txt +1271 -0
  254. package/docs/llms.txt +46 -0
  255. package/docs/user-guide/README.md +18 -12
  256. package/docs/user-guide/cli.md +21 -0
  257. package/docs/user-guide/config.md +14 -0
  258. package/docs/user-guide/contracts.md +67 -0
  259. package/docs/user-guide/en/README.md +83 -0
  260. package/docs/user-guide/getting-started.md +13 -1
  261. package/docs/user-guide/mcp.md +45 -2
  262. package/docs/user-guide/observability.md +74 -0
  263. package/docs/user-guide/openapi/plugin.md +10 -0
  264. package/docs/user-guide/recipes/README.md +32 -0
  265. package/docs/user-guide/recipes/contracts.md +52 -0
  266. package/docs/user-guide/recipes/doctor.md +16 -0
  267. package/docs/user-guide/recipes/generate.md +28 -0
  268. package/docs/user-guide/recipes/manifest.md +17 -0
  269. package/docs/user-guide/recipes/mcp-stdio.md +35 -0
  270. package/docs/user-guide/recipes/new-project.md +34 -0
  271. package/docs/user-guide/recipes/observability.md +17 -0
  272. package/package.json +40 -7
  273. package/scripts/bench.ts +586 -0
  274. package/scripts/postinstall.mjs +15 -0
  275. package/source/bin/cli-output.ts +139 -0
  276. package/source/bin/commands.registry.ts +23 -3
  277. package/source/bin/file-utils.ts +95 -0
  278. package/source/bin/name-utils.ts +26 -0
  279. package/source/bin/project-utils.ts +78 -0
  280. package/source/commands/artifact.command.ts +30 -15
  281. package/source/commands/client.command.ts +64 -0
  282. package/source/commands/contract.command.ts +104 -0
  283. package/source/commands/docs.command.ts +263 -0
  284. package/source/commands/doctor.command.ts +226 -0
  285. package/source/commands/generate.command.ts +58 -0
  286. package/source/commands/inspect.command.ts +108 -0
  287. package/source/commands/mcp.command.ts +258 -0
  288. package/source/commands/new.command.ts +135 -0
  289. package/source/commands/openapi.command.ts +95 -0
  290. package/source/commands/routes.command.ts +39 -0
  291. package/source/commands/why.command.ts +61 -0
  292. package/source/contracts/decorators.ts +151 -0
  293. package/source/contracts/errors.ts +76 -0
  294. package/source/contracts/index.ts +4 -0
  295. package/source/contracts/schema.ts +377 -0
  296. package/source/contracts/typebox.ts +193 -0
  297. package/source/core/application.ts +215 -73
  298. package/source/core/builder.ts +6 -2
  299. package/source/core/config/config.ts +144 -26
  300. package/source/core/config/define.ts +35 -8
  301. package/source/core/config/index.ts +2 -1
  302. package/source/core/config/schema.ts +263 -0
  303. package/source/core/controller/builder.ts +38 -13
  304. package/source/core/controller/compiler.ts +14 -7
  305. package/source/core/controller/metadata.ts +1 -1
  306. package/source/core/hooks.ts +13 -1
  307. package/source/core/injection/injection.ts +47 -9
  308. package/source/core/mcp/builder.ts +13 -2
  309. package/source/core/mcp/metadata.ts +2 -1
  310. package/source/core/middleware/compose.ts +48 -0
  311. package/source/core/middleware/pipeline.ts +69 -46
  312. package/source/core/raiton.ts +8 -0
  313. package/source/core/router/handler.ts +91 -31
  314. package/source/core/router/handler.utils.ts +107 -51
  315. package/source/core/router/matcher.ts +195 -24
  316. package/source/core/router/route.ts +100 -31
  317. package/source/core/router/router.ts +27 -2
  318. package/source/core/scheduler/metadata.ts +1 -1
  319. package/source/core/socket/metadata.ts +1 -1
  320. package/source/core/thread.ts +37 -2
  321. package/source/framework/artifacts.ts +47 -15
  322. package/source/framework/cache/cache.ts +48 -3
  323. package/source/framework/constants/decorators.constant.ts +5 -0
  324. package/source/framework/data-transfer-object.ts +4 -3
  325. package/source/framework/decorators/controllable.decorator.ts +3 -3
  326. package/source/framework/decorators/csrf-guard.decorator.ts +3 -2
  327. package/source/framework/decorators/csrf-token.decorator.ts +1 -1
  328. package/source/framework/decorators/guard.decorator.ts +3 -2
  329. package/source/framework/decorators/health-check.decorator.ts +1 -1
  330. package/source/framework/decorators/mcp.decorator.ts +38 -7
  331. package/source/framework/decorators/middleware.decorator.ts +2 -2
  332. package/source/framework/decorators/parametrable.decorator.ts +2 -1
  333. package/source/framework/decorators/routable.decorator.ts +3 -3
  334. package/source/framework/decorators/route-interaction.decorator.ts +2 -2
  335. package/source/framework/decorators/scheduler.decorator.ts +3 -3
  336. package/source/framework/decorators/socket.decorator.ts +3 -3
  337. package/source/framework/encryption.ts +46 -7
  338. package/source/framework/errors/catalog.ts +159 -0
  339. package/source/framework/exceptions/http-exception.ts +1 -1
  340. package/source/framework/health-check.ts +18 -0
  341. package/source/framework/index.ts +2 -0
  342. package/source/framework/mcp/audit.ts +57 -0
  343. package/source/framework/mcp/conformance.ts +195 -0
  344. package/source/framework/mcp/handler.ts +131 -9
  345. package/source/framework/mcp/index.ts +6 -1
  346. package/source/framework/mcp/protocol.ts +6 -0
  347. package/source/framework/mcp/rate-limit.ts +33 -0
  348. package/source/framework/mcp/stdio.ts +150 -0
  349. package/source/framework/mcp/streamable-http.ts +36 -5
  350. package/source/framework/observability/index.ts +6 -0
  351. package/source/framework/observability/metrics.ts +162 -0
  352. package/source/framework/observability/plugin.ts +151 -0
  353. package/source/framework/observability/readiness.ts +22 -0
  354. package/source/framework/observability/request.ts +31 -0
  355. package/source/framework/observability/shutdown.ts +68 -0
  356. package/source/framework/observability/trace.ts +241 -0
  357. package/source/framework/plugins/body-parser.plugin.ts +88 -85
  358. package/source/framework/plugins/dev.plugin.ts +227 -0
  359. package/source/framework/plugins/index.ts +2 -1
  360. package/source/framework/plugins/mcp.plugin.ts +14 -3
  361. package/source/framework/plugins/openapi.plugin.ts +56 -13
  362. package/source/framework/responses/helpers.ts +4 -4
  363. package/source/framework/responses/http-throwable.ts +1 -1
  364. package/source/framework/runtime/bun/server.ts +2 -1
  365. package/source/framework/runtime/deno/server.ts +2 -1
  366. package/source/framework/runtime/index.ts +45 -13
  367. package/source/framework/runtime/node/request.ts +59 -13
  368. package/source/framework/utilities/index.ts +3 -1
  369. package/source/framework/utilities/openapi.utils.impl.ts +705 -0
  370. package/source/framework/utilities/openapi.utils.ts +6 -636
  371. package/source/framework/utilities/route-suggestion.util.ts +59 -0
  372. package/source/framework/utilities/validation.util.ts +20 -0
  373. package/source/generators/artifact.templates.ts +230 -0
  374. package/source/generators/index.ts +2 -0
  375. package/source/generators/project.templates.ts +392 -0
  376. package/source/manifest/client.ts +299 -0
  377. package/source/manifest/contract.ts +138 -0
  378. package/source/manifest/index.ts +5 -0
  379. package/source/manifest/introspect.ts +52 -0
  380. package/source/manifest/manifest.ts +341 -0
  381. package/source/manifest/schema.ts +149 -0
  382. package/source/types/builder.ts +5 -0
  383. package/source/types/config.ts +64 -2
  384. package/source/types/mcp.ts +63 -1
  385. package/tsconfig.build.json +13 -0
  386. package/source/commands/grafts.command.ts +0 -27
  387. package/tests/artifact-resolution.test.ts +0 -60
@@ -0,0 +1,160 @@
1
+ import "reflect-metadata";
2
+ /**
3
+ * Tag metadata for OpenAPI grouping
4
+ */
5
+ export interface ApiTagOptions {
6
+ /**
7
+ * Tag name
8
+ */
9
+ name: string;
10
+ /**
11
+ * Tag description (optional)
12
+ */
13
+ description?: string;
14
+ /**
15
+ * External documentation URL (optional)
16
+ */
17
+ externalDocs?: {
18
+ description?: string;
19
+ url: string;
20
+ };
21
+ }
22
+ /**
23
+ * Decorator to add API tags to a controller or method
24
+ * @param tags Tag(s) to apply
25
+ */
26
+ export declare function ApiTags(...tags: (string | ApiTagOptions)[]): (target: any, propertyKey?: string | symbol) => void;
27
+ /**
28
+ * Operation metadata for OpenAPI
29
+ */
30
+ export interface ApiOperationOptions {
31
+ /**
32
+ * Operation summary
33
+ */
34
+ summary?: string;
35
+ /**
36
+ * Operation description
37
+ */
38
+ description?: string;
39
+ /**
40
+ * Operation ID (unique identifier)
41
+ */
42
+ operationId?: string;
43
+ /**
44
+ * Whether the operation is deprecated
45
+ */
46
+ deprecated?: boolean;
47
+ /**
48
+ * External documentation
49
+ */
50
+ externalDocs?: {
51
+ description?: string;
52
+ url: string;
53
+ };
54
+ }
55
+ /**
56
+ * Decorator to add operation metadata to a method
57
+ * @param options Operation options
58
+ */
59
+ export declare function ApiOperation(options?: ApiOperationOptions): (target: any, propertyKey: string | symbol) => void;
60
+ /**
61
+ * Security requirements for OpenAPI
62
+ */
63
+ export interface ApiSecurityOptions {
64
+ /**
65
+ * Security scheme name
66
+ */
67
+ [key: string]: string[] | undefined;
68
+ }
69
+ /**
70
+ * Decorator to add security requirements to a controller or method
71
+ * @param security Security requirements (scheme name -> scopes[])
72
+ */
73
+ export declare function ApiSecurity(...security: ApiSecurityOptions[]): (target: any, propertyKey?: string | symbol) => void;
74
+ /**
75
+ * Decorator to define request body for a method (alternative to using type detection)
76
+ * @param type The type/schema of the request body
77
+ * @param description Description of the request body (optional)
78
+ * @param required Whether the request body is required (default: true)
79
+ */
80
+ export declare function ApiBody(type: any, description?: string, required?: boolean): (target: any, propertyKey: string | symbol) => void;
81
+ /**
82
+ * Decorator to add additional parameters (complements Parametrable decorators)
83
+ * @param name Parameter name
84
+ * @param options Parameter options
85
+ */
86
+ export declare function ApiParam(name: string, options: {
87
+ /**
88
+ * Parameter location (path, query, header, cookie)
89
+ */
90
+ in: 'path' | 'query' | 'header' | 'cookie';
91
+ /**
92
+ * Parameter description
93
+ */
94
+ description?: string;
95
+ /**
96
+ * Whether the parameter is required
97
+ */
98
+ required?: boolean;
99
+ /**
100
+ * Parameter type (for schema generation)
101
+ */
102
+ type?: any;
103
+ /**
104
+ * Default value (optional)
105
+ */
106
+ default?: any;
107
+ /**
108
+ * Whether this parameter should be excluded from documentation (deprecated)
109
+ * @deprecated
110
+ */
111
+ deprecated?: boolean;
112
+ /**
113
+ * enums values (optional)
114
+ */
115
+ enum?: any[];
116
+ }): (target: any, propertyKey: string | symbol) => void;
117
+ /**
118
+ * Decorator to define a property of a DTO for OpenAPI
119
+ * @param options Property options
120
+ */
121
+ export declare function ApiProperty(options?: {
122
+ type?: any;
123
+ description?: string;
124
+ example?: any;
125
+ required?: boolean;
126
+ enum?: any[];
127
+ isArray?: boolean;
128
+ }): (target: any, propertyKey: string | symbol) => void;
129
+ /**
130
+ * Decorator to add query parameter metadata (shortcut for ApiParam with in: 'query')
131
+ * @param name Parameter name
132
+ * @param options Parameter options (description, required, type, default, deprecated)
133
+ */
134
+ export declare function ApiQuery(name: string, options: {
135
+ /**
136
+ * Parameter description
137
+ */
138
+ description?: string;
139
+ /**
140
+ * Whether the parameter is required
141
+ */
142
+ required?: boolean;
143
+ /**
144
+ * Parameter type (for schema generation)
145
+ */
146
+ type?: any;
147
+ /**
148
+ * Default value (optional)
149
+ */
150
+ default?: any;
151
+ /**
152
+ * Whether this parameter should be excluded from documentation (deprecated)
153
+ * @deprecated
154
+ */
155
+ deprecated?: boolean;
156
+ /**
157
+ * enums values (optional)
158
+ */
159
+ enum?: any[];
160
+ }): (target: any, propertyKey: string | symbol) => void;
@@ -0,0 +1,3 @@
1
+ import type { ControllerDecoratorCallable } from "../../types/controller.ts";
2
+ export declare function Controllable(prefix?: string): (target: any) => void;
3
+ export declare function createControllerDecorator(callable: ControllerDecoratorCallable): (target: any) => void;
@@ -0,0 +1,2 @@
1
+ import type { CsrfGuardOptions } from "../../types/index.ts";
2
+ export declare function CsrfGuard(options?: CsrfGuardOptions): (target: any, propertyKey?: string) => void;
@@ -0,0 +1 @@
1
+ export declare function CsrfToken(): (target: any, propertyKey?: string) => void;
@@ -0,0 +1,2 @@
1
+ import type { GuardOptions } from "../../types/guard.ts";
2
+ export declare function createGuardDecoration({ name, handler }: GuardOptions): (target: any, propertyKey?: string) => void;
@@ -0,0 +1,17 @@
1
+ import "reflect-metadata";
2
+ import { RouteMetaInterface } from "../../types/index.ts";
3
+ export interface HealthCheckOptions {
4
+ path?: string;
5
+ tags?: string[];
6
+ summary?: string;
7
+ description?: string;
8
+ excludeFromDocs?: boolean;
9
+ }
10
+ export interface HealthCheckMetadata {
11
+ options: HealthCheckOptions;
12
+ routeMeta?: RouteMetaInterface;
13
+ controllerPrefix?: string;
14
+ }
15
+ export declare function HealthCheck(options?: HealthCheckOptions): (target: any, propertyKey: string) => void;
16
+ export declare function getHealthCheckMetadata(target: any, propertyKey: string): HealthCheckMetadata | undefined;
17
+ export declare function isHealthCheck(target: any, propertyKey: string): boolean;
@@ -0,0 +1,15 @@
1
+ export * from "./controllable.decorator.ts";
2
+ export * from "./socket.decorator.ts";
3
+ export * from "./middleware.decorator.ts";
4
+ export * from "./routable.decorator.ts";
5
+ export * from "./parametrable.decorator.ts";
6
+ export * from "./injection.decorator.ts";
7
+ export * from "./guard.decorator.ts";
8
+ export * from "./csrf-guard.decorator.ts";
9
+ export * from "./csrf-token.decorator.ts";
10
+ export * from "./api-response.decorator.ts";
11
+ export * from "./api.decorator.ts";
12
+ export * from "./route-interaction.decorator.ts";
13
+ export * from "./health-check.decorator.ts";
14
+ export * from "./mcp.decorator.ts";
15
+ export * from "./scheduler.decorator.ts";
@@ -0,0 +1,5 @@
1
+ import "reflect-metadata";
2
+ import type { ConstructorType } from "../../types/contruct.ts";
3
+ import { LifetimeEnum } from "@protorians/core";
4
+ export declare function Injectable(lifetime?: LifetimeEnum, name?: string, scope?: any): <T extends ConstructorType>(target: T) => void;
5
+ export declare function Inject(token?: any): (target: any, propertyKey: string | symbol | undefined, parameterIndex?: number) => any;
@@ -0,0 +1,68 @@
1
+ import "reflect-metadata";
2
+ import type { McpArgumentMetaInterface, McpArgumentSchema, McpElementMetaInterface, McpServerOptionsInterface, McpToolOptions } from "../../types/index.ts";
3
+ /**
4
+ * Decorate a class as an MCP server. The class methods decorated with
5
+ * {@link McpTool}, {@link McpPrompt}, {@link McpResource} and
6
+ * {@link McpResourceTemplate} become the server's exposed elements.
7
+ *
8
+ * Destructive tools are not exposed unless `exposeDestructive: true` is set
9
+ * explicitly on the server or in project configuration.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * @McpServer({ name: 'math', version: '1.0.0', path: '/mcp' })
14
+ * class MathServer {
15
+ * @McpTool({ name: 'add', description: 'Add two numbers' })
16
+ * add(@McpArg('a', 'First operand', Number) a: number, @McpArg('b') b: number) {
17
+ * return a + b
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ export declare function McpServer(options?: McpServerOptionsInterface): (target: any) => void;
23
+ /**
24
+ * Expose a class method as an MCP tool. `annotations` follows the MCP safety
25
+ * hints; a tool with `destructiveHint: true` is hidden by default.
26
+ */
27
+ export declare function McpTool(options?: McpToolOptions): (target: any, propertyKey: string) => void;
28
+ /**
29
+ * Expose a class method as an MCP prompt template.
30
+ */
31
+ export declare function McpPrompt(options?: {
32
+ name?: string;
33
+ description?: string;
34
+ }): (target: any, propertyKey: string) => void;
35
+ /**
36
+ * Expose a class method as an MCP resource.
37
+ */
38
+ export declare function McpResource(options: {
39
+ uri: string;
40
+ name?: string;
41
+ description?: string;
42
+ mimeType?: string;
43
+ }): (target: any, propertyKey: string) => void;
44
+ /**
45
+ * Expose a class method as an MCP resource template.
46
+ */
47
+ export declare function McpResourceTemplate(options: {
48
+ uriTemplate: string;
49
+ name?: string;
50
+ description?: string;
51
+ mimeType?: string;
52
+ }): (target: any, propertyKey: string) => void;
53
+ /**
54
+ * Shortcut to mark a method as a resource reader (deprecated form, kept for compatibility).
55
+ */
56
+ export declare function McpRead(uri?: string): (target: any, propertyKey: string) => void;
57
+ /**
58
+ * Declare an argument for an MCP tool, prompt or resource handler.
59
+ * Applied to method parameters, in declaration order.
60
+ */
61
+ export declare function McpArg(nameOrOptions: string | McpArgumentMetaInterface, description?: string, metatype?: any): any;
62
+ export { McpArg as McpArgument };
63
+ export declare function schemaFromMetatype(metatype?: any): McpArgumentSchema | undefined;
64
+ /**
65
+ * Return whether a tool must be hidden because it is destructive and the server
66
+ * has not explicitly authorised destructive exposure.
67
+ */
68
+ export declare function isDestructiveTool(element: McpElementMetaInterface): boolean;
@@ -0,0 +1,3 @@
1
+ import type { MiddlewareCallable } from "../../types/middleware.ts";
2
+ export declare function Middleware(middleware: MiddlewareCallable): (target: any, propertyKey?: string) => void;
3
+ export declare function createMiddlewareDecoration(middleware: MiddlewareCallable): (target: any, propertyKey?: string) => void;
@@ -0,0 +1,9 @@
1
+ import "reflect-metadata";
2
+ export declare const Query: (key?: string) => (target: any, propertyKey: string, index: number) => void;
3
+ export declare const Param: (key?: string) => (target: any, propertyKey: string, index: number) => void;
4
+ export declare const Body: (key?: string) => (target: any, propertyKey: string, index: number) => void;
5
+ export declare const UploadedFile: (key?: string) => (target: any, propertyKey: string, index: number) => void;
6
+ export declare const Headers: (key?: string) => (target: any, propertyKey: string, index: number) => void;
7
+ export declare const Cookie: (key?: string) => (target: any, propertyKey: string, index: number) => void;
8
+ export declare const Req: (key?: string) => (target: any, propertyKey: string, index: number) => void;
9
+ export declare const Reply: (key?: string) => (target: any, propertyKey: string, index: number) => void;
@@ -0,0 +1,12 @@
1
+ import { HttpMethod } from "../enums/http-method.enum.ts";
2
+ import type { RouteDecoratorCallable } from "../../types/controller.ts";
3
+ export declare function createRoutableDecorator(method: HttpMethod): (path?: string) => (target: any, propertyKey: string) => void;
4
+ export declare function createRouteDecorator(callable: RouteDecoratorCallable): (target: any, propertyKey: string) => void;
5
+ export declare const Get: (path?: string) => (target: any, propertyKey: string) => void;
6
+ export declare const Post: (path?: string) => (target: any, propertyKey: string) => void;
7
+ export declare const Put: (path?: string) => (target: any, propertyKey: string) => void;
8
+ export declare const Patch: (path?: string) => (target: any, propertyKey: string) => void;
9
+ export declare const Options: (path?: string) => (target: any, propertyKey: string) => void;
10
+ export declare const Trace: (path?: string) => (target: any, propertyKey: string) => void;
11
+ export declare const Delete: (path?: string) => (target: any, propertyKey: string) => void;
12
+ export declare const Head: (path?: string) => (target: any, propertyKey: string) => void;
@@ -0,0 +1,81 @@
1
+ import "reflect-metadata";
2
+ import type { RouteInteractionsSubscriber } from "../../types/router.ts";
3
+ /**
4
+ * Represents a route interaction that can be rendered with context data
5
+ */
6
+ export declare class RouteInteractionDescriptor {
7
+ readonly template: string;
8
+ constructor(template: string);
9
+ /**
10
+ * Renders the interaction template with the provided context data
11
+ * Supports nested object paths using dot notation (e.g., [user.firstname])
12
+ * @param context Object containing values for template placeholders
13
+ * @returns Rendered interaction string with placeholders replaced by context values
14
+ */
15
+ render(context?: Record<string, any>): string;
16
+ /**
17
+ * Get a nested value from an object using dot notation
18
+ * @param obj The object to traverse
19
+ * @param path The dot-notation path (e.g., "user.firstname")
20
+ * @returns The value at the path, or undefined if not found
21
+ */
22
+ private getNestedValue;
23
+ /**
24
+ * Get the raw template string
25
+ */
26
+ getTemplate(): string;
27
+ }
28
+ /**
29
+ * Global registry of route interactions indexed by their full paths
30
+ */
31
+ declare class RouteInteractionsRegistry {
32
+ private static readonly interactions;
33
+ static readonly subscribers: Set<RouteInteractionsSubscriber>;
34
+ static subscribe(target: any, propertyKey: string): typeof RouteInteractionsRegistry;
35
+ /**
36
+ * Register a route interaction
37
+ * @param fullPath The complete route path (prefix + method path)
38
+ * @param descriptor The route interaction descriptor
39
+ */
40
+ static register(fullPath: string, descriptor: RouteInteractionDescriptor): typeof this;
41
+ /**
42
+ * Get a route interaction by its full path
43
+ * @param fullPath The complete route path
44
+ * @returns The interaction descriptor, or undefined if not found
45
+ */
46
+ static get(fullPath: string): RouteInteractionDescriptor | undefined;
47
+ /**
48
+ * Get all registered interactions
49
+ */
50
+ static getAll(): Map<string, RouteInteractionDescriptor>;
51
+ /**
52
+ * Clear all registered interactions
53
+ */
54
+ static clear(): void;
55
+ /**
56
+ * Check if an interaction is registered
57
+ */
58
+ static has(fullPath: string): boolean;
59
+ }
60
+ /**
61
+ * Public API for accessing route interactions
62
+ */
63
+ export declare class RouteInteractions {
64
+ /**
65
+ * Get a route interaction by its full path
66
+ * @param path The complete route path (e.g., "/auth/sign-in/index")
67
+ * @returns The interaction descriptor with a render method, or undefined if not found
68
+ */
69
+ static get(path: string): RouteInteractionDescriptor | undefined;
70
+ /**
71
+ * Get all registered route interactions
72
+ */
73
+ static getAll(): Map<string, RouteInteractionDescriptor>;
74
+ private static upsert;
75
+ }
76
+ /**
77
+ * Decorator to add interaction description to a route method
78
+ * @param description The interaction description template (e.g., "[user] est désormais connecté")
79
+ */
80
+ export declare function RouteInteraction(description: string): (target: any, propertyKey: string) => void;
81
+ export { RouteInteractionsRegistry };
@@ -0,0 +1,54 @@
1
+ import "reflect-metadata";
2
+ import type { CronOptionsInterface, IntervalOptionsInterface, SchedulerOptionsInterface, TaskDeclarationInterface, TimeoutOptionsInterface } from "../../types/index.ts";
3
+ /**
4
+ * Marks a class as a scheduler: a container for scheduled jobs
5
+ * ({@link Cron}, {@link Every}, {@link Timeout}) and named tasks
6
+ * ({@link Task}).
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * @Scheduler({ name: 'maintenance', queue: 'default' })
11
+ * class MaintenanceScheduler {
12
+ * @Cron('0 0 * * *', { name: 'daily-cleanup' })
13
+ * async cleanup(ctx: TaskContextInterface) { ... }
14
+ *
15
+ * @Every('5m', { name: 'heartbeat' })
16
+ * async heartbeat() { ... }
17
+ *
18
+ * @Task('send-email', { consume: true, queue: 'emails' })
19
+ * async sendEmail(ctx: TaskContextInterface<Email>) { ... }
20
+ * }
21
+ * ```
22
+ */
23
+ export declare function Scheduler(options?: SchedulerOptionsInterface): (target: any) => void;
24
+ /**
25
+ * Schedule a method using a cron expression (5 or 6 fields).
26
+ */
27
+ export declare function Cron(expression: string, options?: CronOptionsInterface): (target: any, propertyKey: string) => void;
28
+ /**
29
+ * Schedule a method at a fixed interval. `interval` is a number of
30
+ * milliseconds or a human-readable duration such as `"5s"` or `"1h"`.
31
+ */
32
+ export declare function Every(interval: number | string, options?: IntervalOptionsInterface): (target: any, propertyKey: string) => void;
33
+ /**
34
+ * Schedule a one-shot method after a delay. `delay` is a number of
35
+ * milliseconds or a human-readable duration such as `"30s"`.
36
+ */
37
+ export declare function Timeout(delay: number | string, options?: TimeoutOptionsInterface): (target: any, propertyKey: string) => void;
38
+ /**
39
+ * Register a named task. Tasks are dispatachable in-process
40
+ * (`SchedulerManager.current.dispatch(name, payload)`), enqueueable on a
41
+ * queue backend (`SchedulerManager.current.enqueue(name, payload)`) and,
42
+ * when `options.consume` is `true`, consumed from the queue as a worker.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * @Scheduler()
47
+ * class Jobs {
48
+ * @Task('email:welcome', { queue: 'emails', consume: true, retries: 3 })
49
+ * async welcome(ctx: TaskContextInterface) { ... }
50
+ * }
51
+ * ```
52
+ */
53
+ export declare function Task(name: string, options?: TaskDeclarationInterface): (target: any, propertyKey: string) => void;
54
+ export { Every as Interval };
@@ -0,0 +1,5 @@
1
+ export declare function Socket(namespace?: string): (target: any) => void;
2
+ export declare function OnSocketConnect(): (target: any, propertyKey: string) => void;
3
+ export declare function OnSocketDisconnect(): (target: any, propertyKey: string) => void;
4
+ export declare function OnSocketMessage(name?: string): (target: any, propertyKey: string) => void;
5
+ export declare function OnSocketEvent(name: string): (target: any, propertyKey: string) => void;
@@ -0,0 +1,25 @@
1
+ import type { Options } from "argon2";
2
+ import { HashAlgoEnum, PasswordAlgoEnum } from "./enums/index.ts";
3
+ import type { DerivationOptionsInterface, EncryptionResultType, ScryptOptionsInterface } from "../types/index.ts";
4
+ export declare class Encryption {
5
+ readonly algo: HashAlgoEnum | PasswordAlgoEnum;
6
+ static get algos(): typeof HashAlgoEnum;
7
+ static randomAlgo(algo?: PasswordAlgoEnum[] | HashAlgoEnum[]): HashAlgoEnum | PasswordAlgoEnum;
8
+ constructor(algo: HashAlgoEnum | PasswordAlgoEnum);
9
+ compare(value: string, hash: string): Promise<boolean>;
10
+ make(value: string, options?: DerivationOptionsInterface | ScryptOptionsInterface): Promise<EncryptionResultType>;
11
+ protected sha256(value: string): EncryptionResultType;
12
+ protected sha512(value: string): EncryptionResultType;
13
+ protected md5(value: string): EncryptionResultType;
14
+ protected ripemd160(value: string): EncryptionResultType;
15
+ protected blake2b(value: string): EncryptionResultType;
16
+ protected sha3_256(value: string): EncryptionResultType;
17
+ protected sha3_512(value: string): EncryptionResultType;
18
+ protected pbkdf2(value: string, options?: DerivationOptionsInterface): EncryptionResultType;
19
+ protected scrypt(value: string, options?: ScryptOptionsInterface): EncryptionResultType;
20
+ protected unsupported(): never;
21
+ password(value: string, options?: (Options & {
22
+ raw?: boolean;
23
+ }) | (string | number) | undefined): Promise<EncryptionResultType>;
24
+ checkPassword(hash: string, password: string): Promise<boolean>;
25
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum CSRFModeEnum {
2
+ DOUBLE_SUBMIT = "double-submit",
3
+ SYNCHRONIZER = "synchronizer"
4
+ }
@@ -0,0 +1,20 @@
1
+ export declare enum HashAlgoEnum {
2
+ ARGON2ID = "ARGON2ID",
3
+ BCRYPT = "BCRYPT",
4
+ PBKDF2 = "PBKDF2",
5
+ SCRYPT = "SCRYPT",
6
+ SHA256 = "SHA256",
7
+ SHA512 = "SHA512",
8
+ MD5 = "MD5",
9
+ RIPEMD160 = "RIPEMD160",
10
+ BLAKE2B = "BLAKE2B",
11
+ SHA3_256 = "SHA3_256",
12
+ SHA3_512 = "SHA3_512"
13
+ }
14
+ export declare enum CipherAlgoEnum {
15
+ AES_256_CBC = "AES-256-CBC"
16
+ }
17
+ export declare enum PasswordAlgoEnum {
18
+ ARGON2ID = "ARGON2ID",
19
+ BCRYPT = "BCRYPT"
20
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum EventMessageEnum {
2
+ RESTART = ":restart",
3
+ STOP = ":stop"
4
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum HttpMethod {
2
+ GET = "GET",
3
+ POST = "POST",
4
+ PUT = "PUT",
5
+ DELETE = "DELETE",
6
+ PATCH = "PATCH",
7
+ OPTIONS = "OPTIONS",
8
+ HEAD = "HEAD",
9
+ TRACE = "TRACE"
10
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum Parametrable {
2
+ PARAM = "param",
3
+ BODY = "body",
4
+ QUERY = "query",
5
+ HEADER = "header",
6
+ COOKIE = "cookie",
7
+ REQ = "req",
8
+ REPLY = "reply",
9
+ UPLOAD_FILE = "upload",
10
+ CUSTOM = "custom"
11
+ }
@@ -0,0 +1,64 @@
1
+ export declare enum HttpStatus {
2
+ CONTINUE = 100,
3
+ SWITCHING_PROTOCOLS = 101,
4
+ PROCESSING = 102,
5
+ EARLY_HINTS = 103,
6
+ OK = 200,
7
+ CREATED = 201,
8
+ ACCEPTED = 202,
9
+ NON_AUTHORITATIVE_INFORMATION = 203,
10
+ NO_CONTENT = 204,
11
+ RESET_CONTENT = 205,
12
+ PARTIAL_CONTENT = 206,
13
+ MULTI_STATUS = 207,
14
+ ALREADY_REPORTED = 208,
15
+ IM_USED = 226,
16
+ MULTIPLE_CHOICES = 300,
17
+ MOVED_PERMANENTLY = 301,
18
+ FOUND = 302,
19
+ SEE_OTHER = 303,
20
+ NOT_MODIFIED = 304,
21
+ USE_PROXY = 305,
22
+ TEMPORARY_REDIRECT = 307,
23
+ PERMANENT_REDIRECT = 308,
24
+ BAD_REQUEST = 400,
25
+ UNAUTHORIZED = 401,
26
+ PAYMENT_REQUIRED = 402,
27
+ FORBIDDEN = 403,
28
+ NOT_FOUND = 404,
29
+ METHOD_NOT_ALLOWED = 405,
30
+ NOT_ACCEPTABLE = 406,
31
+ PROXY_AUTHENTICATION_REQUIRED = 407,
32
+ REQUEST_TIMEOUT = 408,
33
+ CONFLICT = 409,
34
+ GONE = 410,
35
+ LENGTH_REQUIRED = 411,
36
+ PRECONDITION_FAILED = 412,
37
+ PAYLOAD_TOO_LARGE = 413,
38
+ URI_TOO_LONG = 414,
39
+ UNSUPPORTED_MEDIA_TYPE = 415,
40
+ RANGE_NOT_SATISFIABLE = 416,
41
+ EXPECTATION_FAILED = 417,
42
+ IM_A_TEAPOT = 418,
43
+ MISDIRECTED_REQUEST = 421,
44
+ UNPROCESSABLE_ENTITY = 422,
45
+ LOCKED = 423,
46
+ FAILED_DEPENDENCY = 424,
47
+ TOO_EARLY = 425,
48
+ UPGRADE_REQUIRED = 426,
49
+ PRECONDITION_REQUIRED = 428,
50
+ TOO_MANY_REQUESTS = 429,
51
+ REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
52
+ UNAVAILABLE_FOR_LEGAL_REASONS = 451,
53
+ INTERNAL_SERVER_ERROR = 500,
54
+ NOT_IMPLEMENTED = 501,
55
+ BAD_GATEWAY = 502,
56
+ SERVICE_UNAVAILABLE = 503,
57
+ GATEWAY_TIMEOUT = 504,
58
+ HTTP_VERSION_NOT_SUPPORTED = 505,
59
+ VARIANT_ALSO_NEGOTIATES = 506,
60
+ INSUFFICIENT_STORAGE = 507,
61
+ LOOP_DETECTED = 508,
62
+ NOT_EXTENDED = 510,
63
+ NETWORK_AUTHENTICATION_REQUIRED = 511
64
+ }
@@ -0,0 +1,9 @@
1
+ export * from "./http-method.enum.ts";
2
+ export * from "./http-parameters.enum.ts";
3
+ export * from "./http-status.enum.ts";
4
+ export * from "./encrypted.enum.ts";
5
+ export * from "./event.message.enum.ts";
6
+ export * from "./timestamp.enum.ts";
7
+ export * from "./runtime.enum.ts";
8
+ export * from "./csrf.enum.ts";
9
+ export * from "./scheduler.enum.ts";
@@ -0,0 +1,5 @@
1
+ export declare enum RuntimeType {
2
+ Node = "node",
3
+ Deno = "deno",
4
+ Bun = "bun"
5
+ }
@@ -0,0 +1,21 @@
1
+ export declare enum TaskTriggerEnum {
2
+ Cron = "cron",
3
+ Interval = "interval",
4
+ Timeout = "timeout",
5
+ Task = "task"
6
+ }
7
+ export declare enum TaskStatusEnum {
8
+ Pending = "pending",
9
+ Running = "running",
10
+ Completed = "completed",
11
+ Failed = "failed",
12
+ Cancelled = "cancelled",
13
+ TimedOut = "timed-out"
14
+ }
15
+ export declare enum TaskPriorityEnum {
16
+ Lowest = "lowest",
17
+ Low = "low",
18
+ Normal = "normal",
19
+ High = "high",
20
+ Highest = "highest"
21
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum TimestampEnum {
2
+ HH_MM_SS = "HH:mm:ss",
3
+ HH_MM_SS_SSS = "HH:mm:ss.SSS",
4
+ DD_MM_YYYY_HH_MM_SS = "DD/MM/YYYY HH:mm:ss",
5
+ DD_MM_YYYY_HH_MM_SS_SSS = "DD/MM/YYYY HH:mm:ss.SSS"
6
+ }
@@ -0,0 +1,3 @@
1
+ import { GenericValueType } from "../types/generic.ts";
2
+ export declare function env<T>(key: string, defaultValue?: T, type?: GenericValueType): T | undefined;
3
+ export declare function envGroup(key: string): Record<string, GenericValueType | undefined>;