alepha 0.13.6 → 0.13.8

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 (487) hide show
  1. package/README.md +5 -2
  2. package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
  3. package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
  4. package/assets/swagger-ui/swagger-ui.css +1 -1
  5. package/dist/api/audits/index.browser.js +116 -0
  6. package/dist/api/audits/index.browser.js.map +1 -0
  7. package/dist/api/audits/index.d.ts +1194 -0
  8. package/dist/api/audits/index.js +674 -0
  9. package/dist/api/audits/index.js.map +1 -0
  10. package/dist/{api-files → api/files}/index.browser.js +5 -5
  11. package/dist/api/files/index.browser.js.map +1 -0
  12. package/dist/{api-files → api/files}/index.d.ts +16 -9
  13. package/dist/{api-files → api/files}/index.js +10 -10
  14. package/dist/api/files/index.js.map +1 -0
  15. package/dist/{api-jobs → api/jobs}/index.browser.js +5 -5
  16. package/dist/api/jobs/index.browser.js.map +1 -0
  17. package/dist/{api-jobs → api/jobs}/index.d.ts +35 -35
  18. package/dist/{api-jobs → api/jobs}/index.js +9 -9
  19. package/dist/api/jobs/index.js.map +1 -0
  20. package/dist/{api-notifications → api/notifications}/index.browser.js +11 -11
  21. package/dist/api/notifications/index.browser.js.map +1 -0
  22. package/dist/api/notifications/index.d.ts +327 -0
  23. package/dist/{api-notifications → api/notifications}/index.js +11 -11
  24. package/dist/api/notifications/index.js.map +1 -0
  25. package/dist/api/parameters/index.browser.js +60 -0
  26. package/dist/api/parameters/index.browser.js.map +1 -0
  27. package/dist/api/parameters/index.d.ts +761 -0
  28. package/dist/api/parameters/index.js +877 -0
  29. package/dist/api/parameters/index.js.map +1 -0
  30. package/dist/{api-users → api/users}/index.browser.js +6 -6
  31. package/dist/api/users/index.browser.js.map +1 -0
  32. package/dist/{api-users → api/users}/index.d.ts +259 -247
  33. package/dist/{api-users → api/users}/index.js +125 -112
  34. package/dist/api/users/index.js.map +1 -0
  35. package/dist/{api-verifications → api/verifications}/index.browser.js +5 -5
  36. package/dist/api/verifications/index.browser.js.map +1 -0
  37. package/dist/api/verifications/index.d.ts +248 -0
  38. package/dist/{api-verifications → api/verifications}/index.js +13 -12
  39. package/dist/api/verifications/index.js.map +1 -0
  40. package/dist/bin/index.js +1 -0
  41. package/dist/bin/index.js.map +1 -1
  42. package/dist/cache/{index.d.ts → core/index.d.ts} +4 -4
  43. package/dist/cache/{index.js → core/index.js} +5 -5
  44. package/dist/cache/core/index.js.map +1 -0
  45. package/dist/{cache-redis → cache/redis}/index.d.ts +2 -2
  46. package/dist/{cache-redis → cache/redis}/index.js +2 -2
  47. package/dist/cache/redis/index.js.map +1 -0
  48. package/dist/cli/index.d.ts +71 -9
  49. package/dist/cli/index.js +280 -79
  50. package/dist/cli/index.js.map +1 -1
  51. package/dist/command/index.d.ts +63 -2
  52. package/dist/command/index.js +30 -3
  53. package/dist/command/index.js.map +1 -1
  54. package/dist/core/index.browser.js +241 -61
  55. package/dist/core/index.browser.js.map +1 -1
  56. package/dist/core/index.d.ts +170 -90
  57. package/dist/core/index.js +264 -67
  58. package/dist/core/index.js.map +1 -1
  59. package/dist/core/index.native.js +248 -65
  60. package/dist/core/index.native.js.map +1 -1
  61. package/dist/email/index.js +15 -10554
  62. package/dist/email/index.js.map +1 -1
  63. package/dist/lock/{index.d.ts → core/index.d.ts} +5 -5
  64. package/dist/lock/{index.js → core/index.js} +5 -5
  65. package/dist/lock/core/index.js.map +1 -0
  66. package/dist/{lock-redis → lock/redis}/index.d.ts +2 -2
  67. package/dist/{lock-redis → lock/redis}/index.js +2 -2
  68. package/dist/lock/redis/index.js.map +1 -0
  69. package/dist/logger/index.d.ts +4 -4
  70. package/dist/logger/index.js +77 -72
  71. package/dist/logger/index.js.map +1 -1
  72. package/dist/orm/index.d.ts +5 -1
  73. package/dist/orm/index.js +24 -7
  74. package/dist/orm/index.js.map +1 -1
  75. package/dist/queue/core/index.d.ts +548 -0
  76. package/dist/queue/core/index.js +391 -0
  77. package/dist/queue/core/index.js.map +1 -0
  78. package/dist/queue/redis/index.d.ts +28 -0
  79. package/dist/queue/redis/index.js +43 -0
  80. package/dist/queue/redis/index.js.map +1 -0
  81. package/dist/scheduler/index.d.ts +7 -7
  82. package/dist/scheduler/index.js +1 -393
  83. package/dist/scheduler/index.js.map +1 -1
  84. package/dist/security/index.d.ts +1 -1
  85. package/dist/security/index.js +2 -1413
  86. package/dist/security/index.js.map +1 -1
  87. package/dist/{server-auth → server/auth}/index.browser.js +6 -6
  88. package/dist/server/auth/index.browser.js.map +1 -0
  89. package/dist/{server-auth → server/auth}/index.d.ts +175 -164
  90. package/dist/server/auth/index.js +742 -0
  91. package/dist/server/auth/index.js.map +1 -0
  92. package/dist/{server-cache → server/cache}/index.d.ts +2 -2
  93. package/dist/{server-cache → server/cache}/index.js +2 -2
  94. package/dist/server/cache/index.js.map +1 -0
  95. package/dist/{server-compress → server/compress}/index.d.ts +2 -2
  96. package/dist/{server-compress → server/compress}/index.js +2 -2
  97. package/dist/server/compress/index.js.map +1 -0
  98. package/dist/{server-cookies → server/cookies}/index.browser.js +3 -3
  99. package/dist/server/cookies/index.browser.js.map +1 -0
  100. package/dist/{server-cookies → server/cookies}/index.d.ts +4 -4
  101. package/dist/{server-cookies → server/cookies}/index.js +9 -5
  102. package/dist/server/cookies/index.js.map +1 -0
  103. package/dist/server/{index.browser.js → core/index.browser.js} +14 -14
  104. package/dist/server/core/index.browser.js.map +1 -0
  105. package/dist/server/{index.d.ts → core/index.d.ts} +46 -37
  106. package/dist/server/{index.js → core/index.js} +47 -33
  107. package/dist/server/core/index.js.map +1 -0
  108. package/dist/{server-cors → server/cors}/index.d.ts +3 -3
  109. package/dist/{server-cors → server/cors}/index.js +3 -3
  110. package/dist/server/cors/index.js.map +1 -0
  111. package/dist/{server-health → server/health}/index.d.ts +3 -3
  112. package/dist/{server-health → server/health}/index.js +3 -3
  113. package/dist/server/health/index.js.map +1 -0
  114. package/dist/{server-helmet → server/helmet}/index.d.ts +2 -2
  115. package/dist/{server-helmet → server/helmet}/index.js +2 -2
  116. package/dist/server/helmet/index.js.map +1 -0
  117. package/dist/{server-links → server/links}/index.browser.js +5 -5
  118. package/dist/server/links/index.browser.js.map +1 -0
  119. package/dist/{server-links → server/links}/index.d.ts +40 -40
  120. package/dist/{server-links → server/links}/index.js +7 -7
  121. package/dist/server/links/index.js.map +1 -0
  122. package/dist/{server-metrics → server/metrics}/index.d.ts +2 -2
  123. package/dist/server/metrics/index.js +74 -0
  124. package/dist/server/metrics/index.js.map +1 -0
  125. package/dist/{server-multipart → server/multipart}/index.d.ts +2 -2
  126. package/dist/{server-multipart → server/multipart}/index.js +2 -2
  127. package/dist/server/multipart/index.js.map +1 -0
  128. package/dist/{server-proxy → server/proxy}/index.d.ts +3 -3
  129. package/dist/{server-proxy → server/proxy}/index.js +3 -3
  130. package/dist/server/proxy/index.js.map +1 -0
  131. package/dist/{server-rate-limit → server/rate-limit}/index.d.ts +4 -4
  132. package/dist/{server-rate-limit → server/rate-limit}/index.js +4 -4
  133. package/dist/server/rate-limit/index.js.map +1 -0
  134. package/dist/{server-security → server/security}/index.browser.js +1 -1
  135. package/dist/server/security/index.browser.js.map +1 -0
  136. package/dist/{server-security → server/security}/index.d.ts +4 -4
  137. package/dist/{server-security → server/security}/index.js +4 -4
  138. package/dist/server/security/index.js.map +1 -0
  139. package/dist/{server-static → server/static}/index.d.ts +3 -3
  140. package/dist/{server-static → server/static}/index.js +3 -3
  141. package/dist/server/static/index.js.map +1 -0
  142. package/dist/{server-swagger → server/swagger}/index.d.ts +3 -3
  143. package/dist/{server-swagger → server/swagger}/index.js +4 -4
  144. package/dist/server/swagger/index.js.map +1 -0
  145. package/dist/thread/index.js +2 -2
  146. package/dist/thread/index.js.map +1 -1
  147. package/dist/topic/{index.d.ts → core/index.d.ts} +6 -6
  148. package/dist/topic/{index.js → core/index.js} +6 -6
  149. package/dist/topic/core/index.js.map +1 -0
  150. package/dist/{topic-redis → topic/redis}/index.d.ts +2 -2
  151. package/dist/{topic-redis → topic/redis}/index.js +2 -2
  152. package/dist/topic/redis/index.js.map +1 -0
  153. package/dist/vite/index.d.ts +13 -2
  154. package/dist/vite/index.js +114 -50
  155. package/dist/vite/index.js.map +1 -1
  156. package/dist/websocket/index.browser.js +3 -3
  157. package/dist/websocket/index.browser.js.map +1 -1
  158. package/dist/websocket/index.js +4 -4
  159. package/dist/websocket/index.js.map +1 -1
  160. package/package.json +160 -156
  161. package/src/api/audits/controllers/AuditController.ts +186 -0
  162. package/src/api/audits/entities/audits.ts +132 -0
  163. package/src/api/audits/index.browser.ts +18 -0
  164. package/src/api/audits/index.ts +58 -0
  165. package/src/api/audits/primitives/$audit.ts +159 -0
  166. package/src/api/audits/schemas/auditQuerySchema.ts +23 -0
  167. package/src/api/audits/schemas/auditResourceSchema.ts +9 -0
  168. package/src/api/audits/schemas/createAuditSchema.ts +27 -0
  169. package/src/api/audits/services/AuditService.ts +412 -0
  170. package/src/{api-files → api/files}/index.ts +1 -0
  171. package/src/api/parameters/controllers/ConfigController.ts +324 -0
  172. package/src/api/parameters/entities/parameters.ts +113 -0
  173. package/src/api/parameters/index.ts +60 -0
  174. package/src/api/parameters/primitives/$config.ts +351 -0
  175. package/src/api/parameters/schedulers/ConfigActivationScheduler.ts +30 -0
  176. package/src/api/parameters/services/ConfigStore.ts +491 -0
  177. package/src/{api-users → api/users}/atoms/realmAuthSettingsAtom.ts +19 -0
  178. package/src/{api-users → api/users}/controllers/UserRealmController.ts +0 -2
  179. package/src/{api-users → api/users}/index.ts +2 -0
  180. package/src/{api-users → api/users}/primitives/$userRealm.ts +18 -3
  181. package/src/{api-users → api/users}/providers/UserRealmProvider.ts +12 -10
  182. package/src/{api-users → api/users}/services/RegistrationService.ts +2 -1
  183. package/src/{api-users → api/users}/services/SessionService.ts +4 -0
  184. package/src/{api-users → api/users}/services/UserService.ts +3 -0
  185. package/src/{api-verifications → api/verifications}/index.ts +9 -1
  186. package/src/bin/index.ts +1 -0
  187. package/src/cli/apps/AlephaPackageBuilderCli.ts +73 -48
  188. package/src/cli/assets/appRouterTs.ts +1 -1
  189. package/src/cli/assets/biomeJson.ts +2 -2
  190. package/src/cli/assets/dummySpecTs.ts +7 -0
  191. package/src/cli/assets/editorconfig.ts +13 -0
  192. package/src/cli/assets/indexHtml.ts +1 -1
  193. package/src/cli/assets/mainBrowserTs.ts +1 -1
  194. package/src/cli/assets/mainTs.ts +14 -0
  195. package/src/cli/assets/viteConfigTs.ts +1 -1
  196. package/src/cli/commands/BiomeCommands.ts +2 -0
  197. package/src/cli/commands/CoreCommands.ts +38 -15
  198. package/src/cli/commands/VerifyCommands.ts +6 -2
  199. package/src/cli/commands/ViteCommands.ts +28 -18
  200. package/src/cli/services/AlephaCliUtils.ts +243 -37
  201. package/src/command/helpers/Asker.ts +0 -1
  202. package/src/command/primitives/$command.ts +67 -0
  203. package/src/command/providers/CliProvider.ts +39 -8
  204. package/src/core/Alepha.ts +40 -30
  205. package/src/core/helpers/jsonSchemaToTypeBox.ts +307 -0
  206. package/src/core/index.shared.ts +1 -0
  207. package/src/core/index.ts +30 -3
  208. package/src/core/providers/EventManager.ts +1 -1
  209. package/src/core/providers/SchemaValidator.ts +1 -1
  210. package/src/core/providers/StateManager.ts +23 -12
  211. package/src/core/providers/TypeProvider.ts +26 -34
  212. package/src/logger/index.ts +8 -6
  213. package/src/logger/primitives/$logger.ts +1 -1
  214. package/src/logger/providers/{SimpleFormatterProvider.ts → PrettyFormatterProvider.ts} +10 -1
  215. package/src/orm/index.ts +6 -0
  216. package/src/orm/services/PgRelationManager.ts +2 -2
  217. package/src/orm/services/PostgresModelBuilder.ts +11 -7
  218. package/src/orm/services/Repository.ts +16 -7
  219. package/src/orm/services/SqliteModelBuilder.ts +10 -0
  220. package/src/queue/{index.ts → core/index.ts} +2 -3
  221. package/src/queue/{primitives → core/primitives}/$queue.ts +17 -162
  222. package/src/queue/core/providers/MemoryQueueProvider.ts +19 -0
  223. package/src/queue/core/providers/QueueProvider.ts +23 -0
  224. package/src/queue/core/providers/WorkerProvider.ts +244 -0
  225. package/src/queue/redis/providers/RedisQueueProvider.ts +31 -0
  226. package/src/{server-auth → server/auth}/primitives/$auth.ts +7 -0
  227. package/src/{server-auth → server/auth}/providers/ServerAuthProvider.ts +51 -8
  228. package/src/{server-cookies → server/cookies}/index.ts +2 -1
  229. package/src/server/{index.ts → core/index.ts} +7 -0
  230. package/src/server/{primitives → core/primitives}/$action.ts +10 -1
  231. package/src/server/{providers → core/providers}/ServerBodyParserProvider.ts +11 -5
  232. package/src/server/{providers → core/providers}/ServerRouterProvider.ts +13 -7
  233. package/src/{server-rate-limit → server/rate-limit}/index.ts +1 -1
  234. package/src/{server-swagger → server/swagger}/providers/ServerSwaggerProvider.ts +1 -0
  235. package/src/thread/primitives/$thread.ts +2 -2
  236. package/src/vite/index.ts +0 -2
  237. package/src/vite/tasks/buildServer.ts +3 -4
  238. package/src/vite/tasks/copyAssets.ts +32 -8
  239. package/src/vite/tasks/generateCloudflare.ts +35 -19
  240. package/src/vite/tasks/generateDocker.ts +18 -4
  241. package/src/vite/tasks/generateSitemap.ts +5 -7
  242. package/src/vite/tasks/generateVercel.ts +76 -41
  243. package/src/vite/tasks/runAlepha.ts +16 -1
  244. package/src/websocket/providers/NodeWebSocketServerProvider.ts +3 -11
  245. package/src/websocket/services/WebSocketClient.ts +3 -3
  246. package/dist/api-files/index.browser.js.map +0 -1
  247. package/dist/api-files/index.js.map +0 -1
  248. package/dist/api-jobs/index.browser.js.map +0 -1
  249. package/dist/api-jobs/index.js.map +0 -1
  250. package/dist/api-notifications/index.browser.js.map +0 -1
  251. package/dist/api-notifications/index.d.ts +0 -327
  252. package/dist/api-notifications/index.js.map +0 -1
  253. package/dist/api-parameters/index.browser.js +0 -29
  254. package/dist/api-parameters/index.browser.js.map +0 -1
  255. package/dist/api-parameters/index.d.ts +0 -83
  256. package/dist/api-parameters/index.js +0 -63
  257. package/dist/api-parameters/index.js.map +0 -1
  258. package/dist/api-users/index.browser.js.map +0 -1
  259. package/dist/api-users/index.js.map +0 -1
  260. package/dist/api-verifications/index.browser.js.map +0 -1
  261. package/dist/api-verifications/index.d.ts +0 -229
  262. package/dist/api-verifications/index.js.map +0 -1
  263. package/dist/cache/index.js.map +0 -1
  264. package/dist/cache-redis/index.js.map +0 -1
  265. package/dist/cli/dist-BlfFtOk2.js +0 -2770
  266. package/dist/cli/dist-BlfFtOk2.js.map +0 -1
  267. package/dist/lock/index.js.map +0 -1
  268. package/dist/lock-redis/index.js.map +0 -1
  269. package/dist/queue/index.d.ts +0 -1265
  270. package/dist/queue/index.js +0 -1037
  271. package/dist/queue/index.js.map +0 -1
  272. package/dist/queue-redis/index.d.ts +0 -82
  273. package/dist/queue-redis/index.js +0 -872
  274. package/dist/queue-redis/index.js.map +0 -1
  275. package/dist/server/index.browser.js.map +0 -1
  276. package/dist/server/index.js.map +0 -1
  277. package/dist/server-auth/index.browser.js.map +0 -1
  278. package/dist/server-auth/index.js +0 -1943
  279. package/dist/server-auth/index.js.map +0 -1
  280. package/dist/server-cache/index.js.map +0 -1
  281. package/dist/server-compress/index.js.map +0 -1
  282. package/dist/server-cookies/index.browser.js.map +0 -1
  283. package/dist/server-cookies/index.js.map +0 -1
  284. package/dist/server-cors/index.js.map +0 -1
  285. package/dist/server-health/index.js.map +0 -1
  286. package/dist/server-helmet/index.js.map +0 -1
  287. package/dist/server-links/index.browser.js.map +0 -1
  288. package/dist/server-links/index.js.map +0 -1
  289. package/dist/server-metrics/index.js +0 -4532
  290. package/dist/server-metrics/index.js.map +0 -1
  291. package/dist/server-multipart/index.js.map +0 -1
  292. package/dist/server-proxy/index.js.map +0 -1
  293. package/dist/server-rate-limit/index.js.map +0 -1
  294. package/dist/server-security/index.browser.js.map +0 -1
  295. package/dist/server-security/index.js.map +0 -1
  296. package/dist/server-static/index.js.map +0 -1
  297. package/dist/server-swagger/index.js.map +0 -1
  298. package/dist/topic/index.js.map +0 -1
  299. package/dist/topic-redis/index.js.map +0 -1
  300. package/src/api-parameters/controllers/ParameterController.ts +0 -45
  301. package/src/api-parameters/entities/parameters.ts +0 -30
  302. package/src/api-parameters/index.ts +0 -21
  303. package/src/api-parameters/primitives/$config.ts +0 -79
  304. package/src/api-parameters/services/ParameterStore.ts +0 -23
  305. package/src/queue/interfaces/QueueJob.ts +0 -459
  306. package/src/queue/providers/MemoryQueueProvider.ts +0 -850
  307. package/src/queue/providers/QueueProvider.ts +0 -319
  308. package/src/queue/providers/WorkerProvider.ts +0 -344
  309. package/src/queue-redis/providers/RedisQueueProvider.ts +0 -1209
  310. /package/src/{api-files → api/files}/controllers/FileController.ts +0 -0
  311. /package/src/{api-files → api/files}/controllers/StorageStatsController.ts +0 -0
  312. /package/src/{api-files → api/files}/entities/files.ts +0 -0
  313. /package/src/{api-files → api/files}/index.browser.ts +0 -0
  314. /package/src/{api-files → api/files}/jobs/FileJobs.ts +0 -0
  315. /package/src/{api-files → api/files}/schemas/fileQuerySchema.ts +0 -0
  316. /package/src/{api-files → api/files}/schemas/fileResourceSchema.ts +0 -0
  317. /package/src/{api-files → api/files}/schemas/storageStatsSchema.ts +0 -0
  318. /package/src/{api-files → api/files}/services/FileService.ts +0 -0
  319. /package/src/{api-jobs → api/jobs}/controllers/JobController.ts +0 -0
  320. /package/src/{api-jobs → api/jobs}/entities/jobExecutions.ts +0 -0
  321. /package/src/{api-jobs → api/jobs}/index.browser.ts +0 -0
  322. /package/src/{api-jobs → api/jobs}/index.ts +0 -0
  323. /package/src/{api-jobs → api/jobs}/primitives/$job.ts +0 -0
  324. /package/src/{api-jobs → api/jobs}/providers/JobProvider.ts +0 -0
  325. /package/src/{api-jobs → api/jobs}/schemas/jobExecutionQuerySchema.ts +0 -0
  326. /package/src/{api-jobs → api/jobs}/schemas/jobExecutionResourceSchema.ts +0 -0
  327. /package/src/{api-jobs → api/jobs}/schemas/triggerJobSchema.ts +0 -0
  328. /package/src/{api-jobs → api/jobs}/services/JobService.ts +0 -0
  329. /package/src/{api-notifications → api/notifications}/controllers/NotificationController.ts +0 -0
  330. /package/src/{api-notifications → api/notifications}/entities/notifications.ts +0 -0
  331. /package/src/{api-notifications → api/notifications}/index.browser.ts +0 -0
  332. /package/src/{api-notifications → api/notifications}/index.ts +0 -0
  333. /package/src/{api-notifications → api/notifications}/jobs/NotificationJobs.ts +0 -0
  334. /package/src/{api-notifications → api/notifications}/primitives/$notification.ts +0 -0
  335. /package/src/{api-notifications → api/notifications}/queues/NotificationQueues.ts +0 -0
  336. /package/src/{api-notifications → api/notifications}/schemas/notificationContactPreferencesSchema.ts +0 -0
  337. /package/src/{api-notifications → api/notifications}/schemas/notificationContactSchema.ts +0 -0
  338. /package/src/{api-notifications → api/notifications}/schemas/notificationCreateSchema.ts +0 -0
  339. /package/src/{api-notifications → api/notifications}/schemas/notificationQuerySchema.ts +0 -0
  340. /package/src/{api-notifications → api/notifications}/services/NotificationSenderService.ts +0 -0
  341. /package/src/{api-notifications → api/notifications}/services/NotificationService.ts +0 -0
  342. /package/src/{api-parameters → api/parameters}/index.browser.ts +0 -0
  343. /package/src/{api-users → api/users}/controllers/IdentityController.ts +0 -0
  344. /package/src/{api-users → api/users}/controllers/SessionController.ts +0 -0
  345. /package/src/{api-users → api/users}/controllers/UserController.ts +0 -0
  346. /package/src/{api-users → api/users}/entities/identities.ts +0 -0
  347. /package/src/{api-users → api/users}/entities/sessions.ts +0 -0
  348. /package/src/{api-users → api/users}/entities/users.ts +0 -0
  349. /package/src/{api-users → api/users}/index.browser.ts +0 -0
  350. /package/src/{api-users → api/users}/notifications/UserNotifications.ts +0 -0
  351. /package/src/{api-users → api/users}/schemas/completePasswordResetRequestSchema.ts +0 -0
  352. /package/src/{api-users → api/users}/schemas/completeRegistrationRequestSchema.ts +0 -0
  353. /package/src/{api-users → api/users}/schemas/createUserSchema.ts +0 -0
  354. /package/src/{api-users → api/users}/schemas/identityQuerySchema.ts +0 -0
  355. /package/src/{api-users → api/users}/schemas/identityResourceSchema.ts +0 -0
  356. /package/src/{api-users → api/users}/schemas/loginSchema.ts +0 -0
  357. /package/src/{api-users → api/users}/schemas/passwordResetIntentResponseSchema.ts +0 -0
  358. /package/src/{api-users → api/users}/schemas/registerQuerySchema.ts +0 -0
  359. /package/src/{api-users → api/users}/schemas/registerRequestSchema.ts +0 -0
  360. /package/src/{api-users → api/users}/schemas/registerResponseSchema.ts +0 -0
  361. /package/src/{api-users → api/users}/schemas/registerSchema.ts +0 -0
  362. /package/src/{api-users → api/users}/schemas/registrationIntentResponseSchema.ts +0 -0
  363. /package/src/{api-users → api/users}/schemas/resetPasswordSchema.ts +0 -0
  364. /package/src/{api-users → api/users}/schemas/sessionQuerySchema.ts +0 -0
  365. /package/src/{api-users → api/users}/schemas/sessionResourceSchema.ts +0 -0
  366. /package/src/{api-users → api/users}/schemas/updateUserSchema.ts +0 -0
  367. /package/src/{api-users → api/users}/schemas/userQuerySchema.ts +0 -0
  368. /package/src/{api-users → api/users}/schemas/userRealmConfigSchema.ts +0 -0
  369. /package/src/{api-users → api/users}/schemas/userResourceSchema.ts +0 -0
  370. /package/src/{api-users → api/users}/services/CredentialService.ts +0 -0
  371. /package/src/{api-users → api/users}/services/IdentityService.ts +0 -0
  372. /package/src/{api-users → api/users}/services/SessionCrudService.ts +0 -0
  373. /package/src/{api-verifications → api/verifications}/controllers/VerificationController.ts +0 -0
  374. /package/src/{api-verifications → api/verifications}/entities/verifications.ts +0 -0
  375. /package/src/{api-verifications → api/verifications}/index.browser.ts +0 -0
  376. /package/src/{api-verifications → api/verifications}/jobs/VerificationJobs.ts +0 -0
  377. /package/src/{api-verifications → api/verifications}/parameters/VerificationParameters.ts +0 -0
  378. /package/src/{api-verifications → api/verifications}/schemas/requestVerificationCodeResponseSchema.ts +0 -0
  379. /package/src/{api-verifications → api/verifications}/schemas/validateVerificationCodeResponseSchema.ts +0 -0
  380. /package/src/{api-verifications → api/verifications}/schemas/verificationSettingsSchema.ts +0 -0
  381. /package/src/{api-verifications → api/verifications}/schemas/verificationTypeEnumSchema.ts +0 -0
  382. /package/src/{api-verifications → api/verifications}/services/VerificationService.ts +0 -0
  383. /package/src/cache/{errors → core/errors}/CacheError.ts +0 -0
  384. /package/src/cache/{index.ts → core/index.ts} +0 -0
  385. /package/src/cache/{primitives → core/primitives}/$cache.ts +0 -0
  386. /package/src/cache/{providers → core/providers}/CacheProvider.ts +0 -0
  387. /package/src/cache/{providers → core/providers}/MemoryCacheProvider.ts +0 -0
  388. /package/src/{cache-redis → cache/redis}/index.ts +0 -0
  389. /package/src/{cache-redis → cache/redis}/providers/RedisCacheProvider.ts +0 -0
  390. /package/src/lock/{index.ts → core/index.ts} +0 -0
  391. /package/src/lock/{primitives → core/primitives}/$lock.ts +0 -0
  392. /package/src/lock/{providers → core/providers}/LockProvider.ts +0 -0
  393. /package/src/lock/{providers → core/providers}/LockTopicProvider.ts +0 -0
  394. /package/src/lock/{providers → core/providers}/MemoryLockProvider.ts +0 -0
  395. /package/src/{lock-redis → lock/redis}/index.ts +0 -0
  396. /package/src/{lock-redis → lock/redis}/providers/RedisLockProvider.ts +0 -0
  397. /package/src/queue/{primitives → core/primitives}/$consumer.ts +0 -0
  398. /package/src/{queue-redis → queue/redis}/index.ts +0 -0
  399. /package/src/{server-auth → server/auth}/constants/routes.ts +0 -0
  400. /package/src/{server-auth → server/auth}/index.browser.ts +0 -0
  401. /package/src/{server-auth → server/auth}/index.shared.ts +0 -0
  402. /package/src/{server-auth → server/auth}/index.ts +0 -0
  403. /package/src/{server-auth → server/auth}/primitives/$authApple.ts +0 -0
  404. /package/src/{server-auth → server/auth}/primitives/$authCredentials.ts +0 -0
  405. /package/src/{server-auth → server/auth}/primitives/$authGithub.ts +0 -0
  406. /package/src/{server-auth → server/auth}/primitives/$authGoogle.ts +0 -0
  407. /package/src/{server-auth → server/auth}/schemas/authenticationProviderSchema.ts +0 -0
  408. /package/src/{server-auth → server/auth}/schemas/tokenResponseSchema.ts +0 -0
  409. /package/src/{server-auth → server/auth}/schemas/tokensSchema.ts +0 -0
  410. /package/src/{server-auth → server/auth}/schemas/userinfoResponseSchema.ts +0 -0
  411. /package/src/{server-cache → server/cache}/index.ts +0 -0
  412. /package/src/{server-cache → server/cache}/providers/ServerCacheProvider.ts +0 -0
  413. /package/src/{server-compress → server/compress}/index.ts +0 -0
  414. /package/src/{server-compress → server/compress}/providers/ServerCompressProvider.ts +0 -0
  415. /package/src/{server-cookies → server/cookies}/index.browser.ts +0 -0
  416. /package/src/{server-cookies → server/cookies}/primitives/$cookie.browser.ts +0 -0
  417. /package/src/{server-cookies → server/cookies}/primitives/$cookie.ts +0 -0
  418. /package/src/{server-cookies → server/cookies}/providers/ServerCookiesProvider.ts +0 -0
  419. /package/src/{server-cookies → server/cookies}/services/CookieParser.ts +0 -0
  420. /package/src/server/{constants → core/constants}/routeMethods.ts +0 -0
  421. /package/src/server/{errors → core/errors}/BadRequestError.ts +0 -0
  422. /package/src/server/{errors → core/errors}/ConflictError.ts +0 -0
  423. /package/src/server/{errors → core/errors}/ForbiddenError.ts +0 -0
  424. /package/src/server/{errors → core/errors}/HttpError.ts +0 -0
  425. /package/src/server/{errors → core/errors}/NotFoundError.ts +0 -0
  426. /package/src/server/{errors → core/errors}/UnauthorizedError.ts +0 -0
  427. /package/src/server/{errors → core/errors}/ValidationError.ts +0 -0
  428. /package/src/server/{helpers → core/helpers}/ServerReply.ts +0 -0
  429. /package/src/server/{helpers → core/helpers}/isMultipart.ts +0 -0
  430. /package/src/server/{index.browser.ts → core/index.browser.ts} +0 -0
  431. /package/src/server/{index.shared.ts → core/index.shared.ts} +0 -0
  432. /package/src/server/{interfaces → core/interfaces}/ServerRequest.ts +0 -0
  433. /package/src/server/{primitives → core/primitives}/$route.ts +0 -0
  434. /package/src/server/{providers → core/providers}/BunHttpServerProvider.ts +0 -0
  435. /package/src/server/{providers → core/providers}/NodeHttpServerProvider.ts +0 -0
  436. /package/src/server/{providers → core/providers}/ServerLoggerProvider.ts +0 -0
  437. /package/src/server/{providers → core/providers}/ServerNotReadyProvider.ts +0 -0
  438. /package/src/server/{providers → core/providers}/ServerProvider.ts +0 -0
  439. /package/src/server/{providers → core/providers}/ServerTimingProvider.ts +0 -0
  440. /package/src/server/{schemas → core/schemas}/errorSchema.ts +0 -0
  441. /package/src/server/{schemas → core/schemas}/okSchema.ts +0 -0
  442. /package/src/server/{services → core/services}/HttpClient.ts +0 -0
  443. /package/src/server/{services → core/services}/ServerRequestParser.ts +0 -0
  444. /package/src/server/{services → core/services}/UserAgentParser.ts +0 -0
  445. /package/src/{server-cors → server/cors}/index.ts +0 -0
  446. /package/src/{server-cors → server/cors}/primitives/$cors.ts +0 -0
  447. /package/src/{server-cors → server/cors}/providers/ServerCorsProvider.ts +0 -0
  448. /package/src/{server-health → server/health}/index.ts +0 -0
  449. /package/src/{server-health → server/health}/providers/ServerHealthProvider.ts +0 -0
  450. /package/src/{server-health → server/health}/schemas/healthSchema.ts +0 -0
  451. /package/src/{server-helmet → server/helmet}/index.ts +0 -0
  452. /package/src/{server-helmet → server/helmet}/providers/ServerHelmetProvider.ts +0 -0
  453. /package/src/{server-links → server/links}/index.browser.ts +0 -0
  454. /package/src/{server-links → server/links}/index.ts +0 -0
  455. /package/src/{server-links → server/links}/primitives/$client.ts +0 -0
  456. /package/src/{server-links → server/links}/primitives/$remote.ts +0 -0
  457. /package/src/{server-links → server/links}/providers/LinkProvider.ts +0 -0
  458. /package/src/{server-links → server/links}/providers/RemotePrimitiveProvider.ts +0 -0
  459. /package/src/{server-links → server/links}/providers/ServerLinksProvider.ts +0 -0
  460. /package/src/{server-links → server/links}/schemas/apiLinksResponseSchema.ts +0 -0
  461. /package/src/{server-metrics → server/metrics}/index.ts +0 -0
  462. /package/src/{server-metrics → server/metrics}/providers/ServerMetricsProvider.ts +0 -0
  463. /package/src/{server-multipart → server/multipart}/index.ts +0 -0
  464. /package/src/{server-multipart → server/multipart}/providers/ServerMultipartProvider.ts +0 -0
  465. /package/src/{server-proxy → server/proxy}/index.ts +0 -0
  466. /package/src/{server-proxy → server/proxy}/primitives/$proxy.ts +0 -0
  467. /package/src/{server-proxy → server/proxy}/providers/ServerProxyProvider.ts +0 -0
  468. /package/src/{server-rate-limit → server/rate-limit}/primitives/$rateLimit.ts +0 -0
  469. /package/src/{server-rate-limit → server/rate-limit}/providers/ServerRateLimitProvider.ts +0 -0
  470. /package/src/{server-security → server/security}/index.browser.ts +0 -0
  471. /package/src/{server-security → server/security}/index.ts +0 -0
  472. /package/src/{server-security → server/security}/primitives/$basicAuth.ts +0 -0
  473. /package/src/{server-security → server/security}/providers/ServerBasicAuthProvider.ts +0 -0
  474. /package/src/{server-security → server/security}/providers/ServerSecurityProvider.ts +0 -0
  475. /package/src/{server-static → server/static}/index.ts +0 -0
  476. /package/src/{server-static → server/static}/primitives/$serve.ts +0 -0
  477. /package/src/{server-static → server/static}/providers/ServerStaticProvider.ts +0 -0
  478. /package/src/{server-swagger → server/swagger}/index.ts +0 -0
  479. /package/src/{server-swagger → server/swagger}/primitives/$swagger.ts +0 -0
  480. /package/src/topic/{errors → core/errors}/TopicTimeoutError.ts +0 -0
  481. /package/src/topic/{index.ts → core/index.ts} +0 -0
  482. /package/src/topic/{primitives → core/primitives}/$subscriber.ts +0 -0
  483. /package/src/topic/{primitives → core/primitives}/$topic.ts +0 -0
  484. /package/src/topic/{providers → core/providers}/MemoryTopicProvider.ts +0 -0
  485. /package/src/topic/{providers → core/providers}/TopicProvider.ts +0 -0
  486. /package/src/{topic-redis → topic/redis}/index.ts +0 -0
  487. /package/src/{topic-redis → topic/redis}/providers/RedisTopicProvider.ts +0 -0
