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
@@ -7,65 +7,47 @@ import { Page, RepositoryProvider } from "alepha/orm";
7
7
  import { FileSystemProvider } from "alepha/system";
8
8
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
9
9
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
10
+ import "drizzle-orm/pg-core/foreign-keys";
11
+ import "drizzle-orm/pg-core/session";
12
+ import "alepha/crypto";
13
+ import "drizzle-kit/api";
14
+ import "drizzle-orm/d1";
15
+ import "drizzle-orm/sqlite-core";
10
16
  //#region ../../src/api/files/entities/files.d.ts
11
- declare const files: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
12
- id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
13
- version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
14
- createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
15
- updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
16
- organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
17
- blobId: import("typebox").TString;
18
- creator: import("typebox").TOptional<import("typebox").TString>;
19
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
20
- creatorName: import("typebox").TOptional<import("typebox").TString>;
21
- bucket: import("typebox").TString;
22
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
23
- /**
24
- * Display name. Mutable via `FileService.updateFile` — can be renamed
25
- * by callers (e.g. an Archive UI letting users rename uploaded blobs).
26
- * Initialized to the uploader's filename at upload time. Use
27
- * `originalName` if you need the as-uploaded filename after a rename.
28
- */
29
- name: import("typebox").TString;
30
- /**
31
- * Immutable record of the uploader's filename at upload time. Set once
32
- * by `FileService.uploadFile` and the `bucket:file:uploaded` hook;
33
- * `FileService.updateFile` never touches it. Useful for download
34
- * headers (Content-Disposition), audit trails, and any UI that wants
35
- * to show "originally uploaded as X" alongside a renamed file.
36
- */
37
- originalName: import("typebox").TOptional<import("typebox").TString>;
38
- size: import("typebox").TNumber;
39
- mimeType: import("typebox").TString;
40
- /**
41
- * Free-form taxonomy. Normalized server-side (trim/lowercase/dedupe is
42
- * caller's responsibility for now). Use with `FileQuery.tags` to
43
- * filter via array-contains.
44
- */
45
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
46
- /**
47
- * SHA-256 hex digest of the file content (64 lowercase hex chars).
48
- * Computed at upload time by `FileService.calculateChecksum`. Stable
49
- * — never recomputed after upload. Use for integrity verification,
50
- * content-based dedup, or downstream virus-scan correlation.
51
- */
52
- checksum: import("typebox").TOptional<import("typebox").TString>;
53
- }>>;
17
+ declare const files: import("alepha/orm").EntityPrimitive<import("zod").ZodObject<{
18
+ id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
19
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodInt, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
20
+ createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
21
+ updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
22
+ organizationId: import("alepha/orm").PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof import("alepha/orm").PG_ORGANIZATION>;
23
+ blobId: import("zod").ZodString;
24
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
25
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
26
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
27
+ bucket: import("zod").ZodString;
28
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
29
+ name: import("zod").ZodString;
30
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
31
+ size: import("zod").ZodNumber;
32
+ mimeType: import("zod").ZodString;
33
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
34
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
35
+ }, import("zod/v4/core").$strip>>;
54
36
  type FileEntity = Static<typeof files.schema>;
55
37
  //#endregion
56
38
  //#region ../../src/api/files/schemas/fileQuerySchema.d.ts
57
- declare const fileQuerySchema: import("typebox").TObject<{
58
- page: import("typebox").TOptional<import("typebox").TInteger>;
59
- size: import("typebox").TOptional<import("typebox").TInteger>;
60
- sort: import("typebox").TOptional<import("typebox").TString>;
61
- bucket: import("typebox").TOptional<import("typebox").TString>;
62
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
63
- name: import("typebox").TOptional<import("typebox").TString>;
64
- mimeType: import("typebox").TOptional<import("typebox").TString>;
65
- creator: import("typebox").TOptional<import("typebox").TString>;
66
- createdAfter: import("typebox").TOptional<import("typebox").TString>;
67
- createdBefore: import("typebox").TOptional<import("typebox").TString>;
68
- }>;
39
+ declare const fileQuerySchema: import("zod").ZodObject<{
40
+ page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodInt>>;
41
+ size: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodInt>>;
42
+ sort: import("zod").ZodOptional<import("zod").ZodString>;
43
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
44
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
45
+ name: import("zod").ZodOptional<import("zod").ZodString>;
46
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
47
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
48
+ createdAfter: import("zod").ZodOptional<import("zod").ZodString>;
49
+ createdBefore: import("zod").ZodOptional<import("zod").ZodString>;
50
+ }, import("zod/v4/core").$strip>;
69
51
  type FileQuery = Static<typeof fileQuerySchema>;
