alepha 0.23.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 (845) 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 +247 -235
  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 -1143
  58. package/dist/api/users/index.d.ts.map +1 -1
  59. package/dist/api/users/index.js +456 -392
  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 +167 -155
  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 +205 -442
  102. package/dist/cli/core/index.d.ts.map +1 -1
  103. package/dist/cli/core/index.js +259 -284
  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 +8 -34
  110. package/dist/cli/i18n/index.d.ts.map +1 -1
  111. package/dist/cli/i18n/index.js +6 -6
  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 +351 -404
  118. package/dist/cli/platform-lib/index.d.ts.map +1 -1
  119. package/dist/cli/platform-lib/index.js +218 -239
  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 +83 -195
  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 +27 -90
  183. package/dist/mcp/index.d.ts.map +1 -1
  184. package/dist/mcp/index.js +42 -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 -5
  219. package/dist/react/form/index.d.ts.map +1 -1
  220. package/dist/react/form/index.js +91 -56
  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 +4 -5
  227. package/dist/react/i18n/index.d.ts.map +1 -1
  228. package/dist/react/i18n/index.js +2 -2
  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 +60 -24
  234. package/dist/react/router/index.browser.js.map +1 -1
  235. package/dist/react/router/index.d.ts +378 -377
  236. package/dist/react/router/index.d.ts.map +1 -1
  237. package/dist/react/router/index.js +77 -41
  238. package/dist/react/router/index.js.map +1 -1
  239. package/dist/react/sitemap/index.d.ts +0 -1
  240. package/dist/react/sitemap/index.d.ts.map +1 -1
  241. package/dist/react/sitemap/index.js.map +1 -1
  242. package/dist/react/testing/index.d.ts +4 -5
  243. package/dist/react/testing/index.d.ts.map +1 -1
  244. package/dist/react/testing/index.js +41 -15
  245. package/dist/react/testing/index.js.map +1 -1
  246. package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
  247. package/dist/react/ui/index.d.ts +35 -34
  248. package/dist/react/ui/index.d.ts.map +1 -1
  249. package/dist/react/ui/index.js +12 -17
  250. package/dist/react/ui/index.js.map +1 -1
  251. package/dist/redis/index.bun.js +5 -5
  252. package/dist/redis/index.bun.js.map +1 -1
  253. package/dist/redis/index.d.ts +6 -7
  254. package/dist/redis/index.d.ts.map +1 -1
  255. package/dist/redis/index.js +6 -6
  256. package/dist/redis/index.js.map +1 -1
  257. package/dist/retry/index.d.ts +0 -1
  258. package/dist/retry/index.d.ts.map +1 -1
  259. package/dist/retry/index.js.map +1 -1
  260. package/dist/router/index.d.ts.map +1 -1
  261. package/dist/router/index.js.map +1 -1
  262. package/dist/scheduler/index.d.ts +4 -12
  263. package/dist/scheduler/index.d.ts.map +1 -1
  264. package/dist/scheduler/index.js +9 -4
  265. package/dist/scheduler/index.js.map +1 -1
  266. package/dist/scheduler/index.workerd.js +9 -4
  267. package/dist/scheduler/index.workerd.js.map +1 -1
  268. package/dist/security/index.browser.js +30 -28
  269. package/dist/security/index.browser.js.map +1 -1
  270. package/dist/security/index.d.ts +113 -44
  271. package/dist/security/index.d.ts.map +1 -1
  272. package/dist/security/index.js +452 -37
  273. package/dist/security/index.js.map +1 -1
  274. package/dist/server/auth/index.browser.js +19 -19
  275. package/dist/server/auth/index.browser.js.map +1 -1
  276. package/dist/server/auth/index.d.ts +198 -274
  277. package/dist/server/auth/index.d.ts.map +1 -1
  278. package/dist/server/auth/index.js +83 -621
  279. package/dist/server/auth/index.js.map +1 -1
  280. package/dist/server/cookies/index.browser.js +103 -5
  281. package/dist/server/cookies/index.browser.js.map +1 -1
  282. package/dist/server/cookies/index.d.ts +72 -5
  283. package/dist/server/cookies/index.d.ts.map +1 -1
  284. package/dist/server/cookies/index.js +103 -9
  285. package/dist/server/cookies/index.js.map +1 -1
  286. package/dist/server/core/index.browser.js +22 -27
  287. package/dist/server/core/index.browser.js.map +1 -1
  288. package/dist/server/core/index.d.ts +116 -85
  289. package/dist/server/core/index.d.ts.map +1 -1
  290. package/dist/server/core/index.js +105 -118
  291. package/dist/server/core/index.js.map +1 -1
  292. package/dist/server/cors/index.d.ts +9 -10
  293. package/dist/server/cors/index.d.ts.map +1 -1
  294. package/dist/server/cors/index.js +14 -26
  295. package/dist/server/cors/index.js.map +1 -1
  296. package/dist/server/etag/index.d.ts +2 -3
  297. package/dist/server/etag/index.d.ts.map +1 -1
  298. package/dist/server/etag/index.js.map +1 -1
  299. package/dist/server/health/index.d.ts +18 -19
  300. package/dist/server/health/index.d.ts.map +1 -1
  301. package/dist/server/health/index.js +6 -6
  302. package/dist/server/health/index.js.map +1 -1
  303. package/dist/server/links/index.browser.js +15 -18
  304. package/dist/server/links/index.browser.js.map +1 -1
  305. package/dist/server/links/index.d.ts +66 -67
  306. package/dist/server/links/index.d.ts.map +1 -1
  307. package/dist/server/links/index.js +29 -32
  308. package/dist/server/links/index.js.map +1 -1
  309. package/dist/server/metrics/index.d.ts +0 -1
  310. package/dist/server/metrics/index.d.ts.map +1 -1
  311. package/dist/server/metrics/index.js +10 -3
  312. package/dist/server/metrics/index.js.map +1 -1
  313. package/dist/server/proxy/index.d.ts +0 -1
  314. package/dist/server/proxy/index.d.ts.map +1 -1
  315. package/dist/server/proxy/index.js.map +1 -1
  316. package/dist/server/rate-limit/index.d.ts +8 -9
  317. package/dist/server/rate-limit/index.d.ts.map +1 -1
  318. package/dist/server/rate-limit/index.js +6 -12
  319. package/dist/server/rate-limit/index.js.map +1 -1
  320. package/dist/server/static/index.d.ts +0 -1
  321. package/dist/server/static/index.d.ts.map +1 -1
  322. package/dist/server/static/index.js.map +1 -1
  323. package/dist/server/swagger/index.d.ts +4 -4
  324. package/dist/server/swagger/index.d.ts.map +1 -1
  325. package/dist/server/swagger/index.js +37 -25
  326. package/dist/server/swagger/index.js.map +1 -1
  327. package/dist/sms/index.d.ts +0 -1
  328. package/dist/sms/index.d.ts.map +1 -1
  329. package/dist/sms/index.js.map +1 -1
  330. package/dist/system/index.browser.js.map +1 -1
  331. package/dist/system/index.d.ts +0 -1
  332. package/dist/system/index.d.ts.map +1 -1
  333. package/dist/system/index.js +2 -1
  334. package/dist/system/index.js.map +1 -1
  335. package/dist/system/index.workerd.js.map +1 -1
  336. package/dist/topic/core/index.d.ts +19 -20
  337. package/dist/topic/core/index.d.ts.map +1 -1
  338. package/dist/topic/core/index.js +8 -8
  339. package/dist/topic/core/index.js.map +1 -1
  340. package/dist/topic/redis/index.d.ts +3 -4
  341. package/dist/topic/redis/index.d.ts.map +1 -1
  342. package/dist/topic/redis/index.js +2 -2
  343. package/dist/topic/redis/index.js.map +1 -1
  344. package/package.json +22 -35
  345. package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
  346. package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
  347. package/src/api/audits/controllers/AdminAuditController.ts +41 -41
  348. package/src/api/audits/entities/audits.ts +22 -22
  349. package/src/api/audits/index.ts +6 -1
  350. package/src/api/audits/jobs/AuditJobs.ts +29 -0
  351. package/src/api/audits/parameters/AuditParameters.ts +51 -0
  352. package/src/api/audits/primitives/$audit.ts +24 -0
  353. package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
  354. package/src/api/audits/schemas/createAuditSchema.ts +18 -18
  355. package/src/api/audits/services/AuditService.ts +79 -7
  356. package/src/api/files/__tests__/FileController.spec.ts +5 -5
  357. package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
  358. package/src/api/files/controllers/FileController.ts +25 -25
  359. package/src/api/files/entities/files.ts +15 -15
  360. package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
  361. package/src/api/files/schemas/fileQuerySchema.ts +9 -9
  362. package/src/api/files/schemas/fileResourceSchema.ts +7 -9
  363. package/src/api/files/schemas/storageStatsSchema.ts +13 -13
  364. package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
  365. package/src/api/jobs/__tests__/$job.spec.ts +18 -18
  366. package/src/api/jobs/controllers/AdminJobController.ts +8 -8
  367. package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
  368. package/src/api/jobs/providers/JobProvider.ts +128 -12
  369. package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
  370. package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
  371. package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
  372. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
  373. package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
  374. package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
  375. package/src/api/jobs/services/JobService.ts +6 -6
  376. package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
  377. package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
  378. package/src/api/keys/entities/apiKeyEntity.ts +15 -15
  379. package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
  380. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
  381. package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
  382. package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
  383. package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
  384. package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
  385. package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
  386. package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
  387. package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
  388. package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
  389. package/src/api/notifications/primitives/$notification.ts +43 -4
  390. package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
  391. package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
  392. package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
  393. package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
  394. package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
  395. package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
  396. package/src/api/notifications/services/NotificationSenderService.ts +38 -2
  397. package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
  398. package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
  399. package/src/api/oauth/controllers/OAuthController.ts +132 -12
  400. package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
  401. package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
  402. package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
  403. package/src/api/oauth/index.ts +1 -0
  404. package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
  405. package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
  406. package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
  407. package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
  408. package/src/api/oauth/services/OAuthClientService.ts +228 -15
  409. package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
  410. package/src/api/organizations/entities/organizations.ts +6 -6
  411. package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
  412. package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
  413. package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
  414. package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
  415. package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
  416. package/src/api/parameters/entities/parameters.ts +29 -16
  417. package/src/api/parameters/primitives/$parameter.ts +3 -3
  418. package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
  419. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
  420. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
  421. package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
  422. package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
  423. package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
  424. package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
  425. package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
  426. package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
  427. package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
  428. package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
  429. package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
  430. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
  431. package/src/api/parameters/services/ParameterProvider.ts +152 -65
  432. package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
  433. package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
  434. package/src/api/payments/controllers/PaymentController.ts +4 -4
  435. package/src/api/payments/entities/paymentIntents.ts +11 -11
  436. package/src/api/payments/entities/paymentMethods.ts +11 -11
  437. package/src/api/payments/entities/refunds.ts +9 -9
  438. package/src/api/payments/providers/PaymentProvider.ts +18 -0
  439. package/src/api/payments/schemas/intentSchemas.ts +25 -25
  440. package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
  441. package/src/api/payments/services/PaymentService.ts +60 -3
  442. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
  443. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
  444. package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
  445. package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
  446. package/src/api/subscriptions/entities/subscriptions.ts +22 -22
  447. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
  448. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
  449. package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
  450. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
  451. package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
  452. package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
  453. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
  454. package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
  455. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
  456. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
  457. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
  458. package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
  459. package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
  460. package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
  461. package/src/api/users/controllers/AdminIdentityController.ts +29 -19
  462. package/src/api/users/controllers/AdminSessionController.ts +37 -27
  463. package/src/api/users/controllers/AdminUserController.ts +75 -53
  464. package/src/api/users/controllers/MySessionController.ts +125 -0
  465. package/src/api/users/controllers/RealmController.ts +9 -10
  466. package/src/api/users/controllers/UserController.ts +55 -55
  467. package/src/api/users/entities/identities.ts +8 -8
  468. package/src/api/users/entities/sessions.ts +17 -17
  469. package/src/api/users/entities/users.ts +17 -17
  470. package/src/api/users/index.ts +3 -0
  471. package/src/api/users/notifications/UserNotifications.ts +76 -24
  472. package/src/api/users/primitives/$realm.ts +12 -26
  473. package/src/api/users/providers/RealmProvider.ts +0 -15
  474. package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
  475. package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
  476. package/src/api/users/schemas/createUserSchema.ts +2 -2
  477. package/src/api/users/schemas/identityQuerySchema.ts +4 -4
  478. package/src/api/users/schemas/identityResourceSchema.ts +3 -2
  479. package/src/api/users/schemas/loginSchema.ts +4 -4
  480. package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
  481. package/src/api/users/schemas/realmConfigSchema.ts +10 -24
  482. package/src/api/users/schemas/registerQuerySchema.ts +6 -6
  483. package/src/api/users/schemas/registerRequestSchema.ts +21 -43
  484. package/src/api/users/schemas/registerResponseSchema.ts +2 -2
  485. package/src/api/users/schemas/registerSchema.ts +13 -31
  486. package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
  487. package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
  488. package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
  489. package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
  490. package/src/api/users/schemas/updateUserSchema.ts +3 -4
  491. package/src/api/users/schemas/userQuerySchema.ts +7 -7
  492. package/src/api/users/services/RegistrationService.ts +25 -11
  493. package/src/api/users/services/UserService.ts +12 -6
  494. package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
  495. package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
  496. package/src/api/verifications/controllers/VerificationController.ts +13 -27
  497. package/src/api/verifications/entities/verifications.ts +13 -14
  498. package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
  499. package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
  500. package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
  501. package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
  502. package/src/api/verifications/services/VerificationService.ts +12 -0
  503. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
  504. package/src/batch/__tests__/$batch.spec.ts +22 -22
  505. package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
  506. package/src/bin/index.ts +1 -1
  507. package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
  508. package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
  509. package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
  510. package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
  511. package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
  512. package/src/cache/core/primitives/$cache.ts +7 -10
  513. package/src/cache/database/entities/cacheEntries.ts +16 -27
  514. package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
  515. package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
  516. package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
  517. package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
  518. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
  519. package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
  520. package/src/cli/core/atoms/appEntryOptions.ts +5 -5
  521. package/src/cli/core/atoms/buildOptions.ts +76 -76
  522. package/src/cli/core/atoms/changelogOptions.ts +3 -3
  523. package/src/cli/core/atoms/devOptions.ts +3 -3
  524. package/src/cli/core/commands/build.ts +36 -39
  525. package/src/cli/core/commands/db.ts +171 -83
  526. package/src/cli/core/commands/dev.ts +8 -8
  527. package/src/cli/core/commands/gen/changelog.ts +12 -14
  528. package/src/cli/core/commands/gen/env.ts +6 -6
  529. package/src/cli/core/commands/gen/openapi.ts +6 -6
  530. package/src/cli/core/commands/init.ts +28 -33
  531. package/src/cli/core/commands/pack.ts +10 -10
  532. package/src/cli/core/commands/root.ts +7 -8
  533. package/src/cli/core/commands/test.ts +17 -20
  534. package/src/cli/core/tasks/BuildCloudflareTask.ts +103 -230
  535. package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
  536. package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
  537. package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
  538. package/src/cli/platform/commands/SecretsCommand.ts +24 -25
  539. package/src/cli/platform/commands/platform.ts +40 -46
  540. package/src/cli/platform/index.ts +1 -1
  541. package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
  542. package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
  543. package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
  544. package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +13 -14
  545. package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
  546. package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
  547. package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
  548. package/src/cli/platform-lib/schemas/platform.ts +51 -51
  549. package/src/cli/platform-lib/schemas/vercel.ts +28 -28
  550. package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
  551. package/src/cli/platform-lib/services/VercelApi.ts +4 -4
  552. package/src/cli/platform-lib/services/VercelCli.ts +6 -15
  553. package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
  554. package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
  555. package/src/cli/vendor/commands/VendorCommand.ts +11 -12
  556. package/src/command/__tests__/$command.spec.ts +82 -83
  557. package/src/command/__tests__/Asker.spec.ts +6 -13
  558. package/src/command/__tests__/CliProvider.spec.ts +136 -149
  559. package/src/command/__tests__/Runner.spec.ts +86 -110
  560. package/src/command/helpers/Asker.ts +23 -58
  561. package/src/command/helpers/Runner.ts +34 -110
  562. package/src/command/index.ts +4 -9
  563. package/src/command/primitives/$command.ts +10 -10
  564. package/src/command/providers/CliProvider.ts +183 -161
  565. package/src/core/Alepha.ts +62 -13
  566. package/src/core/__tests__/$atom.spec.ts +52 -3
  567. package/src/core/__tests__/$computed.spec.ts +129 -0
  568. package/src/core/__tests__/$env.spec.ts +13 -13
  569. package/src/core/__tests__/$inject.spec.ts +4 -4
  570. package/src/core/__tests__/$module.spec.ts +1 -1
  571. package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
  572. package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
  573. package/src/core/__tests__/Alepha-start.spec.ts +3 -3
  574. package/src/core/__tests__/CodecManager.spec.ts +113 -94
  575. package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
  576. package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
  577. package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
  578. package/src/core/__tests__/StateManager.spec.ts +423 -0
  579. package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
  580. package/src/core/__tests__/TypeProvider.spec.ts +314 -309
  581. package/src/core/__tests__/dump.spec.ts +6 -6
  582. package/src/core/__tests__/pagination.spec.ts +4 -4
  583. package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
  584. package/src/core/errors/TypeBoxError.ts +10 -4
  585. package/src/core/helpers/FileLike.ts +5 -5
  586. package/src/core/helpers/coerceStrings.ts +70 -0
  587. package/src/core/helpers/jsonSchemaToZod.ts +112 -0
  588. package/src/core/index.shared.ts +4 -1
  589. package/src/core/primitives/$atom.ts +95 -27
  590. package/src/core/primitives/$computed.ts +148 -0
  591. package/src/core/primitives/$env.ts +5 -5
  592. package/src/core/primitives/$state.ts +1 -1
  593. package/src/core/providers/AlsProvider.ts +26 -0
  594. package/src/core/providers/CodecManager.ts +1 -2
  595. package/src/core/providers/JsonSchemaCodec.ts +1 -2
  596. package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
  597. package/src/core/providers/SchemaValidator.ts +48 -158
  598. package/src/core/providers/StateManager.ts +383 -9
  599. package/src/core/providers/TypeProvider.ts +80 -734
  600. package/src/core/providers/ZodProvider.ts +380 -0
  601. package/src/core/providers/zodAugment.ts +69 -0
  602. package/src/core/schemas/pageQuerySchema.ts +19 -21
  603. package/src/core/schemas/pageSchema.ts +47 -57
  604. package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
  605. package/src/crypto/providers/SecretProvider.ts +16 -10
  606. package/src/datetime/primitives/$throttle.ts +6 -1
  607. package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
  608. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
  609. package/src/email/core/index.ts +7 -2
  610. package/src/email/core/primitives/$email.ts +5 -1
  611. package/src/email/core/providers/LocalEmailProvider.ts +5 -5
  612. package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
  613. package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
  614. package/src/fake/__tests__/keyName.example.ts +21 -21
  615. package/src/fake/__tests__/keyName.spec.ts +41 -41
  616. package/src/fake/__tests__/module.example.ts +8 -8
  617. package/src/fake/providers/FakeProvider.ts +122 -121
  618. package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
  619. package/src/lock/core/index.ts +1 -0
  620. package/src/lock/core/primitives/$lock.ts +13 -6
  621. package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
  622. package/src/logger/__tests__/Logger.spec.ts +49 -0
  623. package/src/logger/index.ts +25 -18
  624. package/src/logger/providers/CliFormatterProvider.ts +75 -0
  625. package/src/logger/schemas/logEntrySchema.ts +10 -10
  626. package/src/logger/services/Logger.ts +18 -0
  627. package/src/mcp/__tests__/$prompt.spec.ts +21 -23
  628. package/src/mcp/__tests__/$tool.spec.ts +22 -22
  629. package/src/mcp/__tests__/McpServerProvider.spec.ts +11 -11
  630. package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
  631. package/src/mcp/__tests__/integration.spec.ts +33 -33
  632. package/src/mcp/primitives/$prompt.ts +11 -9
  633. package/src/mcp/primitives/$tool.ts +27 -86
  634. package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
  635. package/src/orm/__tests__/$repository-tests.ts +133 -27
  636. package/src/orm/__tests__/$repository.spec.ts +23 -0
  637. package/src/orm/__tests__/$transactional-tests.ts +4 -4
  638. package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
  639. package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
  640. package/src/orm/__tests__/QueryManager.spec.ts +5 -5
  641. package/src/orm/__tests__/delete-returning-tests.ts +11 -11
  642. package/src/orm/__tests__/deletedAt-tests.ts +3 -3
  643. package/src/orm/__tests__/enums.spec.ts +29 -25
  644. package/src/orm/__tests__/execute-tests.ts +8 -8
  645. package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
  646. package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
  647. package/src/orm/__tests__/joins-tests.ts +30 -30
  648. package/src/orm/__tests__/organization-tests.ts +105 -3
  649. package/src/orm/__tests__/organization.spec.ts +46 -0
  650. package/src/orm/__tests__/orm-errors.spec.ts +10 -10
  651. package/src/orm/__tests__/orm-next-tests.ts +29 -29
  652. package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
  653. package/src/orm/__tests__/primaryKey.spec.ts +4 -4
  654. package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
  655. package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
  656. package/src/orm/__tests__/references.spec.ts +7 -7
  657. package/src/orm/__tests__/security.spec.ts +17 -17
  658. package/src/orm/__tests__/string-operators-tests.ts +5 -5
  659. package/src/orm/__tests__/timestamps-tests.ts +14 -14
  660. package/src/orm/__tests__/validation-tests.ts +5 -5
  661. package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
  662. package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
  663. package/src/orm/core/entities/alephaSequences.ts +8 -8
  664. package/src/orm/core/helpers/pgAttr.ts +4 -4
  665. package/src/orm/core/primitives/$entity.ts +10 -6
  666. package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
  667. package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
  668. package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
  669. package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
  670. package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
  671. package/src/orm/core/schemas/insertSchema.ts +14 -18
  672. package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
  673. package/src/orm/core/schemas/updateSchema.ts +10 -16
  674. package/src/orm/core/services/PgRelationManager.ts +2 -2
  675. package/src/orm/core/services/QueryManager.ts +13 -2
  676. package/src/orm/core/services/Repository.ts +88 -33
  677. package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
  678. package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
  679. package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
  680. package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
  681. package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
  682. package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
  683. package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
  684. package/src/queue/core/__tests__/shared.ts +6 -6
  685. package/src/queue/core/primitives/$consumer.ts +5 -5
  686. package/src/queue/core/primitives/$queue.ts +44 -61
  687. package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
  688. package/src/queue/core/providers/WorkerProvider.ts +17 -14
  689. package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
  690. package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
  691. package/src/react/core/__tests__/Router.spec.tsx +4 -4
  692. package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
  693. package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
  694. package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
  695. package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
  696. package/src/react/core/components/ErrorBoundary.tsx +42 -0
  697. package/src/react/core/hooks/useAction.ts +56 -19
  698. package/src/react/core/hooks/useComputed.ts +91 -0
  699. package/src/react/core/hooks/useSelector.ts +67 -0
  700. package/src/react/core/hooks/useStore.ts +36 -17
  701. package/src/react/core/index.ts +3 -0
  702. package/src/react/core/utils/shallowEqual.ts +36 -0
  703. package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +2 -2
  704. package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +5 -5
  705. package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
  706. package/src/react/form/errors/FormValidationError.ts +0 -2
  707. package/src/react/form/hooks/useForm.ts +19 -4
  708. package/src/react/form/hooks/useFormQuerySync.ts +0 -0
  709. package/src/react/form/services/FormModel.ts +67 -47
  710. package/src/react/form/services/parseField.ts +66 -27
  711. package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
  712. package/src/react/i18n/providers/I18nProvider.ts +2 -2
  713. package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
  714. package/src/react/router/__tests__/$page.spec.tsx +21 -21
  715. package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
  716. package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
  717. package/src/react/router/components/NestedView.tsx +11 -3
  718. package/src/react/router/hooks/useQueryParams.ts +1 -1
  719. package/src/react/router/primitives/$page.ts +2 -2
  720. package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
  721. package/src/react/router/providers/ReactPageProvider.ts +26 -12
  722. package/src/react/router/providers/ReactServerProvider.ts +13 -15
  723. package/src/react/sitemap/__tests__/$sitemap.spec.ts +2 -2
  724. package/src/react/ui/atoms/uiAtom.ts +6 -6
  725. package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
  726. package/src/react/ui/hooks/useColorMode.ts +11 -4
  727. package/src/react/ui/services/SchemaControl.ts +4 -4
  728. package/src/redis/providers/BunRedisProvider.ts +19 -11
  729. package/src/redis/providers/NodeRedisProvider.ts +3 -3
  730. package/src/scheduler/primitives/$scheduler.ts +21 -8
  731. package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
  732. package/src/security/atoms/currentTenantAtom.ts +6 -6
  733. package/src/security/atoms/currentUserAtom.ts +2 -2
  734. package/src/security/primitives/$issuer.ts +24 -2
  735. package/src/security/providers/JwtProvider.ts +100 -0
  736. package/src/security/providers/SecurityProvider.ts +43 -2
  737. package/src/security/schemas/permissionSchema.ts +19 -19
  738. package/src/security/schemas/roleSchema.ts +22 -28
  739. package/src/security/schemas/userAccountInfoSchema.ts +47 -37
  740. package/src/server/auth/index.ts +0 -3
  741. package/src/server/auth/primitives/$auth.ts +6 -6
  742. package/src/server/auth/primitives/$authApple.ts +10 -10
  743. package/src/server/auth/primitives/$authFacebook.ts +10 -10
  744. package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
  745. package/src/server/auth/primitives/$authGithub.ts +10 -10
  746. package/src/server/auth/primitives/$authGoogle.ts +10 -10
  747. package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
  748. package/src/server/auth/providers/ServerAuthProvider.ts +49 -48
  749. package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
  750. package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
  751. package/src/server/auth/schemas/tokensSchema.ts +16 -16
  752. package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
  753. package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
  754. package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
  755. package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
  756. package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +14 -14
  757. package/src/server/cookies/index.browser.ts +4 -1
  758. package/src/server/cookies/index.ts +8 -1
  759. package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
  760. package/src/server/cookies/primitives/$cookie.ts +16 -0
  761. package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
  762. package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
  763. package/src/server/cookies/providers/ServerCookiesProvider.ts +13 -5
  764. package/src/server/cookies/services/CookieParser.ts +6 -1
  765. package/src/server/core/__tests__/$action.spec.ts +13 -13
  766. package/src/server/core/__tests__/$middleware.spec.ts +10 -10
  767. package/src/server/core/__tests__/$route.spec.ts +9 -9
  768. package/src/server/core/__tests__/$sse.spec.ts +26 -26
  769. package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
  770. package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
  771. package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
  772. package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
  773. package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
  774. package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
  775. package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
  776. package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
  777. package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
  778. package/src/server/core/errors/ValidationError.ts +6 -3
  779. package/src/server/core/helpers/isMultipart.ts +2 -1
  780. package/src/server/core/index.ts +5 -2
  781. package/src/server/core/interfaces/ServerRequest.ts +6 -14
  782. package/src/server/core/primitives/$action.ts +26 -36
  783. package/src/server/core/primitives/$sse.ts +3 -3
  784. package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
  785. package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
  786. package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
  787. package/src/server/core/providers/ServerCompressProvider.ts +9 -10
  788. package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
  789. package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
  790. package/src/server/core/providers/ServerRouterProvider.ts +44 -15
  791. package/src/server/core/schemas/errorSchema.ts +20 -25
  792. package/src/server/core/schemas/okSchema.ts +9 -14
  793. package/src/server/core/services/HttpClient.ts +13 -1
  794. package/src/server/core/services/ServerRequestParser.ts +6 -6
  795. package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
  796. package/src/server/health/schemas/healthSchema.ts +6 -6
  797. package/src/server/links/__tests__/$remote.spec.ts +3 -3
  798. package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
  799. package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
  800. package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
  801. package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
  802. package/src/server/links/atoms/apiLinksAtom.ts +2 -2
  803. package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
  804. package/src/server/links/primitives/$remote.ts +3 -3
  805. package/src/server/links/providers/LinkProvider.ts +3 -3
  806. package/src/server/links/providers/ServerLinksProvider.ts +20 -20
  807. package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
  808. package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
  809. package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
  810. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
  811. package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
  812. package/src/server/swagger/__tests__/ui.spec.ts +3 -3
  813. package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
  814. package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
  815. package/src/system/providers/NodeShellProvider.ts +4 -1
  816. package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
  817. package/src/topic/core/__tests__/shared.ts +8 -8
  818. package/src/topic/core/primitives/$subscriber.ts +5 -5
  819. package/src/topic/core/primitives/$topic.ts +14 -14
  820. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  821. package/dist/container/core/index.d.ts +0 -236
  822. package/dist/container/core/index.d.ts.map +0 -1
  823. package/dist/container/core/index.js +0 -231
  824. package/dist/container/core/index.js.map +0 -1
  825. package/dist/container/core/index.workerd.js +0 -192
  826. package/dist/container/core/index.workerd.js.map +0 -1
  827. package/src/command/helpers/PrettyAsker.ts +0 -256
  828. package/src/command/helpers/PrettyPrint.ts +0 -332
  829. package/src/container/core/__tests__/$container.spec.ts +0 -83
  830. package/src/container/core/index.ts +0 -50
  831. package/src/container/core/index.workerd.ts +0 -53
  832. package/src/container/core/interfaces/ContainerOptions.ts +0 -69
  833. package/src/container/core/primitives/$container.ts +0 -100
  834. package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
  835. package/src/container/core/providers/ContainerProvider.ts +0 -92
  836. package/src/container/core/providers/MockContainerProvider.ts +0 -62
  837. package/src/container/core/providers/NodeContainerProvider.ts +0 -53
  838. package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
  839. package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
  840. package/src/server/auth/__tests__/authFederationClient.spec.ts +0 -40
  841. package/src/server/auth/__tests__/federationAssertion.spec.ts +0 -146
  842. package/src/server/auth/helpers/federationAssertion.ts +0 -74
  843. package/src/server/auth/primitives/$authFederationBroker.ts +0 -273
  844. package/src/server/auth/primitives/$authFederationClient.ts +0 -89
  845. /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;
