alepha 0.13.7 → 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 (424) 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 → api/audits}/index.browser.js +4 -4
  6. package/dist/api/audits/index.browser.js.map +1 -0
  7. package/dist/{api-audits → api/audits}/index.d.ts +8 -8
  8. package/dist/{api-audits → api/audits}/index.js +8 -8
  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 → api/parameters}/index.browser.js +2 -2
  26. package/dist/api/parameters/index.browser.js.map +1 -0
  27. package/dist/{api-parameters → api/parameters}/index.d.ts +7 -7
  28. package/dist/{api-parameters → api/parameters}/index.js +7 -7
  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 +844 -845
  33. package/dist/{api-users → api/users}/index.js +99 -766
  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 +11 -11
  39. package/dist/api/verifications/index.js.map +1 -0
  40. package/dist/cache/{index.d.ts → core/index.d.ts} +4 -4
  41. package/dist/cache/{index.js → core/index.js} +5 -5
  42. package/dist/cache/core/index.js.map +1 -0
  43. package/dist/{cache-redis → cache/redis}/index.d.ts +2 -2
  44. package/dist/{cache-redis → cache/redis}/index.js +2 -2
  45. package/dist/cache/redis/index.js.map +1 -0
  46. package/dist/cli/index.d.ts +34 -26
  47. package/dist/cli/index.js +75 -46
  48. package/dist/cli/index.js.map +1 -1
  49. package/dist/command/index.d.ts +4 -4
  50. package/dist/core/index.browser.js.map +1 -1
  51. package/dist/core/index.js.map +1 -1
  52. package/dist/core/index.native.js.map +1 -1
  53. package/dist/lock/{index.d.ts → core/index.d.ts} +5 -5
  54. package/dist/lock/{index.js → core/index.js} +5 -5
  55. package/dist/lock/core/index.js.map +1 -0
  56. package/dist/{lock-redis → lock/redis}/index.d.ts +2 -2
  57. package/dist/{lock-redis → lock/redis}/index.js +2 -2
  58. package/dist/lock/redis/index.js.map +1 -0
  59. package/dist/queue/core/index.d.ts +548 -0
  60. package/dist/queue/core/index.js +391 -0
  61. package/dist/queue/core/index.js.map +1 -0
  62. package/dist/queue/redis/index.d.ts +28 -0
  63. package/dist/queue/redis/index.js +43 -0
  64. package/dist/queue/redis/index.js.map +1 -0
  65. package/dist/scheduler/index.d.ts +1 -1
  66. package/dist/scheduler/index.js +1 -393
  67. package/dist/scheduler/index.js.map +1 -1
  68. package/dist/security/index.d.ts +1 -1
  69. package/dist/security/index.js +2 -1413
  70. package/dist/security/index.js.map +1 -1
  71. package/dist/{server-auth → server/auth}/index.browser.js +6 -6
  72. package/dist/server/auth/index.browser.js.map +1 -0
  73. package/dist/{server-auth → server/auth}/index.d.ts +167 -167
  74. package/dist/server/auth/index.js +742 -0
  75. package/dist/server/auth/index.js.map +1 -0
  76. package/dist/{server-cache → server/cache}/index.d.ts +2 -2
  77. package/dist/{server-cache → server/cache}/index.js +2 -2
  78. package/dist/server/cache/index.js.map +1 -0
  79. package/dist/{server-compress → server/compress}/index.d.ts +2 -2
  80. package/dist/{server-compress → server/compress}/index.js +2 -2
  81. package/dist/server/compress/index.js.map +1 -0
  82. package/dist/{server-cookies → server/cookies}/index.browser.js +3 -3
  83. package/dist/server/cookies/index.browser.js.map +1 -0
  84. package/dist/{server-cookies → server/cookies}/index.d.ts +4 -4
  85. package/dist/{server-cookies → server/cookies}/index.js +4 -4
  86. package/dist/server/cookies/index.js.map +1 -0
  87. package/dist/server/{index.browser.js → core/index.browser.js} +14 -14
  88. package/dist/server/core/index.browser.js.map +1 -0
  89. package/dist/server/{index.d.ts → core/index.d.ts} +36 -36
  90. package/dist/server/{index.js → core/index.js} +27 -27
  91. package/dist/server/core/index.js.map +1 -0
  92. package/dist/{server-cors → server/cors}/index.d.ts +3 -3
  93. package/dist/{server-cors → server/cors}/index.js +3 -3
  94. package/dist/server/cors/index.js.map +1 -0
  95. package/dist/{server-health → server/health}/index.d.ts +3 -3
  96. package/dist/{server-health → server/health}/index.js +3 -3
  97. package/dist/server/health/index.js.map +1 -0
  98. package/dist/{server-helmet → server/helmet}/index.d.ts +2 -2
  99. package/dist/{server-helmet → server/helmet}/index.js +2 -2
  100. package/dist/server/helmet/index.js.map +1 -0
  101. package/dist/{server-links → server/links}/index.browser.js +5 -5
  102. package/dist/server/links/index.browser.js.map +1 -0
  103. package/dist/{server-links → server/links}/index.d.ts +7 -7
  104. package/dist/{server-links → server/links}/index.js +7 -7
  105. package/dist/server/links/index.js.map +1 -0
  106. package/dist/{server-metrics → server/metrics}/index.d.ts +2 -2
  107. package/dist/server/metrics/index.js +74 -0
  108. package/dist/server/metrics/index.js.map +1 -0
  109. package/dist/{server-multipart → server/multipart}/index.d.ts +2 -2
  110. package/dist/{server-multipart → server/multipart}/index.js +2 -2
  111. package/dist/server/multipart/index.js.map +1 -0
  112. package/dist/{server-proxy → server/proxy}/index.d.ts +3 -3
  113. package/dist/{server-proxy → server/proxy}/index.js +3 -3
  114. package/dist/server/proxy/index.js.map +1 -0
  115. package/dist/{server-rate-limit → server/rate-limit}/index.d.ts +4 -4
  116. package/dist/{server-rate-limit → server/rate-limit}/index.js +4 -4
  117. package/dist/server/rate-limit/index.js.map +1 -0
  118. package/dist/{server-security → server/security}/index.browser.js +1 -1
  119. package/dist/server/security/index.browser.js.map +1 -0
  120. package/dist/{server-security → server/security}/index.d.ts +13 -13
  121. package/dist/{server-security → server/security}/index.js +4 -4
  122. package/dist/server/security/index.js.map +1 -0
  123. package/dist/{server-static → server/static}/index.d.ts +3 -3
  124. package/dist/{server-static → server/static}/index.js +3 -3
  125. package/dist/server/static/index.js.map +1 -0
  126. package/dist/{server-swagger → server/swagger}/index.d.ts +3 -3
  127. package/dist/{server-swagger → server/swagger}/index.js +4 -4
  128. package/dist/server/swagger/index.js.map +1 -0
  129. package/dist/topic/{index.d.ts → core/index.d.ts} +6 -6
  130. package/dist/topic/{index.js → core/index.js} +6 -6
  131. package/dist/topic/core/index.js.map +1 -0
  132. package/dist/{topic-redis → topic/redis}/index.d.ts +2 -2
  133. package/dist/{topic-redis → topic/redis}/index.js +2 -2
  134. package/dist/topic/redis/index.js.map +1 -0
  135. package/dist/vite/index.d.ts +11 -0
  136. package/dist/vite/index.js +12 -5
  137. package/dist/vite/index.js.map +1 -1
  138. package/package.json +156 -157
  139. package/src/{api-files → api/files}/index.ts +1 -0
  140. package/src/{api-parameters → api/parameters}/index.ts +1 -1
  141. package/src/{api-users → api/users}/primitives/$userRealm.ts +1 -1
  142. package/src/{api-users → api/users}/providers/UserRealmProvider.ts +6 -7
  143. package/src/{api-verifications → api/verifications}/index.ts +2 -0
  144. package/src/cli/apps/AlephaPackageBuilderCli.ts +73 -48
  145. package/src/cli/assets/appRouterTs.ts +1 -1
  146. package/src/cli/assets/biomeJson.ts +1 -1
  147. package/src/cli/assets/indexHtml.ts +1 -1
  148. package/src/cli/assets/mainBrowserTs.ts +1 -1
  149. package/src/cli/assets/viteConfigTs.ts +1 -1
  150. package/src/cli/commands/CoreCommands.ts +10 -6
  151. package/src/cli/commands/VerifyCommands.ts +4 -1
  152. package/src/cli/commands/ViteCommands.ts +20 -9
  153. package/src/cli/services/AlephaCliUtils.ts +29 -14
  154. package/src/core/providers/SchemaValidator.ts +1 -1
  155. package/src/queue/{index.ts → core/index.ts} +2 -3
  156. package/src/queue/{primitives → core/primitives}/$queue.ts +17 -162
  157. package/src/queue/core/providers/MemoryQueueProvider.ts +19 -0
  158. package/src/queue/core/providers/QueueProvider.ts +23 -0
  159. package/src/queue/core/providers/WorkerProvider.ts +244 -0
  160. package/src/queue/redis/providers/RedisQueueProvider.ts +31 -0
  161. package/src/server/{index.ts → core/index.ts} +1 -0
  162. package/src/{server-rate-limit → server/rate-limit}/index.ts +1 -1
  163. package/src/{server-swagger → server/swagger}/providers/ServerSwaggerProvider.ts +1 -0
  164. package/src/vite/tasks/copyAssets.ts +32 -8
  165. package/dist/api-audits/index.browser.js.map +0 -1
  166. package/dist/api-audits/index.js.map +0 -1
  167. package/dist/api-files/index.browser.js.map +0 -1
  168. package/dist/api-files/index.js.map +0 -1
  169. package/dist/api-jobs/index.browser.js.map +0 -1
  170. package/dist/api-jobs/index.js.map +0 -1
  171. package/dist/api-notifications/index.browser.js.map +0 -1
  172. package/dist/api-notifications/index.d.ts +0 -327
  173. package/dist/api-notifications/index.js.map +0 -1
  174. package/dist/api-parameters/index.browser.js.map +0 -1
  175. package/dist/api-parameters/index.js.map +0 -1
  176. package/dist/api-users/index.browser.js.map +0 -1
  177. package/dist/api-users/index.js.map +0 -1
  178. package/dist/api-verifications/index.browser.js.map +0 -1
  179. package/dist/api-verifications/index.d.ts +0 -229
  180. package/dist/api-verifications/index.js.map +0 -1
  181. package/dist/cache/index.js.map +0 -1
  182. package/dist/cache-redis/index.js.map +0 -1
  183. package/dist/lock/index.js.map +0 -1
  184. package/dist/lock-redis/index.js.map +0 -1
  185. package/dist/queue/index.d.ts +0 -1265
  186. package/dist/queue/index.js +0 -1037
  187. package/dist/queue/index.js.map +0 -1
  188. package/dist/queue-redis/index.d.ts +0 -82
  189. package/dist/queue-redis/index.js +0 -872
  190. package/dist/queue-redis/index.js.map +0 -1
  191. package/dist/server/index.browser.js.map +0 -1
  192. package/dist/server/index.js.map +0 -1
  193. package/dist/server-auth/index.browser.js.map +0 -1
  194. package/dist/server-auth/index.js +0 -1973
  195. package/dist/server-auth/index.js.map +0 -1
  196. package/dist/server-cache/index.js.map +0 -1
  197. package/dist/server-compress/index.js.map +0 -1
  198. package/dist/server-cookies/index.browser.js.map +0 -1
  199. package/dist/server-cookies/index.js.map +0 -1
  200. package/dist/server-cors/index.js.map +0 -1
  201. package/dist/server-health/index.js.map +0 -1
  202. package/dist/server-helmet/index.js.map +0 -1
  203. package/dist/server-links/index.browser.js.map +0 -1
  204. package/dist/server-links/index.js.map +0 -1
  205. package/dist/server-metrics/index.js +0 -4532
  206. package/dist/server-metrics/index.js.map +0 -1
  207. package/dist/server-multipart/index.js.map +0 -1
  208. package/dist/server-proxy/index.js.map +0 -1
  209. package/dist/server-rate-limit/index.js.map +0 -1
  210. package/dist/server-security/index.browser.js.map +0 -1
  211. package/dist/server-security/index.js.map +0 -1
  212. package/dist/server-static/index.js.map +0 -1
  213. package/dist/server-swagger/index.js.map +0 -1
  214. package/dist/topic/index.js.map +0 -1
  215. package/dist/topic-redis/index.js.map +0 -1
  216. package/src/queue/interfaces/QueueJob.ts +0 -459
  217. package/src/queue/providers/MemoryQueueProvider.ts +0 -850
  218. package/src/queue/providers/QueueProvider.ts +0 -319
  219. package/src/queue/providers/WorkerProvider.ts +0 -344
  220. package/src/queue-redis/providers/RedisQueueProvider.ts +0 -1209
  221. /package/src/{api-audits → api/audits}/controllers/AuditController.ts +0 -0
  222. /package/src/{api-audits → api/audits}/entities/audits.ts +0 -0
  223. /package/src/{api-audits → api/audits}/index.browser.ts +0 -0
  224. /package/src/{api-audits → api/audits}/index.ts +0 -0
  225. /package/src/{api-audits → api/audits}/primitives/$audit.ts +0 -0
  226. /package/src/{api-audits → api/audits}/schemas/auditQuerySchema.ts +0 -0
  227. /package/src/{api-audits → api/audits}/schemas/auditResourceSchema.ts +0 -0
  228. /package/src/{api-audits → api/audits}/schemas/createAuditSchema.ts +0 -0
  229. /package/src/{api-audits → api/audits}/services/AuditService.ts +0 -0
  230. /package/src/{api-files → api/files}/controllers/FileController.ts +0 -0
  231. /package/src/{api-files → api/files}/controllers/StorageStatsController.ts +0 -0
  232. /package/src/{api-files → api/files}/entities/files.ts +0 -0
  233. /package/src/{api-files → api/files}/index.browser.ts +0 -0
  234. /package/src/{api-files → api/files}/jobs/FileJobs.ts +0 -0
  235. /package/src/{api-files → api/files}/schemas/fileQuerySchema.ts +0 -0
  236. /package/src/{api-files → api/files}/schemas/fileResourceSchema.ts +0 -0
  237. /package/src/{api-files → api/files}/schemas/storageStatsSchema.ts +0 -0
  238. /package/src/{api-files → api/files}/services/FileService.ts +0 -0
  239. /package/src/{api-jobs → api/jobs}/controllers/JobController.ts +0 -0
  240. /package/src/{api-jobs → api/jobs}/entities/jobExecutions.ts +0 -0
  241. /package/src/{api-jobs → api/jobs}/index.browser.ts +0 -0
  242. /package/src/{api-jobs → api/jobs}/index.ts +0 -0
  243. /package/src/{api-jobs → api/jobs}/primitives/$job.ts +0 -0
  244. /package/src/{api-jobs → api/jobs}/providers/JobProvider.ts +0 -0
  245. /package/src/{api-jobs → api/jobs}/schemas/jobExecutionQuerySchema.ts +0 -0
  246. /package/src/{api-jobs → api/jobs}/schemas/jobExecutionResourceSchema.ts +0 -0
  247. /package/src/{api-jobs → api/jobs}/schemas/triggerJobSchema.ts +0 -0
  248. /package/src/{api-jobs → api/jobs}/services/JobService.ts +0 -0
  249. /package/src/{api-notifications → api/notifications}/controllers/NotificationController.ts +0 -0
  250. /package/src/{api-notifications → api/notifications}/entities/notifications.ts +0 -0
  251. /package/src/{api-notifications → api/notifications}/index.browser.ts +0 -0
  252. /package/src/{api-notifications → api/notifications}/index.ts +0 -0
  253. /package/src/{api-notifications → api/notifications}/jobs/NotificationJobs.ts +0 -0
  254. /package/src/{api-notifications → api/notifications}/primitives/$notification.ts +0 -0
  255. /package/src/{api-notifications → api/notifications}/queues/NotificationQueues.ts +0 -0
  256. /package/src/{api-notifications → api/notifications}/schemas/notificationContactPreferencesSchema.ts +0 -0
  257. /package/src/{api-notifications → api/notifications}/schemas/notificationContactSchema.ts +0 -0
  258. /package/src/{api-notifications → api/notifications}/schemas/notificationCreateSchema.ts +0 -0
  259. /package/src/{api-notifications → api/notifications}/schemas/notificationQuerySchema.ts +0 -0
  260. /package/src/{api-notifications → api/notifications}/services/NotificationSenderService.ts +0 -0
  261. /package/src/{api-notifications → api/notifications}/services/NotificationService.ts +0 -0
  262. /package/src/{api-parameters → api/parameters}/controllers/ConfigController.ts +0 -0
  263. /package/src/{api-parameters → api/parameters}/entities/parameters.ts +0 -0
  264. /package/src/{api-parameters → api/parameters}/index.browser.ts +0 -0
  265. /package/src/{api-parameters → api/parameters}/primitives/$config.ts +0 -0
  266. /package/src/{api-parameters → api/parameters}/schedulers/ConfigActivationScheduler.ts +0 -0
  267. /package/src/{api-parameters → api/parameters}/services/ConfigStore.ts +0 -0
  268. /package/src/{api-users → api/users}/atoms/realmAuthSettingsAtom.ts +0 -0
  269. /package/src/{api-users → api/users}/controllers/IdentityController.ts +0 -0
  270. /package/src/{api-users → api/users}/controllers/SessionController.ts +0 -0
  271. /package/src/{api-users → api/users}/controllers/UserController.ts +0 -0
  272. /package/src/{api-users → api/users}/controllers/UserRealmController.ts +0 -0
  273. /package/src/{api-users → api/users}/entities/identities.ts +0 -0
  274. /package/src/{api-users → api/users}/entities/sessions.ts +0 -0
  275. /package/src/{api-users → api/users}/entities/users.ts +0 -0
  276. /package/src/{api-users → api/users}/index.browser.ts +0 -0
  277. /package/src/{api-users → api/users}/index.ts +0 -0
  278. /package/src/{api-users → api/users}/notifications/UserNotifications.ts +0 -0
  279. /package/src/{api-users → api/users}/schemas/completePasswordResetRequestSchema.ts +0 -0
  280. /package/src/{api-users → api/users}/schemas/completeRegistrationRequestSchema.ts +0 -0
  281. /package/src/{api-users → api/users}/schemas/createUserSchema.ts +0 -0
  282. /package/src/{api-users → api/users}/schemas/identityQuerySchema.ts +0 -0
  283. /package/src/{api-users → api/users}/schemas/identityResourceSchema.ts +0 -0
  284. /package/src/{api-users → api/users}/schemas/loginSchema.ts +0 -0
  285. /package/src/{api-users → api/users}/schemas/passwordResetIntentResponseSchema.ts +0 -0
  286. /package/src/{api-users → api/users}/schemas/registerQuerySchema.ts +0 -0
  287. /package/src/{api-users → api/users}/schemas/registerRequestSchema.ts +0 -0
  288. /package/src/{api-users → api/users}/schemas/registerResponseSchema.ts +0 -0
  289. /package/src/{api-users → api/users}/schemas/registerSchema.ts +0 -0
  290. /package/src/{api-users → api/users}/schemas/registrationIntentResponseSchema.ts +0 -0
  291. /package/src/{api-users → api/users}/schemas/resetPasswordSchema.ts +0 -0
  292. /package/src/{api-users → api/users}/schemas/sessionQuerySchema.ts +0 -0
  293. /package/src/{api-users → api/users}/schemas/sessionResourceSchema.ts +0 -0
  294. /package/src/{api-users → api/users}/schemas/updateUserSchema.ts +0 -0
  295. /package/src/{api-users → api/users}/schemas/userQuerySchema.ts +0 -0
  296. /package/src/{api-users → api/users}/schemas/userRealmConfigSchema.ts +0 -0
  297. /package/src/{api-users → api/users}/schemas/userResourceSchema.ts +0 -0
  298. /package/src/{api-users → api/users}/services/CredentialService.ts +0 -0
  299. /package/src/{api-users → api/users}/services/IdentityService.ts +0 -0
  300. /package/src/{api-users → api/users}/services/RegistrationService.ts +0 -0
  301. /package/src/{api-users → api/users}/services/SessionCrudService.ts +0 -0
  302. /package/src/{api-users → api/users}/services/SessionService.ts +0 -0
  303. /package/src/{api-users → api/users}/services/UserService.ts +0 -0
  304. /package/src/{api-verifications → api/verifications}/controllers/VerificationController.ts +0 -0
  305. /package/src/{api-verifications → api/verifications}/entities/verifications.ts +0 -0
  306. /package/src/{api-verifications → api/verifications}/index.browser.ts +0 -0
  307. /package/src/{api-verifications → api/verifications}/jobs/VerificationJobs.ts +0 -0
  308. /package/src/{api-verifications → api/verifications}/parameters/VerificationParameters.ts +0 -0
  309. /package/src/{api-verifications → api/verifications}/schemas/requestVerificationCodeResponseSchema.ts +0 -0
  310. /package/src/{api-verifications → api/verifications}/schemas/validateVerificationCodeResponseSchema.ts +0 -0
  311. /package/src/{api-verifications → api/verifications}/schemas/verificationSettingsSchema.ts +0 -0
  312. /package/src/{api-verifications → api/verifications}/schemas/verificationTypeEnumSchema.ts +0 -0
  313. /package/src/{api-verifications → api/verifications}/services/VerificationService.ts +0 -0
  314. /package/src/cache/{errors → core/errors}/CacheError.ts +0 -0
  315. /package/src/cache/{index.ts → core/index.ts} +0 -0
  316. /package/src/cache/{primitives → core/primitives}/$cache.ts +0 -0
  317. /package/src/cache/{providers → core/providers}/CacheProvider.ts +0 -0
  318. /package/src/cache/{providers → core/providers}/MemoryCacheProvider.ts +0 -0
  319. /package/src/{cache-redis → cache/redis}/index.ts +0 -0
  320. /package/src/{cache-redis → cache/redis}/providers/RedisCacheProvider.ts +0 -0
  321. /package/src/lock/{index.ts → core/index.ts} +0 -0
  322. /package/src/lock/{primitives → core/primitives}/$lock.ts +0 -0
  323. /package/src/lock/{providers → core/providers}/LockProvider.ts +0 -0
  324. /package/src/lock/{providers → core/providers}/LockTopicProvider.ts +0 -0
  325. /package/src/lock/{providers → core/providers}/MemoryLockProvider.ts +0 -0
  326. /package/src/{lock-redis → lock/redis}/index.ts +0 -0
  327. /package/src/{lock-redis → lock/redis}/providers/RedisLockProvider.ts +0 -0
  328. /package/src/queue/{primitives → core/primitives}/$consumer.ts +0 -0
  329. /package/src/{queue-redis → queue/redis}/index.ts +0 -0
  330. /package/src/{server-auth → server/auth}/constants/routes.ts +0 -0
  331. /package/src/{server-auth → server/auth}/index.browser.ts +0 -0
  332. /package/src/{server-auth → server/auth}/index.shared.ts +0 -0
  333. /package/src/{server-auth → server/auth}/index.ts +0 -0
  334. /package/src/{server-auth → server/auth}/primitives/$auth.ts +0 -0
  335. /package/src/{server-auth → server/auth}/primitives/$authApple.ts +0 -0
  336. /package/src/{server-auth → server/auth}/primitives/$authCredentials.ts +0 -0
  337. /package/src/{server-auth → server/auth}/primitives/$authGithub.ts +0 -0
  338. /package/src/{server-auth → server/auth}/primitives/$authGoogle.ts +0 -0
  339. /package/src/{server-auth → server/auth}/providers/ServerAuthProvider.ts +0 -0
  340. /package/src/{server-auth → server/auth}/schemas/authenticationProviderSchema.ts +0 -0
  341. /package/src/{server-auth → server/auth}/schemas/tokenResponseSchema.ts +0 -0
  342. /package/src/{server-auth → server/auth}/schemas/tokensSchema.ts +0 -0
  343. /package/src/{server-auth → server/auth}/schemas/userinfoResponseSchema.ts +0 -0
  344. /package/src/{server-cache → server/cache}/index.ts +0 -0
  345. /package/src/{server-cache → server/cache}/providers/ServerCacheProvider.ts +0 -0
  346. /package/src/{server-compress → server/compress}/index.ts +0 -0
  347. /package/src/{server-compress → server/compress}/providers/ServerCompressProvider.ts +0 -0
  348. /package/src/{server-cookies → server/cookies}/index.browser.ts +0 -0
  349. /package/src/{server-cookies → server/cookies}/index.ts +0 -0
  350. /package/src/{server-cookies → server/cookies}/primitives/$cookie.browser.ts +0 -0
  351. /package/src/{server-cookies → server/cookies}/primitives/$cookie.ts +0 -0
  352. /package/src/{server-cookies → server/cookies}/providers/ServerCookiesProvider.ts +0 -0
  353. /package/src/{server-cookies → server/cookies}/services/CookieParser.ts +0 -0
  354. /package/src/server/{constants → core/constants}/routeMethods.ts +0 -0
  355. /package/src/server/{errors → core/errors}/BadRequestError.ts +0 -0
  356. /package/src/server/{errors → core/errors}/ConflictError.ts +0 -0
  357. /package/src/server/{errors → core/errors}/ForbiddenError.ts +0 -0
  358. /package/src/server/{errors → core/errors}/HttpError.ts +0 -0
  359. /package/src/server/{errors → core/errors}/NotFoundError.ts +0 -0
  360. /package/src/server/{errors → core/errors}/UnauthorizedError.ts +0 -0
  361. /package/src/server/{errors → core/errors}/ValidationError.ts +0 -0
  362. /package/src/server/{helpers → core/helpers}/ServerReply.ts +0 -0
  363. /package/src/server/{helpers → core/helpers}/isMultipart.ts +0 -0
  364. /package/src/server/{index.browser.ts → core/index.browser.ts} +0 -0
  365. /package/src/server/{index.shared.ts → core/index.shared.ts} +0 -0
  366. /package/src/server/{interfaces → core/interfaces}/ServerRequest.ts +0 -0
  367. /package/src/server/{primitives → core/primitives}/$action.ts +0 -0
  368. /package/src/server/{primitives → core/primitives}/$route.ts +0 -0
  369. /package/src/server/{providers → core/providers}/BunHttpServerProvider.ts +0 -0
  370. /package/src/server/{providers → core/providers}/NodeHttpServerProvider.ts +0 -0
  371. /package/src/server/{providers → core/providers}/ServerBodyParserProvider.ts +0 -0
  372. /package/src/server/{providers → core/providers}/ServerLoggerProvider.ts +0 -0
  373. /package/src/server/{providers → core/providers}/ServerNotReadyProvider.ts +0 -0
  374. /package/src/server/{providers → core/providers}/ServerProvider.ts +0 -0
  375. /package/src/server/{providers → core/providers}/ServerRouterProvider.ts +0 -0
  376. /package/src/server/{providers → core/providers}/ServerTimingProvider.ts +0 -0
  377. /package/src/server/{schemas → core/schemas}/errorSchema.ts +0 -0
  378. /package/src/server/{schemas → core/schemas}/okSchema.ts +0 -0
  379. /package/src/server/{services → core/services}/HttpClient.ts +0 -0
  380. /package/src/server/{services → core/services}/ServerRequestParser.ts +0 -0
  381. /package/src/server/{services → core/services}/UserAgentParser.ts +0 -0
  382. /package/src/{server-cors → server/cors}/index.ts +0 -0
  383. /package/src/{server-cors → server/cors}/primitives/$cors.ts +0 -0
  384. /package/src/{server-cors → server/cors}/providers/ServerCorsProvider.ts +0 -0
  385. /package/src/{server-health → server/health}/index.ts +0 -0
  386. /package/src/{server-health → server/health}/providers/ServerHealthProvider.ts +0 -0
  387. /package/src/{server-health → server/health}/schemas/healthSchema.ts +0 -0
  388. /package/src/{server-helmet → server/helmet}/index.ts +0 -0
  389. /package/src/{server-helmet → server/helmet}/providers/ServerHelmetProvider.ts +0 -0
  390. /package/src/{server-links → server/links}/index.browser.ts +0 -0
  391. /package/src/{server-links → server/links}/index.ts +0 -0
  392. /package/src/{server-links → server/links}/primitives/$client.ts +0 -0
  393. /package/src/{server-links → server/links}/primitives/$remote.ts +0 -0
  394. /package/src/{server-links → server/links}/providers/LinkProvider.ts +0 -0
  395. /package/src/{server-links → server/links}/providers/RemotePrimitiveProvider.ts +0 -0
  396. /package/src/{server-links → server/links}/providers/ServerLinksProvider.ts +0 -0
  397. /package/src/{server-links → server/links}/schemas/apiLinksResponseSchema.ts +0 -0
  398. /package/src/{server-metrics → server/metrics}/index.ts +0 -0
  399. /package/src/{server-metrics → server/metrics}/providers/ServerMetricsProvider.ts +0 -0
  400. /package/src/{server-multipart → server/multipart}/index.ts +0 -0
  401. /package/src/{server-multipart → server/multipart}/providers/ServerMultipartProvider.ts +0 -0
  402. /package/src/{server-proxy → server/proxy}/index.ts +0 -0
  403. /package/src/{server-proxy → server/proxy}/primitives/$proxy.ts +0 -0
  404. /package/src/{server-proxy → server/proxy}/providers/ServerProxyProvider.ts +0 -0
  405. /package/src/{server-rate-limit → server/rate-limit}/primitives/$rateLimit.ts +0 -0
  406. /package/src/{server-rate-limit → server/rate-limit}/providers/ServerRateLimitProvider.ts +0 -0
  407. /package/src/{server-security → server/security}/index.browser.ts +0 -0
  408. /package/src/{server-security → server/security}/index.ts +0 -0
  409. /package/src/{server-security → server/security}/primitives/$basicAuth.ts +0 -0
  410. /package/src/{server-security → server/security}/providers/ServerBasicAuthProvider.ts +0 -0
  411. /package/src/{server-security → server/security}/providers/ServerSecurityProvider.ts +0 -0
  412. /package/src/{server-static → server/static}/index.ts +0 -0
  413. /package/src/{server-static → server/static}/primitives/$serve.ts +0 -0
  414. /package/src/{server-static → server/static}/providers/ServerStaticProvider.ts +0 -0
  415. /package/src/{server-swagger → server/swagger}/index.ts +0 -0
  416. /package/src/{server-swagger → server/swagger}/primitives/$swagger.ts +0 -0
  417. /package/src/topic/{errors → core/errors}/TopicTimeoutError.ts +0 -0
  418. /package/src/topic/{index.ts → core/index.ts} +0 -0
  419. /package/src/topic/{primitives → core/primitives}/$subscriber.ts +0 -0
  420. /package/src/topic/{primitives → core/primitives}/$topic.ts +0 -0
  421. /package/src/topic/{providers → core/providers}/MemoryTopicProvider.ts +0 -0
  422. /package/src/topic/{providers → core/providers}/TopicProvider.ts +0 -0
  423. /package/src/{topic-redis → topic/redis}/index.ts +0 -0
  424. /package/src/{topic-redis → topic/redis}/providers/RedisTopicProvider.ts +0 -0
