alepha 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (869) hide show
  1. package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
  2. package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
  3. package/dist/api/audits/index.browser.js +49 -52
  4. package/dist/api/audits/index.browser.js.map +1 -1
  5. package/dist/api/audits/index.d.ts +629 -565
  6. package/dist/api/audits/index.d.ts.map +1 -1
  7. package/dist/api/audits/index.js +206 -98
  8. package/dist/api/audits/index.js.map +1 -1
  9. package/dist/api/files/index.browser.js +44 -44
  10. package/dist/api/files/index.browser.js.map +1 -1
  11. package/dist/api/files/index.d.ts +292 -293
  12. package/dist/api/files/index.d.ts.map +1 -1
  13. package/dist/api/files/index.js +61 -64
  14. package/dist/api/files/index.js.map +1 -1
  15. package/dist/api/jobs/index.browser.js +61 -59
  16. package/dist/api/jobs/index.browser.js.map +1 -1
  17. package/dist/api/jobs/index.d.ts +546 -347
  18. package/dist/api/jobs/index.d.ts.map +1 -1
  19. package/dist/api/jobs/index.js +165 -86
  20. package/dist/api/jobs/index.js.map +1 -1
  21. package/dist/api/keys/index.d.ts +242 -230
  22. package/dist/api/keys/index.d.ts.map +1 -1
  23. package/dist/api/keys/index.js +63 -66
  24. package/dist/api/keys/index.js.map +1 -1
  25. package/dist/api/notifications/index.browser.js +40 -38
  26. package/dist/api/notifications/index.browser.js.map +1 -1
  27. package/dist/api/notifications/index.d.ts +339 -209
  28. package/dist/api/notifications/index.d.ts.map +1 -1
  29. package/dist/api/notifications/index.js +108 -60
  30. package/dist/api/notifications/index.js.map +1 -1
  31. package/dist/api/oauth/index.d.ts +190 -78
  32. package/dist/api/oauth/index.d.ts.map +1 -1
  33. package/dist/api/oauth/index.js +290 -68
  34. package/dist/api/oauth/index.js.map +1 -1
  35. package/dist/api/organizations/index.browser.js +14 -14
  36. package/dist/api/organizations/index.browser.js.map +1 -1
  37. package/dist/api/organizations/index.d.ts +158 -134
  38. package/dist/api/organizations/index.d.ts.map +1 -1
  39. package/dist/api/organizations/index.js +18 -18
  40. package/dist/api/organizations/index.js.map +1 -1
  41. package/dist/api/parameters/index.browser.js +74 -53
  42. package/dist/api/parameters/index.browser.js.map +1 -1
  43. package/dist/api/parameters/index.d.ts +607 -513
  44. package/dist/api/parameters/index.d.ts.map +1 -1
  45. package/dist/api/parameters/index.js +205 -127
  46. package/dist/api/parameters/index.js.map +1 -1
  47. package/dist/api/payments/index.d.ts +652 -449
  48. package/dist/api/payments/index.d.ts.map +1 -1
  49. package/dist/api/payments/index.js +159 -93
  50. package/dist/api/payments/index.js.map +1 -1
  51. package/dist/api/subscriptions/index.d.ts +1032 -762
  52. package/dist/api/subscriptions/index.d.ts.map +1 -1
  53. package/dist/api/subscriptions/index.js +166 -185
  54. package/dist/api/subscriptions/index.js.map +1 -1
  55. package/dist/api/users/index.browser.js +48 -71
  56. package/dist/api/users/index.browser.js.map +1 -1
  57. package/dist/api/users/index.d.ts +1297 -1109
  58. package/dist/api/users/index.d.ts.map +1 -1
  59. package/dist/api/users/index.js +454 -369
  60. package/dist/api/users/index.js.map +1 -1
  61. package/dist/api/verifications/index.browser.js +17 -17
  62. package/dist/api/verifications/index.browser.js.map +1 -1
  63. package/dist/api/verifications/index.d.ts +169 -157
  64. package/dist/api/verifications/index.d.ts.map +1 -1
  65. package/dist/api/verifications/index.js +47 -95
  66. package/dist/api/verifications/index.js.map +1 -1
  67. package/dist/background/index.d.ts +0 -1
  68. package/dist/background/index.d.ts.map +1 -1
  69. package/dist/background/index.js.map +1 -1
  70. package/dist/background/index.workerd.js.map +1 -1
  71. package/dist/batch/index.d.ts +0 -1
  72. package/dist/batch/index.d.ts.map +1 -1
  73. package/dist/batch/index.js.map +1 -1
  74. package/dist/bin/index.js +1 -1
  75. package/dist/bin/index.js.map +1 -1
  76. package/dist/bucket/index.d.ts +27 -32
  77. package/dist/bucket/index.d.ts.map +1 -1
  78. package/dist/bucket/index.js +56 -26
  79. package/dist/bucket/index.js.map +1 -1
  80. package/dist/bucket/index.workerd.js +52 -24
  81. package/dist/bucket/index.workerd.js.map +1 -1
  82. package/dist/cache/core/index.d.ts +4 -6
  83. package/dist/cache/core/index.d.ts.map +1 -1
  84. package/dist/cache/core/index.js +4 -10
  85. package/dist/cache/core/index.js.map +1 -1
  86. package/dist/cache/core/index.workerd.js +4 -10
  87. package/dist/cache/core/index.workerd.js.map +1 -1
  88. package/dist/cache/database/index.d.ts +22 -23
  89. package/dist/cache/database/index.d.ts.map +1 -1
  90. package/dist/cache/database/index.js +11 -20
  91. package/dist/cache/database/index.js.map +1 -1
  92. package/dist/cache/redis/index.d.ts +3 -4
  93. package/dist/cache/redis/index.d.ts.map +1 -1
  94. package/dist/cache/redis/index.js +2 -2
  95. package/dist/cache/redis/index.js.map +1 -1
  96. package/dist/captcha/index.d.ts.map +1 -1
  97. package/dist/captcha/index.js +4 -4
  98. package/dist/captcha/index.js.map +1 -1
  99. package/dist/cli/config/index.d.ts +0 -1
  100. package/dist/cli/config/index.d.ts.map +1 -1
  101. package/dist/cli/core/index.d.ts +244 -475
  102. package/dist/cli/core/index.d.ts.map +1 -1
  103. package/dist/cli/core/index.js +308 -383
  104. package/dist/cli/core/index.js.map +1 -1
  105. package/dist/cli/devtools/index.d.ts +3 -9
  106. package/dist/cli/devtools/index.d.ts.map +1 -1
  107. package/dist/cli/devtools/index.js +3 -3
  108. package/dist/cli/devtools/index.js.map +1 -1
  109. package/dist/cli/i18n/index.d.ts +20 -39
  110. package/dist/cli/i18n/index.d.ts.map +1 -1
  111. package/dist/cli/i18n/index.js +51 -17
  112. package/dist/cli/i18n/index.js.map +1 -1
  113. package/dist/cli/platform/index.d.ts +89 -82
  114. package/dist/cli/platform/index.d.ts.map +1 -1
  115. package/dist/cli/platform/index.js +27 -33
  116. package/dist/cli/platform/index.js.map +1 -1
  117. package/dist/cli/platform-lib/index.d.ts +383 -410
  118. package/dist/cli/platform-lib/index.d.ts.map +1 -1
  119. package/dist/cli/platform-lib/index.js +300 -258
  120. package/dist/cli/platform-lib/index.js.map +1 -1
  121. package/dist/cli/vendor/index.d.ts +17 -41
  122. package/dist/cli/vendor/index.d.ts.map +1 -1
  123. package/dist/cli/vendor/index.js +10 -13
  124. package/dist/cli/vendor/index.js.map +1 -1
  125. package/dist/command/index.d.ts +82 -194
  126. package/dist/command/index.d.ts.map +1 -1
  127. package/dist/command/index.js +160 -563
  128. package/dist/command/index.js.map +1 -1
  129. package/dist/core/index.browser.js +845 -859
  130. package/dist/core/index.browser.js.map +1 -1
  131. package/dist/core/index.d.ts +787 -527
  132. package/dist/core/index.d.ts.map +1 -1
  133. package/dist/core/index.js +845 -859
  134. package/dist/core/index.js.map +1 -1
  135. package/dist/core/index.native.js +845 -859
  136. package/dist/core/index.native.js.map +1 -1
  137. package/dist/core/index.workerd.js +845 -859
  138. package/dist/core/index.workerd.js.map +1 -1
  139. package/dist/crypto/index.browser.js +1 -1
  140. package/dist/crypto/index.browser.js.map +1 -1
  141. package/dist/crypto/index.d.ts +3 -4
  142. package/dist/crypto/index.d.ts.map +1 -1
  143. package/dist/crypto/index.js +6 -3
  144. package/dist/crypto/index.js.map +1 -1
  145. package/dist/datetime/index.d.ts +12 -2
  146. package/dist/datetime/index.d.ts.map +1 -1
  147. package/dist/datetime/index.js +6 -1
  148. package/dist/datetime/index.js.map +1 -1
  149. package/dist/email/brevo/index.d.ts +0 -1
  150. package/dist/email/brevo/index.d.ts.map +1 -1
  151. package/dist/email/brevo/index.js +4 -4
  152. package/dist/email/brevo/index.js.map +1 -1
  153. package/dist/email/cloudflare/index.d.ts +0 -1
  154. package/dist/email/cloudflare/index.d.ts.map +1 -1
  155. package/dist/email/cloudflare/index.js +2 -2
  156. package/dist/email/cloudflare/index.js.map +1 -1
  157. package/dist/email/core/index.d.ts +15 -7
  158. package/dist/email/core/index.d.ts.map +1 -1
  159. package/dist/email/core/index.js +14 -5
  160. package/dist/email/core/index.js.map +1 -1
  161. package/dist/email/core/index.workerd.js +5 -1
  162. package/dist/email/core/index.workerd.js.map +1 -1
  163. package/dist/email/smtp/index.d.ts +8 -9
  164. package/dist/email/smtp/index.d.ts.map +1 -1
  165. package/dist/email/smtp/index.js +702 -479
  166. package/dist/email/smtp/index.js.map +1 -1
  167. package/dist/fake/index.d.ts +1580 -1238
  168. package/dist/fake/index.d.ts.map +1 -1
  169. package/dist/fake/index.js +11728 -32131
  170. package/dist/fake/index.js.map +1 -1
  171. package/dist/lock/core/index.d.ts +13 -9
  172. package/dist/lock/core/index.d.ts.map +1 -1
  173. package/dist/lock/core/index.js +5 -5
  174. package/dist/lock/core/index.js.map +1 -1
  175. package/dist/lock/redis/index.d.ts +0 -1
  176. package/dist/lock/redis/index.d.ts.map +1 -1
  177. package/dist/lock/redis/index.js.map +1 -1
  178. package/dist/logger/index.d.ts +81 -69
  179. package/dist/logger/index.d.ts.map +1 -1
  180. package/dist/logger/index.js +123 -56
  181. package/dist/logger/index.js.map +1 -1
  182. package/dist/mcp/index.d.ts +36 -90
  183. package/dist/mcp/index.d.ts.map +1 -1
  184. package/dist/mcp/index.js +65 -70
  185. package/dist/mcp/index.js.map +1 -1
  186. package/dist/orm/core/index.browser.js +54 -40
  187. package/dist/orm/core/index.browser.js.map +1 -1
  188. package/dist/orm/core/index.bun.js +140 -106
  189. package/dist/orm/core/index.bun.js.map +1 -1
  190. package/dist/orm/core/index.d.ts +145 -150
  191. package/dist/orm/core/index.d.ts.map +1 -1
  192. package/dist/orm/core/index.js +144 -109
  193. package/dist/orm/core/index.js.map +1 -1
  194. package/dist/orm/postgres/index.bun.js +64 -54
  195. package/dist/orm/postgres/index.bun.js.map +1 -1
  196. package/dist/orm/postgres/index.d.ts +36 -76
  197. package/dist/orm/postgres/index.d.ts.map +1 -1
  198. package/dist/orm/postgres/index.js +67 -57
  199. package/dist/orm/postgres/index.js.map +1 -1
  200. package/dist/queue/core/index.d.ts +62 -75
  201. package/dist/queue/core/index.d.ts.map +1 -1
  202. package/dist/queue/core/index.js +48 -71
  203. package/dist/queue/core/index.js.map +1 -1
  204. package/dist/queue/core/index.workerd.js +48 -71
  205. package/dist/queue/core/index.workerd.js.map +1 -1
  206. package/dist/queue/redis/index.d.ts +3 -4
  207. package/dist/queue/redis/index.d.ts.map +1 -1
  208. package/dist/queue/redis/index.js +2 -2
  209. package/dist/queue/redis/index.js.map +1 -1
  210. package/dist/react/auth/index.browser.js.map +1 -1
  211. package/dist/react/auth/index.d.ts +7 -4
  212. package/dist/react/auth/index.d.ts.map +1 -1
  213. package/dist/react/auth/index.js.map +1 -1
  214. package/dist/react/core/index.d.ts +87 -5
  215. package/dist/react/core/index.d.ts.map +1 -1
  216. package/dist/react/core/index.js +170 -23
  217. package/dist/react/core/index.js.map +1 -1
  218. package/dist/react/form/index.d.ts +4 -6
  219. package/dist/react/form/index.d.ts.map +1 -1
  220. package/dist/react/form/index.js +107 -71
  221. package/dist/react/form/index.js.map +1 -1
  222. package/dist/react/head/index.browser.js.map +1 -1
  223. package/dist/react/head/index.d.ts +0 -1
  224. package/dist/react/head/index.d.ts.map +1 -1
  225. package/dist/react/head/index.js.map +1 -1
  226. package/dist/react/i18n/index.d.ts +47 -5
  227. package/dist/react/i18n/index.d.ts.map +1 -1
  228. package/dist/react/i18n/index.js +116 -12
  229. package/dist/react/i18n/index.js.map +1 -1
  230. package/dist/react/intro/index.d.ts +1 -4
  231. package/dist/react/intro/index.d.ts.map +1 -1
  232. package/dist/react/intro/index.js.map +1 -1
  233. package/dist/react/router/index.browser.js +188 -29
  234. package/dist/react/router/index.browser.js.map +1 -1
  235. package/dist/react/router/index.d.ts +480 -372
  236. package/dist/react/router/index.d.ts.map +1 -1
  237. package/dist/react/router/index.js +261 -47
  238. package/dist/react/router/index.js.map +1 -1
  239. package/dist/react/sitemap/index.browser.js +35 -0
  240. package/dist/react/sitemap/index.browser.js.map +1 -0
  241. package/dist/react/sitemap/index.d.ts +91 -0
  242. package/dist/react/sitemap/index.d.ts.map +1 -0
  243. package/dist/react/sitemap/index.js +131 -0
  244. package/dist/react/sitemap/index.js.map +1 -0
  245. package/dist/react/testing/index.d.ts +4 -5
  246. package/dist/react/testing/index.d.ts.map +1 -1
  247. package/dist/react/testing/index.js +41 -15
  248. package/dist/react/testing/index.js.map +1 -1
  249. package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
  250. package/dist/react/ui/index.d.ts +35 -34
  251. package/dist/react/ui/index.d.ts.map +1 -1
  252. package/dist/react/ui/index.js +12 -17
  253. package/dist/react/ui/index.js.map +1 -1
  254. package/dist/redis/index.bun.js +5 -5
  255. package/dist/redis/index.bun.js.map +1 -1
  256. package/dist/redis/index.d.ts +6 -7
  257. package/dist/redis/index.d.ts.map +1 -1
  258. package/dist/redis/index.js +6 -6
  259. package/dist/redis/index.js.map +1 -1
  260. package/dist/retry/index.d.ts +0 -1
  261. package/dist/retry/index.d.ts.map +1 -1
  262. package/dist/retry/index.js.map +1 -1
  263. package/dist/router/index.d.ts.map +1 -1
  264. package/dist/router/index.js.map +1 -1
  265. package/dist/scheduler/index.d.ts +4 -12
  266. package/dist/scheduler/index.d.ts.map +1 -1
  267. package/dist/scheduler/index.js +9 -4
  268. package/dist/scheduler/index.js.map +1 -1
  269. package/dist/scheduler/index.workerd.js +9 -4
  270. package/dist/scheduler/index.workerd.js.map +1 -1
  271. package/dist/security/index.browser.js +30 -28
  272. package/dist/security/index.browser.js.map +1 -1
  273. package/dist/security/index.d.ts +113 -44
  274. package/dist/security/index.d.ts.map +1 -1
  275. package/dist/security/index.js +452 -37
  276. package/dist/security/index.js.map +1 -1
  277. package/dist/server/auth/index.browser.js +19 -19
  278. package/dist/server/auth/index.browser.js.map +1 -1
  279. package/dist/server/auth/index.d.ts +215 -187
  280. package/dist/server/auth/index.d.ts.map +1 -1
  281. package/dist/server/auth/index.js +1145 -86
  282. package/dist/server/auth/index.js.map +1 -1
  283. package/dist/server/cookies/index.browser.js +103 -5
  284. package/dist/server/cookies/index.browser.js.map +1 -1
  285. package/dist/server/cookies/index.d.ts +86 -4
  286. package/dist/server/cookies/index.d.ts.map +1 -1
  287. package/dist/server/cookies/index.js +121 -8
  288. package/dist/server/cookies/index.js.map +1 -1
  289. package/dist/server/core/index.browser.js +22 -27
  290. package/dist/server/core/index.browser.js.map +1 -1
  291. package/dist/server/core/index.d.ts +134 -85
  292. package/dist/server/core/index.d.ts.map +1 -1
  293. package/dist/server/core/index.js +130 -118
  294. package/dist/server/core/index.js.map +1 -1
  295. package/dist/server/cors/index.d.ts +9 -10
  296. package/dist/server/cors/index.d.ts.map +1 -1
  297. package/dist/server/cors/index.js +14 -26
  298. package/dist/server/cors/index.js.map +1 -1
  299. package/dist/server/etag/index.d.ts +2 -3
  300. package/dist/server/etag/index.d.ts.map +1 -1
  301. package/dist/server/etag/index.js.map +1 -1
  302. package/dist/server/health/index.d.ts +18 -19
  303. package/dist/server/health/index.d.ts.map +1 -1
  304. package/dist/server/health/index.js +6 -6
  305. package/dist/server/health/index.js.map +1 -1
  306. package/dist/server/links/index.browser.js +15 -18
  307. package/dist/server/links/index.browser.js.map +1 -1
  308. package/dist/server/links/index.d.ts +66 -67
  309. package/dist/server/links/index.d.ts.map +1 -1
  310. package/dist/server/links/index.js +29 -32
  311. package/dist/server/links/index.js.map +1 -1
  312. package/dist/server/metrics/index.d.ts +0 -1
  313. package/dist/server/metrics/index.d.ts.map +1 -1
  314. package/dist/server/metrics/index.js +10 -3
  315. package/dist/server/metrics/index.js.map +1 -1
  316. package/dist/server/proxy/index.d.ts +0 -1
  317. package/dist/server/proxy/index.d.ts.map +1 -1
  318. package/dist/server/proxy/index.js.map +1 -1
  319. package/dist/server/rate-limit/index.d.ts +8 -9
  320. package/dist/server/rate-limit/index.d.ts.map +1 -1
  321. package/dist/server/rate-limit/index.js +6 -12
  322. package/dist/server/rate-limit/index.js.map +1 -1
  323. package/dist/server/static/index.d.ts +0 -1
  324. package/dist/server/static/index.d.ts.map +1 -1
  325. package/dist/server/static/index.js.map +1 -1
  326. package/dist/server/swagger/index.d.ts +4 -4
  327. package/dist/server/swagger/index.d.ts.map +1 -1
  328. package/dist/server/swagger/index.js +37 -25
  329. package/dist/server/swagger/index.js.map +1 -1
  330. package/dist/sms/index.d.ts +0 -1
  331. package/dist/sms/index.d.ts.map +1 -1
  332. package/dist/sms/index.js.map +1 -1
  333. package/dist/system/index.browser.js.map +1 -1
  334. package/dist/system/index.d.ts +0 -1
  335. package/dist/system/index.d.ts.map +1 -1
  336. package/dist/system/index.js +2 -1
  337. package/dist/system/index.js.map +1 -1
  338. package/dist/system/index.workerd.js.map +1 -1
  339. package/dist/topic/core/index.d.ts +19 -20
  340. package/dist/topic/core/index.d.ts.map +1 -1
  341. package/dist/topic/core/index.js +8 -8
  342. package/dist/topic/core/index.js.map +1 -1
  343. package/dist/topic/redis/index.d.ts +3 -4
  344. package/dist/topic/redis/index.d.ts.map +1 -1
  345. package/dist/topic/redis/index.js +2 -2
  346. package/dist/topic/redis/index.js.map +1 -1
  347. package/package.json +36 -36
  348. package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
  349. package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
  350. package/src/api/audits/controllers/AdminAuditController.ts +41 -41
  351. package/src/api/audits/entities/audits.ts +22 -22
  352. package/src/api/audits/index.ts +6 -1
  353. package/src/api/audits/jobs/AuditJobs.ts +29 -0
  354. package/src/api/audits/parameters/AuditParameters.ts +51 -0
  355. package/src/api/audits/primitives/$audit.ts +24 -0
  356. package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
  357. package/src/api/audits/schemas/createAuditSchema.ts +18 -18
  358. package/src/api/audits/services/AuditService.ts +79 -7
  359. package/src/api/files/__tests__/FileController.spec.ts +5 -5
  360. package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
  361. package/src/api/files/controllers/FileController.ts +25 -25
  362. package/src/api/files/entities/files.ts +15 -15
  363. package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
  364. package/src/api/files/schemas/fileQuerySchema.ts +9 -9
  365. package/src/api/files/schemas/fileResourceSchema.ts +7 -9
  366. package/src/api/files/schemas/storageStatsSchema.ts +13 -13
  367. package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
  368. package/src/api/jobs/__tests__/$job.spec.ts +18 -18
  369. package/src/api/jobs/controllers/AdminJobController.ts +8 -8
  370. package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
  371. package/src/api/jobs/providers/JobProvider.ts +128 -12
  372. package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
  373. package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
  374. package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
  375. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
  376. package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
  377. package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
  378. package/src/api/jobs/services/JobService.ts +6 -6
  379. package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
  380. package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
  381. package/src/api/keys/entities/apiKeyEntity.ts +15 -15
  382. package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
  383. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
  384. package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
  385. package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
  386. package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
  387. package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
  388. package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
  389. package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
  390. package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
  391. package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
  392. package/src/api/notifications/primitives/$notification.ts +43 -4
  393. package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
  394. package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
  395. package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
  396. package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
  397. package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
  398. package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
  399. package/src/api/notifications/services/NotificationSenderService.ts +38 -2
  400. package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
  401. package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
  402. package/src/api/oauth/controllers/OAuthController.ts +132 -12
  403. package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
  404. package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
  405. package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
  406. package/src/api/oauth/index.ts +1 -0
  407. package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
  408. package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
  409. package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
  410. package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
  411. package/src/api/oauth/services/OAuthClientService.ts +228 -15
  412. package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
  413. package/src/api/organizations/entities/organizations.ts +6 -6
  414. package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
  415. package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
  416. package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
  417. package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
  418. package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
  419. package/src/api/parameters/entities/parameters.ts +29 -16
  420. package/src/api/parameters/primitives/$parameter.ts +3 -3
  421. package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
  422. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
  423. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
  424. package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
  425. package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
  426. package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
  427. package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
  428. package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
  429. package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
  430. package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
  431. package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
  432. package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
  433. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
  434. package/src/api/parameters/services/ParameterProvider.ts +152 -65
  435. package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
  436. package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
  437. package/src/api/payments/controllers/PaymentController.ts +4 -4
  438. package/src/api/payments/entities/paymentIntents.ts +11 -11
  439. package/src/api/payments/entities/paymentMethods.ts +11 -11
  440. package/src/api/payments/entities/refunds.ts +9 -9
  441. package/src/api/payments/providers/PaymentProvider.ts +18 -0
  442. package/src/api/payments/schemas/intentSchemas.ts +25 -25
  443. package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
  444. package/src/api/payments/services/PaymentService.ts +60 -3
  445. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
  446. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
  447. package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
  448. package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
  449. package/src/api/subscriptions/entities/subscriptions.ts +22 -22
  450. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
  451. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
  452. package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
  453. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
  454. package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
  455. package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
  456. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
  457. package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
  458. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
  459. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
  460. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
  461. package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
  462. package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
  463. package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
  464. package/src/api/users/controllers/AdminIdentityController.ts +29 -19
  465. package/src/api/users/controllers/AdminSessionController.ts +37 -27
  466. package/src/api/users/controllers/AdminUserController.ts +75 -53
  467. package/src/api/users/controllers/MySessionController.ts +125 -0
  468. package/src/api/users/controllers/RealmController.ts +9 -9
  469. package/src/api/users/controllers/UserController.ts +55 -55
  470. package/src/api/users/entities/identities.ts +8 -8
  471. package/src/api/users/entities/sessions.ts +17 -17
  472. package/src/api/users/entities/users.ts +17 -17
  473. package/src/api/users/index.ts +3 -0
  474. package/src/api/users/notifications/UserNotifications.ts +76 -24
  475. package/src/api/users/primitives/$realm.ts +12 -0
  476. package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
  477. package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
  478. package/src/api/users/schemas/createUserSchema.ts +2 -2
  479. package/src/api/users/schemas/identityQuerySchema.ts +4 -4
  480. package/src/api/users/schemas/identityResourceSchema.ts +3 -2
  481. package/src/api/users/schemas/loginSchema.ts +4 -4
  482. package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
  483. package/src/api/users/schemas/realmConfigSchema.ts +10 -10
  484. package/src/api/users/schemas/registerQuerySchema.ts +6 -6
  485. package/src/api/users/schemas/registerRequestSchema.ts +21 -43
  486. package/src/api/users/schemas/registerResponseSchema.ts +2 -2
  487. package/src/api/users/schemas/registerSchema.ts +13 -31
  488. package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
  489. package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
  490. package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
  491. package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
  492. package/src/api/users/schemas/updateUserSchema.ts +3 -4
  493. package/src/api/users/schemas/userQuerySchema.ts +7 -7
  494. package/src/api/users/services/RegistrationService.ts +25 -11
  495. package/src/api/users/services/UserService.ts +12 -6
  496. package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
  497. package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
  498. package/src/api/verifications/controllers/VerificationController.ts +13 -27
  499. package/src/api/verifications/entities/verifications.ts +13 -14
  500. package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
  501. package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
  502. package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
  503. package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
  504. package/src/api/verifications/services/VerificationService.ts +12 -0
  505. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
  506. package/src/batch/__tests__/$batch.spec.ts +22 -22
  507. package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
  508. package/src/bin/index.ts +1 -1
  509. package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
  510. package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
  511. package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
  512. package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
  513. package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
  514. package/src/cache/core/primitives/$cache.ts +7 -10
  515. package/src/cache/database/entities/cacheEntries.ts +16 -27
  516. package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
  517. package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
  518. package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
  519. package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
  520. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
  521. package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
  522. package/src/cli/core/atoms/appEntryOptions.ts +5 -5
  523. package/src/cli/core/atoms/buildOptions.ts +76 -88
  524. package/src/cli/core/atoms/changelogOptions.ts +3 -3
  525. package/src/cli/core/atoms/devOptions.ts +3 -3
  526. package/src/cli/core/commands/build.ts +36 -49
  527. package/src/cli/core/commands/db.ts +171 -83
  528. package/src/cli/core/commands/dev.ts +8 -8
  529. package/src/cli/core/commands/gen/changelog.ts +12 -14
  530. package/src/cli/core/commands/gen/env.ts +6 -6
  531. package/src/cli/core/commands/gen/openapi.ts +6 -6
  532. package/src/cli/core/commands/init.ts +28 -33
  533. package/src/cli/core/commands/pack.ts +10 -10
  534. package/src/cli/core/commands/root.ts +7 -8
  535. package/src/cli/core/commands/test.ts +17 -20
  536. package/src/cli/core/index.ts +0 -3
  537. package/src/cli/core/tasks/BuildCloudflareTask.ts +138 -245
  538. package/src/cli/core/tasks/BuildPrerenderTask.ts +44 -7
  539. package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
  540. package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
  541. package/src/cli/i18n/__tests__/I18nCheckService.spec.ts +48 -0
  542. package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
  543. package/src/cli/i18n/services/I18nCheckService.ts +65 -11
  544. package/src/cli/platform/commands/SecretsCommand.ts +24 -25
  545. package/src/cli/platform/commands/platform.ts +40 -46
  546. package/src/cli/platform/index.ts +1 -1
  547. package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
  548. package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
  549. package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
  550. package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +141 -50
  551. package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
  552. package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
  553. package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
  554. package/src/cli/platform-lib/schemas/platform.ts +51 -51
  555. package/src/cli/platform-lib/schemas/vercel.ts +28 -28
  556. package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
  557. package/src/cli/platform-lib/services/VercelApi.ts +4 -4
  558. package/src/cli/platform-lib/services/VercelCli.ts +6 -15
  559. package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
  560. package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
  561. package/src/cli/vendor/commands/VendorCommand.ts +11 -12
  562. package/src/command/__tests__/$command.spec.ts +82 -83
  563. package/src/command/__tests__/Asker.spec.ts +6 -13
  564. package/src/command/__tests__/CliProvider.spec.ts +136 -149
  565. package/src/command/__tests__/Runner.spec.ts +86 -110
  566. package/src/command/helpers/Asker.ts +23 -58
  567. package/src/command/helpers/Runner.ts +34 -110
  568. package/src/command/index.ts +4 -9
  569. package/src/command/primitives/$command.ts +10 -10
  570. package/src/command/providers/CliProvider.ts +183 -161
  571. package/src/core/Alepha.ts +62 -13
  572. package/src/core/__tests__/$atom.spec.ts +52 -3
  573. package/src/core/__tests__/$computed.spec.ts +129 -0
  574. package/src/core/__tests__/$env.spec.ts +13 -13
  575. package/src/core/__tests__/$inject.spec.ts +4 -4
  576. package/src/core/__tests__/$module.spec.ts +1 -1
  577. package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
  578. package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
  579. package/src/core/__tests__/Alepha-start.spec.ts +3 -3
  580. package/src/core/__tests__/CodecManager.spec.ts +113 -94
  581. package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
  582. package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
  583. package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
  584. package/src/core/__tests__/StateManager.spec.ts +423 -0
  585. package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
  586. package/src/core/__tests__/TypeProvider.spec.ts +314 -309
  587. package/src/core/__tests__/dump.spec.ts +6 -6
  588. package/src/core/__tests__/pagination.spec.ts +4 -4
  589. package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
  590. package/src/core/errors/TypeBoxError.ts +10 -4
  591. package/src/core/helpers/FileLike.ts +5 -5
  592. package/src/core/helpers/coerceStrings.ts +70 -0
  593. package/src/core/helpers/jsonSchemaToZod.ts +112 -0
  594. package/src/core/index.shared.ts +4 -1
  595. package/src/core/primitives/$atom.ts +95 -27
  596. package/src/core/primitives/$computed.ts +148 -0
  597. package/src/core/primitives/$env.ts +5 -5
  598. package/src/core/primitives/$state.ts +1 -1
  599. package/src/core/providers/AlsProvider.ts +26 -0
  600. package/src/core/providers/CodecManager.ts +1 -2
  601. package/src/core/providers/JsonSchemaCodec.ts +1 -2
  602. package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
  603. package/src/core/providers/SchemaValidator.ts +48 -158
  604. package/src/core/providers/StateManager.ts +383 -9
  605. package/src/core/providers/TypeProvider.ts +80 -734
  606. package/src/core/providers/ZodProvider.ts +380 -0
  607. package/src/core/providers/zodAugment.ts +69 -0
  608. package/src/core/schemas/pageQuerySchema.ts +19 -21
  609. package/src/core/schemas/pageSchema.ts +47 -57
  610. package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
  611. package/src/crypto/providers/SecretProvider.ts +16 -10
  612. package/src/datetime/primitives/$throttle.ts +6 -1
  613. package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
  614. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
  615. package/src/email/core/index.ts +7 -2
  616. package/src/email/core/primitives/$email.ts +5 -1
  617. package/src/email/core/providers/LocalEmailProvider.ts +5 -5
  618. package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
  619. package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
  620. package/src/fake/__tests__/keyName.example.ts +21 -21
  621. package/src/fake/__tests__/keyName.spec.ts +41 -41
  622. package/src/fake/__tests__/module.example.ts +8 -8
  623. package/src/fake/providers/FakeProvider.ts +122 -121
  624. package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
  625. package/src/lock/core/index.ts +1 -0
  626. package/src/lock/core/primitives/$lock.ts +13 -6
  627. package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
  628. package/src/logger/__tests__/Logger.spec.ts +49 -0
  629. package/src/logger/index.ts +25 -18
  630. package/src/logger/providers/CliFormatterProvider.ts +75 -0
  631. package/src/logger/schemas/logEntrySchema.ts +10 -10
  632. package/src/logger/services/Logger.ts +18 -0
  633. package/src/mcp/__tests__/$prompt.spec.ts +21 -23
  634. package/src/mcp/__tests__/$tool.spec.ts +22 -22
  635. package/src/mcp/__tests__/McpServerProvider.spec.ts +82 -11
  636. package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
  637. package/src/mcp/__tests__/integration.spec.ts +33 -33
  638. package/src/mcp/primitives/$prompt.ts +11 -9
  639. package/src/mcp/primitives/$tool.ts +27 -86
  640. package/src/mcp/providers/McpServerProvider.ts +55 -0
  641. package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
  642. package/src/orm/__tests__/$repository-tests.ts +133 -27
  643. package/src/orm/__tests__/$repository.spec.ts +23 -0
  644. package/src/orm/__tests__/$transactional-tests.ts +4 -4
  645. package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
  646. package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
  647. package/src/orm/__tests__/QueryManager.spec.ts +5 -5
  648. package/src/orm/__tests__/delete-returning-tests.ts +11 -11
  649. package/src/orm/__tests__/deletedAt-tests.ts +3 -3
  650. package/src/orm/__tests__/enums.spec.ts +29 -25
  651. package/src/orm/__tests__/execute-tests.ts +8 -8
  652. package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
  653. package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
  654. package/src/orm/__tests__/joins-tests.ts +30 -30
  655. package/src/orm/__tests__/organization-tests.ts +105 -3
  656. package/src/orm/__tests__/organization.spec.ts +46 -0
  657. package/src/orm/__tests__/orm-errors.spec.ts +10 -10
  658. package/src/orm/__tests__/orm-next-tests.ts +29 -29
  659. package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
  660. package/src/orm/__tests__/primaryKey.spec.ts +4 -4
  661. package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
  662. package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
  663. package/src/orm/__tests__/references.spec.ts +7 -7
  664. package/src/orm/__tests__/security.spec.ts +17 -17
  665. package/src/orm/__tests__/string-operators-tests.ts +5 -5
  666. package/src/orm/__tests__/timestamps-tests.ts +14 -14
  667. package/src/orm/__tests__/validation-tests.ts +5 -5
  668. package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
  669. package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
  670. package/src/orm/core/entities/alephaSequences.ts +8 -8
  671. package/src/orm/core/helpers/pgAttr.ts +4 -4
  672. package/src/orm/core/primitives/$entity.ts +10 -6
  673. package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
  674. package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
  675. package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
  676. package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
  677. package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
  678. package/src/orm/core/schemas/insertSchema.ts +14 -18
  679. package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
  680. package/src/orm/core/schemas/updateSchema.ts +10 -16
  681. package/src/orm/core/services/PgRelationManager.ts +2 -2
  682. package/src/orm/core/services/QueryManager.ts +13 -2
  683. package/src/orm/core/services/Repository.ts +88 -33
  684. package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
  685. package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
  686. package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
  687. package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
  688. package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
  689. package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
  690. package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
  691. package/src/queue/core/__tests__/shared.ts +6 -6
  692. package/src/queue/core/primitives/$consumer.ts +5 -5
  693. package/src/queue/core/primitives/$queue.ts +44 -61
  694. package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
  695. package/src/queue/core/providers/WorkerProvider.ts +17 -14
  696. package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
  697. package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
  698. package/src/react/core/__tests__/Router.spec.tsx +4 -4
  699. package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
  700. package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
  701. package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
  702. package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
  703. package/src/react/core/components/ErrorBoundary.tsx +42 -0
  704. package/src/react/core/hooks/useAction.ts +56 -19
  705. package/src/react/core/hooks/useComputed.ts +91 -0
  706. package/src/react/core/hooks/useSelector.ts +67 -0
  707. package/src/react/core/hooks/useStore.ts +36 -17
  708. package/src/react/core/index.ts +3 -0
  709. package/src/react/core/utils/shallowEqual.ts +36 -0
  710. package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +71 -0
  711. package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +96 -0
  712. package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
  713. package/src/react/form/errors/FormValidationError.ts +0 -2
  714. package/src/react/form/hooks/useForm.ts +19 -4
  715. package/src/react/form/hooks/useFormQuerySync.ts +0 -0
  716. package/src/react/form/services/FormModel.ts +124 -86
  717. package/src/react/form/services/parseField.ts +66 -27
  718. package/src/react/i18n/__tests__/I18nProvider.spec.ts +89 -0
  719. package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
  720. package/src/react/i18n/__tests__/locale-routing.spec.ts +107 -0
  721. package/src/react/i18n/providers/I18nProvider.ts +173 -14
  722. package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
  723. package/src/react/router/__tests__/$page.spec.tsx +21 -21
  724. package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
  725. package/src/react/router/__tests__/RouterLocaleProvider.spec.ts +127 -0
  726. package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
  727. package/src/react/router/components/NestedView.tsx +11 -3
  728. package/src/react/router/hooks/useQueryParams.ts +1 -1
  729. package/src/react/router/index.browser.ts +4 -0
  730. package/src/react/router/index.shared.ts +1 -0
  731. package/src/react/router/index.ts +9 -0
  732. package/src/react/router/primitives/$page.ts +2 -2
  733. package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
  734. package/src/react/router/providers/ReactBrowserRouterProvider.ts +15 -1
  735. package/src/react/router/providers/ReactPageProvider.ts +38 -13
  736. package/src/react/router/providers/ReactServerProvider.ts +105 -16
  737. package/src/react/router/providers/RootComponentsProvider.ts +13 -0
  738. package/src/react/router/providers/RouterLocaleProvider.ts +125 -0
  739. package/src/react/router/providers/__tests__/RootComponentsProvider.spec.ts +15 -0
  740. package/src/react/router/providers/__tests__/rootComponents.ssr.browser.spec.tsx +67 -0
  741. package/src/react/sitemap/__tests__/$sitemap.spec.ts +131 -0
  742. package/src/react/sitemap/index.browser.ts +21 -0
  743. package/src/react/sitemap/index.ts +25 -0
  744. package/src/react/sitemap/primitives/$sitemap.browser.ts +26 -0
  745. package/src/react/sitemap/primitives/$sitemap.ts +196 -0
  746. package/src/react/ui/atoms/uiAtom.ts +6 -6
  747. package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
  748. package/src/react/ui/hooks/useColorMode.ts +11 -4
  749. package/src/react/ui/services/SchemaControl.ts +4 -4
  750. package/src/redis/providers/BunRedisProvider.ts +19 -11
  751. package/src/redis/providers/NodeRedisProvider.ts +3 -3
  752. package/src/scheduler/primitives/$scheduler.ts +21 -8
  753. package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
  754. package/src/security/atoms/currentTenantAtom.ts +6 -6
  755. package/src/security/atoms/currentUserAtom.ts +2 -2
  756. package/src/security/primitives/$issuer.ts +24 -2
  757. package/src/security/providers/JwtProvider.ts +100 -0
  758. package/src/security/providers/SecurityProvider.ts +43 -2
  759. package/src/security/schemas/permissionSchema.ts +19 -19
  760. package/src/security/schemas/roleSchema.ts +22 -28
  761. package/src/security/schemas/userAccountInfoSchema.ts +47 -37
  762. package/src/server/auth/__tests__/appleClientSecret.spec.ts +34 -0
  763. package/src/server/auth/__tests__/federationRedirectReplay.spec.ts +44 -0
  764. package/src/server/auth/helpers/appleClientSecret.ts +24 -0
  765. package/src/server/auth/helpers/jtiReplayGuard.ts +41 -0
  766. package/src/server/auth/helpers/safeRedirectPath.ts +19 -0
  767. package/src/server/auth/index.ts +1 -0
  768. package/src/server/auth/primitives/$auth.ts +6 -6
  769. package/src/server/auth/primitives/$authApple.ts +10 -10
  770. package/src/server/auth/primitives/$authFacebook.ts +10 -10
  771. package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
  772. package/src/server/auth/primitives/$authGithub.ts +10 -10
  773. package/src/server/auth/primitives/$authGoogle.ts +10 -10
  774. package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
  775. package/src/server/auth/providers/ServerAuthProvider.ts +67 -52
  776. package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
  777. package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
  778. package/src/server/auth/schemas/tokensSchema.ts +16 -16
  779. package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
  780. package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
  781. package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
  782. package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
  783. package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +82 -12
  784. package/src/server/cookies/index.browser.ts +4 -1
  785. package/src/server/cookies/index.ts +8 -1
  786. package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
  787. package/src/server/cookies/primitives/$cookie.ts +16 -0
  788. package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
  789. package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
  790. package/src/server/cookies/providers/ServerCookiesProvider.ts +32 -4
  791. package/src/server/cookies/services/CookieParser.ts +6 -1
  792. package/src/server/core/__tests__/$action.spec.ts +13 -13
  793. package/src/server/core/__tests__/$middleware.spec.ts +10 -10
  794. package/src/server/core/__tests__/$route.spec.ts +9 -9
  795. package/src/server/core/__tests__/$sse.spec.ts +26 -26
  796. package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
  797. package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
  798. package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
  799. package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
  800. package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
  801. package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
  802. package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
  803. package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
  804. package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
  805. package/src/server/core/errors/ValidationError.ts +6 -3
  806. package/src/server/core/helpers/isMultipart.ts +2 -1
  807. package/src/server/core/index.ts +5 -2
  808. package/src/server/core/interfaces/ServerRequest.ts +14 -14
  809. package/src/server/core/primitives/$action.ts +26 -36
  810. package/src/server/core/primitives/$route.ts +27 -0
  811. package/src/server/core/primitives/$sse.ts +3 -3
  812. package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
  813. package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
  814. package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
  815. package/src/server/core/providers/ServerCompressProvider.ts +9 -10
  816. package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
  817. package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
  818. package/src/server/core/providers/ServerRouterProvider.ts +44 -15
  819. package/src/server/core/schemas/errorSchema.ts +20 -25
  820. package/src/server/core/schemas/okSchema.ts +9 -14
  821. package/src/server/core/services/HttpClient.ts +13 -1
  822. package/src/server/core/services/ServerRequestParser.ts +6 -6
  823. package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
  824. package/src/server/health/schemas/healthSchema.ts +6 -6
  825. package/src/server/links/__tests__/$remote.spec.ts +3 -3
  826. package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
  827. package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
  828. package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
  829. package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
  830. package/src/server/links/atoms/apiLinksAtom.ts +2 -2
  831. package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
  832. package/src/server/links/primitives/$remote.ts +3 -3
  833. package/src/server/links/providers/LinkProvider.ts +3 -3
  834. package/src/server/links/providers/ServerLinksProvider.ts +20 -20
  835. package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
  836. package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
  837. package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
  838. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
  839. package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
  840. package/src/server/swagger/__tests__/ui.spec.ts +3 -3
  841. package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
  842. package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
  843. package/src/system/providers/NodeShellProvider.ts +4 -1
  844. package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
  845. package/src/topic/core/__tests__/shared.ts +8 -8
  846. package/src/topic/core/primitives/$subscriber.ts +5 -5
  847. package/src/topic/core/primitives/$topic.ts +14 -14
  848. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  849. package/dist/container/core/index.d.ts +0 -236
  850. package/dist/container/core/index.d.ts.map +0 -1
  851. package/dist/container/core/index.js +0 -231
  852. package/dist/container/core/index.js.map +0 -1
  853. package/dist/container/core/index.workerd.js +0 -192
  854. package/dist/container/core/index.workerd.js.map +0 -1
  855. package/src/cli/core/tasks/BuildSitemapTask.ts +0 -130
  856. package/src/command/helpers/PrettyAsker.ts +0 -256
  857. package/src/command/helpers/PrettyPrint.ts +0 -332
  858. package/src/container/core/__tests__/$container.spec.ts +0 -83
  859. package/src/container/core/index.ts +0 -50
  860. package/src/container/core/index.workerd.ts +0 -53
  861. package/src/container/core/interfaces/ContainerOptions.ts +0 -69
  862. package/src/container/core/primitives/$container.ts +0 -100
  863. package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
  864. package/src/container/core/providers/ContainerProvider.ts +0 -92
  865. package/src/container/core/providers/MockContainerProvider.ts +0 -62
  866. package/src/container/core/providers/NodeContainerProvider.ts +0 -53
  867. package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
  868. package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
  869. /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