@@ -254,12 +252,6 @@ declare const alephaPackageJson: {
254
252
  import: string;
255
253
  default: string;
256
254
  };
257
- "./container": {
258
- types: string;
259
- workerd: string;
260
- import: string;
261
- default: string;
262
- };
263
255
  ".": {
264
256
  types: string;
265
257
  "react-native": string;
@@ -696,12 +688,6 @@ declare const alephaPackageJson: {
696
688
  import: string;
697
689
  default: string;
698
690
  };
699
- "./container": {
700
- types: string;
701
- workerd: string;
702
- import: string;
703
- default: string;
704
- };
705
691
  ".": {
706
692
  types: string;
707
693
  "react-native": string;
@@ -979,11 +965,11 @@ declare const alephaPackageJson: {
979
965
  declare const version: string;
980
966
  //#endregion
981
967
  //#region ../../src/cli/core/atoms/appEntryOptions.d.ts
982
- declare const appEntryOptions: import("alepha").Atom<import("typebox").TObject<{
983
- server: import("typebox").TOptional<import("typebox").TString>;
984
- browser: import("typebox").TOptional<import("typebox").TString>;
985
- style: import("typebox").TOptional<import("typebox").TString>;
986
- }>, "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">;
987
973
  type AppEntryOptions = Static<typeof appEntryOptions.schema>;
988
974
  //#endregion
989
975
  //#region ../../src/cli/core/atoms/buildOptions.d.ts
@@ -1009,247 +995,72 @@ type BuildRuntime = "node" | "bun" | "workerd";
1009
995
  * Defines the available build configuration options with their defaults.
1010
996
  * Options can be overridden via alepha.config.ts or CLI flags.
1011
997
  */
1012
- declare const buildOptions: import("alepha").Atom<import("typebox").TObject<{
1013
- /**
1014
- * Generate build stats report.
1015
- *
1016
- * - `true` - Generate a static HTML report
1017
- * - `"json"` - Generate a JSON report
1018
- */
1019
- stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
1020
- /**
1021
- * Deployment target for the build output.
1022
- *
1023
- * - `docker` - Generate Dockerfile for containerized deployment
1024
- * - `vercel` - Generate Vercel deployment configuration (forces node runtime)
1025
- * - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
1026
- */
1027
- target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
1028
- /**
1029
- * JavaScript runtime for the build output.
1030
- *
1031
- * - `node` - Node.js runtime (default)
1032
- * - `bun` - Bun runtime (uses bun export conditions)
1033
- * - `workerd` - Cloudflare Workers runtime (auto-set with cloudflare target)
1034
- *
1035
- * Note: Some targets force a specific runtime:
1036
- * - `cloudflare` always uses `workerd`
1037
- * - `vercel` always uses `node`
1038
- */
1039
- runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
1040
- /**
1041
- * Output directory configuration.
1042
- */
1043
- output: import("typebox").TOptional<import("typebox").TObject<{
1044
- /**
1045
- * Root dist directory.
1046
- *
1047
- * @default "dist"
1048
- */
1049
- dist: import("typebox").TOptional<import("typebox").TString>;
1050
- /**
1051
- * Public/client subdirectory.
1052
- *
1053
- * @default "public"
1054
- */
1055
- public: import("typebox").TOptional<import("typebox").TString>;
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";
1056
1008
  }>>;
1057
- /**
1058
- * Vercel-specific deployment configuration.
1059
- *
1060
- * Note: Set `target: "vercel"` to enable Vercel deployment.
1061
- * This object is only for additional configuration.
1062
- */
1063
- vercel: import("typebox").TOptional<import("typebox").TObject<{
1064
- projectName: import("typebox").TOptional<import("typebox").TString>;
1065
- orgId: import("typebox").TOptional<import("typebox").TString>;
1066
- projectId: import("typebox").TOptional<import("typebox").TString>;
1067
- config: import("typebox").TOptional<import("typebox").TObject<{
1068
- crons: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
1069
- path: import("typebox").TString;
1070
- schedule: import("typebox").TString;
1071
- }>>>;
1072
- }>>;
1009
+ runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
1010
+ bun: "bun";
1011
+ node: "node";
1012
+ workerd: "workerd";
1073
1013
  }>>;
1074
- /**
1075
- * Cloudflare-specific deployment configuration.
1076
- *
1077
- * Note: Set `target: "cloudflare"` to enable Cloudflare deployment.
1078
- * This object is only for additional configuration.
1079
- */
1080
- cloudflare: import("typebox").TOptional<import("typebox").TObject<{
1081
- config: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1082
- }>>;
1083
- /**
1084
- * Docker-specific deployment configuration.
1085
- *
1086
- * Note: Set `target: "docker"` to enable Docker deployment.
1087
- * This object is only for additional configuration.
1088
- */
1089
- docker: import("typebox").TOptional<import("typebox").TObject<{
1090
- /**
1091
- * Base image for the Dockerfile (FROM instruction).
1092
- *
1093
- * @default "node:24-alpine" for node runtime
1094
- * @default "oven/bun:alpine" for bun runtime
1095
- */
1096
- from: import("typebox").TOptional<import("typebox").TString>;
1097
- /**
1098
- * Command to run in the Docker container.
1099
- *
1100
- * @default "node" for node runtime
1101
- * @default "bun" for bun runtime
1102
- */
1103
- command: import("typebox").TOptional<import("typebox").TString>;
1104
- /**
1105
- * Extra packages to install globally in the generated image.
1106
- *
1107
- * Each entry becomes a `RUN npm install --global --no-fund
1108
- * --no-audit <pkg> …` line inserted after `FROM` and before the
1109
- * app `COPY`. Use it for CLI tools the running app shells out to
1110
- * — typical example is `wrangler` for a service that deploys to
1111
- * Cloudflare on someone else's behalf.
1112
- *
1113
- * Ignored in `compile` mode (the distroless base has no `npm`).
1114
- *
1115
- * @example install: ["wrangler"]
1116
- */
1117
- install: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1118
- /**
1119
- * Docker build options (used when --image flag is passed).
1120
- */
1121
- image: import("typebox").TOptional<import("typebox").TObject<{
1122
- /**
1123
- * Default image tag (name without version).
1124
- *
1125
- * Used when --image is provided without a full override:
1126
- * - `--image` → `tag:latest`
1127
- * - `--image=1.3.4` → `tag:1.3.4`
1128
- * - `--image=other/img:v1` → `other/img:v1` (full override)
1129
- *
1130
- * @example "myproject/myapp"
1131
- * @example "ghcr.io/myorg/myapp"
1132
- */
1133
- tag: import("typebox").TString;
1134
- /**
1135
- * Additional arguments to pass to `docker build`.
1136
- *
1137
- * @example '--platform linux/amd64 --no-cache'
1138
- */
1139
- args: import("typebox").TOptional<import("typebox").TString>;
1140
- /**
1141
- * Auto-add OCI standard labels (revision, created, version).
1142
- *
1143
- * Adds:
1144
- * - org.opencontainers.image.revision (git commit SHA)
1145
- * - org.opencontainers.image.created (build timestamp)
1146
- * - org.opencontainers.image.version (from image tag)
1147
- */
1148
- 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";
1149
1060
  }>>;
1150
- /**
1151
- * Compile the server entry to a single static binary using
1152
- * `bun build --compile`, then package it inside a minimal base image
1153
- * (distroless by default). Requires `runtime: "bun"`.
1154
- *
1155
- * When enabled:
1156
- * - the binary is produced at `<dist>/app` and the original `dist/server/`,
1157
- * `dist/index.js` and `dist/package.json` are removed
1158
- * - the generated Dockerfile uses a distroless base image and does not
1159
- * run `bun install` (everything is embedded in the binary)
1160
- * - any non-empty `dependencies` in the externals manifest causes the
1161
- * task to fail loudly (compile requires fully-bundled output)
1162
- *
1163
- * Pass `true` to enable with defaults, or an object to override.
1164
- */
1165
- compile: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TObject<{
1166
- /**
1167
- * Bun target triple, e.g. `bun-linux-x64-musl`,
1168
- * `bun-linux-arm64-musl`, or `bun-linux-x64-modern-musl`
1169
- * (AVX2 required).
1170
- *
1171
- * @default derived from host arch — always linux-musl.
1172
- */
1173
- target: import("typebox").TOptional<import("typebox").TString>;
1174
- /**
1175
- * Base image for the generated Dockerfile.
1176
- *
1177
- * @default "gcr.io/distroless/static-debian12"
1178
- */
1179
- base: import("typebox").TOptional<import("typebox").TString>;
1180
- /**
1181
- * Minify the compiled output.
1182
- *
1183
- * @default true
1184
- */
1185
- minify: import("typebox").TOptional<import("typebox").TBoolean>;
1186
- }>]>>;
1187
- }>>;
1188
- /**
1189
- * Static site deployment configuration.
1190
- *
1191
- * Note: Set `target: "static"` to enable static site generation.
1192
- */
1193
- static: import("typebox").TOptional<import("typebox").TObject<{
1194
- /**
1195
- * Surge domain for deployment.
1196
- *
1197
- * If set, a CNAME file is written to dist/public/.
1198
- * If not set, a domain is auto-generated from package.json name.
1199
- *
1200
- * @example "my-app.surge.sh"
1201
- * @example "my-custom-domain.com"
1202
- */
1203
- domain: import("typebox").TOptional<import("typebox").TString>;
1204
- }>>;
1205
- /**
1206
- * PWA (Progressive Web App) configuration.
1207
- *
1208
- * Generates a web app manifest and enables installability.
1209
- * Requires a client-side bundle (React).
1210
- */
1211
- pwa: import("typebox").TOptional<import("typebox").TObject<{
1212
- /**
1213
- * Full application name displayed on the splash screen
1214
- * and in the OS app switcher.
1215
- */
1216
- name: import("typebox").TString;
1217
- /**
1218
- * Short name displayed on the home screen icon.
1219
- * Falls back to `name` if omitted.
1220
- */
1221
- shortName: import("typebox").TOptional<import("typebox").TString>;
1222
- /**
1223
- * Theme color used for the browser toolbar and OS chrome.
1224
- *
1225
- * @default "#ffffff"
1226
- */
1227
- themeColor: import("typebox").TOptional<import("typebox").TString>;
1228
- /**
1229
- * Background color for the splash screen.
1230
- *
1231
- * @default "#ffffff"
1232
- */
1233
- backgroundColor: import("typebox").TOptional<import("typebox").TString>;
1234
- /**
1235
- * Display mode for the installed PWA.
1236
- *
1237
- * - `standalone` - Looks like a native app (default)
1238
- * - `fullscreen` - Uses entire screen (games, immersive)
1239
- * - `minimal-ui` - Like standalone with minimal browser UI
1240
- * - `browser` - Standard browser tab
1241
- *
1242
- * @default "standalone"
1243
- */
1244
- display: import("typebox").TOptional<import("typebox").TUnsafe<"standalone" | "fullscreen" | "minimal-ui" | "browser">>;
1245
- /**
1246
- * Enable offline support via service worker.
1247
- *
1248
- * TODO: Not yet implemented.
1249
- */
1250
- offline: import("typebox").TOptional<import("typebox").TBoolean>;
1251
- }>>;
1252
- }>, "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">;
1253
1064
  /**
1254
1065
  * Type for build options.
1255
1066
  */
@@ -1273,13 +1084,9 @@ declare const DEFAULT_IGNORE: string[];
1273
1084
  * });
