alepha 0.14.2 → 0.14.4

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 (405) hide show
  1. package/README.md +1 -1
  2. package/dist/api/audits/index.browser.js +5 -5
  3. package/dist/api/audits/index.browser.js.map +1 -1
  4. package/dist/api/audits/index.d.ts +706 -785
  5. package/dist/api/audits/index.d.ts.map +1 -1
  6. package/dist/api/audits/index.js +13 -13
  7. package/dist/api/audits/index.js.map +1 -1
  8. package/dist/api/files/index.browser.js +5 -5
  9. package/dist/api/files/index.browser.js.map +1 -1
  10. package/dist/api/files/index.d.ts +58 -137
  11. package/dist/api/files/index.d.ts.map +1 -1
  12. package/dist/api/files/index.js +71 -71
  13. package/dist/api/files/index.js.map +1 -1
  14. package/dist/api/jobs/index.browser.js +5 -5
  15. package/dist/api/jobs/index.browser.js.map +1 -1
  16. package/dist/api/jobs/index.d.ts +29 -108
  17. package/dist/api/jobs/index.d.ts.map +1 -1
  18. package/dist/api/jobs/index.js +10 -10
  19. package/dist/api/jobs/index.js.map +1 -1
  20. package/dist/api/notifications/index.browser.js +10 -10
  21. package/dist/api/notifications/index.browser.js.map +1 -1
  22. package/dist/api/notifications/index.d.ts +504 -171
  23. package/dist/api/notifications/index.d.ts.map +1 -1
  24. package/dist/api/notifications/index.js +12 -12
  25. package/dist/api/notifications/index.js.map +1 -1
  26. package/dist/api/parameters/index.browser.js +163 -10
  27. package/dist/api/parameters/index.browser.js.map +1 -1
  28. package/dist/api/parameters/index.d.ts +277 -351
  29. package/dist/api/parameters/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.js +196 -91
  31. package/dist/api/parameters/index.js.map +1 -1
  32. package/dist/api/users/index.browser.js +19 -19
  33. package/dist/api/users/index.browser.js.map +1 -1
  34. package/dist/api/users/index.d.ts +787 -852
  35. package/dist/api/users/index.d.ts.map +1 -1
  36. package/dist/api/users/index.js +827 -596
  37. package/dist/api/users/index.js.map +1 -1
  38. package/dist/api/verifications/index.browser.js +6 -6
  39. package/dist/api/verifications/index.browser.js.map +1 -1
  40. package/dist/api/verifications/index.d.ts +128 -128
  41. package/dist/api/verifications/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.js +6 -6
  43. package/dist/api/verifications/index.js.map +1 -1
  44. package/dist/bin/index.d.ts +1 -2
  45. package/dist/bin/index.js +0 -1
  46. package/dist/bin/index.js.map +1 -1
  47. package/dist/cli/index.d.ts +252 -131
  48. package/dist/cli/index.d.ts.map +1 -1
  49. package/dist/cli/index.js +595 -395
  50. package/dist/cli/index.js.map +1 -1
  51. package/dist/command/index.d.ts +46 -11
  52. package/dist/command/index.d.ts.map +1 -1
  53. package/dist/command/index.js +99 -19
  54. package/dist/command/index.js.map +1 -1
  55. package/dist/core/index.browser.js +40 -22
  56. package/dist/core/index.browser.js.map +1 -1
  57. package/dist/core/index.d.ts +45 -1
  58. package/dist/core/index.d.ts.map +1 -1
  59. package/dist/core/index.js +40 -22
  60. package/dist/core/index.js.map +1 -1
  61. package/dist/core/index.native.js +40 -22
  62. package/dist/core/index.native.js.map +1 -1
  63. package/dist/fake/index.js +195 -168
  64. package/dist/fake/index.js.map +1 -1
  65. package/dist/file/index.d.ts +8 -0
  66. package/dist/file/index.d.ts.map +1 -1
  67. package/dist/file/index.js +3 -0
  68. package/dist/file/index.js.map +1 -1
  69. package/dist/logger/index.d.ts +1 -1
  70. package/dist/logger/index.d.ts.map +1 -1
  71. package/dist/logger/index.js +12 -2
  72. package/dist/logger/index.js.map +1 -1
  73. package/dist/mcp/index.js +1 -1
  74. package/dist/mcp/index.js.map +1 -1
  75. package/dist/orm/index.d.ts +59 -195
  76. package/dist/orm/index.d.ts.map +1 -1
  77. package/dist/orm/index.js +201 -430
  78. package/dist/orm/index.js.map +1 -1
  79. package/dist/security/index.d.ts +1 -1
  80. package/dist/security/index.d.ts.map +1 -1
  81. package/dist/security/index.js +1 -1
  82. package/dist/security/index.js.map +1 -1
  83. package/dist/server/auth/index.d.ts +171 -155
  84. package/dist/server/auth/index.d.ts.map +1 -1
  85. package/dist/server/auth/index.js +0 -1
  86. package/dist/server/auth/index.js.map +1 -1
  87. package/dist/server/cache/index.d.ts +12 -0
  88. package/dist/server/cache/index.d.ts.map +1 -1
  89. package/dist/server/cache/index.js +55 -2
  90. package/dist/server/cache/index.js.map +1 -1
  91. package/dist/server/compress/index.d.ts +6 -0
  92. package/dist/server/compress/index.d.ts.map +1 -1
  93. package/dist/server/compress/index.js +38 -1
  94. package/dist/server/compress/index.js.map +1 -1
  95. package/dist/server/core/index.browser.js +2 -2
  96. package/dist/server/core/index.browser.js.map +1 -1
  97. package/dist/server/core/index.d.ts +10 -10
  98. package/dist/server/core/index.d.ts.map +1 -1
  99. package/dist/server/core/index.js +7 -4
  100. package/dist/server/core/index.js.map +1 -1
  101. package/dist/server/links/index.browser.js +22 -6
  102. package/dist/server/links/index.browser.js.map +1 -1
  103. package/dist/server/links/index.d.ts +46 -44
  104. package/dist/server/links/index.d.ts.map +1 -1
  105. package/dist/server/links/index.js +24 -41
  106. package/dist/server/links/index.js.map +1 -1
  107. package/dist/server/static/index.d.ts.map +1 -1
  108. package/dist/server/static/index.js +4 -0
  109. package/dist/server/static/index.js.map +1 -1
  110. package/dist/server/swagger/index.d.ts +2 -1
  111. package/dist/server/swagger/index.d.ts.map +1 -1
  112. package/dist/server/swagger/index.js +9 -5
  113. package/dist/server/swagger/index.js.map +1 -1
  114. package/dist/vite/index.d.ts +101 -106
  115. package/dist/vite/index.d.ts.map +1 -1
  116. package/dist/vite/index.js +574 -503
  117. package/dist/vite/index.js.map +1 -1
  118. package/dist/websocket/index.d.ts +7 -7
  119. package/package.json +7 -7
  120. package/src/api/audits/controllers/{AuditController.ts → AdminAuditController.ts} +5 -6
  121. package/src/api/audits/entities/audits.ts +5 -5
  122. package/src/api/audits/index.browser.ts +1 -1
  123. package/src/api/audits/index.ts +3 -3
  124. package/src/api/audits/primitives/$audit.spec.ts +276 -0
  125. package/src/api/audits/services/AuditService.spec.ts +495 -0
  126. package/src/api/files/__tests__/$bucket.spec.ts +91 -0
  127. package/src/api/files/controllers/AdminFileStatsController.spec.ts +166 -0
  128. package/src/api/files/controllers/{StorageStatsController.ts → AdminFileStatsController.ts} +2 -2
  129. package/src/api/files/controllers/FileController.spec.ts +558 -0
  130. package/src/api/files/controllers/FileController.ts +4 -5
  131. package/src/api/files/entities/files.ts +5 -5
  132. package/src/api/files/index.browser.ts +1 -1
  133. package/src/api/files/index.ts +4 -4
  134. package/src/api/files/jobs/FileJobs.spec.ts +52 -0
  135. package/src/api/files/services/FileService.spec.ts +109 -0
  136. package/src/api/jobs/__tests__/JobController.spec.ts +343 -0
  137. package/src/api/jobs/controllers/{JobController.ts → AdminJobController.ts} +2 -2
  138. package/src/api/jobs/entities/jobExecutions.ts +5 -5
  139. package/src/api/jobs/index.ts +3 -3
  140. package/src/api/jobs/primitives/$job.spec.ts +476 -0
  141. package/src/api/notifications/controllers/{NotificationController.ts → AdminNotificationController.ts} +4 -5
  142. package/src/api/notifications/entities/notifications.ts +5 -5
  143. package/src/api/notifications/index.browser.ts +1 -1
  144. package/src/api/notifications/index.ts +4 -4
  145. package/src/api/parameters/controllers/{ConfigController.ts → AdminConfigController.ts} +46 -107
  146. package/src/api/parameters/entities/parameters.ts +7 -17
  147. package/src/api/parameters/index.ts +3 -3
  148. package/src/api/parameters/primitives/$config.spec.ts +356 -0
  149. package/src/api/parameters/schemas/activateConfigBodySchema.ts +12 -0
  150. package/src/api/parameters/schemas/checkScheduledResponseSchema.ts +8 -0
  151. package/src/api/parameters/schemas/configCurrentResponseSchema.ts +13 -0
  152. package/src/api/parameters/schemas/configHistoryResponseSchema.ts +9 -0
  153. package/src/api/parameters/schemas/configNameParamSchema.ts +10 -0
  154. package/src/api/parameters/schemas/configNamesResponseSchema.ts +8 -0
  155. package/src/api/parameters/schemas/configTreeNodeSchema.ts +13 -0
  156. package/src/api/parameters/schemas/configVersionParamSchema.ts +9 -0
  157. package/src/api/parameters/schemas/configVersionResponseSchema.ts +9 -0
  158. package/src/api/parameters/schemas/configsByStatusResponseSchema.ts +9 -0
  159. package/src/api/parameters/schemas/createConfigVersionBodySchema.ts +24 -0
  160. package/src/api/parameters/schemas/index.ts +15 -0
  161. package/src/api/parameters/schemas/parameterResponseSchema.ts +26 -0
  162. package/src/api/parameters/schemas/parameterStatusSchema.ts +13 -0
  163. package/src/api/parameters/schemas/rollbackConfigBodySchema.ts +15 -0
  164. package/src/api/parameters/schemas/statusParamSchema.ts +9 -0
  165. package/src/api/users/__tests__/EmailVerification.spec.ts +369 -0
  166. package/src/api/users/__tests__/PasswordReset.spec.ts +550 -0
  167. package/src/api/users/controllers/AdminIdentityController.spec.ts +365 -0
  168. package/src/api/users/controllers/{IdentityController.ts → AdminIdentityController.ts} +3 -4
  169. package/src/api/users/controllers/AdminSessionController.spec.ts +274 -0
  170. package/src/api/users/controllers/{SessionController.ts → AdminSessionController.ts} +3 -4
  171. package/src/api/users/controllers/AdminUserController.spec.ts +372 -0
  172. package/src/api/users/controllers/AdminUserController.ts +116 -0
  173. package/src/api/users/controllers/UserController.ts +4 -107
  174. package/src/api/users/controllers/UserRealmController.ts +3 -0
  175. package/src/api/users/entities/identities.ts +6 -6
  176. package/src/api/users/entities/sessions.ts +6 -6
  177. package/src/api/users/entities/users.ts +9 -9
  178. package/src/api/users/index.ts +9 -6
  179. package/src/api/users/primitives/$userRealm.ts +13 -8
  180. package/src/api/users/services/CredentialService.spec.ts +509 -0
  181. package/src/api/users/services/CredentialService.ts +46 -0
  182. package/src/api/users/services/IdentityService.ts +15 -0
  183. package/src/api/users/services/RegistrationService.spec.ts +630 -0
  184. package/src/api/users/services/RegistrationService.ts +18 -0
  185. package/src/api/users/services/SessionService.spec.ts +301 -0
  186. package/src/api/users/services/SessionService.ts +110 -1
  187. package/src/api/users/services/UserService.ts +67 -2
  188. package/src/api/verifications/__tests__/CodeVerification.spec.ts +318 -0
  189. package/src/api/verifications/__tests__/LinkVerification.spec.ts +279 -0
  190. package/src/api/verifications/entities/verifications.ts +6 -6
  191. package/src/api/verifications/jobs/VerificationJobs.spec.ts +50 -0
  192. package/src/batch/__tests__/startup-buffering.spec.ts +458 -0
  193. package/src/batch/primitives/$batch.spec.ts +766 -0
  194. package/src/batch/providers/BatchProvider.spec.ts +786 -0
  195. package/src/bin/index.ts +0 -1
  196. package/src/bucket/__tests__/shared.ts +194 -0
  197. package/src/bucket/primitives/$bucket.spec.ts +104 -0
  198. package/src/bucket/providers/FileStorageProvider.spec.ts +13 -0
  199. package/src/bucket/providers/LocalFileStorageProvider.spec.ts +77 -0
  200. package/src/bucket/providers/MemoryFileStorageProvider.spec.ts +82 -0
  201. package/src/cache/core/__tests__/shared.ts +377 -0
  202. package/src/cache/core/primitives/$cache.spec.ts +111 -0
  203. package/src/cache/redis/__tests__/cache-redis.spec.ts +70 -0
  204. package/src/cli/apps/AlephaCli.ts +25 -6
  205. package/src/cli/atoms/buildOptions.ts +88 -0
  206. package/src/cli/commands/build.ts +32 -69
  207. package/src/cli/commands/db.ts +0 -4
  208. package/src/cli/commands/dev.ts +34 -10
  209. package/src/cli/commands/gen/changelog.spec.ts +315 -0
  210. package/src/cli/commands/{changelog.ts → gen/changelog.ts} +9 -9
  211. package/src/cli/commands/gen/env.ts +53 -0
  212. package/src/cli/commands/gen/openapi.ts +71 -0
  213. package/src/cli/commands/gen/resource.ts +15 -0
  214. package/src/cli/commands/gen.ts +24 -0
  215. package/src/cli/commands/init.ts +2 -1
  216. package/src/cli/commands/root.ts +12 -3
  217. package/src/cli/commands/test.ts +0 -1
  218. package/src/cli/commands/typecheck.ts +5 -0
  219. package/src/cli/commands/verify.ts +1 -1
  220. package/src/cli/defineConfig.ts +49 -7
  221. package/src/cli/index.ts +2 -2
  222. package/src/cli/services/AlephaCliUtils.ts +105 -55
  223. package/src/cli/services/GitMessageParser.ts +1 -1
  224. package/src/command/helpers/Asker.spec.ts +127 -0
  225. package/src/command/helpers/Runner.spec.ts +126 -0
  226. package/src/command/helpers/Runner.ts +1 -1
  227. package/src/command/primitives/$command.spec.ts +1588 -0
  228. package/src/command/primitives/$command.ts +0 -6
  229. package/src/command/providers/CliProvider.ts +75 -27
  230. package/src/core/Alepha.ts +87 -0
  231. package/src/core/__tests__/Alepha-emit.spec.ts +22 -0
  232. package/src/core/__tests__/Alepha-graph.spec.ts +93 -0
  233. package/src/core/__tests__/Alepha-has.spec.ts +41 -0
  234. package/src/core/__tests__/Alepha-inject.spec.ts +93 -0
  235. package/src/core/__tests__/Alepha-register.spec.ts +81 -0
  236. package/src/core/__tests__/Alepha-start.spec.ts +176 -0
  237. package/src/core/__tests__/Alepha-with.spec.ts +14 -0
  238. package/src/core/__tests__/TypeBox-usecases.spec.ts +35 -0
  239. package/src/core/__tests__/TypeBoxLocale.spec.ts +15 -0
  240. package/src/core/__tests__/descriptor.spec.ts +34 -0
  241. package/src/core/__tests__/fixtures/A.ts +5 -0
  242. package/src/core/__tests__/pagination.spec.ts +77 -0
  243. package/src/core/helpers/jsonSchemaToTypeBox.ts +2 -2
  244. package/src/core/primitives/$atom.spec.ts +43 -0
  245. package/src/core/primitives/$hook.spec.ts +130 -0
  246. package/src/core/primitives/$inject.spec.ts +175 -0
  247. package/src/core/primitives/$module.spec.ts +115 -0
  248. package/src/core/providers/CodecManager.spec.ts +740 -0
  249. package/src/core/providers/EventManager.spec.ts +762 -0
  250. package/src/core/providers/EventManager.ts +4 -0
  251. package/src/core/providers/StateManager.spec.ts +365 -0
  252. package/src/core/providers/TypeProvider.spec.ts +1607 -0
  253. package/src/core/providers/TypeProvider.ts +20 -26
  254. package/src/datetime/primitives/$interval.spec.ts +103 -0
  255. package/src/datetime/providers/DateTimeProvider.spec.ts +86 -0
  256. package/src/email/primitives/$email.spec.ts +175 -0
  257. package/src/email/providers/LocalEmailProvider.spec.ts +341 -0
  258. package/src/fake/__tests__/keyName.example.ts +40 -0
  259. package/src/fake/__tests__/keyName.spec.ts +152 -0
  260. package/src/fake/__tests__/module.example.ts +32 -0
  261. package/src/fake/providers/FakeProvider.spec.ts +438 -0
  262. package/src/file/providers/FileSystemProvider.ts +8 -0
  263. package/src/file/providers/NodeFileSystemProvider.spec.ts +418 -0
  264. package/src/file/providers/NodeFileSystemProvider.ts +5 -0
  265. package/src/file/services/FileDetector.spec.ts +591 -0
  266. package/src/lock/core/__tests__/shared.ts +190 -0
  267. package/src/lock/core/providers/MemoryLockProvider.spec.ts +25 -0
  268. package/src/lock/redis/providers/RedisLockProvider.spec.ts +25 -0
  269. package/src/logger/__tests__/SimpleFormatterProvider.spec.ts +109 -0
  270. package/src/logger/index.ts +15 -3
  271. package/src/logger/primitives/$logger.spec.ts +108 -0
  272. package/src/logger/services/Logger.spec.ts +295 -0
  273. package/src/mcp/__tests__/errors.spec.ts +175 -0
  274. package/src/mcp/__tests__/integration.spec.ts +450 -0
  275. package/src/mcp/helpers/jsonrpc.spec.ts +380 -0
  276. package/src/mcp/primitives/$prompt.spec.ts +468 -0
  277. package/src/mcp/primitives/$resource.spec.ts +390 -0
  278. package/src/mcp/primitives/$tool.spec.ts +406 -0
  279. package/src/mcp/providers/McpServerProvider.spec.ts +797 -0
  280. package/src/mcp/transports/StdioMcpTransport.ts +1 -1
  281. package/src/orm/__tests__/$repository-crud.spec.ts +276 -0
  282. package/src/orm/__tests__/$repository-hooks.spec.ts +325 -0
  283. package/src/orm/__tests__/$repository-orderBy.spec.ts +128 -0
  284. package/src/orm/__tests__/$repository-pagination-sort.spec.ts +149 -0
  285. package/src/orm/__tests__/$repository-save.spec.ts +37 -0
  286. package/src/orm/__tests__/ModelBuilder-integration.spec.ts +490 -0
  287. package/src/orm/__tests__/ModelBuilder-types.spec.ts +186 -0
  288. package/src/orm/__tests__/PostgresProvider.spec.ts +46 -0
  289. package/src/orm/__tests__/delete-returning.spec.ts +256 -0
  290. package/src/orm/__tests__/deletedAt.spec.ts +80 -0
  291. package/src/orm/__tests__/enums.spec.ts +315 -0
  292. package/src/orm/__tests__/execute.spec.ts +72 -0
  293. package/src/orm/__tests__/fixtures/bigEntitySchema.ts +65 -0
  294. package/src/orm/__tests__/fixtures/userEntitySchema.ts +27 -0
  295. package/src/orm/__tests__/joins.spec.ts +1114 -0
  296. package/src/orm/__tests__/page.spec.ts +287 -0
  297. package/src/orm/__tests__/primaryKey.spec.ts +87 -0
  298. package/src/orm/__tests__/query-date-encoding.spec.ts +402 -0
  299. package/src/orm/__tests__/ref-auto-onDelete.spec.ts +156 -0
  300. package/src/orm/__tests__/references.spec.ts +102 -0
  301. package/src/orm/__tests__/security.spec.ts +710 -0
  302. package/src/orm/__tests__/sqlite.spec.ts +111 -0
  303. package/src/orm/__tests__/string-operators.spec.ts +429 -0
  304. package/src/orm/__tests__/timestamps.spec.ts +388 -0
  305. package/src/orm/__tests__/validation.spec.ts +183 -0
  306. package/src/orm/__tests__/version.spec.ts +64 -0
  307. package/src/orm/helpers/parseQueryString.spec.ts +196 -0
  308. package/src/orm/index.ts +2 -8
  309. package/src/orm/primitives/$repository.spec.ts +137 -0
  310. package/src/orm/primitives/$sequence.spec.ts +29 -0
  311. package/src/orm/primitives/$transaction.spec.ts +82 -0
  312. package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -3
  313. package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
  314. package/src/orm/providers/drivers/CloudflareD1Provider.ts +1 -1
  315. package/src/orm/providers/drivers/DatabaseProvider.ts +1 -1
  316. package/src/orm/providers/drivers/NodePostgresProvider.ts +3 -3
  317. package/src/orm/providers/drivers/NodeSqliteProvider.ts +1 -1
  318. package/src/orm/providers/drivers/PglitePostgresProvider.ts +2 -2
  319. package/src/orm/services/ModelBuilder.spec.ts +575 -0
  320. package/src/orm/services/Repository.spec.ts +137 -0
  321. package/src/queue/core/__tests__/shared.ts +143 -0
  322. package/src/queue/core/providers/MemoryQueueProvider.spec.ts +23 -0
  323. package/src/queue/core/providers/WorkerProvider.spec.ts +394 -0
  324. package/src/queue/redis/providers/RedisQueueProvider.spec.ts +23 -0
  325. package/src/redis/__tests__/redis.spec.ts +58 -0
  326. package/src/retry/primitives/$retry.spec.ts +234 -0
  327. package/src/retry/providers/RetryProvider.spec.ts +438 -0
  328. package/src/router/__tests__/match.spec.ts +252 -0
  329. package/src/router/providers/RouterProvider.spec.ts +197 -0
  330. package/src/scheduler/__tests__/$scheduler-cron.spec.ts +25 -0
  331. package/src/scheduler/__tests__/$scheduler-interval.spec.ts +25 -0
  332. package/src/scheduler/__tests__/shared.ts +77 -0
  333. package/src/security/__tests__/bug-1-wildcard-after-start.spec.ts +229 -0
  334. package/src/security/__tests__/bug-2-password-validation.spec.ts +245 -0
  335. package/src/security/__tests__/bug-3-regex-vulnerability.spec.ts +407 -0
  336. package/src/security/__tests__/bug-4-oauth2-validation.spec.ts +439 -0
  337. package/src/security/__tests__/multi-layer-permissions.spec.ts +522 -0
  338. package/src/security/primitives/$permission.spec.ts +30 -0
  339. package/src/security/primitives/$permission.ts +2 -2
  340. package/src/security/primitives/$realm.spec.ts +101 -0
  341. package/src/security/primitives/$role.spec.ts +52 -0
  342. package/src/security/primitives/$serviceAccount.spec.ts +61 -0
  343. package/src/security/providers/SecurityProvider.spec.ts +350 -0
  344. package/src/server/auth/providers/ServerAuthProvider.ts +0 -2
  345. package/src/server/cache/providers/ServerCacheProvider.spec.ts +1125 -0
  346. package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
  347. package/src/server/compress/providers/ServerCompressProvider.spec.ts +31 -0
  348. package/src/server/compress/providers/ServerCompressProvider.ts +63 -2
  349. package/src/server/cookies/providers/ServerCookiesProvider.spec.ts +253 -0
  350. package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +334 -0
  351. package/src/server/core/__tests__/ServerRouterProvider-requestId.spec.ts +129 -0
  352. package/src/server/core/helpers/ServerReply.ts +2 -2
  353. package/src/server/core/primitives/$action.spec.ts +191 -0
  354. package/src/server/core/primitives/$route.spec.ts +65 -0
  355. package/src/server/core/providers/ServerBodyParserProvider.spec.ts +93 -0
  356. package/src/server/core/providers/ServerLoggerProvider.spec.ts +100 -0
  357. package/src/server/core/providers/ServerProvider.ts +14 -2
  358. package/src/server/core/services/HttpClient.spec.ts +123 -0
  359. package/src/server/core/services/UserAgentParser.spec.ts +111 -0
  360. package/src/server/cors/providers/ServerCorsProvider.spec.ts +481 -0
  361. package/src/server/health/providers/ServerHealthProvider.spec.ts +22 -0
  362. package/src/server/helmet/providers/ServerHelmetProvider.spec.ts +105 -0
  363. package/src/server/links/__tests__/$action.spec.ts +238 -0
  364. package/src/server/links/__tests__/fixtures/CrudApp.ts +122 -0
  365. package/src/server/links/__tests__/requestId.spec.ts +120 -0
  366. package/src/server/links/primitives/$remote.spec.ts +228 -0
  367. package/src/server/links/providers/LinkProvider.spec.ts +54 -0
  368. package/src/server/links/providers/LinkProvider.ts +49 -3
  369. package/src/server/links/providers/ServerLinksProvider.ts +1 -53
  370. package/src/server/links/schemas/apiLinksResponseSchema.ts +7 -0
  371. package/src/server/metrics/providers/ServerMetricsProvider.spec.ts +25 -0
  372. package/src/server/multipart/providers/ServerMultipartProvider.spec.ts +528 -0
  373. package/src/server/proxy/primitives/$proxy.spec.ts +87 -0
  374. package/src/server/rate-limit/__tests__/ActionRateLimit.spec.ts +211 -0
  375. package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +344 -0
  376. package/src/server/security/__tests__/BasicAuth.spec.ts +684 -0
  377. package/src/server/security/__tests__/ServerSecurityProvider-realm.spec.ts +388 -0
  378. package/src/server/security/providers/ServerSecurityProvider.spec.ts +123 -0
  379. package/src/server/static/primitives/$serve.spec.ts +193 -0
  380. package/src/server/static/providers/ServerStaticProvider.ts +10 -0
  381. package/src/server/swagger/__tests__/ui.spec.ts +52 -0
  382. package/src/server/swagger/primitives/$swagger.spec.ts +193 -0
  383. package/src/server/swagger/providers/ServerSwaggerProvider.ts +19 -12
  384. package/src/sms/primitives/$sms.spec.ts +165 -0
  385. package/src/sms/providers/LocalSmsProvider.spec.ts +224 -0
  386. package/src/sms/providers/MemorySmsProvider.spec.ts +193 -0
  387. package/src/thread/primitives/$thread.spec.ts +186 -0
  388. package/src/topic/core/__tests__/shared.ts +144 -0
  389. package/src/topic/core/providers/MemoryTopicProvider.spec.ts +23 -0
  390. package/src/topic/redis/providers/RedisTopicProvider.spec.ts +23 -0
  391. package/src/vite/helpers/importViteReact.ts +13 -0
  392. package/src/vite/index.ts +1 -21
  393. package/src/vite/plugins/viteAlephaDev.ts +32 -5
  394. package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
  395. package/src/vite/tasks/buildClient.ts +11 -0
  396. package/src/vite/tasks/buildServer.ts +47 -3
  397. package/src/vite/tasks/devServer.ts +69 -0
  398. package/src/vite/tasks/index.ts +2 -1
  399. package/src/vite/tasks/runAlepha.ts +7 -1
  400. package/src/websocket/__tests__/$websocket-new.spec.ts +195 -0
  401. package/src/websocket/primitives/$channel.spec.ts +30 -0
  402. package/src/cli/assets/viteConfigTs.ts +0 -14
  403. package/src/cli/commands/run.ts +0 -24
  404. package/src/vite/plugins/viteAlepha.ts +0 -37
  405. package/src/vite/plugins/viteAlephaBuild.ts +0 -281