70
52
  //#endregion
71
53
  //#region ../../src/orm/core/schemas/insertSchema.d.ts
@@ -78,15 +60,13 @@ type FileQuery = Static<typeof fileQuerySchema>;
78
60
  * Before: { name: string; age: number(default=0); fullName: generated }
79
61
  * After: { name: string; age?: number; }
80
62
  */
81
- type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as T["properties"][K] extends {
63
+ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["shape"] as T["shape"][K] extends {
82
64
  [PG_GENERATED]: any;
83
- } ? never : K]: T["properties"][K] extends {
65
+ } ? never : K]: T["shape"][K] extends {
84
66
  [PG_DEFAULT]: any;
85
67
  } | {
86
68
  [PG_ORGANIZATION]: any;
87
- } | {
88
- "~optional": true;
89
- } ? TOptional<T["properties"][K]> : T["properties"][K] }>;
69
+ } ? TOptional<Extract<T["shape"][K], TSchema>> : T["shape"][K]; }>;
90
70
  //#endregion
91
71
  //#region ../../src/orm/core/schemas/updateSchema.d.ts
92
72
  /**
@@ -98,9 +78,9 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as
98
78
  * Before: { name?: string; age: number; fullName: generated }
99
79
  * After: { name?: string | null; age: number; }
100
80
  */
101
- type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["properties"] as T["properties"][K] extends {
81
+ type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["shape"] as T["shape"][K] extends {
102
82
  [PG_GENERATED]: any;
103
- } ? never : K]: T["properties"][K] extends TOptional<infer U> ? TOptional<TUnion<[U, TNull]>> : T["properties"][K] }>;
83
+ } ? never : K]: T["shape"][K] extends TOptional<infer U extends TSchema> ? TOptional<TUnion<[U, TNull]>> : T["shape"][K]; }>;
104
84
  //#endregion
105
85
  //#region ../../src/orm/core/primitives/$entity.d.ts
106
86
  interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
@@ -260,18 +240,20 @@ declare class EntityPrimitive<T extends TObject = TObject> {
260
240
  get cols(): EntityColumns<T>;
261
241
  get name(): string;
262
242
  get schema(): T;
243
+ protected _insertSchema?: TObjectInsert<T>;
263
244
  get insertSchema(): TObjectInsert<T>;
245
+ protected _updateSchema?: TObjectUpdate<T>;
264
246
  get updateSchema(): TObjectUpdate<T>;
265
247
  }
266
248
  /**
267
249
  * Convert a schema to columns.
268
250
  */
269
- type FromSchema<T extends TObject> = { [key in keyof T["properties"]]: PgColumnBuilderBase };
251
+ type FromSchema<T extends TObject> = { [key in keyof T["properties"]]: PgColumnBuilderBase; };
270
252
  type EntityColumn<T extends TObject> = {
271
253
  name: string;
272
254
  entity: EntityPrimitive<T>;
273
255
  };
274
- type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T> };
256
+ type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T>; };
275
257
  //#endregion
276
258
  //#region ../../src/orm/core/constants/PG_SYMBOLS.d.ts
277
259
  declare const PG_DEFAULT: unique symbol;
@@ -300,13 +282,24 @@ type PgSymbols = {
300
282
  [PG_REF]: PgRefOptions;
301
283
  [PG_ENUM]: PgEnumOptions;
302
284
  [PG_GENERATED]: PgGeneratedOptions;
303
- [PG_ORGANIZATION]: {};
285
+ [PG_ORGANIZATION]: PgOrganizationOptions;
304
286
  /**
305
287
  * @deprecated Use `PG_IDENTITY` instead.
306
288
  */
307
289
  [PG_SERIAL]: {};
308
290
  };
309
291
  type PgSymbolKeys = keyof PgSymbols;