1274
1085
  * ```
1275
1086
  */
1276
- declare const changelogOptions: import("alepha").Atom<import("typebox").TObject<{
1277
- /**
1278
- * Scopes to ignore (e.g., "project", "release", "chore").
1279
- * Commits like `feat(chore): ...` will be excluded from changelog.
1280
- */
1281
- ignore: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
1282
- }>, "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">;
1283
1090
  type ChangelogOptions = Static<typeof changelogOptions.schema>;
1284
1091
  //#endregion
1285
1092
  //#region ../../src/cli/core/atoms/devOptions.d.ts
@@ -1289,12 +1096,9 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
1289
1096
  * Defines the available dev configuration options with their defaults.
1290
1097
  * Options can be overridden via alepha.config.ts or CLI flags.
1291
1098
  */
1292
- declare const devOptions: import("alepha").Atom<import("typebox").TObject<{
1293
- /**
1294
- * Disable Vite React plugin.
1295
- */
1296
- noViteReactPlugin: import("typebox").TOptional<import("typebox").TBoolean>;
1297
- }>, "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">;
1298
1102
  /**
1299
1103
  * Type for dev options.
1300
1104
  */
@@ -1309,8 +1113,8 @@ type DevOptions = Static<typeof devOptions.schema>;
1309
1113
  declare class AppEntryProvider {
1310
1114
  protected readonly fs: FileSystemProvider;
1311
1115
  protected readonly options: Readonly<{
1312
- browser?: string | undefined;
1313
1116
  server?: string | undefined;
1117
+ browser?: string | undefined;
1314
1118
  style?: string | undefined;
1315
1119
  }>;
1316
1120
  protected readonly serverEntries: readonly ["main.server.ts", "main.server.tsx", "main.ts", "main.tsx"];
@@ -1749,12 +1553,7 @@ declare class ProjectScaffolder {
1749
1553
  /**
1750
1554
  * Full project init — scaffolds files, installs deps, sets up PM and git.
1751
1555
  */
1752
- init({
1753
- run,
1754
- root,
1755
- flags,
1756
- args
1757
- }: {
1556
+ init({ run, root, flags, args }: {
1758
1557
  run: RunnerMethod;
1759
1558
  root: string;
1760
1559
  flags: {
@@ -1841,21 +1640,6 @@ interface BuildManifest {
1841
1640
  email?: {
1842
1641
  binding: string;
1843
1642
  };
1844
- /**
1845
- * `$container()` descriptors — image, port, lifecycle settings.
1846
- * Used both to populate Cloudflare Containers bindings in
1847
- * wrangler.jsonc and (in future) to know which images Rocket should
1848
- * pull on the deploy side.
1849
- */
1850
- containers: Array<{
1851
- name: string;
1852
- className: string;
1853
- image: string;
1854
- port: number;
1855
- sleepAfter: string;
1856
- instanceType: string;
1857
- maxInstances: number;
1858
- }>;
1859
1643
  /**
1860
1644
  * Every env var the app declares via `$env`, captured from
1861
1645
  * `alepha.dump().env` at build time. The deploy `secrets` step uses this
@@ -1886,7 +1670,9 @@ declare class BuildCloudflareTask extends BuildTask {
1886
1670
  * the deploy path can skip the Vite-based introspection step and the
1887
1671
  * workspace's runtime npm install.
1888
1672
  */
1889
- 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;
1890
1676
  protected enhanceDomain(wrangler: WranglerConfig): void;
1891
1677
  protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
1892
1678
  protected discoverCrons(ctx: BuildTaskContext): string[];
@@ -1898,57 +1684,7 @@ declare class BuildCloudflareTask extends BuildTask {
1898
1684
  protected enhanceKV(wrangler: WranglerConfig): void;
1899
1685
  protected enhanceQueue(wrangler: WranglerConfig): void;
1900
1686
  protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
1901
- /**
1902
- * Discover `$container` primitives and emit the matching Cloudflare
1903
- * Containers bindings, Durable Object bindings, and migrations into
1904
- * `wrangler.jsonc`. The DO class declarations are added later, when
1905
- * the worker entry point is written.
1906
- *
1907
- * Returns the list of container descriptors so
1908
- * `writeWorkerEntryPoint` can emit `export class <NAME> extends
1909
- * Container` declarations referencing them.
1910
- */
1911
- protected discoverContainers(ctx: BuildTaskContext): ContainerDescriptor[];
1912
- /**
1913
- * Expand a short image ref (e.g. `alepha-rocket:0.1.0`) into the
1914
- * fully-qualified `registry.cloudflare.com/<account>/<image>:<tag>`
1915
- * URL that wrangler validates at deploy time.
1916
- *
1917
- * Cloudflare Containers only pulls from `registry.cloudflare.com`;
1918
- * wrangler accepts either a Dockerfile path or a fully-qualified
1919
- * registry URL in the `image` field — not a bare DockerHub-style
1920
- * name. We let `$container({ image })` callers write the short
1921
- * form (it matches what `wrangler containers push <local>` accepts
1922
- * + matches the local docker tag) and rewrite to the CF registry
1923
- * URL here.
1924
- *
1925
- * Pass-through cases:
1926
- * - already a full URL: starts with `registry.cloudflare.com/`
1927
- * or contains a scheme/`://`
1928
- * - looks like a Dockerfile path: starts with `./` or `/`
1929
- */
1930
- protected resolveContainerImage(image: string): string;
1931
- protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
1932
- protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
1933
- }
1934
- interface ContainerDescriptor {
1935
- name: string;
1936
- className: string;
1937
- image: string;
1938
- port: number;
1939
- sleepAfter: string;
1940
- /**
1941
- * Cloudflare Containers instance class.
1942
- *
1943
- * `dev` is the wrangler-pre-GA name; the platform accepts it but
1944
- * emits a deprecation warning telling you to use `lite`. We
1945
- * silently translate at write time (see `discoverContainers`
1946
- * default + `enhanceContainers` write) so older
1947
- * `$container({ instanceType: "dev" })` declarations keep working.
1948
- */
1949
- instanceType: "dev" | "lite" | "basic" | "standard";
1950
- maxInstances: number;
1951
- envVars?: Record<string, string>;
1687
+ protected writeWorkerEntryPoint(root: string, distDir: string): Promise<void>;
1952
1688
  }