@@ -1,58 +1,391 @@
1
- import * as alepha133 from "alepha";
2
- import { Alepha, KIND, Primitive, Static, StaticEncode, TObject } from "alepha";
3
- import * as alepha_orm66 from "alepha/orm";
4
- import { Page } from "alepha/orm";
1
+ import * as alepha253 from "alepha";
2
+ import { Alepha, AlephaError, KIND, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
5
3
  import * as alepha_server0 from "alepha/server";
4
+ import * as alepha_orm50 from "alepha/orm";
5
+ import { Page } from "alepha/orm";
6
6
  import * as alepha_batch0 from "alepha/batch";
7
7
  import { DateTimeProvider } from "alepha/datetime";
8
8
  import * as alepha_logger0 from "alepha/logger";
9
9
  import * as alepha_queue0 from "alepha/queue";
10
10
  import { EmailProvider } from "alepha/email";
11
11
  import { SmsProvider } from "alepha/sms";
12
+ import "drizzle-orm/d1";
13
+ import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
14
+ import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
15
+ import "alepha/retry";
12
16
  import * as typebox0 from "typebox";
17
+ import "drizzle-orm/sqlite-core";
18
+ import "alepha/lock";
19
+ import "drizzle-orm/postgres-js";
20
+ import "postgres";
13
21
 
22
+ //#region ../../src/orm/schemas/insertSchema.d.ts
23
+ /**
24
+ * Transforms a TObject schema for insert operations.
25
+ * All default properties at the root level are made optional.
26
+ *
27
+ * @example
28
+ * Before: { name: string; age: number(default=0); }
29
+ * After: { name: string; age?: number; }
30
+ */
31
+ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"]]: T["properties"][K] extends {
32
+ [PG_DEFAULT]: any;
33
+ } | {
34
+ "~optional": true;
35
+ } ? TOptional<T["properties"][K]> : T["properties"][K] }>;
36
+ //#endregion
37
+ //#region ../../src/orm/schemas/updateSchema.d.ts
38
+ /**
39
+ * Transforms a TObject schema for update operations.
40
+ * All optional properties at the root level are made nullable (i.e., `T | null`).
41
+ * This allows an API endpoint to explicitly accept `null` to clear an optional field in the database.
42
+ *
43
+ * @example
44
+ * Before: { name?: string; age: number; }
45
+ * After: { name?: string | null; age: number; }
46
+ */
47
+ type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["properties"]]: T["properties"][K] extends TOptional<infer U> ? TOptional<TUnion<[U, TNull]>> : T["properties"][K] }>;
48
+ //#endregion
49
+ //#region ../../src/orm/primitives/$entity.d.ts
50
+ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
51
+ /**
52
+ * The database table name that will be created for this entity.
53
+ * If not provided, name will be inferred from the $repository variable name.
54
+ */
55
+ name: string;
56
+ /**
57
+ * TypeBox schema defining the table structure and column types.
58
+ */
59
+ schema: T;
60
+ /**
61
+ * Database indexes to create for query optimization.
62
+ */
63
+ indexes?: (Keys | {
64
+ /**
65
+ * Single column to index.
66
+ */
67
+ column: Keys;
68
+ /**
69
+ * Whether this should be a unique index (enforces uniqueness constraint).
70
+ */
71
+ unique?: boolean;
72
+ /**
73
+ * Custom name for the index. If not provided, generates name automatically.
74
+ */
75
+ name?: string;
76
+ } | {
77
+ /**
78
+ * Multiple columns for composite index (order matters for query optimization).
79
+ */
80
+ columns: Keys[];
81
+ /**
82
+ * Whether this should be a unique index (enforces uniqueness constraint).
83
+ */
84
+ unique?: boolean;
85
+ /**
86
+ * Custom name for the index. If not provided, generates name automatically.
87
+ */
88
+ name?: string;
89
+ })[];
90
+ /**
91
+ * Foreign key constraints to maintain referential integrity.
92
+ */
93
+ foreignKeys?: Array<{
94
+ /**
95
+ * Optional name for the foreign key constraint.
96
+ */
97
+ name?: string;
98
+ /**
99
+ * Local columns that reference the foreign table.
100
+ */
101
+ columns: Array<keyof Static<T>>;
102
+ /**
103
+ * Referenced columns in the foreign table.
104
+ * Must be EntityColumn references from other entities.
105
+ */
106
+ foreignColumns: Array<() => EntityColumn<any>>;
107
+ }>;
108
+ /**
109
+ * Additional table constraints for data validation.
110
+ *
111
+ * Constraints enforce business rules at the database level, providing
112
+ * an additional layer of data integrity beyond application validation.
113
+ *
114
+ * **Constraint Types**:
115
+ * - **Unique constraints**: Prevent duplicate values across columns
116
+ * - **Check constraints**: Enforce custom validation rules with SQL expressions
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * constraints: [
121
+ * {
122
+ * name: "unique_user_email",
123
+ * columns: ["email"],
124
+ * unique: true
125
+ * },
126
+ * {
127
+ * name: "valid_age_range",
128
+ * columns: ["age"],
129
+ * check: sql`age >= 0 AND age <= 150`
130
+ * },
131
+ * {
132
+ * name: "unique_user_username_per_tenant",
133
+ * columns: ["tenantId", "username"],
134
+ * unique: true
135
+ * }
136
+ * ]
137
+ * ```
138
+ */
139
+ constraints?: Array<{
140
+ /**
141
+ * Columns involved in this constraint.
142
+ */
143
+ columns: Array<keyof Static<T>>;
144
+ /**
145
+ * Optional name for the constraint.
146
+ */
147
+ name?: string;
148
+ /**
149
+ * Whether this is a unique constraint.
150
+ */
151
+ unique?: boolean | {};
152
+ /**
153
+ * SQL expression for check constraint validation.
154
+ */
155
+ check?: SQL;
156
+ }>;
157
+ /**
158
+ * Advanced Drizzle ORM configuration for complex table setups.
159
+ */
160
+ config?: (self: BuildExtraConfigColumns<string, FromSchema<T>, "pg">) => PgTableExtraConfigValue[];
161
+ }
162
+ declare class EntityPrimitive<T extends TObject = TObject> {
163
+ readonly options: EntityPrimitiveOptions<T>;
164
+ constructor(options: EntityPrimitiveOptions<T>);
165
+ alias(alias: string): this;
166
+ get cols(): EntityColumns<T>;
167
+ get name(): string;
168
+ get schema(): T;
169
+ get insertSchema(): TObjectInsert<T>;
170
+ get updateSchema(): TObjectUpdate<T>;
171
+ }
172
+ /**
173
+ * Convert a schema to columns.
174
+ */
175
+ type FromSchema<T extends TObject> = { [key in keyof T["properties"]]: PgColumnBuilderBase };
176
+ type EntityColumn<T extends TObject> = {
177
+ name: string;
178
+ entity: EntityPrimitive<T>;
179
+ };
180
+ type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T> };
181
+ //#endregion
182
+ //#region ../../src/orm/constants/PG_SYMBOLS.d.ts
183
+ declare const PG_DEFAULT: unique symbol;
184
+ declare const PG_PRIMARY_KEY: unique symbol;
185
+ declare const PG_CREATED_AT: unique symbol;
186
+ declare const PG_UPDATED_AT: unique symbol;
187
+ declare const PG_DELETED_AT: unique symbol;
188
+ declare const PG_VERSION: unique symbol;
189
+ declare const PG_IDENTITY: unique symbol;
190
+ declare const PG_ENUM: unique symbol;
191
+ declare const PG_REF: unique symbol;
192
+ /**
193
+ * @deprecated Use `PG_IDENTITY` instead.
194
+ */
195
+ declare const PG_SERIAL: unique symbol;
196
+ type PgSymbols = {
197
+ [PG_DEFAULT]: {};
198
+ [PG_PRIMARY_KEY]: {};
199
+ [PG_CREATED_AT]: {};
200
+ [PG_UPDATED_AT]: {};
201
+ [PG_DELETED_AT]: {};
202
+ [PG_VERSION]: {};
203
+ [PG_IDENTITY]: PgIdentityOptions;
204
+ [PG_REF]: PgRefOptions;
205
+ [PG_ENUM]: PgEnumOptions;
206
+ /**
207
+ * @deprecated Use `PG_IDENTITY` instead.
208
+ */
209
+ [PG_SERIAL]: {};
210
+ };
211
+ type PgSymbolKeys = keyof PgSymbols;
212
+ type PgIdentityOptions = {
213
+ mode: "always" | "byDefault";
214
+ } & PgSequenceOptions & {
215
+ name?: string;
216
+ };
217
+ interface PgEnumOptions {
218
+ name?: string;
219
+ description?: string;
220
+ }
221
+ interface PgRefOptions {
222
+ ref: () => {
223
+ name: string;
224
+ entity: EntityPrimitive;
225
+ };
226
+ actions?: {
227
+ onUpdate?: UpdateDeleteAction;
228
+ onDelete?: UpdateDeleteAction;
229
+ };
230
+ }
231
+ //#endregion
232
+ //#region ../../src/orm/helpers/pgAttr.d.ts
233
+ /**
234
+ * Type representation.
235
+ */
236
+ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
237
+ //#endregion
238
+ //#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
239
+ declare module "alepha" {
240
+ interface Env extends Partial<Static<typeof envSchema>> {}
241
+ }
242
+ declare const envSchema: alepha253.TObject<{
243
+ /**
244
+ * Main configuration for database connection.
245
+ * Accept a string in the format of a Postgres connection URL.
246
+ * Example: postgres://user:password@localhost:5432/database
247
+ * or
248
+ * Example: postgres://user:password@localhost:5432/database?sslmode=require
249
+ */
250
+ DATABASE_URL: alepha253.TOptional<alepha253.TString>;
251
+ /**
252
+ * In addition to the DATABASE_URL, you can specify the postgres schema name.
253
+ *
254
+ * It will monkey patch drizzle tables.
255
+ */
256
+ POSTGRES_SCHEMA: alepha253.TOptional<alepha253.TString>;
257
+ }>;
258
+ //#endregion
259
+ //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
260
+ /**
261
+ * Configuration options for the Node.js SQLite database provider.
262
+ */
263
+ declare const nodeSqliteOptions: alepha253.Atom<alepha253.TObject<{
264
+ path: alepha253.TOptional<alepha253.TString>;
265
+ }>, "alepha.postgres.node-sqlite.options">;
266
+ type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
267
+ declare module "alepha" {
268
+ interface State {
269
+ [nodeSqliteOptions.key]: NodeSqliteProviderOptions;
270
+ }
271
+ }
272
+ /**
273
+ * Add a fake support for SQLite in Node.js based on Postgres interfaces.
274
+ *
275
+ * This is NOT a real SQLite provider, it's a workaround to use SQLite with Drizzle ORM.
276
+ * This is NOT recommended for production use.
277
+ */
278
+ //#endregion
279
+ //#region ../../src/orm/index.d.ts
280
+ declare module "alepha" {
281
+ interface Hooks {
282
+ /**
283
+ * Fires before creating an entity in the repository.
284
+ */
285
+ "repository:create:before": {
286
+ tableName: string;
287
+ data: any;
288
+ };
289
+ /**
290
+ * Fires after creating an entity in the repository.
291
+ */
292
+ "repository:create:after": {
293
+ tableName: string;
294
+ data: any;
295
+ entity: any;
296
+ };
297
+ /**
298
+ * Fires before updating entities in the repository.
299
+ */
300
+ "repository:update:before": {
301
+ tableName: string;
302
+ where: any;
303
+ data: any;
304
+ };
305
+ /**
306
+ * Fires after updating entities in the repository.
307
+ */
308
+ "repository:update:after": {
309
+ tableName: string;
310
+ where: any;
311
+ data: any;
312
+ entities: any[];
313
+ };
314
+ /**
315
+ * Fires before deleting entities from the repository.
316
+ */
317
+ "repository:delete:before": {
318
+ tableName: string;
319
+ where: any;
320
+ };
321
+ /**
322
+ * Fires after deleting entities from the repository.
323
+ */
324
+ "repository:delete:after": {
325
+ tableName: string;
326
+ where: any;
327
+ ids: Array<string | number>;
328
+ };
329
+ /**
330
+ * Fires before reading entities from the repository.
331
+ */
332
+ "repository:read:before": {
333
+ tableName: string;
334
+ query: any;
335
+ };
336
+ /**
337
+ * Fires after reading entities from the repository.
338
+ */
339
+ "repository:read:after": {
340
+ tableName: string;
341
+ query: any;
342
+ entities: any[];
343
+ };
344
+ }
345
+ }
346
+ //#endregion
14
347
  //#region ../../src/api/notifications/entities/notifications.d.ts