292
+ interface PgOrganizationOptions {
293
+ /**
294
+ * Fail-closed tenant scoping. When `true`, the repository (a) refuses any
295
+ * read/write with no resolved tenant instead of falling through to an
296
+ * unfiltered "see/write everything" query, and (b) drops the
297
+ * `OR organizationId IS NULL` "global row" escape — a scoped tenant never
298
+ * sees NULL/global rows. Use for security-sensitive tables. Defaults to
299
+ * `false` (the historic fail-open semantics).
300
+ */
301
+ strict?: boolean;
302
+ }
310
303
  type PgIdentityOptions = {
311
304
  mode: "always" | "byDefault";
312
305
  } & PgSequenceOptions & {
@@ -343,7 +336,7 @@ interface PgRefOptions {
343
336
  /**
344
337
  * Type representation.
345
338
  */
346
- type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
339
+ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K]; };
347
340
  //#endregion
348
341
  //#region ../../src/orm/core/schemas/databaseEnvSchema.d.ts
349
342
  /**
@@ -359,73 +352,66 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
359
352
  * - `d1://BINDING_NAME` — Cloudflare D1
360
353
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
361
354
  */
362
- declare const databaseEnvSchema: import("typebox").TObject<{
363
- DATABASE_URL: import("typebox").TOptional<import("typebox").TString>;
364
- /**
365
- * Enable or disable push-based schema synchronization (drizzle-kit push).
366
- *
367
- * Defaults to `true` in development and test, `false` in production.
368
- * Set to `false` in development to skip automatic schema sync
369
- * (e.g. when managing migrations manually).
370
- */
371
- DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
372
- }>;
355
+ declare const databaseEnvSchema: import("zod").ZodObject<{
356
+ DATABASE_URL: import("zod").ZodOptional<import("zod").ZodString>;
357
+ DATABASE_SYNC: import("zod").ZodOptional<import("zod").ZodBoolean>;
358
+ }, import("zod/v4/core").$strip>;
373
359
  declare module "alepha" {
374
360
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
375
- } //# sourceMappingURL=databaseEnvSchema.d.ts.map
361
+ }
376
362
  //#endregion
377
363
  //#region ../../src/api/files/schemas/fileResourceSchema.d.ts
378
- declare const fileResourceSchema: import("typebox").TObject<{
379
- id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
380
- version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
381
- createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
382
- updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
383
- organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
384
- blobId: import("typebox").TString;
385
- creator: import("typebox").TOptional<import("typebox").TString>;
386
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
387
- creatorName: import("typebox").TOptional<import("typebox").TString>;
388
- bucket: import("typebox").TString;
389
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
390
- name: import("typebox").TString;
391
- originalName: import("typebox").TOptional<import("typebox").TString>;
392
- size: import("typebox").TNumber;
393
- mimeType: import("typebox").TString;
394
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
395
- checksum: import("typebox").TOptional<import("typebox").TString>;
396
- user: import("typebox").TOptional<import("typebox").TObject<{
397
- id: import("typebox").TString;
398
- email: import("typebox").TOptional<import("typebox").TString>;
399
- username: import("typebox").TOptional<import("typebox").TString>;
400
- firstName: import("typebox").TOptional<import("typebox").TString>;
401
- lastName: import("typebox").TOptional<import("typebox").TString>;
402
- }>>;
403
- }>;
364
+ declare const fileResourceSchema: import("zod").ZodObject<{
365
+ id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
366
+ version: PgAttr<PgAttr<import("zod").ZodInt, typeof PG_VERSION>, typeof PG_DEFAULT>;
367
+ createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
368
+ updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
369
+ organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
370
+ blobId: import("zod").ZodString;
371
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
372
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
373
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
374
+ bucket: import("zod").ZodString;
375
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
376
+ name: import("zod").ZodString;
377
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
378
+ size: import("zod").ZodNumber;
379
+ mimeType: import("zod").ZodString;
380
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
381
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
382
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
383
+ id: import("zod").ZodString;
384
+ email: import("zod").ZodOptional<import("zod").ZodString>;
385
+ username: import("zod").ZodOptional<import("zod").ZodString>;
386
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
387
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
388
+ }, import("zod/v4/core").$strip>>;
389
+ }, import("zod/v4/core").$strip>;
404
390
  type FileResource = Static<typeof fileResourceSchema>;
405
391
  //#endregion
406
392
  //#region ../../src/api/files/schemas/storageStatsSchema.d.ts