@@ -2,11 +2,10 @@ import * as alepha1 from "alepha";
2
2
  import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import * as alepha_api_notifications0 from "alepha/api/notifications";
4
4
  import { VerificationController } from "alepha/api/verifications";
5
- import * as alepha_orm198 from "alepha/orm";
5
+ import * as alepha_orm179 from "alepha/orm";
6
6
  import { Page as Page$1, Repository } from "alepha/orm";
7
- import * as alepha_server14 from "alepha/server";
7
+ import * as alepha_server0 from "alepha/server";
8
8
  import * as alepha_logger0 from "alepha/logger";
9
- import { UserRealmOptions as UserRealmOptions$1 } from "alepha/api/users";
10
9
  import * as alepha_bucket0 from "alepha/bucket";
11
10
  import * as alepha_cache0 from "alepha/cache";
12
11
  import { DateTime, DateTimeProvider } from "alepha/datetime";
@@ -27,8 +26,11 @@ import "drizzle-orm/postgres-js";
27
26
  import "postgres";
28
27
  import "drizzle-orm/sqlite-core";
29
28
 
30
- //#region ../../src/api-users/atoms/realmAuthSettingsAtom.d.ts
29
+ //#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
31
30
  declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
31
+ displayName: alepha1.TOptional<alepha1.TString>;
32
+ description: alepha1.TOptional<alepha1.TString>;
33
+ logoUrl: alepha1.TOptional<alepha1.TString>;
32
34
  registrationAllowed: alepha1.TBoolean;