15
- declare const notifications: alepha_orm66.EntityPrimitive<alepha133.TObject<{
16
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
17
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
18
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
19
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
20
- type: alepha133.TUnsafe<"email" | "sms">;
21
- template: alepha133.TString;
22
- category: alepha133.TOptional<alepha133.TString>;
23
- critical: alepha133.TOptional<alepha133.TBoolean>;
24
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
25
- contact: alepha133.TString;
26
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
27
- scheduledAt: alepha133.TOptional<alepha133.TString>;
28
- sentAt: alepha133.TOptional<alepha133.TString>;
29
- error: alepha133.TOptional<alepha133.TObject<{
30
- at: alepha133.TString;
31
- name: alepha133.TString;
32
- message: alepha133.TString;
348
+ declare const notifications: alepha_orm50.EntityPrimitive<alepha253.TObject<{
349
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
350
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
351
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
352
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
353
+ type: alepha253.TUnsafe<"email" | "sms">;
354
+ template: alepha253.TString;
355
+ category: alepha253.TOptional<alepha253.TString>;
356
+ critical: alepha253.TOptional<alepha253.TBoolean>;
357
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
358
+ contact: alepha253.TString;
359
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
360
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
361
+ sentAt: alepha253.TOptional<alepha253.TString>;
362
+ error: alepha253.TOptional<alepha253.TObject<{
363
+ at: alepha253.TString;
364
+ name: alepha253.TString;
365
+ message: alepha253.TString;
33
366
  }>>;
34
367
  }>>;
35
368
  type NotificationEntity = Static<typeof notifications.schema>;
36
369
  //#endregion
37
370
  //#region ../../src/api/notifications/schemas/notificationCreateSchema.d.ts
38
- declare const notificationCreateSchema: alepha133.TObject<{
39
- type: alepha133.TUnsafe<"email" | "sms">;
40
- template: alepha133.TString;
41
- contact: alepha133.TString;
42
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
371
+ declare const notificationCreateSchema: alepha253.TObject<{
372
+ type: alepha253.TUnsafe<"email" | "sms">;
373
+ template: alepha253.TString;
374
+ contact: alepha253.TString;
375
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
43
376
  }>;
44
377
  type NotificationCreate = Static<typeof notificationCreateSchema>;
45
378
  //#endregion
46
379
  //#region ../../src/api/notifications/schemas/notificationQuerySchema.d.ts
47
- declare const notificationQuerySchema: alepha133.TObject<{
48
- page: alepha133.TOptional<alepha133.TInteger>;
49
- size: alepha133.TOptional<alepha133.TInteger>;
50
- sort: alepha133.TOptional<alepha133.TString>;
51
- type: alepha133.TOptional<alepha133.TUnsafe<"email" | "sms">>;
52
- template: alepha133.TOptional<alepha133.TString>;
53
- contact: alepha133.TOptional<alepha133.TString>;
54
- category: alepha133.TOptional<alepha133.TString>;
55
- status: alepha133.TOptional<alepha133.TUnsafe<"pending" | "sent" | "failed">>;
380
+ declare const notificationQuerySchema: alepha253.TObject<{
381
+ page: alepha253.TOptional<alepha253.TInteger>;
382
+ size: alepha253.TOptional<alepha253.TInteger>;
383
+ sort: alepha253.TOptional<alepha253.TString>;
384
+ type: alepha253.TOptional<alepha253.TUnsafe<"email" | "sms">>;
385
+ template: alepha253.TOptional<alepha253.TString>;
386
+ contact: alepha253.TOptional<alepha253.TString>;
387
+ category: alepha253.TOptional<alepha253.TString>;
388
+ status: alepha253.TOptional<alepha253.TUnsafe<"pending" | "sent" | "failed">>;
56
389
  }>;
57
390
  type NotificationQuery = Static<typeof notificationQuerySchema>;
58
391
  //#endregion
@@ -124,24 +457,24 @@ interface NotificationMessage<T extends TObject> {
124
457
  declare class NotificationSenderService {
125
458
  protected readonly alepha: Alepha;
126
459
  protected readonly log: alepha_logger0.Logger;
127
- protected readonly notificationRepository: alepha_orm66.Repository<alepha133.TObject<{
128
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
129
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
130
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
131
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
132
- type: alepha133.TUnsafe<"email" | "sms">;
133
- template: alepha133.TString;
134
- category: alepha133.TOptional<alepha133.TString>;
135
- critical: alepha133.TOptional<alepha133.TBoolean>;
136
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
137
- contact: alepha133.TString;
138
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
139
- scheduledAt: alepha133.TOptional<alepha133.TString>;
140
- sentAt: alepha133.TOptional<alepha133.TString>;
141
- error: alepha133.TOptional<alepha133.TObject<{
142
- at: alepha133.TString;
143
- name: alepha133.TString;
144
- message: alepha133.TString;
460
+ protected readonly notificationRepository: alepha_orm50.Repository<alepha253.TObject<{
461
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
462
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
463
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
464
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
465
+ type: alepha253.TUnsafe<"email" | "sms">;
466
+ template: alepha253.TString;
467
+ category: alepha253.TOptional<alepha253.TString>;
468
+ critical: alepha253.TOptional<alepha253.TBoolean>;
469
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
470
+ contact: alepha253.TString;
471
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
472
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
473
+ sentAt: alepha253.TOptional<alepha253.TString>;
474
+ error: alepha253.TOptional<alepha253.TObject<{
475
+ at: alepha253.TString;
476
+ name: alepha253.TString;
477
+ message: alepha253.TString;
145
478
  }>>;
146
479
  }>>;
147
480
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -158,34 +491,34 @@ declare class NotificationSenderService {
158
491
  body: string;
159
492
  };
160
493
  protected load(notification: NotificationEntity): {
161
- template: NotificationPrimitive<alepha133.TObject<alepha133.TProperties>>;
494
+ template: NotificationPrimitive<alepha253.TObject<alepha253.TProperties>>;
162
495
  variables: typebox0.StaticRecord<[], "Decode", {}, {
163
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
164
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
165
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
166
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
167
- type: alepha133.TUnsafe<"email" | "sms">;
168
- template: alepha133.TString;
169
- category: alepha133.TOptional<alepha133.TString>;
170
- critical: alepha133.TOptional<alepha133.TBoolean>;
171
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
172
- contact: alepha133.TString;
173
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
174
- scheduledAt: alepha133.TOptional<alepha133.TString>;
175
- sentAt: alepha133.TOptional<alepha133.TString>;
176
- error: alepha133.TOptional<alepha133.TObject<{
177
- at: alepha133.TString;
178
- name: alepha133.TString;
179
- message: alepha133.TString;
496
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
497
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
498
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
499
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
500
+ type: alepha253.TUnsafe<"email" | "sms">;
501
+ template: alepha253.TString;
502
+ category: alepha253.TOptional<alepha253.TString>;
503
+ critical: alepha253.TOptional<alepha253.TBoolean>;
504
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
505
+ contact: alepha253.TString;
506
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
507
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
508
+ sentAt: alepha253.TOptional<alepha253.TString>;
509
+ error: alepha253.TOptional<alepha253.TObject<{
510
+ at: alepha253.TString;
511
+ name: alepha253.TString;
512
+ message: alepha253.TString;
180
513
  }>>;
181
- }, "^.*$", alepha133.TAny>;
514
+ }, "^.*$", alepha253.TAny>;
182
515
  contact: string;
183
516
  };
184
517
  }
185
518
  //#endregion
186
519
  //#region ../../src/api/notifications/services/NotificationService.d.ts
187
- declare const notificationServiceEnvSchema: alepha133.TObject<{
188
- NOTIFICATION_QUEUE: alepha133.TOptional<alepha133.TBoolean>;
520
+ declare const notificationServiceEnvSchema: alepha253.TObject<{
521
+ NOTIFICATION_QUEUE: alepha253.TOptional<alepha253.TBoolean>;
189
522
  }>;
190
523
  declare module "alepha" {
191
524
  interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
@@ -196,71 +529,71 @@ declare class NotificationService {
196
529
  protected readonly env: {
197
530
  NOTIFICATION_QUEUE?: boolean | undefined;
198
531
  };
199
- protected readonly notificationRepository: alepha_orm66.Repository<alepha133.TObject<{
200
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
201
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
202
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
203
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
204
- type: alepha133.TUnsafe<"email" | "sms">;
205
- template: alepha133.TString;
206
- category: alepha133.TOptional<alepha133.TString>;
207
- critical: alepha133.TOptional<alepha133.TBoolean>;
208
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
209
- contact: alepha133.TString;
210
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
211
- scheduledAt: alepha133.TOptional<alepha133.TString>;
212
- sentAt: alepha133.TOptional<alepha133.TString>;
213
- error: alepha133.TOptional<alepha133.TObject<{
214
- at: alepha133.TString;
215
- name: alepha133.TString;
216
- message: alepha133.TString;
532
+ protected readonly notificationRepository: alepha_orm50.Repository<alepha253.TObject<{
533
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
534
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
535
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
536
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
537
+ type: alepha253.TUnsafe<"email" | "sms">;
538
+ template: alepha253.TString;
539
+ category: alepha253.TOptional<alepha253.TString>;
540
+ critical: alepha253.TOptional<alepha253.TBoolean>;
541
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
542
+ contact: alepha253.TString;
543
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
544
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
545
+ sentAt: alepha253.TOptional<alepha253.TString>;
546
+ error: alepha253.TOptional<alepha253.TObject<{
547
+ at: alepha253.TString;
548
+ name: alepha253.TString;
549
+ message: alepha253.TString;
217
550
  }>>;
218
551
  }>>;
219
552
  protected readonly dateTimeProvider: DateTimeProvider;
220
553
  protected readonly notificationSenderService: NotificationSenderService;
221
- readonly notificationBatch: alepha_batch0.BatchPrimitive<alepha133.TObject<{
222
- type: alepha133.TUnsafe<"email" | "sms">;
223
- template: alepha133.TString;
224
- contact: alepha133.TString;
225
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
554
+ readonly notificationBatch: alepha_batch0.BatchPrimitive<alepha253.TObject<{
555
+ type: alepha253.TUnsafe<"email" | "sms">;
556
+ template: alepha253.TString;
557
+ contact: alepha253.TString;
558
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
226
559
  }>, Promise<void>>;
227
- findNotificationById(id: string): Promise<alepha_orm66.PgStatic<alepha133.TObject<{
228
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
229
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
230
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
231
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
232
- type: alepha133.TUnsafe<"email" | "sms">;
233
- template: alepha133.TString;
234
- category: alepha133.TOptional<alepha133.TString>;
235
- critical: alepha133.TOptional<alepha133.TBoolean>;
236
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
237
- contact: alepha133.TString;
238
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
239
- scheduledAt: alepha133.TOptional<alepha133.TString>;
240
- sentAt: alepha133.TOptional<alepha133.TString>;
241
- error: alepha133.TOptional<alepha133.TObject<{
242
- at: alepha133.TString;
243
- name: alepha133.TString;
244
- message: alepha133.TString;
560
+ findNotificationById(id: string): Promise<alepha_orm50.PgStatic<alepha253.TObject<{
561
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
562
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
563
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
564
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
565
+ type: alepha253.TUnsafe<"email" | "sms">;
566
+ template: alepha253.TString;
567
+ category: alepha253.TOptional<alepha253.TString>;
568
+ critical: alepha253.TOptional<alepha253.TBoolean>;
569
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
570
+ contact: alepha253.TString;
571
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
572
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
573
+ sentAt: alepha253.TOptional<alepha253.TString>;
574
+ error: alepha253.TOptional<alepha253.TObject<{
575
+ at: alepha253.TString;
576
+ name: alepha253.TString;
577
+ message: alepha253.TString;
245
578
  }>>;
246
- }>, alepha_orm66.PgRelationMap<alepha133.TObject<{
247
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
248
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
249
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
250
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
251
- type: alepha133.TUnsafe<"email" | "sms">;
252
- template: alepha133.TString;
253
- category: alepha133.TOptional<alepha133.TString>;
254
- critical: alepha133.TOptional<alepha133.TBoolean>;
255
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
256
- contact: alepha133.TString;
257
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
258
- scheduledAt: alepha133.TOptional<alepha133.TString>;
259
- sentAt: alepha133.TOptional<alepha133.TString>;
260
- error: alepha133.TOptional<alepha133.TObject<{
261
- at: alepha133.TString;
262
- name: alepha133.TString;
263
- message: alepha133.TString;
579
+ }>, alepha_orm50.PgRelationMap<alepha253.TObject<{
580
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
581
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
582
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
583
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha253.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
584
+ type: alepha253.TUnsafe<"email" | "sms">;
585
+ template: alepha253.TString;
586
+ category: alepha253.TOptional<alepha253.TString>;
587
+ critical: alepha253.TOptional<alepha253.TBoolean>;
588
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
589
+ contact: alepha253.TString;
590
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
591
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
592
+ sentAt: alepha253.TOptional<alepha253.TString>;
593
+ error: alepha253.TOptional<alepha253.TObject<{
594
+ at: alepha253.TString;
595
+ name: alepha253.TString;
596
+ message: alepha253.TString;
264
597
  }>>;
265
598
  }>>>>;
266
599
  findNotifications(q?: NotificationQuery): Promise<Page<NotificationEntity>>;
@@ -270,43 +603,43 @@ declare class NotificationService {
270
603
  createNotification(entry: NotificationCreate): Promise<void>;
271
604
  }
272
605
  //#endregion
273
- //#region ../../src/api/notifications/controllers/NotificationController.d.ts
274
- declare class NotificationController {
606
+ //#region ../../src/api/notifications/controllers/AdminNotificationController.d.ts
607
+ declare class AdminNotificationController {
275
608
  protected readonly url = "/notifications";
276
- protected readonly group = "notifications";
609
+ protected readonly group = "admin:notifications";
277
610
  protected readonly notificationService: NotificationService;
278
611
  /**
279
612
  * Find notifications with pagination and filtering.
280
613
  */
281
614
  readonly findNotifications: alepha_server0.ActionPrimitiveFn<{
282
- query: alepha133.TObject<{
283
- page: alepha133.TOptional<alepha133.TInteger>;
284
- size: alepha133.TOptional<alepha133.TInteger>;
285
- sort: alepha133.TOptional<alepha133.TString>;
286
- type: alepha133.TOptional<alepha133.TUnsafe<"email" | "sms">>;
287
- template: alepha133.TOptional<alepha133.TString>;
288
- contact: alepha133.TOptional<alepha133.TString>;
289
- category: alepha133.TOptional<alepha133.TString>;
290
- status: alepha133.TOptional<alepha133.TUnsafe<"pending" | "sent" | "failed">>;
615
+ query: alepha253.TObject<{
616
+ page: alepha253.TOptional<alepha253.TInteger>;
617
+ size: alepha253.TOptional<alepha253.TInteger>;
618
+ sort: alepha253.TOptional<alepha253.TString>;
619
+ type: alepha253.TOptional<alepha253.TUnsafe<"email" | "sms">>;
620
+ template: alepha253.TOptional<alepha253.TString>;
621
+ contact: alepha253.TOptional<alepha253.TString>;
622
+ category: alepha253.TOptional<alepha253.TString>;
623
+ status: alepha253.TOptional<alepha253.TUnsafe<"pending" | "sent" | "failed">>;
291
624
  }>;
292
- response: alepha133.TPage<alepha133.TObject<{
293
- id: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_PRIMARY_KEY>, typeof alepha_orm66.PG_DEFAULT>;
294
- version: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TInteger, typeof alepha_orm66.PG_VERSION>, typeof alepha_orm66.PG_DEFAULT>;
295
- createdAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_CREATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
296
- updatedAt: alepha_orm66.PgAttr<alepha_orm66.PgAttr<alepha133.TString, typeof alepha_orm66.PG_UPDATED_AT>, typeof alepha_orm66.PG_DEFAULT>;
297
- type: alepha133.TUnsafe<"email" | "sms">;
298
- template: alepha133.TString;
299
- category: alepha133.TOptional<alepha133.TString>;
300
- critical: alepha133.TOptional<alepha133.TBoolean>;
301
- sensitive: alepha133.TOptional<alepha133.TBoolean>;
302
- contact: alepha133.TString;
303
- variables: alepha133.TOptional<alepha133.TRecord<"^.*$", alepha133.TAny>>;
304
- scheduledAt: alepha133.TOptional<alepha133.TString>;
305
- sentAt: alepha133.TOptional<alepha133.TString>;
306
- error: alepha133.TOptional<alepha133.TObject<{
307
- at: alepha133.TString;
308
- name: alepha133.TString;
309
- message: alepha133.TString;
625
+ response: alepha253.TPage<alepha253.TObject<{
626
+ id: PgAttr<PgAttr<alepha253.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
627
+ version: PgAttr<PgAttr<alepha253.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
628
+ createdAt: PgAttr<PgAttr<alepha253.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
629
+ updatedAt: PgAttr<PgAttr<alepha253.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
630
+ type: alepha253.TUnsafe<"email" | "sms">;
631
+ template: alepha253.TString;
632
+ category: alepha253.TOptional<alepha253.TString>;
633
+ critical: alepha253.TOptional<alepha253.TBoolean>;
634
+ sensitive: alepha253.TOptional<alepha253.TBoolean>;
635
+ contact: alepha253.TString;
636
+ variables: alepha253.TOptional<alepha253.TRecord<"^.*$", alepha253.TAny>>;
637
+ scheduledAt: alepha253.TOptional<alepha253.TString>;
638
+ sentAt: alepha253.TOptional<alepha253.TString>;
639
+ error: alepha253.TOptional<alepha253.TObject<{
640
+ at: alepha253.TString;
641
+ name: alepha253.TString;
642
+ message: alepha253.TString;
310
643
  }>>;
311
644
  }>>;
312
645
  }>;
@@ -318,15 +651,15 @@ declare class NotificationJobs {}
318
651
  //#region ../../src/api/notifications/queues/NotificationQueues.d.ts
319
652
  declare class NotificationQueues {
320
653
  protected readonly notificationSenderService: NotificationSenderService;
321
- readonly processNotification: alepha_queue0.QueuePrimitive<alepha133.TObject<{
322
- notificationId: alepha133.TString;
654
+ readonly processNotification: alepha_queue0.QueuePrimitive<alepha253.TObject<{
655
+ notificationId: alepha253.TString;
323
656
  }>>;
324
657
  }
325
658
  //#endregion
326
659
  //#region ../../src/api/notifications/schemas/notificationContactPreferencesSchema.d.ts
327
- declare const notificationContactPreferencesSchema: alepha133.TObject<{
328
- language: alepha133.TOptional<alepha133.TString>;
329
- exclude: alepha133.TArray<alepha133.TString>;
660
+ declare const notificationContactPreferencesSchema: alepha253.TObject<{
661
+ language: alepha253.TOptional<alepha253.TString>;
662
+ exclude: alepha253.TArray<alepha253.TString>;
330
663
  }>;
331
664
  type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
332
665
  //#endregion
@@ -341,7 +674,7 @@ type NotificationContactPreferences = Static<typeof notificationContactPreferenc
341
674
  *
342
675
  * @module alepha.api.notifications
343
676
  */
344
- declare const AlephaApiNotifications: alepha133.Service<alepha133.Module>;
677
+ declare const AlephaApiNotifications: alepha253.Service<alepha253.Module>;
345
678
  //#endregion
346
- export { $notification, AlephaApiNotifications, NotificationContactPreferences, NotificationController, NotificationCreate, NotificationEntity, NotificationJobs, NotificationMessage, NotificationPrimitive, NotificationPrimitiveOptions, NotificationPushOptions, NotificationQuery, NotificationQueues, NotificationSenderService, NotificationService, notificationContactPreferencesSchema, notificationCreateSchema, notificationQuerySchema, notificationServiceEnvSchema, notifications };
679
+ export { $notification, AdminNotificationController, AlephaApiNotifications, NotificationContactPreferences, NotificationCreate, NotificationEntity, NotificationJobs, NotificationMessage, NotificationPrimitive, NotificationPrimitiveOptions, NotificationPushOptions, NotificationQuery, NotificationQueues, NotificationSenderService, NotificationService, notificationContactPreferencesSchema, notificationCreateSchema, notificationQuerySchema, notificationServiceEnvSchema, notifications };
347
680
  //# sourceMappingURL=index.d.ts.map