alepha 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (869) hide show
  1. package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
  2. package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
  3. package/dist/api/audits/index.browser.js +49 -52
  4. package/dist/api/audits/index.browser.js.map +1 -1
  5. package/dist/api/audits/index.d.ts +629 -565
  6. package/dist/api/audits/index.d.ts.map +1 -1
  7. package/dist/api/audits/index.js +206 -98
  8. package/dist/api/audits/index.js.map +1 -1
  9. package/dist/api/files/index.browser.js +44 -44
  10. package/dist/api/files/index.browser.js.map +1 -1
  11. package/dist/api/files/index.d.ts +292 -293
  12. package/dist/api/files/index.d.ts.map +1 -1
  13. package/dist/api/files/index.js +61 -64
  14. package/dist/api/files/index.js.map +1 -1
  15. package/dist/api/jobs/index.browser.js +61 -59
  16. package/dist/api/jobs/index.browser.js.map +1 -1
  17. package/dist/api/jobs/index.d.ts +546 -347
  18. package/dist/api/jobs/index.d.ts.map +1 -1
  19. package/dist/api/jobs/index.js +165 -86
  20. package/dist/api/jobs/index.js.map +1 -1
  21. package/dist/api/keys/index.d.ts +242 -230
  22. package/dist/api/keys/index.d.ts.map +1 -1
  23. package/dist/api/keys/index.js +63 -66
  24. package/dist/api/keys/index.js.map +1 -1
  25. package/dist/api/notifications/index.browser.js +40 -38
  26. package/dist/api/notifications/index.browser.js.map +1 -1
  27. package/dist/api/notifications/index.d.ts +339 -209
  28. package/dist/api/notifications/index.d.ts.map +1 -1
  29. package/dist/api/notifications/index.js +108 -60
  30. package/dist/api/notifications/index.js.map +1 -1
  31. package/dist/api/oauth/index.d.ts +190 -78
  32. package/dist/api/oauth/index.d.ts.map +1 -1
  33. package/dist/api/oauth/index.js +290 -68
  34. package/dist/api/oauth/index.js.map +1 -1
  35. package/dist/api/organizations/index.browser.js +14 -14
  36. package/dist/api/organizations/index.browser.js.map +1 -1
  37. package/dist/api/organizations/index.d.ts +158 -134
  38. package/dist/api/organizations/index.d.ts.map +1 -1
  39. package/dist/api/organizations/index.js +18 -18
  40. package/dist/api/organizations/index.js.map +1 -1
  41. package/dist/api/parameters/index.browser.js +74 -53
  42. package/dist/api/parameters/index.browser.js.map +1 -1
  43. package/dist/api/parameters/index.d.ts +607 -513
  44. package/dist/api/parameters/index.d.ts.map +1 -1
  45. package/dist/api/parameters/index.js +205 -127
  46. package/dist/api/parameters/index.js.map +1 -1
  47. package/dist/api/payments/index.d.ts +652 -449
  48. package/dist/api/payments/index.d.ts.map +1 -1
  49. package/dist/api/payments/index.js +159 -93
  50. package/dist/api/payments/index.js.map +1 -1
  51. package/dist/api/subscriptions/index.d.ts +1032 -762
  52. package/dist/api/subscriptions/index.d.ts.map +1 -1
  53. package/dist/api/subscriptions/index.js +166 -185
  54. package/dist/api/subscriptions/index.js.map +1 -1
  55. package/dist/api/users/index.browser.js +48 -71
  56. package/dist/api/users/index.browser.js.map +1 -1
  57. package/dist/api/users/index.d.ts +1297 -1109
  58. package/dist/api/users/index.d.ts.map +1 -1
  59. package/dist/api/users/index.js +454 -369
  60. package/dist/api/users/index.js.map +1 -1
  61. package/dist/api/verifications/index.browser.js +17 -17
  62. package/dist/api/verifications/index.browser.js.map +1 -1
  63. package/dist/api/verifications/index.d.ts +169 -157
  64. package/dist/api/verifications/index.d.ts.map +1 -1
  65. package/dist/api/verifications/index.js +47 -95
  66. package/dist/api/verifications/index.js.map +1 -1
  67. package/dist/background/index.d.ts +0 -1
  68. package/dist/background/index.d.ts.map +1 -1
  69. package/dist/background/index.js.map +1 -1
  70. package/dist/background/index.workerd.js.map +1 -1
  71. package/dist/batch/index.d.ts +0 -1
  72. package/dist/batch/index.d.ts.map +1 -1
  73. package/dist/batch/index.js.map +1 -1
  74. package/dist/bin/index.js +1 -1
  75. package/dist/bin/index.js.map +1 -1
  76. package/dist/bucket/index.d.ts +27 -32
  77. package/dist/bucket/index.d.ts.map +1 -1
  78. package/dist/bucket/index.js +56 -26
  79. package/dist/bucket/index.js.map +1 -1
  80. package/dist/bucket/index.workerd.js +52 -24
  81. package/dist/bucket/index.workerd.js.map +1 -1
  82. package/dist/cache/core/index.d.ts +4 -6
  83. package/dist/cache/core/index.d.ts.map +1 -1
  84. package/dist/cache/core/index.js +4 -10
  85. package/dist/cache/core/index.js.map +1 -1
  86. package/dist/cache/core/index.workerd.js +4 -10
  87. package/dist/cache/core/index.workerd.js.map +1 -1
  88. package/dist/cache/database/index.d.ts +22 -23
  89. package/dist/cache/database/index.d.ts.map +1 -1
  90. package/dist/cache/database/index.js +11 -20
  91. package/dist/cache/database/index.js.map +1 -1
  92. package/dist/cache/redis/index.d.ts +3 -4
  93. package/dist/cache/redis/index.d.ts.map +1 -1
  94. package/dist/cache/redis/index.js +2 -2
  95. package/dist/cache/redis/index.js.map +1 -1
  96. package/dist/captcha/index.d.ts.map +1 -1
  97. package/dist/captcha/index.js +4 -4
  98. package/dist/captcha/index.js.map +1 -1
  99. package/dist/cli/config/index.d.ts +0 -1
  100. package/dist/cli/config/index.d.ts.map +1 -1
  101. package/dist/cli/core/index.d.ts +244 -475
  102. package/dist/cli/core/index.d.ts.map +1 -1
  103. package/dist/cli/core/index.js +308 -383
  104. package/dist/cli/core/index.js.map +1 -1
  105. package/dist/cli/devtools/index.d.ts +3 -9
  106. package/dist/cli/devtools/index.d.ts.map +1 -1
  107. package/dist/cli/devtools/index.js +3 -3
  108. package/dist/cli/devtools/index.js.map +1 -1
  109. package/dist/cli/i18n/index.d.ts +20 -39
  110. package/dist/cli/i18n/index.d.ts.map +1 -1
  111. package/dist/cli/i18n/index.js +51 -17
  112. package/dist/cli/i18n/index.js.map +1 -1
  113. package/dist/cli/platform/index.d.ts +89 -82
  114. package/dist/cli/platform/index.d.ts.map +1 -1
  115. package/dist/cli/platform/index.js +27 -33
  116. package/dist/cli/platform/index.js.map +1 -1
  117. package/dist/cli/platform-lib/index.d.ts +383 -410
  118. package/dist/cli/platform-lib/index.d.ts.map +1 -1
  119. package/dist/cli/platform-lib/index.js +300 -258
  120. package/dist/cli/platform-lib/index.js.map +1 -1
  121. package/dist/cli/vendor/index.d.ts +17 -41
  122. package/dist/cli/vendor/index.d.ts.map +1 -1
  123. package/dist/cli/vendor/index.js +10 -13
  124. package/dist/cli/vendor/index.js.map +1 -1
  125. package/dist/command/index.d.ts +82 -194
  126. package/dist/command/index.d.ts.map +1 -1
  127. package/dist/command/index.js +160 -563
  128. package/dist/command/index.js.map +1 -1
  129. package/dist/core/index.browser.js +845 -859
  130. package/dist/core/index.browser.js.map +1 -1
  131. package/dist/core/index.d.ts +787 -527
  132. package/dist/core/index.d.ts.map +1 -1
  133. package/dist/core/index.js +845 -859
  134. package/dist/core/index.js.map +1 -1
  135. package/dist/core/index.native.js +845 -859
  136. package/dist/core/index.native.js.map +1 -1
  137. package/dist/core/index.workerd.js +845 -859
  138. package/dist/core/index.workerd.js.map +1 -1
  139. package/dist/crypto/index.browser.js +1 -1
  140. package/dist/crypto/index.browser.js.map +1 -1
  141. package/dist/crypto/index.d.ts +3 -4
  142. package/dist/crypto/index.d.ts.map +1 -1
  143. package/dist/crypto/index.js +6 -3
  144. package/dist/crypto/index.js.map +1 -1
  145. package/dist/datetime/index.d.ts +12 -2
  146. package/dist/datetime/index.d.ts.map +1 -1
  147. package/dist/datetime/index.js +6 -1
  148. package/dist/datetime/index.js.map +1 -1
  149. package/dist/email/brevo/index.d.ts +0 -1
  150. package/dist/email/brevo/index.d.ts.map +1 -1
  151. package/dist/email/brevo/index.js +4 -4
  152. package/dist/email/brevo/index.js.map +1 -1
  153. package/dist/email/cloudflare/index.d.ts +0 -1
  154. package/dist/email/cloudflare/index.d.ts.map +1 -1
  155. package/dist/email/cloudflare/index.js +2 -2
  156. package/dist/email/cloudflare/index.js.map +1 -1
  157. package/dist/email/core/index.d.ts +15 -7
  158. package/dist/email/core/index.d.ts.map +1 -1
  159. package/dist/email/core/index.js +14 -5
  160. package/dist/email/core/index.js.map +1 -1
  161. package/dist/email/core/index.workerd.js +5 -1
  162. package/dist/email/core/index.workerd.js.map +1 -1
  163. package/dist/email/smtp/index.d.ts +8 -9
  164. package/dist/email/smtp/index.d.ts.map +1 -1
  165. package/dist/email/smtp/index.js +702 -479
  166. package/dist/email/smtp/index.js.map +1 -1
  167. package/dist/fake/index.d.ts +1580 -1238
  168. package/dist/fake/index.d.ts.map +1 -1
  169. package/dist/fake/index.js +11728 -32131
  170. package/dist/fake/index.js.map +1 -1
  171. package/dist/lock/core/index.d.ts +13 -9
  172. package/dist/lock/core/index.d.ts.map +1 -1
  173. package/dist/lock/core/index.js +5 -5
  174. package/dist/lock/core/index.js.map +1 -1
  175. package/dist/lock/redis/index.d.ts +0 -1
  176. package/dist/lock/redis/index.d.ts.map +1 -1
  177. package/dist/lock/redis/index.js.map +1 -1
  178. package/dist/logger/index.d.ts +81 -69
  179. package/dist/logger/index.d.ts.map +1 -1
  180. package/dist/logger/index.js +123 -56
  181. package/dist/logger/index.js.map +1 -1
  182. package/dist/mcp/index.d.ts +36 -90
  183. package/dist/mcp/index.d.ts.map +1 -1
  184. package/dist/mcp/index.js +65 -70
  185. package/dist/mcp/index.js.map +1 -1
  186. package/dist/orm/core/index.browser.js +54 -40
  187. package/dist/orm/core/index.browser.js.map +1 -1
  188. package/dist/orm/core/index.bun.js +140 -106
  189. package/dist/orm/core/index.bun.js.map +1 -1
  190. package/dist/orm/core/index.d.ts +145 -150
  191. package/dist/orm/core/index.d.ts.map +1 -1
  192. package/dist/orm/core/index.js +144 -109
  193. package/dist/orm/core/index.js.map +1 -1
  194. package/dist/orm/postgres/index.bun.js +64 -54
  195. package/dist/orm/postgres/index.bun.js.map +1 -1
  196. package/dist/orm/postgres/index.d.ts +36 -76
  197. package/dist/orm/postgres/index.d.ts.map +1 -1
  198. package/dist/orm/postgres/index.js +67 -57
  199. package/dist/orm/postgres/index.js.map +1 -1
  200. package/dist/queue/core/index.d.ts +62 -75
  201. package/dist/queue/core/index.d.ts.map +1 -1
  202. package/dist/queue/core/index.js +48 -71
  203. package/dist/queue/core/index.js.map +1 -1
  204. package/dist/queue/core/index.workerd.js +48 -71
  205. package/dist/queue/core/index.workerd.js.map +1 -1
  206. package/dist/queue/redis/index.d.ts +3 -4
  207. package/dist/queue/redis/index.d.ts.map +1 -1
  208. package/dist/queue/redis/index.js +2 -2
  209. package/dist/queue/redis/index.js.map +1 -1
  210. package/dist/react/auth/index.browser.js.map +1 -1
  211. package/dist/react/auth/index.d.ts +7 -4
  212. package/dist/react/auth/index.d.ts.map +1 -1
  213. package/dist/react/auth/index.js.map +1 -1
  214. package/dist/react/core/index.d.ts +87 -5
  215. package/dist/react/core/index.d.ts.map +1 -1
  216. package/dist/react/core/index.js +170 -23
  217. package/dist/react/core/index.js.map +1 -1
  218. package/dist/react/form/index.d.ts +4 -6
  219. package/dist/react/form/index.d.ts.map +1 -1
  220. package/dist/react/form/index.js +107 -71
  221. package/dist/react/form/index.js.map +1 -1
  222. package/dist/react/head/index.browser.js.map +1 -1
  223. package/dist/react/head/index.d.ts +0 -1
  224. package/dist/react/head/index.d.ts.map +1 -1
  225. package/dist/react/head/index.js.map +1 -1
  226. package/dist/react/i18n/index.d.ts +47 -5
  227. package/dist/react/i18n/index.d.ts.map +1 -1
  228. package/dist/react/i18n/index.js +116 -12
  229. package/dist/react/i18n/index.js.map +1 -1
  230. package/dist/react/intro/index.d.ts +1 -4
  231. package/dist/react/intro/index.d.ts.map +1 -1
  232. package/dist/react/intro/index.js.map +1 -1
  233. package/dist/react/router/index.browser.js +188 -29
  234. package/dist/react/router/index.browser.js.map +1 -1
  235. package/dist/react/router/index.d.ts +480 -372
  236. package/dist/react/router/index.d.ts.map +1 -1
  237. package/dist/react/router/index.js +261 -47
  238. package/dist/react/router/index.js.map +1 -1
  239. package/dist/react/sitemap/index.browser.js +35 -0
  240. package/dist/react/sitemap/index.browser.js.map +1 -0
  241. package/dist/react/sitemap/index.d.ts +91 -0
  242. package/dist/react/sitemap/index.d.ts.map +1 -0
  243. package/dist/react/sitemap/index.js +131 -0
  244. package/dist/react/sitemap/index.js.map +1 -0
  245. package/dist/react/testing/index.d.ts +4 -5
  246. package/dist/react/testing/index.d.ts.map +1 -1
  247. package/dist/react/testing/index.js +41 -15
  248. package/dist/react/testing/index.js.map +1 -1
  249. package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
  250. package/dist/react/ui/index.d.ts +35 -34
  251. package/dist/react/ui/index.d.ts.map +1 -1
  252. package/dist/react/ui/index.js +12 -17
  253. package/dist/react/ui/index.js.map +1 -1
  254. package/dist/redis/index.bun.js +5 -5
  255. package/dist/redis/index.bun.js.map +1 -1
  256. package/dist/redis/index.d.ts +6 -7
  257. package/dist/redis/index.d.ts.map +1 -1
  258. package/dist/redis/index.js +6 -6
  259. package/dist/redis/index.js.map +1 -1
  260. package/dist/retry/index.d.ts +0 -1
  261. package/dist/retry/index.d.ts.map +1 -1
  262. package/dist/retry/index.js.map +1 -1
  263. package/dist/router/index.d.ts.map +1 -1
  264. package/dist/router/index.js.map +1 -1
  265. package/dist/scheduler/index.d.ts +4 -12
  266. package/dist/scheduler/index.d.ts.map +1 -1
  267. package/dist/scheduler/index.js +9 -4
  268. package/dist/scheduler/index.js.map +1 -1
  269. package/dist/scheduler/index.workerd.js +9 -4
  270. package/dist/scheduler/index.workerd.js.map +1 -1
  271. package/dist/security/index.browser.js +30 -28
  272. package/dist/security/index.browser.js.map +1 -1
  273. package/dist/security/index.d.ts +113 -44
  274. package/dist/security/index.d.ts.map +1 -1
  275. package/dist/security/index.js +452 -37
  276. package/dist/security/index.js.map +1 -1
  277. package/dist/server/auth/index.browser.js +19 -19
  278. package/dist/server/auth/index.browser.js.map +1 -1
  279. package/dist/server/auth/index.d.ts +215 -187
  280. package/dist/server/auth/index.d.ts.map +1 -1
  281. package/dist/server/auth/index.js +1145 -86
  282. package/dist/server/auth/index.js.map +1 -1
  283. package/dist/server/cookies/index.browser.js +103 -5
  284. package/dist/server/cookies/index.browser.js.map +1 -1
  285. package/dist/server/cookies/index.d.ts +86 -4
  286. package/dist/server/cookies/index.d.ts.map +1 -1
  287. package/dist/server/cookies/index.js +121 -8
  288. package/dist/server/cookies/index.js.map +1 -1
  289. package/dist/server/core/index.browser.js +22 -27
  290. package/dist/server/core/index.browser.js.map +1 -1
  291. package/dist/server/core/index.d.ts +134 -85
  292. package/dist/server/core/index.d.ts.map +1 -1
  293. package/dist/server/core/index.js +130 -118
  294. package/dist/server/core/index.js.map +1 -1
  295. package/dist/server/cors/index.d.ts +9 -10
  296. package/dist/server/cors/index.d.ts.map +1 -1
  297. package/dist/server/cors/index.js +14 -26
  298. package/dist/server/cors/index.js.map +1 -1
  299. package/dist/server/etag/index.d.ts +2 -3
  300. package/dist/server/etag/index.d.ts.map +1 -1
  301. package/dist/server/etag/index.js.map +1 -1
  302. package/dist/server/health/index.d.ts +18 -19
  303. package/dist/server/health/index.d.ts.map +1 -1
  304. package/dist/server/health/index.js +6 -6
  305. package/dist/server/health/index.js.map +1 -1
  306. package/dist/server/links/index.browser.js +15 -18
  307. package/dist/server/links/index.browser.js.map +1 -1
  308. package/dist/server/links/index.d.ts +66 -67
  309. package/dist/server/links/index.d.ts.map +1 -1
  310. package/dist/server/links/index.js +29 -32
  311. package/dist/server/links/index.js.map +1 -1
  312. package/dist/server/metrics/index.d.ts +0 -1
  313. package/dist/server/metrics/index.d.ts.map +1 -1
  314. package/dist/server/metrics/index.js +10 -3
  315. package/dist/server/metrics/index.js.map +1 -1
  316. package/dist/server/proxy/index.d.ts +0 -1
  317. package/dist/server/proxy/index.d.ts.map +1 -1
  318. package/dist/server/proxy/index.js.map +1 -1
  319. package/dist/server/rate-limit/index.d.ts +8 -9
  320. package/dist/server/rate-limit/index.d.ts.map +1 -1
  321. package/dist/server/rate-limit/index.js +6 -12
  322. package/dist/server/rate-limit/index.js.map +1 -1
  323. package/dist/server/static/index.d.ts +0 -1
  324. package/dist/server/static/index.d.ts.map +1 -1
  325. package/dist/server/static/index.js.map +1 -1
  326. package/dist/server/swagger/index.d.ts +4 -4
  327. package/dist/server/swagger/index.d.ts.map +1 -1
  328. package/dist/server/swagger/index.js +37 -25
  329. package/dist/server/swagger/index.js.map +1 -1
  330. package/dist/sms/index.d.ts +0 -1
  331. package/dist/sms/index.d.ts.map +1 -1
  332. package/dist/sms/index.js.map +1 -1
  333. package/dist/system/index.browser.js.map +1 -1
  334. package/dist/system/index.d.ts +0 -1
  335. package/dist/system/index.d.ts.map +1 -1
  336. package/dist/system/index.js +2 -1
  337. package/dist/system/index.js.map +1 -1
  338. package/dist/system/index.workerd.js.map +1 -1
  339. package/dist/topic/core/index.d.ts +19 -20
  340. package/dist/topic/core/index.d.ts.map +1 -1
  341. package/dist/topic/core/index.js +8 -8
  342. package/dist/topic/core/index.js.map +1 -1
  343. package/dist/topic/redis/index.d.ts +3 -4
  344. package/dist/topic/redis/index.d.ts.map +1 -1
  345. package/dist/topic/redis/index.js +2 -2
  346. package/dist/topic/redis/index.js.map +1 -1
  347. package/package.json +36 -36
  348. package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
  349. package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
  350. package/src/api/audits/controllers/AdminAuditController.ts +41 -41
  351. package/src/api/audits/entities/audits.ts +22 -22
  352. package/src/api/audits/index.ts +6 -1
  353. package/src/api/audits/jobs/AuditJobs.ts +29 -0
  354. package/src/api/audits/parameters/AuditParameters.ts +51 -0
  355. package/src/api/audits/primitives/$audit.ts +24 -0
  356. package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
  357. package/src/api/audits/schemas/createAuditSchema.ts +18 -18
  358. package/src/api/audits/services/AuditService.ts +79 -7
  359. package/src/api/files/__tests__/FileController.spec.ts +5 -5
  360. package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
  361. package/src/api/files/controllers/FileController.ts +25 -25
  362. package/src/api/files/entities/files.ts +15 -15
  363. package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
  364. package/src/api/files/schemas/fileQuerySchema.ts +9 -9
  365. package/src/api/files/schemas/fileResourceSchema.ts +7 -9
  366. package/src/api/files/schemas/storageStatsSchema.ts +13 -13
  367. package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
  368. package/src/api/jobs/__tests__/$job.spec.ts +18 -18
  369. package/src/api/jobs/controllers/AdminJobController.ts +8 -8
  370. package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
  371. package/src/api/jobs/providers/JobProvider.ts +128 -12
  372. package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
  373. package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
  374. package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
  375. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
  376. package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
  377. package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
  378. package/src/api/jobs/services/JobService.ts +6 -6
  379. package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
  380. package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
  381. package/src/api/keys/entities/apiKeyEntity.ts +15 -15
  382. package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
  383. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
  384. package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
  385. package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
  386. package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
  387. package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
  388. package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
  389. package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
  390. package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
  391. package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
  392. package/src/api/notifications/primitives/$notification.ts +43 -4
  393. package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
  394. package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
  395. package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
  396. package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
  397. package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
  398. package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
  399. package/src/api/notifications/services/NotificationSenderService.ts +38 -2
  400. package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
  401. package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
  402. package/src/api/oauth/controllers/OAuthController.ts +132 -12
  403. package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
  404. package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
  405. package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
  406. package/src/api/oauth/index.ts +1 -0
  407. package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
  408. package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
  409. package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
  410. package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
  411. package/src/api/oauth/services/OAuthClientService.ts +228 -15
  412. package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
  413. package/src/api/organizations/entities/organizations.ts +6 -6
  414. package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
  415. package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
  416. package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
  417. package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
  418. package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
  419. package/src/api/parameters/entities/parameters.ts +29 -16
  420. package/src/api/parameters/primitives/$parameter.ts +3 -3
  421. package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
  422. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
  423. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
  424. package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
  425. package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
  426. package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
  427. package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
  428. package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
  429. package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
  430. package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
  431. package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
  432. package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
  433. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
  434. package/src/api/parameters/services/ParameterProvider.ts +152 -65
  435. package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
  436. package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
  437. package/src/api/payments/controllers/PaymentController.ts +4 -4
  438. package/src/api/payments/entities/paymentIntents.ts +11 -11
  439. package/src/api/payments/entities/paymentMethods.ts +11 -11
  440. package/src/api/payments/entities/refunds.ts +9 -9
  441. package/src/api/payments/providers/PaymentProvider.ts +18 -0
  442. package/src/api/payments/schemas/intentSchemas.ts +25 -25
  443. package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
  444. package/src/api/payments/services/PaymentService.ts +60 -3
  445. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
  446. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
  447. package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
  448. package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
  449. package/src/api/subscriptions/entities/subscriptions.ts +22 -22
  450. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
  451. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
  452. package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
  453. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
  454. package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
  455. package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
  456. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
  457. package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
  458. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
  459. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
  460. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
  461. package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
  462. package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
  463. package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
  464. package/src/api/users/controllers/AdminIdentityController.ts +29 -19
  465. package/src/api/users/controllers/AdminSessionController.ts +37 -27
  466. package/src/api/users/controllers/AdminUserController.ts +75 -53
  467. package/src/api/users/controllers/MySessionController.ts +125 -0
  468. package/src/api/users/controllers/RealmController.ts +9 -9
  469. package/src/api/users/controllers/UserController.ts +55 -55
  470. package/src/api/users/entities/identities.ts +8 -8
  471. package/src/api/users/entities/sessions.ts +17 -17
  472. package/src/api/users/entities/users.ts +17 -17
  473. package/src/api/users/index.ts +3 -0
  474. package/src/api/users/notifications/UserNotifications.ts +76 -24
  475. package/src/api/users/primitives/$realm.ts +12 -0
  476. package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
  477. package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
  478. package/src/api/users/schemas/createUserSchema.ts +2 -2
  479. package/src/api/users/schemas/identityQuerySchema.ts +4 -4
  480. package/src/api/users/schemas/identityResourceSchema.ts +3 -2
  481. package/src/api/users/schemas/loginSchema.ts +4 -4
  482. package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
  483. package/src/api/users/schemas/realmConfigSchema.ts +10 -10
  484. package/src/api/users/schemas/registerQuerySchema.ts +6 -6
  485. package/src/api/users/schemas/registerRequestSchema.ts +21 -43
  486. package/src/api/users/schemas/registerResponseSchema.ts +2 -2
  487. package/src/api/users/schemas/registerSchema.ts +13 -31
  488. package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
  489. package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
  490. package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
  491. package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
  492. package/src/api/users/schemas/updateUserSchema.ts +3 -4
  493. package/src/api/users/schemas/userQuerySchema.ts +7 -7
  494. package/src/api/users/services/RegistrationService.ts +25 -11
  495. package/src/api/users/services/UserService.ts +12 -6
  496. package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
  497. package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
  498. package/src/api/verifications/controllers/VerificationController.ts +13 -27
  499. package/src/api/verifications/entities/verifications.ts +13 -14
  500. package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
  501. package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
  502. package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
  503. package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
  504. package/src/api/verifications/services/VerificationService.ts +12 -0
  505. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
  506. package/src/batch/__tests__/$batch.spec.ts +22 -22
  507. package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
  508. package/src/bin/index.ts +1 -1
  509. package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
  510. package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
  511. package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
  512. package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
  513. package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
  514. package/src/cache/core/primitives/$cache.ts +7 -10
  515. package/src/cache/database/entities/cacheEntries.ts +16 -27
  516. package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
  517. package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
  518. package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
  519. package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
  520. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
  521. package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
  522. package/src/cli/core/atoms/appEntryOptions.ts +5 -5
  523. package/src/cli/core/atoms/buildOptions.ts +76 -88
  524. package/src/cli/core/atoms/changelogOptions.ts +3 -3
  525. package/src/cli/core/atoms/devOptions.ts +3 -3
  526. package/src/cli/core/commands/build.ts +36 -49
  527. package/src/cli/core/commands/db.ts +171 -83
  528. package/src/cli/core/commands/dev.ts +8 -8
  529. package/src/cli/core/commands/gen/changelog.ts +12 -14
  530. package/src/cli/core/commands/gen/env.ts +6 -6
  531. package/src/cli/core/commands/gen/openapi.ts +6 -6
  532. package/src/cli/core/commands/init.ts +28 -33
  533. package/src/cli/core/commands/pack.ts +10 -10
  534. package/src/cli/core/commands/root.ts +7 -8
  535. package/src/cli/core/commands/test.ts +17 -20
  536. package/src/cli/core/index.ts +0 -3
  537. package/src/cli/core/tasks/BuildCloudflareTask.ts +138 -245
  538. package/src/cli/core/tasks/BuildPrerenderTask.ts +44 -7
  539. package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
  540. package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
  541. package/src/cli/i18n/__tests__/I18nCheckService.spec.ts +48 -0
  542. package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
  543. package/src/cli/i18n/services/I18nCheckService.ts +65 -11
  544. package/src/cli/platform/commands/SecretsCommand.ts +24 -25
  545. package/src/cli/platform/commands/platform.ts +40 -46
  546. package/src/cli/platform/index.ts +1 -1
  547. package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
  548. package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
  549. package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
  550. package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +141 -50
  551. package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
  552. package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
  553. package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
  554. package/src/cli/platform-lib/schemas/platform.ts +51 -51
  555. package/src/cli/platform-lib/schemas/vercel.ts +28 -28
  556. package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
  557. package/src/cli/platform-lib/services/VercelApi.ts +4 -4
  558. package/src/cli/platform-lib/services/VercelCli.ts +6 -15
  559. package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
  560. package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
  561. package/src/cli/vendor/commands/VendorCommand.ts +11 -12
  562. package/src/command/__tests__/$command.spec.ts +82 -83
  563. package/src/command/__tests__/Asker.spec.ts +6 -13
  564. package/src/command/__tests__/CliProvider.spec.ts +136 -149
  565. package/src/command/__tests__/Runner.spec.ts +86 -110
  566. package/src/command/helpers/Asker.ts +23 -58
  567. package/src/command/helpers/Runner.ts +34 -110
  568. package/src/command/index.ts +4 -9
  569. package/src/command/primitives/$command.ts +10 -10
  570. package/src/command/providers/CliProvider.ts +183 -161
  571. package/src/core/Alepha.ts +62 -13
  572. package/src/core/__tests__/$atom.spec.ts +52 -3
  573. package/src/core/__tests__/$computed.spec.ts +129 -0
  574. package/src/core/__tests__/$env.spec.ts +13 -13
  575. package/src/core/__tests__/$inject.spec.ts +4 -4
  576. package/src/core/__tests__/$module.spec.ts +1 -1
  577. package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
  578. package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
  579. package/src/core/__tests__/Alepha-start.spec.ts +3 -3
  580. package/src/core/__tests__/CodecManager.spec.ts +113 -94
  581. package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
  582. package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
  583. package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
  584. package/src/core/__tests__/StateManager.spec.ts +423 -0
  585. package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
  586. package/src/core/__tests__/TypeProvider.spec.ts +314 -309
  587. package/src/core/__tests__/dump.spec.ts +6 -6
  588. package/src/core/__tests__/pagination.spec.ts +4 -4
  589. package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
  590. package/src/core/errors/TypeBoxError.ts +10 -4
  591. package/src/core/helpers/FileLike.ts +5 -5
  592. package/src/core/helpers/coerceStrings.ts +70 -0
  593. package/src/core/helpers/jsonSchemaToZod.ts +112 -0
  594. package/src/core/index.shared.ts +4 -1
  595. package/src/core/primitives/$atom.ts +95 -27
  596. package/src/core/primitives/$computed.ts +148 -0
  597. package/src/core/primitives/$env.ts +5 -5
  598. package/src/core/primitives/$state.ts +1 -1
  599. package/src/core/providers/AlsProvider.ts +26 -0
  600. package/src/core/providers/CodecManager.ts +1 -2
  601. package/src/core/providers/JsonSchemaCodec.ts +1 -2
  602. package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
  603. package/src/core/providers/SchemaValidator.ts +48 -158
  604. package/src/core/providers/StateManager.ts +383 -9
  605. package/src/core/providers/TypeProvider.ts +80 -734
  606. package/src/core/providers/ZodProvider.ts +380 -0
  607. package/src/core/providers/zodAugment.ts +69 -0
  608. package/src/core/schemas/pageQuerySchema.ts +19 -21
  609. package/src/core/schemas/pageSchema.ts +47 -57
  610. package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
  611. package/src/crypto/providers/SecretProvider.ts +16 -10
  612. package/src/datetime/primitives/$throttle.ts +6 -1
  613. package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
  614. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
  615. package/src/email/core/index.ts +7 -2
  616. package/src/email/core/primitives/$email.ts +5 -1
  617. package/src/email/core/providers/LocalEmailProvider.ts +5 -5
  618. package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
  619. package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
  620. package/src/fake/__tests__/keyName.example.ts +21 -21
  621. package/src/fake/__tests__/keyName.spec.ts +41 -41
  622. package/src/fake/__tests__/module.example.ts +8 -8
  623. package/src/fake/providers/FakeProvider.ts +122 -121
  624. package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
  625. package/src/lock/core/index.ts +1 -0
  626. package/src/lock/core/primitives/$lock.ts +13 -6
  627. package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
  628. package/src/logger/__tests__/Logger.spec.ts +49 -0
  629. package/src/logger/index.ts +25 -18
  630. package/src/logger/providers/CliFormatterProvider.ts +75 -0
  631. package/src/logger/schemas/logEntrySchema.ts +10 -10
  632. package/src/logger/services/Logger.ts +18 -0
  633. package/src/mcp/__tests__/$prompt.spec.ts +21 -23
  634. package/src/mcp/__tests__/$tool.spec.ts +22 -22
  635. package/src/mcp/__tests__/McpServerProvider.spec.ts +82 -11
  636. package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
  637. package/src/mcp/__tests__/integration.spec.ts +33 -33
  638. package/src/mcp/primitives/$prompt.ts +11 -9
  639. package/src/mcp/primitives/$tool.ts +27 -86
  640. package/src/mcp/providers/McpServerProvider.ts +55 -0
  641. package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
  642. package/src/orm/__tests__/$repository-tests.ts +133 -27
  643. package/src/orm/__tests__/$repository.spec.ts +23 -0
  644. package/src/orm/__tests__/$transactional-tests.ts +4 -4
  645. package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
  646. package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
  647. package/src/orm/__tests__/QueryManager.spec.ts +5 -5
  648. package/src/orm/__tests__/delete-returning-tests.ts +11 -11
  649. package/src/orm/__tests__/deletedAt-tests.ts +3 -3
  650. package/src/orm/__tests__/enums.spec.ts +29 -25
  651. package/src/orm/__tests__/execute-tests.ts +8 -8
  652. package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
  653. package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
  654. package/src/orm/__tests__/joins-tests.ts +30 -30
  655. package/src/orm/__tests__/organization-tests.ts +105 -3
  656. package/src/orm/__tests__/organization.spec.ts +46 -0
  657. package/src/orm/__tests__/orm-errors.spec.ts +10 -10
  658. package/src/orm/__tests__/orm-next-tests.ts +29 -29
  659. package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
  660. package/src/orm/__tests__/primaryKey.spec.ts +4 -4
  661. package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
  662. package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
  663. package/src/orm/__tests__/references.spec.ts +7 -7
  664. package/src/orm/__tests__/security.spec.ts +17 -17
  665. package/src/orm/__tests__/string-operators-tests.ts +5 -5
  666. package/src/orm/__tests__/timestamps-tests.ts +14 -14
  667. package/src/orm/__tests__/validation-tests.ts +5 -5
  668. package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
  669. package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
  670. package/src/orm/core/entities/alephaSequences.ts +8 -8
  671. package/src/orm/core/helpers/pgAttr.ts +4 -4
  672. package/src/orm/core/primitives/$entity.ts +10 -6
  673. package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
  674. package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
  675. package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
  676. package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
  677. package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
  678. package/src/orm/core/schemas/insertSchema.ts +14 -18
  679. package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
  680. package/src/orm/core/schemas/updateSchema.ts +10 -16
  681. package/src/orm/core/services/PgRelationManager.ts +2 -2
  682. package/src/orm/core/services/QueryManager.ts +13 -2
  683. package/src/orm/core/services/Repository.ts +88 -33
  684. package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
  685. package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
  686. package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
  687. package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
  688. package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
  689. package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
  690. package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
  691. package/src/queue/core/__tests__/shared.ts +6 -6
  692. package/src/queue/core/primitives/$consumer.ts +5 -5
  693. package/src/queue/core/primitives/$queue.ts +44 -61
  694. package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
  695. package/src/queue/core/providers/WorkerProvider.ts +17 -14
  696. package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
  697. package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
  698. package/src/react/core/__tests__/Router.spec.tsx +4 -4
  699. package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
  700. package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
  701. package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
  702. package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
  703. package/src/react/core/components/ErrorBoundary.tsx +42 -0
  704. package/src/react/core/hooks/useAction.ts +56 -19
  705. package/src/react/core/hooks/useComputed.ts +91 -0
  706. package/src/react/core/hooks/useSelector.ts +67 -0
  707. package/src/react/core/hooks/useStore.ts +36 -17
  708. package/src/react/core/index.ts +3 -0
  709. package/src/react/core/utils/shallowEqual.ts +36 -0
  710. package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +71 -0
  711. package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +96 -0
  712. package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
  713. package/src/react/form/errors/FormValidationError.ts +0 -2
  714. package/src/react/form/hooks/useForm.ts +19 -4
  715. package/src/react/form/hooks/useFormQuerySync.ts +0 -0
  716. package/src/react/form/services/FormModel.ts +124 -86
  717. package/src/react/form/services/parseField.ts +66 -27
  718. package/src/react/i18n/__tests__/I18nProvider.spec.ts +89 -0
  719. package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
  720. package/src/react/i18n/__tests__/locale-routing.spec.ts +107 -0
  721. package/src/react/i18n/providers/I18nProvider.ts +173 -14
  722. package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
  723. package/src/react/router/__tests__/$page.spec.tsx +21 -21
  724. package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
  725. package/src/react/router/__tests__/RouterLocaleProvider.spec.ts +127 -0
  726. package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
  727. package/src/react/router/components/NestedView.tsx +11 -3
  728. package/src/react/router/hooks/useQueryParams.ts +1 -1
  729. package/src/react/router/index.browser.ts +4 -0
  730. package/src/react/router/index.shared.ts +1 -0
  731. package/src/react/router/index.ts +9 -0
  732. package/src/react/router/primitives/$page.ts +2 -2
  733. package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
  734. package/src/react/router/providers/ReactBrowserRouterProvider.ts +15 -1
  735. package/src/react/router/providers/ReactPageProvider.ts +38 -13
  736. package/src/react/router/providers/ReactServerProvider.ts +105 -16
  737. package/src/react/router/providers/RootComponentsProvider.ts +13 -0
  738. package/src/react/router/providers/RouterLocaleProvider.ts +125 -0
  739. package/src/react/router/providers/__tests__/RootComponentsProvider.spec.ts +15 -0
  740. package/src/react/router/providers/__tests__/rootComponents.ssr.browser.spec.tsx +67 -0
  741. package/src/react/sitemap/__tests__/$sitemap.spec.ts +131 -0
  742. package/src/react/sitemap/index.browser.ts +21 -0
  743. package/src/react/sitemap/index.ts +25 -0
  744. package/src/react/sitemap/primitives/$sitemap.browser.ts +26 -0
  745. package/src/react/sitemap/primitives/$sitemap.ts +196 -0
  746. package/src/react/ui/atoms/uiAtom.ts +6 -6
  747. package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
  748. package/src/react/ui/hooks/useColorMode.ts +11 -4
  749. package/src/react/ui/services/SchemaControl.ts +4 -4
  750. package/src/redis/providers/BunRedisProvider.ts +19 -11
  751. package/src/redis/providers/NodeRedisProvider.ts +3 -3
  752. package/src/scheduler/primitives/$scheduler.ts +21 -8
  753. package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
  754. package/src/security/atoms/currentTenantAtom.ts +6 -6
  755. package/src/security/atoms/currentUserAtom.ts +2 -2
  756. package/src/security/primitives/$issuer.ts +24 -2
  757. package/src/security/providers/JwtProvider.ts +100 -0
  758. package/src/security/providers/SecurityProvider.ts +43 -2
  759. package/src/security/schemas/permissionSchema.ts +19 -19
  760. package/src/security/schemas/roleSchema.ts +22 -28
  761. package/src/security/schemas/userAccountInfoSchema.ts +47 -37
  762. package/src/server/auth/__tests__/appleClientSecret.spec.ts +34 -0
  763. package/src/server/auth/__tests__/federationRedirectReplay.spec.ts +44 -0
  764. package/src/server/auth/helpers/appleClientSecret.ts +24 -0
  765. package/src/server/auth/helpers/jtiReplayGuard.ts +41 -0
  766. package/src/server/auth/helpers/safeRedirectPath.ts +19 -0
  767. package/src/server/auth/index.ts +1 -0
  768. package/src/server/auth/primitives/$auth.ts +6 -6
  769. package/src/server/auth/primitives/$authApple.ts +10 -10
  770. package/src/server/auth/primitives/$authFacebook.ts +10 -10
  771. package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
  772. package/src/server/auth/primitives/$authGithub.ts +10 -10
  773. package/src/server/auth/primitives/$authGoogle.ts +10 -10
  774. package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
  775. package/src/server/auth/providers/ServerAuthProvider.ts +67 -52
  776. package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
  777. package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
  778. package/src/server/auth/schemas/tokensSchema.ts +16 -16
  779. package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
  780. package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
  781. package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
  782. package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
  783. package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +82 -12
  784. package/src/server/cookies/index.browser.ts +4 -1
  785. package/src/server/cookies/index.ts +8 -1
  786. package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
  787. package/src/server/cookies/primitives/$cookie.ts +16 -0
  788. package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
  789. package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
  790. package/src/server/cookies/providers/ServerCookiesProvider.ts +32 -4
  791. package/src/server/cookies/services/CookieParser.ts +6 -1
  792. package/src/server/core/__tests__/$action.spec.ts +13 -13
  793. package/src/server/core/__tests__/$middleware.spec.ts +10 -10
  794. package/src/server/core/__tests__/$route.spec.ts +9 -9
  795. package/src/server/core/__tests__/$sse.spec.ts +26 -26
  796. package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
  797. package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
  798. package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
  799. package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
  800. package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
  801. package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
  802. package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
  803. package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
  804. package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
  805. package/src/server/core/errors/ValidationError.ts +6 -3
  806. package/src/server/core/helpers/isMultipart.ts +2 -1
  807. package/src/server/core/index.ts +5 -2
  808. package/src/server/core/interfaces/ServerRequest.ts +14 -14
  809. package/src/server/core/primitives/$action.ts +26 -36
  810. package/src/server/core/primitives/$route.ts +27 -0
  811. package/src/server/core/primitives/$sse.ts +3 -3
  812. package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
  813. package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
  814. package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
  815. package/src/server/core/providers/ServerCompressProvider.ts +9 -10
  816. package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
  817. package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
  818. package/src/server/core/providers/ServerRouterProvider.ts +44 -15
  819. package/src/server/core/schemas/errorSchema.ts +20 -25
  820. package/src/server/core/schemas/okSchema.ts +9 -14
  821. package/src/server/core/services/HttpClient.ts +13 -1
  822. package/src/server/core/services/ServerRequestParser.ts +6 -6
  823. package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
  824. package/src/server/health/schemas/healthSchema.ts +6 -6
  825. package/src/server/links/__tests__/$remote.spec.ts +3 -3
  826. package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
  827. package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
  828. package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
  829. package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
  830. package/src/server/links/atoms/apiLinksAtom.ts +2 -2
  831. package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
  832. package/src/server/links/primitives/$remote.ts +3 -3
  833. package/src/server/links/providers/LinkProvider.ts +3 -3
  834. package/src/server/links/providers/ServerLinksProvider.ts +20 -20
  835. package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
  836. package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
  837. package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
  838. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
  839. package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
  840. package/src/server/swagger/__tests__/ui.spec.ts +3 -3
  841. package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
  842. package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
  843. package/src/system/providers/NodeShellProvider.ts +4 -1
  844. package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
  845. package/src/topic/core/__tests__/shared.ts +8 -8
  846. package/src/topic/core/primitives/$subscriber.ts +5 -5
  847. package/src/topic/core/primitives/$topic.ts +14 -14
  848. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  849. package/dist/container/core/index.d.ts +0 -236
  850. package/dist/container/core/index.d.ts.map +0 -1
  851. package/dist/container/core/index.js +0 -231
  852. package/dist/container/core/index.js.map +0 -1
  853. package/dist/container/core/index.workerd.js +0 -192
  854. package/dist/container/core/index.workerd.js.map +0 -1
  855. package/src/cli/core/tasks/BuildSitemapTask.ts +0 -130
  856. package/src/command/helpers/PrettyAsker.ts +0 -256
  857. package/src/command/helpers/PrettyPrint.ts +0 -332
  858. package/src/container/core/__tests__/$container.spec.ts +0 -83
  859. package/src/container/core/index.ts +0 -50
  860. package/src/container/core/index.workerd.ts +0 -53
  861. package/src/container/core/interfaces/ContainerOptions.ts +0 -69
  862. package/src/container/core/primitives/$container.ts +0 -100
  863. package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
  864. package/src/container/core/providers/ContainerProvider.ts +0 -92
  865. package/src/container/core/providers/MockContainerProvider.ts +0 -62
  866. package/src/container/core/providers/NodeContainerProvider.ts +0 -53
  867. package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
  868. package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
  869. /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Alepha, Static } from "alepha";