33
35
  emailEnabled: alepha1.TBoolean;
34
36
  emailRequired: alepha1.TBoolean;
@@ -51,13 +53,13 @@ declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
51
53
  }>, "alepha.api.users.realmAuthSettings">;
52
54
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
53
55
  //#endregion
54
- //#region ../../src/api-users/entities/identities.d.ts
55
- declare const identities: alepha_orm198.EntityPrimitive<alepha1.TObject<{
56
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
57
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
58
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
59
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
60
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
56
+ //#region ../../src/api/users/entities/identities.d.ts
57
+ declare const identities: alepha_orm179.EntityPrimitive<alepha1.TObject<{
58
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
59
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
60
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
61
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
62
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
61
63
  password: alepha1.TOptional<alepha1.TString>;
62
64
  provider: alepha1.TString;
63
65
  providerUserId: alepha1.TOptional<alepha1.TString>;
@@ -65,14 +67,14 @@ declare const identities: alepha_orm198.EntityPrimitive<alepha1.TObject<{
65
67
  }>>;
66
68
  type IdentityEntity = Static<typeof identities.schema>;
67
69
  //#endregion
68
- //#region ../../src/api-users/entities/sessions.d.ts
69
- declare const sessions: alepha_orm198.EntityPrimitive<alepha1.TObject<{
70
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
71
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
72
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
73
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
70
+ //#region ../../src/api/users/entities/sessions.d.ts
71
+ declare const sessions: alepha_orm179.EntityPrimitive<alepha1.TObject<{
72
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
73
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
74
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
75
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
74
76
  refreshToken: alepha1.TString;
75
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
77
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
76
78
  expiresAt: alepha1.TString;
77
79
  ip: alepha1.TOptional<alepha1.TString>;
78
80
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -83,27 +85,77 @@ declare const sessions: alepha_orm198.EntityPrimitive<alepha1.TObject<{
83
85
  }>>;
84
86
  type SessionEntity = Static<typeof sessions.schema>;
85
87
  //#endregion
86
- //#region ../../src/api-users/entities/users.d.ts
88
+ //#region ../../src/api/users/entities/users.d.ts
87
89
  declare const DEFAULT_USER_REALM_NAME = "default";
88
- declare const users: alepha_orm198.EntityPrimitive<alepha1.TObject<{
89
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
90
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
91
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
92
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
93
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
90
+ declare const users: alepha_orm179.EntityPrimitive<alepha1.TObject<{
91
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
92
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
93
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
94
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
95
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
94
96
  username: alepha1.TOptional<alepha1.TString>;
95
97
  email: alepha1.TOptional<alepha1.TString>;
96
98
  phoneNumber: alepha1.TOptional<alepha1.TString>;
97
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
99
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
98
100
  firstName: alepha1.TOptional<alepha1.TString>;
99
101
  lastName: alepha1.TOptional<alepha1.TString>;
100
102
  picture: alepha1.TOptional<alepha1.TString>;
101
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
102
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
103
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
104
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
103
105
  }>>;
104
106
  type UserEntity = Static<typeof users.schema>;
105
107
  //#endregion
106
- //#region ../../src/api-users/providers/UserRealmProvider.d.ts
108
+ //#region ../../src/api/users/primitives/$userRealm.d.ts
109
+ type UserRealmPrimitive = RealmPrimitive & WithLinkFn & WithLoginFn;
110
+ /**
111
+ * Already configured realm for user management.
112
+ *
113
+ * Realm contains two roles: `admin` and `user`.
114
+ *
115
+ * - `admin`: Has full access to all resources and permissions.
116
+ * - `user`: Has access to their own resources and permissions, but cannot access admin-level resources.
117
+ *
118
+ * Realm uses session management for handling user sessions.
119
+ *
120
+ * Environment Variables:
121
+ * - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
122
+ */
123
+ declare const $userRealm: (options?: UserRealmOptions) => UserRealmPrimitive;
124
+ interface UserRealmOptions {
125
+ /**
126
+ * Secret key for signing tokens.
127
+ *
128
+ * If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
129
+ */
130
+ secret?: string;
131
+ /**
132
+ * Realm configuration options.
133
+ *
134
+ * It's already pre-configured for user management with admin and user roles.
135
+ */
136
+ realm?: Partial<RealmPrimitiveOptions>;
137
+ /**
138
+ * Override entities.
139
+ */
140
+ entities?: {
141
+ users?: Repository<typeof users.schema>;
142
+ identities?: Repository<typeof identities.schema>;
143
+ sessions?: Repository<typeof sessions.schema>;
144
+ };
145
+ settings?: Partial<RealmAuthSettings>;
146
+ identities?: {
147
+ credentials?: true;
148
+ google?: true;
149
+ github?: true;
150
+ };
151
+ modules?: {
152
+ files?: boolean;
153
+ audits?: boolean;
154
+ jobs?: boolean;
155
+ };
156
+ }
157
+ //#endregion
158
+ //#region ../../src/api/users/providers/UserRealmProvider.d.ts
107
159
  interface UserRealmRepositories {
108
160
  identities: Repository<typeof identities.schema>;
109
161
  sessions: Repository<typeof sessions.schema>;
@@ -117,23 +169,23 @@ interface UserRealm {
117
169
  declare class UserRealmProvider {
118
170
  protected readonly alepha: Alepha;
119
171
  protected readonly defaultIdentities: Repository<alepha1.TObject<{
120
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
121
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
122
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
123
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
124
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
172
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
173
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
174
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
175
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
176
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
125
177
  password: alepha1.TOptional<alepha1.TString>;
126
178
  provider: alepha1.TString;
127
179
  providerUserId: alepha1.TOptional<alepha1.TString>;
128
180
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
129
181
  }>>;
130
182
  protected readonly defaultSessions: Repository<alepha1.TObject<{
131
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
132
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
133
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
134
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
183
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
184
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
185
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
186
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
135
187
  refreshToken: alepha1.TString;
136
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
188
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
137
189
  expiresAt: alepha1.TString;
138
190
  ip: alepha1.TOptional<alepha1.TString>;
139
191
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -143,25 +195,25 @@ declare class UserRealmProvider {
143
195
  }>>;
144
196
  }>>;
145
197
  protected readonly defaultUsers: Repository<alepha1.TObject<{
146
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
147
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
148
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
149
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
150
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
198
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
199
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
200
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
201
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
202
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
151
203
  username: alepha1.TOptional<alepha1.TString>;
152
204
  email: alepha1.TOptional<alepha1.TString>;
153
205
  phoneNumber: alepha1.TOptional<alepha1.TString>;
154
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
206
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
155
207
  firstName: alepha1.TOptional<alepha1.TString>;
156
208
  lastName: alepha1.TOptional<alepha1.TString>;
157
209
  picture: alepha1.TOptional<alepha1.TString>;
158
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
159
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
210
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
211
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
160
212
  }>>;
161
213
  protected realms: Map<string, UserRealm>;
162
214
  avatars: alepha_bucket0.BucketPrimitive;
163
215
  protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
164
- register(userRealmName: string, userRealmOptions?: UserRealmOptions$1): UserRealm;
216
+ register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
165
217
  /**
166
218
  * Gets a registered realm by name, auto-creating default if needed.
167
219
  */
@@ -171,7 +223,7 @@ declare class UserRealmProvider {
171
223
  userRepository(userRealmName?: string): Repository<typeof users.schema>;
172
224
  }
173
225
  //#endregion
174
- //#region ../../src/api-users/schemas/identityQuerySchema.d.ts
226
+ //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
175
227
  declare const identityQuerySchema: alepha1.TObject<{
176
228
  page: alepha1.TOptional<alepha1.TInteger>;
177
229
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -181,16 +233,16 @@ declare const identityQuerySchema: alepha1.TObject<{
181
233
  }>;
182
234
  type IdentityQuery = Static<typeof identityQuerySchema>;
183
235
  //#endregion
184
- //#region ../../src/api-users/services/IdentityService.d.ts
236
+ //#region ../../src/api/users/services/IdentityService.d.ts
185
237
  declare class IdentityService {
186
238
  protected readonly log: alepha_logger0.Logger;
187
239
  protected readonly userRealmProvider: UserRealmProvider;
188
- identities(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
189
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
190
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
191
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
192
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
193
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
240
+ identities(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
241
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
242
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
243
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
244
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
245
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
194
246
  password: alepha1.TOptional<alepha1.TString>;
195
247
  provider: alepha1.TString;
196
248
  providerUserId: alepha1.TOptional<alepha1.TString>;
@@ -210,7 +262,7 @@ declare class IdentityService {
210
262
  deleteIdentity(id: string, userRealmName?: string): Promise<void>;
211
263
  }
212
264
  //#endregion
213
- //#region ../../src/api-users/controllers/IdentityController.d.ts
265
+ //#region ../../src/api/users/controllers/IdentityController.d.ts
214
266
  declare class IdentityController {
215
267
  protected readonly url = "/identities";
216
268
  protected readonly group = "identities";
@@ -218,7 +270,7 @@ declare class IdentityController {
218
270
  /**
219
271
  * Find identities with pagination and filtering.
220
272
  */
221
- readonly findIdentities: alepha_server14.ActionPrimitiveFn<{
273
+ readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
222
274
  query: alepha1.TObject<{
223
275
  page: alepha1.TOptional<alepha1.TInteger>;
224
276
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -228,12 +280,12 @@ declare class IdentityController {
228
280
  userRealmName: alepha1.TOptional<alepha1.TString>;
229
281
  }>;
230
282
  response: alepha1.TPage<alepha1.TObject<{
231
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
232
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
233
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
234
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
235
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
283
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
236
284
  provider: alepha1.TString;
285
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
286
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
287
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
288
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
237
289
  providerUserId: alepha1.TOptional<alepha1.TString>;
238
290
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
239
291
  }>>;
@@ -241,7 +293,7 @@ declare class IdentityController {
241
293
  /**
242
294
  * Get an identity by ID.
243
295
  */
244
- readonly getIdentity: alepha_server14.ActionPrimitiveFn<{
296
+ readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
245
297
  params: alepha1.TObject<{
246
298
  id: alepha1.TString;
247
299
  }>;
@@ -249,12 +301,12 @@ declare class IdentityController {
249
301
  userRealmName: alepha1.TOptional<alepha1.TString>;
250
302
  }>;
251
303
  response: alepha1.TObject<{
252
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
253
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
254
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
255
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
256
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
304
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
257
305
  provider: alepha1.TString;
306
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
307
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
308
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
309
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
258
310
  providerUserId: alepha1.TOptional<alepha1.TString>;
259
311
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
260
312
  }>;
@@ -262,7 +314,7 @@ declare class IdentityController {
262
314
  /**
263
315
  * Delete an identity.
264
316
  */
265
- readonly deleteIdentity: alepha_server14.ActionPrimitiveFn<{
317
+ readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
266
318
  params: alepha1.TObject<{
267
319
  id: alepha1.TString;
268
320
  }>;
@@ -277,7 +329,7 @@ declare class IdentityController {
277
329
  }>;
278
330
  }
279
331
  //#endregion
280
- //#region ../../src/api-users/schemas/sessionQuerySchema.d.ts
332
+ //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
281
333
  declare const sessionQuerySchema: alepha1.TObject<{
282
334
  page: alepha1.TOptional<alepha1.TInteger>;
283
335
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -286,17 +338,17 @@ declare const sessionQuerySchema: alepha1.TObject<{
286
338
  }>;
287
339
  type SessionQuery = Static<typeof sessionQuerySchema>;
288
340
  //#endregion
289
- //#region ../../src/api-users/services/SessionCrudService.d.ts
341
+ //#region ../../src/api/users/services/SessionCrudService.d.ts
290
342
  declare class SessionCrudService {
291
343
  protected readonly log: alepha_logger0.Logger;
292
344
  protected readonly userRealmProvider: UserRealmProvider;
293
- sessions(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
294
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
295
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
296
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
297
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
345
+ sessions(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
346
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
347
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
348
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
349
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
298
350
  refreshToken: alepha1.TString;
299
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
351
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
300
352
  expiresAt: alepha1.TString;
301
353
  ip: alepha1.TOptional<alepha1.TString>;
302
354
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -319,7 +371,7 @@ declare class SessionCrudService {
319
371
  deleteSession(id: string, userRealmName?: string): Promise<void>;
320
372
  }
321
373
  //#endregion
322
- //#region ../../src/api-users/controllers/SessionController.d.ts
374
+ //#region ../../src/api/users/controllers/SessionController.d.ts
323
375
  declare class SessionController {
324
376
  protected readonly url = "/sessions";
325
377
  protected readonly group = "sessions";
@@ -327,7 +379,7 @@ declare class SessionController {
327
379
  /**
328
380
  * Find sessions with pagination and filtering.
329
381
  */
330
- readonly findSessions: alepha_server14.ActionPrimitiveFn<{
382
+ readonly findSessions: alepha_server0.ActionPrimitiveFn<{
331
383
  query: alepha1.TObject<{
332
384
  page: alepha1.TOptional<alepha1.TInteger>;
333
385
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -354,7 +406,7 @@ declare class SessionController {
354
406
  /**
355
407
  * Get a session by ID.
356
408
  */
357
- readonly getSession: alepha_server14.ActionPrimitiveFn<{
409
+ readonly getSession: alepha_server0.ActionPrimitiveFn<{
358
410
  params: alepha1.TObject<{
359
411
  id: alepha1.TString;
360
412
  }>;
@@ -380,7 +432,7 @@ declare class SessionController {
380
432
  /**
381
433
  * Delete a session.
382
434
  */
383
- readonly deleteSession: alepha_server14.ActionPrimitiveFn<{
435
+ readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
384
436
  params: alepha1.TObject<{
385
437
  id: alepha1.TString;
386
438
  }>;
@@ -1658,11 +1710,15 @@ declare abstract class Repository$1<T extends TObject> {
1658
1710
  /**
1659
1711
  * Create many entities.
1660
1712
  *
1713
+ * Inserts are batched in chunks of 1000 to avoid hitting database limits.
1714
+ *
1661
1715
  * @param values The entities to create.
1662
1716
  * @param opts The statement options.
1663
1717
  * @returns The created entities.
1664
1718
  */
1665
- createMany(values: Array<Static<TObjectInsert<T>>>, opts?: StatementOptions): Promise<Static<T>[]>;
1719
+ createMany(values: Array<Static<TObjectInsert<T>>>, opts?: StatementOptions & {
1720
+ batchSize?: number;
1721
+ }): Promise<Static<T>[]>;
1666
1722
  /**
1667
1723
  * Find an entity and update it.
1668
1724
  */
@@ -1900,7 +1956,7 @@ declare module "alepha" {
1900
1956
  }
1901
1957
  }
1902
1958
  //#endregion
1903
- //#region ../../src/api-users/notifications/UserNotifications.d.ts
1959
+ //#region ../../src/api/users/notifications/UserNotifications.d.ts
1904
1960
  declare class UserNotifications {
1905
1961
  readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1906
1962
  email: alepha1.TString;
@@ -1929,7 +1985,7 @@ declare class UserNotifications {
1929
1985
  }>>;
1930
1986
  }
1931
1987
  //#endregion
1932
- //#region ../../src/api-users/schemas/completePasswordResetRequestSchema.d.ts
1988
+ //#region ../../src/api/users/schemas/completePasswordResetRequestSchema.d.ts
1933
1989
  /**
1934
1990
  * Request schema for completing a password reset.
1935
1991
  *
@@ -1943,7 +1999,7 @@ declare const completePasswordResetRequestSchema: alepha1.TObject<{
1943
1999
  }>;
1944
2000
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
1945
2001
  //#endregion
1946
- //#region ../../src/api-users/schemas/passwordResetIntentResponseSchema.d.ts
2002
+ //#region ../../src/api/users/schemas/passwordResetIntentResponseSchema.d.ts
1947
2003
  /**
1948
2004
  * Response schema for password reset intent creation.
1949
2005
  *
@@ -1956,7 +2012,7 @@ declare const passwordResetIntentResponseSchema: alepha1.TObject<{
1956
2012
  }>;
1957
2013
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
1958
2014
  //#endregion
1959
- //#region ../../src/api-users/services/CredentialService.d.ts
2015
+ //#region ../../src/api/users/services/CredentialService.d.ts
1960
2016
  /**
1961
2017
  * Intent stored in cache during the password reset flow.
1962
2018
  */
@@ -2051,7 +2107,7 @@ declare class CredentialService {
2051
2107
  resetPassword(email: string, token: string, newPassword: string, userRealmName?: string): Promise<void>;
2052
2108
  }
2053
2109
  //#endregion
2054
- //#region ../../src/api-users/schemas/completeRegistrationRequestSchema.d.ts
2110
+ //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
2055
2111
  declare const completeRegistrationRequestSchema: alepha1.TObject<{
2056
2112
  intentId: alepha1.TString;
2057
2113
  emailCode: alepha1.TOptional<alepha1.TString>;
@@ -2060,7 +2116,7 @@ declare const completeRegistrationRequestSchema: alepha1.TObject<{
2060
2116
  }>;
2061
2117
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
2062
2118
  //#endregion
2063
- //#region ../../src/api-users/schemas/registerRequestSchema.d.ts
2119
+ //#region ../../src/api/users/schemas/registerRequestSchema.d.ts
2064
2120
  /**
2065
2121
  * Schema for user registration request body.
2066
2122
  * Password is always required, other fields depend on realm settings.
@@ -2076,7 +2132,7 @@ declare const registerRequestSchema: alepha1.TObject<{
2076
2132
  }>;
2077
2133
  type RegisterRequest = Static<typeof registerRequestSchema>;
2078
2134
  //#endregion
2079
- //#region ../../src/api-users/schemas/registrationIntentResponseSchema.d.ts
2135
+ //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
2080
2136
  declare const registrationIntentResponseSchema: alepha1.TObject<{
2081
2137
  intentId: alepha1.TString;
2082
2138
  expectCaptcha: alepha1.TBoolean;
@@ -2086,7 +2142,7 @@ declare const registrationIntentResponseSchema: alepha1.TObject<{
2086
2142
  }>;
2087
2143
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
2088
2144
  //#endregion
2089
- //#region ../../src/api-users/services/RegistrationService.d.ts
2145
+ //#region ../../src/api/users/services/RegistrationService.d.ts
2090
2146
  /**
2091
2147
  * Intent stored in cache during the registration flow.
2092
2148
  */
@@ -2152,38 +2208,38 @@ declare class RegistrationService {
2152
2208
  protected verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
2153
2209
  }
2154
2210
  //#endregion
2155
- //#region ../../src/api-users/schemas/createUserSchema.d.ts
2211
+ //#region ../../src/api/users/schemas/createUserSchema.d.ts
2156
2212
  declare const createUserSchema: alepha1.TObject<{
2157
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2213
+ id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2214
+ version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2158
2215
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2216
+ createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2217
+ updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2218
+ username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2159
2219
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2220
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2160
2221
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2161
2222
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2162
2223
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2163
2224
  enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2164
2225
  emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2165
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2166
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2167
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2168
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2169
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2170
2226
  }>;
2171
2227
  type CreateUser = Static<typeof createUserSchema>;
2172
2228
  //#endregion
2173
- //#region ../../src/api-users/schemas/updateUserSchema.d.ts
2229
+ //#region ../../src/api/users/schemas/updateUserSchema.d.ts
2174
2230
  declare const updateUserSchema: alepha1.TObject<{
2175
2231
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2232
+ realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2176
2233
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2234
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2177
2235
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2178
2236
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2179
2237
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2180
2238
  enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2181
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2182
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2183
2239
  }>;
2184
2240
  type UpdateUser = Static<typeof updateUserSchema>;
2185
2241
  //#endregion
2186
- //#region ../../src/api-users/schemas/userQuerySchema.d.ts
2242
+ //#region ../../src/api/users/schemas/userQuerySchema.d.ts
2187
2243
  declare const userQuerySchema: alepha1.TObject<{
2188
2244
  page: alepha1.TOptional<alepha1.TInteger>;
2189
2245
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -2196,27 +2252,27 @@ declare const userQuerySchema: alepha1.TObject<{
2196
2252
  }>;
2197
2253
  type UserQuery = Static<typeof userQuerySchema>;
2198
2254
  //#endregion
2199
- //#region ../../src/api-users/services/UserService.d.ts
2255
+ //#region ../../src/api/users/services/UserService.d.ts
2200
2256
  declare class UserService {
2201
2257
  protected readonly log: alepha_logger0.Logger;
2202
2258
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
2203
2259
  protected readonly userNotifications: UserNotifications;
2204
2260
  protected readonly userRealmProvider: UserRealmProvider;
2205
- users(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
2206
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2207
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2208
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2209
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2210
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2261
+ users(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
2262
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2263
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2264
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2265
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2266
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2211
2267
  username: alepha1.TOptional<alepha1.TString>;
2212
2268
  email: alepha1.TOptional<alepha1.TString>;
2213
2269
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2214
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2270
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2215
2271
  firstName: alepha1.TOptional<alepha1.TString>;
2216
2272
  lastName: alepha1.TOptional<alepha1.TString>;
2217
2273
  picture: alepha1.TOptional<alepha1.TString>;
2218
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2219
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2274
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2275
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2220
2276
  }>>;
2221
2277
  /**
2222
2278
  * Request email verification for a user.
@@ -2257,7 +2313,7 @@ declare class UserService {
2257
2313
  deleteUser(id: string, userRealmName?: string): Promise<void>;
2258
2314
  }
2259
2315
  //#endregion
2260
- //#region ../../src/api-users/controllers/UserController.d.ts
2316
+ //#region ../../src/api/users/controllers/UserController.d.ts
2261
2317
  declare class UserController {
2262
2318
  protected readonly url = "/users";
2263
2319
  protected readonly group = "users";
@@ -2268,7 +2324,7 @@ declare class UserController {
2268
2324
  * Phase 1: Create a registration intent.
2269
2325
  * Validates data, creates verification sessions, and stores intent in cache.
2270
2326
  */
2271
- readonly createRegistrationIntent: alepha_server14.ActionPrimitiveFn<{
2327
+ readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2272
2328
  body: alepha1.TObject<{
2273
2329
  password: alepha1.TString;
2274
2330
  username: alepha1.TOptional<alepha1.TString>;
@@ -2292,7 +2348,7 @@ declare class UserController {
2292
2348
  /**
2293
2349
  * Find users with pagination and filtering.
2294
2350
  */
2295
- readonly findUsers: alepha_server14.ActionPrimitiveFn<{
2351
+ readonly findUsers: alepha_server0.ActionPrimitiveFn<{
2296
2352
  query: alepha1.TObject<{
2297
2353
  page: alepha1.TOptional<alepha1.TInteger>;
2298
2354
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -2305,26 +2361,26 @@ declare class UserController {
2305
2361
  userRealmName: alepha1.TOptional<alepha1.TString>;
2306
2362
  }>;
2307
2363
  response: alepha1.TPage<alepha1.TObject<{
2308
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2309
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2310
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2311
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2312
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2364
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2365
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2366
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2367
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2368
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2313
2369
  username: alepha1.TOptional<alepha1.TString>;
2314
2370
  email: alepha1.TOptional<alepha1.TString>;
2315
2371
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2316
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2372
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2317
2373
  firstName: alepha1.TOptional<alepha1.TString>;
2318
2374
  lastName: alepha1.TOptional<alepha1.TString>;
2319
2375
  picture: alepha1.TOptional<alepha1.TString>;
2320
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2321
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2376
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2377
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2322
2378
  }>>;
2323
2379
  }>;
2324
2380
  /**
2325
2381
  * Get a user by ID.
2326
2382
  */
2327
- readonly getUser: alepha_server14.ActionPrimitiveFn<{
2383
+ readonly getUser: alepha_server0.ActionPrimitiveFn<{
2328
2384
  params: alepha1.TObject<{
2329
2385
  id: alepha1.TString;
2330
2386
  }>;
@@ -2332,66 +2388,66 @@ declare class UserController {
2332
2388
  userRealmName: alepha1.TOptional<alepha1.TString>;
2333
2389
  }>;
2334
2390
  response: alepha1.TObject<{
2335
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2336
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2337
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2338
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2339
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2391
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2392
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2393
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2394
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2395
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2340
2396
  username: alepha1.TOptional<alepha1.TString>;
2341
2397
  email: alepha1.TOptional<alepha1.TString>;
2342
2398
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2343
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2399
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2344
2400
  firstName: alepha1.TOptional<alepha1.TString>;
2345
2401
  lastName: alepha1.TOptional<alepha1.TString>;
2346
2402
  picture: alepha1.TOptional<alepha1.TString>;
2347
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2348
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2403
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2404
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2349
2405
  }>;
2350
2406
  }>;
2351
2407
  /**
2352
2408
  * Create a new user.
2353
2409
  */
2354
- readonly createUser: alepha_server14.ActionPrimitiveFn<{
2410
+ readonly createUser: alepha_server0.ActionPrimitiveFn<{
2355
2411
  query: alepha1.TObject<{
2356
2412
  userRealmName: alepha1.TOptional<alepha1.TString>;
2357
2413
  }>;
2358
2414
  body: alepha1.TObject<{
2359
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2415
+ id: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>>;
2416
+ version: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>>;
2360
2417
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2418
+ createdAt: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>>;
2419
+ updatedAt: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>>;
2420
+ username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2361
2421
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2422
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2362
2423
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2363
2424
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2364
2425
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2365
- enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2366
- emailVerified: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2367
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2368
- id: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>>;
2369
- version: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>>;
2370
- createdAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
2371
- updatedAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
2426
+ enabled: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2427
+ emailVerified: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2372
2428
  }>;
2373
2429
  response: alepha1.TObject<{
2374
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2375
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2376
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2377
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2378
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2430
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2431
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2432
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2433
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2434
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2379
2435
  username: alepha1.TOptional<alepha1.TString>;
2380
2436
  email: alepha1.TOptional<alepha1.TString>;
2381
2437
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2382
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2438
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2383
2439
  firstName: alepha1.TOptional<alepha1.TString>;
2384
2440
  lastName: alepha1.TOptional<alepha1.TString>;
2385
2441
  picture: alepha1.TOptional<alepha1.TString>;
2386
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2387
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2442
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2443
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2388
2444
  }>;
2389
2445
  }>;
2390
2446
  /**
2391
2447
  * Phase 2: Complete registration using an intent.
2392
2448
  * Validates verification codes and creates the user.
2393
2449
  */
2394
- readonly createUserFromIntent: alepha_server14.ActionPrimitiveFn<{
2450
+ readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2395
2451
  body: alepha1.TObject<{
2396
2452
  intentId: alepha1.TString;
2397
2453
  emailCode: alepha1.TOptional<alepha1.TString>;
@@ -2399,26 +2455,26 @@ declare class UserController {
2399
2455
  captchaToken: alepha1.TOptional<alepha1.TString>;
2400
2456
  }>;
2401
2457
  response: alepha1.TObject<{
2402
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2403
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2404
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2405
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2406
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2458
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2459
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2460
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2461
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2462
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2407
2463
  username: alepha1.TOptional<alepha1.TString>;
2408
2464
  email: alepha1.TOptional<alepha1.TString>;
2409
2465
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2410
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2466
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2411
2467
  firstName: alepha1.TOptional<alepha1.TString>;
2412
2468
  lastName: alepha1.TOptional<alepha1.TString>;
2413
2469
  picture: alepha1.TOptional<alepha1.TString>;
2414
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2415
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2470
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2471
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2416
2472
  }>;
2417
2473
  }>;
2418
2474
  /**
2419
2475
  * Update a user.
2420
2476
  */
2421
- readonly updateUser: alepha_server14.ActionPrimitiveFn<{
2477
+ readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2422
2478
  params: alepha1.TObject<{
2423
2479
  id: alepha1.TString;
2424
2480
  }>;
@@ -2427,35 +2483,35 @@ declare class UserController {
2427
2483
  }>;
2428
2484
  body: alepha1.TObject<{
2429
2485
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2486
+ realm: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>>;
2430
2487
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2488
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2431
2489
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2432
2490
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2433
2491
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2434
- enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2435
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2436
- realm: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>>;
2492
+ enabled: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2437
2493
  }>;
2438
2494
  response: alepha1.TObject<{
2439
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2440
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2441
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2442
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2443
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2495
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2496
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2497
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2498
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2499
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2444
2500
  username: alepha1.TOptional<alepha1.TString>;
2445
2501
  email: alepha1.TOptional<alepha1.TString>;
2446
2502
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2447
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2503
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2448
2504
  firstName: alepha1.TOptional<alepha1.TString>;
2449
2505
  lastName: alepha1.TOptional<alepha1.TString>;
2450
2506
  picture: alepha1.TOptional<alepha1.TString>;
2451
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2452
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2507
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2508
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2453
2509
  }>;
2454
2510
  }>;
2455
2511
  /**
2456
2512
  * Delete a user.
2457
2513
  */
2458
- readonly deleteUser: alepha_server14.ActionPrimitiveFn<{
2514
+ readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2459
2515
  params: alepha1.TObject<{
2460
2516
  id: alepha1.TString;
2461
2517
  }>;
@@ -2472,7 +2528,7 @@ declare class UserController {
2472
2528
  * Phase 1: Create a password reset intent.
2473
2529
  * Validates email, sends verification code, and stores intent in cache.
2474
2530
  */
2475
- readonly createPasswordResetIntent: alepha_server14.ActionPrimitiveFn<{
2531
+ readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2476
2532
  query: alepha1.TObject<{
2477
2533
  userRealmName: alepha1.TOptional<alepha1.TString>;
2478
2534
  }>;
@@ -2488,7 +2544,7 @@ declare class UserController {
2488
2544
  * Phase 2: Complete password reset using an intent.
2489
2545
  * Validates verification code, updates password, and invalidates sessions.
2490
2546
  */
2491
- readonly completePasswordReset: alepha_server14.ActionPrimitiveFn<{
2547
+ readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2492
2548
  body: alepha1.TObject<{
2493
2549
  intentId: alepha1.TString;
2494
2550
  code: alepha1.TString;
@@ -2503,7 +2559,7 @@ declare class UserController {
2503
2559
  /**
2504
2560
  * @deprecated Use createPasswordResetIntent instead
2505
2561
  */
2506
- requestPasswordReset: alepha_server14.ActionPrimitiveFn<{
2562
+ requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2507
2563
  query: alepha1.TObject<{
2508
2564
  userRealmName: alepha1.TOptional<alepha1.TString>;
2509
2565
  }>;
@@ -2518,7 +2574,7 @@ declare class UserController {
2518
2574
  /**
2519
2575
  * @deprecated Use completePasswordReset instead
2520
2576
  */
2521
- validateResetToken: alepha_server14.ActionPrimitiveFn<{
2577
+ validateResetToken: alepha_server0.ActionPrimitiveFn<{
2522
2578
  query: alepha1.TObject<{
2523
2579
  email: alepha1.TString;
2524
2580
  token: alepha1.TString;
@@ -2532,7 +2588,7 @@ declare class UserController {
2532
2588
  /**
2533
2589
  * @deprecated Use completePasswordReset instead
2534
2590
  */
2535
- resetPassword: alepha_server14.ActionPrimitiveFn<{
2591
+ resetPassword: alepha_server0.ActionPrimitiveFn<{
2536
2592
  query: alepha1.TObject<{
2537
2593
  userRealmName: alepha1.TOptional<alepha1.TString>;
2538
2594
  }>;
@@ -2552,7 +2608,7 @@ declare class UserController {
2552
2608
  * @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
2553
2609
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
2554
2610
  */
2555
- requestEmailVerification: alepha_server14.ActionPrimitiveFn<{
2611
+ requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2556
2612
  query: alepha1.TObject<{
2557
2613
  userRealmName: alepha1.TOptional<alepha1.TString>;
2558
2614
  method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
@@ -2570,7 +2626,7 @@ declare class UserController {
2570
2626
  * Verify email with a valid token.
2571
2627
  * Updates the user's emailVerified status.
2572
2628
  */
2573
- verifyEmail: alepha_server14.ActionPrimitiveFn<{
2629
+ verifyEmail: alepha_server0.ActionPrimitiveFn<{
2574
2630
  query: alepha1.TObject<{
2575
2631
  userRealmName: alepha1.TOptional<alepha1.TString>;
2576
2632
  }>;
@@ -2586,7 +2642,7 @@ declare class UserController {
2586
2642
  /**
2587
2643
  * Check if an email is verified.
2588
2644
  */
2589
- checkEmailVerification: alepha_server14.ActionPrimitiveFn<{
2645
+ checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2590
2646
  query: alepha1.TObject<{
2591
2647
  email: alepha1.TString;
2592
2648
  userRealmName: alepha1.TOptional<alepha1.TString>;
@@ -2597,7 +2653,7 @@ declare class UserController {
2597
2653
  }>;
2598
2654
  }
2599
2655
  //#endregion
2600
- //#region ../../src/api-users/controllers/UserRealmController.d.ts
2656
+ //#region ../../src/api/users/controllers/UserRealmController.d.ts
2601
2657
  /**
2602
2658
  * Controller for exposing realm configuration.
2603
2659
  * Uses $route instead of $action to keep endpoints hidden from API documentation.
@@ -2606,17 +2662,19 @@ declare class UserRealmController {
2606
2662
  protected readonly url = "/realms";
2607
2663
  protected readonly userRealmProvider: UserRealmProvider;
2608
2664
  protected readonly serverAuthProvider: ServerAuthProvider;
2609
- protected readonly cryptoProvider: CryptoProvider;
2610
2665
  /**
2611
2666
  * Get realm configuration settings.
2612
2667
  * This endpoint is not exposed in the API documentation.
2613
2668
  */
2614
- readonly getRealmConfig: alepha_server14.ActionPrimitiveFn<{
2669
+ readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2615
2670
  query: alepha1.TObject<{
2616
2671
  userRealmName: alepha1.TOptional<alepha1.TString>;
2617
2672
  }>;
2618
2673
  response: alepha1.TObject<{
2619
2674
  settings: alepha1.TObject<{
2675
+ displayName: alepha1.TOptional<alepha1.TString>;
2676
+ description: alepha1.TOptional<alepha1.TString>;
2677
+ logoUrl: alepha1.TOptional<alepha1.TString>;
2620
2678
  registrationAllowed: alepha1.TBoolean;
2621
2679
  emailEnabled: alepha1.TBoolean;
2622
2680
  emailRequired: alepha1.TBoolean;
@@ -2644,7 +2702,7 @@ declare class UserRealmController {
2644
2702
  }>>;
2645
2703
  }>;
2646
2704
  }>;
2647
- readonly checkUsernameAvailability: alepha_server14.ActionPrimitiveFn<{
2705
+ readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2648
2706
  query: alepha1.TObject<{
2649
2707
  userRealmName: alepha1.TOptional<alepha1.TString>;
2650
2708
  }>;
@@ -2657,76 +2715,27 @@ declare class UserRealmController {
2657
2715
  }>;
2658
2716
  }
2659
2717
  //#endregion
2660
- //#region ../../src/api-users/primitives/$userRealm.d.ts
2661
- type UserRealmPrimitive = RealmPrimitive & WithLinkFn & WithLoginFn;
2662
- /**
2663
- * Already configured realm for user management.
2664
- *
2665
- * Realm contains two roles: `admin` and `user`.
2666
- *
2667
- * - `admin`: Has full access to all resources and permissions.
2668
- * - `user`: Has access to their own resources and permissions, but cannot access admin-level resources.
2669
- *
2670
- * Realm uses session management for handling user sessions.
2671
- *
2672
- * Environment Variables:
2673
- * - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
2674
- */
2675
- declare const $userRealm: (options?: UserRealmOptions) => UserRealmPrimitive;
2676
- interface UserRealmOptions {
2677
- /**
2678
- * Secret key for signing tokens.
2679
- *
2680
- * If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
2681
- */
2682
- secret?: string;
2683
- /**
2684
- * Realm configuration options.
2685
- *
2686
- * It's already pre-configured for user management with admin and user roles.
2687
- */
2688
- realm?: Partial<RealmPrimitiveOptions>;
2689
- /**
2690
- * Override entities.
2691
- */
2692
- entities?: {
2693
- users?: Repository<typeof users.schema>;
2694
- identities?: Repository<typeof identities.schema>;
2695
- sessions?: Repository<typeof sessions.schema>;
2696
- };
2697
- settings?: Partial<RealmAuthSettings>;
2698
- identities?: {
2699
- credentials?: true;
2700
- google?: true;
2701
- github?: true;
2702
- };
2703
- modules?: {
2704
- files?: boolean;
2705
- audits?: boolean;
2706
- };
2707
- }
2708
- //#endregion
2709
- //#region ../../src/api-users/schemas/identityResourceSchema.d.ts
2718
+ //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
2710
2719
  declare const identityResourceSchema: alepha1.TObject<{
2720
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2721
+ provider: alepha1.TString;
2711
2722
  id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2712
2723
  version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2713
2724
  createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2714
2725
  updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2715
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2716
- provider: alepha1.TString;
2717
2726
  providerUserId: alepha1.TOptional<alepha1.TString>;
2718
2727
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2719
2728
  }>;
2720
2729
  type IdentityResource = Static<typeof identityResourceSchema>;
2721
2730
  //#endregion
2722
- //#region ../../src/api-users/schemas/loginSchema.d.ts
2731
+ //#region ../../src/api/users/schemas/loginSchema.d.ts
2723
2732
  declare const loginSchema: alepha1.TObject<{
2724
2733
  username: alepha1.TString;
2725
2734
  password: alepha1.TString;
2726
2735
  }>;
2727
2736
  type LoginInput = Static<typeof loginSchema>;
2728
2737
  //#endregion
2729
- //#region ../../src/api-users/schemas/registerSchema.d.ts
2738
+ //#region ../../src/api/users/schemas/registerSchema.d.ts
2730
2739
  declare const registerSchema: alepha1.TObject<{
2731
2740
  username: alepha1.TString;
2732
2741
  email: alepha1.TString;
@@ -2737,7 +2746,7 @@ declare const registerSchema: alepha1.TObject<{
2737
2746
  }>;
2738
2747
  type RegisterInput = Static<typeof registerSchema>;
2739
2748
  //#endregion
2740
- //#region ../../src/api-users/schemas/resetPasswordSchema.d.ts
2749
+ //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
2741
2750
  declare const resetPasswordRequestSchema: alepha1.TObject<{
2742
2751
  email: alepha1.TString;
2743
2752
  }>;
@@ -2749,7 +2758,7 @@ declare const resetPasswordSchema: alepha1.TObject<{
2749
2758
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
2750
2759
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
2751
2760
  //#endregion
2752
- //#region ../../src/api-users/schemas/sessionResourceSchema.d.ts
2761
+ //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
2753
2762
  declare const sessionResourceSchema: alepha1.TObject<{
2754
2763
  id: alepha1.TString;
2755
2764
  version: alepha1.TNumber;
@@ -2767,9 +2776,12 @@ declare const sessionResourceSchema: alepha1.TObject<{
2767
2776
  }>;
2768
2777
  type SessionResource = Static<typeof sessionResourceSchema>;
2769
2778
  //#endregion
2770
- //#region ../../src/api-users/schemas/userRealmConfigSchema.d.ts
2779
+ //#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
2771
2780
  declare const userRealmConfigSchema: alepha1.TObject<{
2772
2781
  settings: alepha1.TObject<{
2782
+ displayName: alepha1.TOptional<alepha1.TString>;
2783
+ description: alepha1.TOptional<alepha1.TString>;
2784
+ logoUrl: alepha1.TOptional<alepha1.TString>;
2773
2785
  registrationAllowed: alepha1.TBoolean;
2774
2786
  emailEnabled: alepha1.TBoolean;
2775
2787
  emailRequired: alepha1.TBoolean;
@@ -2798,7 +2810,7 @@ declare const userRealmConfigSchema: alepha1.TObject<{
2798
2810
  }>;
2799
2811
  type UserRealmConfig = Static<typeof userRealmConfigSchema>;
2800
2812
  //#endregion
2801
- //#region ../../src/api-users/schemas/userResourceSchema.d.ts
2813
+ //#region ../../src/api/users/schemas/userResourceSchema.d.ts
2802
2814
  declare const userResourceSchema: alepha1.TObject<{
2803
2815
  id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2804
2816
  version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
@@ -2817,7 +2829,7 @@ declare const userResourceSchema: alepha1.TObject<{
2817
2829
  }>;
2818
2830
  type UserResource = Static<typeof userResourceSchema>;
2819
2831
  //#endregion
2820
- //#region ../../src/api-users/services/SessionService.d.ts
2832
+ //#region ../../src/api/users/services/SessionService.d.ts
2821
2833
  declare class SessionService {
2822
2834
  protected readonly alepha: Alepha;
2823
2835
  protected readonly fsp: FileSystemProvider;
@@ -2918,20 +2930,20 @@ declare class SessionService {
2918
2930
  }>;
2919
2931
  deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
2920
2932
  link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
2921
- username?: string | undefined;
2922
2933
  email?: string | undefined;
2934
+ username?: string | undefined;
2923
2935
  phoneNumber?: string | undefined;
2924
2936
  firstName?: string | undefined;
2925
2937
  lastName?: string | undefined;
2926
2938
  picture?: string | undefined;
2927
- enabled: boolean;
2928
- emailVerified: boolean;
2929
- roles: string[];
2930
2939
  id: string;
2931
2940
  version: number;
2932
2941
  createdAt: string;
2933
2942
  updatedAt: string;
2934
2943
  realm: string;
2944
+ roles: string[];
2945
+ enabled: boolean;
2946
+ emailVerified: boolean;
2935
2947
  } | {
2936
2948
  sub: string;
2937
2949
  email?: string;
@@ -2964,7 +2976,7 @@ declare class SessionService {
2964
2976
  }>;
2965
2977
  }
2966
2978
  //#endregion
2967
- //#region ../../src/api-users/index.d.ts
2979
+ //#region ../../src/api/users/index.d.ts
2968
2980
  /**
2969
2981
  * Provides user management API endpoints for Alepha applications.
2970
2982
  *