@@ -4,7 +4,6 @@ import { Asker, EnvUtils, Runner, RunnerMethod } from "alepha/command";
4
4
  import { ConsoleColorProvider } from "alepha/logger";
5
5
  import { FileSystemProvider, ShellProvider } from "alepha/system";
6
6
  import { DateTimeProvider } from "alepha/datetime";
7
-
8
7
  //#region ../../src/cli/platform-lib/providers/PlatformCacheProvider.d.ts
9
8
  interface PlatformCache {
10
9
  [adapter: string]: {
@@ -31,161 +30,161 @@ declare class PlatformCacheProvider {
31
30
  }
32
31
  //#endregion
33
32
  //#region ../../src/cli/platform-lib/schemas/cloudflare.d.ts
34
- declare const cloudflareAccountSchema: import("typebox").TObject<{
35
- id: import("typebox").TString;
36
- name: import("typebox").TString;
37
- }>;
33
+ declare const cloudflareAccountSchema: import("zod").ZodObject<{
34
+ id: import("zod").ZodString;
35
+ name: import("zod").ZodString;
36
+ }, import("zod/v4/core").$strip>;
38
37
  type CloudflareAccount = Static<typeof cloudflareAccountSchema>;
39
- declare const cloudflareD1Schema: import("typebox").TObject<{
40
- uuid: import("typebox").TString;
41
- name: import("typebox").TString;
42
- }>;
38
+ declare const cloudflareD1Schema: import("zod").ZodObject<{
39
+ uuid: import("zod").ZodString;
40
+ name: import("zod").ZodString;
41
+ }, import("zod/v4/core").$strip>;
43
42
  type CloudflareD1 = Static<typeof cloudflareD1Schema>;
44
- declare const cloudflareKVSchema: import("typebox").TObject<{
45
- id: import("typebox").TString;
46
- title: import("typebox").TString;
47
- }>;
43
+ declare const cloudflareKVSchema: import("zod").ZodObject<{
44
+ id: import("zod").ZodString;
45
+ title: import("zod").ZodString;
46
+ }, import("zod/v4/core").$strip>;
48
47
  type CloudflareKV = Static<typeof cloudflareKVSchema>;
49
- declare const cloudflareR2Schema: import("typebox").TObject<{
50
- name: import("typebox").TString;
51
- creation_date: import("typebox").TOptional<import("typebox").TString>;
52
- }>;
48
+ declare const cloudflareR2Schema: import("zod").ZodObject<{
49
+ name: import("zod").ZodString;
50
+ creation_date: import("zod").ZodOptional<import("zod").ZodString>;
51
+ }, import("zod/v4/core").$strip>;
53
52
  type CloudflareR2 = Static<typeof cloudflareR2Schema>;
54
- declare const cloudflareR2ListSchema: import("typebox").TObject<{
55
- buckets: import("typebox").TArray<import("typebox").TObject<{
56
- name: import("typebox").TString;
57
- creation_date: import("typebox").TOptional<import("typebox").TString>;
58
- }>>;
59
- }>;
60
- declare const cloudflareQueueSchema: import("typebox").TObject<{
61
- queue_id: import("typebox").TString;
62
- queue_name: import("typebox").TString;
63
- }>;
53
+ declare const cloudflareR2ListSchema: import("zod").ZodObject<{
54
+ buckets: import("zod").ZodArray<import("zod").ZodObject<{
55
+ name: import("zod").ZodString;
56
+ creation_date: import("zod").ZodOptional<import("zod").ZodString>;
57
+ }, import("zod/v4/core").$strip>>;
58
+ }, import("zod/v4/core").$strip>;
59
+ declare const cloudflareQueueSchema: import("zod").ZodObject<{
60
+ queue_id: import("zod").ZodString;
61
+ queue_name: import("zod").ZodString;
62
+ }, import("zod/v4/core").$strip>;
64
63
  type CloudflareQueue = Static<typeof cloudflareQueueSchema>;
65
- declare const cloudflareQueueConsumerSchema: import("typebox").TObject<{
66
- consumer_id: import("typebox").TString;
67
- service: import("typebox").TString;
68
- environment: import("typebox").TOptional<import("typebox").TString>;
69
- }>;
64
+ declare const cloudflareQueueConsumerSchema: import("zod").ZodObject<{
65
+ consumer_id: import("zod").ZodString;
66
+ service: import("zod").ZodString;
67
+ environment: import("zod").ZodOptional<import("zod").ZodString>;
68
+ }, import("zod/v4/core").$strip>;
70
69
  type CloudflareQueueConsumer = Static<typeof cloudflareQueueConsumerSchema>;
71
- declare const cloudflareHyperdriveOriginSchema: import("typebox").TObject<{
72
- host: import("typebox").TString;
73
- }>;
74
- declare const cloudflareHyperdriveSchema: import("typebox").TObject<{
75
- id: import("typebox").TString;
76
- name: import("typebox").TString;
77
- origin: import("typebox").TObject<{
78
- host: import("typebox").TString;
79
- }>;
80
- }>;
70
+ declare const cloudflareHyperdriveOriginSchema: import("zod").ZodObject<{
71
+ host: import("zod").ZodString;
72
+ }, import("zod/v4/core").$strip>;
73
+ declare const cloudflareHyperdriveSchema: import("zod").ZodObject<{
74
+ id: import("zod").ZodString;
75
+ name: import("zod").ZodString;
76
+ origin: import("zod").ZodObject<{
77
+ host: import("zod").ZodString;
78
+ }, import("zod/v4/core").$strip>;
79
+ }, import("zod/v4/core").$strip>;
81
80
  type CloudflareHyperdrive = Static<typeof cloudflareHyperdriveSchema>;
82
- declare const cloudflareWorkerSchema: import("typebox").TObject<{
83
- id: import("typebox").TString;
84
- created_on: import("typebox").TString;
85
- modified_on: import("typebox").TString;
86
- }>;
81
+ declare const cloudflareWorkerSchema: import("zod").ZodObject<{
82
+ id: import("zod").ZodString;
83
+ created_on: import("zod").ZodString;
84
+ modified_on: import("zod").ZodString;
85
+ }, import("zod/v4/core").$strip>;
87
86
  type CloudflareWorker = Static<typeof cloudflareWorkerSchema>;
88
- declare const cloudflareDeploymentVersionSchema: import("typebox").TObject<{
89
- version_id: import("typebox").TString;
90
- percentage: import("typebox").TNumber;
91
- }>;
92
- declare const cloudflareDeploymentSchema: import("typebox").TObject<{
93
- id: import("typebox").TString;
94
- versions: import("typebox").TArray<import("typebox").TObject<{
95
- version_id: import("typebox").TString;
96
- percentage: import("typebox").TNumber;
97
- }>>;
98
- created_on: import("typebox").TString;
99
- }>;
87
+ declare const cloudflareDeploymentVersionSchema: import("zod").ZodObject<{
88
+ version_id: import("zod").ZodString;
89
+ percentage: import("zod").ZodNumber;
90
+ }, import("zod/v4/core").$strip>;
91
+ declare const cloudflareDeploymentSchema: import("zod").ZodObject<{
92
+ id: import("zod").ZodString;
93
+ versions: import("zod").ZodArray<import("zod").ZodObject<{
94
+ version_id: import("zod").ZodString;
95
+ percentage: import("zod").ZodNumber;
96
+ }, import("zod/v4/core").$strip>>;
97
+ created_on: import("zod").ZodString;
98
+ }, import("zod/v4/core").$strip>;
100
99
  type CloudflareDeployment = Static<typeof cloudflareDeploymentSchema>;
101
- declare const cloudflareDeploymentListSchema: import("typebox").TObject<{
102
- deployments: import("typebox").TArray<import("typebox").TObject<{
103
- id: import("typebox").TString;
104
- versions: import("typebox").TArray<import("typebox").TObject<{
105
- version_id: import("typebox").TString;
106
- percentage: import("typebox").TNumber;
107
- }>>;
108
- created_on: import("typebox").TString;
109
- }>>;
110
- }>;
111
- declare const cloudflareVersionSchema: import("typebox").TObject<{
112
- id: import("typebox").TString;
113
- metadata: import("typebox").TObject<{
114
- created_on: import("typebox").TString;
115
- }>;
116
- annotations: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TString>>;
117
- }>;
100
+ declare const cloudflareDeploymentListSchema: import("zod").ZodObject<{
101
+ deployments: import("zod").ZodArray<import("zod").ZodObject<{
102
+ id: import("zod").ZodString;
103
+ versions: import("zod").ZodArray<import("zod").ZodObject<{
104
+ version_id: import("zod").ZodString;
105
+ percentage: import("zod").ZodNumber;
106
+ }, import("zod/v4/core").$strip>>;
107
+ created_on: import("zod").ZodString;
108
+ }, import("zod/v4/core").$strip>>;
109
+ }, import("zod/v4/core").$strip>;
110
+ declare const cloudflareVersionSchema: import("zod").ZodObject<{
111
+ id: import("zod").ZodString;
112
+ metadata: import("zod").ZodObject<{
113
+ created_on: import("zod").ZodString;
114
+ }, import("zod/v4/core").$strip>;
115
+ annotations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
116
+ }, import("zod/v4/core").$strip>;
118
117
  type CloudflareVersion = Static<typeof cloudflareVersionSchema>;
119
- declare const cloudflareVersionListSchema: import("typebox").TObject<{
120
- items: import("typebox").TArray<import("typebox").TObject<{
121
- id: import("typebox").TString;
122
- metadata: import("typebox").TObject<{
123
- created_on: import("typebox").TString;
124
- }>;
125
- annotations: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TString>>;
126
- }>>;
127
- }>;
128
- declare const cloudflareSecretSchema: import("typebox").TObject<{
129
- name: import("typebox").TString;
130
- type: import("typebox").TString;
131
- }>;
118
+ declare const cloudflareVersionListSchema: import("zod").ZodObject<{
119
+ items: import("zod").ZodArray<import("zod").ZodObject<{
120
+ id: import("zod").ZodString;
121
+ metadata: import("zod").ZodObject<{
122
+ created_on: import("zod").ZodString;
123
+ }, import("zod/v4/core").$strip>;
124
+ annotations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
125
+ }, import("zod/v4/core").$strip>>;
126
+ }, import("zod/v4/core").$strip>;
127
+ declare const cloudflareSecretSchema: import("zod").ZodObject<{
128
+ name: import("zod").ZodString;
129
+ type: import("zod").ZodString;
130
+ }, import("zod/v4/core").$strip>;
132
131
  type CloudflareSecret = Static<typeof cloudflareSecretSchema>;
133
- declare const createD1BodySchema: import("typebox").TObject<{
134
- name: import("typebox").TString;
135
- primary_location_hint: import("typebox").TOptional<import("typebox").TString>;
136
- jurisdiction: import("typebox").TOptional<import("typebox").TString>;
137
- }>;
138
- declare const createKVBodySchema: import("typebox").TObject<{
139
- title: import("typebox").TString;
140
- }>;
141
- declare const createR2BodySchema: import("typebox").TObject<{
142
- name: import("typebox").TString;
143
- }>;
144
- declare const cloudflareR2TokenSchema: import("typebox").TObject<{
145
- id: import("typebox").TString;
146
- accessKeyId: import("typebox").TString;
147
- secretAccessKey: import("typebox").TString;
148
- }>;
132
+ declare const createD1BodySchema: import("zod").ZodObject<{
133
+ name: import("zod").ZodString;
134
+ primary_location_hint: import("zod").ZodOptional<import("zod").ZodString>;
135
+ jurisdiction: import("zod").ZodOptional<import("zod").ZodString>;
136
+ }, import("zod/v4/core").$strip>;
137
+ declare const createKVBodySchema: import("zod").ZodObject<{
138
+ title: import("zod").ZodString;
139
+ }, import("zod/v4/core").$strip>;
140
+ declare const createR2BodySchema: import("zod").ZodObject<{
141
+ name: import("zod").ZodString;
142
+ }, import("zod/v4/core").$strip>;
143
+ declare const cloudflareR2TokenSchema: import("zod").ZodObject<{
144
+ id: import("zod").ZodString;
145
+ accessKeyId: import("zod").ZodString;
146
+ secretAccessKey: import("zod").ZodString;
147
+ }, import("zod/v4/core").$strip>;
149
148
  type CloudflareR2Token = Static<typeof cloudflareR2TokenSchema>;
150
- declare const createR2TokenBodySchema: import("typebox").TObject<{
151
- name: import("typebox").TString;
152
- policies: import("typebox").TArray<import("typebox").TObject<{
153
- effect: import("typebox").TString;
154
- permissions: import("typebox").TArray<import("typebox").TString>;
155
- buckets: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
156
- }>>;
157
- }>;
158
- declare const createQueueBodySchema: import("typebox").TObject<{
159
- queue_name: import("typebox").TString;
160
- }>;
161
- declare const createHyperdriveOriginSchema: import("typebox").TObject<{
162
- scheme: import("typebox").TString;
163
- host: import("typebox").TString;
164
- port: import("typebox").TNumber;
165
- database: import("typebox").TString;
166
- user: import("typebox").TString;
167
- password: import("typebox").TString;
168
- }>;
169
- declare const createHyperdriveBodySchema: import("typebox").TObject<{
170
- name: import("typebox").TString;
171
- origin: import("typebox").TObject<{
172
- scheme: import("typebox").TString;
173
- host: import("typebox").TString;
174
- port: import("typebox").TNumber;
175
- database: import("typebox").TString;
176
- user: import("typebox").TString;
177
- password: import("typebox").TString;
178
- }>;
179
- }>;
180
- declare const putSecretBodySchema: import("typebox").TObject<{
181
- name: import("typebox").TString;
182
- text: import("typebox").TString;
183
- type: import("typebox").TString;
184
- }>;
185
- declare const cloudflareApiErrorSchema: import("typebox").TObject<{
186
- code: import("typebox").TNumber;
187
- message: import("typebox").TString;
188
- }>;
149
+ declare const createR2TokenBodySchema: import("zod").ZodObject<{
150
+ name: import("zod").ZodString;
151
+ policies: import("zod").ZodArray<import("zod").ZodObject<{
152
+ effect: import("zod").ZodString;
153
+ permissions: import("zod").ZodArray<import("zod").ZodString>;
154
+ buckets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
155
+ }, import("zod/v4/core").$strip>>;
156
+ }, import("zod/v4/core").$strip>;
157
+ declare const createQueueBodySchema: import("zod").ZodObject<{
158
+ queue_name: import("zod").ZodString;
159
+ }, import("zod/v4/core").$strip>;
160
+ declare const createHyperdriveOriginSchema: import("zod").ZodObject<{
161
+ scheme: import("zod").ZodString;
162
+ host: import("zod").ZodString;
163
+ port: import("zod").ZodNumber;
164
+ database: import("zod").ZodString;
165
+ user: import("zod").ZodString;
166
+ password: import("zod").ZodString;
167
+ }, import("zod/v4/core").$strip>;
168
+ declare const createHyperdriveBodySchema: import("zod").ZodObject<{
169
+ name: import("zod").ZodString;
170
+ origin: import("zod").ZodObject<{
171
+ scheme: import("zod").ZodString;
172
+ host: import("zod").ZodString;
173
+ port: import("zod").ZodNumber;
174
+ database: import("zod").ZodString;
175
+ user: import("zod").ZodString;
176
+ password: import("zod").ZodString;
177
+ }, import("zod/v4/core").$strip>;
178
+ }, import("zod/v4/core").$strip>;
179
+ declare const putSecretBodySchema: import("zod").ZodObject<{
180
+ name: import("zod").ZodString;
181
+ text: import("zod").ZodString;
182
+ type: import("zod").ZodString;
183
+ }, import("zod/v4/core").$strip>;
184
+ declare const cloudflareApiErrorSchema: import("zod").ZodObject<{
185
+ code: import("zod").ZodNumber;
186
+ message: import("zod").ZodString;
187
+ }, import("zod/v4/core").$strip>;
189
188
  type CloudflareApiError = Static<typeof cloudflareApiErrorSchema>;
190
189
  //#endregion
191
190
  //#region ../../src/cli/platform-lib/services/WranglerApi.d.ts
@@ -201,12 +200,11 @@ declare class WranglerApi {
201
200
  protected readonly shell: ShellProvider;
202
201
  protected readonly utils: AlephaCliUtils;
203
202
  protected readonly pm: PackageManagerUtils;
204
- protected readonly runner: Runner;
205
203
  protected runShell(command: string, options?: Parameters<ShellProvider["run"]>[1]): Promise<string>;
206
204
  /**
207
205
  * Ensure wrangler is installed in the project.
208
206
  */
209
- ensureInstalled(root: string, run: RunnerMethod): Promise<void>;
207
+ ensureInstalled(root: string): Promise<void>;
210
208
  /**
211
209
  * Check if the user is authenticated. Returns the whoami output.
212
210
  */
@@ -378,107 +376,39 @@ declare class CloudflareApi {
378
376
  * Filled from the `platform` section of `alepha.config.ts`.
379
377
  * Read by `PlatformCommand` to resolve environments and adapters.
380
378
  */
381
- declare const platformOptions: import("alepha").Atom<import("typebox").TOptional<import("typebox").TObject<{
382
- /**
383
- * Project name override. Defaults to root package.json "name".
384
- */
385
- name: import("typebox").TOptional<import("typebox").TString>;
386
- /**
387
- * Default environment when --env is omitted.
388
- *
389
- * @default "production"
390
- */
391
- default: import("typebox").TOptional<import("typebox").TString>;
392
- /**
393
- * Multi-tenancy mode — controls whether `--tenant <slug>` is
394
- * accepted/required and how it shapes resource names + the domain.
395
- *
396
- * - `none` (default): single instance. `--tenant` is rejected.
397
- * - `required`: every deploy needs `--tenant`; resources are named
398
- * `<tenant>-<project>-<env>` and the host becomes
399
- * `<tenant>.<domain>`. Omitting it errors.
400
- * - `optional`: a base instance (no `--tenant`) plus per-tenant
401
- * instances coexist.
402
- *
403
- * @default "none"
404
- */
405
- tenancy: import("typebox").TOptional<import("typebox").TUnsafe<"required" | "none" | "optional">>;
406
- /**
407
- * Secret store configuration for syncing .env secrets
408
- * to external providers (e.g. GitHub Actions environments).
409
- */
410
- secrets: import("typebox").TOptional<import("typebox").TObject<{
411
- /**
412
- * Explicit override of the worker secret-key allowlist.
413
- *
414
- * By default the deploy `secrets` step uses the build manifest's
415
- * `env` list (every key the app declares via `$env`, captured at
416
- * build time) as the allowlist, resolving each value from
417
- * `.env.<env>[.local]` first, then `process.env`. This lets CI
418
- * deliver secrets via the job environment (no `.env` file on the
419
- * runner) while only ever pushing declared keys — ambient runner
420
- * vars (PATH, GITHUB_*, …) can never leak.
421
- *
422
- * Set `keys` to override that auto-detected list (e.g. to narrow it,
423
- * or to add a key read via `process.env` rather than `$env`). When
424
- * neither this nor a manifest is present, the `.env.<env>` file is
425
- * itself the allowlist (legacy fallback).
426
- */
427
- keys: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
428
- /**
429
- * Secret store backend.
430
- */
431
- store: import("typebox").TOptional<import("typebox").TUnsafe<"github">>;
432
- /**
433
- * Pattern for resolving environment names in the store.
434
- * Placeholders: {project}, {env}.
435
- *
436
- * @default "{project}-{env}"
437
- */
438
- environmentPattern: import("typebox").TOptional<import("typebox").TString>;
379
+ declare const platformOptions: import("alepha").Atom<import("zod").ZodOptional<import("zod").ZodObject<{
380
+ name: import("zod").ZodOptional<import("zod").ZodString>;
381
+ default: import("zod").ZodOptional<import("zod").ZodString>;
382
+ tenancy: import("zod").ZodOptional<import("zod").ZodEnum<{
383
+ none: "none";
384
+ optional: "optional";
385
+ required: "required";
439
386
  }>>;
440
- /**
441
- * Named environments with their adapter and configuration.
442
- */
443
- environments: import("typebox").TRecord<"^.*$", import("typebox").TObject<{
444
- adapter: import("typebox").TUnsafe<"cloudflare" | "vercel">;
445
- /**
446
- * Custom domain for the deployed worker (e.g. "api.example.com").
447
- *
448
- * On Cloudflare this is attached as a custom-domain route.
449
- * Omit to use the adapter's default `*.workers.dev` / preview URL.
450
- *
451
- * Wildcards are supported for multi-tenant SaaS apps:
452
- * `"*.club.alepha.dev"` routes every subdomain to the worker.
453
- * Wildcard patterns require `zone` to be set, and the wildcard DNS
454
- * record must already exist (proxied) in the Cloudflare zone.
455
- */
456
- domain: import("typebox").TOptional<import("typebox").TString>;
457
- /**
458
- * Cloudflare zone name (e.g. "alepha.dev") that owns `domain`.
459
- *
460
- * Required when `domain` contains a wildcard (`*`). Ignored for
461
- * plain custom domains, which Cloudflare resolves automatically.
462
- */
463
- zone: import("typebox").TOptional<import("typebox").TString>;
464
- /**
465
- * Cloudflare data jurisdiction for R2 buckets and D1 databases.
466
- * - "eu": data stays within the EU
467
- * - "fedramp": FedRAMP-authorized regions
468
- *
469
- * Omit for the default (global) jurisdiction.
470
- */
471
- jurisdiction: import("typebox").TOptional<import("typebox").TUnsafe<"eu" | "fedramp">>;
472
- /**
473
- * Cloudflare account ID to deploy into.
474
- *
475
- * Falls back to `CLOUDFLARE_ACCOUNT_ID` env var, then to the
476
- * token's account when the token is scoped to exactly one.
477
- * Required when the token has access to multiple accounts.
478
- */
479
- accountId: import("typebox").TOptional<import("typebox").TString>;
480
- }>>;
481
- }>>, "alepha.cli.platform.options">;
387
+ secrets: import("zod").ZodOptional<import("zod").ZodObject<{
388
+ keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
389
+ store: import("zod").ZodOptional<import("zod").ZodEnum<{
390
+ github: "github";
391
+ }>>;
392
+ environmentPattern: import("zod").ZodOptional<import("zod").ZodString>;
393
+ }, import("zod/v4/core").$strip>>;
394
+ environments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
395
+ adapter: import("zod").ZodEnum<{
396
+ cloudflare: "cloudflare";
397
+ vercel: "vercel";
398
+ }>;
399
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
400
+ zone: import("zod").ZodOptional<import("zod").ZodString>;
401
+ services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
402
+ binding: import("zod").ZodString;
403
+ service: import("zod").ZodString;
404
+ }, import("zod/v4/core").$strip>>>;
405
+ jurisdiction: import("zod").ZodOptional<import("zod").ZodEnum<{
406
+ eu: "eu";
407
+ fedramp: "fedramp";
408
+ }>>;
409
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
410
+ }, import("zod/v4/core").$strip>>;
411
+ }, import("zod/v4/core").$strip>>, "alepha.cli.platform.options">;
482
412
  /**
483
413
  * Type for platform options.
484
414
  */
@@ -493,6 +423,10 @@ interface EnvironmentConfig {
493
423
  vars?: Record<string, string>;
494
424
  jurisdiction?: "eu" | "fedramp";
495
425
  accountId?: string;
426
+ services?: Array<{
427
+ binding: string;
428
+ service: string;
429
+ }>;
496
430
  }
497
431
  //#endregion
498
432
  //#region ../../src/cli/platform-lib/services/NamingService.d.ts
@@ -728,20 +662,24 @@ declare class CloudflareAdapter extends PlatformAdapter {
728
662
  protected readonly options: Readonly<{
729
663
  name?: string | undefined;
730
664
  default?: string | undefined;
731
- tenancy?: "required" | "none" | "optional" | undefined;
665
+ tenancy?: "none" | "optional" | "required" | undefined;
732
666
  secrets?: {
733
667
  keys?: string[] | undefined;
734
668
  store?: "github" | undefined;
735
669
  environmentPattern?: string | undefined;
736
670
  } | undefined;
737
671
  environments: Record<string, {
672
+ adapter: "cloudflare" | "vercel";
738
673
  domain?: string | undefined;
739
674
  zone?: string | undefined;
675
+ services?: {
676
+ binding: string;
677
+ service: string;
678
+ }[] | undefined;
740
679
  jurisdiction?: "eu" | "fedramp" | undefined;
741
680
  accountId?: string | undefined;
742
- adapter: "cloudflare" | "vercel";
743
681
  }>;
744
- }>;
682
+ } | undefined>;
745
683
  protected provisionedD1Id?: string;
746
684
  protected provisionedHyperdriveId?: string;
747
685
  protected provisionedKVIds: Map<string, string>;
@@ -812,15 +750,41 @@ declare class CloudflareAdapter extends PlatformAdapter {
812
750
  protected ensureD1(name: string): Promise<string>;
813
751
  protected ensureHyperdrive(name: string, connectionString: string): Promise<string>;
814
752
  protected ensureR2(name: string): Promise<void>;
753
+ /** Whether a Cloudflare error message indicates the bucket is already gone. */
754
+ protected isMissingBucketError(msg: string): boolean;
755
+ /**
756
+ * Resolve S3 credentials for wiping an R2 bucket over the S3 protocol.
757
+ *
758
+ * Prefers the account's R2 S3 credentials from the environment
759
+ * (`S3_ACCESS_KEY_ID` / `S3_SECRET_ACCESS_KEY`) — these are already
760
+ * provisioned for the deploy (artifact registry) and are account-scoped,
761
+ * so they can empty any bucket without minting anything. Returns `null`
762
+ * when not configured, letting the caller fall back to token minting.
763
+ */
764
+ protected resolveR2Credentials(): {
765
+ accessKeyId: string;
766
+ secretAccessKey: string;
767
+ } | null;
768
+ /**
769
+ * Delete an R2 bucket, emptying it first only when necessary.
770
+ *
771
+ * Cloudflare's REST `DELETE /r2/buckets/:name` succeeds on an empty bucket
772
+ * but rejects a non-empty one. So we attempt the delete directly (the
773
+ * common teardown case — no objects, no creds needed), and only on failure
774
+ * empty the bucket over the S3 protocol and retry. A missing bucket is a
775
+ * no-op, so teardown is idempotent.
776
+ */
777
+ protected deleteR2Bucket(name: string, ctx: PlatformContext): Promise<void>;
815
778
  /**
816
779
  * Empty an R2 bucket via the S3-compatible API.
817
780
  *
818
- * Cloudflare's REST `DELETE /r2/buckets/:name` rejects non-empty buckets
819
- * with `BucketNotEmpty`, and the REST API has no object-level endpoints
820
- * objects must be listed and deleted over the S3 protocol. To avoid
821
- * making users pre-create R2 access keys, we mint a short-lived
822
- * bucket-scoped API token using the wrangler bearer token, wipe the
823
- * bucket with `s3mini`, then revoke the token.
781
+ * Cloudflare's REST API has no object-level endpoints — objects must be
782
+ * listed and deleted over the S3 protocol. We use the account's R2 S3
783
+ * credentials (`S3_ACCESS_KEY_ID` / `S3_SECRET_ACCESS_KEY`) when present;
784
+ * otherwise we fall back to minting a short-lived bucket-scoped token via
785
+ * the CF API (requires a user-scoped `CLOUDFLARE_API_TOKEN`) and revoke it
786
+ * after. When neither is available the wipe is skipped with a warning —
787
+ * the caller still attempts the delete, which succeeds for empty buckets.
824
788
  *
825
789
  * Also aborts any pending multipart uploads — those count as bucket
826
790
  * contents from R2's perspective and would otherwise block the delete.
@@ -839,41 +803,41 @@ declare class CloudflareAdapter extends PlatformAdapter {
839
803
  }
840
804
  //#endregion
841
805
  //#region ../../src/cli/platform-lib/schemas/vercel.d.ts
842
- declare const vercelProjectSchema: import("typebox").TObject<{
843
- id: import("typebox").TString;
844
- name: import("typebox").TString;
845
- accountId: import("typebox").TString;
846
- }>;
806
+ declare const vercelProjectSchema: import("zod").ZodObject<{
807
+ id: import("zod").ZodString;
808
+ name: import("zod").ZodString;
809
+ accountId: import("zod").ZodString;
810
+ }, import("zod/v4/core").$strip>;
847
811
  type VercelProject = Static<typeof vercelProjectSchema>;
848
- declare const createProjectBodySchema: import("typebox").TObject<{
849
- name: import("typebox").TString;
850
- framework: import("typebox").TOptional<import("typebox").TNull>;
851
- }>;
852
- declare const vercelDeploymentSchema: import("typebox").TObject<{
853
- uid: import("typebox").TString;
854
- name: import("typebox").TString;
855
- url: import("typebox").TString;
856
- state: import("typebox").TOptional<import("typebox").TString>;
857
- readyState: import("typebox").TOptional<import("typebox").TString>;
858
- created: import("typebox").TOptional<import("typebox").TNumber>;
859
- target: import("typebox").TOptional<import("typebox").TString>;
860
- alias: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
861
- }>;
812
+ declare const createProjectBodySchema: import("zod").ZodObject<{
813
+ name: import("zod").ZodString;
814
+ framework: import("zod").ZodOptional<import("zod").ZodNull>;
815
+ }, import("zod/v4/core").$strip>;
816
+ declare const vercelDeploymentSchema: import("zod").ZodObject<{
817
+ uid: import("zod").ZodString;
818
+ name: import("zod").ZodString;
819
+ url: import("zod").ZodString;
820
+ state: import("zod").ZodOptional<import("zod").ZodString>;
821
+ readyState: import("zod").ZodOptional<import("zod").ZodString>;
822
+ created: import("zod").ZodOptional<import("zod").ZodNumber>;
823
+ target: import("zod").ZodOptional<import("zod").ZodString>;
824
+ alias: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
825
+ }, import("zod/v4/core").$strip>;
862
826
  type VercelDeployment = Static<typeof vercelDeploymentSchema>;
863
- declare const vercelEnvVarSchema: import("typebox").TObject<{
864
- id: import("typebox").TString;
865
- key: import("typebox").TString;
866
- value: import("typebox").TOptional<import("typebox").TString>;
867
- type: import("typebox").TString;
868
- target: import("typebox").TArray<import("typebox").TString>;
869
- }>;
827
+ declare const vercelEnvVarSchema: import("zod").ZodObject<{
828
+ id: import("zod").ZodString;
829
+ key: import("zod").ZodString;
830
+ value: import("zod").ZodOptional<import("zod").ZodString>;
831
+ type: import("zod").ZodString;
832
+ target: import("zod").ZodArray<import("zod").ZodString>;
833
+ }, import("zod/v4/core").$strip>;
870
834
  type VercelEnvVar = Static<typeof vercelEnvVarSchema>;
871
- declare const createEnvVarBodySchema: import("typebox").TObject<{
872
- key: import("typebox").TString;
873
- value: import("typebox").TString;
874
- type: import("typebox").TString;
875
- target: import("typebox").TArray<import("typebox").TString>;
876
- }>;
835
+ declare const createEnvVarBodySchema: import("zod").ZodObject<{
836
+ key: import("zod").ZodString;
837
+ value: import("zod").ZodString;
838
+ type: import("zod").ZodString;
839
+ target: import("zod").ZodArray<import("zod").ZodString>;
840
+ }, import("zod/v4/core").$strip>;
877
841
  //#endregion
878
842
  //#region ../../src/cli/platform-lib/services/VercelCli.d.ts
879
843
  /**
@@ -888,12 +852,11 @@ declare class VercelCli {
888
852
  protected readonly fs: FileSystemProvider;
889
853
  protected readonly utils: AlephaCliUtils;
890
854
  protected readonly pm: PackageManagerUtils;
891
- protected readonly runner: Runner;
892
855
  protected runShell(command: string, options?: Parameters<ShellProvider["run"]>[1]): Promise<string>;
893
856
  /**
894
857
  * Ensure vercel CLI is installed in the project.
895
858
  */
896
- ensureInstalled(root: string, run: RunnerMethod): Promise<void>;
859
+ ensureInstalled(root: string): Promise<void>;
897
860
  /**
898
861
  * Get the Vercel auth token.
899
862
  *
@@ -987,7 +950,6 @@ declare class VercelAdapter extends PlatformAdapter {
987
950
  protected readonly envUtils: EnvUtils;
988
951
  protected readonly api: VercelApi;
989
952
  protected readonly vercelCli: VercelCli;
990
- protected readonly runner: Runner;
991
953
  /**
992
954
  * Vars that should not be pushed as env vars.
993
955
  * These are either handled by the build or are internal.
@@ -1125,121 +1087,124 @@ declare class MemorySecretStore implements SecretStoreProvider {
1125
1087
  }
1126
1088
  //#endregion
1127
1089
  //#region ../../src/cli/platform-lib/schemas/platform.d.ts
1128
- declare const platformStatusWorkerSchema: import("typebox").TObject<{
1129
- name: import("typebox").TString;
1130
- exists: import("typebox").TBoolean;
1131
- id: import("typebox").TOptional<import("typebox").TString>;
1132
- detail: import("typebox").TOptional<import("typebox").TString>;
1133
- version: import("typebox").TOptional<import("typebox").TString>;
1134
- tag: import("typebox").TOptional<import("typebox").TString>;
1135
- createdAt: import("typebox").TOptional<import("typebox").TString>;
1136
- }>;
1137
- declare const platformStatusResourceSchema: import("typebox").TObject<{
1138
- name: import("typebox").TString;
1139
- exists: import("typebox").TBoolean;
1140
- id: import("typebox").TOptional<import("typebox").TString>;
1141
- detail: import("typebox").TOptional<import("typebox").TString>;
1142
- }>;
1143
- declare const platformStatusSecretSchema: import("typebox").TObject<{
1144
- name: import("typebox").TString;
1145
- deployed: import("typebox").TBoolean;
1146
- }>;
1147
- declare const platformStatusSchema: import("typebox").TObject<{
1148
- project: import("typebox").TString;
1149
- env: import("typebox").TString;
1150
- adapter: import("typebox").TString;
1151
- workers: import("typebox").TArray<import("typebox").TObject<{
1152
- name: import("typebox").TString;
1153
- exists: import("typebox").TBoolean;
1154
- id: import("typebox").TOptional<import("typebox").TString>;
1155
- detail: import("typebox").TOptional<import("typebox").TString>;
1156
- version: import("typebox").TOptional<import("typebox").TString>;
1157
- tag: import("typebox").TOptional<import("typebox").TString>;
1158
- createdAt: import("typebox").TOptional<import("typebox").TString>;
1159
- }>>;
1160
- databases: import("typebox").TArray<import("typebox").TObject<{
1161
- name: import("typebox").TString;
1162
- exists: import("typebox").TBoolean;
1163
- id: import("typebox").TOptional<import("typebox").TString>;
1164
- detail: import("typebox").TOptional<import("typebox").TString>;
1165
- }>>;
1166
- buckets: import("typebox").TArray<import("typebox").TObject<{
1167
- name: import("typebox").TString;
1168
- exists: import("typebox").TBoolean;
1169
- id: import("typebox").TOptional<import("typebox").TString>;
1170
- detail: import("typebox").TOptional<import("typebox").TString>;
1171
- }>>;
1172
- kvNamespaces: import("typebox").TArray<import("typebox").TObject<{
1173
- name: import("typebox").TString;
1174
- exists: import("typebox").TBoolean;
1175
- id: import("typebox").TOptional<import("typebox").TString>;
1176
- detail: import("typebox").TOptional<import("typebox").TString>;
1177
- }>>;
1178
- queues: import("typebox").TArray<import("typebox").TObject<{
1179
- name: import("typebox").TString;
1180
- exists: import("typebox").TBoolean;
1181
- id: import("typebox").TOptional<import("typebox").TString>;
1182
- detail: import("typebox").TOptional<import("typebox").TString>;
1183
- }>>;
1184
- secrets: import("typebox").TArray<import("typebox").TObject<{
1185
- name: import("typebox").TString;
1186
- deployed: import("typebox").TBoolean;
1187
- }>>;
1188
- }>;
1090
+ declare const platformStatusWorkerSchema: import("zod").ZodObject<{
1091
+ name: import("zod").ZodString;
1092
+ exists: import("zod").ZodBoolean;
1093
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1094
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1095
+ version: import("zod").ZodOptional<import("zod").ZodString>;
1096
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
1097
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
1098
+ }, import("zod/v4/core").$strip>;
1099
+ declare const platformStatusResourceSchema: import("zod").ZodObject<{
1100
+ name: import("zod").ZodString;
1101
+ exists: import("zod").ZodBoolean;
1102
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1103
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1104
+ }, import("zod/v4/core").$strip>;
1105
+ declare const platformStatusSecretSchema: import("zod").ZodObject<{
1106
+ name: import("zod").ZodString;
1107
+ deployed: import("zod").ZodBoolean;
1108
+ }, import("zod/v4/core").$strip>;
1109
+ declare const platformStatusSchema: import("zod").ZodObject<{
1110
+ project: import("zod").ZodString;
1111
+ env: import("zod").ZodString;
1112
+ adapter: import("zod").ZodString;
1113
+ workers: import("zod").ZodArray<import("zod").ZodObject<{
1114
+ name: import("zod").ZodString;
1115
+ exists: import("zod").ZodBoolean;
1116
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1117
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1118
+ version: import("zod").ZodOptional<import("zod").ZodString>;
1119
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
1120
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
1121
+ }, import("zod/v4/core").$strip>>;
1122
+ databases: import("zod").ZodArray<import("zod").ZodObject<{
1123
+ name: import("zod").ZodString;
1124
+ exists: import("zod").ZodBoolean;
1125
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1126
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1127
+ }, import("zod/v4/core").$strip>>;
1128
+ buckets: import("zod").ZodArray<import("zod").ZodObject<{
1129
+ name: import("zod").ZodString;
1130
+ exists: import("zod").ZodBoolean;
1131
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1132
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1133
+ }, import("zod/v4/core").$strip>>;
1134
+ kvNamespaces: import("zod").ZodArray<import("zod").ZodObject<{
1135
+ name: import("zod").ZodString;
1136
+ exists: import("zod").ZodBoolean;
1137
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1138
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1139
+ }, import("zod/v4/core").$strip>>;
1140
+ queues: import("zod").ZodArray<import("zod").ZodObject<{
1141
+ name: import("zod").ZodString;
1142
+ exists: import("zod").ZodBoolean;
1143
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1144
+ detail: import("zod").ZodOptional<import("zod").ZodString>;
1145
+ }, import("zod/v4/core").$strip>>;
1146
+ secrets: import("zod").ZodArray<import("zod").ZodObject<{
1147
+ name: import("zod").ZodString;
1148
+ deployed: import("zod").ZodBoolean;
1149
+ }, import("zod/v4/core").$strip>>;
1150
+ }, import("zod/v4/core").$strip>;
1189
1151
  type PlatformStatusOutput = Static<typeof platformStatusSchema>;
1190
- declare const platformPlanAppResourcesSchema: import("typebox").TObject<{
1191
- hasDatabase: import("typebox").TBoolean;
1192
- hasBucket: import("typebox").TBoolean;
1193
- hasKV: import("typebox").TBoolean;
1194
- hasQueue: import("typebox").TBoolean;
1195
- hasCron: import("typebox").TBoolean;
1196
- }>;
1197
- declare const platformPlanAppSchema: import("typebox").TObject<{
1198
- name: import("typebox").TString;
1199
- path: import("typebox").TString;
1200
- resources: import("typebox").TObject<{
1201
- hasDatabase: import("typebox").TBoolean;
1202
- hasBucket: import("typebox").TBoolean;
1203
- hasKV: import("typebox").TBoolean;
1204
- hasQueue: import("typebox").TBoolean;
1205
- hasCron: import("typebox").TBoolean;
1152
+ declare const platformPlanAppResourcesSchema: import("zod").ZodObject<{
1153
+ hasDatabase: import("zod").ZodBoolean;
1154
+ hasBucket: import("zod").ZodBoolean;
1155
+ hasKV: import("zod").ZodBoolean;
1156
+ hasQueue: import("zod").ZodBoolean;
1157
+ hasCron: import("zod").ZodBoolean;
1158
+ }, import("zod/v4/core").$strip>;
1159
+ declare const platformPlanAppSchema: import("zod").ZodObject<{
1160
+ name: import("zod").ZodString;
1161
+ path: import("zod").ZodString;
1162
+ resources: import("zod").ZodObject<{
1163
+ hasDatabase: import("zod").ZodBoolean;
1164
+ hasBucket: import("zod").ZodBoolean;
1165
+ hasKV: import("zod").ZodBoolean;
1166
+ hasQueue: import("zod").ZodBoolean;
1167
+ hasCron: import("zod").ZodBoolean;
1168
+ }, import("zod/v4/core").$strip>;
1169
+ }, import("zod/v4/core").$strip>;
1170
+ declare const platformPlanEnvironmentSchema: import("zod").ZodObject<{
1171
+ adapter: import("zod").ZodString;
1172
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
1173
+ zone: import("zod").ZodOptional<import("zod").ZodString>;
1174
+ }, import("zod/v4/core").$strip>;
1175
+ declare const platformPlanResourceSchema: import("zod").ZodObject<{
1176
+ label: import("zod").ZodString;
1177
+ value: import("zod").ZodString;
1178
+ }, import("zod/v4/core").$strip>;
1179
+ declare const platformPlanSchema: import("zod").ZodObject<{
1180
+ project: import("zod").ZodString;
1181
+ env: import("zod").ZodString;
1182
+ mode: import("zod").ZodEnum<{
1183
+ monorepo: "monorepo";
1184
+ standalone: "standalone";
1206
1185
  }>;
1207
- }>;
1208
- declare const platformPlanEnvironmentSchema: import("typebox").TObject<{
1209
- adapter: import("typebox").TString;
1210
- domain: import("typebox").TOptional<import("typebox").TString>;
1211
- zone: import("typebox").TOptional<import("typebox").TString>;
1212
- }>;
1213
- declare const platformPlanResourceSchema: import("typebox").TObject<{
1214
- label: import("typebox").TString;
1215
- value: import("typebox").TString;
1216
- }>;
1217
- declare const platformPlanSchema: import("typebox").TObject<{
1218
- project: import("typebox").TString;
1219
- env: import("typebox").TString;
1220
- mode: import("typebox").TUnsafe<"monorepo" | "standalone">;
1221
- apps: import("typebox").TArray<import("typebox").TObject<{
1222
- name: import("typebox").TString;
1223
- path: import("typebox").TString;
1224
- resources: import("typebox").TObject<{
1225
- hasDatabase: import("typebox").TBoolean;
1226
- hasBucket: import("typebox").TBoolean;
1227
- hasKV: import("typebox").TBoolean;
1228
- hasQueue: import("typebox").TBoolean;
1229
- hasCron: import("typebox").TBoolean;
1230
- }>;
1231
- }>>;
1232
- environments: import("typebox").TRecord<"^.*$", import("typebox").TObject<{
1233
- adapter: import("typebox").TString;
1234
- domain: import("typebox").TOptional<import("typebox").TString>;
1235
- zone: import("typebox").TOptional<import("typebox").TString>;
1236
- }>>;
1237
- resources: import("typebox").TArray<import("typebox").TObject<{
1238
- label: import("typebox").TString;
1239
- value: import("typebox").TString;
1240
- }>>;
1241
- secretCount: import("typebox").TNumber;
1242
- }>;
1186
+ apps: import("zod").ZodArray<import("zod").ZodObject<{
1187
+ name: import("zod").ZodString;
1188
+ path: import("zod").ZodString;
1189
+ resources: import("zod").ZodObject<{
1190
+ hasDatabase: import("zod").ZodBoolean;
1191
+ hasBucket: import("zod").ZodBoolean;
1192
+ hasKV: import("zod").ZodBoolean;
1193
+ hasQueue: import("zod").ZodBoolean;
1194
+ hasCron: import("zod").ZodBoolean;
1195
+ }, import("zod/v4/core").$strip>;
1196
+ }, import("zod/v4/core").$strip>>;
1197
+ environments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1198
+ adapter: import("zod").ZodString;
1199
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
1200
+ zone: import("zod").ZodOptional<import("zod").ZodString>;
1201
+ }, import("zod/v4/core").$strip>>;
1202
+ resources: import("zod").ZodArray<import("zod").ZodObject<{
1203
+ label: import("zod").ZodString;
1204
+ value: import("zod").ZodString;
1205
+ }, import("zod/v4/core").$strip>>;
1206
+ secretCount: import("zod").ZodNumber;
1207
+ }, import("zod/v4/core").$strip>;
1243
1208
  type PlatformPlanOutput = Static<typeof platformPlanSchema>;
1244
1209
  //#endregion
1245
1210
  //#region ../../src/cli/platform-lib/services/PlatformInspector.d.ts
@@ -1269,20 +1234,24 @@ declare class PlatformInspector {
1269
1234
  protected readonly options: Readonly<{
1270
1235
  name?: string | undefined;
1271
1236
  default?: string | undefined;
1272
- tenancy?: "required" | "none" | "optional" | undefined;
1237
+ tenancy?: "none" | "optional" | "required" | undefined;
1273
1238
  secrets?: {
1274
1239
  keys?: string[] | undefined;
1275
1240
  store?: "github" | undefined;
1276
1241
  environmentPattern?: string | undefined;
1277
1242
  } | undefined;
1278
1243
  environments: Record<string, {
1244
+ adapter: "cloudflare" | "vercel";
1279
1245
  domain?: string | undefined;
1280
1246
  zone?: string | undefined;
1247
+ services?: {
1248
+ binding: string;
1249
+ service: string;
1250
+ }[] | undefined;
1281
1251
  jurisdiction?: "eu" | "fedramp" | undefined;
1282
1252
  accountId?: string | undefined;
1283
- adapter: "cloudflare" | "vercel";
1284
1253
  }>;
1285
- }>;
1254
+ } | undefined>;
1286
1255
  protected readonly naming: NamingService;
1287
1256
  /**
1288
1257
  * Resolve and validate the full platform configuration.
@@ -1345,7 +1314,8 @@ declare class PlatformOrchestrator {
1345
1314
  * `dist/` and just need the wrangler config refreshed for
1346
1315
  * per-tenant overrides on every deploy.
1347
1316
  */
1348
- prebuilt?: boolean; /** Tenant slug (apps with tenancy optional|required). */
1317
+ prebuilt?: boolean;
1318
+ /** Tenant slug (apps with tenancy optional|required). */
1349
1319
  tenant?: string;
1350
1320
  }): Promise<{
1351
1321
  urls: string[];
@@ -1366,13 +1336,15 @@ declare class PlatformOrchestrator {
1366
1336
  entry: AppEntry;
1367
1337
  resources: DetectedResources;
1368
1338
  run: RunnerMethod;
1369
- confirm: (prompt: string) => Promise<string>; /** Tenant slug (apps with tenancy optional|required). */
1339
+ confirm: (prompt: string) => Promise<string>;
1340
+ /** Tenant slug (apps with tenancy optional|required). */
1370
1341
  tenant?: string;
1371
1342
  }): Promise<boolean>;
1372
1343
  plan(options: {
1373
1344
  root: string;
1374
1345
  env: string;
1375
- resources: DetectedResources; /** Tenant slug (apps with tenancy optional|required). */
1346
+ resources: DetectedResources;
1347
+ /** Tenant slug (apps with tenancy optional|required). */
1376
1348
  tenant?: string;
1377
1349
  }): Promise<{
1378
1350
  config: ResolvedPlatformConfig;
@@ -1384,7 +1356,8 @@ declare class PlatformOrchestrator {
1384
1356
  env: string;
1385
1357
  entry: AppEntry;
1386
1358
  resources: DetectedResources;
1387
- run: RunnerMethod; /** Tenant slug (apps with tenancy optional|required). */
1359
+ run: RunnerMethod;
1360
+ /** Tenant slug (apps with tenancy optional|required). */
1388
1361
  tenant?: string;
1389
1362
  }): Promise<{
1390
1363
  config: ResolvedPlatformConfig;