1953
1689
  //#endregion
1954
1690
  //#region ../../src/cli/core/tasks/BuildTask.d.ts
@@ -2376,22 +2112,12 @@ declare class BuildCommand {
2376
2112
  protected readonly boot: AppEntryProvider;
2377
2113
  protected readonly viteBuildProvider: ViteBuildProvider;
2378
2114
  protected readonly options: Readonly<{
2379
- stats?: boolean | "json" | undefined;
2380
- target?: "bare" | "docker" | "vercel" | "cloudflare" | "static" | undefined;
2381
- docker?: {
2382
- from?: string | undefined;
2383
- command?: string | undefined;
2384
- install?: string[] | undefined;
2385
- image?: {
2386
- args?: string | undefined;
2387
- oci?: boolean | undefined;
2388
- tag: string;
2389
- } | undefined;
2390
- compile?: boolean | {
2391
- target?: string | undefined;
2392
- base?: string | undefined;
2393
- minify?: boolean | undefined;
2394
- } | 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;
2395
2121
  } | undefined;
2396
2122
  vercel?: {
2397
2123
  projectName?: string | undefined;
@@ -2407,21 +2133,31 @@ declare class BuildCommand {
2407
2133
  cloudflare?: {
2408
2134
  config?: Record<string, any> | undefined;
2409
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;
2410
2151
  static?: {
2411
2152
  domain?: string | undefined;
2412
2153
  } | undefined;
2413
- runtime?: "node" | "bun" | "workerd" | undefined;
2414
- output?: {
2415
- dist?: string | undefined;
2416
- public?: string | undefined;
2417
- } | undefined;
2418
2154
  pwa?: {
2155
+ name: string;
2419
2156
  shortName?: string | undefined;
2420
2157
  themeColor?: string | undefined;
2421
2158
  backgroundColor?: string | undefined;
2422
- display?: "standalone" | "fullscreen" | "minimal-ui" | "browser" | undefined;
2159
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
2423
2160
  offline?: boolean | undefined;
2424
- name: string;
2425
2161
  } | undefined;
2426
2162
  }>;
2427
2163
  /**
@@ -2429,7 +2165,7 @@ declare class BuildCommand {
2429
2165
  * Each task self-guards (checks target, hasClient, etc.).
2430
2166
  * Order matters — compress must be last.
2431
2167
  */
2432
- protected readonly pipeline: (BuildClientTask | BuildServerTask | BuildAssetsTask | BuildPwaTask | BuildPrerenderTask | BuildVercelTask | BuildCloudflareTask | BuildDockerTask | BuildStaticTask | BuildCompressTask)[];
2168
+ protected readonly pipeline: (BuildAssetsTask | BuildClientTask | BuildCloudflareTask | BuildCompressTask | BuildDockerTask | BuildPrerenderTask | BuildPwaTask | BuildServerTask | BuildStaticTask | BuildVercelTask)[];
2433
2169
  /**
2434
2170
  * Value aliases accepted for `--target`.
2435
2171
  *
@@ -2455,14 +2191,27 @@ declare class BuildCommand {
2455
2191
  * @throws {AlephaError} If an incompatible runtime is specified for a target
2456
2192
  */
2457
2193
  protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
2458
- readonly build: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2459
- stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
2460
- target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static" | "cf">>;
2461
- runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
2462
- image: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TString]>>;
2463
- compile: import("typebox").TOptional<import("typebox").TBoolean>;
2464
- prebuilt: import("typebox").TOptional<import("typebox").TBoolean>;
2465
- }>, 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>;
2466
2215
  /**
2467
2216
  * Read `dist/manifest.json` produced by a previous `alepha build`.
2468
2217
  * Returns null when absent or unparseable — caller falls back to the
@@ -2476,7 +2225,7 @@ declare class CleanCommand {
2476
2225
  /**
2477
2226
  * Clean the project, removing the "dist" directory
2478
2227
  */
2479
- 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>;
2480
2229
  }
2481
2230
  //#endregion
2482
2231
  //#region ../../src/cli/core/commands/db.d.ts
@@ -2487,48 +2236,47 @@ declare class DbCommand {
2487
2236
  protected readonly pm: PackageManagerUtils;
2488
2237
  protected readonly entryProvider: AppEntryProvider;
2489
2238
  protected readonly viteUtil: ViteUtils;
2490
- protected readonly runner: Runner;
2491
2239
  /**
2492
2240
  * Check if database migrations are up to date.
2493
2241
  */
2494
- protected readonly check: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2495
- provider: import("typebox").TOptional<import("typebox").TString>;
2496
- }>, 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>;
2497
2245
  /**
2498
2246
  * Generate database migration files
2499
2247
  */
2500
- protected readonly create: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2501
- provider: import("typebox").TOptional<import("typebox").TString>;
2502
- custom: import("typebox").TOptional<import("typebox").TBoolean>;
2503
- name: import("typebox").TOptional<import("typebox").TString>;
2504
- }>, 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>;
2505
2253
  /**
2506
2254
  * Push database schema changes directly to the database
2507
2255
  */