@@ -1,12 +1,11 @@
1
- import * as alepha23 from "alepha";
2
- import { Alepha, AlephaError, KIND, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
1
+ import * as alepha1 from "alepha";
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_orm204 from "alepha/orm";
5
+ import * as alepha_orm179 from "alepha/orm";
6
6
  import { Page as Page$1, Repository } from "alepha/orm";
7
7
  import * as alepha_server0 from "alepha/server";
8
- import * as alepha_logger1 from "alepha/logger";
9
- import { UserRealmOptions as UserRealmOptions$1 } from "alepha/api/users";
8
+ import * as alepha_logger0 from "alepha/logger";
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,86 +26,136 @@ 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
31
- declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
32
- displayName: alepha23.TOptional<alepha23.TString>;
33
- description: alepha23.TOptional<alepha23.TString>;
34
- logoUrl: alepha23.TOptional<alepha23.TString>;
35
- registrationAllowed: alepha23.TBoolean;
36
- emailEnabled: alepha23.TBoolean;
37
- emailRequired: alepha23.TBoolean;
38
- usernameEnabled: alepha23.TBoolean;
39
- usernameRequired: alepha23.TBoolean;
40
- phoneEnabled: alepha23.TBoolean;
41
- phoneRequired: alepha23.TBoolean;
42
- verifyEmailRequired: alepha23.TBoolean;
43
- verifyPhoneRequired: alepha23.TBoolean;
44
- firstNameLastNameEnabled: alepha23.TBoolean;
45
- firstNameLastNameRequired: alepha23.TBoolean;
46
- resetPasswordAllowed: alepha23.TBoolean;
47
- passwordPolicy: alepha23.TObject<{
48
- minLength: alepha23.TInteger;
49
- requireUppercase: alepha23.TBoolean;
50
- requireLowercase: alepha23.TBoolean;
51
- requireNumbers: alepha23.TBoolean;
52
- requireSpecialCharacters: alepha23.TBoolean;
29
+ //#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
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>;
34
+ registrationAllowed: alepha1.TBoolean;
35
+ emailEnabled: alepha1.TBoolean;
36
+ emailRequired: alepha1.TBoolean;
37
+ usernameEnabled: alepha1.TBoolean;
38
+ usernameRequired: alepha1.TBoolean;
39
+ phoneEnabled: alepha1.TBoolean;
40
+ phoneRequired: alepha1.TBoolean;
41
+ verifyEmailRequired: alepha1.TBoolean;
42
+ verifyPhoneRequired: alepha1.TBoolean;
43
+ firstNameLastNameEnabled: alepha1.TBoolean;
44
+ firstNameLastNameRequired: alepha1.TBoolean;
45
+ resetPasswordAllowed: alepha1.TBoolean;
46
+ passwordPolicy: alepha1.TObject<{
47
+ minLength: alepha1.TInteger;
48
+ requireUppercase: alepha1.TBoolean;
49
+ requireLowercase: alepha1.TBoolean;
50
+ requireNumbers: alepha1.TBoolean;
51
+ requireSpecialCharacters: alepha1.TBoolean;
53
52
  }>;
54
53
  }>, "alepha.api.users.realmAuthSettings">;
55
54
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
56
55
  //#endregion
57
- //#region ../../src/api-users/entities/identities.d.ts
58
- declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
59
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
60
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
61
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
62
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
63
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
64
- password: alepha23.TOptional<alepha23.TString>;
65
- provider: alepha23.TString;
66
- providerUserId: alepha23.TOptional<alepha23.TString>;
67
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
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>;
63
+ password: alepha1.TOptional<alepha1.TString>;
64
+ provider: alepha1.TString;
65
+ providerUserId: alepha1.TOptional<alepha1.TString>;
66
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
68
67
  }>>;