407
- declare const bucketStatsSchema: import("typebox").TObject<{
408
- bucket: import("typebox").TString;
409
- totalSize: import("typebox").TNumber;
410
- fileCount: import("typebox").TNumber;
411
- }>;
412
- declare const mimeTypeStatsSchema: import("typebox").TObject<{
413
- mimeType: import("typebox").TString;
414
- fileCount: import("typebox").TNumber;
415
- }>;
416
- declare const storageStatsSchema: import("typebox").TObject<{
417
- totalSize: import("typebox").TNumber;
418
- totalFiles: import("typebox").TNumber;
419
- byBucket: import("typebox").TArray<import("typebox").TObject<{
420
- bucket: import("typebox").TString;
421
- totalSize: import("typebox").TNumber;
422
- fileCount: import("typebox").TNumber;
423
- }>>;
424
- byMimeType: import("typebox").TArray<import("typebox").TObject<{
425
- mimeType: import("typebox").TString;
426
- fileCount: import("typebox").TNumber;
427
- }>>;
428
- }>;
393
+ declare const bucketStatsSchema: import("zod").ZodObject<{
394
+ bucket: import("zod").ZodString;
395
+ totalSize: import("zod").ZodNumber;
396
+ fileCount: import("zod").ZodNumber;
397
+ }, import("zod/v4/core").$strip>;
398
+ declare const mimeTypeStatsSchema: import("zod").ZodObject<{
399
+ mimeType: import("zod").ZodString;
400
+ fileCount: import("zod").ZodNumber;
401
+ }, import("zod/v4/core").$strip>;
402
+ declare const storageStatsSchema: import("zod").ZodObject<{
403
+ totalSize: import("zod").ZodNumber;
404
+ totalFiles: import("zod").ZodNumber;
405
+ byBucket: import("zod").ZodArray<import("zod").ZodObject<{
406
+ bucket: import("zod").ZodString;
407
+ totalSize: import("zod").ZodNumber;
408
+ fileCount: import("zod").ZodNumber;
409
+ }, import("zod/v4/core").$strip>>;
410
+ byMimeType: import("zod").ZodArray<import("zod").ZodObject<{
411
+ mimeType: import("zod").ZodString;
412
+ fileCount: import("zod").ZodNumber;
413
+ }, import("zod/v4/core").$strip>>;
414
+ }, import("zod/v4/core").$strip>;
429
415
  type BucketStats = Static<typeof bucketStatsSchema>;
430
416
  type MimeTypeStats = Static<typeof mimeTypeStatsSchema>;
431
417
  type StorageStats = Static<typeof storageStatsSchema>;
@@ -438,25 +424,25 @@ declare class FileService {
438
424
  protected readonly repositoryProvider: RepositoryProvider;
439
425
  protected readonly fileSystem: FileSystemProvider;
440
426
  protected readonly defaultBucket: BucketPrimitive;
441
- readonly fileRepository: import("alepha/orm").Repository<import("typebox").TObject<{
442
- id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
443
- version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
444
- createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
445
- updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
446
- organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
447
- blobId: import("typebox").TString;
448
- creator: import("typebox").TOptional<import("typebox").TString>;
449
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
450
- creatorName: import("typebox").TOptional<import("typebox").TString>;
451
- bucket: import("typebox").TString;
452
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
453
- name: import("typebox").TString;
454
- originalName: import("typebox").TOptional<import("typebox").TString>;
455
- size: import("typebox").TNumber;
456
- mimeType: import("typebox").TString;
457
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
458
- checksum: import("typebox").TOptional<import("typebox").TString>;
459
- }>>;
427
+ readonly fileRepository: import("alepha/orm").Repository<import("zod").ZodObject<{
428
+ id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
429
+ version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodInt, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
430
+ createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
431
+ updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
432
+ organizationId: import("alepha/orm").PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof import("alepha/orm").PG_ORGANIZATION>;
433
+ blobId: import("zod").ZodString;
434
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
435
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
436
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
437
+ bucket: import("zod").ZodString;
438
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
439
+ name: import("zod").ZodString;
440
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
441
+ size: import("zod").ZodNumber;
442
+ mimeType: import("zod").ZodString;
443
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
444
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
445
+ }, import("zod/v4/core").$strip>>;
460
446
  /**
461
447
  * Best-effort left join embedding the uploader on every file row, so the
462
448
  * admin UI can render `user.email` instead of the bare `creator` UUID.
@@ -472,7 +458,7 @@ declare class FileService {
472
458
  */
473
459
  protected resolveCreatorJoin(): {
474
460
  user: {
475
- join: import("alepha/orm").EntityPrimitive<import("typebox").TObject<import("typebox").TProperties>>;
461
+ join: import("alepha/orm").EntityPrimitive<import("alepha").TObject>;
476
462
  on: ["creator", {
477
463
  name: string;
478
464
  }];
@@ -660,19 +646,19 @@ declare class AdminFileStatsController {
660
646
  * and breakdowns by bucket and MIME type.
661
647
  */
662
648
  readonly getFileStats: import("alepha/server").ActionPrimitiveFn<{
663
- response: import("typebox").TObject<{
664
- totalSize: import("typebox").TNumber;
665
- totalFiles: import("typebox").TNumber;
666
- byBucket: import("typebox").TArray<import("typebox").TObject<{
667
- bucket: import("typebox").TString;
668
- totalSize: import("typebox").TNumber;
669
- fileCount: import("typebox").TNumber;
670
- }>>;
671
- byMimeType: import("typebox").TArray<import("typebox").TObject<{
672
- mimeType: import("typebox").TString;
673
- fileCount: import("typebox").TNumber;
674
- }>>;
675
- }>;
649
+ response: import("zod").ZodObject<{
650
+ totalSize: import("zod").ZodNumber;
651
+ totalFiles: import("zod").ZodNumber;
652
+ byBucket: import("zod").ZodArray<import("zod").ZodObject<{
653
+ bucket: import("zod").ZodString;
654
+ totalSize: import("zod").ZodNumber;
655
+ fileCount: import("zod").ZodNumber;
656
+ }, import("zod/v4/core").$strip>>;
657
+ byMimeType: import("zod").ZodArray<import("zod").ZodObject<{
658
+ mimeType: import("zod").ZodString;
659
+ fileCount: import("zod").ZodNumber;
660
+ }, import("zod/v4/core").$strip>>;
661
+ }, import("zod/v4/core").$strip>;
676
662
  }>;
677
663
  }
678
664
  //#endregion
@@ -743,70 +729,83 @@ declare class FileController {
743
729
  * Supports filtering by bucket and tags.
744
730
  */
745
731
  readonly findFiles: import("alepha/server").ActionPrimitiveFn<{
746
- query: import("typebox").TObject<{
747
- page: import("typebox").TOptional<import("typebox").TInteger>;
748
- size: import("typebox").TOptional<import("typebox").TInteger>;
749
- sort: import("typebox").TOptional<import("typebox").TString>;
750
- bucket: import("typebox").TOptional<import("typebox").TString>;
751
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
752
- name: import("typebox").TOptional<import("typebox").TString>;
753
- mimeType: import("typebox").TOptional<import("typebox").TString>;
754
- creator: import("typebox").TOptional<import("typebox").TString>;
755
- createdAfter: import("typebox").TOptional<import("typebox").TString>;
756
- createdBefore: import("typebox").TOptional<import("typebox").TString>;
757
- }>;
758
- response: import("alepha").TPage<import("typebox").TObject<{
759
- id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
760
- version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
761
- createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
762
- updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
763
- organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
764
- blobId: import("typebox").TString;
765
- creator: import("typebox").TOptional<import("typebox").TString>;
766
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
767
- creatorName: import("typebox").TOptional<import("typebox").TString>;
768
- bucket: import("typebox").TString;
769
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
770
- name: import("typebox").TString;
771
- originalName: import("typebox").TOptional<import("typebox").TString>;
772
- size: import("typebox").TNumber;
773
- mimeType: import("typebox").TString;
774
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
775
- checksum: import("typebox").TOptional<import("typebox").TString>;
776
- user: import("typebox").TOptional<import("typebox").TObject<{
777
- id: import("typebox").TString;
778
- email: import("typebox").TOptional<import("typebox").TString>;
779
- username: import("typebox").TOptional<import("typebox").TString>;
780
- firstName: import("typebox").TOptional<import("typebox").TString>;
781
- lastName: import("typebox").TOptional<import("typebox").TString>;
782
- }>>;
783
- }>>;
732
+ query: import("zod").ZodObject<{
733
+ page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodInt>>;
734
+ size: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodInt>>;
735
+ sort: import("zod").ZodOptional<import("zod").ZodString>;
736
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
737
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
738
+ name: import("zod").ZodOptional<import("zod").ZodString>;
739
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
740
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
741
+ createdAfter: import("zod").ZodOptional<import("zod").ZodString>;
742
+ createdBefore: import("zod").ZodOptional<import("zod").ZodString>;
743
+ }, import("zod/v4/core").$strip>;
744
+ response: import("zod").ZodObject<{
745
+ content: import("zod").ZodArray<import("zod").ZodObject<{
746
+ id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
747
+ version: PgAttr<PgAttr<import("zod").ZodInt, typeof PG_VERSION>, typeof PG_DEFAULT>;
748
+ createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
749
+ updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
750
+ organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
751
+ blobId: import("zod").ZodString;
752
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
753
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
754
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
755
+ bucket: import("zod").ZodString;
756
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
757
+ name: import("zod").ZodString;
758
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
759
+ size: import("zod").ZodNumber;
760
+ mimeType: import("zod").ZodString;
761
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
762
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
763
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
764
+ id: import("zod").ZodString;
765
+ email: import("zod").ZodOptional<import("zod").ZodString>;
766
+ username: import("zod").ZodOptional<import("zod").ZodString>;
767
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
768
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
769
+ }, import("zod/v4/core").$strip>>;
770
+ }, import("zod/v4/core").$strip>>;
771
+ page: import("zod").ZodObject<{
772
+ number: import("zod").ZodInt;
773
+ size: import("zod").ZodInt;
774
+ offset: import("zod").ZodInt;
775
+ numberOfElements: import("zod").ZodInt;
776
+ totalElements: import("zod").ZodOptional<import("zod").ZodInt>;
777
+ totalPages: import("zod").ZodOptional<import("zod").ZodInt>;
778
+ isEmpty: import("zod").ZodBoolean;
779
+ isFirst: import("zod").ZodBoolean;
780
+ isLast: import("zod").ZodBoolean;
781
+ }, import("zod/v4/core").$strip>;
782
+ }, import("zod/v4/core").$strip>;
784
783
  }>;
785
784
  /**
786
785
  * DELETE /files/:id - Deletes a file from both storage and database.
787
786
  * Removes the file from the bucket and cleans up the database record.
788
787
  */
789
788
  readonly deleteFile: import("alepha/server").ActionPrimitiveFn<{
790
- params: import("typebox").TObject<{
791
- id: import("typebox").TString;
792
- }>;
793
- response: import("typebox").TObject<{
794
- ok: import("typebox").TBoolean;
795
- id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
796
- count: import("typebox").TOptional<import("typebox").TNumber>;
797
- }>;
789
+ params: import("zod").ZodObject<{
790
+ id: import("zod").ZodString;
791
+ }, import("zod/v4/core").$strip>;
792
+ response: import("zod").ZodObject<{
793
+ ok: import("zod").ZodBoolean;
794
+ id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
795
+ count: import("zod").ZodOptional<import("zod").ZodNumber>;
796
+ }, import("zod/v4/core").$strip>;
798
797
  }>;
799
798
  /**
800
799
  * POST /files/delete - Delete many files in one request, batching the
801
800
  * underlying bucket calls per bucket (R2/S3 batch where supported).
802
801
  */
803
802
  readonly deleteFiles: import("alepha/server").ActionPrimitiveFn<{
804
- body: import("typebox").TObject<{
805
- ids: import("typebox").TArray<import("typebox").TString>;
806
- }>;
807
- response: import("typebox").TObject<{
808
- deleted: import("typebox").TArray<import("typebox").TString>;
809
- }>;
803
+ body: import("zod").ZodObject<{
804
+ ids: import("zod").ZodArray<import("zod").ZodString>;
805
+ }, import("zod/v4/core").$strip>;
806
+ response: import("zod").ZodObject<{
807
+ deleted: import("zod").ZodArray<import("zod").ZodString>;
808
+ }, import("zod/v4/core").$strip>;
810
809
  }>;
811
810
  /**
812
811
  * POST /files - Uploads a new file to storage.
@@ -814,79 +813,79 @@ declare class FileController {
814
813
  * Optionally specify bucket and expiration date.
815
814
  */
816
815
  readonly uploadFile: import("alepha/server").ActionPrimitiveFn<{
817
- body: import("typebox").TObject<{
818
- file: import("alepha").TFile;
819
- }>;
820
- query: import("typebox").TObject<{
821
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
822
- bucket: import("typebox").TOptional<import("typebox").TString>;
823
- }>;
824
- response: import("typebox").TObject<{
825
- id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
826
- version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
827
- createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
828
- updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
829
- organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
830
- blobId: import("typebox").TString;
831
- creator: import("typebox").TOptional<import("typebox").TString>;
832
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
833
- creatorName: import("typebox").TOptional<import("typebox").TString>;
834
- bucket: import("typebox").TString;
835
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
836
- name: import("typebox").TString;
837
- originalName: import("typebox").TOptional<import("typebox").TString>;
838
- size: import("typebox").TNumber;
839
- mimeType: import("typebox").TString;
840
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
841
- checksum: import("typebox").TOptional<import("typebox").TString>;
842
- user: import("typebox").TOptional<import("typebox").TObject<{
843
- id: import("typebox").TString;
844
- email: import("typebox").TOptional<import("typebox").TString>;
845
- username: import("typebox").TOptional<import("typebox").TString>;
846
- firstName: import("typebox").TOptional<import("typebox").TString>;
847
- lastName: import("typebox").TOptional<import("typebox").TString>;
848
- }>>;
849
- }>;
816
+ body: import("zod").ZodObject<{
817
+ file: import("zod").ZodAny;
818
+ }, import("zod/v4/core").$strip>;
819
+ query: import("zod").ZodObject<{
820
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
821
+ bucket: import("zod").ZodOptional<import("zod").ZodString>;
822
+ }, import("zod/v4/core").$strip>;
823
+ response: import("zod").ZodObject<{
824
+ id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
825
+ version: PgAttr<PgAttr<import("zod").ZodInt, typeof PG_VERSION>, typeof PG_DEFAULT>;
826
+ createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
827
+ updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
828
+ organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
829
+ blobId: import("zod").ZodString;
830
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
831
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
832
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
833
+ bucket: import("zod").ZodString;
834
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
835
+ name: import("zod").ZodString;
836
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
837
+ size: import("zod").ZodNumber;
838
+ mimeType: import("zod").ZodString;
839
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
840
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
841
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
842
+ id: import("zod").ZodString;
843
+ email: import("zod").ZodOptional<import("zod").ZodString>;
844
+ username: import("zod").ZodOptional<import("zod").ZodString>;
845
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
846
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
847
+ }, import("zod/v4/core").$strip>>;
848
+ }, import("zod/v4/core").$strip>;
850
849
  }>;
851
850
  /**
852
851
  * PATCH /files/:id - Updates file metadata.
853
852
  * Allows updating name, tags, and expiration date without modifying file content.
854
853
  */
855
854
  readonly updateFile: import("alepha/server").ActionPrimitiveFn<{
856
- params: import("typebox").TObject<{
857
- id: import("typebox").TString;
858
- }>;
859
- body: import("typebox").TObject<{
860
- name: import("typebox").TOptional<import("typebox").TString>;
861
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
862
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
863
- }>;
864
- response: import("typebox").TObject<{
865
- id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
866
- version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
867
- createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
868
- updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
869
- organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
870
- blobId: import("typebox").TString;
871
- creator: import("typebox").TOptional<import("typebox").TString>;
872
- creatorRealm: import("typebox").TOptional<import("typebox").TString>;
873
- creatorName: import("typebox").TOptional<import("typebox").TString>;
874
- bucket: import("typebox").TString;
875
- expirationDate: import("typebox").TOptional<import("typebox").TString>;
876
- name: import("typebox").TString;
877
- originalName: import("typebox").TOptional<import("typebox").TString>;
878
- size: import("typebox").TNumber;
879
- mimeType: import("typebox").TString;
880
- tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
881
- checksum: import("typebox").TOptional<import("typebox").TString>;
882
- user: import("typebox").TOptional<import("typebox").TObject<{
883
- id: import("typebox").TString;
884
- email: import("typebox").TOptional<import("typebox").TString>;
885
- username: import("typebox").TOptional<import("typebox").TString>;
886
- firstName: import("typebox").TOptional<import("typebox").TString>;
887
- lastName: import("typebox").TOptional<import("typebox").TString>;
888
- }>>;
889
- }>;
855
+ params: import("zod").ZodObject<{
856
+ id: import("zod").ZodString;
857
+ }, import("zod/v4/core").$strip>;
858
+ body: import("zod").ZodObject<{
859
+ name: import("zod").ZodOptional<import("zod").ZodString>;
860
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
861
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
862
+ }, import("zod/v4/core").$strip>;
863
+ response: import("zod").ZodObject<{
864
+ id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
865
+ version: PgAttr<PgAttr<import("zod").ZodInt, typeof PG_VERSION>, typeof PG_DEFAULT>;
866
+ createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
867
+ updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
868
+ organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
869
+ blobId: import("zod").ZodString;
870
+ creator: import("zod").ZodOptional<import("zod").ZodString>;
871
+ creatorRealm: import("zod").ZodOptional<import("zod").ZodString>;
872
+ creatorName: import("zod").ZodOptional<import("zod").ZodString>;
873
+ bucket: import("zod").ZodString;
874
+ expirationDate: import("zod").ZodOptional<import("zod").ZodString>;
875
+ name: import("zod").ZodString;
876
+ originalName: import("zod").ZodOptional<import("zod").ZodString>;
877
+ size: import("zod").ZodNumber;
878
+ mimeType: import("zod").ZodString;
879
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
880
+ checksum: import("zod").ZodOptional<import("zod").ZodString>;
881
+ user: import("zod").ZodOptional<import("zod").ZodObject<{
882
+ id: import("zod").ZodString;
883
+ email: import("zod").ZodOptional<import("zod").ZodString>;
884
+ username: import("zod").ZodOptional<import("zod").ZodString>;
885
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
886
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
887
+ }, import("zod/v4/core").$strip>>;
888
+ }, import("zod/v4/core").$strip>;
890
889
  }>;
891
890
  /**
892
891
  * GET /files/:id - Streams/downloads a file by its ID.
@@ -900,10 +899,10 @@ declare class FileController {
900
899
  * cannot be cached by shared proxies/CDNs. Client-side ETag still works.
901
900
  */
902
901
  readonly streamFile: import("alepha/server").ActionPrimitiveFn<{
903
- params: import("typebox").TObject<{
904
- id: import("typebox").TString;
905
- }>;
906
- response: import("alepha").TFile;
902
+ params: import("zod").ZodObject<{
903
+ id: import("zod").ZodString;
904
+ }, import("zod/v4/core").$strip>;
905
+ response: import("zod").ZodAny;
907
906
  }>;
908
907
  /**
909
908
  * GET /public/files/:id - Anonymous, edge-cacheable download.
@@ -920,10 +919,10 @@ declare class FileController {
920
919
  * live in separate cache lanes.
921
920
  */
922
921
  readonly streamPublicFile: import("alepha/server").ActionPrimitiveFn<{
923
- params: import("typebox").TObject<{
924
- id: import("typebox").TString;
925
- }>;
926
- response: import("alepha").TFile;
922
+ params: import("zod").ZodObject<{
923
+ id: import("zod").ZodString;
924
+ }, import("zod/v4/core").$strip>;
925
+ response: import("zod").ZodAny;
927
926
  }>;
928
927
  }
929
928
  //#endregion
@@ -945,13 +944,13 @@ declare class FileJobs {
945
944
  * comes back with `user` undefined. Callers must fall back to `creatorName`
946
945
  * or the raw `creator` id.
947
946
  */
948
- declare const fileCreatorSummarySchema: import("typebox").TObject<{
949
- id: import("typebox").TString;
950
- email: import("typebox").TOptional<import("typebox").TString>;
951
- username: import("typebox").TOptional<import("typebox").TString>;
952
- firstName: import("typebox").TOptional<import("typebox").TString>;
953
- lastName: import("typebox").TOptional<import("typebox").TString>;
954
- }>;
947
+ declare const fileCreatorSummarySchema: import("zod").ZodObject<{
948
+ id: import("zod").ZodString;
949
+ email: import("zod").ZodOptional<import("zod").ZodString>;
950
+ username: import("zod").ZodOptional<import("zod").ZodString>;
951
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
952
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
953
+ }, import("zod/v4/core").$strip>;
955
954
  type FileCreatorSummary = Static<typeof fileCreatorSummarySchema>;
956
955
  //#endregion
957
956
  //#region ../../src/api/files/index.d.ts