2508
- protected readonly push: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2509
- provider: import("typebox").TOptional<import("typebox").TString>;
2510
- dryRun: import("typebox").TOptional<import("typebox").TBoolean>;
2511
- }>, 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>;
2512
2260
  /**
2513
2261
  * Apply pending database migrations
2514
2262
  */
2515
- protected readonly apply: 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>>;
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>;
2518
2266
  /**
2519
2267
  * Launch Drizzle Studio database browser
2520
2268
  */
2521
- protected readonly studio: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2522
- provider: import("typebox").TOptional<import("typebox").TString>;
2523
- }>, 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>;
2524
2272
  /**
2525
2273
  * Parent command for migration operations.
2526
2274
  */
2527
- 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>;
2528
2276
  /**
2529
2277
  * Parent command for database operations.
2530
2278
  */
2531
- 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>;
2532
2280
  /**
2533
2281
  * Run a drizzle-kit command for all database providers in an Alepha instance.
2534
2282
  */
@@ -2547,6 +2295,26 @@ declare class DbCommand {
2547
2295
  * models. This breaks when deploying to a non-public schema via search_path.
2548
2296
  */
2549
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[];
2550
2318
  /**
2551
2319
  * Prepare Drizzle configuration files for a database provider.
2552
2320
  */
@@ -2785,9 +2553,9 @@ declare class DevCommand {
2785
2553
  * When run from a workspace root (with apps/ directory), spawns all apps in parallel.
2786
2554
  * When run from an app directory, starts a single Vite dev server.
2787
2555
  */
2788
- readonly dev: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2789
- only: import("typebox").TOptional<import("typebox").TString>;
2790
- }>, 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>;
2791
2559
  /**
2792
2560
  * Discover apps in the workspace root.
2793
2561
  *
@@ -2910,20 +2678,10 @@ declare class ChangelogCommand {
2910
2678
  * Get the latest version tag.
2911
2679
  */
2912
2680
  protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
2913
- readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2914
- /**
2915
- * Show changes from this ref (tag, commit, branch).
2916
- * Defaults to the latest version tag.
2917
- * Example: --from=1.0.0
2918
- */
2919
- from: import("typebox").TOptional<import("typebox").TString>;
2920
- /**
2921
- * Show changes up to this ref (tag, commit, branch).
2922
- * Defaults to HEAD.
2923
- * Example: --to=main
2924
- */
2925
- to: import("typebox").TOptional<import("typebox").TString>;
2926
- }>, 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>;
2927
2685
  }
