alepha 0.19.1 → 0.19.2

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 (530) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -9
  3. package/dist/api/audits/index.d.ts +378 -346
  4. package/dist/api/audits/index.d.ts.map +1 -1
  5. package/dist/api/files/index.d.ts +216 -184
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/jobs/index.d.ts +528 -496
  8. package/dist/api/jobs/index.d.ts.map +1 -1
  9. package/dist/api/jobs/index.js +3 -3
  10. package/dist/api/jobs/index.js.map +1 -1
  11. package/dist/api/keys/index.d.ts +207 -207
  12. package/dist/api/keys/index.d.ts.map +1 -1
  13. package/dist/api/notifications/index.d.ts +152 -152
  14. package/dist/api/notifications/index.d.ts.map +1 -1
  15. package/dist/api/organizations/index.browser.js +48 -0
  16. package/dist/api/organizations/index.browser.js.map +1 -0
  17. package/dist/api/organizations/index.d.ts +516 -0
  18. package/dist/api/organizations/index.d.ts.map +1 -0
  19. package/dist/api/organizations/index.js +202 -0
  20. package/dist/api/organizations/index.js.map +1 -0
  21. package/dist/api/parameters/index.d.ts +391 -358
  22. package/dist/api/parameters/index.d.ts.map +1 -1
  23. package/dist/api/parameters/index.js +5 -1
  24. package/dist/api/parameters/index.js.map +1 -1
  25. package/dist/api/users/index.browser.js +7 -5
  26. package/dist/api/users/index.browser.js.map +1 -1
  27. package/dist/api/users/index.d.ts +978 -913
  28. package/dist/api/users/index.d.ts.map +1 -1
  29. package/dist/api/users/index.js +160 -112
  30. package/dist/api/users/index.js.map +1 -1
  31. package/dist/api/verifications/index.d.ts +135 -135
  32. package/dist/api/verifications/index.d.ts.map +1 -1
  33. package/dist/api/verifications/index.js +2 -2
  34. package/dist/api/verifications/index.js.map +1 -1
  35. package/dist/batch/index.d.ts +6 -6
  36. package/dist/batch/index.d.ts.map +1 -1
  37. package/dist/billing/index.d.ts +1048 -0
  38. package/dist/billing/index.d.ts.map +1 -0
  39. package/dist/billing/index.js +713 -0
  40. package/dist/billing/index.js.map +1 -0
  41. package/dist/bin/index.js +0 -2
  42. package/dist/bin/index.js.map +1 -1
  43. package/dist/bucket/index.d.ts +10 -10
  44. package/dist/bucket/index.d.ts.map +1 -1
  45. package/dist/bucket/index.js +2 -2
  46. package/dist/bucket/index.js.map +1 -1
  47. package/dist/cache/core/index.d.ts +9 -9
  48. package/dist/cache/core/index.d.ts.map +1 -1
  49. package/dist/cache/core/index.js +2 -2
  50. package/dist/cache/core/index.js.map +1 -1
  51. package/dist/cache/core/index.workerd.js +2 -2
  52. package/dist/cache/core/index.workerd.js.map +1 -1
  53. package/dist/cache/redis/index.d.ts +6 -6
  54. package/dist/cache/redis/index.d.ts.map +1 -1
  55. package/dist/cache/redis/index.js +2 -2
  56. package/dist/cache/redis/index.js.map +1 -1
  57. package/dist/cli/config/index.d.ts +12 -2
  58. package/dist/cli/config/index.d.ts.map +1 -1
  59. package/dist/cli/config/index.js +4 -0
  60. package/dist/cli/config/index.js.map +1 -1
  61. package/dist/cli/core/index.d.ts +183 -140
  62. package/dist/cli/core/index.d.ts.map +1 -1
  63. package/dist/cli/core/index.js +279 -89
  64. package/dist/cli/core/index.js.map +1 -1
  65. package/dist/cli/devtools/index.d.ts +45 -0
  66. package/dist/cli/devtools/index.d.ts.map +1 -0
  67. package/dist/cli/devtools/index.js +170 -0
  68. package/dist/cli/devtools/index.js.map +1 -0
  69. package/dist/cli/platform/index.d.ts +383 -492
  70. package/dist/cli/platform/index.d.ts.map +1 -1
  71. package/dist/cli/platform/index.js +42 -511
  72. package/dist/cli/platform/index.js.map +1 -1
  73. package/dist/cli/vendor/index.d.ts +196 -0
  74. package/dist/cli/vendor/index.d.ts.map +1 -0
  75. package/dist/cli/vendor/index.js +384 -0
  76. package/dist/cli/vendor/index.js.map +1 -0
  77. package/dist/command/index.d.ts +18 -18
  78. package/dist/command/index.d.ts.map +1 -1
  79. package/dist/command/index.js +2 -2
  80. package/dist/command/index.js.map +1 -1
  81. package/dist/core/index.browser.js +4 -4
  82. package/dist/core/index.browser.js.map +1 -1
  83. package/dist/core/index.d.ts +10 -10
  84. package/dist/core/index.d.ts.map +1 -1
  85. package/dist/core/index.js +4 -4
  86. package/dist/core/index.js.map +1 -1
  87. package/dist/core/index.native.js +4 -4
  88. package/dist/core/index.native.js.map +1 -1
  89. package/dist/core/index.workerd.js +4 -4
  90. package/dist/core/index.workerd.js.map +1 -1
  91. package/dist/crypto/index.d.ts +7 -7
  92. package/dist/crypto/index.d.ts.map +1 -1
  93. package/dist/datetime/index.d.ts +4 -4
  94. package/dist/datetime/index.d.ts.map +1 -1
  95. package/dist/email/brevo/index.d.ts +4 -4
  96. package/dist/email/brevo/index.d.ts.map +1 -1
  97. package/dist/email/core/index.d.ts +15 -11
  98. package/dist/email/core/index.d.ts.map +1 -1
  99. package/dist/email/core/index.js +12 -35
  100. package/dist/email/core/index.js.map +1 -1
  101. package/dist/email/smtp/index.d.ts +12 -12
  102. package/dist/email/smtp/index.d.ts.map +1 -1
  103. package/dist/email/smtp/index.js +7 -4
  104. package/dist/email/smtp/index.js.map +1 -1
  105. package/dist/fake/index.d.ts +4 -8
  106. package/dist/fake/index.d.ts.map +1 -1
  107. package/dist/fake/index.js +55 -889
  108. package/dist/fake/index.js.map +1 -1
  109. package/dist/lock/core/index.d.ts +13 -13
  110. package/dist/lock/core/index.d.ts.map +1 -1
  111. package/dist/lock/core/index.js +2 -2
  112. package/dist/lock/core/index.js.map +1 -1
  113. package/dist/lock/redis/index.d.ts +4 -4
  114. package/dist/lock/redis/index.d.ts.map +1 -1
  115. package/dist/logger/index.d.ts +16 -15
  116. package/dist/logger/index.d.ts.map +1 -1
  117. package/dist/logger/index.js +5 -2
  118. package/dist/logger/index.js.map +1 -1
  119. package/dist/mcp/index.d.ts +11 -11
  120. package/dist/mcp/index.d.ts.map +1 -1
  121. package/dist/mcp/index.js +2 -2
  122. package/dist/mcp/index.js.map +1 -1
  123. package/dist/orm/core/index.browser.js +11 -1
  124. package/dist/orm/core/index.browser.js.map +1 -1
  125. package/dist/orm/core/index.bun.js +53 -16
  126. package/dist/orm/core/index.bun.js.map +1 -1
  127. package/dist/orm/core/index.d.ts +95 -51
  128. package/dist/orm/core/index.d.ts.map +1 -1
  129. package/dist/orm/core/index.js +55 -14
  130. package/dist/orm/core/index.js.map +1 -1
  131. package/dist/orm/postgres/index.d.ts +18 -17
  132. package/dist/orm/postgres/index.d.ts.map +1 -1
  133. package/dist/queue/core/index.d.ts +14 -14
  134. package/dist/queue/core/index.d.ts.map +1 -1
  135. package/dist/queue/core/index.js +2 -2
  136. package/dist/queue/core/index.js.map +1 -1
  137. package/dist/queue/core/index.workerd.js +2 -2
  138. package/dist/queue/core/index.workerd.js.map +1 -1
  139. package/dist/queue/redis/index.d.ts +4 -4
  140. package/dist/queue/redis/index.d.ts.map +1 -1
  141. package/dist/queue/redis/index.js +2 -2
  142. package/dist/queue/redis/index.js.map +1 -1
  143. package/dist/react/auth/index.d.ts +9 -9
  144. package/dist/react/auth/index.d.ts.map +1 -1
  145. package/dist/react/core/index.d.ts +6 -6
  146. package/dist/react/core/index.d.ts.map +1 -1
  147. package/dist/react/core/index.js +5 -4
  148. package/dist/react/core/index.js.map +1 -1
  149. package/dist/react/form/index.d.ts +4 -4
  150. package/dist/react/form/index.d.ts.map +1 -1
  151. package/dist/react/head/index.d.ts +4 -4
  152. package/dist/react/head/index.d.ts.map +1 -1
  153. package/dist/react/i18n/index.d.ts +9 -9
  154. package/dist/react/i18n/index.d.ts.map +1 -1
  155. package/dist/react/intro/index.d.ts +2 -2
  156. package/dist/react/intro/index.d.ts.map +1 -1
  157. package/dist/react/intro/index.js +1 -1
  158. package/dist/react/intro/index.js.map +1 -1
  159. package/dist/react/router/index.browser.js +4 -5
  160. package/dist/react/router/index.browser.js.map +1 -1
  161. package/dist/react/router/index.d.ts +215 -215
  162. package/dist/react/router/index.d.ts.map +1 -1
  163. package/dist/react/router/index.js +6 -7
  164. package/dist/react/router/index.js.map +1 -1
  165. package/dist/react/testing/index.d.ts +2 -2
  166. package/dist/react/testing/index.d.ts.map +1 -1
  167. package/dist/react/testing/index.js +2 -4
  168. package/dist/react/testing/index.js.map +1 -1
  169. package/dist/redis/index.d.ts +19 -19
  170. package/dist/redis/index.d.ts.map +1 -1
  171. package/dist/retry/index.d.ts +4 -4
  172. package/dist/retry/index.d.ts.map +1 -1
  173. package/dist/scheduler/index.d.ts +13 -13
  174. package/dist/scheduler/index.d.ts.map +1 -1
  175. package/dist/scheduler/index.js +2 -2
  176. package/dist/scheduler/index.js.map +1 -1
  177. package/dist/scheduler/index.workerd.js +2 -2
  178. package/dist/scheduler/index.workerd.js.map +1 -1
  179. package/dist/security/index.browser.js +1 -1
  180. package/dist/security/index.browser.js.map +1 -1
  181. package/dist/security/index.d.ts +47 -47
  182. package/dist/security/index.d.ts.map +1 -1
  183. package/dist/security/index.js +9 -12
  184. package/dist/security/index.js.map +1 -1
  185. package/dist/server/auth/index.d.ts +170 -169
  186. package/dist/server/auth/index.d.ts.map +1 -1
  187. package/dist/server/auth/index.js +16 -2
  188. package/dist/server/auth/index.js.map +1 -1
  189. package/dist/server/cookies/index.d.ts +7 -7
  190. package/dist/server/cookies/index.d.ts.map +1 -1
  191. package/dist/server/core/index.d.ts +76 -76
  192. package/dist/server/core/index.d.ts.map +1 -1
  193. package/dist/server/core/index.js +23 -17
  194. package/dist/server/core/index.js.map +1 -1
  195. package/dist/server/cors/index.d.ts +13 -13
  196. package/dist/server/cors/index.d.ts.map +1 -1
  197. package/dist/server/cors/index.js +2 -2
  198. package/dist/server/cors/index.js.map +1 -1
  199. package/dist/server/etag/index.d.ts +9 -9
  200. package/dist/server/etag/index.d.ts.map +1 -1
  201. package/dist/server/health/index.d.ts +20 -20
  202. package/dist/server/health/index.d.ts.map +1 -1
  203. package/dist/server/links/index.browser.js +2 -2
  204. package/dist/server/links/index.browser.js.map +1 -1
  205. package/dist/server/links/index.d.ts +66 -66
  206. package/dist/server/links/index.d.ts.map +1 -1
  207. package/dist/server/links/index.js +4 -4
  208. package/dist/server/links/index.js.map +1 -1
  209. package/dist/server/metrics/index.d.ts +7 -7
  210. package/dist/server/metrics/index.d.ts.map +1 -1
  211. package/dist/server/proxy/index.d.ts +5 -5
  212. package/dist/server/proxy/index.d.ts.map +1 -1
  213. package/dist/server/rate-limit/index.d.ts +12 -12
  214. package/dist/server/rate-limit/index.d.ts.map +1 -1
  215. package/dist/server/rate-limit/index.js +2 -2
  216. package/dist/server/rate-limit/index.js.map +1 -1
  217. package/dist/server/static/index.d.ts +5 -5
  218. package/dist/server/static/index.d.ts.map +1 -1
  219. package/dist/server/swagger/index.d.ts +7 -7
  220. package/dist/server/swagger/index.d.ts.map +1 -1
  221. package/dist/server/swagger/index.js +2 -2
  222. package/dist/server/swagger/index.js.map +1 -1
  223. package/dist/sms/index.d.ts +11 -7
  224. package/dist/sms/index.d.ts.map +1 -1
  225. package/dist/sms/index.js +9 -15
  226. package/dist/sms/index.js.map +1 -1
  227. package/dist/system/index.d.ts +4 -4
  228. package/dist/system/index.d.ts.map +1 -1
  229. package/dist/topic/core/index.d.ts +6 -6
  230. package/dist/topic/core/index.d.ts.map +1 -1
  231. package/dist/topic/redis/index.d.ts +7 -7
  232. package/dist/topic/redis/index.d.ts.map +1 -1
  233. package/dist/topic/redis/index.js +2 -2
  234. package/dist/topic/redis/index.js.map +1 -1
  235. package/dist/websocket/index.d.ts +36 -36
  236. package/dist/websocket/index.d.ts.map +1 -1
  237. package/dist/websocket/index.js +2 -2
  238. package/dist/websocket/index.js.map +1 -1
  239. package/package.json +36 -14
  240. package/src/api/jobs/{services → __tests__}/JobService.spec.ts +1 -1
  241. package/src/api/jobs/providers/JobProvider.ts +3 -3
  242. package/src/api/keys/{services → __tests__}/ApiKeyService.spec.ts +1 -1
  243. package/src/api/organizations/__tests__/OrganizationService.spec.ts +193 -0
  244. package/src/api/organizations/controllers/AdminOrganizationController.ts +103 -0
  245. package/src/api/organizations/entities/organizations.ts +20 -0
  246. package/src/api/organizations/index.browser.ts +10 -0
  247. package/src/api/organizations/index.ts +31 -0
  248. package/src/api/organizations/schemas/createOrganizationSchema.ts +10 -0
  249. package/src/api/organizations/schemas/organizationQuerySchema.ts +10 -0
  250. package/src/api/organizations/schemas/organizationResourceSchema.ts +6 -0
  251. package/src/api/organizations/schemas/updateOrganizationSchema.ts +7 -0
  252. package/src/api/organizations/services/OrganizationService.ts +75 -0
  253. package/src/api/parameters/services/ParameterProvider.ts +6 -1
  254. package/src/api/users/{services → __tests__}/SessionService.spec.ts +67 -0
  255. package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
  256. package/src/api/users/entities/users.ts +9 -3
  257. package/src/api/users/index.ts +23 -4
  258. package/src/api/users/primitives/$realm.ts +6 -4
  259. package/src/api/users/providers/RealmProvider.ts +1 -1
  260. package/src/api/users/services/RegistrationService.ts +1 -1
  261. package/src/api/users/services/SessionService.ts +92 -5
  262. package/src/api/users/services/UserService.ts +1 -1
  263. package/src/api/verifications/{jobs → __tests__}/VerificationJobs.spec.ts +4 -2
  264. package/src/api/verifications/parameters/VerificationParameters.ts +2 -2
  265. package/src/billing/__tests__/BillingService.spec.ts +136 -0
  266. package/src/billing/__tests__/PaymentMethodService.spec.ts +78 -0
  267. package/src/billing/controllers/AdminBillingController.ts +149 -0
  268. package/src/billing/controllers/BillingController.ts +108 -0
  269. package/src/billing/entities/paymentIntents.ts +34 -0
  270. package/src/billing/entities/paymentMethods.ts +24 -0
  271. package/src/billing/entities/refunds.ts +22 -0
  272. package/src/billing/errors/BillingError.ts +5 -0
  273. package/src/billing/index.ts +76 -0
  274. package/src/billing/providers/BillingProvider.ts +79 -0
  275. package/src/billing/providers/MemoryBillingProvider.ts +139 -0
  276. package/src/billing/schemas/intentSchemas.ts +60 -0
  277. package/src/billing/schemas/paymentMethodSchemas.ts +13 -0
  278. package/src/billing/schemas/refundSchemas.ts +6 -0
  279. package/src/billing/services/BillingService.ts +325 -0
  280. package/src/billing/services/PaymentMethodService.ts +82 -0
  281. package/src/bin/index.ts +0 -2
  282. package/src/bucket/providers/LocalFileStorageProvider.ts +2 -2
  283. package/src/cache/core/{primitives → __tests__}/$cache.middleware.spec.ts +1 -1
  284. package/src/cache/core/{providers → __tests__}/MemoryCacheProvider.spec.ts +1 -1
  285. package/src/cache/core/primitives/$cache.ts +2 -2
  286. package/src/cache/redis/providers/RedisCacheProvider.ts +2 -2
  287. package/src/cli/config/defineConfig.ts +20 -0
  288. package/src/cli/core/{services → __tests__}/ProjectScaffolder.spec.ts +1 -1
  289. package/src/cli/core/{commands/gen → __tests__}/changelog.spec.ts +1 -1
  290. package/src/cli/core/{commands → __tests__}/init.spec.ts +2 -8
  291. package/src/cli/core/atoms/devOptions.ts +0 -5
  292. package/src/cli/core/commands/build.ts +2 -2
  293. package/src/cli/core/commands/dev.ts +165 -30
  294. package/src/cli/core/commands/gen/changelog.ts +2 -2
  295. package/src/cli/core/commands/init.ts +2 -7
  296. package/src/cli/core/commands/verify.ts +0 -1
  297. package/src/cli/core/providers/AppEntryProvider.ts +2 -2
  298. package/src/cli/core/providers/ViteDevServerProvider.ts +54 -66
  299. package/src/cli/core/services/PackageManagerUtils.ts +8 -3
  300. package/src/cli/core/services/ProjectScaffolder.ts +18 -18
  301. package/src/cli/core/tasks/BuildClientTask.ts +8 -0
  302. package/src/cli/core/tasks/BuildServerTask.ts +17 -4
  303. package/src/cli/core/templates/alephaConfigTs.ts +0 -6
  304. package/src/cli/core/templates/webAdminDashboardTsx.ts +17 -0
  305. package/src/cli/core/templates/webAppRouterTs.ts +85 -2
  306. package/src/cli/devtools/atoms/devtoolsOptions.ts +26 -0
  307. package/src/cli/devtools/index.ts +194 -0
  308. package/src/cli/platform/{adapters → __tests__}/CloudflareAdapter.spec.ts +2 -2
  309. package/src/cli/platform/{providers → __tests__}/GitHubSecretStore.spec.ts +1 -1
  310. package/src/cli/platform/{services → __tests__}/NamingService.spec.ts +1 -1
  311. package/src/cli/platform/{providers → __tests__}/PlatformCacheProvider.spec.ts +1 -1
  312. package/src/cli/platform/{services → __tests__}/PlatformInspector.spec.ts +1 -1
  313. package/src/cli/platform/{services → __tests__}/PlatformOrchestrator.spec.ts +3 -3
  314. package/src/cli/platform/{services → __tests__}/SecretFilterService.spec.ts +1 -1
  315. package/src/cli/platform/{commands → __tests__}/SecretsCommand.spec.ts +1 -1
  316. package/src/cli/platform/{adapters → __tests__}/VercelAdapter.spec.ts +2 -2
  317. package/src/cli/platform/atoms/platformOptions.ts +2 -10
  318. package/src/cli/platform/commands/SecretsCommand.ts +2 -2
  319. package/src/cli/platform/commands/platform.ts +2 -11
  320. package/src/cli/platform/index.ts +34 -11
  321. package/src/cli/platform/services/PlatformInspector.ts +2 -2
  322. package/src/cli/platform/services/PlatformOrchestrator.ts +0 -9
  323. package/src/cli/vendor/__tests__/VendorService.spec.ts +407 -0
  324. package/src/cli/vendor/atoms/vendorOptions.ts +41 -0
  325. package/src/cli/vendor/commands/VendorCommand.ts +204 -0
  326. package/src/cli/vendor/index.ts +43 -0
  327. package/src/cli/vendor/services/VendorService.ts +338 -0
  328. package/src/command/{providers → __tests__}/CliProvider.spec.ts +1 -1
  329. package/src/command/{helpers → __tests__}/EnvUtils.spec.ts +1 -1
  330. package/src/command/providers/CliProvider.ts +2 -2
  331. package/src/core/{primitives → __tests__}/$atom.spec.ts +2 -2
  332. package/src/core/{primitives → __tests__}/$memoize.spec.ts +1 -1
  333. package/src/core/{primitives → __tests__}/$mode.spec.ts +1 -1
  334. package/src/core/{primitives → __tests__}/$pipeline.spec.ts +1 -1
  335. package/src/core/{primitives → __tests__}/$scope.spec.ts +2 -2
  336. package/src/core/{providers → __tests__}/KeylessJsonSchemaCodec.spec.ts +1 -1
  337. package/src/core/{providers → __tests__}/SchemaValidator.spec.ts +1 -1
  338. package/src/core/{helpers → __tests__}/jsonSchemaToTypeBox.spec.ts +1 -1
  339. package/src/core/index.shared.ts +1 -1
  340. package/src/core/primitives/{$use.ts → $state.ts} +4 -4
  341. package/src/crypto/{providers → __tests__}/BrowserCryptoProvider.browser.spec.ts +1 -1
  342. package/src/crypto/{providers → __tests__}/CryptoProvider.spec.ts +1 -1
  343. package/src/datetime/{primitives → __tests__}/$debounce.spec.ts +1 -1
  344. package/src/datetime/{primitives → __tests__}/$throttle.spec.ts +1 -1
  345. package/src/datetime/{primitives → __tests__}/$timeout.spec.ts +1 -1
  346. package/src/email/brevo/{providers → __tests__}/BrevoEmailProvider.spec.ts +1 -1
  347. package/src/email/core/{providers → __tests__}/LocalEmailProvider.spec.ts +39 -150
  348. package/src/email/core/providers/LocalEmailProvider.ts +13 -51
  349. package/src/email/smtp/providers/NodemailerEmailProvider.ts +2 -2
  350. package/src/lock/core/{primitives → __tests__}/$lock.middleware.spec.ts +1 -1
  351. package/src/lock/core/primitives/$lock.ts +2 -2
  352. package/src/logger/index.ts +10 -4
  353. package/src/mcp/transports/SseMcpTransport.ts +2 -2
  354. package/src/orm/__tests__/ModelBuilder-tests.ts +53 -0
  355. package/src/orm/__tests__/ModelBuilder.spec.ts +80 -0
  356. package/src/orm/__tests__/organization-tests.ts +200 -0
  357. package/src/orm/__tests__/organization.spec.ts +103 -0
  358. package/src/orm/core/{providers/drivers → __tests__}/BunSqliteProvider.bun.spec.ts +5 -2
  359. package/src/orm/core/constants/PG_SYMBOLS.ts +2 -0
  360. package/src/orm/core/index.shared.ts +1 -0
  361. package/src/orm/core/primitives/$entity.ts +31 -0
  362. package/src/orm/core/providers/DatabaseTypeProvider.ts +11 -0
  363. package/src/orm/core/providers/DrizzleKitProvider.ts +1 -1
  364. package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -2
  365. package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +3 -3
  366. package/src/orm/core/services/ModelBuilder.ts +11 -0
  367. package/src/orm/core/services/QueryManager.ts +16 -2
  368. package/src/orm/core/services/Repository.ts +70 -10
  369. package/src/orm/postgres/{providers → __tests__}/BunPostgresProvider.bun.spec.ts +1 -1
  370. package/src/queue/core/providers/WorkerProvider.ts +2 -2
  371. package/src/queue/redis/providers/RedisQueueProvider.ts +2 -2
  372. package/src/react/core/{hooks → __tests__}/useAction.browser.spec.tsx +1 -1
  373. package/src/react/core/hooks/useAction.ts +7 -6
  374. package/src/react/head/{providers → __tests__}/BrowserHeadProvider.browser.spec.ts +1 -1
  375. package/src/react/head/{helpers → __tests__}/SeoExpander.spec.ts +1 -1
  376. package/src/react/i18n/{providers → __tests__}/I18nProvider.spec.ts +1 -1
  377. package/src/react/i18n/{hooks → __tests__}/useI18n.browser.spec.tsx +1 -1
  378. package/src/react/intro/components/GettingStartedDevtoolsSlide.tsx +1 -1
  379. package/src/react/router/{providers → __tests__}/ReactBrowserProvider.browser.spec.ts +1 -1
  380. package/src/react/router/providers/ReactBrowserProvider.ts +2 -2
  381. package/src/react/router/providers/ReactPageProvider.ts +2 -2
  382. package/src/react/router/providers/ReactServerProvider.ts +3 -3
  383. package/src/redis/{providers → __tests__}/BunRedisProvider.bun.spec.ts +4 -4
  384. package/src/retry/{primitives → __tests__}/$retry.middleware.spec.ts +1 -1
  385. package/src/router/{TemplatedPathParser.spec.ts → __tests__/TemplatedPathParser.spec.ts} +1 -1
  386. package/src/scheduler/primitives/$scheduler.ts +2 -2
  387. package/src/security/{primitives → __tests__}/$secure-browser.spec.ts +1 -1
  388. package/src/security/{primitives → __tests__}/$secure.spec.ts +1 -1
  389. package/src/security/primitives/$issuer.ts +1 -1
  390. package/src/security/providers/JwtProvider.ts +6 -10
  391. package/src/security/providers/SecurityProvider.ts +6 -11
  392. package/src/security/schemas/userAccountInfoSchema.ts +3 -3
  393. package/src/server/auth/providers/ServerAuthProvider.ts +24 -2
  394. package/src/server/cookies/{services → __tests__}/CookieParser.spec.ts +1 -1
  395. package/src/server/core/{primitives → __tests__}/$circuit.spec.ts +1 -1
  396. package/src/server/core/{providers → __tests__}/NodeHttpServerProvider.spec.ts +1 -1
  397. package/src/server/core/{providers → __tests__}/ServerBodyParserProvider.spec.ts +31 -1
  398. package/src/server/core/{providers → __tests__}/ServerCompressProvider.spec.ts +1 -1
  399. package/src/server/core/{providers → __tests__}/ServerHelmetProvider.spec.ts +4 -1
  400. package/src/server/core/{providers → __tests__}/ServerMultipartProvider.spec.ts +1 -1
  401. package/src/server/core/{services → __tests__}/ServerRequestParser.spec.ts +1 -1
  402. package/src/server/core/primitives/$action.ts +2 -2
  403. package/src/server/core/primitives/$sse.ts +2 -2
  404. package/src/server/core/providers/ServerBodyParserProvider.ts +21 -12
  405. package/src/server/core/providers/ServerCompressProvider.ts +2 -2
  406. package/src/server/core/providers/ServerHelmetProvider.ts +2 -2
  407. package/src/server/core/providers/ServerMultipartProvider.ts +2 -2
  408. package/src/server/core/providers/ServerRouterProvider.ts +1 -5
  409. package/src/server/cors/{primitives → __tests__}/$cors.spec.ts +1 -1
  410. package/src/server/cors/providers/ServerCorsProvider.ts +2 -2
  411. package/src/server/links/{services → __tests__}/BatchCollector.spec.ts +1 -1
  412. package/src/server/links/providers/LinkProvider.ts +2 -2
  413. package/src/server/links/providers/RemotePrimitiveProvider.ts +2 -2
  414. package/src/server/links/providers/ServerLinksProvider.ts +2 -2
  415. package/src/server/rate-limit/{primitives → __tests__}/$rateLimit.spec.ts +1 -1
  416. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +2 -2
  417. package/src/server/swagger/providers/ServerSwaggerProvider.ts +2 -2
  418. package/src/sms/{providers → __tests__}/LocalSmsProvider.spec.ts +35 -29
  419. package/src/sms/providers/LocalSmsProvider.ts +13 -24
  420. package/src/system/{providers → __tests__}/MemoryFileSystemProvider.spec.ts +1 -1
  421. package/src/system/{providers → __tests__}/MemoryShellProvider.spec.ts +1 -1
  422. package/src/topic/redis/providers/RedisTopicProvider.ts +2 -2
  423. package/src/websocket/{services → __tests__}/RoomManager.spec.ts +1 -1
  424. package/src/websocket/providers/NodeWebSocketServerProvider.ts +2 -2
  425. package/tsconfig.base.json +1 -0
  426. package/src/cli/platform/adapters/DockerAdapter.spec.ts +0 -378
  427. package/src/cli/platform/adapters/DockerAdapter.ts +0 -417
  428. package/src/cli/platform/services/DockerComposeGenerator.spec.ts +0 -490
  429. package/src/cli/platform/services/DockerComposeGenerator.ts +0 -353
  430. package/src/cli/platform/services/DockerSshService.spec.ts +0 -47
  431. package/src/cli/platform/services/DockerSshService.ts +0 -61
  432. /package/src/api/audits/{primitives → __tests__}/$audit.spec.ts +0 -0
  433. /package/src/api/audits/{services → __tests__}/AuditService.spec.ts +0 -0
  434. /package/src/api/files/{controllers → __tests__}/AdminFileStatsController.spec.ts +0 -0
  435. /package/src/api/files/{controllers → __tests__}/FileController.spec.ts +0 -0
  436. /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
  437. /package/src/api/files/{services → __tests__}/FileService.spec.ts +0 -0
  438. /package/src/api/jobs/{primitives → __tests__}/$job-middleware.spec.ts +0 -0
  439. /package/src/api/parameters/{primitives → __tests__}/$parameter.spec.ts +0 -0
  440. /package/src/api/users/{primitives → __tests__}/$realm.spec.ts +0 -0
  441. /package/src/api/users/{controllers → __tests__}/AdminIdentityController.spec.ts +0 -0
  442. /package/src/api/users/{controllers → __tests__}/AdminSessionController.spec.ts +0 -0
  443. /package/src/api/users/{controllers → __tests__}/AdminUserController.spec.ts +0 -0
  444. /package/src/api/users/{services → __tests__}/CredentialService.spec.ts +0 -0
  445. /package/src/api/users/{providers → __tests__}/RealmProvider.spec.ts +0 -0
  446. /package/src/api/users/{services → __tests__}/RegistrationService.spec.ts +0 -0
  447. /package/src/batch/{primitives → __tests__}/$batch.spec.ts +0 -0
  448. /package/src/batch/{providers → __tests__}/BatchProvider.spec.ts +0 -0
  449. /package/src/bucket/{primitives → __tests__}/$bucket.spec.ts +0 -0
  450. /package/src/bucket/{providers → __tests__}/FileStorageProvider.spec.ts +0 -0
  451. /package/src/bucket/{providers → __tests__}/LocalFileStorageProvider.spec.ts +0 -0
  452. /package/src/bucket/{providers → __tests__}/MemoryFileStorageProvider.spec.ts +0 -0
  453. /package/src/cache/core/{primitives → __tests__}/$cache.spec.ts +0 -0
  454. /package/src/cache/redis/{providers → __tests__}/RedisCacheProvider.spec.ts +0 -0
  455. /package/src/command/{primitives → __tests__}/$command.spec.ts +0 -0
  456. /package/src/command/{helpers → __tests__}/Asker.spec.ts +0 -0
  457. /package/src/command/{helpers → __tests__}/Runner.spec.ts +0 -0
  458. /package/src/core/{primitives → __tests__}/$context.spec.ts +0 -0
  459. /package/src/core/{primitives → __tests__}/$env.spec.ts +0 -0
  460. /package/src/core/{primitives → __tests__}/$hook.spec.ts +0 -0
  461. /package/src/core/{primitives → __tests__}/$inject.spec.ts +0 -0
  462. /package/src/core/{primitives → __tests__}/$module.spec.ts +0 -0
  463. /package/src/core/{providers → __tests__}/CodecManager.spec.ts +0 -0
  464. /package/src/core/{providers → __tests__}/EventManager.spec.ts +0 -0
  465. /package/src/core/{providers → __tests__}/StateManager.spec.ts +0 -0
  466. /package/src/core/{providers → __tests__}/TypeProvider.spec.ts +0 -0
  467. /package/src/datetime/{primitives → __tests__}/$interval.spec.ts +0 -0
  468. /package/src/datetime/{providers → __tests__}/DateTimeProvider.spec.ts +0 -0
  469. /package/src/email/core/{primitives → __tests__}/$email.spec.ts +0 -0
  470. /package/src/fake/{providers → __tests__}/FakeProvider.spec.ts +0 -0
  471. /package/src/lock/core/{providers → __tests__}/MemoryLockProvider.spec.ts +0 -0
  472. /package/src/lock/redis/{providers → __tests__}/RedisLockProvider.spec.ts +0 -0
  473. /package/src/logger/{primitives → __tests__}/$logger.spec.ts +0 -0
  474. /package/src/logger/{services → __tests__}/Logger.spec.ts +0 -0
  475. /package/src/mcp/{primitives → __tests__}/$prompt.spec.ts +0 -0
  476. /package/src/mcp/{primitives → __tests__}/$resource.spec.ts +0 -0
  477. /package/src/mcp/{primitives → __tests__}/$tool.spec.ts +0 -0
  478. /package/src/mcp/{providers → __tests__}/McpServerProvider.spec.ts +0 -0
  479. /package/src/mcp/{helpers → __tests__}/jsonrpc.spec.ts +0 -0
  480. /package/src/orm/core/{helpers → __tests__}/parseQueryString.spec.ts +0 -0
  481. /package/src/queue/core/{primitives → __tests__}/$consumer.spec.ts +0 -0
  482. /package/src/queue/core/{providers → __tests__}/MemoryQueueProvider.spec.ts +0 -0
  483. /package/src/queue/core/{providers → __tests__}/WorkerProvider.spec.ts +0 -0
  484. /package/src/queue/redis/{providers → __tests__}/RedisQueueProvider.spec.ts +0 -0
  485. /package/src/react/form/{hooks → __tests__}/useForm.browser.spec.tsx +0 -0
  486. /package/src/react/head/{hooks → __tests__}/useHead.spec.tsx +0 -0
  487. /package/src/react/i18n/{components → __tests__}/Localize.spec.tsx +0 -0
  488. /package/src/react/router/{primitives → __tests__}/$page.browser.spec.tsx +0 -0
  489. /package/src/react/router/{primitives → __tests__}/$page.middleware.spec.tsx +0 -0
  490. /package/src/react/router/{primitives → __tests__}/$page.spec.tsx +0 -0
  491. /package/src/react/router/{providers → __tests__}/ReactPreloadProvider.spec.ts +0 -0
  492. /package/src/react/router/{providers → __tests__}/ReactServerProvider.spec.tsx +0 -0
  493. /package/src/react/router/{providers → __tests__}/ReactServerTemplateProvider.spec.ts +0 -0
  494. /package/src/retry/{primitives → __tests__}/$retry.spec.ts +0 -0
  495. /package/src/retry/{providers → __tests__}/RetryProvider.spec.ts +0 -0
  496. /package/src/router/{providers → __tests__}/RouterProvider.spec.ts +0 -0
  497. /package/src/security/{primitives → __tests__}/$issuer.spec.ts +0 -0
  498. /package/src/security/{primitives → __tests__}/$permission.spec.ts +0 -0
  499. /package/src/security/{primitives → __tests__}/$role.spec.ts +0 -0
  500. /package/src/security/{primitives → __tests__}/$serviceAccount.spec.ts +0 -0
  501. /package/src/security/{providers → __tests__}/SecurityProvider.spec.ts +0 -0
  502. /package/src/server/cookies/{providers → __tests__}/ServerCookiesProvider.spec.ts +0 -0
  503. /package/src/server/core/{primitives → __tests__}/$action.spec.ts +0 -0
  504. /package/src/server/core/{primitives → __tests__}/$middleware.spec.ts +0 -0
  505. /package/src/server/core/{primitives → __tests__}/$route.spec.ts +0 -0
  506. /package/src/server/core/{primitives → __tests__}/$sse.spec.ts +0 -0
  507. /package/src/server/core/{providers → __tests__}/BunHttpServerProvider.bun.spec.ts +0 -0
  508. /package/src/server/core/{services → __tests__}/HttpClient.spec.ts +0 -0
  509. /package/src/server/core/{providers → __tests__}/ServerLoggerProvider.spec.ts +0 -0
  510. /package/src/server/core/{services → __tests__}/UserAgentParser.spec.ts +0 -0
  511. /package/src/server/cors/{providers → __tests__}/ServerCorsProvider.spec.ts +0 -0
  512. /package/src/server/etag/{providers → __tests__}/ServerEtagProvider.spec.ts +0 -0
  513. /package/src/server/health/{providers → __tests__}/ServerHealthProvider.spec.ts +0 -0
  514. /package/src/server/links/{primitives → __tests__}/$remote.spec.ts +0 -0
  515. /package/src/server/links/{services → __tests__}/BatchEndpoint.spec.ts +0 -0
  516. /package/src/server/links/{providers → __tests__}/LinkProvider.spec.ts +0 -0
  517. /package/src/server/links/{providers → __tests__}/ServerLinksProvider.spec.ts +0 -0
  518. /package/src/server/metrics/{providers → __tests__}/ServerMetricsProvider.spec.ts +0 -0
  519. /package/src/server/proxy/{primitives → __tests__}/$proxy.spec.ts +0 -0
  520. /package/src/server/rate-limit/{providers → __tests__}/ServerRateLimitProvider.spec.ts +0 -0
  521. /package/src/server/static/{primitives → __tests__}/$serve.spec.ts +0 -0
  522. /package/src/server/swagger/{primitives → __tests__}/$swagger.spec.ts +0 -0
  523. /package/src/sms/{primitives → __tests__}/$sms.spec.ts +0 -0
  524. /package/src/sms/{providers → __tests__}/MemorySmsProvider.spec.ts +0 -0
  525. /package/src/system/{services → __tests__}/FileDetector.spec.ts +0 -0
  526. /package/src/system/{providers → __tests__}/NodeFileSystemProvider.spec.ts +0 -0
  527. /package/src/topic/core/{primitives → __tests__}/$subscriber.spec.ts +0 -0
  528. /package/src/topic/core/{providers → __tests__}/MemoryTopicProvider.spec.ts +0 -0
  529. /package/src/topic/redis/{providers → __tests__}/RedisTopicProvider.spec.ts +0 -0
  530. /package/src/websocket/{primitives → __tests__}/$channel.spec.ts +0 -0