2
- import { CliProvider, EnvUtils, Runner, RunnerMethod } from "alepha/command";
2
+ import { CliProvider, EnvUtils, RunnerMethod } from "alepha/command";
3
3
  import { ConsoleColorProvider } from "alepha/logger";
4
4
  import { FileSystemProvider, ShellProvider } from "alepha/system";
5
5
  import { BrotliOptions, ZlibOptions, brotliCompress, gzip } from "node:zlib";
@@ -7,7 +7,6 @@ import { spawn } from "node:child_process";
7
7
  import * as vite from "vite";
8
8
  import { Logger, Plugin, ViteDevServer } from "vite";
9
9
  import { DatabaseProvider } from "alepha/orm";
10
-
11
10
  //#region ../../src/cli/core/alephaPackageJson.d.ts
12
11
  declare const alephaPackageJson: {
13
12
  name: string;
@@ -26,7 +25,6 @@ declare const alephaPackageJson: {
26
25
  files: string[];
27
26
  dependencies: {
28
27
  "@biomejs/biome": string;
29
- "@cloudflare/containers": string;
30
28
  "@redis/client": string;
31
29
  "@vitejs/plugin-react": string;
32
30
  dayjs: string;
@@ -35,11 +33,11 @@ declare const alephaPackageJson: {
35
33
  postgres: string;
36
34
  s3mini: string;
37
35
  tsx: string;
38
- typebox: string;
39
36
  typescript: string;
40
37
  vite: string;
41
38
  "vite-bundle-analyzer": string;
42
39
  vitest: string;
40
+ zod: string;
43
41
  };
44
42
  devDependencies: {
45
43
  "@cloudflare/workers-types": string;
@@ -61,7 +59,6 @@ declare const alephaPackageJson: {
61
59
  "prom-client": string;
62
60
  react: string;
63
61
  "react-dom": string;
64
- shadcn: string;
65
62
  "swagger-ui-dist": string;
66
63
  tailwindcss: string;
67
64
  tsdown: string;
@@ -255,12 +252,6 @@ declare const alephaPackageJson: {
255
252
  import: string;
256
253
  default: string;
257
254
  };
258
- "./container": {
259
- types: string;
260
- workerd: string;
261
- import: string;
262
- default: string;
263
- };
264
255
  ".": {
265
256
  types: string;
266
257
  "react-native": string;
@@ -393,6 +384,13 @@ declare const alephaPackageJson: {
393
384
  import: string;
394
385
  default: string;
395
386
  };
387
+ "./react/sitemap": {
388
+ types: string;
389
+ "react-native": string;
390
+ browser: string;
391
+ import: string;
392
+ default: string;
393
+ };
396
394
  "./react/testing": {
397
395
  types: string;
398
396
  import: string;
@@ -690,12 +688,6 @@ declare const alephaPackageJson: {
690
688
  import: string;
691
689
  default: string;
692
690
  };
693
- "./container": {
694
- types: string;
695
- workerd: string;
696
- import: string;
697
- default: string;
698
- };
699
691
  ".": {
700
692
  types: string;
701
693
  "react-native": string;
@@ -828,6 +820,13 @@ declare const alephaPackageJson: {
828
820
  import: string;
829
821
  default: string;
830
822
  };
823
+ "./react/sitemap": {
824
+ types: string;
825
+ "react-native": string;
826
+ browser: string;
827
+ import: string;
828
+ default: string;
829
+ };
831
830
  "./react/testing": {
832
831
  types: string;
833
832
  import: string;
@@ -966,11 +965,11 @@ declare const alephaPackageJson: {
966
965
  declare const version: string;
967
966
  //#endregion
968
967
  //#region ../../src/cli/core/atoms/appEntryOptions.d.ts
969
- declare const appEntryOptions: import("alepha").Atom<import("typebox").TObject<{
970
- server: import("typebox").TOptional<import("typebox").TString>;
971
- browser: import("typebox").TOptional<import("typebox").TString>;
972
- style: import("typebox").TOptional<import("typebox").TString>;
973
- }>, "alepha.cli.appEntry.options">;
968
+ declare const appEntryOptions: import("alepha").Atom<import("zod").ZodObject<{
969
+ server: import("zod").ZodOptional<import("zod").ZodString>;
970
+ browser: import("zod").ZodOptional<import("zod").ZodString>;
971
+ style: import("zod").ZodOptional<import("zod").ZodString>;
972
+ }, import("zod/v4/core").$strip>, "alepha.cli.appEntry.options">;
974
973
  type AppEntryOptions = Static<typeof appEntryOptions.schema>;
975
974
  //#endregion
976
975
  //#region ../../src/cli/core/atoms/buildOptions.d.ts
@@ -996,256 +995,72 @@ type BuildRuntime = "node" | "bun" | "workerd";
996
995
  * Defines the available build configuration options with their defaults.
997
996
  * Options can be overridden via alepha.config.ts or CLI flags.
998
997
  */
999
- declare const buildOptions: import("alepha").Atom<import("typebox").TObject<{
1000
- /**
1001
- * Generate build stats report.
1002
- *
1003
- * - `true` - Generate a static HTML report
1004
- * - `"json"` - Generate a JSON report
1005
- */
1006
- stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
1007
- /**
1008
- * Deployment target for the build output.
1009
- *
1010
- * - `docker` - Generate Dockerfile for containerized deployment
1011
- * - `vercel` - Generate Vercel deployment configuration (forces node runtime)
1012
- * - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
1013
- */
1014
- target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
1015
- /**
1016
- * JavaScript runtime for the build output.
1017
- *
1018
- * - `node` - Node.js runtime (default)
1019
- * - `bun` - Bun runtime (uses bun export conditions)
1020
- * - `workerd` - Cloudflare Workers runtime (auto-set with cloudflare target)
1021
- *
1022
- * Note: Some targets force a specific runtime:
1023
- * - `cloudflare` always uses `workerd`
1024
- * - `vercel` always uses `node`
1025
- */
1026
- runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
1027
- /**
1028
- * Output directory configuration.
1029
- */
1030
- output: import("typebox").TOptional<import("typebox").TObject<{
1031
- /**
1032
- * Root dist directory.
1033
- *
1034
- * @default "dist"
1035
- */
1036
- dist: import("typebox").TOptional<import("typebox").TString>;
1037
- /**
1038
- * Public/client subdirectory.
1039
- *
1040
- * @default "public"
1041
- */
1042
- public: import("typebox").TOptional<import("typebox").TString>;
1043
- }>>;
1044
- /**
1045
- * Vercel-specific deployment configuration.
1046
- *
1047
- * Note: Set `target: "vercel"` to enable Vercel deployment.
1048
- * This object is only for additional configuration.
1049
- */
1050
- vercel: import("typebox").TOptional<import("typebox").TObject<{
1051
- projectName: import("typebox").TOptional<import("typebox").TString>;
1052
- orgId: import("typebox").TOptional<import("typebox").TString>;
1053
- projectId: import("typebox").TOptional<import("typebox").TString>;
1054
- config: import("typebox").TOptional<import("typebox").TObject<{
1055
- crons: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
1056
- path: import("typebox").TString;
1057
- schedule: import("typebox").TString;
1058
- }>>>;
1059
- }>>;
998
+ declare const buildOptions: import("alepha").Atom<import("zod").ZodObject<{
999
+ stats: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
1000
+ json: "json";
1001
+ }>]>>;
1002
+ target: import("zod").ZodOptional<import("zod").ZodEnum<{
1003
+ bare: "bare";
1004
+ cloudflare: "cloudflare";
1005
+ docker: "docker";
1006
+ static: "static";
1007
+ vercel: "vercel";
1060
1008
  }>>;
1061
- /**
1062
- * Cloudflare-specific deployment configuration.
1063
- *
1064
- * Note: Set `target: "cloudflare"` to enable Cloudflare deployment.
1065
- * This object is only for additional configuration.
1066
- */
1067
- cloudflare: import("typebox").TOptional<import("typebox").TObject<{
1068
- config: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1009
+ runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
1010
+ bun: "bun";
1011
+ node: "node";
1012
+ workerd: "workerd";
1069
1013
  }>>;
1070
- /**
1071
- * Docker-specific deployment configuration.
1072
- *
1073
- * Note: Set `target: "docker"` to enable Docker deployment.
1074
- * This object is only for additional configuration.
1075
- */
1076
- docker: import("typebox").TOptional<import("typebox").TObject<{
1077
- /**
1078
- * Base image for the Dockerfile (FROM instruction).
1079
- *
1080
- * @default "node:24-alpine" for node runtime
1081
- * @default "oven/bun:alpine" for bun runtime
1082
- */
1083
- from: import("typebox").TOptional<import("typebox").TString>;
1084
- /**
1085
- * Command to run in the Docker container.
1086
- *
1087
- * @default "node" for node runtime
1088
- * @default "bun" for bun runtime
1089
- */
1090
- command: import("typebox").TOptional<import("typebox").TString>;
1091
- /**
1092
- * Extra packages to install globally in the generated image.
1093
- *
1094
- * Each entry becomes a `RUN npm install --global --no-fund
1095
- * --no-audit <pkg> …` line inserted after `FROM` and before the
1096
- * app `COPY`. Use it for CLI tools the running app shells out to
1097
- * typical example is `wrangler` for a service that deploys to
1098
- * Cloudflare on someone else's behalf.
1099
- *
1100
- * Ignored in `compile` mode (the distroless base has no `npm`).
1101
- *
1102
- * @example install: ["wrangler"]
1103
- */
1104
- install: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1105
- /**
1106
- * Docker build options (used when --image flag is passed).
1107
- */
1108
- image: import("typebox").TOptional<import("typebox").TObject<{
1109
- /**
1110
- * Default image tag (name without version).
1111
- *
1112
- * Used when --image is provided without a full override:
1113
- * - `--image` → `tag:latest`
1114
- * - `--image=1.3.4` → `tag:1.3.4`
1115
- * - `--image=other/img:v1` → `other/img:v1` (full override)
1116
- *
1117
- * @example "myproject/myapp"
1118
- * @example "ghcr.io/myorg/myapp"
1119
- */
1120
- tag: import("typebox").TString;
1121
- /**
1122
- * Additional arguments to pass to `docker build`.
1123
- *
1124
- * @example '--platform linux/amd64 --no-cache'
1125
- */
1126
- args: import("typebox").TOptional<import("typebox").TString>;
1127
- /**
1128
- * Auto-add OCI standard labels (revision, created, version).
1129
- *
1130
- * Adds:
1131
- * - org.opencontainers.image.revision (git commit SHA)
1132
- * - org.opencontainers.image.created (build timestamp)
1133
- * - org.opencontainers.image.version (from image tag)
1134
- */
1135
- oci: import("typebox").TOptional<import("typebox").TBoolean>;
1014
+ output: import("zod").ZodOptional<import("zod").ZodObject<{
1015
+ dist: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
1016
+ public: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
1017
+ }, import("zod/v4/core").$strip>>;
1018
+ vercel: import("zod").ZodOptional<import("zod").ZodObject<{
1019
+ projectName: import("zod").ZodOptional<import("zod").ZodString>;
1020
+ orgId: import("zod").ZodOptional<import("zod").ZodString>;
1021
+ projectId: import("zod").ZodOptional<import("zod").ZodString>;
1022
+ config: import("zod").ZodOptional<import("zod").ZodObject<{
1023
+ crons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1024
+ path: import("zod").ZodString;
1025
+ schedule: import("zod").ZodString;
1026
+ }, import("zod/v4/core").$strip>>>;
1027
+ }, import("zod/v4/core").$strip>>;
1028
+ }, import("zod/v4/core").$strip>>;
1029
+ cloudflare: import("zod").ZodOptional<import("zod").ZodObject<{
1030
+ config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1031
+ }, import("zod/v4/core").$strip>>;
1032
+ docker: import("zod").ZodOptional<import("zod").ZodObject<{
1033
+ from: import("zod").ZodOptional<import("zod").ZodString>;
1034
+ command: import("zod").ZodOptional<import("zod").ZodString>;
1035
+ install: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1036
+ image: import("zod").ZodOptional<import("zod").ZodObject<{
1037
+ tag: import("zod").ZodString;
1038
+ args: import("zod").ZodOptional<import("zod").ZodString>;
1039
+ oci: import("zod").ZodOptional<import("zod").ZodBoolean>;
1040
+ }, import("zod/v4/core").$strip>>;
1041
+ compile: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
1042
+ target: import("zod").ZodOptional<import("zod").ZodString>;
1043
+ base: import("zod").ZodOptional<import("zod").ZodString>;
1044
+ minify: import("zod").ZodOptional<import("zod").ZodBoolean>;
1045
+ }, import("zod/v4/core").$strip>]>>;
1046
+ }, import("zod/v4/core").$strip>>;
1047
+ static: import("zod").ZodOptional<import("zod").ZodObject<{
1048
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
1049
+ }, import("zod/v4/core").$strip>>;
1050
+ pwa: import("zod").ZodOptional<import("zod").ZodObject<{
1051
+ name: import("zod").ZodString;
1052
+ shortName: import("zod").ZodOptional<import("zod").ZodString>;
1053
+ themeColor: import("zod").ZodOptional<import("zod").ZodString>;
1054
+ backgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
1055
+ display: import("zod").ZodOptional<import("zod").ZodEnum<{
1056
+ browser: "browser";
1057
+ fullscreen: "fullscreen";
1058
+ "minimal-ui": "minimal-ui";
1059
+ standalone: "standalone";
1136
1060
  }>>;
1137
- /**
1138
- * Compile the server entry to a single static binary using
1139
- * `bun build --compile`, then package it inside a minimal base image
1140
- * (distroless by default). Requires `runtime: "bun"`.
1141
- *
1142
- * When enabled:
1143
- * - the binary is produced at `<dist>/app` and the original `dist/server/`,
1144
- * `dist/index.js` and `dist/package.json` are removed
1145
- * - the generated Dockerfile uses a distroless base image and does not
1146
- * run `bun install` (everything is embedded in the binary)
1147
- * - any non-empty `dependencies` in the externals manifest causes the
1148
- * task to fail loudly (compile requires fully-bundled output)
1149
- *
1150
- * Pass `true` to enable with defaults, or an object to override.
1151
- */
1152
- compile: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TObject<{
1153
- /**
1154
- * Bun target triple, e.g. `bun-linux-x64-musl`,
1155
- * `bun-linux-arm64-musl`, or `bun-linux-x64-modern-musl`
1156
- * (AVX2 required).
1157
- *
1158
- * @default derived from host arch — always linux-musl.
1159
- */
1160
- target: import("typebox").TOptional<import("typebox").TString>;
1161
- /**
1162
- * Base image for the generated Dockerfile.
1163
- *
1164
- * @default "gcr.io/distroless/static-debian12"
1165
- */
1166
- base: import("typebox").TOptional<import("typebox").TString>;
1167
- /**
1168
- * Minify the compiled output.
1169
- *
1170
- * @default true
1171
- */
1172
- minify: import("typebox").TOptional<import("typebox").TBoolean>;
1173
- }>]>>;
1174
- }>>;
1175
- /**
1176
- * Static site deployment configuration.
1177
- *
1178
- * Note: Set `target: "static"` to enable static site generation.
1179
- */
1180
- static: import("typebox").TOptional<import("typebox").TObject<{
1181
- /**
1182
- * Surge domain for deployment.
1183
- *
1184
- * If set, a CNAME file is written to dist/public/.
1185
- * If not set, a domain is auto-generated from package.json name.
1186
- *
1187
- * @example "my-app.surge.sh"
1188
- * @example "my-custom-domain.com"
1189
- */
1190
- domain: import("typebox").TOptional<import("typebox").TString>;
1191
- }>>;
1192
- /**
1193
- * PWA (Progressive Web App) configuration.
1194
- *
1195
- * Generates a web app manifest and enables installability.
1196
- * Requires a client-side bundle (React).
1197
- */
1198
- pwa: import("typebox").TOptional<import("typebox").TObject<{
1199
- /**
1200
- * Full application name displayed on the splash screen
1201
- * and in the OS app switcher.
1202
- */
1203
- name: import("typebox").TString;
1204
- /**
1205
- * Short name displayed on the home screen icon.
1206
- * Falls back to `name` if omitted.
1207
- */
1208
- shortName: import("typebox").TOptional<import("typebox").TString>;
1209
- /**
1210
- * Theme color used for the browser toolbar and OS chrome.
1211
- *
1212
- * @default "#ffffff"
1213
- */
1214
- themeColor: import("typebox").TOptional<import("typebox").TString>;
1215
- /**
1216
- * Background color for the splash screen.
1217
- *
1218
- * @default "#ffffff"
1219
- */
1220
- backgroundColor: import("typebox").TOptional<import("typebox").TString>;
1221
- /**
1222
- * Display mode for the installed PWA.
1223
- *
1224
- * - `standalone` - Looks like a native app (default)
1225
- * - `fullscreen` - Uses entire screen (games, immersive)
1226
- * - `minimal-ui` - Like standalone with minimal browser UI
1227
- * - `browser` - Standard browser tab
1228
- *
1229
- * @default "standalone"
1230
- */
1231
- display: import("typebox").TOptional<import("typebox").TUnsafe<"browser" | "standalone" | "fullscreen" | "minimal-ui">>;
1232
- /**
1233
- * Enable offline support via service worker.
1234
- *
1235
- * TODO: Not yet implemented.
1236
- */
1237
- offline: import("typebox").TOptional<import("typebox").TBoolean>;
1238
- }>>;
1239
- /**
1240
- * Sitemap generation configuration.
1241
- */
1242
- sitemap: import("typebox").TOptional<import("typebox").TObject<{
1243
- /**
1244
- * Base URL for sitemap entries.
1245
- */
1246
- hostname: import("typebox").TString;
1247
- }>>;
1248
- }>, "alepha.cli.build.options">;
1061
+ offline: import("zod").ZodOptional<import("zod").ZodBoolean>;
1062
+ }, import("zod/v4/core").$strip>>;
1063
+ }, import("zod/v4/core").$strip>, "alepha.cli.build.options">;
1249
1064
  /**
1250
1065
  * Type for build options.
1251
1066
  */
@@ -1269,13 +1084,9 @@ declare const DEFAULT_IGNORE: string[];
1269
1084
  * });
1270
1085
  * ```
1271
1086
  */
1272
- declare const changelogOptions: import("alepha").Atom<import("typebox").TObject<{
1273
- /**
1274
- * Scopes to ignore (e.g., "project", "release", "chore").
1275
- * Commits like `feat(chore): ...` will be excluded from changelog.
1276
- */
1277
- ignore: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1278
- }>, "alepha.cli.changelog.options">;
1087
+ declare const changelogOptions: import("alepha").Atom<import("zod").ZodObject<{
1088
+ ignore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1089
+ }, import("zod/v4/core").$strip>, "alepha.cli.changelog.options">;
1279
1090
  type ChangelogOptions = Static<typeof changelogOptions.schema>;
1280
1091
  //#endregion
1281
1092
  //#region ../../src/cli/core/atoms/devOptions.d.ts
@@ -1285,12 +1096,9 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
1285
1096
  * Defines the available dev configuration options with their defaults.
1286
1097
  * Options can be overridden via alepha.config.ts or CLI flags.
1287
1098
  */
1288
- declare const devOptions: import("alepha").Atom<import("typebox").TObject<{
1289
- /**
1290
- * Disable Vite React plugin.
1291
- */
1292
- noViteReactPlugin: import("typebox").TOptional<import("typebox").TBoolean>;
1293
- }>, "alepha.cli.dev.options">;
1099
+ declare const devOptions: import("alepha").Atom<import("zod").ZodObject<{
1100
+ noViteReactPlugin: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
1101
+ }, import("zod/v4/core").$strip>, "alepha.cli.dev.options">;
1294
1102
  /**
1295
1103
  * Type for dev options.
1296
1104
  */
@@ -1745,12 +1553,7 @@ declare class ProjectScaffolder {
1745
1553
  /**
1746
1554
  * Full project init — scaffolds files, installs deps, sets up PM and git.
1747
1555
  */
1748
- init({
1749
- run,
1750
- root,
1751
- flags,
1752
- args
1753
- }: {
1556
+ init({ run, root, flags, args }: {
1754
1557
  run: RunnerMethod;
1755
1558
  root: string;
1756
1559
  flags: {
@@ -1828,20 +1631,15 @@ interface BuildManifest {
1828
1631
  */
1829
1632
  crons: string[];
1830
1633
  /**
1831
- * `$container()` descriptors — image, port, lifecycle settings.
1832
- * Used both to populate Cloudflare Containers bindings in
1833
- * wrangler.jsonc and (in future) to know which images Rocket should
1834
- * pull on the deploy side.
1634
+ * Cloudflare email binding, captured when the app registers
1635
+ * `CloudflareEmailProvider` at artifact-build time. The prebuilt/manifest
1636
+ * deploy path (Alepha Rocket `--prebuilt`) has no Vite introspection, so it
1637
+ * reads this to re-emit the `send_email` wrangler binding. Absent when the
1638
+ * app doesn't use Cloudflare email.
1835
1639
  */
1836
- containers: Array<{
1837
- name: string;
1838
- className: string;
1839
- image: string;
1840
- port: number;
1841
- sleepAfter: string;
1842
- instanceType: string;
1843
- maxInstances: number;
1844
- }>;
1640
+ email?: {
1641
+ binding: string;
1642
+ };
1845
1643
  /**
1846
1644
  * Every env var the app declares via `$env`, captured from
1847
1645
  * `alepha.dump().env` at build time. The deploy `secrets` step uses this
@@ -1872,7 +1670,9 @@ declare class BuildCloudflareTask extends BuildTask {
1872
1670
  * the deploy path can skip the Vite-based introspection step and the
1873
1671
  * workspace's runtime npm install.
1874
1672
  */
1875
- protected writeManifest(ctx: BuildTaskContext, root: string, distDir: string, name: string, containers: ContainerDescriptor[]): Promise<void>;
1673
+ protected writeManifest(ctx: BuildTaskContext, root: string, distDir: string, name: string): Promise<void>;
1674
+ /** Worker-to-worker service bindings, from CLOUDFLARE_SERVICES (JSON). */
1675
+ protected enhanceServices(wrangler: WranglerConfig): void;
1876
1676
  protected enhanceDomain(wrangler: WranglerConfig): void;
1877
1677
  protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
1878
1678
  protected discoverCrons(ctx: BuildTaskContext): string[];
@@ -1884,57 +1684,7 @@ declare class BuildCloudflareTask extends BuildTask {
1884
1684
  protected enhanceKV(wrangler: WranglerConfig): void;
1885
1685
  protected enhanceQueue(wrangler: WranglerConfig): void;
1886
1686
  protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
1887
- /**
1888
- * Discover `$container` primitives and emit the matching Cloudflare
1889
- * Containers bindings, Durable Object bindings, and migrations into
1890
- * `wrangler.jsonc`. The DO class declarations are added later, when
1891
- * the worker entry point is written.
1892
- *
1893
- * Returns the list of container descriptors so
1894
- * `writeWorkerEntryPoint` can emit `export class <NAME> extends
1895
- * Container` declarations referencing them.
1896
- */
1897
- protected discoverContainers(ctx: BuildTaskContext): ContainerDescriptor[];
1898
- /**
1899
- * Expand a short image ref (e.g. `alepha-rocket:0.1.0`) into the
1900
- * fully-qualified `registry.cloudflare.com/<account>/<image>:<tag>`
1901
- * URL that wrangler validates at deploy time.
1902
- *
1903
- * Cloudflare Containers only pulls from `registry.cloudflare.com`;
1904
- * wrangler accepts either a Dockerfile path or a fully-qualified
1905
- * registry URL in the `image` field — not a bare DockerHub-style
1906
- * name. We let `$container({ image })` callers write the short
1907
- * form (it matches what `wrangler containers push <local>` accepts
1908
- * + matches the local docker tag) and rewrite to the CF registry
1909
- * URL here.
1910
- *
1911
- * Pass-through cases:
1912
- * - already a full URL: starts with `registry.cloudflare.com/`
1913
- * or contains a scheme/`://`
1914
- * - looks like a Dockerfile path: starts with `./` or `/`
1915
- */
1916
- protected resolveContainerImage(image: string): string;
1917
- protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
1918
- protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
1919
- }
1920
- interface ContainerDescriptor {
1921
- name: string;
1922
- className: string;
1923
- image: string;
1924
- port: number;
1925
- sleepAfter: string;
1926
- /**
1927
- * Cloudflare Containers instance class.
1928
- *
1929
- * `dev` is the wrangler-pre-GA name; the platform accepts it but
1930
- * emits a deprecation warning telling you to use `lite`. We
1931
- * silently translate at write time (see `discoverContainers`
1932
- * default + `enhanceContainers` write) so older
1933
- * `$container({ instanceType: "dev" })` declarations keep working.
1934
- */
1935
- instanceType: "dev" | "lite" | "basic" | "standard";
1936
- maxInstances: number;
1937
- envVars?: Record<string, string>;
1687
+ protected writeWorkerEntryPoint(root: string, distDir: string): Promise<void>;
1938
1688
  }
1939
1689
  //#endregion
1940
1690
  //#region ../../src/cli/core/tasks/BuildTask.d.ts
@@ -2186,17 +1936,30 @@ declare class BuildDockerTask extends BuildTask {
2186
1936
  //#endregion
2187
1937
  //#region ../../src/cli/core/tasks/BuildPrerenderTask.d.ts
2188
1938
  /**
2189
- * Pre-render static pages defined in the Alepha application.
1939
+ * Pre-render static pages and routes defined in the Alepha application.
1940
+ *
1941
+ * Two passes, both writing into `dist/public`:
1942
+ * - **pages** — every `$page` with `static: true` is rendered to an HTML file
1943
+ * (supports parameterized routes via `static.entries`).
1944
+ * - **routes** — every `static` route primitive (a `$route({ static: true })`
1945
+ * or a `$sitemap`) is invoked in-process and its body written verbatim to
1946
+ * `{path}` (e.g. `sitemap.xml`, `robots.txt`).
2190
1947
  *
2191
- * Queries all page primitives with `static: true` and generates
2192
- * static HTML files for each page. Supports pages with parameterized
2193
- * routes via `static.entries` configuration.
1948
+ * Both passes read the primitive registry and call a method on the already
1949
+ * created primitive instances no provider is re-injected, so this works in
1950
+ * the build's configured-but-not-started container.
2194
1951
  */
2195
1952
  declare class BuildPrerenderTask extends BuildTask {
2196
1953
  protected readonly fs: FileSystemProvider;
2197
1954
  run(ctx: BuildTaskContext): Promise<void>;
2198
1955
  protected getStaticPages(ctx: BuildTaskContext): any[];
1956
+ /**
1957
+ * Static route primitives to snapshot: `$route({ static: true })` and every
1958
+ * `$sitemap`. Both expose an async `prerender(): { path, body }`.
1959
+ */
1960
+ protected getStaticRoutePrimitives(ctx: BuildTaskContext): any[];
2199
1961
  protected prerenderFromAlepha(pages: any[], dist: string): Promise<number>;
1962
+ protected prerenderRoutes(primitives: any[], dist: string): Promise<void>;
2200
1963
  protected renderFile(page: any, options: any, dist: string): Promise<void>;
2201
1964
  }
2202
1965
  //#endregion
@@ -2257,23 +2020,6 @@ declare class BuildServerTask extends BuildTask {
2257
2020
  protected extractEntryFromBundle(root: string, entry: string, result: vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher): string;
2258
2021
  }
2259
2022
  //#endregion
2260
- //#region ../../src/cli/core/tasks/BuildSitemapTask.d.ts
2261
- /**
2262
- * Generate sitemap.xml from Alepha page primitives.
2263
- *
2264
- * Queries all page primitives and generates a sitemap.xml
2265
- * containing URLs for all accessible pages.
2266
- */
2267
- declare class BuildSitemapTask extends BuildTask {
2268
- protected readonly fs: FileSystemProvider;
2269
- run(ctx: BuildTaskContext): Promise<void>;
2270
- protected getSitemapPages(ctx: BuildTaskContext): any[];
2271
- protected generateSitemapFromPages(pages: any[], baseUrl: string): string;
2272
- protected buildPathFromParams(pathPattern: string, params: Record<string, any>): string;
2273
- protected buildSitemapXml(urls: string[]): string;
2274
- protected escapeXml(str: string): string;
2275
- }
2276
- //#endregion
2277
2023
  //#region ../../src/cli/core/tasks/BuildStaticTask.d.ts
2278
2024
  /**
2279
2025
  * Generate a static site output.
@@ -2366,22 +2112,12 @@ declare class BuildCommand {
2366
2112
  protected readonly boot: AppEntryProvider;
2367
2113
  protected readonly viteBuildProvider: ViteBuildProvider;
2368
2114
  protected readonly options: Readonly<{
2369
- stats?: boolean | "json" | undefined;
2370
- target?: "bare" | "docker" | "vercel" | "cloudflare" | "static" | undefined;
2371
- docker?: {
2372
- from?: string | undefined;
2373
- command?: string | undefined;
2374
- install?: string[] | undefined;
2375
- image?: {
2376
- args?: string | undefined;
2377
- oci?: boolean | undefined;
2378
- tag: string;
2379
- } | undefined;
2380
- compile?: boolean | {
2381
- target?: string | undefined;
2382
- base?: string | undefined;
2383
- minify?: boolean | undefined;
2384
- } | undefined;
2115
+ stats?: "json" | boolean | undefined;
2116
+ target?: "bare" | "cloudflare" | "docker" | "static" | "vercel" | undefined;
2117
+ runtime?: "bun" | "node" | "workerd" | undefined;
2118
+ output?: {
2119
+ dist?: string | undefined;
2120
+ public?: string | undefined;
2385
2121
  } | undefined;
2386
2122
  vercel?: {
2387
2123
  projectName?: string | undefined;
@@ -2397,24 +2133,31 @@ declare class BuildCommand {
2397
2133
  cloudflare?: {
2398
2134
  config?: Record<string, any> | undefined;
2399
2135
  } | undefined;
2136
+ docker?: {
2137
+ from?: string | undefined;
2138
+ command?: string | undefined;
2139
+ install?: string[] | undefined;
2140
+ image?: {
2141
+ tag: string;
2142
+ args?: string | undefined;
2143
+ oci?: boolean | undefined;
2144
+ } | undefined;
2145
+ compile?: boolean | {
2146
+ target?: string | undefined;
2147
+ base?: string | undefined;
2148
+ minify?: boolean | undefined;
2149
+ } | undefined;
2150
+ } | undefined;
2400
2151
  static?: {
2401
2152
  domain?: string | undefined;
2402
2153
  } | undefined;
2403
- runtime?: "node" | "bun" | "workerd" | undefined;
2404
- output?: {
2405
- dist?: string | undefined;
2406
- public?: string | undefined;
2407
- } | undefined;
2408
2154
  pwa?: {
2155
+ name: string;
2409
2156
  shortName?: string | undefined;
2410
2157
  themeColor?: string | undefined;
2411
2158
  backgroundColor?: string | undefined;
2412
- display?: "browser" | "standalone" | "fullscreen" | "minimal-ui" | undefined;
2159
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
2413
2160
  offline?: boolean | undefined;
2414
- name: string;
2415
- } | undefined;
2416
- sitemap?: {
2417
- hostname: string;
2418
2161
  } | undefined;
2419
2162
  }>;
2420
2163
  /**
@@ -2422,7 +2165,7 @@ declare class BuildCommand {
2422
2165
  * Each task self-guards (checks target, hasClient, etc.).
2423
2166
  * Order matters — compress must be last.
2424
2167
  */
2425
- protected readonly pipeline: (BuildVercelTask | BuildClientTask | BuildServerTask | BuildAssetsTask | BuildSitemapTask | BuildPwaTask | BuildPrerenderTask | BuildCloudflareTask | BuildDockerTask | BuildStaticTask | BuildCompressTask)[];
2168
+ protected readonly pipeline: (BuildAssetsTask | BuildClientTask | BuildCloudflareTask | BuildCompressTask | BuildDockerTask | BuildPrerenderTask | BuildPwaTask | BuildServerTask | BuildStaticTask | BuildVercelTask)[];
2426
2169
  /**
2427
2170
  * Value aliases accepted for `--target`.
2428
2171
  *
@@ -2448,15 +2191,27 @@ declare class BuildCommand {
2448
2191
  * @throws {AlephaError} If an incompatible runtime is specified for a target
2449
2192
  */
2450
2193
  protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
2451
- readonly build: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2452
- stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
2453
- target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static" | "cf">>;
2454
- runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
2455
- image: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TString]>>;
2456
- compile: import("typebox").TOptional<import("typebox").TBoolean>;
2457
- prebuilt: import("typebox").TOptional<import("typebox").TBoolean>;
2458
- sitemap: import("typebox").TOptional<import("typebox").TString>;
2459
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2194
+ readonly build: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2195
+ stats: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
2196
+ json: "json";
2197
+ }>]>>;
2198
+ target: import("zod").ZodOptional<import("zod").ZodEnum<{
2199
+ bare: "bare";
2200
+ cf: "cf";
2201
+ cloudflare: "cloudflare";
2202
+ docker: "docker";
2203
+ static: "static";
2204
+ vercel: "vercel";
2205
+ }>>;
2206
+ runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
2207
+ bun: "bun";
2208
+ node: "node";
2209
+ workerd: "workerd";
2210
+ }>>;
2211
+ image: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodString]>>;
2212
+ compile: import("zod").ZodOptional<import("zod").ZodBoolean>;
2213
+ prebuilt: import("zod").ZodOptional<import("zod").ZodBoolean>;
2214
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2460
2215
  /**
2461
2216
  * Read `dist/manifest.json` produced by a previous `alepha build`.
2462
2217
  * Returns null when absent or unparseable — caller falls back to the
@@ -2470,7 +2225,7 @@ declare class CleanCommand {
2470
2225
  /**
2471
2226
  * Clean the project, removing the "dist" directory
2472
2227
  */
