alepha 0.21.2 → 0.22.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 (463) hide show
  1. package/README.md +0 -1
  2. package/dist/api/audits/index.browser.js.map +1 -1
  3. package/dist/api/audits/index.d.ts +393 -403
  4. package/dist/api/audits/index.d.ts.map +1 -1
  5. package/dist/api/audits/index.js +25 -56
  6. package/dist/api/audits/index.js.map +1 -1
  7. package/dist/api/files/index.browser.js +31 -1
  8. package/dist/api/files/index.browser.js.map +1 -1
  9. package/dist/api/files/index.d.ts +313 -208
  10. package/dist/api/files/index.d.ts.map +1 -1
  11. package/dist/api/files/index.js +152 -42
  12. package/dist/api/files/index.js.map +1 -1
  13. package/dist/api/jobs/index.browser.js +2 -2
  14. package/dist/api/jobs/index.browser.js.map +1 -1
  15. package/dist/api/jobs/index.d.ts +289 -292
  16. package/dist/api/jobs/index.d.ts.map +1 -1
  17. package/dist/api/jobs/index.js +39 -33
  18. package/dist/api/jobs/index.js.map +1 -1
  19. package/dist/api/keys/index.d.ts +211 -216
  20. package/dist/api/keys/index.d.ts.map +1 -1
  21. package/dist/api/keys/index.js.map +1 -1
  22. package/dist/api/notifications/index.browser.js.map +1 -1
  23. package/dist/api/notifications/index.d.ts +188 -195
  24. package/dist/api/notifications/index.d.ts.map +1 -1
  25. package/dist/api/notifications/index.js.map +1 -1
  26. package/dist/api/oauth/index.d.ts +71 -76
  27. package/dist/api/oauth/index.d.ts.map +1 -1
  28. package/dist/api/oauth/index.js.map +1 -1
  29. package/dist/api/organizations/index.browser.js.map +1 -1
  30. package/dist/api/organizations/index.d.ts +104 -109
  31. package/dist/api/organizations/index.d.ts.map +1 -1
  32. package/dist/api/organizations/index.js.map +1 -1
  33. package/dist/api/parameters/index.browser.js +43 -16
  34. package/dist/api/parameters/index.browser.js.map +1 -1
  35. package/dist/api/parameters/index.d.ts +488 -344
  36. package/dist/api/parameters/index.d.ts.map +1 -1
  37. package/dist/api/parameters/index.js +175 -35
  38. package/dist/api/parameters/index.js.map +1 -1
  39. package/dist/api/payments/index.d.ts +396 -402
  40. package/dist/api/payments/index.d.ts.map +1 -1
  41. package/dist/api/payments/index.js.map +1 -1
  42. package/dist/api/subscriptions/index.d.ts +644 -652
  43. package/dist/api/subscriptions/index.d.ts.map +1 -1
  44. package/dist/api/subscriptions/index.js +1 -1
  45. package/dist/api/subscriptions/index.js.map +1 -1
  46. package/dist/api/users/index.browser.js +7 -0
  47. package/dist/api/users/index.browser.js.map +1 -1
  48. package/dist/api/users/index.d.ts +1073 -1006
  49. package/dist/api/users/index.d.ts.map +1 -1
  50. package/dist/api/users/index.js +283 -61
  51. package/dist/api/users/index.js.map +1 -1
  52. package/dist/api/verifications/index.browser.js.map +1 -1
  53. package/dist/api/verifications/index.d.ts +134 -140
  54. package/dist/api/verifications/index.d.ts.map +1 -1
  55. package/dist/api/verifications/index.js.map +1 -1
  56. package/dist/background/index.d.ts +95 -0
  57. package/dist/background/index.d.ts.map +1 -0
  58. package/dist/background/index.js +121 -0
  59. package/dist/background/index.js.map +1 -0
  60. package/dist/background/index.workerd.js +110 -0
  61. package/dist/background/index.workerd.js.map +1 -0
  62. package/dist/batch/index.d.ts +5 -7
  63. package/dist/batch/index.d.ts.map +1 -1
  64. package/dist/batch/index.js.map +1 -1
  65. package/dist/bin/index.js.map +1 -1
  66. package/dist/bucket/index.d.ts +76 -54
  67. package/dist/bucket/index.d.ts.map +1 -1
  68. package/dist/bucket/index.js +58 -11
  69. package/dist/bucket/index.js.map +1 -1
  70. package/dist/bucket/index.workerd.js +200 -5
  71. package/dist/bucket/index.workerd.js.map +1 -1
  72. package/dist/cache/core/index.d.ts +7 -10
  73. package/dist/cache/core/index.d.ts.map +1 -1
  74. package/dist/cache/core/index.js.map +1 -1
  75. package/dist/cache/core/index.workerd.js.map +1 -1
  76. package/dist/cache/database/index.d.ts +22 -26
  77. package/dist/cache/database/index.d.ts.map +1 -1
  78. package/dist/cache/database/index.js.map +1 -1
  79. package/dist/cache/redis/index.d.ts +4 -7
  80. package/dist/cache/redis/index.d.ts.map +1 -1
  81. package/dist/cache/redis/index.js.map +1 -1
  82. package/dist/captcha/index.d.ts +3 -6
  83. package/dist/captcha/index.d.ts.map +1 -1
  84. package/dist/captcha/index.js.map +1 -1
  85. package/dist/cli/config/index.d.ts.map +1 -1
  86. package/dist/cli/config/index.js.map +1 -1
  87. package/dist/cli/core/index.d.ts +417 -214
  88. package/dist/cli/core/index.d.ts.map +1 -1
  89. package/dist/cli/core/index.js +325 -563
  90. package/dist/cli/core/index.js.map +1 -1
  91. package/dist/cli/devtools/index.d.ts +3 -5
  92. package/dist/cli/devtools/index.d.ts.map +1 -1
  93. package/dist/cli/devtools/index.js.map +1 -1
  94. package/dist/cli/i18n/index.d.ts +8 -12
  95. package/dist/cli/i18n/index.d.ts.map +1 -1
  96. package/dist/cli/i18n/index.js.map +1 -1
  97. package/dist/cli/platform/index.d.ts +126 -1342
  98. package/dist/cli/platform/index.d.ts.map +1 -1
  99. package/dist/cli/platform/index.js +136 -2374
  100. package/dist/cli/platform/index.js.map +1 -1
  101. package/dist/cli/platform-lib/index.d.ts +1446 -0
  102. package/dist/cli/platform-lib/index.d.ts.map +1 -0
  103. package/dist/cli/platform-lib/index.js +2597 -0
  104. package/dist/cli/platform-lib/index.js.map +1 -0
  105. package/dist/cli/vendor/index.d.ts +17 -21
  106. package/dist/cli/vendor/index.d.ts.map +1 -1
  107. package/dist/cli/vendor/index.js.map +1 -1
  108. package/dist/command/index.d.ts +21 -20
  109. package/dist/command/index.d.ts.map +1 -1
  110. package/dist/command/index.js +39 -10
  111. package/dist/command/index.js.map +1 -1
  112. package/dist/{containers → container}/core/index.d.ts +13 -15
  113. package/dist/container/core/index.d.ts.map +1 -0
  114. package/dist/{containers → container}/core/index.js +23 -14
  115. package/dist/container/core/index.js.map +1 -0
  116. package/dist/{containers → container}/core/index.workerd.js +37 -22
  117. package/dist/container/core/index.workerd.js.map +1 -0
  118. package/dist/core/index.browser.js +27 -1
  119. package/dist/core/index.browser.js.map +1 -1
  120. package/dist/core/index.d.ts +48 -24
  121. package/dist/core/index.d.ts.map +1 -1
  122. package/dist/core/index.js +27 -1
  123. package/dist/core/index.js.map +1 -1
  124. package/dist/core/index.native.js +27 -1
  125. package/dist/core/index.native.js.map +1 -1
  126. package/dist/core/index.workerd.js +27 -1
  127. package/dist/core/index.workerd.js.map +1 -1
  128. package/dist/crypto/index.browser.js.map +1 -1
  129. package/dist/crypto/index.d.ts +5 -8
  130. package/dist/crypto/index.d.ts.map +1 -1
  131. package/dist/crypto/index.js.map +1 -1
  132. package/dist/datetime/index.d.ts +3 -4
  133. package/dist/datetime/index.d.ts.map +1 -1
  134. package/dist/datetime/index.js.map +1 -1
  135. package/dist/email/brevo/index.d.ts +2 -4
  136. package/dist/email/brevo/index.d.ts.map +1 -1
  137. package/dist/email/brevo/index.js.map +1 -1
  138. package/dist/email/cloudflare/index.d.ts +20 -7
  139. package/dist/email/cloudflare/index.d.ts.map +1 -1
  140. package/dist/email/cloudflare/index.js +46 -9
  141. package/dist/email/cloudflare/index.js.map +1 -1
  142. package/dist/email/core/index.d.ts +6 -9
  143. package/dist/email/core/index.d.ts.map +1 -1
  144. package/dist/email/core/index.js.map +1 -1
  145. package/dist/email/core/index.workerd.js.map +1 -1
  146. package/dist/email/smtp/index.d.ts +10 -13
  147. package/dist/email/smtp/index.d.ts.map +1 -1
  148. package/dist/email/smtp/index.js +107 -32
  149. package/dist/email/smtp/index.js.map +1 -1
  150. package/dist/fake/index.d.ts +1 -2
  151. package/dist/fake/index.d.ts.map +1 -1
  152. package/dist/fake/index.js.map +1 -1
  153. package/dist/lock/core/index.d.ts +9 -14
  154. package/dist/lock/core/index.d.ts.map +1 -1
  155. package/dist/lock/core/index.js.map +1 -1
  156. package/dist/lock/redis/index.d.ts +2 -4
  157. package/dist/lock/redis/index.d.ts.map +1 -1
  158. package/dist/lock/redis/index.js.map +1 -1
  159. package/dist/logger/index.d.ts +105 -76
  160. package/dist/logger/index.d.ts.map +1 -1
  161. package/dist/logger/index.js +196 -174
  162. package/dist/logger/index.js.map +1 -1
  163. package/dist/mcp/index.d.ts +16 -20
  164. package/dist/mcp/index.d.ts.map +1 -1
  165. package/dist/mcp/index.js.map +1 -1
  166. package/dist/orm/core/index.browser.js.map +1 -1
  167. package/dist/orm/core/index.bun.js +19 -1
  168. package/dist/orm/core/index.bun.js.map +1 -1
  169. package/dist/orm/core/index.d.ts +76 -62
  170. package/dist/orm/core/index.d.ts.map +1 -1
  171. package/dist/orm/core/index.js +20 -2
  172. package/dist/orm/core/index.js.map +1 -1
  173. package/dist/orm/postgres/index.bun.js.map +1 -1
  174. package/dist/orm/postgres/index.d.ts +28 -20
  175. package/dist/orm/postgres/index.d.ts.map +1 -1
  176. package/dist/orm/postgres/index.js.map +1 -1
  177. package/dist/queue/core/index.d.ts +12 -15
  178. package/dist/queue/core/index.d.ts.map +1 -1
  179. package/dist/queue/core/index.js.map +1 -1
  180. package/dist/queue/core/index.workerd.js.map +1 -1
  181. package/dist/queue/redis/index.d.ts +3 -5
  182. package/dist/queue/redis/index.d.ts.map +1 -1
  183. package/dist/queue/redis/index.js.map +1 -1
  184. package/dist/react/auth/index.browser.js +9 -2
  185. package/dist/react/auth/index.browser.js.map +1 -1
  186. package/dist/react/auth/index.d.ts +14 -9
  187. package/dist/react/auth/index.d.ts.map +1 -1
  188. package/dist/react/auth/index.js +9 -2
  189. package/dist/react/auth/index.js.map +1 -1
  190. package/dist/react/core/index.d.ts +7 -8
  191. package/dist/react/core/index.d.ts.map +1 -1
  192. package/dist/react/core/index.js +6 -3
  193. package/dist/react/core/index.js.map +1 -1
  194. package/dist/react/form/index.d.ts +2 -4
  195. package/dist/react/form/index.d.ts.map +1 -1
  196. package/dist/react/form/index.js.map +1 -1
  197. package/dist/react/head/index.browser.js.map +1 -1
  198. package/dist/react/head/index.d.ts +2 -4
  199. package/dist/react/head/index.d.ts.map +1 -1
  200. package/dist/react/head/index.js.map +1 -1
  201. package/dist/react/i18n/index.d.ts +47 -11
  202. package/dist/react/i18n/index.d.ts.map +1 -1
  203. package/dist/react/i18n/index.js +33 -1
  204. package/dist/react/i18n/index.js.map +1 -1
  205. package/dist/react/intro/index.d.ts +1 -2
  206. package/dist/react/intro/index.d.ts.map +1 -1
  207. package/dist/react/intro/index.js +2 -2
  208. package/dist/react/intro/index.js.map +1 -1
  209. package/dist/react/router/index.browser.js +65 -19
  210. package/dist/react/router/index.browser.js.map +1 -1
  211. package/dist/react/router/index.d.ts +327 -222
  212. package/dist/react/router/index.d.ts.map +1 -1
  213. package/dist/react/router/index.js +65 -29
  214. package/dist/react/router/index.js.map +1 -1
  215. package/dist/react/testing/index.d.ts +1 -2
  216. package/dist/react/testing/index.d.ts.map +1 -1
  217. package/dist/react/testing/index.js +16 -17
  218. package/dist/react/testing/index.js.map +1 -1
  219. package/dist/react/ui/index.d.ts +20 -25
  220. package/dist/react/ui/index.d.ts.map +1 -1
  221. package/dist/react/ui/index.js.map +1 -1
  222. package/dist/redis/index.bun.js.map +1 -1
  223. package/dist/redis/index.d.ts +17 -19
  224. package/dist/redis/index.d.ts.map +1 -1
  225. package/dist/redis/index.js.map +1 -1
  226. package/dist/retry/index.d.ts +2 -4
  227. package/dist/retry/index.d.ts.map +1 -1
  228. package/dist/retry/index.js.map +1 -1
  229. package/dist/router/index.d.ts.map +1 -1
  230. package/dist/router/index.js.map +1 -1
  231. package/dist/scheduler/index.d.ts +10 -13
  232. package/dist/scheduler/index.d.ts.map +1 -1
  233. package/dist/scheduler/index.js.map +1 -1
  234. package/dist/scheduler/index.workerd.js.map +1 -1
  235. package/dist/security/index.browser.js.map +1 -1
  236. package/dist/security/index.d.ts +45 -48
  237. package/dist/security/index.d.ts.map +1 -1
  238. package/dist/security/index.js.map +1 -1
  239. package/dist/server/auth/index.browser.js.map +1 -1
  240. package/dist/server/auth/index.d.ts +167 -172
  241. package/dist/server/auth/index.d.ts.map +1 -1
  242. package/dist/server/auth/index.js +4 -8
  243. package/dist/server/auth/index.js.map +1 -1
  244. package/dist/server/cookies/index.browser.js.map +1 -1
  245. package/dist/server/cookies/index.d.ts +5 -7
  246. package/dist/server/cookies/index.d.ts.map +1 -1
  247. package/dist/server/cookies/index.js.map +1 -1
  248. package/dist/server/core/index.browser.js.map +1 -1
  249. package/dist/server/core/index.d.ts +88 -73
  250. package/dist/server/core/index.d.ts.map +1 -1
  251. package/dist/server/core/index.js +19 -0
  252. package/dist/server/core/index.js.map +1 -1
  253. package/dist/server/cors/index.d.ts +11 -14
  254. package/dist/server/cors/index.d.ts.map +1 -1
  255. package/dist/server/cors/index.js.map +1 -1
  256. package/dist/server/etag/index.d.ts +6 -9
  257. package/dist/server/etag/index.d.ts.map +1 -1
  258. package/dist/server/etag/index.js.map +1 -1
  259. package/dist/server/health/index.d.ts +18 -21
  260. package/dist/server/health/index.d.ts.map +1 -1
  261. package/dist/server/health/index.js.map +1 -1
  262. package/dist/server/links/index.browser.js +2 -0
  263. package/dist/server/links/index.browser.js.map +1 -1
  264. package/dist/server/links/index.d.ts +63 -67
  265. package/dist/server/links/index.d.ts.map +1 -1
  266. package/dist/server/links/index.js +2 -0
  267. package/dist/server/links/index.js.map +1 -1
  268. package/dist/server/metrics/index.d.ts +5 -7
  269. package/dist/server/metrics/index.d.ts.map +1 -1
  270. package/dist/server/metrics/index.js.map +1 -1
  271. package/dist/server/proxy/index.d.ts +3 -5
  272. package/dist/server/proxy/index.d.ts.map +1 -1
  273. package/dist/server/proxy/index.js.map +1 -1
  274. package/dist/server/rate-limit/index.d.ts +10 -13
  275. package/dist/server/rate-limit/index.d.ts.map +1 -1
  276. package/dist/server/rate-limit/index.js.map +1 -1
  277. package/dist/server/static/index.d.ts +3 -5
  278. package/dist/server/static/index.d.ts.map +1 -1
  279. package/dist/server/static/index.js.map +1 -1
  280. package/dist/server/swagger/index.d.ts +5 -8
  281. package/dist/server/swagger/index.d.ts.map +1 -1
  282. package/dist/server/swagger/index.js.map +1 -1
  283. package/dist/sms/index.d.ts +3 -5
  284. package/dist/sms/index.d.ts.map +1 -1
  285. package/dist/sms/index.js.map +1 -1
  286. package/dist/system/index.browser.js.map +1 -1
  287. package/dist/system/index.d.ts +2 -4
  288. package/dist/system/index.d.ts.map +1 -1
  289. package/dist/system/index.js.map +1 -1
  290. package/dist/system/index.workerd.js.map +1 -1
  291. package/dist/topic/core/index.d.ts +4 -6
  292. package/dist/topic/core/index.d.ts.map +1 -1
  293. package/dist/topic/core/index.js.map +1 -1
  294. package/dist/topic/redis/index.d.ts +5 -8
  295. package/dist/topic/redis/index.d.ts.map +1 -1
  296. package/dist/topic/redis/index.js.map +1 -1
  297. package/package.json +45 -22
  298. package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
  299. package/src/api/audits/controllers/AdminAuditController.ts +14 -0
  300. package/src/api/audits/services/AuditService.ts +21 -88
  301. package/src/api/files/__tests__/FileService.spec.ts +207 -2
  302. package/src/api/files/index.ts +3 -0
  303. package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
  304. package/src/api/files/schemas/fileResourceSchema.ts +10 -1
  305. package/src/api/files/services/FileService.ts +170 -72
  306. package/src/api/jobs/__tests__/$job.spec.ts +24 -1
  307. package/src/api/jobs/index.ts +4 -3
  308. package/src/api/jobs/primitives/$job.ts +7 -3
  309. package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
  310. package/src/api/jobs/providers/JobProvider.ts +53 -24
  311. package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
  312. package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
  313. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
  314. package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
  315. package/src/api/parameters/audits/ParameterAudits.ts +17 -0
  316. package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
  317. package/src/api/parameters/index.ts +3 -0
  318. package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
  319. package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
  320. package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
  321. package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
  322. package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
  323. package/src/api/parameters/services/ParameterProvider.ts +69 -6
  324. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
  325. package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
  326. package/src/api/users/audits/SessionAudits.ts +33 -0
  327. package/src/api/users/audits/UserAudits.ts +19 -43
  328. package/src/api/users/controllers/AdminUserController.ts +66 -1
  329. package/src/api/users/entities/sessions.ts +6 -0
  330. package/src/api/users/entities/users.ts +2 -0
  331. package/src/api/users/index.ts +9 -1
  332. package/src/api/users/primitives/$realm.ts +3 -0
  333. package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
  334. package/src/api/users/schemas/updateUserSchema.ts +1 -8
  335. package/src/api/users/schemas/userQuerySchema.ts +7 -0
  336. package/src/api/users/services/CredentialService.ts +15 -6
  337. package/src/api/users/services/IdentityService.ts +2 -1
  338. package/src/api/users/services/RegistrationService.ts +2 -1
  339. package/src/api/users/services/SessionCrudService.ts +19 -2
  340. package/src/api/users/services/SessionService.ts +39 -19
  341. package/src/api/users/services/UserService.ts +106 -8
  342. package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
  343. package/src/background/index.ts +37 -0
  344. package/src/background/index.workerd.ts +28 -0
  345. package/src/background/providers/BackgroundTaskProvider.ts +70 -0
  346. package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
  347. package/src/bucket/__tests__/$bucket.spec.ts +18 -0
  348. package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
  349. package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
  350. package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
  351. package/src/bucket/__tests__/shared.ts +30 -0
  352. package/src/bucket/index.ts +5 -5
  353. package/src/bucket/index.workerd.ts +11 -4
  354. package/src/bucket/primitives/$bucket.ts +27 -0
  355. package/src/bucket/providers/FileStorageProvider.ts +13 -0
  356. package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
  357. package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
  358. package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
  359. package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
  360. package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
  361. package/src/cli/core/__tests__/init.spec.ts +0 -219
  362. package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
  363. package/src/cli/core/commands/build.ts +108 -30
  364. package/src/cli/core/commands/init.ts +0 -12
  365. package/src/cli/core/commands/pack.ts +133 -0
  366. package/src/cli/core/index.ts +3 -0
  367. package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
  368. package/src/cli/core/services/PackageManagerUtils.ts +0 -16
  369. package/src/cli/core/services/ProjectScaffolder.ts +29 -291
  370. package/src/cli/core/tasks/BuildCloudflareTask.ts +353 -47
  371. package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
  372. package/src/cli/core/tasks/BuildTask.ts +34 -0
  373. package/src/cli/core/templates/apiIndexTs.ts +1 -22
  374. package/src/cli/core/templates/mainCss.ts +0 -1
  375. package/src/cli/core/templates/webAppRouterTs.ts +0 -99
  376. package/src/cli/core/templates/webIndexTs.ts +1 -22
  377. package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
  378. package/src/cli/platform/commands/SecretsCommand.ts +8 -6
  379. package/src/cli/platform/commands/platform.ts +192 -46
  380. package/src/cli/platform/index.ts +12 -52
  381. package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
  382. package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
  383. package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
  384. package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +402 -165
  385. package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
  386. package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
  387. package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
  388. package/src/cli/platform-lib/index.ts +67 -0
  389. package/src/cli/platform-lib/services/NamingService.ts +136 -0
  390. package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
  391. package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
  392. package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
  393. package/src/command/__tests__/Runner.spec.ts +20 -0
  394. package/src/command/helpers/EnvUtils.ts +19 -3
  395. package/src/command/helpers/Runner.ts +12 -2
  396. package/src/command/providers/CliProvider.ts +34 -1
  397. package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
  398. package/src/{containers → container}/core/index.ts +4 -4
  399. package/src/{containers → container}/core/index.workerd.ts +19 -3
  400. package/src/{containers → container}/core/primitives/$container.ts +1 -1
  401. package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
  402. package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
  403. package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
  404. package/src/core/Alepha.ts +49 -1
  405. package/src/core/__tests__/$env.spec.ts +42 -0
  406. package/src/core/__tests__/dump.spec.ts +47 -0
  407. package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
  408. package/src/email/cloudflare/index.ts +14 -5
  409. package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
  410. package/src/logger/__tests__/Logger.spec.ts +55 -0
  411. package/src/logger/index.ts +13 -0
  412. package/src/logger/services/Logger.ts +31 -1
  413. package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
  414. package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
  415. package/src/orm/core/interfaces/PgQuery.ts +4 -1
  416. package/src/orm/core/services/Repository.ts +27 -11
  417. package/src/react/auth/hooks/useAuth.ts +10 -5
  418. package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
  419. package/src/react/core/hooks/useAction.ts +14 -3
  420. package/src/react/core/hooks/useQuery.ts +24 -4
  421. package/src/react/i18n/components/Translate.tsx +47 -0
  422. package/src/react/i18n/index.ts +2 -0
  423. package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
  424. package/src/react/router/__tests__/$page.spec.tsx +3 -2
  425. package/src/react/router/__tests__/page-can.spec.ts +18 -13
  426. package/src/react/router/hooks/useQueryParams.ts +114 -14
  427. package/src/react/router/primitives/$page.ts +85 -4
  428. package/src/react/router/providers/ReactBrowserRouterProvider.ts +3 -7
  429. package/src/react/router/providers/ReactServerProvider.ts +4 -13
  430. package/src/react/ui/services/SchemaControl.ts +3 -4
  431. package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
  432. package/src/server/links/providers/LinkProvider.ts +10 -0
  433. package/dist/containers/core/index.d.ts.map +0 -1
  434. package/dist/containers/core/index.js.map +0 -1
  435. package/dist/containers/core/index.workerd.js.map +0 -1
  436. package/src/cli/core/templates/componentsJsonTs.ts +0 -39
  437. package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
  438. package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
  439. package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
  440. package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
  441. package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
  442. package/src/cli/platform/services/NamingService.ts +0 -54
  443. /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
  444. /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
  445. /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
  446. /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
  447. /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
  448. /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
  449. /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
  450. /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
  451. /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
  452. /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
  453. /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
  454. /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
  455. /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
  456. /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
  457. /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
  458. /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
  459. /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
  460. /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
  461. /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
  462. /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
  463. /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