@@ -1,10 +1,10 @@
1
- import * as alepha from "alepha";
1
+ import * as _$alepha from "alepha";
2
2
  import { Alepha, KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
- import * as alepha_server0 from "alepha/server";
3
+ import * as _$alepha_server0 from "alepha/server";
4
4
  import { ServerRequest } from "alepha/server";
5
- import * as alepha_orm0 from "alepha/orm";
5
+ import * as _$alepha_orm0 from "alepha/orm";
6
6
  import { Page } from "alepha/orm";
7
- import * as alepha_logger0 from "alepha/logger";
7
+ import * as _$alepha_logger0 from "alepha/logger";
8
8
  import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
9
9
  import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
10
10
  //#region ../../src/orm/core/schemas/insertSchema.d.ts
@@ -87,6 +87,36 @@ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
87
87
  * Partial index condition. Only rows matching this SQL expression are indexed.
88
88
  */
89
89
  where?: SQL;
90
+ } | {
91
+ /**
92
+ * SQL expressions for expression-based indexes.
93
+ *
94
+ * Can include column references and SQL functions like `LOWER()`, `UPPER()`, etc.
95
+ * Columns and expressions can be mixed together.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * // Case-insensitive unique username per realm
100
+ * indexes: [{
101
+ * expressions: (self) => [self.realm, sql`LOWER(${self.username})`],
102
+ * unique: true,
103
+ * name: "users_realm_username_lower_idx",
104
+ * }]
105
+ * ```
106
+ */
107
+ expressions: (self: Record<Keys & string, any>) => (SQL | any)[];
108
+ /**
109
+ * Whether this should be a unique index (enforces uniqueness constraint).
110
+ */
111
+ unique?: boolean;
112
+ /**
113
+ * Custom name for the index. If not provided, generates name automatically.
114
+ */
115
+ name: string;
116
+ /**
117
+ * Partial index condition. Only rows matching this SQL expression are indexed.
118
+ */
119
+ where?: SQL;
90
120
  })[];