2473
- readonly clean: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2228
+ readonly clean: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
2474
2229
  }
2475
2230
  //#endregion
2476
2231
  //#region ../../src/cli/core/commands/db.d.ts
@@ -2481,48 +2236,47 @@ declare class DbCommand {
2481
2236
  protected readonly pm: PackageManagerUtils;
2482
2237
  protected readonly entryProvider: AppEntryProvider;
2483
2238
  protected readonly viteUtil: ViteUtils;
2484
- protected readonly runner: Runner;
2485
2239
  /**
2486
2240
  * Check if database migrations are up to date.
2487
2241
  */
2488
- protected readonly check: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2489
- provider: import("typebox").TOptional<import("typebox").TString>;
2490
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2242
+ protected readonly check: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2243
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2244
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2491
2245
  /**
2492
2246
  * Generate database migration files
2493
2247
  */
2494
- protected readonly create: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2495
- provider: import("typebox").TOptional<import("typebox").TString>;
2496
- custom: import("typebox").TOptional<import("typebox").TBoolean>;
2497
- name: import("typebox").TOptional<import("typebox").TString>;
2498
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2248
+ protected readonly create: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2249
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2250
+ custom: import("zod").ZodOptional<import("zod").ZodBoolean>;
2251
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2252
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2499
2253
  /**
2500
2254
  * Push database schema changes directly to the database
2501
2255
  */
2502
- protected readonly push: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2503
- provider: import("typebox").TOptional<import("typebox").TString>;
2504
- dryRun: import("typebox").TOptional<import("typebox").TBoolean>;
2505
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2256
+ protected readonly push: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2257
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2258
+ dryRun: import("zod").ZodOptional<import("zod").ZodBoolean>;
2259
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2506
2260
  /**
2507
2261
  * Apply pending database migrations
2508
2262
  */
2509
- protected readonly apply: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2510
- provider: import("typebox").TOptional<import("typebox").TString>;
2511
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2263
+ protected readonly apply: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2264
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2265
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2512
2266
  /**
2513
2267
  * Launch Drizzle Studio database browser
2514
2268
  */
2515
- protected readonly studio: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2516
- provider: import("typebox").TOptional<import("typebox").TString>;
2517
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2269
+ protected readonly studio: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2270
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2271
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2518
2272
  /**
2519
2273
  * Parent command for migration operations.
2520
2274
  */
2521
- protected readonly migrations: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2275
+ protected readonly migrations: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
2522
2276
  /**
2523
2277
  * Parent command for database operations.
2524
2278
  */
2525
- readonly db: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2279
+ readonly db: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
2526
2280
  /**
2527
2281
  * Run a drizzle-kit command for all database providers in an Alepha instance.
2528
2282
  */
@@ -2541,6 +2295,26 @@ declare class DbCommand {
2541
2295
  * models. This breaks when deploying to a non-public schema via search_path.
2542
2296
  */
2543
2297
  protected stripPublicSchemaFromMigrations(migrationsDir: string): Promise<void>;
2298
+ /**
2299
+ * Refuse a freshly generated migration that drops a table.
2300
+ *
2301
+ * Drizzle rebuilds a SQLite table by dropping and recreating it. On
2302
+ * Cloudflare D1 that is a data-loss bomb: D1 ignores `PRAGMA
2303
+ * foreign_keys=OFF`, so dropping a table that other tables reference with
2304
+ * `ON DELETE CASCADE` silently wipes every child row — with no error, on
2305
+ * deploy, in production.
2306
+ *
2307
+ * The generated file is left on disk on purpose: the point is to force a
2308
+ * human to read it. If the drop really is intended, keep the file and move
2309
+ * on (a re-run detects no schema diff, so nothing is regenerated and this
2310
+ * guard stays quiet).
2311
+ */
2312
+ protected assertNoDestructiveMigrations(migrationsDir: string, files: string[]): Promise<void>;
2313
+ /**
2314
+ * Extract `DROP TABLE` statements from a SQL migration, skipping any that sit
2315
+ * inside a `--` line comment.
2316
+ */
2317
+ protected findDropTableStatements(sql: string): string[];
2544
2318
  /**
2545
2319
  * Prepare Drizzle configuration files for a database provider.
2546
2320
  */
@@ -2779,9 +2553,9 @@ declare class DevCommand {
2779
2553
  * When run from a workspace root (with apps/ directory), spawns all apps in parallel.
2780
2554
  * When run from an app directory, starts a single Vite dev server.
2781
2555
  */
2782
- readonly dev: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2783
- only: import("typebox").TOptional<import("typebox").TString>;
2784
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2556
+ readonly dev: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2557
+ only: import("zod").ZodOptional<import("zod").ZodString>;
2558
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2785
2559
  /**
2786
2560
  * Discover apps in the workspace root.
2787
2561
  *
@@ -2904,20 +2678,10 @@ declare class ChangelogCommand {
2904
2678
  * Get the latest version tag.
2905
2679
  */
2906
2680
  protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
2907
- readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2908
- /**
2909
- * Show changes from this ref (tag, commit, branch).
2910
- * Defaults to the latest version tag.
2911
- * Example: --from=1.0.0
2912
- */
2913
- from: import("typebox").TOptional<import("typebox").TString>;
2914
- /**
2915
- * Show changes up to this ref (tag, commit, branch).
2916
- * Defaults to HEAD.
2917
- * Example: --to=main
2918
- */
2919
- to: import("typebox").TOptional<import("typebox").TString>;
2920
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2681
+ readonly command: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2682
+ from: import("zod").ZodOptional<import("zod").ZodString>;
2683
+ to: import("zod").ZodOptional<import("zod").ZodString>;
2684
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2921
2685
  }
2922
2686
  //#endregion
2923
2687
  //#region ../../src/cli/core/commands/gen/openapi.d.ts
@@ -2925,9 +2689,9 @@ declare class OpenApiCommand {
2925
2689
  protected readonly log: import("alepha/logger").Logger;
2926
2690
  protected readonly utils: AlephaCliUtils;
2927
2691
  protected readonly fs: FileSystemProvider;
2928
- readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2929
- out: import("typebox").TOptional<import("typebox").TString>;
2930
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2692
+ readonly command: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2693
+ out: import("zod").ZodOptional<import("zod").ZodString>;
2694
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2931
2695
  }
2932
2696
  //#endregion
2933
2697
  //#region ../../src/cli/core/commands/init.d.ts
@@ -2937,20 +2701,25 @@ declare class InitCommand {
2937
2701
  * Ensure the project has the necessary Alepha configuration files.
2938
2702
  * Add the correct dependencies to package.json and install them.
2939
2703
  */
2940
- readonly init: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2941
- pm: import("typebox").TOptional<import("typebox").TUnsafe<"bun" | "yarn" | "npm" | "pnpm">>;
2942
- api: import("typebox").TOptional<import("typebox").TBoolean>;
2943
- react: import("typebox").TOptional<import("typebox").TBoolean>;
2944
- tailwind: import("typebox").TOptional<import("typebox").TBoolean>;
2945
- force: import("typebox").TOptional<import("typebox").TBoolean>;
2946
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
2704
+ readonly init: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2705
+ pm: import("zod").ZodOptional<import("zod").ZodEnum<{
2706
+ bun: "bun";
2707
+ npm: "npm";
2708
+ pnpm: "pnpm";
2709
+ yarn: "yarn";
2710
+ }>>;
2711
+ api: import("zod").ZodOptional<import("zod").ZodBoolean>;
2712
+ react: import("zod").ZodOptional<import("zod").ZodBoolean>;
2713
+ tailwind: import("zod").ZodOptional<import("zod").ZodBoolean>;
2714
+ force: import("zod").ZodOptional<import("zod").ZodBoolean>;
2715
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
2947
2716
  }
2948
2717
  //#endregion
2949
2718
  //#region ../../src/cli/core/commands/lint.d.ts
2950
2719
  declare class LintCommand {
2951
2720
  protected readonly utils: AlephaCliUtils;
2952
2721
  protected readonly scaffolder: ProjectScaffolder;
2953
- readonly lint: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2722
+ readonly lint: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
2954
2723
  }
2955
2724
  //#endregion
2956
2725
  //#region ../../src/cli/core/commands/pack.d.ts
@@ -2978,10 +2747,10 @@ declare class PackCommand {
2978
2747
  protected readonly log: import("alepha/logger").Logger;
2979
2748
  protected readonly fs: FileSystemProvider;
2980
2749
  protected readonly shell: ShellProvider;
2981
- readonly pack: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2982
- tag: import("typebox").TOptional<import("typebox").TString>;
2983
- output: import("typebox").TOptional<import("typebox").TString>;
2984
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2750
+ readonly pack: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2751
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
2752
+ output: import("zod").ZodOptional<import("zod").ZodString>;
2753
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2985
2754
  }
2986
2755
  //#endregion
2987
2756
  //#region ../../src/cli/core/commands/root.d.ts
@@ -2993,20 +2762,20 @@ declare class RootCommand {
2993
2762
  /**
2994
2763
  * Called when no command is provided
2995
2764
  */
2996
- readonly root: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2997
- version: import("typebox").TOptional<import("typebox").TBoolean>;
2998
- }>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2765
+ readonly root: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2766
+ version: import("zod").ZodOptional<import("zod").ZodBoolean>;
2767
+ }, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
2999
2768
  }