69
68
  type IdentityEntity = Static<typeof identities.schema>;
70
69
  //#endregion
71
- //#region ../../src/api-users/entities/sessions.d.ts
72
- declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
73
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
74
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
75
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
76
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
77
- refreshToken: alepha23.TString;
78
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
79
- expiresAt: alepha23.TString;
80
- ip: alepha23.TOptional<alepha23.TString>;
81
- userAgent: alepha23.TOptional<alepha23.TObject<{
82
- os: alepha23.TString;
83
- browser: alepha23.TString;
84
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
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>;
76
+ refreshToken: alepha1.TString;
77
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
78
+ expiresAt: alepha1.TString;
79
+ ip: alepha1.TOptional<alepha1.TString>;
80
+ userAgent: alepha1.TOptional<alepha1.TObject<{
81
+ os: alepha1.TString;
82
+ browser: alepha1.TString;
83
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
85
84
  }>>;
86
85
  }>>;
87
86
  type SessionEntity = Static<typeof sessions.schema>;
88
87
  //#endregion
89
- //#region ../../src/api-users/entities/users.d.ts
88
+ //#region ../../src/api/users/entities/users.d.ts
90
89
  declare const DEFAULT_USER_REALM_NAME = "default";
91
- declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
92
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
93
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
94
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
95
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
96
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
97
- username: alepha23.TOptional<alepha23.TString>;
98
- email: alepha23.TOptional<alepha23.TString>;
99
- phoneNumber: alepha23.TOptional<alepha23.TString>;
100
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
101
- firstName: alepha23.TOptional<alepha23.TString>;
102
- lastName: alepha23.TOptional<alepha23.TString>;
103
- picture: alepha23.TOptional<alepha23.TString>;
104
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
105
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.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>;
96
+ username: alepha1.TOptional<alepha1.TString>;
97
+ email: alepha1.TOptional<alepha1.TString>;
98
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
99
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
100
+ firstName: alepha1.TOptional<alepha1.TString>;
101
+ lastName: alepha1.TOptional<alepha1.TString>;
102
+ picture: alepha1.TOptional<alepha1.TString>;
103
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
104
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
106
105
  }>>;
107
106
  type UserEntity = Static<typeof users.schema>;
108
107
  //#endregion