2928
2686
  //#endregion
2929
2687
  //#region ../../src/cli/core/commands/gen/openapi.d.ts
@@ -2931,9 +2689,9 @@ declare class OpenApiCommand {
2931
2689
  protected readonly log: import("alepha/logger").Logger;
2932
2690
  protected readonly utils: AlephaCliUtils;
2933
2691
  protected readonly fs: FileSystemProvider;
2934
- readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2935
- out: import("typebox").TOptional<import("typebox").TString>;
2936
- }>, 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>;
2937
2695
  }
2938
2696
  //#endregion
2939
2697
  //#region ../../src/cli/core/commands/init.d.ts
@@ -2943,20 +2701,25 @@ declare class InitCommand {
2943
2701
  * Ensure the project has the necessary Alepha configuration files.
2944
2702
  * Add the correct dependencies to package.json and install them.
2945
2703
  */
2946
- readonly init: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2947
- pm: import("typebox").TOptional<import("typebox").TUnsafe<"bun" | "yarn" | "npm" | "pnpm">>;
2948
- api: import("typebox").TOptional<import("typebox").TBoolean>;
2949
- react: import("typebox").TOptional<import("typebox").TBoolean>;
2950
- tailwind: import("typebox").TOptional<import("typebox").TBoolean>;
2951
- force: import("typebox").TOptional<import("typebox").TBoolean>;
2952
- }>, 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>;
2953
2716
  }