3000
2769
  //#endregion
3001
2770
  //#region ../../src/cli/core/commands/test.d.ts
3002
2771
  declare class TestCommand {
3003
2772
  protected readonly utils: AlephaCliUtils;
3004
2773
  protected readonly scaffolder: ProjectScaffolder;
3005
- readonly test: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
3006
- config: import("typebox").TOptional<import("typebox").TString>;
3007
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<{
3008
- VITEST_ARGS: import("typebox").TOptional<import("typebox").TString>;
3009
- }>>;
2774
+ readonly test: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
2775
+ config: import("zod").ZodOptional<import("zod").ZodString>;
2776
+ }, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodObject<{
2777
+ VITEST_ARGS: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
2778
+ }, import("zod/v4/core").$strip>>;
3010
2779
  }
3011
2780
  //#endregion
3012
2781
  //#region ../../src/cli/core/commands/typecheck.d.ts
@@ -3016,7 +2785,7 @@ declare class TypecheckCommand {
3016
2785
  /**
3017
2786
  * Run TypeScript type checking across the codebase with no emit.
3018
2787
  */
3019
- readonly typecheck: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2788
+ readonly typecheck: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
3020
2789
  }
3021
2790
  //#endregion
3022
2791
  //#region ../../src/cli/core/commands/verify.d.ts
@@ -3036,7 +2805,7 @@ declare class VerifyCommand {
3036
2805
  * - Build the project
3037
2806
  * - Clean the project again
3038
2807
  */
3039
- readonly verify: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
2808
+ readonly verify: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
3040
2809
  }
3041
2810
  //#endregion
3042
2811
  //#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts
@@ -3057,5 +2826,5 @@ declare const AlephaCliServices: import("alepha").Service<import("alepha").Modul
3057
2826
  */
3058
2827
  declare const AlephaCli: import("alepha").Service<import("alepha").Module>;
3059
2828
  //#endregion
3060
- export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildManifest, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildSitemapTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OnAlephaLoadedHook, OpenApiCommand, PackCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, alephaPackageJson, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
2829
+ export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildManifest, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OnAlephaLoadedHook, OpenApiCommand, PackCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, alephaPackageJson, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
3061
2830
  //# sourceMappingURL=index.d.ts.map