alepha 0.13.7 → 0.14.0

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