91
121
  /**
92
122
  * Foreign key constraints to maintain referential integrity.
@@ -191,6 +221,7 @@ declare const PG_IDENTITY: unique symbol;
191
221
  declare const PG_ENUM: unique symbol;
192
222
  declare const PG_REF: unique symbol;
193
223
  declare const PG_GENERATED: unique symbol;
224
+ declare const PG_ORGANIZATION: unique symbol;
194
225
  /**
195
226
  * @deprecated Use `PG_IDENTITY` instead.
196
227
  */
@@ -206,6 +237,7 @@ type PgSymbols = {
206
237
  [PG_REF]: PgRefOptions;
207
238
  [PG_ENUM]: PgEnumOptions;
208
239
  [PG_GENERATED]: PgGeneratedOptions;
240
+ [PG_ORGANIZATION]: {};
209
241
  /**
210
242
  * @deprecated Use `PG_IDENTITY` instead.
211
243
  */
@@ -264,8 +296,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
264
296
  * - `d1://BINDING_NAME` — Cloudflare D1
265
297
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
266
298
  */
267
- declare const databaseEnvSchema: alepha.TObject<{
268
- DATABASE_URL: alepha.TOptional<alepha.TString>;
299
+ declare const databaseEnvSchema: _$alepha.TObject<{
300
+ DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
269
301
  /**
270
302
  * Enable or disable push-based schema synchronization (drizzle-kit push).
271
303
  *
@@ -273,7 +305,7 @@ declare const databaseEnvSchema: alepha.TObject<{
273
305
  * Set to `false` in development to skip automatic schema sync
274
306
  * (e.g. when managing migrations manually).
275
307
  */
276
- DATABASE_SYNC: alepha.TOptional<alepha.TBoolean>;
308
+ DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
277
309
  }>;
278
310
  declare module "alepha" {
279
311
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
@@ -283,7 +315,7 @@ declare module "alepha" {
283
315
  /**
284
316
  * Audit severity levels for categorizing events.
285
317
  */
286
- declare const auditSeveritySchema: alepha.TUnsafe<"info" | "warning" | "critical">;
318
+ declare const auditSeveritySchema: _$alepha.TUnsafe<"info" | "warning" | "critical">;
287
319
  type AuditSeverity = Static<typeof auditSeveritySchema>;
288
320
  /**
289
321
  * Audit log entity for tracking important system events.
@@ -294,212 +326,212 @@ type AuditSeverity = Static<typeof auditSeveritySchema>;
294
326
  * - When it happened (createdAt)
295
327
  * - Context and details (metadata, ipAddress, userAgent)
296
328
  */
297
- declare const audits: alepha_orm0.EntityPrimitive<alepha.TObject<{
298
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
299
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
329
+ declare const audits: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
330
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
331
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
300
332
  /**
301
333
  * Audit event type (e.g., "auth", "user", "payment", "system").
302
334
  * Used for categorizing and filtering audit events.
303
335
  */
304
- type: alepha.TString;
336
+ type: _$alepha.TString;
305
337
  /**
306
338
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
307
339
  */
308
- action: alepha.TString;
340
+ action: _$alepha.TString;
309
341
  /**
310
342
  * Severity level of the event.
311
343
  */
312
- severity: alepha_orm0.PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
344
+ severity: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
313
345
  /**
314
346
  * User ID who performed the action (null for system events).
315
347
  */
316
- userId: alepha.TOptional<alepha.TString>;
348
+ userId: _$alepha.TOptional<_$alepha.TString>;
317
349
  /**
318
350
  * User realm for multi-tenant support.
319
351
  */
320
- userRealm: alepha.TOptional<alepha.TString>;
352
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
321
353
  /**
322
354
  * User email at the time of the event (denormalized for history).
323
355
  */
324
- userEmail: alepha.TOptional<alepha.TString>;
356
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
325
357
  /**
326
358
  * Resource type affected (e.g., "user", "order", "file").
327
359
  */
328
- resourceType: alepha.TOptional<alepha.TString>;
360
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
329
361
  /**
330
362
  * Resource ID affected.
331
363
  */
332
- resourceId: alepha.TOptional<alepha.TString>;
364
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
333
365
  /**
334
366
  * Human-readable description of the event.
335
367
  */
336
- description: alepha.TOptional<alepha.TString>;
368
+ description: _$alepha.TOptional<_$alepha.TString>;
337
369
  /**
338
370
  * Additional metadata/context as JSON.
339
371
  */
340
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
372
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
341
373
  /**
342
374
  * Client IP address.
343
375
  */
344
- ipAddress: alepha.TOptional<alepha.TString>;
376
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
345
377
  /**
346
378
  * Client user agent.
347
379
  */
348
- userAgent: alepha.TOptional<alepha.TString>;
380
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
349
381
  /**
350
382
  * Session ID if applicable.
351
383
  */
352
- sessionId: alepha.TOptional<alepha.TString>;
384
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
353
385
  /**
354
386
  * Request ID for correlation.
355
387
  */
356
- requestId: alepha.TOptional<alepha.TString>;
388
+ requestId: _$alepha.TOptional<_$alepha.TString>;
357
389
  /**
358
390
  * Whether the action was successful.
359
391
  */
360
- success: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
392
+ success: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
361
393
  /**
362
394
  * Error message if the action failed.
363
395
  */
364
- errorMessage: alepha.TOptional<alepha.TString>;
396
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
365
397
  }>>;
366
- declare const auditEntitySchema: alepha.TObject<{
367
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
368
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
398
+ declare const auditEntitySchema: _$alepha.TObject<{
399
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
400
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
369
401
  /**
370
402
  * Audit event type (e.g., "auth", "user", "payment", "system").
371
403
  * Used for categorizing and filtering audit events.
372
404
  */
373
- type: alepha.TString;
405
+ type: _$alepha.TString;
374
406
  /**
375
407
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
376
408
  */
377
- action: alepha.TString;
409
+ action: _$alepha.TString;
378
410
  /**
379
411
  * Severity level of the event.
380
412
  */
381
- severity: alepha_orm0.PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
413
+ severity: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
382
414
  /**
383
415
  * User ID who performed the action (null for system events).
384
416
  */
385
- userId: alepha.TOptional<alepha.TString>;
417
+ userId: _$alepha.TOptional<_$alepha.TString>;
386
418
  /**
387
419
  * User realm for multi-tenant support.
388
420
  */
389
- userRealm: alepha.TOptional<alepha.TString>;
421
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
390
422
  /**
391
423
  * User email at the time of the event (denormalized for history).
392
424
  */
393
- userEmail: alepha.TOptional<alepha.TString>;
425
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
394
426
  /**
395
427
  * Resource type affected (e.g., "user", "order", "file").
396
428
  */
397
- resourceType: alepha.TOptional<alepha.TString>;
429
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
398
430
  /**
399
431
  * Resource ID affected.
400
432
  */
401
- resourceId: alepha.TOptional<alepha.TString>;
433
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
402
434
  /**
403
435
  * Human-readable description of the event.
404
436
  */
405
- description: alepha.TOptional<alepha.TString>;
437
+ description: _$alepha.TOptional<_$alepha.TString>;
406
438
  /**
407
439
  * Additional metadata/context as JSON.
408
440
  */
409
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
441
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
410
442
  /**
411
443
  * Client IP address.
412
444
  */
413
- ipAddress: alepha.TOptional<alepha.TString>;
445
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
414
446
  /**
415
447
  * Client user agent.
416
448
  */
417
- userAgent: alepha.TOptional<alepha.TString>;
449
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
418
450
  /**
419
451
  * Session ID if applicable.
420
452
  */
421
- sessionId: alepha.TOptional<alepha.TString>;
453
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
422
454
  /**
423
455
  * Request ID for correlation.
424
456
  */
425
- requestId: alepha.TOptional<alepha.TString>;
457
+ requestId: _$alepha.TOptional<_$alepha.TString>;
426
458
  /**
427
459
  * Whether the action was successful.
428
460
  */
429
- success: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
461
+ success: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
430
462
  /**
431
463
  * Error message if the action failed.
432
464
  */
433
- errorMessage: alepha.TOptional<alepha.TString>;
465
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
434
466
  }>;
435
- declare const auditEntityInsertSchema: alepha_orm0.TObjectInsert<alepha.TObject<{
436
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
437
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
467
+ declare const auditEntityInsertSchema: _$alepha_orm0.TObjectInsert<_$alepha.TObject<{
468
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
469
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
438
470
  /**
439
471
  * Audit event type (e.g., "auth", "user", "payment", "system").
440
472
  * Used for categorizing and filtering audit events.
441
473
  */
442
- type: alepha.TString;
474
+ type: _$alepha.TString;
443
475
  /**
444
476
  * Specific action performed (e.g., "login", "logout", "create", "update", "delete").
445
477
  */
446
- action: alepha.TString;
478
+ action: _$alepha.TString;
447
479
  /**
448
480
  * Severity level of the event.
449
481
  */
450
- severity: alepha_orm0.PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
482
+ severity: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
451
483
  /**
452
484
  * User ID who performed the action (null for system events).
453
485
  */
454
- userId: alepha.TOptional<alepha.TString>;
486
+ userId: _$alepha.TOptional<_$alepha.TString>;
455
487
  /**
456
488
  * User realm for multi-tenant support.
457
489
  */
458
- userRealm: alepha.TOptional<alepha.TString>;
490
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
459
491
  /**
460
492
  * User email at the time of the event (denormalized for history).
461
493
  */
462
- userEmail: alepha.TOptional<alepha.TString>;
494
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
463
495
  /**
464
496
  * Resource type affected (e.g., "user", "order", "file").
465
497
  */
466
- resourceType: alepha.TOptional<alepha.TString>;
498
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
467
499
  /**
468
500
  * Resource ID affected.
469
501
  */
470
- resourceId: alepha.TOptional<alepha.TString>;
502
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
471
503
  /**
472
504
  * Human-readable description of the event.
473
505
  */
474
- description: alepha.TOptional<alepha.TString>;
506
+ description: _$alepha.TOptional<_$alepha.TString>;
475
507
  /**
476
508
  * Additional metadata/context as JSON.
477
509
  */
478
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
510
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
479
511
  /**
480
512
  * Client IP address.
481
513
  */
482
- ipAddress: alepha.TOptional<alepha.TString>;
514
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
483
515
  /**
484
516
  * Client user agent.
485
517
  */
486
- userAgent: alepha.TOptional<alepha.TString>;
518
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
487
519
  /**
488
520
  * Session ID if applicable.
489
521
  */
490
- sessionId: alepha.TOptional<alepha.TString>;
522
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
491
523
  /**
492
524
  * Request ID for correlation.
493
525
  */
494
- requestId: alepha.TOptional<alepha.TString>;
526
+ requestId: _$alepha.TOptional<_$alepha.TString>;
495
527
  /**
496
528
  * Whether the action was successful.
497
529
  */
498
- success: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
530
+ success: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
499
531
  /**
500
532
  * Error message if the action failed.
501
533
  */
502
- errorMessage: alepha.TOptional<alepha.TString>;
534
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
503
535
  }>>;
504
536
  type AuditEntity = Static<typeof audits.schema>;
505
537
  //#endregion
@@ -507,21 +539,21 @@ type AuditEntity = Static<typeof audits.schema>;
507
539
  /**
508
540
  * Query schema for searching and filtering audit logs.
509
541
  */
510
- declare const auditQuerySchema: alepha.TObject<{
511
- page: alepha.TOptional<alepha.TInteger>;
512
- size: alepha.TOptional<alepha.TInteger>;
513
- sort: alepha.TOptional<alepha.TString>;
514
- type: alepha.TOptional<alepha.TString>;
515
- action: alepha.TOptional<alepha.TString>;
516
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
517
- userId: alepha.TOptional<alepha.TString>;
518
- userRealm: alepha.TOptional<alepha.TString>;
519
- resourceType: alepha.TOptional<alepha.TString>;
520
- resourceId: alepha.TOptional<alepha.TString>;
521
- success: alepha.TOptional<alepha.TBoolean>;
522
- from: alepha.TOptional<alepha.TString>;
523
- to: alepha.TOptional<alepha.TString>;
524
- search: alepha.TOptional<alepha.TString>;
542
+ declare const auditQuerySchema: _$alepha.TObject<{
543
+ page: _$alepha.TOptional<_$alepha.TInteger>;
544
+ size: _$alepha.TOptional<_$alepha.TInteger>;
545
+ sort: _$alepha.TOptional<_$alepha.TString>;
546
+ type: _$alepha.TOptional<_$alepha.TString>;
547
+ action: _$alepha.TOptional<_$alepha.TString>;
548
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
549
+ userId: _$alepha.TOptional<_$alepha.TString>;
550
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
551
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
552
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
553
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
554
+ from: _$alepha.TOptional<_$alepha.TString>;
555
+ to: _$alepha.TOptional<_$alepha.TString>;
556
+ search: _$alepha.TOptional<_$alepha.TString>;
525
557
  }>;
526
558
  type AuditQuery = Static<typeof auditQuerySchema>;
527
559
  //#endregion
@@ -529,23 +561,23 @@ type AuditQuery = Static<typeof auditQuerySchema>;
529
561
  /**
530
562
  * Schema for creating a new audit log entry.
531
563
  */
532
- declare const createAuditSchema: alepha.TObject<{
533
- type: alepha.TString;
534
- action: alepha.TString;
535
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
536
- userId: alepha.TOptional<alepha.TString>;
537
- userRealm: alepha.TOptional<alepha.TString>;
538
- userEmail: alepha.TOptional<alepha.TString>;
539
- resourceType: alepha.TOptional<alepha.TString>;
540
- resourceId: alepha.TOptional<alepha.TString>;
541
- description: alepha.TOptional<alepha.TString>;
542
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
543
- ipAddress: alepha.TOptional<alepha.TString>;
544
- userAgent: alepha.TOptional<alepha.TString>;
545
- sessionId: alepha.TOptional<alepha.TString>;
546
- requestId: alepha.TOptional<alepha.TString>;
547
- success: alepha.TOptional<alepha.TBoolean>;
548
- errorMessage: alepha.TOptional<alepha.TString>;
564
+ declare const createAuditSchema: _$alepha.TObject<{
565
+ type: _$alepha.TString;
566
+ action: _$alepha.TString;
567
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
568
+ userId: _$alepha.TOptional<_$alepha.TString>;
569
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
570
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
571
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
572
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
573
+ description: _$alepha.TOptional<_$alepha.TString>;
574
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
575
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
576
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
577
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
578
+ requestId: _$alepha.TOptional<_$alepha.TString>;
579
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
580
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
549
581
  }>;
550
582
  type CreateAudit = Static<typeof createAuditSchema>;
551
583
  //#endregion
@@ -569,26 +601,26 @@ interface AuditTypeDefinition {
569
601
  */
570
602
  declare class AuditService {
571
603
  protected readonly alepha: Alepha;
572
- protected readonly log: alepha_logger0.Logger;
573
- protected readonly repo: alepha_orm0.Repository<alepha.TObject<{
574
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
575
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
576
- type: alepha.TString;
577
- action: alepha.TString;
578
- severity: alepha_orm0.PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof alepha_orm0.PG_DEFAULT>;
579
- userId: alepha.TOptional<alepha.TString>;
580
- userRealm: alepha.TOptional<alepha.TString>;
581
- userEmail: alepha.TOptional<alepha.TString>;
582
- resourceType: alepha.TOptional<alepha.TString>;
583
- resourceId: alepha.TOptional<alepha.TString>;
584
- description: alepha.TOptional<alepha.TString>;
585
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
586
- ipAddress: alepha.TOptional<alepha.TString>;
587
- userAgent: alepha.TOptional<alepha.TString>;
588
- sessionId: alepha.TOptional<alepha.TString>;
589
- requestId: alepha.TOptional<alepha.TString>;
590
- success: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
591
- errorMessage: alepha.TOptional<alepha.TString>;
604
+ protected readonly log: _$alepha_logger0.Logger;
605
+ protected readonly repo: _$alepha_orm0.Repository<_$alepha.TObject<{
606
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
607
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
608
+ type: _$alepha.TString;
609
+ action: _$alepha.TString;
610
+ severity: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof _$alepha_orm0.PG_DEFAULT>;
611
+ userId: _$alepha.TOptional<_$alepha.TString>;
612
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
613
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
614
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
615
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
616
+ description: _$alepha.TOptional<_$alepha.TString>;
617
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
618
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
619
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
620
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
621
+ requestId: _$alepha.TOptional<_$alepha.TString>;
622
+ success: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
623
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
592
624
  }>>;
593
625
  /**
594
626
  * Registry of audit types and their allowed actions.
@@ -692,261 +724,261 @@ declare class AdminAuditController {
692
724
  /**
693
725
  * Find audit entries with filtering and pagination.
694
726
  */
695
- readonly findAudits: alepha_server0.ActionPrimitiveFn<{
696
- query: alepha.TObject<{
697
- page: alepha.TOptional<alepha.TInteger>;
698
- size: alepha.TOptional<alepha.TInteger>;
699
- sort: alepha.TOptional<alepha.TString>;
700
- type: alepha.TOptional<alepha.TString>;
701
- action: alepha.TOptional<alepha.TString>;
702
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
703
- userId: alepha.TOptional<alepha.TString>;
704
- userRealm: alepha.TOptional<alepha.TString>;
705
- resourceType: alepha.TOptional<alepha.TString>;
706
- resourceId: alepha.TOptional<alepha.TString>;
707
- success: alepha.TOptional<alepha.TBoolean>;
708
- from: alepha.TOptional<alepha.TString>;
709
- to: alepha.TOptional<alepha.TString>;
710
- search: alepha.TOptional<alepha.TString>;
727
+ readonly findAudits: _$alepha_server0.ActionPrimitiveFn<{
728
+ query: _$alepha.TObject<{
729
+ page: _$alepha.TOptional<_$alepha.TInteger>;
730
+ size: _$alepha.TOptional<_$alepha.TInteger>;
731
+ sort: _$alepha.TOptional<_$alepha.TString>;
732
+ type: _$alepha.TOptional<_$alepha.TString>;
733
+ action: _$alepha.TOptional<_$alepha.TString>;
734
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
735
+ userId: _$alepha.TOptional<_$alepha.TString>;
736
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
737
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
738
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
739
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
740
+ from: _$alepha.TOptional<_$alepha.TString>;
741
+ to: _$alepha.TOptional<_$alepha.TString>;
742
+ search: _$alepha.TOptional<_$alepha.TString>;
711
743
  }>;
712
- response: alepha.TPage<alepha.TObject<{
713
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
714
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
715
- type: alepha.TString;
716
- action: alepha.TString;
717
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
718
- userId: alepha.TOptional<alepha.TString>;
719
- userRealm: alepha.TOptional<alepha.TString>;
720
- userEmail: alepha.TOptional<alepha.TString>;
721
- resourceType: alepha.TOptional<alepha.TString>;
722
- resourceId: alepha.TOptional<alepha.TString>;
723
- description: alepha.TOptional<alepha.TString>;
724
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
725
- ipAddress: alepha.TOptional<alepha.TString>;
726
- userAgent: alepha.TOptional<alepha.TString>;
727
- sessionId: alepha.TOptional<alepha.TString>;
728
- requestId: alepha.TOptional<alepha.TString>;
729
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
730
- errorMessage: alepha.TOptional<alepha.TString>;
744
+ response: _$alepha.TPage<_$alepha.TObject<{
745
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
746
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
747
+ type: _$alepha.TString;
748
+ action: _$alepha.TString;
749
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
750
+ userId: _$alepha.TOptional<_$alepha.TString>;
751
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
752
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
753
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
754
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
755
+ description: _$alepha.TOptional<_$alepha.TString>;
756
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
757
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
758
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
759
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
760
+ requestId: _$alepha.TOptional<_$alepha.TString>;
761
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
762
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
731
763
  }>>;
732
764
  }>;
733
765
  /**
734
766
  * Get a single audit entry by ID.
735
767
  */
736
- readonly getAudit: alepha_server0.ActionPrimitiveFn<{
737
- params: alepha.TObject<{
738
- id: alepha.TString;
768
+ readonly getAudit: _$alepha_server0.ActionPrimitiveFn<{
769
+ params: _$alepha.TObject<{
770
+ id: _$alepha.TString;
739
771
  }>;
740
- response: alepha.TObject<{
741
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
742
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
743
- type: alepha.TString;
744
- action: alepha.TString;
745
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
746
- userId: alepha.TOptional<alepha.TString>;
747
- userRealm: alepha.TOptional<alepha.TString>;
748
- userEmail: alepha.TOptional<alepha.TString>;
749
- resourceType: alepha.TOptional<alepha.TString>;
750
- resourceId: alepha.TOptional<alepha.TString>;
751
- description: alepha.TOptional<alepha.TString>;
752
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
753
- ipAddress: alepha.TOptional<alepha.TString>;
754
- userAgent: alepha.TOptional<alepha.TString>;
755
- sessionId: alepha.TOptional<alepha.TString>;
756
- requestId: alepha.TOptional<alepha.TString>;
757
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
758
- errorMessage: alepha.TOptional<alepha.TString>;
772
+ response: _$alepha.TObject<{
773
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
774
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
775
+ type: _$alepha.TString;
776
+ action: _$alepha.TString;
777
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
778
+ userId: _$alepha.TOptional<_$alepha.TString>;
779
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
780
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
781
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
782
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
783
+ description: _$alepha.TOptional<_$alepha.TString>;
784
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
785
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
786
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
787
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
788
+ requestId: _$alepha.TOptional<_$alepha.TString>;
789
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
790
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
759
791
  }>;
760
792
  }>;
761
793
  /**
762
794
  * Create a new audit entry.
763
795
  * System-only — this permission should never be assigned to human roles.
764
796
  */
765
- readonly createAudit: alepha_server0.ActionPrimitiveFn<{
766
- body: alepha.TObject<{
767
- type: alepha.TString;
768
- action: alepha.TString;
769
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
770
- userId: alepha.TOptional<alepha.TString>;
771
- userRealm: alepha.TOptional<alepha.TString>;
772
- userEmail: alepha.TOptional<alepha.TString>;
773
- resourceType: alepha.TOptional<alepha.TString>;
774
- resourceId: alepha.TOptional<alepha.TString>;
775
- description: alepha.TOptional<alepha.TString>;
776
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
777
- ipAddress: alepha.TOptional<alepha.TString>;
778
- userAgent: alepha.TOptional<alepha.TString>;
779
- sessionId: alepha.TOptional<alepha.TString>;
780
- requestId: alepha.TOptional<alepha.TString>;
781
- success: alepha.TOptional<alepha.TBoolean>;
782
- errorMessage: alepha.TOptional<alepha.TString>;
797
+ readonly createAudit: _$alepha_server0.ActionPrimitiveFn<{
798
+ body: _$alepha.TObject<{
799
+ type: _$alepha.TString;
800
+ action: _$alepha.TString;
801
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
802
+ userId: _$alepha.TOptional<_$alepha.TString>;
803
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
804
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
805
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
806
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
807
+ description: _$alepha.TOptional<_$alepha.TString>;
808
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
809
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
810
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
811
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
812
+ requestId: _$alepha.TOptional<_$alepha.TString>;
813
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
814
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
783
815
  }>;
784
- response: alepha.TObject<{
785
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
786
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
787
- type: alepha.TString;
788
- action: alepha.TString;
789
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
790
- userId: alepha.TOptional<alepha.TString>;
791
- userRealm: alepha.TOptional<alepha.TString>;
792
- userEmail: alepha.TOptional<alepha.TString>;
793
- resourceType: alepha.TOptional<alepha.TString>;
794
- resourceId: alepha.TOptional<alepha.TString>;
795
- description: alepha.TOptional<alepha.TString>;
796
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
797
- ipAddress: alepha.TOptional<alepha.TString>;
798
- userAgent: alepha.TOptional<alepha.TString>;
799
- sessionId: alepha.TOptional<alepha.TString>;
800
- requestId: alepha.TOptional<alepha.TString>;
801
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
802
- errorMessage: alepha.TOptional<alepha.TString>;
816
+ response: _$alepha.TObject<{
817
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
818
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
819
+ type: _$alepha.TString;
820
+ action: _$alepha.TString;
821
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
822
+ userId: _$alepha.TOptional<_$alepha.TString>;
823
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
824
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
825
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
826
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
827
+ description: _$alepha.TOptional<_$alepha.TString>;
828
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
829
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
830
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
831
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
832
+ requestId: _$alepha.TOptional<_$alepha.TString>;
833
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
834
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
803
835
  }>;
804
836
  }>;
805
837
  /**
806
838
  * Get audit entries for a specific user.
807
839
  */
808
- readonly findByUser: alepha_server0.ActionPrimitiveFn<{
809
- params: alepha.TObject<{
810
- userId: alepha.TString;
840
+ readonly findByUser: _$alepha_server0.ActionPrimitiveFn<{
841
+ params: _$alepha.TObject<{
842
+ userId: _$alepha.TString;
811
843
  }>;
812
- query: alepha.TObject<{
813
- type: alepha.TOptional<alepha.TString>;
814
- search: alepha.TOptional<alepha.TString>;
815
- action: alepha.TOptional<alepha.TString>;
816
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
817
- sort: alepha.TOptional<alepha.TString>;
818
- userRealm: alepha.TOptional<alepha.TString>;
819
- resourceType: alepha.TOptional<alepha.TString>;
820
- resourceId: alepha.TOptional<alepha.TString>;
821
- success: alepha.TOptional<alepha.TBoolean>;
822
- page: alepha.TOptional<alepha.TInteger>;
823
- size: alepha.TOptional<alepha.TInteger>;
824
- from: alepha.TOptional<alepha.TString>;
825
- to: alepha.TOptional<alepha.TString>;
844
+ query: _$alepha.TObject<{
845
+ type: _$alepha.TOptional<_$alepha.TString>;
846
+ search: _$alepha.TOptional<_$alepha.TString>;
847
+ action: _$alepha.TOptional<_$alepha.TString>;
848
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
849
+ sort: _$alepha.TOptional<_$alepha.TString>;
850
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
851
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
852
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
853
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
854
+ page: _$alepha.TOptional<_$alepha.TInteger>;
855
+ size: _$alepha.TOptional<_$alepha.TInteger>;
856
+ from: _$alepha.TOptional<_$alepha.TString>;
857
+ to: _$alepha.TOptional<_$alepha.TString>;
826
858
  }>;
827
- response: alepha.TPage<alepha.TObject<{
828
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
829
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
830
- type: alepha.TString;
831
- action: alepha.TString;
832
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
833
- userId: alepha.TOptional<alepha.TString>;
834
- userRealm: alepha.TOptional<alepha.TString>;
835
- userEmail: alepha.TOptional<alepha.TString>;
836
- resourceType: alepha.TOptional<alepha.TString>;
837
- resourceId: alepha.TOptional<alepha.TString>;
838
- description: alepha.TOptional<alepha.TString>;
839
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
840
- ipAddress: alepha.TOptional<alepha.TString>;
841
- userAgent: alepha.TOptional<alepha.TString>;
842
- sessionId: alepha.TOptional<alepha.TString>;
843
- requestId: alepha.TOptional<alepha.TString>;
844
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
845
- errorMessage: alepha.TOptional<alepha.TString>;
859
+ response: _$alepha.TPage<_$alepha.TObject<{
860
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
861
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
862
+ type: _$alepha.TString;
863
+ action: _$alepha.TString;
864
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
865
+ userId: _$alepha.TOptional<_$alepha.TString>;
866
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
867
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
868
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
869
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
870
+ description: _$alepha.TOptional<_$alepha.TString>;
871
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
872
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
873
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
874
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
875
+ requestId: _$alepha.TOptional<_$alepha.TString>;
876
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
877
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
846
878
  }>>;
847
879
  }>;
848
880
  /**
849
881
  * Get audit entries for a specific resource.
850
882
  */
851
- readonly findByResource: alepha_server0.ActionPrimitiveFn<{
852
- params: alepha.TObject<{
853
- resourceType: alepha.TString;
854
- resourceId: alepha.TString;
883
+ readonly findByResource: _$alepha_server0.ActionPrimitiveFn<{
884
+ params: _$alepha.TObject<{
885
+ resourceType: _$alepha.TString;
886
+ resourceId: _$alepha.TString;
855
887
  }>;
856
- query: alepha.TObject<{
857
- type: alepha.TOptional<alepha.TString>;
858
- search: alepha.TOptional<alepha.TString>;
859
- action: alepha.TOptional<alepha.TString>;
860
- severity: alepha.TOptional<alepha.TUnsafe<"info" | "warning" | "critical">>;
861
- sort: alepha.TOptional<alepha.TString>;
862
- userId: alepha.TOptional<alepha.TString>;
863
- userRealm: alepha.TOptional<alepha.TString>;
864
- success: alepha.TOptional<alepha.TBoolean>;
865
- page: alepha.TOptional<alepha.TInteger>;
866
- size: alepha.TOptional<alepha.TInteger>;
867
- from: alepha.TOptional<alepha.TString>;
868
- to: alepha.TOptional<alepha.TString>;
888
+ query: _$alepha.TObject<{
889
+ type: _$alepha.TOptional<_$alepha.TString>;
890
+ search: _$alepha.TOptional<_$alepha.TString>;
891
+ action: _$alepha.TOptional<_$alepha.TString>;
892
+ severity: _$alepha.TOptional<_$alepha.TUnsafe<"info" | "warning" | "critical">>;
893
+ sort: _$alepha.TOptional<_$alepha.TString>;
894
+ userId: _$alepha.TOptional<_$alepha.TString>;
895
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
896
+ success: _$alepha.TOptional<_$alepha.TBoolean>;
897
+ page: _$alepha.TOptional<_$alepha.TInteger>;
898
+ size: _$alepha.TOptional<_$alepha.TInteger>;
899
+ from: _$alepha.TOptional<_$alepha.TString>;
900
+ to: _$alepha.TOptional<_$alepha.TString>;
869
901
  }>;
870
- response: alepha.TPage<alepha.TObject<{
871
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
872
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
873
- type: alepha.TString;
874
- action: alepha.TString;
875
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
876
- userId: alepha.TOptional<alepha.TString>;
877
- userRealm: alepha.TOptional<alepha.TString>;
878
- userEmail: alepha.TOptional<alepha.TString>;
879
- resourceType: alepha.TOptional<alepha.TString>;
880
- resourceId: alepha.TOptional<alepha.TString>;
881
- description: alepha.TOptional<alepha.TString>;
882
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
883
- ipAddress: alepha.TOptional<alepha.TString>;
884
- userAgent: alepha.TOptional<alepha.TString>;
885
- sessionId: alepha.TOptional<alepha.TString>;
886
- requestId: alepha.TOptional<alepha.TString>;
887
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
888
- errorMessage: alepha.TOptional<alepha.TString>;
902
+ response: _$alepha.TPage<_$alepha.TObject<{
903
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
904
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
905
+ type: _$alepha.TString;
906
+ action: _$alepha.TString;
907
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
908
+ userId: _$alepha.TOptional<_$alepha.TString>;
909
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
910
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
911
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
912
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
913
+ description: _$alepha.TOptional<_$alepha.TString>;
914
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
915
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
916
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
917
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
918
+ requestId: _$alepha.TOptional<_$alepha.TString>;
919
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
920
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
889
921
  }>>;
890
922
  }>;
891
923
  /**
892
924
  * Get audit statistics.
893
925
  */
894
- readonly getAuditStats: alepha_server0.ActionPrimitiveFn<{
895
- query: alepha.TObject<{
896
- from: alepha.TOptional<alepha.TString>;
897
- to: alepha.TOptional<alepha.TString>;
898
- userRealm: alepha.TOptional<alepha.TString>;
926
+ readonly getAuditStats: _$alepha_server0.ActionPrimitiveFn<{
927
+ query: _$alepha.TObject<{
928
+ from: _$alepha.TOptional<_$alepha.TString>;
929
+ to: _$alepha.TOptional<_$alepha.TString>;
930
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
899
931
  }>;
900
- response: alepha.TObject<{
901
- total: alepha.TInteger;
902
- byType: alepha.TRecord<"^.*$", alepha.TInteger>;
903
- bySeverity: alepha.TObject<{
904
- info: alepha.TInteger;
905
- warning: alepha.TInteger;
906
- critical: alepha.TInteger;
932
+ response: _$alepha.TObject<{
933
+ total: _$alepha.TInteger;
934
+ byType: _$alepha.TRecord<"^.*$", _$alepha.TInteger>;
935
+ bySeverity: _$alepha.TObject<{
936
+ info: _$alepha.TInteger;
937
+ warning: _$alepha.TInteger;
938
+ critical: _$alepha.TInteger;
907
939
  }>;
908
- successRate: alepha.TNumber;
909
- recentFailures: alepha.TArray<alepha.TObject<{
910
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
911
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
912
- type: alepha.TString;
913
- action: alepha.TString;
914
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
915
- userId: alepha.TOptional<alepha.TString>;
916
- userRealm: alepha.TOptional<alepha.TString>;
917
- userEmail: alepha.TOptional<alepha.TString>;
918
- resourceType: alepha.TOptional<alepha.TString>;
919
- resourceId: alepha.TOptional<alepha.TString>;
920
- description: alepha.TOptional<alepha.TString>;
921
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
922
- ipAddress: alepha.TOptional<alepha.TString>;
923
- userAgent: alepha.TOptional<alepha.TString>;
924
- sessionId: alepha.TOptional<alepha.TString>;
925
- requestId: alepha.TOptional<alepha.TString>;
926
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
927
- errorMessage: alepha.TOptional<alepha.TString>;
940
+ successRate: _$alepha.TNumber;
941
+ recentFailures: _$alepha.TArray<_$alepha.TObject<{
942
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
943
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
944
+ type: _$alepha.TString;
945
+ action: _$alepha.TString;
946
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
947
+ userId: _$alepha.TOptional<_$alepha.TString>;
948
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
949
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
950
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
951
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
952
+ description: _$alepha.TOptional<_$alepha.TString>;
953
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
954
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
955
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
956
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
957
+ requestId: _$alepha.TOptional<_$alepha.TString>;
958
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
959
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
928
960
  }>>;
929
961
  }>;
930
962
  }>;
931
963
  /**
932
964
  * Get registered audit types.
933
965
  */
934
- readonly getTypes: alepha_server0.ActionPrimitiveFn<{
935
- response: alepha.TArray<alepha.TObject<{
936
- type: alepha.TString;
937
- description: alepha.TOptional<alepha.TString>;
938
- actions: alepha.TArray<alepha.TString>;
966
+ readonly getTypes: _$alepha_server0.ActionPrimitiveFn<{
967
+ response: _$alepha.TArray<_$alepha.TObject<{
968
+ type: _$alepha.TString;
969
+ description: _$alepha.TOptional<_$alepha.TString>;
970
+ actions: _$alepha.TArray<_$alepha.TString>;
939
971
  }>>;
940
972
  }>;
941
973
  /**
942
974
  * Get distinct values for filters.
943
975
  */
944
- readonly getFilterOptions: alepha_server0.ActionPrimitiveFn<{
945
- response: alepha.TObject<{
946
- types: alepha.TArray<alepha.TString>;
947
- actions: alepha.TArray<alepha.TString>;
948
- resourceTypes: alepha.TArray<alepha.TString>;
949
- userRealms: alepha.TArray<alepha.TString>;
976
+ readonly getFilterOptions: _$alepha_server0.ActionPrimitiveFn<{
977
+ response: _$alepha.TObject<{
978
+ types: _$alepha.TArray<_$alepha.TString>;
979
+ actions: _$alepha.TArray<_$alepha.TString>;
980
+ resourceTypes: _$alepha.TArray<_$alepha.TString>;
981
+ userRealms: _$alepha.TArray<_$alepha.TString>;
950
982
  }>;
951
983
  }>;
952
984
  }
@@ -1068,25 +1100,25 @@ declare const $audit: {
1068
1100
  /**
1069
1101
  * Resource schema for audit log responses.
1070
1102
  */
1071
- declare const auditResourceSchema: alepha.TObject<{
1072
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1073
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1074
- type: alepha.TString;
1075
- action: alepha.TString;
1076
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1077
- userId: alepha.TOptional<alepha.TString>;
1078
- userRealm: alepha.TOptional<alepha.TString>;
1079
- userEmail: alepha.TOptional<alepha.TString>;
1080
- resourceType: alepha.TOptional<alepha.TString>;
1081
- resourceId: alepha.TOptional<alepha.TString>;
1082
- description: alepha.TOptional<alepha.TString>;
1083
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
1084
- ipAddress: alepha.TOptional<alepha.TString>;
1085
- userAgent: alepha.TOptional<alepha.TString>;
1086
- sessionId: alepha.TOptional<alepha.TString>;
1087
- requestId: alepha.TOptional<alepha.TString>;
1088
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
1089
- errorMessage: alepha.TOptional<alepha.TString>;
1103
+ declare const auditResourceSchema: _$alepha.TObject<{
1104
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1105
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1106
+ type: _$alepha.TString;
1107
+ action: _$alepha.TString;
1108
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
1109
+ userId: _$alepha.TOptional<_$alepha.TString>;
1110
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
1111
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
1112
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
1113
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
1114
+ description: _$alepha.TOptional<_$alepha.TString>;
1115
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
1116
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
1117
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
1118
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
1119
+ requestId: _$alepha.TOptional<_$alepha.TString>;
1120
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
1121
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
1090
1122
  }>;
1091
1123
  type AuditResource = Static<typeof auditResourceSchema>;
1092
1124
  //#endregion
@@ -1102,7 +1134,7 @@ type AuditResource = Static<typeof auditResourceSchema>;
1102
1134
  *
1103
1135
  * @module alepha.api.audits
1104
1136
  */
1105
- declare const AlephaApiAudits: alepha.Service<alepha.Module>;
1137
+ declare const AlephaApiAudits: _$alepha.Service<_$alepha.Module>;
1106
1138
  //#endregion
1107
1139
  export { $audit, AdminAuditController, AlephaApiAudits, AuditEntity, AuditLogOptions, AuditPrimitive, AuditPrimitiveOptions, AuditQuery, AuditResource, AuditService, AuditSeverity, AuditStats, AuditTypeDefinition, CreateAudit, auditEntityInsertSchema, auditEntitySchema, auditQuerySchema, auditResourceSchema, auditSeveritySchema, audits, createAuditSchema };
1108
1140
  //# sourceMappingURL=index.d.ts.map