2954
2717
  //#endregion
2955
2718
  //#region ../../src/cli/core/commands/lint.d.ts
2956
2719
  declare class LintCommand {
2957
2720
  protected readonly utils: AlephaCliUtils;
2958
2721
  protected readonly scaffolder: ProjectScaffolder;
2959
- 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>;
2960
2723
  }
2961
2724
  //#endregion
2962
2725
  //#region ../../src/cli/core/commands/pack.d.ts
@@ -2984,10 +2747,10 @@ declare class PackCommand {
2984
2747
  protected readonly log: import("alepha/logger").Logger;
2985
2748
  protected readonly fs: FileSystemProvider;
2986
2749
  protected readonly shell: ShellProvider;
2987
- readonly pack: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
2988
- tag: import("typebox").TOptional<import("typebox").TString>;
2989
- output: import("typebox").TOptional<import("typebox").TString>;
2990
- }>, 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>;
2991
2754
  }
2992
2755
  //#endregion
2993
2756
  //#region ../../src/cli/core/commands/root.d.ts
@@ -2999,20 +2762,20 @@ declare class RootCommand {
2999
2762
  /**
3000
2763
  * Called when no command is provided
3001
2764
  */
3002
- readonly root: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
3003
- version: import("typebox").TOptional<import("typebox").TBoolean>;
3004
- }>, 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>;
3005
2768
  }