109
- //#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
110
159
  interface UserRealmRepositories {
111
160
  identities: Repository<typeof identities.schema>;
112
161
  sessions: Repository<typeof sessions.schema>;
@@ -119,52 +168,52 @@ interface UserRealm {
119
168
  }
120
169
  declare class UserRealmProvider {
121
170
  protected readonly alepha: Alepha;
122
- protected readonly defaultIdentities: Repository<alepha23.TObject<{
123
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
124
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
125
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
126
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
127
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
128
- password: alepha23.TOptional<alepha23.TString>;
129
- provider: alepha23.TString;
130
- providerUserId: alepha23.TOptional<alepha23.TString>;
131
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
171
+ protected readonly defaultIdentities: Repository<alepha1.TObject<{
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>;
177
+ password: alepha1.TOptional<alepha1.TString>;
178
+ provider: alepha1.TString;
179
+ providerUserId: alepha1.TOptional<alepha1.TString>;
180
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
132
181
  }>>;
133
- protected readonly defaultSessions: Repository<alepha23.TObject<{
134
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
135
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
136
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
137
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
138
- refreshToken: alepha23.TString;
139
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
140
- expiresAt: alepha23.TString;
141
- ip: alepha23.TOptional<alepha23.TString>;
142
- userAgent: alepha23.TOptional<alepha23.TObject<{
143
- os: alepha23.TString;
144
- browser: alepha23.TString;
145
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
182
+ protected readonly defaultSessions: Repository<alepha1.TObject<{
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>;
187
+ refreshToken: alepha1.TString;
188
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
189
+ expiresAt: alepha1.TString;
190
+ ip: alepha1.TOptional<alepha1.TString>;
191
+ userAgent: alepha1.TOptional<alepha1.TObject<{
192
+ os: alepha1.TString;
193
+ browser: alepha1.TString;
194
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
146
195
  }>>;
147
196
  }>>;
148
- protected readonly defaultUsers: Repository<alepha23.TObject<{
149
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
150
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
151
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
152
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
153
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
154
- username: alepha23.TOptional<alepha23.TString>;
155
- email: alepha23.TOptional<alepha23.TString>;
156
- phoneNumber: alepha23.TOptional<alepha23.TString>;
157
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
158
- firstName: alepha23.TOptional<alepha23.TString>;
159
- lastName: alepha23.TOptional<alepha23.TString>;
160
- picture: alepha23.TOptional<alepha23.TString>;
161
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
162
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
197
+ protected readonly defaultUsers: Repository<alepha1.TObject<{
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>;
203
+ username: alepha1.TOptional<alepha1.TString>;
204
+ email: alepha1.TOptional<alepha1.TString>;
205
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
206
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
207
+ firstName: alepha1.TOptional<alepha1.TString>;
208
+ lastName: alepha1.TOptional<alepha1.TString>;
209
+ picture: alepha1.TOptional<alepha1.TString>;
210
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
211
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
163
212
  }>>;
164
213
  protected realms: Map<string, UserRealm>;
165
214
  avatars: alepha_bucket0.BucketPrimitive;
166
- protected readonly onConfigure: alepha23.HookPrimitive<"configure">;
167
- register(userRealmName: string, userRealmOptions?: UserRealmOptions$1): UserRealm;
215
+ protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
216
+ register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
168
217
  /**
169
218
  * Gets a registered realm by name, auto-creating default if needed.
170
219
  */
@@ -174,30 +223,30 @@ declare class UserRealmProvider {
174
223
  userRepository(userRealmName?: string): Repository<typeof users.schema>;
175
224
  }
176
225
  //#endregion
177
- //#region ../../src/api-users/schemas/identityQuerySchema.d.ts
178
- declare const identityQuerySchema: alepha23.TObject<{
179
- page: alepha23.TOptional<alepha23.TInteger>;
180
- size: alepha23.TOptional<alepha23.TInteger>;
181
- sort: alepha23.TOptional<alepha23.TString>;
182
- userId: alepha23.TOptional<alepha23.TString>;
183
- provider: alepha23.TOptional<alepha23.TString>;
226
+ //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
227
+ declare const identityQuerySchema: alepha1.TObject<{
228
+ page: alepha1.TOptional<alepha1.TInteger>;
229
+ size: alepha1.TOptional<alepha1.TInteger>;
230
+ sort: alepha1.TOptional<alepha1.TString>;
231
+ userId: alepha1.TOptional<alepha1.TString>;
232
+ provider: alepha1.TOptional<alepha1.TString>;
184
233
  }>;
185
234
  type IdentityQuery = Static<typeof identityQuerySchema>;
186
235
  //#endregion
187
- //#region ../../src/api-users/services/IdentityService.d.ts
236
+ //#region ../../src/api/users/services/IdentityService.d.ts
188
237
  declare class IdentityService {
189
- protected readonly log: alepha_logger1.Logger;
238
+ protected readonly log: alepha_logger0.Logger;
190
239
  protected readonly userRealmProvider: UserRealmProvider;
191
- identities(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
192
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
193
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
194
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
195
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
196
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
197
- password: alepha23.TOptional<alepha23.TString>;
198
- provider: alepha23.TString;
199
- providerUserId: alepha23.TOptional<alepha23.TString>;
200
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
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>;
246
+ password: alepha1.TOptional<alepha1.TString>;
247
+ provider: alepha1.TString;
248
+ providerUserId: alepha1.TOptional<alepha1.TString>;
249
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
201
250
  }>>;
202
251
  /**
203
252
  * Find identities with pagination and filtering.
@@ -213,7 +262,7 @@ declare class IdentityService {
213
262
  deleteIdentity(id: string, userRealmName?: string): Promise<void>;
214
263
  }
215
264
  //#endregion
216
- //#region ../../src/api-users/controllers/IdentityController.d.ts
265
+ //#region ../../src/api/users/controllers/IdentityController.d.ts
217
266
  declare class IdentityController {
218
267
  protected readonly url = "/identities";
219
268
  protected readonly group = "identities";
@@ -222,90 +271,90 @@ declare class IdentityController {
222
271
  * Find identities with pagination and filtering.
223
272
  */
224
273
  readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
225
- query: alepha23.TObject<{
226
- page: alepha23.TOptional<alepha23.TInteger>;
227
- size: alepha23.TOptional<alepha23.TInteger>;
228
- sort: alepha23.TOptional<alepha23.TString>;
229
- userId: alepha23.TOptional<alepha23.TString>;
230
- provider: alepha23.TOptional<alepha23.TString>;
231
- userRealmName: alepha23.TOptional<alepha23.TString>;
274
+ query: alepha1.TObject<{
275
+ page: alepha1.TOptional<alepha1.TInteger>;
276
+ size: alepha1.TOptional<alepha1.TInteger>;
277
+ sort: alepha1.TOptional<alepha1.TString>;
278
+ userId: alepha1.TOptional<alepha1.TString>;
279
+ provider: alepha1.TOptional<alepha1.TString>;
280
+ userRealmName: alepha1.TOptional<alepha1.TString>;
232
281
  }>;
233
- response: alepha23.TPage<alepha23.TObject<{
234
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
235
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
236
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
237
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
238
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
239
- provider: alepha23.TString;
240
- providerUserId: alepha23.TOptional<alepha23.TString>;
241
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
282
+ response: alepha1.TPage<alepha1.TObject<{
283
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
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>;
289
+ providerUserId: alepha1.TOptional<alepha1.TString>;
290
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
242
291
  }>>;
243
292
  }>;
244
293
  /**
245
294
  * Get an identity by ID.
246
295
  */
247
296
  readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
248
- params: alepha23.TObject<{
249
- id: alepha23.TString;
297
+ params: alepha1.TObject<{
298
+ id: alepha1.TString;
250
299
  }>;
251
- query: alepha23.TObject<{
252
- userRealmName: alepha23.TOptional<alepha23.TString>;
300
+ query: alepha1.TObject<{
301
+ userRealmName: alepha1.TOptional<alepha1.TString>;
253
302
  }>;
254
- response: alepha23.TObject<{
255
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
256
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
257
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
258
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
259
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
260
- provider: alepha23.TString;
261
- providerUserId: alepha23.TOptional<alepha23.TString>;
262
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
303
+ response: alepha1.TObject<{
304
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
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>;
310
+ providerUserId: alepha1.TOptional<alepha1.TString>;
311
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
263
312
  }>;
264
313
  }>;
265
314
  /**
266
315
  * Delete an identity.
267
316
  */
268
317
  readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
269
- params: alepha23.TObject<{
270
- id: alepha23.TString;
318
+ params: alepha1.TObject<{
319
+ id: alepha1.TString;
271
320
  }>;
272
- query: alepha23.TObject<{
273
- userRealmName: alepha23.TOptional<alepha23.TString>;
321
+ query: alepha1.TObject<{
322
+ userRealmName: alepha1.TOptional<alepha1.TString>;
274
323
  }>;
275
- response: alepha23.TObject<{
276
- ok: alepha23.TBoolean;
277
- id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
278
- count: alepha23.TOptional<alepha23.TNumber>;
324
+ response: alepha1.TObject<{
325
+ ok: alepha1.TBoolean;
326
+ id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
327
+ count: alepha1.TOptional<alepha1.TNumber>;
279
328
  }>;
280
329
  }>;
281
330
  }
282
331
  //#endregion
283
- //#region ../../src/api-users/schemas/sessionQuerySchema.d.ts
284
- declare const sessionQuerySchema: alepha23.TObject<{
285
- page: alepha23.TOptional<alepha23.TInteger>;
286
- size: alepha23.TOptional<alepha23.TInteger>;
287
- sort: alepha23.TOptional<alepha23.TString>;
288
- userId: alepha23.TOptional<alepha23.TString>;
332
+ //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
333
+ declare const sessionQuerySchema: alepha1.TObject<{
334
+ page: alepha1.TOptional<alepha1.TInteger>;
335
+ size: alepha1.TOptional<alepha1.TInteger>;
336
+ sort: alepha1.TOptional<alepha1.TString>;
337
+ userId: alepha1.TOptional<alepha1.TString>;
289
338
  }>;
290
339
  type SessionQuery = Static<typeof sessionQuerySchema>;
291
340
  //#endregion
292
- //#region ../../src/api-users/services/SessionCrudService.d.ts
341
+ //#region ../../src/api/users/services/SessionCrudService.d.ts
293
342
  declare class SessionCrudService {
294
- protected readonly log: alepha_logger1.Logger;
343
+ protected readonly log: alepha_logger0.Logger;
295
344
  protected readonly userRealmProvider: UserRealmProvider;
296
- sessions(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
297
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
298
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
299
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
300
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
301
- refreshToken: alepha23.TString;
302
- userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
303
- expiresAt: alepha23.TString;
304
- ip: alepha23.TOptional<alepha23.TString>;
305
- userAgent: alepha23.TOptional<alepha23.TObject<{
306
- os: alepha23.TString;
307
- browser: alepha23.TString;
308
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
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>;
350
+ refreshToken: alepha1.TString;
351
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
352
+ expiresAt: alepha1.TString;
353
+ ip: alepha1.TOptional<alepha1.TString>;
354
+ userAgent: alepha1.TOptional<alepha1.TObject<{
355
+ os: alepha1.TString;
356
+ browser: alepha1.TString;
357
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
309
358
  }>>;
310
359
  }>>;
311
360
  /**
@@ -322,7 +371,7 @@ declare class SessionCrudService {
322
371
  deleteSession(id: string, userRealmName?: string): Promise<void>;
323
372
  }
324
373
  //#endregion
325
- //#region ../../src/api-users/controllers/SessionController.d.ts
374
+ //#region ../../src/api/users/controllers/SessionController.d.ts
326
375
  declare class SessionController {
327
376
  protected readonly url = "/sessions";
328
377
  protected readonly group = "sessions";
@@ -331,26 +380,26 @@ declare class SessionController {
331
380
  * Find sessions with pagination and filtering.
332
381
  */
333
382
  readonly findSessions: alepha_server0.ActionPrimitiveFn<{
334
- query: alepha23.TObject<{
335
- page: alepha23.TOptional<alepha23.TInteger>;
336
- size: alepha23.TOptional<alepha23.TInteger>;
337
- sort: alepha23.TOptional<alepha23.TString>;
338
- userId: alepha23.TOptional<alepha23.TString>;
339
- userRealmName: alepha23.TOptional<alepha23.TString>;
383
+ query: alepha1.TObject<{
384
+ page: alepha1.TOptional<alepha1.TInteger>;
385
+ size: alepha1.TOptional<alepha1.TInteger>;
386
+ sort: alepha1.TOptional<alepha1.TString>;
387
+ userId: alepha1.TOptional<alepha1.TString>;
388
+ userRealmName: alepha1.TOptional<alepha1.TString>;
340
389
  }>;
341
- response: alepha23.TPage<alepha23.TObject<{
342
- id: alepha23.TString;
343
- version: alepha23.TNumber;
344
- createdAt: alepha23.TString;
345
- updatedAt: alepha23.TString;
346
- refreshToken: alepha23.TString;
347
- userId: alepha23.TString;
348
- expiresAt: alepha23.TString;
349
- ip: alepha23.TOptional<alepha23.TString>;
350
- userAgent: alepha23.TOptional<alepha23.TObject<{
351
- os: alepha23.TString;
352
- browser: alepha23.TString;
353
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
390
+ response: alepha1.TPage<alepha1.TObject<{
391
+ id: alepha1.TString;
392
+ version: alepha1.TNumber;
393
+ createdAt: alepha1.TString;
394
+ updatedAt: alepha1.TString;
395
+ refreshToken: alepha1.TString;
396
+ userId: alepha1.TString;
397
+ expiresAt: alepha1.TString;
398
+ ip: alepha1.TOptional<alepha1.TString>;
399
+ userAgent: alepha1.TOptional<alepha1.TObject<{
400
+ os: alepha1.TString;
401
+ browser: alepha1.TString;
402
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
354
403
  }>>;
355
404
  }>>;
356
405
  }>;
@@ -358,25 +407,25 @@ declare class SessionController {
358
407
  * Get a session by ID.
359
408
  */
360
409
  readonly getSession: alepha_server0.ActionPrimitiveFn<{
361
- params: alepha23.TObject<{
362
- id: alepha23.TString;
410
+ params: alepha1.TObject<{
411
+ id: alepha1.TString;
363
412
  }>;
364
- query: alepha23.TObject<{
365
- userRealmName: alepha23.TOptional<alepha23.TString>;
413
+ query: alepha1.TObject<{
414
+ userRealmName: alepha1.TOptional<alepha1.TString>;
366
415
  }>;
367
- response: alepha23.TObject<{
368
- id: alepha23.TString;
369
- version: alepha23.TNumber;
370
- createdAt: alepha23.TString;
371
- updatedAt: alepha23.TString;
372
- refreshToken: alepha23.TString;
373
- userId: alepha23.TString;
374
- expiresAt: alepha23.TString;
375
- ip: alepha23.TOptional<alepha23.TString>;
376
- userAgent: alepha23.TOptional<alepha23.TObject<{
377
- os: alepha23.TString;
378
- browser: alepha23.TString;
379
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
416
+ response: alepha1.TObject<{
417
+ id: alepha1.TString;
418
+ version: alepha1.TNumber;
419
+ createdAt: alepha1.TString;
420
+ updatedAt: alepha1.TString;
421
+ refreshToken: alepha1.TString;
422
+ userId: alepha1.TString;
423
+ expiresAt: alepha1.TString;
424
+ ip: alepha1.TOptional<alepha1.TString>;
425
+ userAgent: alepha1.TOptional<alepha1.TObject<{
426
+ os: alepha1.TString;
427
+ browser: alepha1.TString;
428
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
380
429
  }>>;
381
430
  }>;
382
431
  }>;
@@ -384,16 +433,16 @@ declare class SessionController {
384
433
  * Delete a session.
385
434
  */
386
435
  readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
387
- params: alepha23.TObject<{
388
- id: alepha23.TString;
436
+ params: alepha1.TObject<{
437
+ id: alepha1.TString;
389
438
  }>;
390
- query: alepha23.TObject<{
391
- userRealmName: alepha23.TOptional<alepha23.TString>;
439
+ query: alepha1.TObject<{
440
+ userRealmName: alepha1.TOptional<alepha1.TString>;
392
441
  }>;
393
- response: alepha23.TObject<{
394
- ok: alepha23.TBoolean;
395
- id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
396
- count: alepha23.TOptional<alepha23.TNumber>;
442
+ response: alepha1.TObject<{
443
+ ok: alepha1.TBoolean;
444
+ id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
445
+ count: alepha1.TOptional<alepha1.TNumber>;
397
446
  }>;
398
447
  }>;
399
448
  }
@@ -1253,7 +1302,7 @@ declare abstract class ModelBuilder {
1253
1302
  //#endregion
1254
1303
  //#region ../../src/orm/providers/DrizzleKitProvider.d.ts
1255
1304
  declare class DrizzleKitProvider {
1256
- protected readonly log: alepha_logger1.Logger;
1305
+ protected readonly log: alepha_logger0.Logger;
1257
1306
  protected readonly alepha: Alepha;
1258
1307
  /**
1259
1308
  * Synchronize database with current schema definitions.
@@ -1289,11 +1338,11 @@ declare class DrizzleKitProvider {
1289
1338
  */
1290
1339
  importDrizzleKit(): typeof DrizzleKit;
1291
1340
  }
1292
- declare const devMigrationsSchema: alepha23.TObject<{
1293
- id: alepha23.TNumber;
1294
- name: alepha23.TString;
1295
- snapshot: alepha23.TString;
1296
- created_at: alepha23.TString;
1341
+ declare const devMigrationsSchema: alepha1.TObject<{
1342
+ id: alepha1.TNumber;
1343
+ name: alepha1.TString;
1344
+ snapshot: alepha1.TString;
1345
+ created_at: alepha1.TString;
1297
1346
  }>;
1298
1347
  type DevMigrations = Static<typeof devMigrationsSchema>;
1299
1348
  //#endregion
@@ -1301,7 +1350,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
1301
1350
  type SQLLike = SQLWrapper | string;
1302
1351
  declare abstract class DatabaseProvider {
1303
1352
  protected readonly alepha: Alepha;
1304
- protected readonly log: alepha_logger1.Logger;
1353
+ protected readonly log: alepha_logger0.Logger;
1305
1354
  protected abstract readonly builder: ModelBuilder;
1306
1355
  protected abstract readonly kit: DrizzleKitProvider;
1307
1356
  abstract readonly db: PgDatabase<any>;
@@ -1490,7 +1539,7 @@ declare class QueryManager {
1490
1539
  createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
1491
1540
  column: string;
1492
1541
  direction: "asc" | "desc";
1493
- }>): alepha23.Page<T>;
1542
+ }>): alepha1.Page<T>;
1494
1543
  }
1495
1544
  interface PgJoin {
1496
1545
  table: string;
@@ -1802,7 +1851,7 @@ interface StatementOptions {
1802
1851
  declare module "alepha" {
1803
1852
  interface Env extends Partial<Static<typeof envSchema>> {}
1804
1853
  }
1805
- declare const envSchema: alepha23.TObject<{
1854
+ declare const envSchema: alepha1.TObject<{
1806
1855
  /**
1807
1856
  * Main configuration for database connection.
1808
1857
  * Accept a string in the format of a Postgres connection URL.
@@ -1810,21 +1859,21 @@ declare const envSchema: alepha23.TObject<{
1810
1859
  * or
1811
1860
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
1812
1861
  */
1813
- DATABASE_URL: alepha23.TOptional<alepha23.TString>;
1862
+ DATABASE_URL: alepha1.TOptional<alepha1.TString>;
1814
1863
  /**
1815
1864
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
1816
1865
  *
1817
1866
  * It will monkey patch drizzle tables.
1818
1867
  */
1819
- POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
1868
+ POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
1820
1869
  }>;
1821
1870
  //#endregion
1822
1871
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
1823
1872
  /**
1824
1873
  * Configuration options for the Node.js SQLite database provider.
1825
1874
  */
1826
- declare const nodeSqliteOptions: alepha23.Atom<alepha23.TObject<{
1827
- path: alepha23.TOptional<alepha23.TString>;
1875
+ declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
1876
+ path: alepha1.TOptional<alepha1.TString>;
1828
1877
  }>, "alepha.postgres.node-sqlite.options">;
1829
1878
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
1830
1879
  declare module "alepha" {
@@ -1907,63 +1956,63 @@ declare module "alepha" {
1907
1956
  }
1908
1957
  }
1909
1958
  //#endregion
1910
- //#region ../../src/api-users/notifications/UserNotifications.d.ts
1959
+ //#region ../../src/api/users/notifications/UserNotifications.d.ts
1911
1960
  declare class UserNotifications {
1912
- readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1913
- email: alepha23.TString;
1914
- code: alepha23.TString;
1915
- expiresInMinutes: alepha23.TNumber;
1961
+ readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1962
+ email: alepha1.TString;
1963
+ code: alepha1.TString;
1964
+ expiresInMinutes: alepha1.TNumber;
1916
1965
  }>>;
1917
- readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1918
- email: alepha23.TString;
1919
- code: alepha23.TString;
1920
- expiresInMinutes: alepha23.TNumber;
1966
+ readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1967
+ email: alepha1.TString;
1968
+ code: alepha1.TString;
1969
+ expiresInMinutes: alepha1.TNumber;
1921
1970
  }>>;
1922
- readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1923
- phoneNumber: alepha23.TString;
1924
- code: alepha23.TString;
1925
- expiresInMinutes: alepha23.TNumber;
1971
+ readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1972
+ phoneNumber: alepha1.TString;
1973
+ code: alepha1.TString;
1974
+ expiresInMinutes: alepha1.TNumber;
1926
1975
  }>>;
1927
- readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1928
- email: alepha23.TString;
1929
- resetUrl: alepha23.TString;
1930
- expiresInMinutes: alepha23.TNumber;
1976
+ readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1977
+ email: alepha1.TString;
1978
+ resetUrl: alepha1.TString;
1979
+ expiresInMinutes: alepha1.TNumber;
1931
1980
  }>>;
1932
- readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1933
- email: alepha23.TString;
1934
- verifyUrl: alepha23.TString;
1935
- expiresInMinutes: alepha23.TNumber;
1981
+ readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1982
+ email: alepha1.TString;
1983
+ verifyUrl: alepha1.TString;
1984
+ expiresInMinutes: alepha1.TNumber;
1936
1985
  }>>;
1937
1986
  }
1938
1987
  //#endregion
1939
- //#region ../../src/api-users/schemas/completePasswordResetRequestSchema.d.ts
1988
+ //#region ../../src/api/users/schemas/completePasswordResetRequestSchema.d.ts
1940
1989
  /**
1941
1990
  * Request schema for completing a password reset.
1942
1991
  *
1943
1992
  * Requires the intent ID from Phase 1, the verification code,
1944
1993
  * and the new password.
1945
1994
  */
1946
- declare const completePasswordResetRequestSchema: alepha23.TObject<{
1947
- intentId: alepha23.TString;
1948
- code: alepha23.TString;
1949
- newPassword: alepha23.TString;
1995
+ declare const completePasswordResetRequestSchema: alepha1.TObject<{
1996
+ intentId: alepha1.TString;
1997
+ code: alepha1.TString;
1998
+ newPassword: alepha1.TString;
1950
1999
  }>;
1951
2000
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
1952
2001
  //#endregion
1953
- //#region ../../src/api-users/schemas/passwordResetIntentResponseSchema.d.ts
2002
+ //#region ../../src/api/users/schemas/passwordResetIntentResponseSchema.d.ts
1954
2003
  /**
1955
2004
  * Response schema for password reset intent creation.
1956
2005
  *
1957
2006
  * Contains the intent ID needed for Phase 2 completion,
1958
2007
  * along with expiration time.
1959
2008
  */
1960
- declare const passwordResetIntentResponseSchema: alepha23.TObject<{
1961
- intentId: alepha23.TString;
1962
- expiresAt: alepha23.TString;
2009
+ declare const passwordResetIntentResponseSchema: alepha1.TObject<{
2010
+ intentId: alepha1.TString;
2011
+ expiresAt: alepha1.TString;
1963
2012
  }>;
1964
2013
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
1965
2014
  //#endregion
1966
- //#region ../../src/api-users/services/CredentialService.d.ts
2015
+ //#region ../../src/api/users/services/CredentialService.d.ts
1967
2016
  /**
1968
2017
  * Intent stored in cache during the password reset flow.
1969
2018
  */
@@ -1975,54 +2024,54 @@ interface PasswordResetIntent {
1975
2024
  expiresAt: string;
1976
2025
  }
1977
2026
  declare class CredentialService {
1978
- protected readonly log: alepha_logger1.Logger;
2027
+ protected readonly log: alepha_logger0.Logger;
1979
2028
  protected readonly cryptoProvider: CryptoProvider;
1980
2029
  protected readonly dateTimeProvider: DateTimeProvider;
1981
2030
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
1982
2031
  protected readonly userNotifications: UserNotifications;
1983
2032
  protected readonly userRealmProvider: UserRealmProvider;
1984
2033
  protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
1985
- users(userRealmName?: string): Repository$1<alepha23.TObject<{
1986
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1987
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1988
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1989
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1990
- realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
1991
- username: alepha23.TOptional<alepha23.TString>;
1992
- email: alepha23.TOptional<alepha23.TString>;
1993
- phoneNumber: alepha23.TOptional<alepha23.TString>;
1994
- roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
1995
- firstName: alepha23.TOptional<alepha23.TString>;
1996
- lastName: alepha23.TOptional<alepha23.TString>;
1997
- picture: alepha23.TOptional<alepha23.TString>;
1998
- enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1999
- emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2034
+ users(userRealmName?: string): Repository$1<alepha1.TObject<{
2035
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2036
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2037
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2038
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2039
+ realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2040
+ username: alepha1.TOptional<alepha1.TString>;
2041
+ email: alepha1.TOptional<alepha1.TString>;
2042
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2043
+ roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2044
+ firstName: alepha1.TOptional<alepha1.TString>;
2045
+ lastName: alepha1.TOptional<alepha1.TString>;
2046
+ picture: alepha1.TOptional<alepha1.TString>;
2047
+ enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2048
+ emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2000
2049
  }>>;
2001
- sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2002
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2003
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2004
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2005
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2006
- refreshToken: alepha23.TString;
2007
- userId: PgAttr<alepha23.TString, typeof PG_REF>;
2008
- expiresAt: alepha23.TString;
2009
- ip: alepha23.TOptional<alepha23.TString>;
2010
- userAgent: alepha23.TOptional<alepha23.TObject<{
2011
- os: alepha23.TString;
2012
- browser: alepha23.TString;
2013
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2050
+ sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2051
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2052
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2053
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2054
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2055
+ refreshToken: alepha1.TString;
2056
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2057
+ expiresAt: alepha1.TString;
2058
+ ip: alepha1.TOptional<alepha1.TString>;
2059
+ userAgent: alepha1.TOptional<alepha1.TObject<{
2060
+ os: alepha1.TString;
2061
+ browser: alepha1.TString;
2062
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2014
2063
  }>>;
2015
2064
  }>>;
2016
- identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2017
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2018
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2019
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2020
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2021
- userId: PgAttr<alepha23.TString, typeof PG_REF>;
2022
- password: alepha23.TOptional<alepha23.TString>;
2023
- provider: alepha23.TString;
2024
- providerUserId: alepha23.TOptional<alepha23.TString>;
2025
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2065
+ identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2066
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2067
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2068
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2069
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2070
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2071
+ password: alepha1.TOptional<alepha1.TString>;
2072
+ provider: alepha1.TString;
2073
+ providerUserId: alepha1.TOptional<alepha1.TString>;
2074
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2026
2075
  }>>;
2027
2076
  /**
2028
2077
  * Phase 1: Create a password reset intent.
@@ -2058,42 +2107,42 @@ declare class CredentialService {
2058
2107
  resetPassword(email: string, token: string, newPassword: string, userRealmName?: string): Promise<void>;
2059
2108
  }
2060
2109
  //#endregion
2061
- //#region ../../src/api-users/schemas/completeRegistrationRequestSchema.d.ts
2062
- declare const completeRegistrationRequestSchema: alepha23.TObject<{
2063
- intentId: alepha23.TString;
2064
- emailCode: alepha23.TOptional<alepha23.TString>;
2065
- phoneCode: alepha23.TOptional<alepha23.TString>;
2066
- captchaToken: alepha23.TOptional<alepha23.TString>;
2110
+ //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
2111
+ declare const completeRegistrationRequestSchema: alepha1.TObject<{
2112
+ intentId: alepha1.TString;
2113
+ emailCode: alepha1.TOptional<alepha1.TString>;
2114
+ phoneCode: alepha1.TOptional<alepha1.TString>;
2115
+ captchaToken: alepha1.TOptional<alepha1.TString>;
2067
2116
  }>;
2068
2117
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
2069
2118
  //#endregion
2070
- //#region ../../src/api-users/schemas/registerRequestSchema.d.ts
2119
+ //#region ../../src/api/users/schemas/registerRequestSchema.d.ts
2071
2120
  /**
2072
2121
  * Schema for user registration request body.
2073
2122
  * Password is always required, other fields depend on realm settings.
2074
2123
  */
2075
- declare const registerRequestSchema: alepha23.TObject<{
2076
- password: alepha23.TString;
2077
- username: alepha23.TOptional<alepha23.TString>;
2078
- email: alepha23.TOptional<alepha23.TString>;
2079
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2080
- firstName: alepha23.TOptional<alepha23.TString>;
2081
- lastName: alepha23.TOptional<alepha23.TString>;
2082
- picture: alepha23.TOptional<alepha23.TString>;
2124
+ declare const registerRequestSchema: alepha1.TObject<{
2125
+ password: alepha1.TString;
2126
+ username: alepha1.TOptional<alepha1.TString>;
2127
+ email: alepha1.TOptional<alepha1.TString>;
2128
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2129
+ firstName: alepha1.TOptional<alepha1.TString>;
2130
+ lastName: alepha1.TOptional<alepha1.TString>;
2131
+ picture: alepha1.TOptional<alepha1.TString>;
2083
2132
  }>;
2084
2133
  type RegisterRequest = Static<typeof registerRequestSchema>;
2085
2134
  //#endregion
2086
- //#region ../../src/api-users/schemas/registrationIntentResponseSchema.d.ts
2087
- declare const registrationIntentResponseSchema: alepha23.TObject<{
2088
- intentId: alepha23.TString;
2089
- expectCaptcha: alepha23.TBoolean;
2090
- expectEmailVerification: alepha23.TBoolean;
2091
- expectPhoneVerification: alepha23.TBoolean;
2092
- expiresAt: alepha23.TString;
2135
+ //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
2136
+ declare const registrationIntentResponseSchema: alepha1.TObject<{
2137
+ intentId: alepha1.TString;
2138
+ expectCaptcha: alepha1.TBoolean;
2139
+ expectEmailVerification: alepha1.TBoolean;
2140
+ expectPhoneVerification: alepha1.TBoolean;
2141
+ expiresAt: alepha1.TString;
2093
2142
  }>;
2094
2143
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
2095
2144
  //#endregion
2096
- //#region ../../src/api-users/services/RegistrationService.d.ts
2145
+ //#region ../../src/api/users/services/RegistrationService.d.ts
2097
2146
  /**
2098
2147
  * Intent stored in cache during the registration flow.
2099
2148
  */
@@ -2116,7 +2165,7 @@ interface RegistrationIntent {
2116
2165
  expiresAt: string;
2117
2166
  }
2118
2167
  declare class RegistrationService {
2119
- protected readonly log: alepha_logger1.Logger;
2168
+ protected readonly log: alepha_logger0.Logger;
2120
2169
  protected readonly dateTimeProvider: DateTimeProvider;
2121
2170
  protected readonly cryptoProvider: CryptoProvider;
2122
2171
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2159,71 +2208,71 @@ declare class RegistrationService {
2159
2208
  protected verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
2160
2209
  }
2161
2210
  //#endregion
2162
- //#region ../../src/api-users/schemas/createUserSchema.d.ts
2163
- declare const createUserSchema: alepha23.TObject<{
2164
- id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2165
- version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2166
- email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2167
- createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2168
- updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2169
- username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2170
- phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2171
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2172
- firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2173
- lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2174
- picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2175
- enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2176
- emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2211
+ //#region ../../src/api/users/schemas/createUserSchema.d.ts
2212
+ declare const createUserSchema: alepha1.TObject<{
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>>;
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>>;
2219
+ phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2220
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2221
+ firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2222
+ lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2223
+ picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2224
+ enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2225
+ emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2177
2226
  }>;
2178
2227
  type CreateUser = Static<typeof createUserSchema>;
2179
2228
  //#endregion
2180
- //#region ../../src/api-users/schemas/updateUserSchema.d.ts
2181
- declare const updateUserSchema: alepha23.TObject<{
2182
- email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2183
- realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
2184
- phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2185
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2186
- firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2187
- lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2188
- picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2189
- enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2229
+ //#region ../../src/api/users/schemas/updateUserSchema.d.ts
2230
+ declare const updateUserSchema: alepha1.TObject<{
2231
+ email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2232
+ realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2233
+ phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2234
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2235
+ firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2236
+ lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2237
+ picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2238
+ enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2190
2239
  }>;
2191
2240
  type UpdateUser = Static<typeof updateUserSchema>;
2192
2241
  //#endregion
2193
- //#region ../../src/api-users/schemas/userQuerySchema.d.ts
2194
- declare const userQuerySchema: alepha23.TObject<{
2195
- page: alepha23.TOptional<alepha23.TInteger>;
2196
- size: alepha23.TOptional<alepha23.TInteger>;
2197
- sort: alepha23.TOptional<alepha23.TString>;
2198
- email: alepha23.TOptional<alepha23.TString>;
2199
- enabled: alepha23.TOptional<alepha23.TBoolean>;
2200
- emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2201
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2202
- query: alepha23.TOptional<alepha23.TString>;
2242
+ //#region ../../src/api/users/schemas/userQuerySchema.d.ts
2243
+ declare const userQuerySchema: alepha1.TObject<{
2244
+ page: alepha1.TOptional<alepha1.TInteger>;
2245
+ size: alepha1.TOptional<alepha1.TInteger>;
2246
+ sort: alepha1.TOptional<alepha1.TString>;
2247
+ email: alepha1.TOptional<alepha1.TString>;
2248
+ enabled: alepha1.TOptional<alepha1.TBoolean>;
2249
+ emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2250
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2251
+ query: alepha1.TOptional<alepha1.TString>;
2203
2252
  }>;
2204
2253
  type UserQuery = Static<typeof userQuerySchema>;
2205
2254
  //#endregion
2206
- //#region ../../src/api-users/services/UserService.d.ts
2255
+ //#region ../../src/api/users/services/UserService.d.ts
2207
2256
  declare class UserService {
2208
- protected readonly log: alepha_logger1.Logger;
2257
+ protected readonly log: alepha_logger0.Logger;
2209
2258
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
2210
2259
  protected readonly userNotifications: UserNotifications;
2211
2260
  protected readonly userRealmProvider: UserRealmProvider;
2212
- users(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
2213
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2214
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2215
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2216
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2217
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2218
- username: alepha23.TOptional<alepha23.TString>;
2219
- email: alepha23.TOptional<alepha23.TString>;
2220
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2221
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2222
- firstName: alepha23.TOptional<alepha23.TString>;
2223
- lastName: alepha23.TOptional<alepha23.TString>;
2224
- picture: alepha23.TOptional<alepha23.TString>;
2225
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2226
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.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>;
2267
+ username: alepha1.TOptional<alepha1.TString>;
2268
+ email: alepha1.TOptional<alepha1.TString>;
2269
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2270
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2271
+ firstName: alepha1.TOptional<alepha1.TString>;
2272
+ lastName: alepha1.TOptional<alepha1.TString>;
2273
+ picture: alepha1.TOptional<alepha1.TString>;
2274
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2275
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2227
2276
  }>>;
2228
2277
  /**
2229
2278
  * Request email verification for a user.
@@ -2264,7 +2313,7 @@ declare class UserService {
2264
2313
  deleteUser(id: string, userRealmName?: string): Promise<void>;
2265
2314
  }
2266
2315
  //#endregion
2267
- //#region ../../src/api-users/controllers/UserController.d.ts
2316
+ //#region ../../src/api/users/controllers/UserController.d.ts
2268
2317
  declare class UserController {
2269
2318
  protected readonly url = "/users";
2270
2319
  protected readonly group = "users";
@@ -2276,122 +2325,122 @@ declare class UserController {
2276
2325
  * Validates data, creates verification sessions, and stores intent in cache.
2277
2326
  */
2278
2327
  readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2279
- body: alepha23.TObject<{
2280
- password: alepha23.TString;
2281
- username: alepha23.TOptional<alepha23.TString>;
2282
- email: alepha23.TOptional<alepha23.TString>;
2283
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2284
- firstName: alepha23.TOptional<alepha23.TString>;
2285
- lastName: alepha23.TOptional<alepha23.TString>;
2286
- picture: alepha23.TOptional<alepha23.TString>;
2328
+ body: alepha1.TObject<{
2329
+ password: alepha1.TString;
2330
+ username: alepha1.TOptional<alepha1.TString>;
2331
+ email: alepha1.TOptional<alepha1.TString>;
2332
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2333
+ firstName: alepha1.TOptional<alepha1.TString>;
2334
+ lastName: alepha1.TOptional<alepha1.TString>;
2335
+ picture: alepha1.TOptional<alepha1.TString>;
2287
2336
  }>;
2288
- query: alepha23.TObject<{
2289
- userRealmName: alepha23.TOptional<alepha23.TString>;
2337
+ query: alepha1.TObject<{
2338
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2290
2339
  }>;
2291
- response: alepha23.TObject<{
2292
- intentId: alepha23.TString;
2293
- expectCaptcha: alepha23.TBoolean;
2294
- expectEmailVerification: alepha23.TBoolean;
2295
- expectPhoneVerification: alepha23.TBoolean;
2296
- expiresAt: alepha23.TString;
2340
+ response: alepha1.TObject<{
2341
+ intentId: alepha1.TString;
2342
+ expectCaptcha: alepha1.TBoolean;
2343
+ expectEmailVerification: alepha1.TBoolean;
2344
+ expectPhoneVerification: alepha1.TBoolean;
2345
+ expiresAt: alepha1.TString;
2297
2346
  }>;
2298
2347
  }>;
2299
2348
  /**
2300
2349
  * Find users with pagination and filtering.
2301
2350
  */
2302
2351
  readonly findUsers: alepha_server0.ActionPrimitiveFn<{
2303
- query: alepha23.TObject<{
2304
- page: alepha23.TOptional<alepha23.TInteger>;
2305
- size: alepha23.TOptional<alepha23.TInteger>;
2306
- sort: alepha23.TOptional<alepha23.TString>;
2307
- email: alepha23.TOptional<alepha23.TString>;
2308
- enabled: alepha23.TOptional<alepha23.TBoolean>;
2309
- emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2310
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2311
- query: alepha23.TOptional<alepha23.TString>;
2312
- userRealmName: alepha23.TOptional<alepha23.TString>;
2352
+ query: alepha1.TObject<{
2353
+ page: alepha1.TOptional<alepha1.TInteger>;
2354
+ size: alepha1.TOptional<alepha1.TInteger>;
2355
+ sort: alepha1.TOptional<alepha1.TString>;
2356
+ email: alepha1.TOptional<alepha1.TString>;
2357
+ enabled: alepha1.TOptional<alepha1.TBoolean>;
2358
+ emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2359
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2360
+ query: alepha1.TOptional<alepha1.TString>;
2361
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2313
2362
  }>;
2314
- response: alepha23.TPage<alepha23.TObject<{
2315
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2316
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2317
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2318
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2319
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2320
- username: alepha23.TOptional<alepha23.TString>;
2321
- email: alepha23.TOptional<alepha23.TString>;
2322
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2323
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2324
- firstName: alepha23.TOptional<alepha23.TString>;
2325
- lastName: alepha23.TOptional<alepha23.TString>;
2326
- picture: alepha23.TOptional<alepha23.TString>;
2327
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2328
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2363
+ response: alepha1.TPage<alepha1.TObject<{
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>;
2369
+ username: alepha1.TOptional<alepha1.TString>;
2370
+ email: alepha1.TOptional<alepha1.TString>;
2371
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2372
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2373
+ firstName: alepha1.TOptional<alepha1.TString>;
2374
+ lastName: alepha1.TOptional<alepha1.TString>;
2375
+ picture: alepha1.TOptional<alepha1.TString>;
2376
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2377
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2329
2378
  }>>;
2330
2379
  }>;
2331
2380
  /**
2332
2381
  * Get a user by ID.
2333
2382
  */
2334
2383
  readonly getUser: alepha_server0.ActionPrimitiveFn<{
2335
- params: alepha23.TObject<{
2336
- id: alepha23.TString;
2384
+ params: alepha1.TObject<{
2385
+ id: alepha1.TString;
2337
2386
  }>;
2338
- query: alepha23.TObject<{
2339
- userRealmName: alepha23.TOptional<alepha23.TString>;
2387
+ query: alepha1.TObject<{
2388
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2340
2389
  }>;
2341
- response: alepha23.TObject<{
2342
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2343
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2344
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2345
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2346
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2347
- username: alepha23.TOptional<alepha23.TString>;
2348
- email: alepha23.TOptional<alepha23.TString>;
2349
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2350
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2351
- firstName: alepha23.TOptional<alepha23.TString>;
2352
- lastName: alepha23.TOptional<alepha23.TString>;
2353
- picture: alepha23.TOptional<alepha23.TString>;
2354
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2355
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2390
+ response: alepha1.TObject<{
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>;
2396
+ username: alepha1.TOptional<alepha1.TString>;
2397
+ email: alepha1.TOptional<alepha1.TString>;
2398
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2399
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2400
+ firstName: alepha1.TOptional<alepha1.TString>;
2401
+ lastName: alepha1.TOptional<alepha1.TString>;
2402
+ picture: alepha1.TOptional<alepha1.TString>;
2403
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2404
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2356
2405
  }>;
2357
2406
  }>;
2358
2407
  /**
2359
2408
  * Create a new user.
2360
2409
  */
2361
2410
  readonly createUser: alepha_server0.ActionPrimitiveFn<{
2362
- query: alepha23.TObject<{
2363
- userRealmName: alepha23.TOptional<alepha23.TString>;
2411
+ query: alepha1.TObject<{
2412
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2364
2413
  }>;
2365
- body: alepha23.TObject<{
2366
- id: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
2367
- version: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
2368
- email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2369
- createdAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2370
- updatedAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2371
- username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2372
- phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2373
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2374
- firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2375
- lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2376
- picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2377
- enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2378
- emailVerified: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2414
+ body: alepha1.TObject<{
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>>;
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>>;
2421
+ phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2422
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2423
+ firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2424
+ lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2425
+ picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
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>>;
2379
2428
  }>;
2380
- response: alepha23.TObject<{
2381
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2382
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2383
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2384
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2385
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2386
- username: alepha23.TOptional<alepha23.TString>;
2387
- email: alepha23.TOptional<alepha23.TString>;
2388
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2389
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2390
- firstName: alepha23.TOptional<alepha23.TString>;
2391
- lastName: alepha23.TOptional<alepha23.TString>;
2392
- picture: alepha23.TOptional<alepha23.TString>;
2393
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2394
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2429
+ response: alepha1.TObject<{
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>;
2435
+ username: alepha1.TOptional<alepha1.TString>;
2436
+ email: alepha1.TOptional<alepha1.TString>;
2437
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2438
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2439
+ firstName: alepha1.TOptional<alepha1.TString>;
2440
+ lastName: alepha1.TOptional<alepha1.TString>;
2441
+ picture: alepha1.TOptional<alepha1.TString>;
2442
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2443
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2395
2444
  }>;
2396
2445
  }>;
2397
2446
  /**
@@ -2399,80 +2448,80 @@ declare class UserController {
2399
2448
  * Validates verification codes and creates the user.
2400
2449
  */
2401
2450
  readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2402
- body: alepha23.TObject<{
2403
- intentId: alepha23.TString;
2404
- emailCode: alepha23.TOptional<alepha23.TString>;
2405
- phoneCode: alepha23.TOptional<alepha23.TString>;
2406
- captchaToken: alepha23.TOptional<alepha23.TString>;
2451
+ body: alepha1.TObject<{
2452
+ intentId: alepha1.TString;
2453
+ emailCode: alepha1.TOptional<alepha1.TString>;
2454
+ phoneCode: alepha1.TOptional<alepha1.TString>;
2455
+ captchaToken: alepha1.TOptional<alepha1.TString>;
2407
2456
  }>;
2408
- response: alepha23.TObject<{
2409
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2410
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2411
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2412
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2413
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2414
- username: alepha23.TOptional<alepha23.TString>;
2415
- email: alepha23.TOptional<alepha23.TString>;
2416
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2417
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2418
- firstName: alepha23.TOptional<alepha23.TString>;
2419
- lastName: alepha23.TOptional<alepha23.TString>;
2420
- picture: alepha23.TOptional<alepha23.TString>;
2421
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2422
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2457
+ response: alepha1.TObject<{
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>;
2463
+ username: alepha1.TOptional<alepha1.TString>;
2464
+ email: alepha1.TOptional<alepha1.TString>;
2465
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2466
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2467
+ firstName: alepha1.TOptional<alepha1.TString>;
2468
+ lastName: alepha1.TOptional<alepha1.TString>;
2469
+ picture: alepha1.TOptional<alepha1.TString>;
2470
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2471
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2423
2472
  }>;
2424
2473
  }>;
2425
2474
  /**
2426
2475
  * Update a user.
2427
2476
  */
2428
2477
  readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2429
- params: alepha23.TObject<{
2430
- id: alepha23.TString;
2478
+ params: alepha1.TObject<{
2479
+ id: alepha1.TString;
2431
2480
  }>;
2432
- query: alepha23.TObject<{
2433
- userRealmName: alepha23.TOptional<alepha23.TString>;
2481
+ query: alepha1.TObject<{
2482
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2434
2483
  }>;
2435
- body: alepha23.TObject<{
2436
- email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2437
- realm: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>>;
2438
- phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2439
- roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2440
- firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2441
- lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2442
- picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2443
- enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2484
+ body: alepha1.TObject<{
2485
+ email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2486
+ realm: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>>;
2487
+ phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2488
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2489
+ firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2490
+ lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2491
+ picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2492
+ enabled: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2444
2493
  }>;
2445
- response: alepha23.TObject<{
2446
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2447
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2448
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2449
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2450
- realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2451
- username: alepha23.TOptional<alepha23.TString>;
2452
- email: alepha23.TOptional<alepha23.TString>;
2453
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2454
- roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2455
- firstName: alepha23.TOptional<alepha23.TString>;
2456
- lastName: alepha23.TOptional<alepha23.TString>;
2457
- picture: alepha23.TOptional<alepha23.TString>;
2458
- enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2459
- emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2494
+ response: alepha1.TObject<{
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>;
2500
+ username: alepha1.TOptional<alepha1.TString>;
2501
+ email: alepha1.TOptional<alepha1.TString>;
2502
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2503
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2504
+ firstName: alepha1.TOptional<alepha1.TString>;
2505
+ lastName: alepha1.TOptional<alepha1.TString>;
2506
+ picture: alepha1.TOptional<alepha1.TString>;
2507
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2508
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2460
2509
  }>;
2461
2510
  }>;
2462
2511
  /**
2463
2512
  * Delete a user.
2464
2513
  */
2465
2514
  readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2466
- params: alepha23.TObject<{
2467
- id: alepha23.TString;
2515
+ params: alepha1.TObject<{
2516
+ id: alepha1.TString;
2468
2517
  }>;
2469
- query: alepha23.TObject<{
2470
- userRealmName: alepha23.TOptional<alepha23.TString>;
2518
+ query: alepha1.TObject<{
2519
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2471
2520
  }>;
2472
- response: alepha23.TObject<{
2473
- ok: alepha23.TBoolean;
2474
- id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2475
- count: alepha23.TOptional<alepha23.TNumber>;
2521
+ response: alepha1.TObject<{
2522
+ ok: alepha1.TBoolean;
2523
+ id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2524
+ count: alepha1.TOptional<alepha1.TNumber>;
2476
2525
  }>;
2477
2526
  }>;
2478
2527
  /**
@@ -2480,15 +2529,15 @@ declare class UserController {
2480
2529
  * Validates email, sends verification code, and stores intent in cache.
2481
2530
  */
2482
2531
  readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2483
- query: alepha23.TObject<{
2484
- userRealmName: alepha23.TOptional<alepha23.TString>;
2532
+ query: alepha1.TObject<{
2533
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2485
2534
  }>;
2486
- body: alepha23.TObject<{
2487
- email: alepha23.TString;
2535
+ body: alepha1.TObject<{
2536
+ email: alepha1.TString;
2488
2537
  }>;
2489
- response: alepha23.TObject<{
2490
- intentId: alepha23.TString;
2491
- expiresAt: alepha23.TString;
2538
+ response: alepha1.TObject<{
2539
+ intentId: alepha1.TString;
2540
+ expiresAt: alepha1.TString;
2492
2541
  }>;
2493
2542
  }>;
2494
2543
  /**
@@ -2496,61 +2545,61 @@ declare class UserController {
2496
2545
  * Validates verification code, updates password, and invalidates sessions.
2497
2546
  */
2498
2547
  readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2499
- body: alepha23.TObject<{
2500
- intentId: alepha23.TString;
2501
- code: alepha23.TString;
2502
- newPassword: alepha23.TString;
2548
+ body: alepha1.TObject<{
2549
+ intentId: alepha1.TString;
2550
+ code: alepha1.TString;
2551
+ newPassword: alepha1.TString;
2503
2552
  }>;
2504
- response: alepha23.TObject<{
2505
- ok: alepha23.TBoolean;
2506
- id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2507
- count: alepha23.TOptional<alepha23.TNumber>;
2553
+ response: alepha1.TObject<{
2554
+ ok: alepha1.TBoolean;
2555
+ id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2556
+ count: alepha1.TOptional<alepha1.TNumber>;
2508
2557
  }>;
2509
2558
  }>;
2510
2559
  /**
2511
2560
  * @deprecated Use createPasswordResetIntent instead
2512
2561
  */
2513
2562
  requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2514
- query: alepha23.TObject<{
2515
- userRealmName: alepha23.TOptional<alepha23.TString>;
2563
+ query: alepha1.TObject<{
2564
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2516
2565
  }>;
2517
- body: alepha23.TObject<{
2518
- email: alepha23.TString;
2566
+ body: alepha1.TObject<{
2567
+ email: alepha1.TString;
2519
2568
  }>;
2520
- response: alepha23.TObject<{
2521
- success: alepha23.TBoolean;
2522
- message: alepha23.TString;
2569
+ response: alepha1.TObject<{
2570
+ success: alepha1.TBoolean;
2571
+ message: alepha1.TString;
2523
2572
  }>;
2524
2573
  }>;
2525
2574
  /**
2526
2575
  * @deprecated Use completePasswordReset instead
2527
2576
  */
2528
2577
  validateResetToken: alepha_server0.ActionPrimitiveFn<{
2529
- query: alepha23.TObject<{
2530
- email: alepha23.TString;
2531
- token: alepha23.TString;
2532
- userRealmName: alepha23.TOptional<alepha23.TString>;
2578
+ query: alepha1.TObject<{
2579
+ email: alepha1.TString;
2580
+ token: alepha1.TString;
2581
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2533
2582
  }>;
2534
- response: alepha23.TObject<{
2535
- valid: alepha23.TBoolean;
2536
- email: alepha23.TOptional<alepha23.TString>;
2583
+ response: alepha1.TObject<{
2584
+ valid: alepha1.TBoolean;
2585
+ email: alepha1.TOptional<alepha1.TString>;
2537
2586
  }>;
2538
2587
  }>;
2539
2588
  /**
2540
2589
  * @deprecated Use completePasswordReset instead
2541
2590
  */
2542
2591
  resetPassword: alepha_server0.ActionPrimitiveFn<{
2543
- query: alepha23.TObject<{
2544
- userRealmName: alepha23.TOptional<alepha23.TString>;
2592
+ query: alepha1.TObject<{
2593
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2545
2594
  }>;
2546
- body: alepha23.TObject<{
2547
- email: alepha23.TString;
2548
- token: alepha23.TString;
2549
- newPassword: alepha23.TString;
2595
+ body: alepha1.TObject<{
2596
+ email: alepha1.TString;
2597
+ token: alepha1.TString;
2598
+ newPassword: alepha1.TString;
2550
2599
  }>;
2551
- response: alepha23.TObject<{
2552
- success: alepha23.TBoolean;
2553
- message: alepha23.TString;
2600
+ response: alepha1.TObject<{
2601
+ success: alepha1.TBoolean;
2602
+ message: alepha1.TString;
2554
2603
  }>;
2555
2604
  }>;
2556
2605
  /**
@@ -2560,17 +2609,17 @@ declare class UserController {
2560
2609
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
2561
2610
  */
2562
2611
  requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2563
- query: alepha23.TObject<{
2564
- userRealmName: alepha23.TOptional<alepha23.TString>;
2565
- method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
2566
- verifyUrl: alepha23.TOptional<alepha23.TString>;
2612
+ query: alepha1.TObject<{
2613
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2614
+ method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
2615
+ verifyUrl: alepha1.TOptional<alepha1.TString>;
2567
2616
  }>;
2568
- body: alepha23.TObject<{
2569
- email: alepha23.TString;
2617
+ body: alepha1.TObject<{
2618
+ email: alepha1.TString;
2570
2619
  }>;
2571
- response: alepha23.TObject<{
2572
- success: alepha23.TBoolean;
2573
- message: alepha23.TString;
2620
+ response: alepha1.TObject<{
2621
+ success: alepha1.TBoolean;
2622
+ message: alepha1.TString;
2574
2623
  }>;
2575
2624
  }>;
2576
2625
  /**
@@ -2578,33 +2627,33 @@ declare class UserController {
2578
2627
  * Updates the user's emailVerified status.
2579
2628
  */
2580
2629
  verifyEmail: alepha_server0.ActionPrimitiveFn<{
2581
- query: alepha23.TObject<{
2582
- userRealmName: alepha23.TOptional<alepha23.TString>;
2630
+ query: alepha1.TObject<{
2631
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2583
2632
  }>;
2584
- body: alepha23.TObject<{
2585
- email: alepha23.TString;
2586
- token: alepha23.TString;
2633
+ body: alepha1.TObject<{
2634
+ email: alepha1.TString;
2635
+ token: alepha1.TString;
2587
2636
  }>;
2588
- response: alepha23.TObject<{
2589
- success: alepha23.TBoolean;
2590
- message: alepha23.TString;
2637
+ response: alepha1.TObject<{
2638
+ success: alepha1.TBoolean;
2639
+ message: alepha1.TString;
2591
2640
  }>;
2592
2641
  }>;
2593
2642
  /**
2594
2643
  * Check if an email is verified.
2595
2644
  */
2596
2645
  checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2597
- query: alepha23.TObject<{
2598
- email: alepha23.TString;
2599
- userRealmName: alepha23.TOptional<alepha23.TString>;
2646
+ query: alepha1.TObject<{
2647
+ email: alepha1.TString;
2648
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2600
2649
  }>;
2601
- response: alepha23.TObject<{
2602
- verified: alepha23.TBoolean;
2650
+ response: alepha1.TObject<{
2651
+ verified: alepha1.TBoolean;
2603
2652
  }>;
2604
2653
  }>;
2605
2654
  }
2606
2655
  //#endregion
2607
- //#region ../../src/api-users/controllers/UserRealmController.d.ts
2656
+ //#region ../../src/api/users/controllers/UserRealmController.d.ts
2608
2657
  /**
2609
2658
  * Controller for exposing realm configuration.
2610
2659
  * Uses $route instead of $action to keep endpoints hidden from API documentation.
@@ -2618,268 +2667,218 @@ declare class UserRealmController {
2618
2667
  * This endpoint is not exposed in the API documentation.
2619
2668
  */
2620
2669
  readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2621
- query: alepha23.TObject<{
2622
- userRealmName: alepha23.TOptional<alepha23.TString>;
2670
+ query: alepha1.TObject<{
2671
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2623
2672
  }>;
2624
- response: alepha23.TObject<{
2625
- settings: alepha23.TObject<{
2626
- displayName: alepha23.TOptional<alepha23.TString>;
2627
- description: alepha23.TOptional<alepha23.TString>;
2628
- logoUrl: alepha23.TOptional<alepha23.TString>;
2629
- registrationAllowed: alepha23.TBoolean;
2630
- emailEnabled: alepha23.TBoolean;
2631
- emailRequired: alepha23.TBoolean;
2632
- usernameEnabled: alepha23.TBoolean;
2633
- usernameRequired: alepha23.TBoolean;
2634
- phoneEnabled: alepha23.TBoolean;
2635
- phoneRequired: alepha23.TBoolean;
2636
- verifyEmailRequired: alepha23.TBoolean;
2637
- verifyPhoneRequired: alepha23.TBoolean;
2638
- firstNameLastNameEnabled: alepha23.TBoolean;
2639
- firstNameLastNameRequired: alepha23.TBoolean;
2640
- resetPasswordAllowed: alepha23.TBoolean;
2641
- passwordPolicy: alepha23.TObject<{
2642
- minLength: alepha23.TInteger;
2643
- requireUppercase: alepha23.TBoolean;
2644
- requireLowercase: alepha23.TBoolean;
2645
- requireNumbers: alepha23.TBoolean;
2646
- requireSpecialCharacters: alepha23.TBoolean;
2673
+ response: alepha1.TObject<{
2674
+ settings: alepha1.TObject<{
2675
+ displayName: alepha1.TOptional<alepha1.TString>;
2676
+ description: alepha1.TOptional<alepha1.TString>;
2677
+ logoUrl: alepha1.TOptional<alepha1.TString>;
2678
+ registrationAllowed: alepha1.TBoolean;
2679
+ emailEnabled: alepha1.TBoolean;
2680
+ emailRequired: alepha1.TBoolean;
2681
+ usernameEnabled: alepha1.TBoolean;
2682
+ usernameRequired: alepha1.TBoolean;
2683
+ phoneEnabled: alepha1.TBoolean;
2684
+ phoneRequired: alepha1.TBoolean;
2685
+ verifyEmailRequired: alepha1.TBoolean;
2686
+ verifyPhoneRequired: alepha1.TBoolean;
2687
+ firstNameLastNameEnabled: alepha1.TBoolean;
2688
+ firstNameLastNameRequired: alepha1.TBoolean;
2689
+ resetPasswordAllowed: alepha1.TBoolean;
2690
+ passwordPolicy: alepha1.TObject<{
2691
+ minLength: alepha1.TInteger;
2692
+ requireUppercase: alepha1.TBoolean;
2693
+ requireLowercase: alepha1.TBoolean;
2694
+ requireNumbers: alepha1.TBoolean;
2695
+ requireSpecialCharacters: alepha1.TBoolean;
2647
2696
  }>;
2648
2697
  }>;
2649
- realmName: alepha23.TString;
2650
- authenticationMethods: alepha23.TArray<alepha23.TObject<{
2651
- name: alepha23.TString;
2652
- type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2698
+ realmName: alepha1.TString;
2699
+ authenticationMethods: alepha1.TArray<alepha1.TObject<{
2700
+ name: alepha1.TString;
2701
+ type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2653
2702
  }>>;
2654
2703
  }>;
2655
2704
  }>;
2656
2705
  readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2657
- query: alepha23.TObject<{
2658
- userRealmName: alepha23.TOptional<alepha23.TString>;
2706
+ query: alepha1.TObject<{
2707
+ userRealmName: alepha1.TOptional<alepha1.TString>;
2659
2708
  }>;
2660
- body: alepha23.TObject<{
2661
- username: alepha23.TString;
2709
+ body: alepha1.TObject<{
2710
+ username: alepha1.TString;
2662
2711
  }>;
2663
- response: alepha23.TObject<{
2664
- available: alepha23.TBoolean;
2712
+ response: alepha1.TObject<{
2713
+ available: alepha1.TBoolean;
2665
2714
  }>;
2666
2715
  }>;
2667
2716
  }
2668
2717
  //#endregion
2669
- //#region ../../src/api-users/primitives/$userRealm.d.ts
2670
- type UserRealmPrimitive = RealmPrimitive & WithLinkFn & WithLoginFn;
2671
- /**
2672
- * Already configured realm for user management.
2673
- *
2674
- * Realm contains two roles: `admin` and `user`.
2675
- *
2676
- * - `admin`: Has full access to all resources and permissions.
2677
- * - `user`: Has access to their own resources and permissions, but cannot access admin-level resources.
2678
- *
2679
- * Realm uses session management for handling user sessions.
2680
- *
2681
- * Environment Variables:
2682
- * - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
2683
- */
2684
- declare const $userRealm: (options?: UserRealmOptions) => UserRealmPrimitive;
2685
- interface UserRealmOptions {
2686
- /**
2687
- * Secret key for signing tokens.
2688
- *
2689
- * If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
2690
- */
2691
- secret?: string;
2692
- /**
2693
- * Realm configuration options.
2694
- *
2695
- * It's already pre-configured for user management with admin and user roles.
2696
- */
2697
- realm?: Partial<RealmPrimitiveOptions>;
2698
- /**
2699
- * Override entities.
2700
- */
2701
- entities?: {
2702
- users?: Repository<typeof users.schema>;
2703
- identities?: Repository<typeof identities.schema>;
2704
- sessions?: Repository<typeof sessions.schema>;
2705
- };
2706
- settings?: Partial<RealmAuthSettings>;
2707
- identities?: {
2708
- credentials?: true;
2709
- google?: true;
2710
- github?: true;
2711
- };
2712
- modules?: {
2713
- files?: boolean;
2714
- audits?: boolean;
2715
- jobs?: boolean;
2716
- };
2717
- }
2718
- //#endregion
2719
- //#region ../../src/api-users/schemas/identityResourceSchema.d.ts
2720
- declare const identityResourceSchema: alepha23.TObject<{
2721
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2722
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2723
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2724
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2725
- userId: PgAttr<alepha23.TString, typeof PG_REF>;
2726
- provider: alepha23.TString;
2727
- providerUserId: alepha23.TOptional<alepha23.TString>;
2728
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2718
+ //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
2719
+ declare const identityResourceSchema: alepha1.TObject<{
2720
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2721
+ provider: alepha1.TString;
2722
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2723
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2724
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2725
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2726
+ providerUserId: alepha1.TOptional<alepha1.TString>;
2727
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2729
2728
  }>;
2730
2729
  type IdentityResource = Static<typeof identityResourceSchema>;
2731
2730
  //#endregion
2732
- //#region ../../src/api-users/schemas/loginSchema.d.ts
2733
- declare const loginSchema: alepha23.TObject<{
2734
- username: alepha23.TString;
2735
- password: alepha23.TString;
2731
+ //#region ../../src/api/users/schemas/loginSchema.d.ts
2732
+ declare const loginSchema: alepha1.TObject<{
2733
+ username: alepha1.TString;
2734
+ password: alepha1.TString;
2736
2735
  }>;
2737
2736
  type LoginInput = Static<typeof loginSchema>;
2738
2737
  //#endregion
2739
- //#region ../../src/api-users/schemas/registerSchema.d.ts
2740
- declare const registerSchema: alepha23.TObject<{
2741
- username: alepha23.TString;
2742
- email: alepha23.TString;
2743
- password: alepha23.TString;
2744
- confirmPassword: alepha23.TString;
2745
- firstName: alepha23.TOptional<alepha23.TString>;
2746
- lastName: alepha23.TOptional<alepha23.TString>;
2738
+ //#region ../../src/api/users/schemas/registerSchema.d.ts
2739
+ declare const registerSchema: alepha1.TObject<{
2740
+ username: alepha1.TString;
2741
+ email: alepha1.TString;
2742
+ password: alepha1.TString;
2743
+ confirmPassword: alepha1.TString;
2744
+ firstName: alepha1.TOptional<alepha1.TString>;
2745
+ lastName: alepha1.TOptional<alepha1.TString>;
2747
2746
  }>;
2748
2747
  type RegisterInput = Static<typeof registerSchema>;
2749
2748
  //#endregion
2750
- //#region ../../src/api-users/schemas/resetPasswordSchema.d.ts
2751
- declare const resetPasswordRequestSchema: alepha23.TObject<{
2752
- email: alepha23.TString;
2749
+ //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
2750
+ declare const resetPasswordRequestSchema: alepha1.TObject<{
2751
+ email: alepha1.TString;
2753
2752
  }>;
2754
- declare const resetPasswordSchema: alepha23.TObject<{
2755
- token: alepha23.TString;
2756
- password: alepha23.TString;
2757
- confirmPassword: alepha23.TString;
2753
+ declare const resetPasswordSchema: alepha1.TObject<{
2754
+ token: alepha1.TString;
2755
+ password: alepha1.TString;
2756
+ confirmPassword: alepha1.TString;
2758
2757
  }>;
2759
2758
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
2760
2759
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
2761
2760
  //#endregion
2762
- //#region ../../src/api-users/schemas/sessionResourceSchema.d.ts
2763
- declare const sessionResourceSchema: alepha23.TObject<{
2764
- id: alepha23.TString;
2765
- version: alepha23.TNumber;
2766
- createdAt: alepha23.TString;
2767
- updatedAt: alepha23.TString;
2768
- refreshToken: alepha23.TString;
2769
- userId: alepha23.TString;
2770
- expiresAt: alepha23.TString;
2771
- ip: alepha23.TOptional<alepha23.TString>;
2772
- userAgent: alepha23.TOptional<alepha23.TObject<{
2773
- os: alepha23.TString;
2774
- browser: alepha23.TString;
2775
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2761
+ //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
2762
+ declare const sessionResourceSchema: alepha1.TObject<{
2763
+ id: alepha1.TString;
2764
+ version: alepha1.TNumber;
2765
+ createdAt: alepha1.TString;
2766
+ updatedAt: alepha1.TString;
2767
+ refreshToken: alepha1.TString;
2768
+ userId: alepha1.TString;
2769
+ expiresAt: alepha1.TString;
2770
+ ip: alepha1.TOptional<alepha1.TString>;
2771
+ userAgent: alepha1.TOptional<alepha1.TObject<{
2772
+ os: alepha1.TString;
2773
+ browser: alepha1.TString;
2774
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2776
2775
  }>>;
2777
2776
  }>;
2778
2777
  type SessionResource = Static<typeof sessionResourceSchema>;
2779
2778
  //#endregion
2780
- //#region ../../src/api-users/schemas/userRealmConfigSchema.d.ts
2781
- declare const userRealmConfigSchema: alepha23.TObject<{
2782
- settings: alepha23.TObject<{
2783
- displayName: alepha23.TOptional<alepha23.TString>;
2784
- description: alepha23.TOptional<alepha23.TString>;
2785
- logoUrl: alepha23.TOptional<alepha23.TString>;
2786
- registrationAllowed: alepha23.TBoolean;
2787
- emailEnabled: alepha23.TBoolean;
2788
- emailRequired: alepha23.TBoolean;
2789
- usernameEnabled: alepha23.TBoolean;
2790
- usernameRequired: alepha23.TBoolean;
2791
- phoneEnabled: alepha23.TBoolean;
2792
- phoneRequired: alepha23.TBoolean;
2793
- verifyEmailRequired: alepha23.TBoolean;
2794
- verifyPhoneRequired: alepha23.TBoolean;
2795
- firstNameLastNameEnabled: alepha23.TBoolean;
2796
- firstNameLastNameRequired: alepha23.TBoolean;
2797
- resetPasswordAllowed: alepha23.TBoolean;
2798
- passwordPolicy: alepha23.TObject<{
2799
- minLength: alepha23.TInteger;
2800
- requireUppercase: alepha23.TBoolean;
2801
- requireLowercase: alepha23.TBoolean;
2802
- requireNumbers: alepha23.TBoolean;
2803
- requireSpecialCharacters: alepha23.TBoolean;
2779
+ //#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
2780
+ declare const userRealmConfigSchema: alepha1.TObject<{
2781
+ settings: alepha1.TObject<{
2782
+ displayName: alepha1.TOptional<alepha1.TString>;
2783
+ description: alepha1.TOptional<alepha1.TString>;
2784
+ logoUrl: alepha1.TOptional<alepha1.TString>;
2785
+ registrationAllowed: alepha1.TBoolean;
2786
+ emailEnabled: alepha1.TBoolean;
2787
+ emailRequired: alepha1.TBoolean;
2788
+ usernameEnabled: alepha1.TBoolean;
2789
+ usernameRequired: alepha1.TBoolean;
2790
+ phoneEnabled: alepha1.TBoolean;
2791
+ phoneRequired: alepha1.TBoolean;
2792
+ verifyEmailRequired: alepha1.TBoolean;
2793
+ verifyPhoneRequired: alepha1.TBoolean;
2794
+ firstNameLastNameEnabled: alepha1.TBoolean;
2795
+ firstNameLastNameRequired: alepha1.TBoolean;
2796
+ resetPasswordAllowed: alepha1.TBoolean;
2797
+ passwordPolicy: alepha1.TObject<{
2798
+ minLength: alepha1.TInteger;
2799
+ requireUppercase: alepha1.TBoolean;
2800
+ requireLowercase: alepha1.TBoolean;
2801
+ requireNumbers: alepha1.TBoolean;
2802
+ requireSpecialCharacters: alepha1.TBoolean;
2804
2803
  }>;
2805
2804
  }>;
2806
- realmName: alepha23.TString;
2807
- authenticationMethods: alepha23.TArray<alepha23.TObject<{
2808
- name: alepha23.TString;
2809
- type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2805
+ realmName: alepha1.TString;
2806
+ authenticationMethods: alepha1.TArray<alepha1.TObject<{
2807
+ name: alepha1.TString;
2808
+ type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2810
2809
  }>>;
2811
2810
  }>;
2812
2811
  type UserRealmConfig = Static<typeof userRealmConfigSchema>;
2813
2812
  //#endregion
2814
- //#region ../../src/api-users/schemas/userResourceSchema.d.ts
2815
- declare const userResourceSchema: alepha23.TObject<{
2816
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2817
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2818
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2819
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2820
- realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2821
- username: alepha23.TOptional<alepha23.TString>;
2822
- email: alepha23.TOptional<alepha23.TString>;
2823
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2824
- roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2825
- firstName: alepha23.TOptional<alepha23.TString>;
2826
- lastName: alepha23.TOptional<alepha23.TString>;
2827
- picture: alepha23.TOptional<alepha23.TString>;
2828
- enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2829
- emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2813
+ //#region ../../src/api/users/schemas/userResourceSchema.d.ts
2814
+ declare const userResourceSchema: alepha1.TObject<{
2815
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2816
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2817
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2818
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2819
+ realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2820
+ username: alepha1.TOptional<alepha1.TString>;
2821
+ email: alepha1.TOptional<alepha1.TString>;
2822
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2823
+ roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2824
+ firstName: alepha1.TOptional<alepha1.TString>;
2825
+ lastName: alepha1.TOptional<alepha1.TString>;
2826
+ picture: alepha1.TOptional<alepha1.TString>;
2827
+ enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2828
+ emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2830
2829
  }>;
2831
2830
  type UserResource = Static<typeof userResourceSchema>;
2832
2831
  //#endregion
2833
- //#region ../../src/api-users/services/SessionService.d.ts
2832
+ //#region ../../src/api/users/services/SessionService.d.ts
2834
2833
  declare class SessionService {
2835
2834
  protected readonly alepha: Alepha;
2836
2835
  protected readonly fsp: FileSystemProvider;
2837
2836
  protected readonly dateTimeProvider: DateTimeProvider;
2838
2837
  protected readonly cryptoProvider: CryptoProvider;
2839
- protected readonly log: alepha_logger1.Logger;
2838
+ protected readonly log: alepha_logger0.Logger;
2840
2839
  protected readonly userRealmProvider: UserRealmProvider;
2841
2840
  protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
2842
- users(userRealmName?: string): Repository$1<alepha23.TObject<{
2843
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2844
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2845
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2846
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2847
- realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2848
- username: alepha23.TOptional<alepha23.TString>;
2849
- email: alepha23.TOptional<alepha23.TString>;
2850
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2851
- roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2852
- firstName: alepha23.TOptional<alepha23.TString>;
2853
- lastName: alepha23.TOptional<alepha23.TString>;
2854
- picture: alepha23.TOptional<alepha23.TString>;
2855
- enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2856
- emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2841
+ users(userRealmName?: string): Repository$1<alepha1.TObject<{
2842
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2843
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2844
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2845
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2846
+ realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2847
+ username: alepha1.TOptional<alepha1.TString>;
2848
+ email: alepha1.TOptional<alepha1.TString>;
2849
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2850
+ roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2851
+ firstName: alepha1.TOptional<alepha1.TString>;
2852
+ lastName: alepha1.TOptional<alepha1.TString>;
2853
+ picture: alepha1.TOptional<alepha1.TString>;
2854
+ enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2855
+ emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2857
2856
  }>>;
2858
- sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2859
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2860
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2861
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2862
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2863
- refreshToken: alepha23.TString;
2864
- userId: PgAttr<alepha23.TString, typeof PG_REF>;
2865
- expiresAt: alepha23.TString;
2866
- ip: alepha23.TOptional<alepha23.TString>;
2867
- userAgent: alepha23.TOptional<alepha23.TObject<{
2868
- os: alepha23.TString;
2869
- browser: alepha23.TString;
2870
- device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2857
+ sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2858
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2859
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2860
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2861
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2862
+ refreshToken: alepha1.TString;
2863
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2864
+ expiresAt: alepha1.TString;
2865
+ ip: alepha1.TOptional<alepha1.TString>;
2866
+ userAgent: alepha1.TOptional<alepha1.TObject<{
2867
+ os: alepha1.TString;
2868
+ browser: alepha1.TString;
2869
+ device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2871
2870
  }>>;
2872
2871
  }>>;
2873
- identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2874
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2875
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2876
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2877
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2878
- userId: PgAttr<alepha23.TString, typeof PG_REF>;
2879
- password: alepha23.TOptional<alepha23.TString>;
2880
- provider: alepha23.TString;
2881
- providerUserId: alepha23.TOptional<alepha23.TString>;
2882
- providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2872
+ identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2873
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2874
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2875
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2876
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2877
+ userId: PgAttr<alepha1.TString, typeof PG_REF>;
2878
+ password: alepha1.TOptional<alepha1.TString>;
2879
+ provider: alepha1.TString;
2880
+ providerUserId: alepha1.TOptional<alepha1.TString>;
2881
+ providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2883
2882
  }>>;
2884
2883
  /**
2885
2884
  * Random delay to prevent timing attacks (50-200ms)
@@ -2895,36 +2894,36 @@ declare class SessionService {
2895
2894
  sessionId: string;
2896
2895
  }>;
2897
2896
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
2898
- user: PgStatic<alepha23.TObject<{
2899
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2900
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2901
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2902
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2903
- realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2904
- username: alepha23.TOptional<alepha23.TString>;
2905
- email: alepha23.TOptional<alepha23.TString>;
2906
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2907
- roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2908
- firstName: alepha23.TOptional<alepha23.TString>;
2909
- lastName: alepha23.TOptional<alepha23.TString>;
2910
- picture: alepha23.TOptional<alepha23.TString>;
2911
- enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2912
- emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2913
- }>, PgRelationMap<alepha23.TObject<{
2914
- id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2915
- version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2916
- createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2917
- updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2918
- realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2919
- username: alepha23.TOptional<alepha23.TString>;
2920
- email: alepha23.TOptional<alepha23.TString>;
2921
- phoneNumber: alepha23.TOptional<alepha23.TString>;
2922
- roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2923
- firstName: alepha23.TOptional<alepha23.TString>;
2924
- lastName: alepha23.TOptional<alepha23.TString>;
2925
- picture: alepha23.TOptional<alepha23.TString>;
2926
- enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2927
- emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2897
+ user: PgStatic<alepha1.TObject<{
2898
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2899
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2900
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2901
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2902
+ realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2903
+ username: alepha1.TOptional<alepha1.TString>;
2904
+ email: alepha1.TOptional<alepha1.TString>;
2905
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2906
+ roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2907
+ firstName: alepha1.TOptional<alepha1.TString>;
2908
+ lastName: alepha1.TOptional<alepha1.TString>;
2909
+ picture: alepha1.TOptional<alepha1.TString>;
2910
+ enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2911
+ emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2912
+ }>, PgRelationMap<alepha1.TObject<{
2913
+ id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2914
+ version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2915
+ createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2916
+ updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2917
+ realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2918
+ username: alepha1.TOptional<alepha1.TString>;
2919
+ email: alepha1.TOptional<alepha1.TString>;
2920
+ phoneNumber: alepha1.TOptional<alepha1.TString>;
2921
+ roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2922
+ firstName: alepha1.TOptional<alepha1.TString>;
2923
+ lastName: alepha1.TOptional<alepha1.TString>;
2924
+ picture: alepha1.TOptional<alepha1.TString>;
2925
+ enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2926
+ emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2928
2927
  }>>>;
2929
2928
  expiresIn: number;
2930
2929
  sessionId: string;
@@ -2977,7 +2976,7 @@ declare class SessionService {
2977
2976
  }>;
2978
2977
  }
2979
2978
  //#endregion
2980
- //#region ../../src/api-users/index.d.ts
2979
+ //#region ../../src/api/users/index.d.ts
2981
2980
  /**
2982
2981
  * Provides user management API endpoints for Alepha applications.
2983
2982
  *
@@ -2986,7 +2985,7 @@ declare class SessionService {
2986
2985
  *
2987
2986
  * @module alepha.api.users
2988
2987
  */
2989
- declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
2988
+ declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
2990
2989
  //#endregion
2991
2990
  export { $userRealm, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserRealm, UserRealmConfig, UserRealmController, UserRealmOptions, UserRealmPrimitive, UserRealmProvider, UserRealmRepositories, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userRealmConfigSchema, userResourceSchema, users };
2992
2991
  //# sourceMappingURL=index.d.ts.map