@@ -1,18 +1,13 @@
1
- import * as _$alepha from "alepha";
2
1
  import { Alepha, KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
- import * as _$alepha_orm0 from "alepha/orm";
4
2
  import { Page } from "alepha/orm";
5
- import * as _$alepha_server0 from "alepha/server";
6
3
  import { ServerRequest } from "alepha/server";
7
- import * as _$alepha_logger0 from "alepha/logger";
8
- import * as _$typebox from "typebox";
9
4
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
10
5
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
11
6
  //#region ../../src/api/audits/entities/audits.d.ts
12
7
  /**
13
8
  * Audit severity levels for categorizing events.
14
9
  */
15
- declare const auditSeveritySchema: _$typebox.TUnsafe<"info" | "warning" | "critical">;
10
+ declare const auditSeveritySchema: import("typebox").TUnsafe<"info" | "warning" | "critical">;
16
11
  type AuditSeverity = Static<typeof auditSeveritySchema>;
17
12
  /**
18
13
  * Audit log entity for tracking important system events.
@@ -23,215 +18,215 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
23
18
  * - When it happened (createdAt)
24
19
  * - Context and details (metadata, ipAddress, userAgent)
25
20
  */
26
- declare const audits: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
27
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
28
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
29
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
21
+ declare const audits: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
22
+ 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>;
23
+ 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>;
24
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
30
25
  /**
31
26
  * Audit event type (e.g., "auth", "user", "payment", "system").
32
27
  * Used for categorizing and filtering audit events.
33
28
  */
34
- type: _$typebox.TString;
29
+ type: import("typebox").TString;
35
30
  /**
36
31
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
37
32
  */
38
- action: _$typebox.TString;
33
+ action: import("typebox").TString;
39
34
  /**
40
35
  * Severity level of the event.
41
36
  */
42
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
37
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
43
38
  /**
44
39
  * User ID who performed the action (null for system events).
45
40
  */
46
- userId: _$typebox.TOptional<_$typebox.TString>;
41
+ userId: import("typebox").TOptional<import("typebox").TString>;
47
42
  /**
48
43
  * User realm for multi-tenant support.
49
44
  */
50
- userRealm: _$typebox.TOptional<_$typebox.TString>;
45
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
51
46
  /**
52
47
  * User email at the time of the event (denormalized for history).
53
48
  */
54
- userEmail: _$typebox.TOptional<_$typebox.TString>;
49
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
55
50
  /**
56
51
  * Resource type affected (e.g., "user", "order", "file").
57
52
  */
58
- resourceType: _$typebox.TOptional<_$typebox.TString>;
53
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
59
54
  /**
60
55
  * Resource ID affected.
61
56
  */
62
- resourceId: _$typebox.TOptional<_$typebox.TString>;
57
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
63
58
  /**
64
59
  * Human-readable description of the event.
65
60
  */
66
- description: _$typebox.TOptional<_$typebox.TString>;
61
+ description: import("typebox").TOptional<import("typebox").TString>;
67
62
  /**
68
63
  * Additional metadata/context as JSON.
69
64
  */
70
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
65
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
71
66
  /**
72
67
  * Client IP address.
73
68
  */
74
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
69
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
75
70
  /**
76
71
  * Client user agent.
77
72
  */
78
- userAgent: _$typebox.TOptional<_$typebox.TString>;
73
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
79
74
  /**
80
75
  * Session ID if applicable.
81
76
  */
82
- sessionId: _$typebox.TOptional<_$typebox.TString>;
77
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
83
78
  /**
84
79
  * Request ID for correlation.
85
80
  */
86
- requestId: _$typebox.TOptional<_$typebox.TString>;
81
+ requestId: import("typebox").TOptional<import("typebox").TString>;
87
82
  /**
88
83
  * Whether the action was successful.
89
84
  */
90
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
85
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
91
86
  /**
92
87
  * Error message if the action failed.
93
88
  */
94
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
89
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
95
90
  }>>;
96
- declare const auditEntitySchema: _$typebox.TObject<{
97
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
98
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
99
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
91
+ declare const auditEntitySchema: import("typebox").TObject<{
92
+ 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>;
93
+ 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>;
94
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
100
95
  /**
101
96
  * Audit event type (e.g., "auth", "user", "payment", "system").
102
97
  * Used for categorizing and filtering audit events.
103
98
  */
104
- type: _$typebox.TString;
99
+ type: import("typebox").TString;
105
100
  /**
106
101
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
107
102
  */
108
- action: _$typebox.TString;
103
+ action: import("typebox").TString;
109
104
  /**
110
105
  * Severity level of the event.
111
106
  */
112
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
107
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
113
108
  /**
114
109
  * User ID who performed the action (null for system events).
115
110
  */
116
- userId: _$typebox.TOptional<_$typebox.TString>;
111
+ userId: import("typebox").TOptional<import("typebox").TString>;
117
112
  /**
118
113
  * User realm for multi-tenant support.
119
114
  */
120
- userRealm: _$typebox.TOptional<_$typebox.TString>;
115
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
121
116
  /**
122
117
  * User email at the time of the event (denormalized for history).
123
118
  */
124
- userEmail: _$typebox.TOptional<_$typebox.TString>;
119
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
125
120
  /**
126
121
  * Resource type affected (e.g., "user", "order", "file").
127
122
  */
128
- resourceType: _$typebox.TOptional<_$typebox.TString>;
123
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
129
124
  /**
130
125
  * Resource ID affected.
131
126
  */
132
- resourceId: _$typebox.TOptional<_$typebox.TString>;
127
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
133
128
  /**
134
129
  * Human-readable description of the event.
135
130
  */
136
- description: _$typebox.TOptional<_$typebox.TString>;
131
+ description: import("typebox").TOptional<import("typebox").TString>;
137
132
  /**
138
133
  * Additional metadata/context as JSON.
139
134
  */
140
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
135
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
141
136
  /**
142
137
  * Client IP address.
143
138
  */
144
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
139
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
145
140
  /**
146
141
  * Client user agent.
147
142
  */
148
- userAgent: _$typebox.TOptional<_$typebox.TString>;
143
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
149
144
  /**
150
145
  * Session ID if applicable.
151
146
  */
152
- sessionId: _$typebox.TOptional<_$typebox.TString>;
147
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
153
148
  /**
154
149
  * Request ID for correlation.
155
150
  */
156
- requestId: _$typebox.TOptional<_$typebox.TString>;
151
+ requestId: import("typebox").TOptional<import("typebox").TString>;
157
152
  /**
158
153
  * Whether the action was successful.
159
154
  */
160
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
155
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
161
156
  /**
162
157
  * Error message if the action failed.
163
158
  */
164
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
159
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
165
160
  }>;
166
- declare const auditEntityInsertSchema: _$alepha_orm0.TObjectInsert<_$typebox.TObject<{
167
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
168
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
169
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
161
+ declare const auditEntityInsertSchema: import("alepha/orm").TObjectInsert<import("typebox").TObject<{
162
+ 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>;
163
+ 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>;
164
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
170
165
  /**
171
166
  * Audit event type (e.g., "auth", "user", "payment", "system").
172
167
  * Used for categorizing and filtering audit events.
173
168
  */
174
- type: _$typebox.TString;
169
+ type: import("typebox").TString;
175
170
  /**
176
171
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
177
172
  */
178
- action: _$typebox.TString;
173
+ action: import("typebox").TString;
179
174
  /**
180
175
  * Severity level of the event.
181
176
  */
182
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
177
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
183
178
  /**
184
179
  * User ID who performed the action (null for system events).
185
180
  */
186
- userId: _$typebox.TOptional<_$typebox.TString>;
181
+ userId: import("typebox").TOptional<import("typebox").TString>;
187
182
  /**
188
183
  * User realm for multi-tenant support.
189
184
  */
190
- userRealm: _$typebox.TOptional<_$typebox.TString>;
185
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
191
186
  /**
192
187
  * User email at the time of the event (denormalized for history).
193
188
  */
194
- userEmail: _$typebox.TOptional<_$typebox.TString>;
189
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
195
190
  /**
196
191
  * Resource type affected (e.g., "user", "order", "file").
197
192
  */
198
- resourceType: _$typebox.TOptional<_$typebox.TString>;
193
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
199
194
  /**
200
195
  * Resource ID affected.
201
196
  */
202
- resourceId: _$typebox.TOptional<_$typebox.TString>;
197
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
203
198
  /**
204
199
  * Human-readable description of the event.
205
200
  */
206
- description: _$typebox.TOptional<_$typebox.TString>;
201
+ description: import("typebox").TOptional<import("typebox").TString>;
207
202
  /**
208
203
  * Additional metadata/context as JSON.
209
204
  */
210
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
205
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
211
206
  /**
212
207
  * Client IP address.
213
208
  */
214
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
209
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
215
210
  /**
216
211
  * Client user agent.
217
212
  */
218
- userAgent: _$typebox.TOptional<_$typebox.TString>;
213
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
219
214
  /**
220
215
  * Session ID if applicable.
221
216
  */
222
- sessionId: _$typebox.TOptional<_$typebox.TString>;
217
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
223
218
  /**
224
219
  * Request ID for correlation.
225
220
  */
226
- requestId: _$typebox.TOptional<_$typebox.TString>;
221
+ requestId: import("typebox").TOptional<import("typebox").TString>;
227
222
  /**
228
223
  * Whether the action was successful.
229
224
  */
230
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
225
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
231
226
  /**
232
227
  * Error message if the action failed.
233
228
  */
234
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
229
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
235
230
  }>>;
236
231
  type AuditEntity = Static<typeof audits.schema>;
237
232
  //#endregion
@@ -239,21 +234,21 @@ type AuditEntity = Static<typeof audits.schema>;
239
234
  /**
240
235
  * Query schema for searching and filtering audit logs.
241
236
  */
242
- declare const auditQuerySchema: _$typebox.TObject<{
243
- page: _$typebox.TOptional<_$typebox.TInteger>;
244
- size: _$typebox.TOptional<_$typebox.TInteger>;
245
- sort: _$typebox.TOptional<_$typebox.TString>;
246
- type: _$typebox.TOptional<_$typebox.TString>;
247
- action: _$typebox.TOptional<_$typebox.TString>;
248
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
249
- userId: _$typebox.TOptional<_$typebox.TString>;
250
- userRealm: _$typebox.TOptional<_$typebox.TString>;
251
- resourceType: _$typebox.TOptional<_$typebox.TString>;
252
- resourceId: _$typebox.TOptional<_$typebox.TString>;
253
- success: _$typebox.TOptional<_$typebox.TBoolean>;
254
- from: _$typebox.TOptional<_$typebox.TString>;
255
- to: _$typebox.TOptional<_$typebox.TString>;
256
- search: _$typebox.TOptional<_$typebox.TString>;
237
+ declare const auditQuerySchema: import("typebox").TObject<{
238
+ page: import("typebox").TOptional<import("typebox").TInteger>;
239
+ size: import("typebox").TOptional<import("typebox").TInteger>;
240
+ sort: import("typebox").TOptional<import("typebox").TString>;
241
+ type: import("typebox").TOptional<import("typebox").TString>;
242
+ action: import("typebox").TOptional<import("typebox").TString>;
243
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
244
+ userId: import("typebox").TOptional<import("typebox").TString>;
245
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
246
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
247
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
248
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
249
+ from: import("typebox").TOptional<import("typebox").TString>;
250
+ to: import("typebox").TOptional<import("typebox").TString>;
251
+ search: import("typebox").TOptional<import("typebox").TString>;
257
252
  }>;
258
253
  type AuditQuery = Static<typeof auditQuerySchema>;
259
254
  //#endregion
@@ -261,23 +256,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
261
256
  /**
262
257
  * Schema for creating a new audit log entry.
263
258
  */
264
- declare const createAuditSchema: _$typebox.TObject<{
265
- type: _$typebox.TString;
266
- action: _$typebox.TString;
267
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
268
- userId: _$typebox.TOptional<_$typebox.TString>;
269
- userRealm: _$typebox.TOptional<_$typebox.TString>;
270
- userEmail: _$typebox.TOptional<_$typebox.TString>;
271
- resourceType: _$typebox.TOptional<_$typebox.TString>;
272
- resourceId: _$typebox.TOptional<_$typebox.TString>;
273
- description: _$typebox.TOptional<_$typebox.TString>;
274
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
275
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
276
- userAgent: _$typebox.TOptional<_$typebox.TString>;
277
- sessionId: _$typebox.TOptional<_$typebox.TString>;
278
- requestId: _$typebox.TOptional<_$typebox.TString>;
279
- success: _$typebox.TOptional<_$typebox.TBoolean>;
280
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
259
+ declare const createAuditSchema: import("typebox").TObject<{
260
+ type: import("typebox").TString;
261
+ action: import("typebox").TString;
262
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
263
+ userId: import("typebox").TOptional<import("typebox").TString>;
264
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
265
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
266
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
267
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
268
+ description: import("typebox").TOptional<import("typebox").TString>;
269
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
270
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
271
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
272
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
273
+ requestId: import("typebox").TOptional<import("typebox").TString>;
274
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
275
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
281
276
  }>;
282
277
  type CreateAudit = Static<typeof createAuditSchema>;
283
278
  //#endregion
@@ -301,27 +296,27 @@ interface AuditTypeDefinition {
301
296
  */
302
297
  declare class AuditService {
303
298
  protected readonly alepha: Alepha;
304
- protected readonly log: _$alepha_logger0.Logger;
305
- protected readonly repo: _$alepha_orm0.Repository<_$typebox.TObject<{
306
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
307
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
308
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
309
- type: _$typebox.TString;
310
- action: _$typebox.TString;
311
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
312
- userId: _$typebox.TOptional<_$typebox.TString>;
313
- userRealm: _$typebox.TOptional<_$typebox.TString>;
314
- userEmail: _$typebox.TOptional<_$typebox.TString>;
315
- resourceType: _$typebox.TOptional<_$typebox.TString>;
316
- resourceId: _$typebox.TOptional<_$typebox.TString>;
317
- description: _$typebox.TOptional<_$typebox.TString>;
318
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
319
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
320
- userAgent: _$typebox.TOptional<_$typebox.TString>;
321
- sessionId: _$typebox.TOptional<_$typebox.TString>;
322
- requestId: _$typebox.TOptional<_$typebox.TString>;
323
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
324
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
299
+ protected readonly log: import("alepha/logger").Logger;
300
+ protected readonly repo: import("alepha/orm").Repository<import("typebox").TObject<{
301
+ 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>;
302
+ 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>;
303
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
304
+ type: import("typebox").TString;
305
+ action: import("typebox").TString;
306
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
307
+ userId: import("typebox").TOptional<import("typebox").TString>;
308
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
309
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
310
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
311
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
312
+ description: import("typebox").TOptional<import("typebox").TString>;
313
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
314
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
315
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
316
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
317
+ requestId: import("typebox").TOptional<import("typebox").TString>;
318
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
319
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
325
320
  }>>;
326
321
  /**
327
322
  * Registry of audit types and their allowed actions.
@@ -335,6 +330,15 @@ declare class AuditService {
335
330
  * Get all registered audit types.
336
331
  */
337
332
  getRegisteredTypes(): AuditTypeDefinition[];
333
+ /**
334
+ * Distinct action names across all registered audit types, sorted.
335
+ *
336
+ * Sourced from the `$audit` type registry. Audit types register lazily —
337
+ * when their holder (e.g. `SessionAudits`, `ParameterAudits`) is first
338
+ * injected — so the admin filter only lists actions for audit domains that
339
+ * are actually in use, which is the intended behaviour.
340
+ */
341
+ getDistinctActions(): string[];
338
342
  /**
339
343
  * Get current request context if available.
340
344
  */
@@ -348,26 +352,6 @@ declare class AuditService {
348
352
  * Record an audit event (convenience method).
349
353
  */
350
354
  record(type: string, action: string, options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
351
- /**
352
- * Record an authentication event.
353
- */
354
- recordAuth(action: "login" | "logout" | "login_failed" | "token_refresh" | "mfa_setup" | "mfa_verify", options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
355
- /**
356
- * Record a user management event.
357
- */
358
- recordUser(action: "create" | "update" | "delete" | "enable" | "disable" | "role_change", options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
359
- /**
360
- * Record a data access event.
361
- */
362
- recordAccess(action: "view" | "export" | "download", options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
363
- /**
364
- * Record a security event.
365
- */
366
- recordSecurity(action: "permission_denied" | "suspicious_activity" | "rate_limited" | "blocked", options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
367
- /**
368
- * Record a system event.
369
- */
370
- recordSystem(action: "startup" | "shutdown" | "config_change" | "maintenance" | "error", options?: Omit<CreateAudit, "type" | "action">): Promise<AuditEntity>;
371
355
  /**
372
356
  * Find audit entries with filtering and pagination.
373
357
  */
@@ -422,303 +406,309 @@ declare class AdminAuditController {
422
406
  protected readonly url = "/audits";
423
407
  protected readonly group = "admin:audits";
424
408
  protected readonly auditService: AuditService;
425
- protected readonly repo: _$alepha_orm0.Repository<_$typebox.TObject<{
426
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
427
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
428
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
429
- type: _$typebox.TString;
430
- action: _$typebox.TString;
431
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
432
- userId: _$typebox.TOptional<_$typebox.TString>;
433
- userRealm: _$typebox.TOptional<_$typebox.TString>;
434
- userEmail: _$typebox.TOptional<_$typebox.TString>;
435
- resourceType: _$typebox.TOptional<_$typebox.TString>;
436
- resourceId: _$typebox.TOptional<_$typebox.TString>;
437
- description: _$typebox.TOptional<_$typebox.TString>;
438
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
439
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
440
- userAgent: _$typebox.TOptional<_$typebox.TString>;
441
- sessionId: _$typebox.TOptional<_$typebox.TString>;
442
- requestId: _$typebox.TOptional<_$typebox.TString>;
443
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
444
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
409
+ protected readonly repo: import("alepha/orm").Repository<import("typebox").TObject<{
410
+ 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>;
411
+ 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>;
412
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
413
+ type: import("typebox").TString;
414
+ action: import("typebox").TString;
415
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
416
+ userId: import("typebox").TOptional<import("typebox").TString>;
417
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
418
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
419
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
420
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
421
+ description: import("typebox").TOptional<import("typebox").TString>;
422
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
423
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
424
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
425
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
426
+ requestId: import("typebox").TOptional<import("typebox").TString>;
427
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
428
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
445
429
  }>>;
446
430
  /**
447
431
  * Find audit entries with filtering and pagination.
448
432
  */
449
- readonly findAudits: _$alepha_server0.ActionPrimitiveFn<{
450
- query: _$typebox.TObject<{
451
- page: _$typebox.TOptional<_$typebox.TInteger>;
452
- size: _$typebox.TOptional<_$typebox.TInteger>;
453
- sort: _$typebox.TOptional<_$typebox.TString>;
454
- type: _$typebox.TOptional<_$typebox.TString>;
455
- action: _$typebox.TOptional<_$typebox.TString>;
456
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
457
- userId: _$typebox.TOptional<_$typebox.TString>;
458
- userRealm: _$typebox.TOptional<_$typebox.TString>;
459
- resourceType: _$typebox.TOptional<_$typebox.TString>;
460
- resourceId: _$typebox.TOptional<_$typebox.TString>;
461
- success: _$typebox.TOptional<_$typebox.TBoolean>;
462
- from: _$typebox.TOptional<_$typebox.TString>;
463
- to: _$typebox.TOptional<_$typebox.TString>;
464
- search: _$typebox.TOptional<_$typebox.TString>;
433
+ readonly findAudits: import("alepha/server").ActionPrimitiveFn<{
434
+ query: import("typebox").TObject<{
435
+ page: import("typebox").TOptional<import("typebox").TInteger>;
436
+ size: import("typebox").TOptional<import("typebox").TInteger>;
437
+ sort: import("typebox").TOptional<import("typebox").TString>;
438
+ type: import("typebox").TOptional<import("typebox").TString>;
439
+ action: import("typebox").TOptional<import("typebox").TString>;
440
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
441
+ userId: import("typebox").TOptional<import("typebox").TString>;
442
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
443
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
444
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
445
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
446
+ from: import("typebox").TOptional<import("typebox").TString>;
447
+ to: import("typebox").TOptional<import("typebox").TString>;
448
+ search: import("typebox").TOptional<import("typebox").TString>;
465
449
  }>;
466
- response: _$alepha.TPage<_$typebox.TObject<{
467
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
468
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
469
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
470
- type: _$typebox.TString;
471
- action: _$typebox.TString;
472
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
473
- userId: _$typebox.TOptional<_$typebox.TString>;
474
- userRealm: _$typebox.TOptional<_$typebox.TString>;
475
- userEmail: _$typebox.TOptional<_$typebox.TString>;
476
- resourceType: _$typebox.TOptional<_$typebox.TString>;
477
- resourceId: _$typebox.TOptional<_$typebox.TString>;
478
- description: _$typebox.TOptional<_$typebox.TString>;
479
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
480
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
481
- userAgent: _$typebox.TOptional<_$typebox.TString>;
482
- sessionId: _$typebox.TOptional<_$typebox.TString>;
483
- requestId: _$typebox.TOptional<_$typebox.TString>;
484
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
485
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
450
+ response: import("alepha").TPage<import("typebox").TObject<{
451
+ 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>;
452
+ 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>;
453
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
454
+ type: import("typebox").TString;
455
+ action: import("typebox").TString;
456
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
457
+ userId: import("typebox").TOptional<import("typebox").TString>;
458
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
459
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
460
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
461
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
462
+ description: import("typebox").TOptional<import("typebox").TString>;
463
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
464
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
465
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
466
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
467
+ requestId: import("typebox").TOptional<import("typebox").TString>;
468
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
469
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
486
470
  }>>;
487
471
  }>;
488
472
  /**
489
473
  * Get a single audit entry by ID.
490
474
  */
491
- readonly getAudit: _$alepha_server0.ActionPrimitiveFn<{
492
- params: _$typebox.TObject<{
493
- id: _$typebox.TString;
475
+ readonly getAudit: import("alepha/server").ActionPrimitiveFn<{
476
+ params: import("typebox").TObject<{
477
+ id: import("typebox").TString;
494
478
  }>;
495
- response: _$typebox.TObject<{
496
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
497
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
498
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
499
- type: _$typebox.TString;
500
- action: _$typebox.TString;
501
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
502
- userId: _$typebox.TOptional<_$typebox.TString>;
503
- userRealm: _$typebox.TOptional<_$typebox.TString>;
504
- userEmail: _$typebox.TOptional<_$typebox.TString>;
505
- resourceType: _$typebox.TOptional<_$typebox.TString>;
506
- resourceId: _$typebox.TOptional<_$typebox.TString>;
507
- description: _$typebox.TOptional<_$typebox.TString>;
508
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
509
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
510
- userAgent: _$typebox.TOptional<_$typebox.TString>;
511
- sessionId: _$typebox.TOptional<_$typebox.TString>;
512
- requestId: _$typebox.TOptional<_$typebox.TString>;
513
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
514
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
479
+ response: import("typebox").TObject<{
480
+ 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>;
481
+ 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>;
482
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
483
+ type: import("typebox").TString;
484
+ action: import("typebox").TString;
485
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
486
+ userId: import("typebox").TOptional<import("typebox").TString>;
487
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
488
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
489
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
490
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
491
+ description: import("typebox").TOptional<import("typebox").TString>;
492
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
493
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
494
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
495
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
496
+ requestId: import("typebox").TOptional<import("typebox").TString>;
497
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
498
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
515
499
  }>;
516
500
  }>;
517
501
  /**
518
502
  * Delete many audit entries by id in one repository call. Use with care —
519
503
  * audit logs are usually retained for compliance reasons.
520
504
  */
521
- readonly deleteAudits: _$alepha_server0.ActionPrimitiveFn<{
522
- body: _$typebox.TObject<{
523
- ids: _$typebox.TArray<_$typebox.TString>;
505
+ readonly deleteAudits: import("alepha/server").ActionPrimitiveFn<{
506
+ body: import("typebox").TObject<{
507
+ ids: import("typebox").TArray<import("typebox").TString>;
524
508
  }>;
525
- response: _$typebox.TObject<{
526
- deleted: _$typebox.TArray<_$typebox.TString>;
509
+ response: import("typebox").TObject<{
510
+ deleted: import("typebox").TArray<import("typebox").TString>;
527
511
  }>;
528
512
  }>;
529
513
  /**
530
514
  * Create a new audit entry.
531
515
  * System-only — this permission should never be assigned to human roles.
532
516
  */
533
- readonly createAudit: _$alepha_server0.ActionPrimitiveFn<{
534
- body: _$typebox.TObject<{
535
- type: _$typebox.TString;
536
- action: _$typebox.TString;
537
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
538
- userId: _$typebox.TOptional<_$typebox.TString>;
539
- userRealm: _$typebox.TOptional<_$typebox.TString>;
540
- userEmail: _$typebox.TOptional<_$typebox.TString>;
541
- resourceType: _$typebox.TOptional<_$typebox.TString>;
542
- resourceId: _$typebox.TOptional<_$typebox.TString>;
543
- description: _$typebox.TOptional<_$typebox.TString>;
544
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
545
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
546
- userAgent: _$typebox.TOptional<_$typebox.TString>;
547
- sessionId: _$typebox.TOptional<_$typebox.TString>;
548
- requestId: _$typebox.TOptional<_$typebox.TString>;
549
- success: _$typebox.TOptional<_$typebox.TBoolean>;
550
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
517
+ readonly createAudit: import("alepha/server").ActionPrimitiveFn<{
518
+ body: import("typebox").TObject<{
519
+ type: import("typebox").TString;
520
+ action: import("typebox").TString;
521
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
522
+ userId: import("typebox").TOptional<import("typebox").TString>;
523
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
524
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
525
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
526
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
527
+ description: import("typebox").TOptional<import("typebox").TString>;
528
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
529
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
530
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
531
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
532
+ requestId: import("typebox").TOptional<import("typebox").TString>;
533
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
534
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
551
535
  }>;
552
- response: _$typebox.TObject<{
553
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
554
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
555
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
556
- type: _$typebox.TString;
557
- action: _$typebox.TString;
558
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
559
- userId: _$typebox.TOptional<_$typebox.TString>;
560
- userRealm: _$typebox.TOptional<_$typebox.TString>;
561
- userEmail: _$typebox.TOptional<_$typebox.TString>;
562
- resourceType: _$typebox.TOptional<_$typebox.TString>;
563
- resourceId: _$typebox.TOptional<_$typebox.TString>;
564
- description: _$typebox.TOptional<_$typebox.TString>;
565
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
566
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
567
- userAgent: _$typebox.TOptional<_$typebox.TString>;
568
- sessionId: _$typebox.TOptional<_$typebox.TString>;
569
- requestId: _$typebox.TOptional<_$typebox.TString>;
570
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
571
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
536
+ response: import("typebox").TObject<{
537
+ 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>;
538
+ 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>;
539
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
540
+ type: import("typebox").TString;
541
+ action: import("typebox").TString;
542
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
543
+ userId: import("typebox").TOptional<import("typebox").TString>;
544
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
545
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
546
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
547
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
548
+ description: import("typebox").TOptional<import("typebox").TString>;
549
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
550
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
551
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
552
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
553
+ requestId: import("typebox").TOptional<import("typebox").TString>;
554
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
555
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
572
556
  }>;
573
557
  }>;
574
558
  /**
575
559
  * Get audit entries for a specific user.
576
560
  */
577
- readonly findByUser: _$alepha_server0.ActionPrimitiveFn<{
578
- params: _$typebox.TObject<{
579
- userId: _$typebox.TString;
561
+ readonly findByUser: import("alepha/server").ActionPrimitiveFn<{
562
+ params: import("typebox").TObject<{
563
+ userId: import("typebox").TString;
580
564
  }>;
581
- query: _$typebox.TObject<{
582
- type: _$typebox.TOptional<_$typebox.TString>;
583
- action: _$typebox.TOptional<_$typebox.TString>;
584
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
585
- search: _$typebox.TOptional<_$typebox.TString>;
586
- sort: _$typebox.TOptional<_$typebox.TString>;
587
- userRealm: _$typebox.TOptional<_$typebox.TString>;
588
- resourceType: _$typebox.TOptional<_$typebox.TString>;
589
- resourceId: _$typebox.TOptional<_$typebox.TString>;
590
- success: _$typebox.TOptional<_$typebox.TBoolean>;
591
- page: _$typebox.TOptional<_$typebox.TInteger>;
592
- size: _$typebox.TOptional<_$typebox.TInteger>;
593
- from: _$typebox.TOptional<_$typebox.TString>;
594
- to: _$typebox.TOptional<_$typebox.TString>;
565
+ query: import("typebox").TObject<{
566
+ type: import("typebox").TOptional<import("typebox").TString>;
567
+ search: import("typebox").TOptional<import("typebox").TString>;
568
+ action: import("typebox").TOptional<import("typebox").TString>;
569
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
570
+ sort: import("typebox").TOptional<import("typebox").TString>;
571
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
572
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
573
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
574
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
575
+ page: import("typebox").TOptional<import("typebox").TInteger>;
576
+ size: import("typebox").TOptional<import("typebox").TInteger>;
577
+ from: import("typebox").TOptional<import("typebox").TString>;
578
+ to: import("typebox").TOptional<import("typebox").TString>;
595
579
  }>;
596
- response: _$alepha.TPage<_$typebox.TObject<{
597
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
598
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
599
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
600
- type: _$typebox.TString;
601
- action: _$typebox.TString;
602
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
603
- userId: _$typebox.TOptional<_$typebox.TString>;
604
- userRealm: _$typebox.TOptional<_$typebox.TString>;
605
- userEmail: _$typebox.TOptional<_$typebox.TString>;
606
- resourceType: _$typebox.TOptional<_$typebox.TString>;
607
- resourceId: _$typebox.TOptional<_$typebox.TString>;
608
- description: _$typebox.TOptional<_$typebox.TString>;
609
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
610
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
611
- userAgent: _$typebox.TOptional<_$typebox.TString>;
612
- sessionId: _$typebox.TOptional<_$typebox.TString>;
613
- requestId: _$typebox.TOptional<_$typebox.TString>;
614
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
615
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
580
+ response: import("alepha").TPage<import("typebox").TObject<{
581
+ 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>;
582
+ 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>;
583
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
584
+ type: import("typebox").TString;
585
+ action: import("typebox").TString;
586
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
587
+ userId: import("typebox").TOptional<import("typebox").TString>;
588
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
589
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
590
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
591
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
592
+ description: import("typebox").TOptional<import("typebox").TString>;
593
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
594
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
595
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
596
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
597
+ requestId: import("typebox").TOptional<import("typebox").TString>;
598
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
599
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
616
600
  }>>;
617
601
  }>;
618
602
  /**
619
603
  * Get audit entries for a specific resource.
620
604
  */
621
- readonly findByResource: _$alepha_server0.ActionPrimitiveFn<{
622
- params: _$typebox.TObject<{
623
- resourceType: _$typebox.TString;
624
- resourceId: _$typebox.TString;
605
+ readonly findByResource: import("alepha/server").ActionPrimitiveFn<{
606
+ params: import("typebox").TObject<{
607
+ resourceType: import("typebox").TString;
608
+ resourceId: import("typebox").TString;
625
609
  }>;
626
- query: _$typebox.TObject<{
627
- type: _$typebox.TOptional<_$typebox.TString>;
628
- action: _$typebox.TOptional<_$typebox.TString>;
629
- severity: _$typebox.TOptional<_$typebox.TUnsafe<"info" | "warning" | "critical">>;
630
- search: _$typebox.TOptional<_$typebox.TString>;
631
- sort: _$typebox.TOptional<_$typebox.TString>;
632
- userId: _$typebox.TOptional<_$typebox.TString>;
633
- userRealm: _$typebox.TOptional<_$typebox.TString>;
634
- success: _$typebox.TOptional<_$typebox.TBoolean>;
635
- page: _$typebox.TOptional<_$typebox.TInteger>;
636
- size: _$typebox.TOptional<_$typebox.TInteger>;
637
- from: _$typebox.TOptional<_$typebox.TString>;
638
- to: _$typebox.TOptional<_$typebox.TString>;
610
+ query: import("typebox").TObject<{
611
+ type: import("typebox").TOptional<import("typebox").TString>;
612
+ search: import("typebox").TOptional<import("typebox").TString>;
613
+ action: import("typebox").TOptional<import("typebox").TString>;
614
+ severity: import("typebox").TOptional<import("typebox").TUnsafe<"info" | "warning" | "critical">>;
615
+ sort: import("typebox").TOptional<import("typebox").TString>;
616
+ userId: import("typebox").TOptional<import("typebox").TString>;
617
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
618
+ success: import("typebox").TOptional<import("typebox").TBoolean>;
619
+ page: import("typebox").TOptional<import("typebox").TInteger>;
620
+ size: import("typebox").TOptional<import("typebox").TInteger>;
621
+ from: import("typebox").TOptional<import("typebox").TString>;
622
+ to: import("typebox").TOptional<import("typebox").TString>;
639
623
  }>;
640
- response: _$alepha.TPage<_$typebox.TObject<{
641
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
642
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
643
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
644
- type: _$typebox.TString;
645
- action: _$typebox.TString;
646
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
647
- userId: _$typebox.TOptional<_$typebox.TString>;
648
- userRealm: _$typebox.TOptional<_$typebox.TString>;
649
- userEmail: _$typebox.TOptional<_$typebox.TString>;
650
- resourceType: _$typebox.TOptional<_$typebox.TString>;
651
- resourceId: _$typebox.TOptional<_$typebox.TString>;
652
- description: _$typebox.TOptional<_$typebox.TString>;
653
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
654
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
655
- userAgent: _$typebox.TOptional<_$typebox.TString>;
656
- sessionId: _$typebox.TOptional<_$typebox.TString>;
657
- requestId: _$typebox.TOptional<_$typebox.TString>;
658
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
659
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
624
+ response: import("alepha").TPage<import("typebox").TObject<{
625
+ 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>;
626
+ 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>;
627
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
628
+ type: import("typebox").TString;
629
+ action: import("typebox").TString;
630
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
631
+ userId: import("typebox").TOptional<import("typebox").TString>;
632
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
633
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
634
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
635
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
636
+ description: import("typebox").TOptional<import("typebox").TString>;
637
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
638
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
639
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
640
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
641
+ requestId: import("typebox").TOptional<import("typebox").TString>;
642
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
643
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
660
644
  }>>;
661
645
  }>;
662
646
  /**
663
647
  * Get audit statistics.
664
648
  */
665
- readonly getAuditStats: _$alepha_server0.ActionPrimitiveFn<{
666
- query: _$typebox.TObject<{
667
- from: _$typebox.TOptional<_$typebox.TString>;
668
- to: _$typebox.TOptional<_$typebox.TString>;
669
- userRealm: _$typebox.TOptional<_$typebox.TString>;
649
+ readonly getAuditStats: import("alepha/server").ActionPrimitiveFn<{
650
+ query: import("typebox").TObject<{
651
+ from: import("typebox").TOptional<import("typebox").TString>;
652
+ to: import("typebox").TOptional<import("typebox").TString>;
653
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
670
654
  }>;
671
- response: _$typebox.TObject<{
672
- total: _$typebox.TInteger;
673
- byType: _$typebox.TRecord<"^.*$", _$typebox.TInteger>;
674
- bySeverity: _$typebox.TObject<{
675
- info: _$typebox.TInteger;
676
- warning: _$typebox.TInteger;
677
- critical: _$typebox.TInteger;
655
+ response: import("typebox").TObject<{
656
+ total: import("typebox").TInteger;
657
+ byType: import("typebox").TRecord<"^.*$", import("typebox").TInteger>;
658
+ bySeverity: import("typebox").TObject<{
659
+ info: import("typebox").TInteger;
660
+ warning: import("typebox").TInteger;
661
+ critical: import("typebox").TInteger;
678
662
  }>;
679
- successRate: _$typebox.TNumber;
680
- recentFailures: _$typebox.TArray<_$typebox.TObject<{
681
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
682
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
683
- organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
684
- type: _$typebox.TString;
685
- action: _$typebox.TString;
686
- severity: _$alepha_orm0.PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
687
- userId: _$typebox.TOptional<_$typebox.TString>;
688
- userRealm: _$typebox.TOptional<_$typebox.TString>;
689
- userEmail: _$typebox.TOptional<_$typebox.TString>;
690
- resourceType: _$typebox.TOptional<_$typebox.TString>;
691
- resourceId: _$typebox.TOptional<_$typebox.TString>;
692
- description: _$typebox.TOptional<_$typebox.TString>;
693
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
694
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
695
- userAgent: _$typebox.TOptional<_$typebox.TString>;
696
- sessionId: _$typebox.TOptional<_$typebox.TString>;
697
- requestId: _$typebox.TOptional<_$typebox.TString>;
698
- success: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
699
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
663
+ successRate: import("typebox").TNumber;
664
+ recentFailures: import("typebox").TArray<import("typebox").TObject<{
665
+ 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>;
666
+ 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>;
667
+ organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
668
+ type: import("typebox").TString;
669
+ action: import("typebox").TString;
670
+ severity: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof import("alepha/orm").PG_DEFAULT>;
671
+ userId: import("typebox").TOptional<import("typebox").TString>;
672
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
673
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
674
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
675
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
676
+ description: import("typebox").TOptional<import("typebox").TString>;
677
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
678
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
679
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
680
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
681
+ requestId: import("typebox").TOptional<import("typebox").TString>;
682
+ success: import("alepha/orm").PgAttr<import("typebox").TBoolean, typeof import("alepha/orm").PG_DEFAULT>;
683
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
700
684
  }>>;
701
685
  }>;
702
686
  }>;
687
+ /**
688
+ * List distinct action names present in the audit log (for filters).
689
+ */
690
+ readonly getAuditActions: import("alepha/server").ActionPrimitiveFn<{
691
+ response: import("typebox").TArray<import("typebox").TString>;
692
+ }>;
703
693
  /**
704
694
  * Get registered audit types.
705
695
  */
706
- readonly getTypes: _$alepha_server0.ActionPrimitiveFn<{
707
- response: _$typebox.TArray<_$typebox.TObject<{
708
- type: _$typebox.TString;
709
- description: _$typebox.TOptional<_$typebox.TString>;
710
- actions: _$typebox.TArray<_$typebox.TString>;
696
+ readonly getTypes: import("alepha/server").ActionPrimitiveFn<{
697
+ response: import("typebox").TArray<import("typebox").TObject<{
698
+ type: import("typebox").TString;
699
+ description: import("typebox").TOptional<import("typebox").TString>;
700
+ actions: import("typebox").TArray<import("typebox").TString>;
711
701
  }>>;
712
702
  }>;
713
703
  /**
714
704
  * Get distinct values for filters.
715
705
  */
716
- readonly getFilterOptions: _$alepha_server0.ActionPrimitiveFn<{
717
- response: _$typebox.TObject<{
718
- types: _$typebox.TArray<_$typebox.TString>;
719
- actions: _$typebox.TArray<_$typebox.TString>;
720
- resourceTypes: _$typebox.TArray<_$typebox.TString>;
721
- userRealms: _$typebox.TArray<_$typebox.TString>;
706
+ readonly getFilterOptions: import("alepha/server").ActionPrimitiveFn<{
707
+ response: import("typebox").TObject<{
708
+ types: import("typebox").TArray<import("typebox").TString>;
709
+ actions: import("typebox").TArray<import("typebox").TString>;
710
+ resourceTypes: import("typebox").TArray<import("typebox").TString>;
711
+ userRealms: import("typebox").TArray<import("typebox").TString>;
722
712
  }>;
723
713
  }>;
724
714
  }
@@ -1127,8 +1117,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
1127
1117
  * - `d1://BINDING_NAME` — Cloudflare D1
1128
1118
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
1129
1119
  */
1130
- declare const databaseEnvSchema: _$typebox.TObject<{
1131
- DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
1120
+ declare const databaseEnvSchema: import("typebox").TObject<{
1121
+ DATABASE_URL: import("typebox").TOptional<import("typebox").TString>;
1132
1122
  /**
1133
1123
  * Enable or disable push-based schema synchronization (drizzle-kit push).
1134
1124
  *
@@ -1136,7 +1126,7 @@ declare const databaseEnvSchema: _$typebox.TObject<{
1136
1126
  * Set to `false` in development to skip automatic schema sync
1137
1127
  * (e.g. when managing migrations manually).
1138
1128
  */
1139
- DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
1129
+ DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
1140
1130
  }>;
1141
1131
  declare module "alepha" {
1142
1132
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
@@ -1146,26 +1136,26 @@ declare module "alepha" {
1146
1136
  /**
1147
1137
  * Resource schema for audit log responses.
1148
1138
  */
1149
- declare const auditResourceSchema: _$typebox.TObject<{
1150
- id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1151
- createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1152
- organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
1153
- type: _$typebox.TString;
1154
- action: _$typebox.TString;
1155
- severity: PgAttr<_$typebox.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1156
- userId: _$typebox.TOptional<_$typebox.TString>;
1157
- userRealm: _$typebox.TOptional<_$typebox.TString>;
1158
- userEmail: _$typebox.TOptional<_$typebox.TString>;
1159
- resourceType: _$typebox.TOptional<_$typebox.TString>;
1160
- resourceId: _$typebox.TOptional<_$typebox.TString>;
1161
- description: _$typebox.TOptional<_$typebox.TString>;
1162
- metadata: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
1163
- ipAddress: _$typebox.TOptional<_$typebox.TString>;
1164
- userAgent: _$typebox.TOptional<_$typebox.TString>;
1165
- sessionId: _$typebox.TOptional<_$typebox.TString>;
1166
- requestId: _$typebox.TOptional<_$typebox.TString>;
1167
- success: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
1168
- errorMessage: _$typebox.TOptional<_$typebox.TString>;
1139
+ declare const auditResourceSchema: import("typebox").TObject<{
1140
+ id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1141
+ createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1142
+ organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
1143
+ type: import("typebox").TString;
1144
+ action: import("typebox").TString;
1145
+ severity: PgAttr<import("typebox").TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1146
+ userId: import("typebox").TOptional<import("typebox").TString>;
1147
+ userRealm: import("typebox").TOptional<import("typebox").TString>;
1148
+ userEmail: import("typebox").TOptional<import("typebox").TString>;
1149
+ resourceType: import("typebox").TOptional<import("typebox").TString>;
1150
+ resourceId: import("typebox").TOptional<import("typebox").TString>;
1151
+ description: import("typebox").TOptional<import("typebox").TString>;
1152
+ metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
1153
+ ipAddress: import("typebox").TOptional<import("typebox").TString>;
1154
+ userAgent: import("typebox").TOptional<import("typebox").TString>;
1155
+ sessionId: import("typebox").TOptional<import("typebox").TString>;
1156
+ requestId: import("typebox").TOptional<import("typebox").TString>;
1157
+ success: PgAttr<import("typebox").TBoolean, typeof PG_DEFAULT>;
1158
+ errorMessage: import("typebox").TOptional<import("typebox").TString>;
1169
1159
  }>;
1170
1160
  type AuditResource = Static<typeof auditResourceSchema>;
1171
1161
  //#endregion
@@ -1181,7 +1171,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
1181
1171
  *
1182
1172
  * @module alepha.api.audits
1183
1173
  */
1184
- declare const AlephaApiAudits: _$alepha.Service<_$alepha.Module>;
1174
+ declare const AlephaApiAudits: import("alepha").Service<import("alepha").Module>;
1185
1175
  //#endregion
1186
1176
  export { $audit, AdminAuditController, AlephaApiAudits, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
1187
1177
  //# sourceMappingURL=index.d.ts.map