3006
2769
  //#endregion
3007
2770
  //#region ../../src/cli/core/commands/test.d.ts
3008
2771
  declare class TestCommand {
3009
2772
  protected readonly utils: AlephaCliUtils;
3010
2773
  protected readonly scaffolder: ProjectScaffolder;
3011
- readonly test: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
3012
- config: import("typebox").TOptional<import("typebox").TString>;
3013
- }>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<{
3014
- VITEST_ARGS: import("typebox").TOptional<import("typebox").TString>;
3015
- }>>;
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>>;
3016
2779
  }
3017
2780
  //#endregion
3018
2781
  //#region ../../src/cli/core/commands/typecheck.d.ts
@@ -3022,7 +2785,7 @@ declare class TypecheckCommand {
3022
2785
  /**
3023
2786
  * Run TypeScript type checking across the codebase with no emit.
3024
2787
  */
3025
- 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>;
3026
2789
  }
3027
2790
  //#endregion
3028
2791
  //#region ../../src/cli/core/commands/verify.d.ts
@@ -3042,7 +2805,7 @@ declare class VerifyCommand {
3042
2805
  * - Build the project
3043
2806
  * - Clean the project again
3044
2807
  */
3045
- 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>;
3046
2809
  }
3047
2810
  //#endregion
3048
2811
  //#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts