alepha 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/dist/api/audits/index.d.ts +342 -365
  2. package/dist/api/audits/index.d.ts.map +1 -1
  3. package/dist/api/audits/index.js +10 -33
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.d.ts +180 -173
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js +10 -3
  8. package/dist/api/files/index.js.map +1 -1
  9. package/dist/api/jobs/index.d.ts +162 -155
  10. package/dist/api/jobs/index.d.ts.map +1 -1
  11. package/dist/api/jobs/index.js +10 -3
  12. package/dist/api/jobs/index.js.map +1 -1
  13. package/dist/api/keys/index.d.ts +413 -0
  14. package/dist/api/keys/index.d.ts.map +1 -0
  15. package/dist/api/keys/index.js +476 -0
  16. package/dist/api/keys/index.js.map +1 -0
  17. package/dist/api/notifications/index.d.ts +10 -4
  18. package/dist/api/notifications/index.d.ts.map +1 -1
  19. package/dist/api/notifications/index.js +10 -4
  20. package/dist/api/notifications/index.js.map +1 -1
  21. package/dist/api/parameters/index.d.ts +294 -301
  22. package/dist/api/parameters/index.d.ts.map +1 -1
  23. package/dist/api/parameters/index.js +30 -37
  24. package/dist/api/parameters/index.js.map +1 -1
  25. package/dist/api/users/index.d.ts +1079 -769
  26. package/dist/api/users/index.d.ts.map +1 -1
  27. package/dist/api/users/index.js +2534 -218
  28. package/dist/api/users/index.js.map +1 -1
  29. package/dist/api/verifications/index.d.ts +10 -4
  30. package/dist/api/verifications/index.d.ts.map +1 -1
  31. package/dist/api/verifications/index.js +12 -4
  32. package/dist/api/verifications/index.js.map +1 -1
  33. package/dist/batch/index.d.ts +20 -40
  34. package/dist/batch/index.d.ts.map +1 -1
  35. package/dist/batch/index.js +31 -44
  36. package/dist/batch/index.js.map +1 -1
  37. package/dist/bucket/index.d.ts +432 -8
  38. package/dist/bucket/index.d.ts.map +1 -1
  39. package/dist/bucket/index.js +1856 -12
  40. package/dist/bucket/index.js.map +1 -1
  41. package/dist/cache/core/index.d.ts +179 -7
  42. package/dist/cache/core/index.d.ts.map +1 -1
  43. package/dist/cache/core/index.js +213 -7
  44. package/dist/cache/core/index.js.map +1 -1
  45. package/dist/cache/redis/index.d.ts +1 -0
  46. package/dist/cache/redis/index.d.ts.map +1 -1
  47. package/dist/cache/redis/index.js +4 -0
  48. package/dist/cache/redis/index.js.map +1 -1
  49. package/dist/cli/index.d.ts +488 -5612
  50. package/dist/cli/index.d.ts.map +1 -1
  51. package/dist/cli/index.js +2326 -311
  52. package/dist/cli/index.js.map +1 -1
  53. package/dist/command/index.d.ts +194 -46
  54. package/dist/command/index.d.ts.map +1 -1
  55. package/dist/command/index.js +1995 -60
  56. package/dist/command/index.js.map +1 -1
  57. package/dist/core/index.browser.js +42 -19
  58. package/dist/core/index.browser.js.map +1 -1
  59. package/dist/core/index.d.ts +34 -13
  60. package/dist/core/index.d.ts.map +1 -1
  61. package/dist/core/index.js +62 -19
  62. package/dist/core/index.js.map +1 -1
  63. package/dist/core/index.native.js +42 -19
  64. package/dist/core/index.native.js.map +1 -1
  65. package/dist/datetime/index.d.ts +15 -0
  66. package/dist/datetime/index.d.ts.map +1 -1
  67. package/dist/datetime/index.js +15 -0
  68. package/dist/datetime/index.js.map +1 -1
  69. package/dist/email/index.d.ts +315 -20
  70. package/dist/email/index.d.ts.map +1 -1
  71. package/dist/email/index.js +1852 -7
  72. package/dist/email/index.js.map +1 -1
  73. package/dist/fake/index.d.ts +90 -8
  74. package/dist/fake/index.d.ts.map +1 -1
  75. package/dist/fake/index.js +91 -20
  76. package/dist/fake/index.js.map +1 -1
  77. package/dist/lock/core/index.d.ts +11 -4
  78. package/dist/lock/core/index.d.ts.map +1 -1
  79. package/dist/lock/core/index.js +11 -4
  80. package/dist/lock/core/index.js.map +1 -1
  81. package/dist/logger/index.d.ts +17 -66
  82. package/dist/logger/index.d.ts.map +1 -1
  83. package/dist/logger/index.js +14 -63
  84. package/dist/logger/index.js.map +1 -1
  85. package/dist/mcp/index.d.ts +15 -35
  86. package/dist/mcp/index.d.ts.map +1 -1
  87. package/dist/mcp/index.js +12 -35
  88. package/dist/mcp/index.js.map +1 -1
  89. package/dist/orm/index.browser.js +3 -3
  90. package/dist/orm/index.browser.js.map +1 -1
  91. package/dist/orm/index.bun.js +7 -4
  92. package/dist/orm/index.bun.js.map +1 -1
  93. package/dist/orm/index.d.ts +514 -540
  94. package/dist/orm/index.d.ts.map +1 -1
  95. package/dist/orm/index.js +24 -49
  96. package/dist/orm/index.js.map +1 -1
  97. package/dist/queue/core/index.d.ts +18 -10
  98. package/dist/queue/core/index.d.ts.map +1 -1
  99. package/dist/queue/core/index.js +14 -6
  100. package/dist/queue/core/index.js.map +1 -1
  101. package/dist/react/auth/index.browser.js +108 -0
  102. package/dist/react/auth/index.browser.js.map +1 -0
  103. package/dist/react/auth/index.d.ts +100 -0
  104. package/dist/react/auth/index.d.ts.map +1 -0
  105. package/dist/react/auth/index.js +145 -0
  106. package/dist/react/auth/index.js.map +1 -0
  107. package/dist/react/core/index.d.ts +469 -0
  108. package/dist/react/core/index.d.ts.map +1 -0
  109. package/dist/react/core/index.js +464 -0
  110. package/dist/react/core/index.js.map +1 -0
  111. package/dist/react/form/index.d.ts +232 -0
  112. package/dist/react/form/index.d.ts.map +1 -0
  113. package/dist/react/form/index.js +432 -0
  114. package/dist/react/form/index.js.map +1 -0
  115. package/dist/react/head/index.browser.js +423 -0
  116. package/dist/react/head/index.browser.js.map +1 -0
  117. package/dist/react/head/index.d.ts +288 -0
  118. package/dist/react/head/index.d.ts.map +1 -0
  119. package/dist/react/head/index.js +465 -0
  120. package/dist/react/head/index.js.map +1 -0
  121. package/dist/react/i18n/index.d.ts +175 -0
  122. package/dist/react/i18n/index.d.ts.map +1 -0
  123. package/dist/react/i18n/index.js +224 -0
  124. package/dist/react/i18n/index.js.map +1 -0
  125. package/dist/react/router/index.browser.js +1980 -0
  126. package/dist/react/router/index.browser.js.map +1 -0
  127. package/dist/react/router/index.d.ts +2068 -0
  128. package/dist/react/router/index.d.ts.map +1 -0
  129. package/dist/react/router/index.js +4932 -0
  130. package/dist/react/router/index.js.map +1 -0
  131. package/dist/react/websocket/index.d.ts +117 -0
  132. package/dist/react/websocket/index.d.ts.map +1 -0
  133. package/dist/react/websocket/index.js +107 -0
  134. package/dist/react/websocket/index.js.map +1 -0
  135. package/dist/redis/index.bun.js +4 -0
  136. package/dist/redis/index.bun.js.map +1 -1
  137. package/dist/redis/index.d.ts +22 -25
  138. package/dist/redis/index.d.ts.map +1 -1
  139. package/dist/redis/index.js +16 -25
  140. package/dist/redis/index.js.map +1 -1
  141. package/dist/retry/index.d.ts +11 -2
  142. package/dist/retry/index.d.ts.map +1 -1
  143. package/dist/retry/index.js +11 -2
  144. package/dist/retry/index.js.map +1 -1
  145. package/dist/scheduler/index.d.ts +11 -2
  146. package/dist/scheduler/index.d.ts.map +1 -1
  147. package/dist/scheduler/index.js +11 -2
  148. package/dist/scheduler/index.js.map +1 -1
  149. package/dist/security/index.d.ts +110 -19
  150. package/dist/security/index.d.ts.map +1 -1
  151. package/dist/security/index.js +157 -26
  152. package/dist/security/index.js.map +1 -1
  153. package/dist/server/auth/index.d.ts +179 -174
  154. package/dist/server/auth/index.d.ts.map +1 -1
  155. package/dist/server/auth/index.js +12 -7
  156. package/dist/server/auth/index.js.map +1 -1
  157. package/dist/server/cache/index.d.ts +7 -22
  158. package/dist/server/cache/index.d.ts.map +1 -1
  159. package/dist/server/cache/index.js +7 -22
  160. package/dist/server/cache/index.js.map +1 -1
  161. package/dist/server/compress/index.d.ts +10 -2
  162. package/dist/server/compress/index.d.ts.map +1 -1
  163. package/dist/server/compress/index.js +10 -2
  164. package/dist/server/compress/index.js.map +1 -1
  165. package/dist/server/cookies/index.d.ts +40 -16
  166. package/dist/server/cookies/index.d.ts.map +1 -1
  167. package/dist/server/cookies/index.js +7 -5
  168. package/dist/server/cookies/index.js.map +1 -1
  169. package/dist/server/core/index.d.ts +115 -14
  170. package/dist/server/core/index.d.ts.map +1 -1
  171. package/dist/server/core/index.js +231 -14
  172. package/dist/server/core/index.js.map +1 -1
  173. package/dist/server/cors/index.d.ts +13 -23
  174. package/dist/server/cors/index.d.ts.map +1 -1
  175. package/dist/server/cors/index.js +7 -21
  176. package/dist/server/cors/index.js.map +1 -1
  177. package/dist/server/health/index.d.ts +25 -19
  178. package/dist/server/health/index.d.ts.map +1 -1
  179. package/dist/server/health/index.js +8 -2
  180. package/dist/server/health/index.js.map +1 -1
  181. package/dist/server/helmet/index.d.ts +11 -3
  182. package/dist/server/helmet/index.d.ts.map +1 -1
  183. package/dist/server/helmet/index.js +11 -3
  184. package/dist/server/helmet/index.js.map +1 -1
  185. package/dist/server/links/index.d.ts +50 -45
  186. package/dist/server/links/index.d.ts.map +1 -1
  187. package/dist/server/links/index.js +11 -6
  188. package/dist/server/links/index.js.map +1 -1
  189. package/dist/server/metrics/index.d.ts +10 -3
  190. package/dist/server/metrics/index.d.ts.map +1 -1
  191. package/dist/server/metrics/index.js +10 -3
  192. package/dist/server/metrics/index.js.map +1 -1
  193. package/dist/server/multipart/index.d.ts +9 -3
  194. package/dist/server/multipart/index.d.ts.map +1 -1
  195. package/dist/server/multipart/index.js +9 -3
  196. package/dist/server/multipart/index.js.map +1 -1
  197. package/dist/server/proxy/index.d.ts +8 -2
  198. package/dist/server/proxy/index.d.ts.map +1 -1
  199. package/dist/server/proxy/index.js +8 -2
  200. package/dist/server/proxy/index.js.map +1 -1
  201. package/dist/server/rate-limit/index.d.ts +30 -35
  202. package/dist/server/rate-limit/index.d.ts.map +1 -1
  203. package/dist/server/rate-limit/index.js +18 -55
  204. package/dist/server/rate-limit/index.js.map +1 -1
  205. package/dist/server/static/index.d.ts +137 -4
  206. package/dist/server/static/index.d.ts.map +1 -1
  207. package/dist/server/static/index.js +1848 -5
  208. package/dist/server/static/index.js.map +1 -1
  209. package/dist/server/swagger/index.d.ts +301 -6
  210. package/dist/server/swagger/index.d.ts.map +1 -1
  211. package/dist/server/swagger/index.js +1849 -6
  212. package/dist/server/swagger/index.js.map +1 -1
  213. package/dist/sms/index.d.ts +301 -7
  214. package/dist/sms/index.d.ts.map +1 -1
  215. package/dist/sms/index.js +1851 -7
  216. package/dist/sms/index.js.map +1 -1
  217. package/dist/system/index.browser.js +496 -0
  218. package/dist/system/index.browser.js.map +1 -0
  219. package/dist/{file → system}/index.d.ts +335 -16
  220. package/dist/system/index.d.ts.map +1 -0
  221. package/dist/{file → system}/index.js +412 -20
  222. package/dist/system/index.js.map +1 -0
  223. package/dist/thread/index.d.ts +11 -2
  224. package/dist/thread/index.d.ts.map +1 -1
  225. package/dist/thread/index.js +11 -2
  226. package/dist/thread/index.js.map +1 -1
  227. package/dist/topic/core/index.d.ts +12 -5
  228. package/dist/topic/core/index.d.ts.map +1 -1
  229. package/dist/topic/core/index.js +12 -5
  230. package/dist/topic/core/index.js.map +1 -1
  231. package/dist/vite/index.d.ts +4 -6271
  232. package/dist/vite/index.d.ts.map +1 -1
  233. package/dist/vite/index.js +8 -3
  234. package/dist/vite/index.js.map +1 -1
  235. package/dist/websocket/index.d.ts +12 -8
  236. package/dist/websocket/index.d.ts.map +1 -1
  237. package/dist/websocket/index.js +12 -8
  238. package/dist/websocket/index.js.map +1 -1
  239. package/package.json +80 -11
  240. package/src/api/audits/index.ts +10 -33
  241. package/src/api/files/__tests__/$bucket.spec.ts +1 -1
  242. package/src/api/files/controllers/AdminFileStatsController.spec.ts +1 -1
  243. package/src/api/files/controllers/FileController.spec.ts +1 -1
  244. package/src/api/files/index.ts +10 -3
  245. package/src/api/files/jobs/FileJobs.spec.ts +1 -1
  246. package/src/api/files/services/FileService.spec.ts +1 -1
  247. package/src/api/jobs/index.ts +10 -3
  248. package/src/api/keys/controllers/AdminApiKeyController.ts +75 -0
  249. package/src/api/keys/controllers/ApiKeyController.ts +103 -0
  250. package/src/api/keys/entities/apiKeyEntity.ts +41 -0
  251. package/src/api/keys/index.ts +49 -0
  252. package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +7 -0
  253. package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +17 -0
  254. package/src/api/keys/schemas/createApiKeyBodySchema.ts +7 -0
  255. package/src/api/keys/schemas/createApiKeyResponseSchema.ts +11 -0
  256. package/src/api/keys/schemas/listApiKeyResponseSchema.ts +15 -0
  257. package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +5 -0
  258. package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +5 -0
  259. package/src/api/keys/services/ApiKeyService.spec.ts +553 -0
  260. package/src/api/keys/services/ApiKeyService.ts +306 -0
  261. package/src/api/logs/TODO.md +52 -0
  262. package/src/api/notifications/index.ts +10 -4
  263. package/src/api/parameters/index.ts +9 -30
  264. package/src/api/parameters/primitives/$config.ts +12 -4
  265. package/src/api/parameters/services/ConfigStore.ts +9 -3
  266. package/src/api/users/__tests__/ApiKeys-integration.spec.ts +1035 -0
  267. package/src/api/users/__tests__/ApiKeys.spec.ts +401 -0
  268. package/src/api/users/index.ts +14 -3
  269. package/src/api/users/primitives/$realm.ts +33 -5
  270. package/src/api/users/providers/RealmProvider.ts +1 -12
  271. package/src/api/users/services/SessionService.ts +1 -1
  272. package/src/api/verifications/controllers/VerificationController.ts +2 -0
  273. package/src/api/verifications/index.ts +10 -4
  274. package/src/batch/index.ts +9 -36
  275. package/src/batch/primitives/$batch.ts +0 -8
  276. package/src/batch/providers/BatchProvider.ts +29 -2
  277. package/src/bucket/__tests__/shared.ts +1 -1
  278. package/src/bucket/index.ts +13 -6
  279. package/src/bucket/primitives/$bucket.ts +1 -1
  280. package/src/bucket/providers/LocalFileStorageProvider.ts +1 -1
  281. package/src/bucket/providers/MemoryFileStorageProvider.ts +1 -1
  282. package/src/cache/core/__tests__/shared.ts +30 -0
  283. package/src/cache/core/index.ts +11 -6
  284. package/src/cache/core/primitives/$cache.spec.ts +5 -0
  285. package/src/cache/core/providers/CacheProvider.ts +17 -0
  286. package/src/cache/core/providers/MemoryCacheProvider.ts +300 -1
  287. package/src/cache/redis/__tests__/cache-redis.spec.ts +5 -0
  288. package/src/cache/redis/providers/RedisCacheProvider.ts +9 -0
  289. package/src/cli/apps/AlephaCli.ts +1 -14
  290. package/src/cli/apps/AlephaPackageBuilderCli.ts +1 -1
  291. package/src/cli/commands/build.ts +1 -5
  292. package/src/cli/commands/db.ts +17 -11
  293. package/src/cli/commands/deploy.ts +1 -1
  294. package/src/cli/commands/dev.ts +1 -20
  295. package/src/cli/commands/gen/env.ts +5 -2
  296. package/src/cli/commands/gen/openapi.ts +5 -2
  297. package/src/cli/commands/init.spec.ts +544 -0
  298. package/src/cli/commands/init.ts +89 -55
  299. package/src/cli/commands/lint.ts +7 -1
  300. package/src/cli/commands/typecheck.ts +11 -0
  301. package/src/cli/providers/AppEntryProvider.ts +1 -1
  302. package/src/cli/providers/ViteBuildProvider.ts +8 -50
  303. package/src/cli/providers/ViteDevServerProvider.ts +36 -8
  304. package/src/cli/services/AlephaCliUtils.ts +37 -122
  305. package/src/cli/services/PackageManagerUtils.ts +127 -11
  306. package/src/cli/services/ProjectScaffolder.ts +122 -77
  307. package/src/cli/services/ViteUtils.ts +82 -0
  308. package/src/cli/{assets/claudeMd.ts → templates/agentMd.ts} +32 -24
  309. package/src/cli/templates/gitignore.ts +39 -0
  310. package/src/cli/{assets → templates}/mainCss.ts +11 -2
  311. package/src/cli/templates/mainServerTs.ts +33 -0
  312. package/src/cli/templates/webAppRouterTs.ts +50 -0
  313. package/src/cli/{assets → templates}/webHelloComponentTsx.ts +2 -2
  314. package/src/command/helpers/Runner.spec.ts +4 -0
  315. package/src/command/helpers/Runner.ts +3 -21
  316. package/src/command/index.ts +12 -4
  317. package/src/command/providers/CliProvider.spec.ts +1067 -0
  318. package/src/command/providers/CliProvider.ts +203 -40
  319. package/src/core/Alepha.ts +2 -2
  320. package/src/core/__tests__/Alepha-start.spec.ts +4 -4
  321. package/src/core/helpers/jsonSchemaToTypeBox.spec.ts +771 -0
  322. package/src/core/helpers/jsonSchemaToTypeBox.ts +62 -10
  323. package/src/core/index.shared.ts +1 -0
  324. package/src/core/index.ts +20 -0
  325. package/src/core/providers/EventManager.spec.ts +0 -71
  326. package/src/core/providers/EventManager.ts +3 -15
  327. package/src/core/providers/Json.ts +2 -14
  328. package/src/datetime/index.ts +15 -0
  329. package/src/email/index.ts +10 -5
  330. package/src/email/providers/LocalEmailProvider.spec.ts +1 -1
  331. package/src/email/providers/LocalEmailProvider.ts +1 -1
  332. package/src/fake/__tests__/keyName.example.ts +1 -1
  333. package/src/fake/__tests__/keyName.spec.ts +5 -5
  334. package/src/fake/index.ts +9 -6
  335. package/src/fake/providers/FakeProvider.spec.ts +258 -40
  336. package/src/fake/providers/FakeProvider.ts +133 -19
  337. package/src/lock/core/index.ts +11 -4
  338. package/src/logger/index.ts +17 -66
  339. package/src/mcp/index.ts +10 -27
  340. package/src/mcp/transports/SseMcpTransport.ts +0 -11
  341. package/src/orm/__tests__/PostgresProvider.spec.ts +2 -2
  342. package/src/orm/index.browser.ts +2 -2
  343. package/src/orm/index.bun.ts +4 -2
  344. package/src/orm/index.ts +21 -47
  345. package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -0
  346. package/src/orm/services/Repository.ts +7 -3
  347. package/src/queue/core/index.ts +14 -6
  348. package/src/react/auth/__tests__/$auth.spec.ts +202 -0
  349. package/src/react/auth/hooks/useAuth.ts +32 -0
  350. package/src/react/auth/index.browser.ts +13 -0
  351. package/src/react/auth/index.shared.ts +2 -0
  352. package/src/react/auth/index.ts +48 -0
  353. package/src/react/auth/providers/ReactAuthProvider.ts +16 -0
  354. package/src/react/auth/services/ReactAuth.ts +135 -0
  355. package/src/react/core/__tests__/Router.spec.tsx +169 -0
  356. package/src/react/core/components/ClientOnly.tsx +49 -0
  357. package/src/react/core/components/ErrorBoundary.tsx +73 -0
  358. package/src/react/core/contexts/AlephaContext.ts +7 -0
  359. package/src/react/core/contexts/AlephaProvider.tsx +42 -0
  360. package/src/react/core/hooks/useAction.browser.spec.tsx +569 -0
  361. package/src/react/core/hooks/useAction.ts +480 -0
  362. package/src/react/core/hooks/useAlepha.ts +26 -0
  363. package/src/react/core/hooks/useClient.ts +17 -0
  364. package/src/react/core/hooks/useEvents.ts +51 -0
  365. package/src/react/core/hooks/useInject.ts +12 -0
  366. package/src/react/core/hooks/useStore.ts +52 -0
  367. package/src/react/core/index.ts +90 -0
  368. package/src/react/form/components/FormState.tsx +17 -0
  369. package/src/react/form/errors/FormValidationError.ts +18 -0
  370. package/src/react/form/hooks/useForm.browser.spec.tsx +366 -0
  371. package/src/react/form/hooks/useForm.ts +47 -0
  372. package/src/react/form/hooks/useFormState.ts +130 -0
  373. package/src/react/form/index.ts +44 -0
  374. package/src/react/form/services/FormModel.ts +614 -0
  375. package/src/react/head/helpers/SeoExpander.spec.ts +203 -0
  376. package/src/react/head/helpers/SeoExpander.ts +142 -0
  377. package/src/react/head/hooks/useHead.spec.tsx +288 -0
  378. package/src/react/head/hooks/useHead.ts +62 -0
  379. package/src/react/head/index.browser.ts +26 -0
  380. package/src/react/head/index.ts +44 -0
  381. package/src/react/head/interfaces/Head.ts +105 -0
  382. package/src/react/head/primitives/$head.ts +25 -0
  383. package/src/react/head/providers/BrowserHeadProvider.browser.spec.ts +196 -0
  384. package/src/react/head/providers/BrowserHeadProvider.ts +212 -0
  385. package/src/react/head/providers/HeadProvider.ts +168 -0
  386. package/src/react/head/providers/ServerHeadProvider.ts +31 -0
  387. package/src/react/i18n/__tests__/integration.spec.tsx +239 -0
  388. package/src/react/i18n/components/Localize.spec.tsx +357 -0
  389. package/src/react/i18n/components/Localize.tsx +35 -0
  390. package/src/react/i18n/hooks/useI18n.browser.spec.tsx +438 -0
  391. package/src/react/i18n/hooks/useI18n.ts +18 -0
  392. package/src/react/i18n/index.ts +41 -0
  393. package/src/react/i18n/primitives/$dictionary.ts +69 -0
  394. package/src/react/i18n/providers/I18nProvider.spec.ts +389 -0
  395. package/src/react/i18n/providers/I18nProvider.ts +278 -0
  396. package/src/react/router/__tests__/page-head-browser.browser.spec.ts +95 -0
  397. package/src/react/router/__tests__/page-head.spec.ts +48 -0
  398. package/src/react/router/__tests__/seo-head.spec.ts +125 -0
  399. package/src/react/router/atoms/ssrManifestAtom.ts +58 -0
  400. package/src/react/router/components/ErrorViewer.tsx +872 -0
  401. package/src/react/router/components/Link.tsx +23 -0
  402. package/src/react/router/components/NestedView.tsx +223 -0
  403. package/src/react/router/components/NotFound.tsx +30 -0
  404. package/src/react/router/constants/PAGE_PRELOAD_KEY.ts +6 -0
  405. package/src/react/router/contexts/RouterLayerContext.ts +12 -0
  406. package/src/react/router/errors/Redirection.ts +28 -0
  407. package/src/react/router/hooks/useActive.ts +52 -0
  408. package/src/react/router/hooks/useQueryParams.ts +63 -0
  409. package/src/react/router/hooks/useRouter.ts +20 -0
  410. package/src/react/router/hooks/useRouterState.ts +11 -0
  411. package/src/react/router/index.browser.ts +45 -0
  412. package/src/react/router/index.shared.ts +19 -0
  413. package/src/react/router/index.ts +142 -0
  414. package/src/react/router/primitives/$page.browser.spec.tsx +851 -0
  415. package/src/react/router/primitives/$page.spec.tsx +708 -0
  416. package/src/react/router/primitives/$page.ts +497 -0
  417. package/src/react/router/providers/ReactBrowserProvider.ts +309 -0
  418. package/src/react/router/providers/ReactBrowserRendererProvider.ts +25 -0
  419. package/src/react/router/providers/ReactBrowserRouterProvider.ts +168 -0
  420. package/src/react/router/providers/ReactPageProvider.ts +726 -0
  421. package/src/react/router/providers/ReactServerProvider.spec.tsx +316 -0
  422. package/src/react/router/providers/ReactServerProvider.ts +558 -0
  423. package/src/react/router/providers/ReactServerTemplateProvider.ts +979 -0
  424. package/src/react/router/providers/SSRManifestProvider.ts +334 -0
  425. package/src/react/router/services/ReactPageServerService.ts +48 -0
  426. package/src/react/router/services/ReactPageService.ts +27 -0
  427. package/src/react/router/services/ReactRouter.ts +262 -0
  428. package/src/react/websocket/hooks/useRoom.tsx +242 -0
  429. package/src/react/websocket/index.ts +7 -0
  430. package/src/redis/__tests__/redis.spec.ts +13 -0
  431. package/src/redis/index.ts +9 -25
  432. package/src/redis/providers/BunRedisProvider.ts +9 -0
  433. package/src/redis/providers/NodeRedisProvider.ts +8 -0
  434. package/src/redis/providers/RedisProvider.ts +16 -0
  435. package/src/retry/index.ts +11 -2
  436. package/src/router/index.ts +15 -0
  437. package/src/scheduler/index.ts +11 -2
  438. package/src/security/__tests__/BasicAuth.spec.ts +2 -0
  439. package/src/security/__tests__/ServerSecurityProvider.spec.ts +13 -5
  440. package/src/security/index.ts +15 -10
  441. package/src/security/interfaces/IssuerResolver.ts +27 -0
  442. package/src/security/primitives/$issuer.ts +55 -0
  443. package/src/security/providers/SecurityProvider.ts +179 -0
  444. package/src/security/providers/ServerBasicAuthProvider.ts +6 -2
  445. package/src/security/providers/ServerSecurityProvider.ts +36 -22
  446. package/src/server/auth/index.ts +12 -7
  447. package/src/server/cache/index.ts +7 -22
  448. package/src/server/compress/index.ts +10 -2
  449. package/src/server/cookies/index.ts +7 -5
  450. package/src/server/cookies/primitives/$cookie.ts +33 -11
  451. package/src/server/core/index.ts +16 -6
  452. package/src/server/core/interfaces/ServerRequest.ts +83 -1
  453. package/src/server/core/primitives/$action.spec.ts +1 -1
  454. package/src/server/core/primitives/$action.ts +8 -3
  455. package/src/server/core/providers/NodeHttpServerProvider.ts +9 -3
  456. package/src/server/core/services/ServerRequestParser.spec.ts +520 -0
  457. package/src/server/core/services/ServerRequestParser.ts +306 -13
  458. package/src/server/cors/index.ts +7 -21
  459. package/src/server/cors/primitives/$cors.ts +6 -2
  460. package/src/server/health/index.ts +8 -2
  461. package/src/server/helmet/index.ts +11 -3
  462. package/src/server/links/index.ts +11 -6
  463. package/src/server/metrics/index.ts +10 -3
  464. package/src/server/multipart/index.ts +9 -3
  465. package/src/server/proxy/index.ts +8 -2
  466. package/src/server/rate-limit/index.ts +21 -25
  467. package/src/server/rate-limit/primitives/$rateLimit.ts +6 -2
  468. package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +38 -14
  469. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +22 -56
  470. package/src/server/static/index.ts +8 -2
  471. package/src/server/static/providers/ServerStaticProvider.ts +1 -1
  472. package/src/server/swagger/index.ts +9 -4
  473. package/src/server/swagger/providers/ServerSwaggerProvider.ts +1 -1
  474. package/src/sms/index.ts +9 -5
  475. package/src/sms/providers/LocalSmsProvider.spec.ts +1 -1
  476. package/src/sms/providers/LocalSmsProvider.ts +1 -1
  477. package/src/system/index.browser.ts +11 -0
  478. package/src/system/index.ts +62 -0
  479. package/src/{file → system}/providers/FileSystemProvider.ts +16 -0
  480. package/src/{file → system}/providers/MemoryFileSystemProvider.ts +116 -3
  481. package/src/system/providers/MemoryShellProvider.ts +164 -0
  482. package/src/{file → system}/providers/NodeFileSystemProvider.spec.ts +2 -2
  483. package/src/{file → system}/providers/NodeFileSystemProvider.ts +36 -0
  484. package/src/system/providers/NodeShellProvider.ts +184 -0
  485. package/src/system/providers/ShellProvider.ts +74 -0
  486. package/src/{file → system}/services/FileDetector.spec.ts +2 -2
  487. package/src/thread/index.ts +11 -2
  488. package/src/topic/core/index.ts +12 -5
  489. package/src/vite/tasks/buildClient.ts +2 -7
  490. package/src/vite/tasks/buildServer.ts +17 -1
  491. package/src/websocket/index.ts +12 -8
  492. package/dist/file/index.d.ts.map +0 -1
  493. package/dist/file/index.js.map +0 -1
  494. package/src/cli/assets/mainServerTs.ts +0 -24
  495. package/src/cli/assets/webAppRouterTs.ts +0 -16
  496. package/src/cli/providers/ViteTemplateProvider.ts +0 -27
  497. package/src/file/index.ts +0 -43
  498. /package/src/cli/{assets → templates}/apiHelloControllerTs.ts +0 -0
  499. /package/src/cli/{assets → templates}/apiIndexTs.ts +0 -0
  500. /package/src/cli/{assets → templates}/biomeJson.ts +0 -0
  501. /package/src/cli/{assets → templates}/dummySpecTs.ts +0 -0
  502. /package/src/cli/{assets → templates}/editorconfig.ts +0 -0
  503. /package/src/cli/{assets → templates}/mainBrowserTs.ts +0 -0
  504. /package/src/cli/{assets → templates}/tsconfigJson.ts +0 -0
  505. /package/src/cli/{assets → templates}/webIndexTs.ts +0 -0
  506. /package/src/{file → system}/errors/FileError.ts +0 -0
  507. /package/src/{file → system}/services/FileDetector.ts +0 -0
@@ -1,19 +1,19 @@
1
- import * as alepha1 from "alepha";
2
- import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
1
+ import * as alepha23 from "alepha";
2
+ import { Alepha, AlephaError, FileLike, Json, Page, PageQuery, Primitive, Static, StaticEncode, StreamLike, 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_server0 from "alepha/server";
6
6
  import * as alepha_orm24 from "alepha/orm";
7
7
  import { Page as Page$1, Repository } from "alepha/orm";
8
8
  import { AuditService } from "alepha/api/audits";
9
- import * as alepha_logger5 from "alepha/logger";
9
+ import * as alepha_logger6 from "alepha/logger";
10
10
  import * as alepha_bucket0 from "alepha/bucket";
11
11
  import * as alepha_server_links0 from "alepha/server/links";
12
12
  import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
13
13
  import * as alepha_cache0 from "alepha/cache";
14
14
  import { DateTime, DateTimeProvider } from "alepha/datetime";
15
15
  import { CryptoProvider, IssuerPrimitive, IssuerPrimitiveOptions, UserAccount } from "alepha/security";
16
- import { FileSystemProvider } from "alepha/file";
16
+ import { Readable } from "node:stream";
17
17
  import { FileController } from "alepha/api/files";
18
18
  import "drizzle-orm/d1";
19
19
  import * as drizzle_orm0 from "drizzle-orm";
@@ -26,29 +26,29 @@ import "alepha/retry";
26
26
  import "drizzle-orm/sqlite-core";
27
27
 
28
28
  //#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
29
- declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
30
- displayName: alepha1.TOptional<alepha1.TString>;
31
- description: alepha1.TOptional<alepha1.TString>;
32
- logoUrl: alepha1.TOptional<alepha1.TString>;
33
- registrationAllowed: alepha1.TBoolean;
34
- emailEnabled: alepha1.TBoolean;
35
- emailRequired: alepha1.TBoolean;
36
- usernameEnabled: alepha1.TBoolean;
37
- usernameRequired: alepha1.TBoolean;
38
- usernameRegExp: alepha1.TString;
39
- phoneEnabled: alepha1.TBoolean;
40
- phoneRequired: alepha1.TBoolean;
41
- verifyEmailRequired: alepha1.TBoolean;
42
- verifyPhoneRequired: alepha1.TBoolean;
43
- firstNameLastNameEnabled: alepha1.TBoolean;
44
- firstNameLastNameRequired: alepha1.TBoolean;
45
- resetPasswordAllowed: alepha1.TBoolean;
46
- passwordPolicy: alepha1.TObject<{
47
- minLength: alepha1.TInteger;
48
- requireUppercase: alepha1.TBoolean;
49
- requireLowercase: alepha1.TBoolean;
50
- requireNumbers: alepha1.TBoolean;
51
- requireSpecialCharacters: alepha1.TBoolean;
29
+ declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
30
+ displayName: alepha23.TOptional<alepha23.TString>;
31
+ description: alepha23.TOptional<alepha23.TString>;
32
+ logoUrl: alepha23.TOptional<alepha23.TString>;
33
+ registrationAllowed: alepha23.TBoolean;
34
+ emailEnabled: alepha23.TBoolean;
35
+ emailRequired: alepha23.TBoolean;
36
+ usernameEnabled: alepha23.TBoolean;
37
+ usernameRequired: alepha23.TBoolean;
38
+ usernameRegExp: alepha23.TString;
39
+ phoneEnabled: alepha23.TBoolean;
40
+ phoneRequired: alepha23.TBoolean;
41
+ verifyEmailRequired: alepha23.TBoolean;
42
+ verifyPhoneRequired: alepha23.TBoolean;
43
+ firstNameLastNameEnabled: alepha23.TBoolean;
44
+ firstNameLastNameRequired: alepha23.TBoolean;
45
+ resetPasswordAllowed: alepha23.TBoolean;
46
+ passwordPolicy: alepha23.TObject<{
47
+ minLength: alepha23.TInteger;
48
+ requireUppercase: alepha23.TBoolean;
49
+ requireLowercase: alepha23.TBoolean;
50
+ requireNumbers: alepha23.TBoolean;
51
+ requireSpecialCharacters: alepha23.TBoolean;
52
52
  }>;
53
53
  }>, "alepha.api.users.realmAuthSettings">;
54
54
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
@@ -904,7 +904,7 @@ declare abstract class ModelBuilder {
904
904
  //#endregion
905
905
  //#region ../../src/orm/providers/DrizzleKitProvider.d.ts
906
906
  declare class DrizzleKitProvider {
907
- protected readonly log: alepha_logger5.Logger;
907
+ protected readonly log: alepha_logger6.Logger;
908
908
  protected readonly alepha: Alepha;
909
909
  /**
910
910
  * Synchronize database with current schema definitions.
@@ -940,11 +940,11 @@ declare class DrizzleKitProvider {
940
940
  */
941
941
  importDrizzleKit(): typeof DrizzleKit;
942
942
  }
943
- declare const devMigrationsSchema: alepha1.TObject<{
944
- id: alepha1.TNumber;
945
- name: alepha1.TString;
946
- snapshot: alepha1.TString;
947
- created_at: alepha1.TString;
943
+ declare const devMigrationsSchema: alepha23.TObject<{
944
+ id: alepha23.TNumber;
945
+ name: alepha23.TString;
946
+ snapshot: alepha23.TString;
947
+ created_at: alepha23.TString;
948
948
  }>;
949
949
  type DevMigrations = Static<typeof devMigrationsSchema>;
950
950
  //#endregion
@@ -952,7 +952,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
952
952
  type SQLLike = SQLWrapper | string;
953
953
  declare abstract class DatabaseProvider {
954
954
  protected readonly alepha: Alepha;
955
- protected readonly log: alepha_logger5.Logger;
955
+ protected readonly log: alepha_logger6.Logger;
956
956
  protected abstract readonly builder: ModelBuilder;
957
957
  protected abstract readonly kit: DrizzleKitProvider;
958
958
  abstract readonly db: PgDatabase<any>;
@@ -1070,7 +1070,7 @@ declare class QueryManager {
1070
1070
  createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
1071
1071
  column: string;
1072
1072
  direction: "asc" | "desc";
1073
- }>): alepha1.Page<T>;
1073
+ }>): alepha23.Page<T>;
1074
1074
  }
1075
1075
  interface PgJoin {
1076
1076
  table: string;
@@ -1104,7 +1104,7 @@ declare class PgRelationManager {
1104
1104
  declare abstract class Repository$1<T extends TObject> {
1105
1105
  readonly entity: EntityPrimitive<T>;
1106
1106
  readonly provider: DatabaseProvider;
1107
- protected readonly log: alepha_logger5.Logger;
1107
+ protected readonly log: alepha_logger6.Logger;
1108
1108
  protected readonly relationManager: PgRelationManager;
1109
1109
  protected readonly queryManager: QueryManager;
1110
1110
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -1255,7 +1255,7 @@ declare abstract class Repository$1<T extends TObject> {
1255
1255
  /**
1256
1256
  * Find an entity and update it.
1257
1257
  */
1258
- updateOne(where: PgQueryWhereOrSQL<T>, data: Partial<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
1258
+ updateOne(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
1259
1259
  /**
1260
1260
  * Save a given entity.
1261
1261
  *
@@ -1280,11 +1280,11 @@ declare abstract class Repository$1<T extends TObject> {
1280
1280
  /**
1281
1281
  * Find an entity by ID and update it.
1282
1282
  */
1283
- updateById(id: string | number, data: Partial<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
1283
+ updateById(id: string | number, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Static<T>>;
1284
1284
  /**
1285
1285
  * Find many entities and update all of them.
1286
1286
  */
1287
- updateMany(where: PgQueryWhereOrSQL<T>, data: Partial<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Array<number | string>>;
1287
+ updateMany(where: PgQueryWhereOrSQL<T>, data: WithSQL<Static<TObjectUpdate<T>>>, opts?: StatementOptions): Promise<Array<number | string>>;
1288
1288
  /**
1289
1289
  * Find many and delete all of them.
1290
1290
  * @returns Array of deleted entity IDs
@@ -1379,56 +1379,57 @@ interface StatementOptions {
1379
1379
  */
1380
1380
  now?: DateTime | string;
1381
1381
  }
1382
+ type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
1382
1383
  //#endregion
1383
1384
  //#region ../../src/api/users/entities/identities.d.ts
1384
- declare const identities: alepha_orm24.EntityPrimitive<alepha1.TObject<{
1385
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1386
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1387
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1388
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1389
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1390
- password: alepha1.TOptional<alepha1.TString>;
1391
- provider: alepha1.TString;
1392
- providerUserId: alepha1.TOptional<alepha1.TString>;
1393
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
1385
+ declare const identities: alepha_orm24.EntityPrimitive<alepha23.TObject<{
1386
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1387
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1388
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1389
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1390
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1391
+ password: alepha23.TOptional<alepha23.TString>;
1392
+ provider: alepha23.TString;
1393
+ providerUserId: alepha23.TOptional<alepha23.TString>;
1394
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
1394
1395
  }>>;
1395
1396
  type IdentityEntity = Static<typeof identities.schema>;
1396
1397
  //#endregion
1397
1398
  //#region ../../src/api/users/entities/sessions.d.ts
1398
- declare const sessions: alepha_orm24.EntityPrimitive<alepha1.TObject<{
1399
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1400
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1401
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1402
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1403
- refreshToken: alepha1.TString;
1404
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1405
- expiresAt: alepha1.TString;
1406
- ip: alepha1.TOptional<alepha1.TString>;
1407
- userAgent: alepha1.TOptional<alepha1.TObject<{
1408
- os: alepha1.TString;
1409
- browser: alepha1.TString;
1410
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1399
+ declare const sessions: alepha_orm24.EntityPrimitive<alepha23.TObject<{
1400
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1401
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1402
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1403
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1404
+ refreshToken: alepha23.TString;
1405
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1406
+ expiresAt: alepha23.TString;
1407
+ ip: alepha23.TOptional<alepha23.TString>;
1408
+ userAgent: alepha23.TOptional<alepha23.TObject<{
1409
+ os: alepha23.TString;
1410
+ browser: alepha23.TString;
1411
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1411
1412
  }>>;
1412
1413
  }>>;
1413
1414
  type SessionEntity = Static<typeof sessions.schema>;
1414
1415
  //#endregion
1415
1416
  //#region ../../src/api/users/entities/users.d.ts
1416
1417
  declare const DEFAULT_USER_REALM_NAME = "default";
1417
- declare const users: alepha_orm24.EntityPrimitive<alepha1.TObject<{
1418
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1419
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1420
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1421
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1422
- realm: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_DEFAULT>;
1423
- username: alepha1.TOptional<alepha1.TString>;
1424
- email: alepha1.TOptional<alepha1.TString>;
1425
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1426
- roles: alepha_orm24.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm24.PG_DEFAULT>;
1427
- firstName: alepha1.TOptional<alepha1.TString>;
1428
- lastName: alepha1.TOptional<alepha1.TString>;
1429
- picture: alepha1.TOptional<alepha1.TString>;
1430
- enabled: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1431
- emailVerified: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1418
+ declare const users: alepha_orm24.EntityPrimitive<alepha23.TObject<{
1419
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1420
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1421
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1422
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1423
+ realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
1424
+ username: alepha23.TOptional<alepha23.TString>;
1425
+ email: alepha23.TOptional<alepha23.TString>;
1426
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1427
+ roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
1428
+ firstName: alepha23.TOptional<alepha23.TString>;
1429
+ lastName: alepha23.TOptional<alepha23.TString>;
1430
+ picture: alepha23.TOptional<alepha23.TString>;
1431
+ enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1432
+ emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1432
1433
  }>>;
1433
1434
  type UserEntity = Static<typeof users.schema>;
1434
1435
  //#endregion
@@ -1475,11 +1476,20 @@ interface RealmOptions {
1475
1476
  google?: true;
1476
1477
  github?: true;
1477
1478
  };
1478
- modules?: {
1479
- files?: boolean;
1480
- audits?: boolean;
1481
- jobs?: boolean;
1482
- };
1479
+ /**
1480
+ * Enable API key authentication.
1481
+ *
1482
+ * When enabled, users can create API keys to access protected endpoints
1483
+ * without using JWT tokens. API keys are useful for:
1484
+ * - Programmatic access (CLI tools, scripts)
1485
+ * - Long-lived authentication tokens
1486
+ * - Third-party integrations
1487
+ *
1488
+ * API keys can be passed via:
1489
+ * - Query parameter: `?api_key=ak_xxx`
1490
+ * - Bearer header: `Authorization: Bearer ak_xxx`
1491
+ */
1492
+ apiKeys?: boolean;
1483
1493
  }
1484
1494
  //#endregion
1485
1495
  //#region ../../src/api/users/providers/RealmProvider.d.ts
@@ -1495,51 +1505,50 @@ interface Realm {
1495
1505
  }
1496
1506
  declare class RealmProvider {
1497
1507
  protected readonly alepha: Alepha;
1498
- protected readonly defaultIdentities: Repository<alepha1.TObject<{
1499
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1500
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1501
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1502
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1503
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1504
- password: alepha1.TOptional<alepha1.TString>;
1505
- provider: alepha1.TString;
1506
- providerUserId: alepha1.TOptional<alepha1.TString>;
1507
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
1508
+ protected readonly defaultIdentities: Repository<alepha23.TObject<{
1509
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1510
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1511
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1512
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1513
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1514
+ password: alepha23.TOptional<alepha23.TString>;
1515
+ provider: alepha23.TString;
1516
+ providerUserId: alepha23.TOptional<alepha23.TString>;
1517
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
1508
1518
  }>>;
1509
- protected readonly defaultSessions: Repository<alepha1.TObject<{
1510
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1511
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1512
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1513
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1514
- refreshToken: alepha1.TString;
1515
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1516
- expiresAt: alepha1.TString;
1517
- ip: alepha1.TOptional<alepha1.TString>;
1518
- userAgent: alepha1.TOptional<alepha1.TObject<{
1519
- os: alepha1.TString;
1520
- browser: alepha1.TString;
1521
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1519
+ protected readonly defaultSessions: Repository<alepha23.TObject<{
1520
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1521
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1522
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1523
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1524
+ refreshToken: alepha23.TString;
1525
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1526
+ expiresAt: alepha23.TString;
1527
+ ip: alepha23.TOptional<alepha23.TString>;
1528
+ userAgent: alepha23.TOptional<alepha23.TObject<{
1529
+ os: alepha23.TString;
1530
+ browser: alepha23.TString;
1531
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1522
1532
  }>>;
1523
1533
  }>>;
1524
- protected readonly defaultUsers: Repository<alepha1.TObject<{
1525
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1526
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1527
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1528
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1529
- realm: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_DEFAULT>;
1530
- username: alepha1.TOptional<alepha1.TString>;
1531
- email: alepha1.TOptional<alepha1.TString>;
1532
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1533
- roles: alepha_orm24.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm24.PG_DEFAULT>;
1534
- firstName: alepha1.TOptional<alepha1.TString>;
1535
- lastName: alepha1.TOptional<alepha1.TString>;
1536
- picture: alepha1.TOptional<alepha1.TString>;
1537
- enabled: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1538
- emailVerified: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1534
+ protected readonly defaultUsers: Repository<alepha23.TObject<{
1535
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1536
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1537
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1538
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1539
+ realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
1540
+ username: alepha23.TOptional<alepha23.TString>;
1541
+ email: alepha23.TOptional<alepha23.TString>;
1542
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1543
+ roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
1544
+ firstName: alepha23.TOptional<alepha23.TString>;
1545
+ lastName: alepha23.TOptional<alepha23.TString>;
1546
+ picture: alepha23.TOptional<alepha23.TString>;
1547
+ enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1548
+ emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1539
1549
  }>>;
1540
1550
  protected realms: Map<string, Realm>;
1541
1551
  avatars: alepha_bucket0.BucketPrimitive;
1542
- protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
1543
1552
  register(realmName: string, realmOptions?: RealmOptions): Realm;
1544
1553
  /**
1545
1554
  * Gets a registered realm by name, auto-creating default if needed.
@@ -1551,30 +1560,30 @@ declare class RealmProvider {
1551
1560
  }
1552
1561
  //#endregion
1553
1562
  //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
1554
- declare const identityQuerySchema: alepha1.TObject<{
1555
- page: alepha1.TOptional<alepha1.TInteger>;
1556
- size: alepha1.TOptional<alepha1.TInteger>;
1557
- sort: alepha1.TOptional<alepha1.TString>;
1558
- userId: alepha1.TOptional<alepha1.TString>;
1559
- provider: alepha1.TOptional<alepha1.TString>;
1563
+ declare const identityQuerySchema: alepha23.TObject<{
1564
+ page: alepha23.TOptional<alepha23.TInteger>;
1565
+ size: alepha23.TOptional<alepha23.TInteger>;
1566
+ sort: alepha23.TOptional<alepha23.TString>;
1567
+ userId: alepha23.TOptional<alepha23.TString>;
1568
+ provider: alepha23.TOptional<alepha23.TString>;
1560
1569
  }>;
1561
1570
  type IdentityQuery = Static<typeof identityQuerySchema>;
1562
1571
  //#endregion
1563
1572
  //#region ../../src/api/users/services/IdentityService.d.ts
1564
1573
  declare class IdentityService {
1565
- protected readonly log: alepha_logger5.Logger;
1574
+ protected readonly log: alepha_logger6.Logger;
1566
1575
  protected readonly realmProvider: RealmProvider;
1567
1576
  protected readonly auditService: AuditService;
1568
- identities(userRealmName?: string): alepha_orm24.Repository<alepha1.TObject<{
1569
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1570
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1571
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1572
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1573
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1574
- password: alepha1.TOptional<alepha1.TString>;
1575
- provider: alepha1.TString;
1576
- providerUserId: alepha1.TOptional<alepha1.TString>;
1577
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
1577
+ identities(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
1578
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1579
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1580
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1581
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1582
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1583
+ password: alepha23.TOptional<alepha23.TString>;
1584
+ provider: alepha23.TString;
1585
+ providerUserId: alepha23.TOptional<alepha23.TString>;
1586
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
1578
1587
  }>>;
1579
1588
  /**
1580
1589
  * Find identities with pagination and filtering.
@@ -1599,90 +1608,90 @@ declare class AdminIdentityController {
1599
1608
  * Find identities with pagination and filtering.
1600
1609
  */
1601
1610
  readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
1602
- query: alepha1.TObject<{
1603
- page: alepha1.TOptional<alepha1.TInteger>;
1604
- size: alepha1.TOptional<alepha1.TInteger>;
1605
- sort: alepha1.TOptional<alepha1.TString>;
1606
- userId: alepha1.TOptional<alepha1.TString>;
1607
- provider: alepha1.TOptional<alepha1.TString>;
1608
- userRealmName: alepha1.TOptional<alepha1.TString>;
1611
+ query: alepha23.TObject<{
1612
+ page: alepha23.TOptional<alepha23.TInteger>;
1613
+ size: alepha23.TOptional<alepha23.TInteger>;
1614
+ sort: alepha23.TOptional<alepha23.TString>;
1615
+ userId: alepha23.TOptional<alepha23.TString>;
1616
+ provider: alepha23.TOptional<alepha23.TString>;
1617
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1609
1618
  }>;
1610
- response: alepha1.TPage<alepha1.TObject<{
1611
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
1612
- provider: alepha1.TString;
1613
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1614
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1615
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1616
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1617
- providerUserId: alepha1.TOptional<alepha1.TString>;
1618
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
1619
+ response: alepha23.TPage<alepha23.TObject<{
1620
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1621
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1622
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1623
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1624
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
1625
+ provider: alepha23.TString;
1626
+ providerUserId: alepha23.TOptional<alepha23.TString>;
1627
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
1619
1628
  }>>;
1620
1629
  }>;
1621
1630
  /**
1622
1631
  * Get an identity by ID.
1623
1632
  */
1624
1633
  readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
1625
- params: alepha1.TObject<{
1626
- id: alepha1.TString;
1634
+ params: alepha23.TObject<{
1635
+ id: alepha23.TString;
1627
1636
  }>;
1628
- query: alepha1.TObject<{
1629
- userRealmName: alepha1.TOptional<alepha1.TString>;
1637
+ query: alepha23.TObject<{
1638
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1630
1639
  }>;
1631
- response: alepha1.TObject<{
1632
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
1633
- provider: alepha1.TString;
1634
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1635
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1636
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1637
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1638
- providerUserId: alepha1.TOptional<alepha1.TString>;
1639
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
1640
+ response: alepha23.TObject<{
1641
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1642
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1643
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1644
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1645
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
1646
+ provider: alepha23.TString;
1647
+ providerUserId: alepha23.TOptional<alepha23.TString>;
1648
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
1640
1649
  }>;
1641
1650
  }>;
1642
1651
  /**
1643
1652
  * Delete an identity.
1644
1653
  */
1645
1654
  readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
1646
- params: alepha1.TObject<{
1647
- id: alepha1.TString;
1655
+ params: alepha23.TObject<{
1656
+ id: alepha23.TString;
1648
1657
  }>;
1649
- query: alepha1.TObject<{
1650
- userRealmName: alepha1.TOptional<alepha1.TString>;
1658
+ query: alepha23.TObject<{
1659
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1651
1660
  }>;
1652
- response: alepha1.TObject<{
1653
- ok: alepha1.TBoolean;
1654
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
1655
- count: alepha1.TOptional<alepha1.TNumber>;
1661
+ response: alepha23.TObject<{
1662
+ ok: alepha23.TBoolean;
1663
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
1664
+ count: alepha23.TOptional<alepha23.TNumber>;
1656
1665
  }>;
1657
1666
  }>;
1658
1667
  }
1659
1668
  //#endregion
1660
1669
  //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
1661
- declare const sessionQuerySchema: alepha1.TObject<{
1662
- page: alepha1.TOptional<alepha1.TInteger>;
1663
- size: alepha1.TOptional<alepha1.TInteger>;
1664
- sort: alepha1.TOptional<alepha1.TString>;
1665
- userId: alepha1.TOptional<alepha1.TString>;
1670
+ declare const sessionQuerySchema: alepha23.TObject<{
1671
+ page: alepha23.TOptional<alepha23.TInteger>;
1672
+ size: alepha23.TOptional<alepha23.TInteger>;
1673
+ sort: alepha23.TOptional<alepha23.TString>;
1674
+ userId: alepha23.TOptional<alepha23.TString>;
1666
1675
  }>;
1667
1676
  type SessionQuery = Static<typeof sessionQuerySchema>;
1668
1677
  //#endregion
1669
1678
  //#region ../../src/api/users/services/SessionCrudService.d.ts
1670
1679
  declare class SessionCrudService {
1671
- protected readonly log: alepha_logger5.Logger;
1680
+ protected readonly log: alepha_logger6.Logger;
1672
1681
  protected readonly realmProvider: RealmProvider;
1673
- sessions(userRealmName?: string): alepha_orm24.Repository<alepha1.TObject<{
1674
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1675
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1676
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1677
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1678
- refreshToken: alepha1.TString;
1679
- userId: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_REF>;
1680
- expiresAt: alepha1.TString;
1681
- ip: alepha1.TOptional<alepha1.TString>;
1682
- userAgent: alepha1.TOptional<alepha1.TObject<{
1683
- os: alepha1.TString;
1684
- browser: alepha1.TString;
1685
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1682
+ sessions(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
1683
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1684
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1685
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1686
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1687
+ refreshToken: alepha23.TString;
1688
+ userId: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_REF>;
1689
+ expiresAt: alepha23.TString;
1690
+ ip: alepha23.TOptional<alepha23.TString>;
1691
+ userAgent: alepha23.TOptional<alepha23.TObject<{
1692
+ os: alepha23.TString;
1693
+ browser: alepha23.TString;
1694
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1686
1695
  }>>;
1687
1696
  }>>;
1688
1697
  /**
@@ -1708,26 +1717,26 @@ declare class AdminSessionController {
1708
1717
  * Find sessions with pagination and filtering.
1709
1718
  */
1710
1719
  readonly findSessions: alepha_server0.ActionPrimitiveFn<{
1711
- query: alepha1.TObject<{
1712
- page: alepha1.TOptional<alepha1.TInteger>;
1713
- size: alepha1.TOptional<alepha1.TInteger>;
1714
- sort: alepha1.TOptional<alepha1.TString>;
1715
- userId: alepha1.TOptional<alepha1.TString>;
1716
- userRealmName: alepha1.TOptional<alepha1.TString>;
1720
+ query: alepha23.TObject<{
1721
+ page: alepha23.TOptional<alepha23.TInteger>;
1722
+ size: alepha23.TOptional<alepha23.TInteger>;
1723
+ sort: alepha23.TOptional<alepha23.TString>;
1724
+ userId: alepha23.TOptional<alepha23.TString>;
1725
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1717
1726
  }>;
1718
- response: alepha1.TPage<alepha1.TObject<{
1719
- id: alepha1.TString;
1720
- version: alepha1.TNumber;
1721
- createdAt: alepha1.TString;
1722
- updatedAt: alepha1.TString;
1723
- refreshToken: alepha1.TString;
1724
- userId: alepha1.TString;
1725
- expiresAt: alepha1.TString;
1726
- ip: alepha1.TOptional<alepha1.TString>;
1727
- userAgent: alepha1.TOptional<alepha1.TObject<{
1728
- os: alepha1.TString;
1729
- browser: alepha1.TString;
1730
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1727
+ response: alepha23.TPage<alepha23.TObject<{
1728
+ id: alepha23.TString;
1729
+ version: alepha23.TNumber;
1730
+ createdAt: alepha23.TString;
1731
+ updatedAt: alepha23.TString;
1732
+ refreshToken: alepha23.TString;
1733
+ userId: alepha23.TString;
1734
+ expiresAt: alepha23.TString;
1735
+ ip: alepha23.TOptional<alepha23.TString>;
1736
+ userAgent: alepha23.TOptional<alepha23.TObject<{
1737
+ os: alepha23.TString;
1738
+ browser: alepha23.TString;
1739
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1731
1740
  }>>;
1732
1741
  }>>;
1733
1742
  }>;
@@ -1735,25 +1744,25 @@ declare class AdminSessionController {
1735
1744
  * Get a session by ID.
1736
1745
  */
1737
1746
  readonly getSession: alepha_server0.ActionPrimitiveFn<{
1738
- params: alepha1.TObject<{
1739
- id: alepha1.TString;
1747
+ params: alepha23.TObject<{
1748
+ id: alepha23.TString;
1740
1749
  }>;
1741
- query: alepha1.TObject<{
1742
- userRealmName: alepha1.TOptional<alepha1.TString>;
1750
+ query: alepha23.TObject<{
1751
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1743
1752
  }>;
1744
- response: alepha1.TObject<{
1745
- id: alepha1.TString;
1746
- version: alepha1.TNumber;
1747
- createdAt: alepha1.TString;
1748
- updatedAt: alepha1.TString;
1749
- refreshToken: alepha1.TString;
1750
- userId: alepha1.TString;
1751
- expiresAt: alepha1.TString;
1752
- ip: alepha1.TOptional<alepha1.TString>;
1753
- userAgent: alepha1.TOptional<alepha1.TObject<{
1754
- os: alepha1.TString;
1755
- browser: alepha1.TString;
1756
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1753
+ response: alepha23.TObject<{
1754
+ id: alepha23.TString;
1755
+ version: alepha23.TNumber;
1756
+ createdAt: alepha23.TString;
1757
+ updatedAt: alepha23.TString;
1758
+ refreshToken: alepha23.TString;
1759
+ userId: alepha23.TString;
1760
+ expiresAt: alepha23.TString;
1761
+ ip: alepha23.TOptional<alepha23.TString>;
1762
+ userAgent: alepha23.TOptional<alepha23.TObject<{
1763
+ os: alepha23.TString;
1764
+ browser: alepha23.TString;
1765
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1757
1766
  }>>;
1758
1767
  }>;
1759
1768
  }>;
@@ -1761,115 +1770,115 @@ declare class AdminSessionController {
1761
1770
  * Delete a session.
1762
1771
  */
1763
1772
  readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
1764
- params: alepha1.TObject<{
1765
- id: alepha1.TString;
1773
+ params: alepha23.TObject<{
1774
+ id: alepha23.TString;
1766
1775
  }>;
1767
- query: alepha1.TObject<{
1768
- userRealmName: alepha1.TOptional<alepha1.TString>;
1776
+ query: alepha23.TObject<{
1777
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1769
1778
  }>;
1770
- response: alepha1.TObject<{
1771
- ok: alepha1.TBoolean;
1772
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
1773
- count: alepha1.TOptional<alepha1.TNumber>;
1779
+ response: alepha23.TObject<{
1780
+ ok: alepha23.TBoolean;
1781
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
1782
+ count: alepha23.TOptional<alepha23.TNumber>;
1774
1783
  }>;
1775
1784
  }>;
1776
1785
  }
1777
1786
  //#endregion
1778
1787
  //#region ../../src/api/users/notifications/UserNotifications.d.ts
1779
1788
  declare class UserNotifications {
1780
- readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1781
- email: alepha1.TString;
1782
- code: alepha1.TString;
1783
- expiresInMinutes: alepha1.TNumber;
1789
+ readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1790
+ email: alepha23.TString;
1791
+ code: alepha23.TString;
1792
+ expiresInMinutes: alepha23.TNumber;
1784
1793
  }>>;
1785
- readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1786
- email: alepha1.TString;
1787
- code: alepha1.TString;
1788
- expiresInMinutes: alepha1.TNumber;
1794
+ readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1795
+ email: alepha23.TString;
1796
+ code: alepha23.TString;
1797
+ expiresInMinutes: alepha23.TNumber;
1789
1798
  }>>;
1790
- readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1791
- phoneNumber: alepha1.TString;
1792
- code: alepha1.TString;
1793
- expiresInMinutes: alepha1.TNumber;
1799
+ readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1800
+ phoneNumber: alepha23.TString;
1801
+ code: alepha23.TString;
1802
+ expiresInMinutes: alepha23.TNumber;
1794
1803
  }>>;
1795
- readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1796
- email: alepha1.TString;
1797
- resetUrl: alepha1.TString;
1798
- expiresInMinutes: alepha1.TNumber;
1804
+ readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1805
+ email: alepha23.TString;
1806
+ resetUrl: alepha23.TString;
1807
+ expiresInMinutes: alepha23.TNumber;
1799
1808
  }>>;
1800
- readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1801
- email: alepha1.TString;
1802
- verifyUrl: alepha1.TString;
1803
- expiresInMinutes: alepha1.TNumber;
1809
+ readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1810
+ email: alepha23.TString;
1811
+ verifyUrl: alepha23.TString;
1812
+ expiresInMinutes: alepha23.TNumber;
1804
1813
  }>>;
1805
1814
  }
1806
1815
  //#endregion
1807
1816
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
1808
- declare const createUserSchema: alepha1.TObject<{
1809
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
1810
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
1811
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1812
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
1813
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
1814
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1815
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1816
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
1817
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1818
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1819
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1820
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
1821
- emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
1817
+ declare const createUserSchema: alepha23.TObject<{
1818
+ id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
1819
+ version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
1820
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1821
+ createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
1822
+ updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
1823
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1824
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1825
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
1826
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1827
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1828
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1829
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
1830
+ emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
1822
1831
  }>;
1823
1832
  type CreateUser = Static<typeof createUserSchema>;
1824
1833
  //#endregion
1825
1834
  //#region ../../src/api/users/schemas/updateUserSchema.d.ts
1826
- declare const updateUserSchema: alepha1.TObject<{
1827
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1828
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
1829
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1830
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
1831
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1832
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1833
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1834
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
1835
+ declare const updateUserSchema: alepha23.TObject<{
1836
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1837
+ realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
1838
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1839
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
1840
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1841
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1842
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1843
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
1835
1844
  }>;
1836
1845
  type UpdateUser = Static<typeof updateUserSchema>;
1837
1846
  //#endregion
1838
1847
  //#region ../../src/api/users/schemas/userQuerySchema.d.ts
1839
- declare const userQuerySchema: alepha1.TObject<{
1840
- page: alepha1.TOptional<alepha1.TInteger>;
1841
- size: alepha1.TOptional<alepha1.TInteger>;
1842
- sort: alepha1.TOptional<alepha1.TString>;
1843
- email: alepha1.TOptional<alepha1.TString>;
1844
- enabled: alepha1.TOptional<alepha1.TBoolean>;
1845
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
1846
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
1847
- query: alepha1.TOptional<alepha1.TString>;
1848
+ declare const userQuerySchema: alepha23.TObject<{
1849
+ page: alepha23.TOptional<alepha23.TInteger>;
1850
+ size: alepha23.TOptional<alepha23.TInteger>;
1851
+ sort: alepha23.TOptional<alepha23.TString>;
1852
+ email: alepha23.TOptional<alepha23.TString>;
1853
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
1854
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
1855
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
1856
+ query: alepha23.TOptional<alepha23.TString>;
1848
1857
  }>;
1849
1858
  type UserQuery = Static<typeof userQuerySchema>;
1850
1859
  //#endregion
1851
1860
  //#region ../../src/api/users/services/UserService.d.ts
1852
1861
  declare class UserService {
1853
- protected readonly log: alepha_logger5.Logger;
1862
+ protected readonly log: alepha_logger6.Logger;
1854
1863
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
1855
1864
  protected readonly userNotifications: UserNotifications;
1856
1865
  protected readonly realmProvider: RealmProvider;
1857
1866
  protected readonly auditService: AuditService;
1858
- users(userRealmName?: string): alepha_orm24.Repository<alepha1.TObject<{
1859
- id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1860
- version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1861
- createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1862
- updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1863
- realm: alepha_orm24.PgAttr<alepha1.TString, typeof alepha_orm24.PG_DEFAULT>;
1864
- username: alepha1.TOptional<alepha1.TString>;
1865
- email: alepha1.TOptional<alepha1.TString>;
1866
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1867
- roles: alepha_orm24.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm24.PG_DEFAULT>;
1868
- firstName: alepha1.TOptional<alepha1.TString>;
1869
- lastName: alepha1.TOptional<alepha1.TString>;
1870
- picture: alepha1.TOptional<alepha1.TString>;
1871
- enabled: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1872
- emailVerified: alepha_orm24.PgAttr<alepha1.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1867
+ users(userRealmName?: string): alepha_orm24.Repository<alepha23.TObject<{
1868
+ id: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_PRIMARY_KEY>, typeof alepha_orm24.PG_DEFAULT>;
1869
+ version: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TInteger, typeof alepha_orm24.PG_VERSION>, typeof alepha_orm24.PG_DEFAULT>;
1870
+ createdAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_CREATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1871
+ updatedAt: alepha_orm24.PgAttr<alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_UPDATED_AT>, typeof alepha_orm24.PG_DEFAULT>;
1872
+ realm: alepha_orm24.PgAttr<alepha23.TString, typeof alepha_orm24.PG_DEFAULT>;
1873
+ username: alepha23.TOptional<alepha23.TString>;
1874
+ email: alepha23.TOptional<alepha23.TString>;
1875
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1876
+ roles: alepha_orm24.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm24.PG_DEFAULT>;
1877
+ firstName: alepha23.TOptional<alepha23.TString>;
1878
+ lastName: alepha23.TOptional<alepha23.TString>;
1879
+ picture: alepha23.TOptional<alepha23.TString>;
1880
+ enabled: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1881
+ emailVerified: alepha_orm24.PgAttr<alepha23.TBoolean, typeof alepha_orm24.PG_DEFAULT>;
1873
1882
  }>>;
1874
1883
  /**
1875
1884
  * Request email verification for a user.
@@ -1919,151 +1928,151 @@ declare class AdminUserController {
1919
1928
  * Find users with pagination and filtering.
1920
1929
  */
1921
1930
  readonly findUsers: alepha_server0.ActionPrimitiveFn<{
1922
- query: alepha1.TObject<{
1923
- page: alepha1.TOptional<alepha1.TInteger>;
1924
- size: alepha1.TOptional<alepha1.TInteger>;
1925
- sort: alepha1.TOptional<alepha1.TString>;
1926
- email: alepha1.TOptional<alepha1.TString>;
1927
- enabled: alepha1.TOptional<alepha1.TBoolean>;
1928
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
1929
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
1930
- query: alepha1.TOptional<alepha1.TString>;
1931
- userRealmName: alepha1.TOptional<alepha1.TString>;
1931
+ query: alepha23.TObject<{
1932
+ page: alepha23.TOptional<alepha23.TInteger>;
1933
+ size: alepha23.TOptional<alepha23.TInteger>;
1934
+ sort: alepha23.TOptional<alepha23.TString>;
1935
+ email: alepha23.TOptional<alepha23.TString>;
1936
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
1937
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
1938
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
1939
+ query: alepha23.TOptional<alepha23.TString>;
1940
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1932
1941
  }>;
1933
- response: alepha1.TPage<alepha1.TObject<{
1934
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1935
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1936
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1937
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1938
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
1939
- username: alepha1.TOptional<alepha1.TString>;
1940
- email: alepha1.TOptional<alepha1.TString>;
1941
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1942
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
1943
- firstName: alepha1.TOptional<alepha1.TString>;
1944
- lastName: alepha1.TOptional<alepha1.TString>;
1945
- picture: alepha1.TOptional<alepha1.TString>;
1946
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1947
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1942
+ response: alepha23.TPage<alepha23.TObject<{
1943
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1944
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1945
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1946
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1947
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
1948
+ username: alepha23.TOptional<alepha23.TString>;
1949
+ email: alepha23.TOptional<alepha23.TString>;
1950
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1951
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
1952
+ firstName: alepha23.TOptional<alepha23.TString>;
1953
+ lastName: alepha23.TOptional<alepha23.TString>;
1954
+ picture: alepha23.TOptional<alepha23.TString>;
1955
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1956
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1948
1957
  }>>;
1949
1958
  }>;
1950
1959
  /**
1951
1960
  * Get a user by ID.
1952
1961
  */
1953
1962
  readonly getUser: alepha_server0.ActionPrimitiveFn<{
1954
- params: alepha1.TObject<{
1955
- id: alepha1.TString;
1963
+ params: alepha23.TObject<{
1964
+ id: alepha23.TString;
1956
1965
  }>;
1957
- query: alepha1.TObject<{
1958
- userRealmName: alepha1.TOptional<alepha1.TString>;
1966
+ query: alepha23.TObject<{
1967
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1959
1968
  }>;
1960
- response: alepha1.TObject<{
1961
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1962
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1963
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1964
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1965
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
1966
- username: alepha1.TOptional<alepha1.TString>;
1967
- email: alepha1.TOptional<alepha1.TString>;
1968
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1969
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
1970
- firstName: alepha1.TOptional<alepha1.TString>;
1971
- lastName: alepha1.TOptional<alepha1.TString>;
1972
- picture: alepha1.TOptional<alepha1.TString>;
1973
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1974
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1969
+ response: alepha23.TObject<{
1970
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1971
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1972
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1973
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1974
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
1975
+ username: alepha23.TOptional<alepha23.TString>;
1976
+ email: alepha23.TOptional<alepha23.TString>;
1977
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1978
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
1979
+ firstName: alepha23.TOptional<alepha23.TString>;
1980
+ lastName: alepha23.TOptional<alepha23.TString>;
1981
+ picture: alepha23.TOptional<alepha23.TString>;
1982
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1983
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1975
1984
  }>;
1976
1985
  }>;
1977
1986
  /**
1978
1987
  * Create a new user.
1979
1988
  */
1980
1989
  readonly createUser: alepha_server0.ActionPrimitiveFn<{
1981
- query: alepha1.TObject<{
1982
- userRealmName: alepha1.TOptional<alepha1.TString>;
1990
+ query: alepha23.TObject<{
1991
+ userRealmName: alepha23.TOptional<alepha23.TString>;
1983
1992
  }>;
1984
- body: alepha1.TObject<{
1985
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
1986
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
1987
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1988
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
1989
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
1990
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1991
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1992
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
1993
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1994
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1995
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
1996
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
1997
- emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
1993
+ body: alepha23.TObject<{
1994
+ id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
1995
+ version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
1996
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
1997
+ createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
1998
+ updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
1999
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2000
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2001
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2002
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2003
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2004
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2005
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2006
+ emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
1998
2007
  }>;
1999
- response: alepha1.TObject<{
2000
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2001
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2002
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2003
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2004
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2005
- username: alepha1.TOptional<alepha1.TString>;
2006
- email: alepha1.TOptional<alepha1.TString>;
2007
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2008
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2009
- firstName: alepha1.TOptional<alepha1.TString>;
2010
- lastName: alepha1.TOptional<alepha1.TString>;
2011
- picture: alepha1.TOptional<alepha1.TString>;
2012
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2013
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2008
+ response: alepha23.TObject<{
2009
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2010
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2011
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2012
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2013
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2014
+ username: alepha23.TOptional<alepha23.TString>;
2015
+ email: alepha23.TOptional<alepha23.TString>;
2016
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2017
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2018
+ firstName: alepha23.TOptional<alepha23.TString>;
2019
+ lastName: alepha23.TOptional<alepha23.TString>;
2020
+ picture: alepha23.TOptional<alepha23.TString>;
2021
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2022
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2014
2023
  }>;
2015
2024
  }>;
2016
2025
  /**
2017
2026
  * Update a user.
2018
2027
  */
2019
2028
  readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2020
- params: alepha1.TObject<{
2021
- id: alepha1.TString;
2029
+ params: alepha23.TObject<{
2030
+ id: alepha23.TString;
2022
2031
  }>;
2023
- query: alepha1.TObject<{
2024
- userRealmName: alepha1.TOptional<alepha1.TString>;
2032
+ query: alepha23.TObject<{
2033
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2025
2034
  }>;
2026
- body: alepha1.TObject<{
2027
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2028
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2029
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2030
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2031
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2032
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2033
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2034
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2035
+ body: alepha23.TObject<{
2036
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2037
+ realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
2038
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2039
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2040
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2041
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2042
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2043
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2035
2044
  }>;
2036
- response: alepha1.TObject<{
2037
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2038
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2039
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2040
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2041
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2042
- username: alepha1.TOptional<alepha1.TString>;
2043
- email: alepha1.TOptional<alepha1.TString>;
2044
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2045
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2046
- firstName: alepha1.TOptional<alepha1.TString>;
2047
- lastName: alepha1.TOptional<alepha1.TString>;
2048
- picture: alepha1.TOptional<alepha1.TString>;
2049
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2050
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2045
+ response: alepha23.TObject<{
2046
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2047
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2048
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2049
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2050
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2051
+ username: alepha23.TOptional<alepha23.TString>;
2052
+ email: alepha23.TOptional<alepha23.TString>;
2053
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2054
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2055
+ firstName: alepha23.TOptional<alepha23.TString>;
2056
+ lastName: alepha23.TOptional<alepha23.TString>;
2057
+ picture: alepha23.TOptional<alepha23.TString>;
2058
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2059
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2051
2060
  }>;
2052
2061
  }>;
2053
2062
  /**
2054
2063
  * Delete a user.
2055
2064
  */
2056
2065
  readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2057
- params: alepha1.TObject<{
2058
- id: alepha1.TString;
2066
+ params: alepha23.TObject<{
2067
+ id: alepha23.TString;
2059
2068
  }>;
2060
- query: alepha1.TObject<{
2061
- userRealmName: alepha1.TOptional<alepha1.TString>;
2069
+ query: alepha23.TObject<{
2070
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2062
2071
  }>;
2063
- response: alepha1.TObject<{
2064
- ok: alepha1.TBoolean;
2065
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2066
- count: alepha1.TOptional<alepha1.TNumber>;
2072
+ response: alepha23.TObject<{
2073
+ ok: alepha23.TBoolean;
2074
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2075
+ count: alepha23.TOptional<alepha23.TNumber>;
2067
2076
  }>;
2068
2077
  }>;
2069
2078
  }
@@ -2083,51 +2092,51 @@ declare class RealmController {
2083
2092
  * This endpoint is not exposed in the API documentation.
2084
2093
  */
2085
2094
  readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2086
- query: alepha1.TObject<{
2087
- realmName: alepha1.TOptional<alepha1.TString>;
2095
+ query: alepha23.TObject<{
2096
+ realmName: alepha23.TOptional<alepha23.TString>;
2088
2097
  }>;
2089
- response: alepha1.TObject<{
2090
- settings: alepha1.TObject<{
2091
- displayName: alepha1.TOptional<alepha1.TString>;
2092
- description: alepha1.TOptional<alepha1.TString>;
2093
- logoUrl: alepha1.TOptional<alepha1.TString>;
2094
- registrationAllowed: alepha1.TBoolean;
2095
- emailEnabled: alepha1.TBoolean;
2096
- emailRequired: alepha1.TBoolean;
2097
- usernameEnabled: alepha1.TBoolean;
2098
- usernameRequired: alepha1.TBoolean;
2099
- usernameRegExp: alepha1.TString;
2100
- phoneEnabled: alepha1.TBoolean;
2101
- phoneRequired: alepha1.TBoolean;
2102
- verifyEmailRequired: alepha1.TBoolean;
2103
- verifyPhoneRequired: alepha1.TBoolean;
2104
- firstNameLastNameEnabled: alepha1.TBoolean;
2105
- firstNameLastNameRequired: alepha1.TBoolean;
2106
- resetPasswordAllowed: alepha1.TBoolean;
2107
- passwordPolicy: alepha1.TObject<{
2108
- minLength: alepha1.TInteger;
2109
- requireUppercase: alepha1.TBoolean;
2110
- requireLowercase: alepha1.TBoolean;
2111
- requireNumbers: alepha1.TBoolean;
2112
- requireSpecialCharacters: alepha1.TBoolean;
2098
+ response: alepha23.TObject<{
2099
+ settings: alepha23.TObject<{
2100
+ displayName: alepha23.TOptional<alepha23.TString>;
2101
+ description: alepha23.TOptional<alepha23.TString>;
2102
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2103
+ registrationAllowed: alepha23.TBoolean;
2104
+ emailEnabled: alepha23.TBoolean;
2105
+ emailRequired: alepha23.TBoolean;
2106
+ usernameEnabled: alepha23.TBoolean;
2107
+ usernameRequired: alepha23.TBoolean;
2108
+ usernameRegExp: alepha23.TString;
2109
+ phoneEnabled: alepha23.TBoolean;
2110
+ phoneRequired: alepha23.TBoolean;
2111
+ verifyEmailRequired: alepha23.TBoolean;
2112
+ verifyPhoneRequired: alepha23.TBoolean;
2113
+ firstNameLastNameEnabled: alepha23.TBoolean;
2114
+ firstNameLastNameRequired: alepha23.TBoolean;
2115
+ resetPasswordAllowed: alepha23.TBoolean;
2116
+ passwordPolicy: alepha23.TObject<{
2117
+ minLength: alepha23.TInteger;
2118
+ requireUppercase: alepha23.TBoolean;
2119
+ requireLowercase: alepha23.TBoolean;
2120
+ requireNumbers: alepha23.TBoolean;
2121
+ requireSpecialCharacters: alepha23.TBoolean;
2113
2122
  }>;
2114
2123
  }>;
2115
- realmName: alepha1.TString;
2116
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2117
- name: alepha1.TString;
2118
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2124
+ realmName: alepha23.TString;
2125
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2126
+ name: alepha23.TString;
2127
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2119
2128
  }>>;
2120
2129
  }>;
2121
2130
  }>;
2122
2131
  readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2123
- query: alepha1.TObject<{
2124
- realmName: alepha1.TOptional<alepha1.TString>;
2132
+ query: alepha23.TObject<{
2133
+ realmName: alepha23.TOptional<alepha23.TString>;
2125
2134
  }>;
2126
- body: alepha1.TObject<{
2127
- username: alepha1.TString;
2135
+ body: alepha23.TObject<{
2136
+ username: alepha23.TString;
2128
2137
  }>;
2129
- response: alepha1.TObject<{
2130
- available: alepha1.TBoolean;
2138
+ response: alepha23.TObject<{
2139
+ available: alepha23.TBoolean;
2131
2140
  }>;
2132
2141
  }>;
2133
2142
  }
@@ -2139,10 +2148,10 @@ declare class RealmController {
2139
2148
  * Requires the intent ID from Phase 1, the verification code,
2140
2149
  * and the new password.
2141
2150
  */
2142
- declare const completePasswordResetRequestSchema: alepha1.TObject<{
2143
- intentId: alepha1.TString;
2144
- code: alepha1.TString;
2145
- newPassword: alepha1.TString;
2151
+ declare const completePasswordResetRequestSchema: alepha23.TObject<{
2152
+ intentId: alepha23.TString;
2153
+ code: alepha23.TString;
2154
+ newPassword: alepha23.TString;
2146
2155
  }>;
2147
2156
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
2148
2157
  //#endregion
@@ -2153,9 +2162,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
2153
2162
  * Contains the intent ID needed for Phase 2 completion,
2154
2163
  * along with expiration time.
2155
2164
  */
2156
- declare const passwordResetIntentResponseSchema: alepha1.TObject<{
2157
- intentId: alepha1.TString;
2158
- expiresAt: alepha1.TString;
2165
+ declare const passwordResetIntentResponseSchema: alepha23.TObject<{
2166
+ intentId: alepha23.TString;
2167
+ expiresAt: alepha23.TString;
2159
2168
  }>;
2160
2169
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
2161
2170
  //#endregion
@@ -2171,7 +2180,7 @@ interface PasswordResetIntent {
2171
2180
  expiresAt: string;
2172
2181
  }
2173
2182
  declare class CredentialService {
2174
- protected readonly log: alepha_logger5.Logger;
2183
+ protected readonly log: alepha_logger6.Logger;
2175
2184
  protected readonly cryptoProvider: CryptoProvider;
2176
2185
  protected readonly dateTimeProvider: DateTimeProvider;
2177
2186
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2179,47 +2188,47 @@ declare class CredentialService {
2179
2188
  protected readonly realmProvider: RealmProvider;
2180
2189
  protected readonly auditService: AuditService;
2181
2190
  protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
2182
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
2183
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2184
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2185
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2186
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2187
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2188
- username: alepha1.TOptional<alepha1.TString>;
2189
- email: alepha1.TOptional<alepha1.TString>;
2190
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2191
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2192
- firstName: alepha1.TOptional<alepha1.TString>;
2193
- lastName: alepha1.TOptional<alepha1.TString>;
2194
- picture: alepha1.TOptional<alepha1.TString>;
2195
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2196
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2191
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
2192
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2193
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2194
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2195
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2196
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2197
+ username: alepha23.TOptional<alepha23.TString>;
2198
+ email: alepha23.TOptional<alepha23.TString>;
2199
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2200
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2201
+ firstName: alepha23.TOptional<alepha23.TString>;
2202
+ lastName: alepha23.TOptional<alepha23.TString>;
2203
+ picture: alepha23.TOptional<alepha23.TString>;
2204
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2205
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2197
2206
  }>>;
2198
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2199
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2200
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2201
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2202
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2203
- refreshToken: alepha1.TString;
2204
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2205
- expiresAt: alepha1.TString;
2206
- ip: alepha1.TOptional<alepha1.TString>;
2207
- userAgent: alepha1.TOptional<alepha1.TObject<{
2208
- os: alepha1.TString;
2209
- browser: alepha1.TString;
2210
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2207
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2208
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2209
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2210
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2211
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2212
+ refreshToken: alepha23.TString;
2213
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2214
+ expiresAt: alepha23.TString;
2215
+ ip: alepha23.TOptional<alepha23.TString>;
2216
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2217
+ os: alepha23.TString;
2218
+ browser: alepha23.TString;
2219
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2211
2220
  }>>;
2212
2221
  }>>;
2213
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2214
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2215
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2216
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2217
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2218
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2219
- password: alepha1.TOptional<alepha1.TString>;
2220
- provider: alepha1.TString;
2221
- providerUserId: alepha1.TOptional<alepha1.TString>;
2222
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2222
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2223
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2224
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2225
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2226
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2227
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2228
+ password: alepha23.TOptional<alepha23.TString>;
2229
+ provider: alepha23.TString;
2230
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2231
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2223
2232
  }>>;
2224
2233
  /**
2225
2234
  * Phase 1: Create a password reset intent.
@@ -2256,11 +2265,11 @@ declare class CredentialService {
2256
2265
  }
2257
2266
  //#endregion
2258
2267
  //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
2259
- declare const completeRegistrationRequestSchema: alepha1.TObject<{
2260
- intentId: alepha1.TString;
2261
- emailCode: alepha1.TOptional<alepha1.TString>;
2262
- phoneCode: alepha1.TOptional<alepha1.TString>;
2263
- captchaToken: alepha1.TOptional<alepha1.TString>;
2268
+ declare const completeRegistrationRequestSchema: alepha23.TObject<{
2269
+ intentId: alepha23.TString;
2270
+ emailCode: alepha23.TOptional<alepha23.TString>;
2271
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2272
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2264
2273
  }>;
2265
2274
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
2266
2275
  //#endregion
@@ -2269,24 +2278,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
2269
2278
  * Schema for user registration request body.
2270
2279
  * Password is always required, other fields depend on realm settings.
2271
2280
  */
2272
- declare const registerRequestSchema: alepha1.TObject<{
2273
- password: alepha1.TString;
2274
- username: alepha1.TOptional<alepha1.TString>;
2275
- email: alepha1.TOptional<alepha1.TString>;
2276
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2277
- firstName: alepha1.TOptional<alepha1.TString>;
2278
- lastName: alepha1.TOptional<alepha1.TString>;
2279
- picture: alepha1.TOptional<alepha1.TString>;
2281
+ declare const registerRequestSchema: alepha23.TObject<{
2282
+ password: alepha23.TString;
2283
+ username: alepha23.TOptional<alepha23.TString>;
2284
+ email: alepha23.TOptional<alepha23.TString>;
2285
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2286
+ firstName: alepha23.TOptional<alepha23.TString>;
2287
+ lastName: alepha23.TOptional<alepha23.TString>;
2288
+ picture: alepha23.TOptional<alepha23.TString>;
2280
2289
  }>;
2281
2290
  type RegisterRequest = Static<typeof registerRequestSchema>;
2282
2291
  //#endregion
2283
2292
  //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
2284
- declare const registrationIntentResponseSchema: alepha1.TObject<{
2285
- intentId: alepha1.TString;
2286
- expectCaptcha: alepha1.TBoolean;
2287
- expectEmailVerification: alepha1.TBoolean;
2288
- expectPhoneVerification: alepha1.TBoolean;
2289
- expiresAt: alepha1.TString;
2293
+ declare const registrationIntentResponseSchema: alepha23.TObject<{
2294
+ intentId: alepha23.TString;
2295
+ expectCaptcha: alepha23.TBoolean;
2296
+ expectEmailVerification: alepha23.TBoolean;
2297
+ expectPhoneVerification: alepha23.TBoolean;
2298
+ expiresAt: alepha23.TString;
2290
2299
  }>;
2291
2300
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
2292
2301
  //#endregion
@@ -2313,7 +2322,7 @@ interface RegistrationIntent {
2313
2322
  expiresAt: string;
2314
2323
  }
2315
2324
  declare class RegistrationService {
2316
- protected readonly log: alepha_logger5.Logger;
2325
+ protected readonly log: alepha_logger6.Logger;
2317
2326
  protected readonly dateTimeProvider: DateTimeProvider;
2318
2327
  protected readonly cryptoProvider: CryptoProvider;
2319
2328
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2369,24 +2378,24 @@ declare class UserController {
2369
2378
  * Validates data, creates verification sessions, and stores intent in cache.
2370
2379
  */
2371
2380
  readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2372
- body: alepha1.TObject<{
2373
- password: alepha1.TString;
2374
- username: alepha1.TOptional<alepha1.TString>;
2375
- email: alepha1.TOptional<alepha1.TString>;
2376
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2377
- firstName: alepha1.TOptional<alepha1.TString>;
2378
- lastName: alepha1.TOptional<alepha1.TString>;
2379
- picture: alepha1.TOptional<alepha1.TString>;
2381
+ body: alepha23.TObject<{
2382
+ password: alepha23.TString;
2383
+ username: alepha23.TOptional<alepha23.TString>;
2384
+ email: alepha23.TOptional<alepha23.TString>;
2385
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2386
+ firstName: alepha23.TOptional<alepha23.TString>;
2387
+ lastName: alepha23.TOptional<alepha23.TString>;
2388
+ picture: alepha23.TOptional<alepha23.TString>;
2380
2389
  }>;
2381
- query: alepha1.TObject<{
2382
- userRealmName: alepha1.TOptional<alepha1.TString>;
2390
+ query: alepha23.TObject<{
2391
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2383
2392
  }>;
2384
- response: alepha1.TObject<{
2385
- intentId: alepha1.TString;
2386
- expectCaptcha: alepha1.TBoolean;
2387
- expectEmailVerification: alepha1.TBoolean;
2388
- expectPhoneVerification: alepha1.TBoolean;
2389
- expiresAt: alepha1.TString;
2393
+ response: alepha23.TObject<{
2394
+ intentId: alepha23.TString;
2395
+ expectCaptcha: alepha23.TBoolean;
2396
+ expectEmailVerification: alepha23.TBoolean;
2397
+ expectPhoneVerification: alepha23.TBoolean;
2398
+ expiresAt: alepha23.TString;
2390
2399
  }>;
2391
2400
  }>;
2392
2401
  /**
@@ -2394,27 +2403,27 @@ declare class UserController {
2394
2403
  * Validates verification codes and creates the user.
2395
2404
  */
2396
2405
  readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2397
- body: alepha1.TObject<{
2398
- intentId: alepha1.TString;
2399
- emailCode: alepha1.TOptional<alepha1.TString>;
2400
- phoneCode: alepha1.TOptional<alepha1.TString>;
2401
- captchaToken: alepha1.TOptional<alepha1.TString>;
2406
+ body: alepha23.TObject<{
2407
+ intentId: alepha23.TString;
2408
+ emailCode: alepha23.TOptional<alepha23.TString>;
2409
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2410
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2402
2411
  }>;
2403
- response: alepha1.TObject<{
2404
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2405
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2406
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2407
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2408
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2409
- username: alepha1.TOptional<alepha1.TString>;
2410
- email: alepha1.TOptional<alepha1.TString>;
2411
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2412
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2413
- firstName: alepha1.TOptional<alepha1.TString>;
2414
- lastName: alepha1.TOptional<alepha1.TString>;
2415
- picture: alepha1.TOptional<alepha1.TString>;
2416
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2417
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2412
+ response: alepha23.TObject<{
2413
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2414
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2415
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2416
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2417
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2418
+ username: alepha23.TOptional<alepha23.TString>;
2419
+ email: alepha23.TOptional<alepha23.TString>;
2420
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2421
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2422
+ firstName: alepha23.TOptional<alepha23.TString>;
2423
+ lastName: alepha23.TOptional<alepha23.TString>;
2424
+ picture: alepha23.TOptional<alepha23.TString>;
2425
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2426
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2418
2427
  }>;
2419
2428
  }>;
2420
2429
  /**
@@ -2422,15 +2431,15 @@ declare class UserController {
2422
2431
  * Validates email, sends verification code, and stores intent in cache.
2423
2432
  */
2424
2433
  readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2425
- query: alepha1.TObject<{
2426
- userRealmName: alepha1.TOptional<alepha1.TString>;
2434
+ query: alepha23.TObject<{
2435
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2427
2436
  }>;
2428
- body: alepha1.TObject<{
2429
- email: alepha1.TString;
2437
+ body: alepha23.TObject<{
2438
+ email: alepha23.TString;
2430
2439
  }>;
2431
- response: alepha1.TObject<{
2432
- intentId: alepha1.TString;
2433
- expiresAt: alepha1.TString;
2440
+ response: alepha23.TObject<{
2441
+ intentId: alepha23.TString;
2442
+ expiresAt: alepha23.TString;
2434
2443
  }>;
2435
2444
  }>;
2436
2445
  /**
@@ -2438,61 +2447,61 @@ declare class UserController {
2438
2447
  * Validates verification code, updates password, and invalidates sessions.
2439
2448
  */
2440
2449
  readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2441
- body: alepha1.TObject<{
2442
- intentId: alepha1.TString;
2443
- code: alepha1.TString;
2444
- newPassword: alepha1.TString;
2450
+ body: alepha23.TObject<{
2451
+ intentId: alepha23.TString;
2452
+ code: alepha23.TString;
2453
+ newPassword: alepha23.TString;
2445
2454
  }>;
2446
- response: alepha1.TObject<{
2447
- ok: alepha1.TBoolean;
2448
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2449
- count: alepha1.TOptional<alepha1.TNumber>;
2455
+ response: alepha23.TObject<{
2456
+ ok: alepha23.TBoolean;
2457
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2458
+ count: alepha23.TOptional<alepha23.TNumber>;
2450
2459
  }>;
2451
2460
  }>;
2452
2461
  /**
2453
2462
  * @deprecated Use createPasswordResetIntent instead
2454
2463
  */
2455
2464
  requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2456
- query: alepha1.TObject<{
2457
- userRealmName: alepha1.TOptional<alepha1.TString>;
2465
+ query: alepha23.TObject<{
2466
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2458
2467
  }>;
2459
- body: alepha1.TObject<{
2460
- email: alepha1.TString;
2468
+ body: alepha23.TObject<{
2469
+ email: alepha23.TString;
2461
2470
  }>;
2462
- response: alepha1.TObject<{
2463
- success: alepha1.TBoolean;
2464
- message: alepha1.TString;
2471
+ response: alepha23.TObject<{
2472
+ success: alepha23.TBoolean;
2473
+ message: alepha23.TString;
2465
2474
  }>;
2466
2475
  }>;
2467
2476
  /**
2468
2477
  * @deprecated Use completePasswordReset instead
2469
2478
  */
2470
2479
  validateResetToken: alepha_server0.ActionPrimitiveFn<{
2471
- query: alepha1.TObject<{
2472
- email: alepha1.TString;
2473
- token: alepha1.TString;
2474
- userRealmName: alepha1.TOptional<alepha1.TString>;
2480
+ query: alepha23.TObject<{
2481
+ email: alepha23.TString;
2482
+ token: alepha23.TString;
2483
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2475
2484
  }>;
2476
- response: alepha1.TObject<{
2477
- valid: alepha1.TBoolean;
2478
- email: alepha1.TOptional<alepha1.TString>;
2485
+ response: alepha23.TObject<{
2486
+ valid: alepha23.TBoolean;
2487
+ email: alepha23.TOptional<alepha23.TString>;
2479
2488
  }>;
2480
2489
  }>;
2481
2490
  /**
2482
2491
  * @deprecated Use completePasswordReset instead
2483
2492
  */
2484
2493
  resetPassword: alepha_server0.ActionPrimitiveFn<{
2485
- query: alepha1.TObject<{
2486
- userRealmName: alepha1.TOptional<alepha1.TString>;
2494
+ query: alepha23.TObject<{
2495
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2487
2496
  }>;
2488
- body: alepha1.TObject<{
2489
- email: alepha1.TString;
2490
- token: alepha1.TString;
2491
- newPassword: alepha1.TString;
2497
+ body: alepha23.TObject<{
2498
+ email: alepha23.TString;
2499
+ token: alepha23.TString;
2500
+ newPassword: alepha23.TString;
2492
2501
  }>;
2493
- response: alepha1.TObject<{
2494
- success: alepha1.TBoolean;
2495
- message: alepha1.TString;
2502
+ response: alepha23.TObject<{
2503
+ success: alepha23.TBoolean;
2504
+ message: alepha23.TString;
2496
2505
  }>;
2497
2506
  }>;
2498
2507
  /**
@@ -2502,17 +2511,17 @@ declare class UserController {
2502
2511
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
2503
2512
  */
2504
2513
  requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2505
- query: alepha1.TObject<{
2506
- userRealmName: alepha1.TOptional<alepha1.TString>;
2507
- method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
2508
- verifyUrl: alepha1.TOptional<alepha1.TString>;
2514
+ query: alepha23.TObject<{
2515
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2516
+ method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
2517
+ verifyUrl: alepha23.TOptional<alepha23.TString>;
2509
2518
  }>;
2510
- body: alepha1.TObject<{
2511
- email: alepha1.TString;
2519
+ body: alepha23.TObject<{
2520
+ email: alepha23.TString;
2512
2521
  }>;
2513
- response: alepha1.TObject<{
2514
- success: alepha1.TBoolean;
2515
- message: alepha1.TString;
2522
+ response: alepha23.TObject<{
2523
+ success: alepha23.TBoolean;
2524
+ message: alepha23.TString;
2516
2525
  }>;
2517
2526
  }>;
2518
2527
  /**
@@ -2520,198 +2529,488 @@ declare class UserController {
2520
2529
  * Updates the user's emailVerified status.
2521
2530
  */
2522
2531
  verifyEmail: alepha_server0.ActionPrimitiveFn<{
2523
- query: alepha1.TObject<{
2524
- userRealmName: alepha1.TOptional<alepha1.TString>;
2532
+ query: alepha23.TObject<{
2533
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2525
2534
  }>;
2526
- body: alepha1.TObject<{
2527
- email: alepha1.TString;
2528
- token: alepha1.TString;
2535
+ body: alepha23.TObject<{
2536
+ email: alepha23.TString;
2537
+ token: alepha23.TString;
2529
2538
  }>;
2530
- response: alepha1.TObject<{
2531
- success: alepha1.TBoolean;
2532
- message: alepha1.TString;
2539
+ response: alepha23.TObject<{
2540
+ success: alepha23.TBoolean;
2541
+ message: alepha23.TString;
2533
2542
  }>;
2534
2543
  }>;
2535
2544
  /**
2536
2545
  * Check if an email is verified.
2537
2546
  */
2538
2547
  checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2539
- query: alepha1.TObject<{
2540
- email: alepha1.TString;
2541
- userRealmName: alepha1.TOptional<alepha1.TString>;
2548
+ query: alepha23.TObject<{
2549
+ email: alepha23.TString;
2550
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2542
2551
  }>;
2543
- response: alepha1.TObject<{
2544
- verified: alepha1.TBoolean;
2552
+ response: alepha23.TObject<{
2553
+ verified: alepha23.TBoolean;
2545
2554
  }>;
2546
2555
  }>;
2547
2556
  }
2548
2557
  //#endregion
2549
2558
  //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
2550
- declare const identityResourceSchema: alepha1.TObject<{
2551
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2552
- provider: alepha1.TString;
2553
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2554
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2555
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2556
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2557
- providerUserId: alepha1.TOptional<alepha1.TString>;
2558
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2559
+ declare const identityResourceSchema: alepha23.TObject<{
2560
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2561
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2562
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2563
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2564
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2565
+ provider: alepha23.TString;
2566
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2567
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2559
2568
  }>;
2560
2569
  type IdentityResource = Static<typeof identityResourceSchema>;
2561
2570
  //#endregion
2562
2571
  //#region ../../src/api/users/schemas/loginSchema.d.ts
2563
- declare const loginSchema: alepha1.TObject<{
2564
- username: alepha1.TString;
2565
- password: alepha1.TString;
2572
+ declare const loginSchema: alepha23.TObject<{
2573
+ username: alepha23.TString;
2574
+ password: alepha23.TString;
2566
2575
  }>;
2567
2576
  type LoginInput = Static<typeof loginSchema>;
2568
2577
  //#endregion
2569
2578
  //#region ../../src/api/users/schemas/realmConfigSchema.d.ts
2570
- declare const realmConfigSchema: alepha1.TObject<{
2571
- settings: alepha1.TObject<{
2572
- displayName: alepha1.TOptional<alepha1.TString>;
2573
- description: alepha1.TOptional<alepha1.TString>;
2574
- logoUrl: alepha1.TOptional<alepha1.TString>;
2575
- registrationAllowed: alepha1.TBoolean;
2576
- emailEnabled: alepha1.TBoolean;
2577
- emailRequired: alepha1.TBoolean;
2578
- usernameEnabled: alepha1.TBoolean;
2579
- usernameRequired: alepha1.TBoolean;
2580
- usernameRegExp: alepha1.TString;
2581
- phoneEnabled: alepha1.TBoolean;
2582
- phoneRequired: alepha1.TBoolean;
2583
- verifyEmailRequired: alepha1.TBoolean;
2584
- verifyPhoneRequired: alepha1.TBoolean;
2585
- firstNameLastNameEnabled: alepha1.TBoolean;
2586
- firstNameLastNameRequired: alepha1.TBoolean;
2587
- resetPasswordAllowed: alepha1.TBoolean;
2588
- passwordPolicy: alepha1.TObject<{
2589
- minLength: alepha1.TInteger;
2590
- requireUppercase: alepha1.TBoolean;
2591
- requireLowercase: alepha1.TBoolean;
2592
- requireNumbers: alepha1.TBoolean;
2593
- requireSpecialCharacters: alepha1.TBoolean;
2579
+ declare const realmConfigSchema: alepha23.TObject<{
2580
+ settings: alepha23.TObject<{
2581
+ displayName: alepha23.TOptional<alepha23.TString>;
2582
+ description: alepha23.TOptional<alepha23.TString>;
2583
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2584
+ registrationAllowed: alepha23.TBoolean;
2585
+ emailEnabled: alepha23.TBoolean;
2586
+ emailRequired: alepha23.TBoolean;
2587
+ usernameEnabled: alepha23.TBoolean;
2588
+ usernameRequired: alepha23.TBoolean;
2589
+ usernameRegExp: alepha23.TString;
2590
+ phoneEnabled: alepha23.TBoolean;
2591
+ phoneRequired: alepha23.TBoolean;
2592
+ verifyEmailRequired: alepha23.TBoolean;
2593
+ verifyPhoneRequired: alepha23.TBoolean;
2594
+ firstNameLastNameEnabled: alepha23.TBoolean;
2595
+ firstNameLastNameRequired: alepha23.TBoolean;
2596
+ resetPasswordAllowed: alepha23.TBoolean;
2597
+ passwordPolicy: alepha23.TObject<{
2598
+ minLength: alepha23.TInteger;
2599
+ requireUppercase: alepha23.TBoolean;
2600
+ requireLowercase: alepha23.TBoolean;
2601
+ requireNumbers: alepha23.TBoolean;
2602
+ requireSpecialCharacters: alepha23.TBoolean;
2594
2603
  }>;
2595
2604
  }>;
2596
- realmName: alepha1.TString;
2597
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2598
- name: alepha1.TString;
2599
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2605
+ realmName: alepha23.TString;
2606
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2607
+ name: alepha23.TString;
2608
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2600
2609
  }>>;
2601
2610
  }>;
2602
2611
  type RealmConfig = Static<typeof realmConfigSchema>;
2603
2612
  //#endregion
2604
2613
  //#region ../../src/api/users/schemas/registerSchema.d.ts
2605
- declare const registerSchema: alepha1.TObject<{
2606
- username: alepha1.TString;
2607
- email: alepha1.TString;
2608
- password: alepha1.TString;
2609
- confirmPassword: alepha1.TString;
2610
- firstName: alepha1.TOptional<alepha1.TString>;
2611
- lastName: alepha1.TOptional<alepha1.TString>;
2614
+ declare const registerSchema: alepha23.TObject<{
2615
+ username: alepha23.TString;
2616
+ email: alepha23.TString;
2617
+ password: alepha23.TString;
2618
+ confirmPassword: alepha23.TString;
2619
+ firstName: alepha23.TOptional<alepha23.TString>;
2620
+ lastName: alepha23.TOptional<alepha23.TString>;
2612
2621
  }>;
2613
2622
  type RegisterInput = Static<typeof registerSchema>;
2614
2623
  //#endregion
2615
2624
  //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
2616
- declare const resetPasswordRequestSchema: alepha1.TObject<{
2617
- email: alepha1.TString;
2625
+ declare const resetPasswordRequestSchema: alepha23.TObject<{
2626
+ email: alepha23.TString;
2618
2627
  }>;
2619
- declare const resetPasswordSchema: alepha1.TObject<{
2620
- token: alepha1.TString;
2621
- password: alepha1.TString;
2622
- confirmPassword: alepha1.TString;
2628
+ declare const resetPasswordSchema: alepha23.TObject<{
2629
+ token: alepha23.TString;
2630
+ password: alepha23.TString;
2631
+ confirmPassword: alepha23.TString;
2623
2632
  }>;
2624
2633
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
2625
2634
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
2626
2635
  //#endregion
2627
2636
  //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
2628
- declare const sessionResourceSchema: alepha1.TObject<{
2629
- id: alepha1.TString;
2630
- version: alepha1.TNumber;
2631
- createdAt: alepha1.TString;
2632
- updatedAt: alepha1.TString;
2633
- refreshToken: alepha1.TString;
2634
- userId: alepha1.TString;
2635
- expiresAt: alepha1.TString;
2636
- ip: alepha1.TOptional<alepha1.TString>;
2637
- userAgent: alepha1.TOptional<alepha1.TObject<{
2638
- os: alepha1.TString;
2639
- browser: alepha1.TString;
2640
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2637
+ declare const sessionResourceSchema: alepha23.TObject<{
2638
+ id: alepha23.TString;
2639
+ version: alepha23.TNumber;
2640
+ createdAt: alepha23.TString;
2641
+ updatedAt: alepha23.TString;
2642
+ refreshToken: alepha23.TString;
2643
+ userId: alepha23.TString;
2644
+ expiresAt: alepha23.TString;
2645
+ ip: alepha23.TOptional<alepha23.TString>;
2646
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2647
+ os: alepha23.TString;
2648
+ browser: alepha23.TString;
2649
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2641
2650
  }>>;
2642
2651
  }>;
2643
2652
  type SessionResource = Static<typeof sessionResourceSchema>;
2644
2653
  //#endregion
2645
2654
  //#region ../../src/api/users/schemas/userResourceSchema.d.ts
2646
- declare const userResourceSchema: alepha1.TObject<{
2647
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2648
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2649
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2650
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2651
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2652
- username: alepha1.TOptional<alepha1.TString>;
2653
- email: alepha1.TOptional<alepha1.TString>;
2654
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2655
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2656
- firstName: alepha1.TOptional<alepha1.TString>;
2657
- lastName: alepha1.TOptional<alepha1.TString>;
2658
- picture: alepha1.TOptional<alepha1.TString>;
2659
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2660
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2655
+ declare const userResourceSchema: alepha23.TObject<{
2656
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2657
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2658
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2659
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2660
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2661
+ username: alepha23.TOptional<alepha23.TString>;
2662
+ email: alepha23.TOptional<alepha23.TString>;
2663
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2664
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2665
+ firstName: alepha23.TOptional<alepha23.TString>;
2666
+ lastName: alepha23.TOptional<alepha23.TString>;
2667
+ picture: alepha23.TOptional<alepha23.TString>;
2668
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2669
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2661
2670
  }>;
2662
2671
  type UserResource = Static<typeof userResourceSchema>;
2663
2672
  //#endregion
2673
+ //#region ../../src/system/providers/FileSystemProvider.d.ts
2674
+ /**
2675
+ * Options for creating a file from a URL
2676
+ */
2677
+ interface CreateFileFromUrlOptions {
2678
+ /**
2679
+ * The URL to load the file from (file://, http://, or https://)
2680
+ */
2681
+ url: string;
2682
+ /**
2683
+ * The MIME type of the file (optional, will be detected from filename if not provided)
2684
+ */
2685
+ type?: string;
2686
+ /**
2687
+ * The name of the file (optional, will be extracted from URL if not provided)
2688
+ */
2689
+ name?: string;
2690
+ }
2691
+ /**
2692
+ * Options for creating a file from a path (URL with file:// scheme)
2693
+ */
2694
+ interface CreateFileFromPathOptions {
2695
+ /**
2696
+ * The path to the file on the local filesystem
2697
+ */
2698
+ path: string;
2699
+ /**
2700
+ * The MIME type of the file (optional, will be detected from filename if not provided)
2701
+ */
2702
+ type?: string;
2703
+ /**
2704
+ * The name of the file (optional, will be extracted from URL if not provided)
2705
+ */
2706
+ name?: string;
2707
+ }
2708
+ /**
2709
+ * Options for creating a file from a Buffer
2710
+ */
2711
+ interface CreateFileFromBufferOptions {
2712
+ /**
2713
+ * The Buffer containing the file data
2714
+ */
2715
+ buffer: Buffer;
2716
+ /**
2717
+ * The MIME type of the file (optional, will be detected from name if not provided)
2718
+ */
2719
+ type?: string;
2720
+ /**
2721
+ * The name of the file (required for proper content type detection)
2722
+ */
2723
+ name?: string;
2724
+ }
2725
+ /**
2726
+ * Options for creating a file from a stream
2727
+ */
2728
+ interface CreateFileFromStreamOptions {
2729
+ /**
2730
+ * The readable stream containing the file data
2731
+ */
2732
+ stream: StreamLike;
2733
+ /**
2734
+ * The MIME type of the file (optional, will be detected from name if not provided)
2735
+ */
2736
+ type?: string;
2737
+ /**
2738
+ * The name of the file (required for proper content type detection)
2739
+ */
2740
+ name?: string;
2741
+ /**
2742
+ * The size of the file in bytes (optional)
2743
+ */
2744
+ size?: number;
2745
+ }
2746
+ /**
2747
+ * Options for creating a file from text content
2748
+ */
2749
+ interface CreateFileFromTextOptions {
2750
+ /**
2751
+ * The text content to create the file from
2752
+ */
2753
+ text: string;
2754
+ /**
2755
+ * The MIME type of the file (default: text/plain)
2756
+ */
2757
+ type?: string;
2758
+ /**
2759
+ * The name of the file (default: "file.txt")
2760
+ */
2761
+ name?: string;
2762
+ }
2763
+ interface CreateFileFromResponseOptions {
2764
+ /**
2765
+ * The Response object containing the file data
2766
+ */
2767
+ response: Response;
2768
+ /**
2769
+ * Override the name (optional, uses filename from Content-Disposition header if not provided)
2770
+ */
2771
+ name?: string;
2772
+ /**
2773
+ * Override the MIME type (optional, uses file.type if not provided)
2774
+ */
2775
+ type?: string;
2776
+ }
2777
+ /**
2778
+ * Options for creating a file from a Web File object
2779
+ */
2780
+ interface CreateFileFromWebFileOptions {
2781
+ /**
2782
+ * The Web File object
2783
+ */
2784
+ file: File;
2785
+ /**
2786
+ * Override the MIME type (optional, uses file.type if not provided)
2787
+ */
2788
+ type?: string;
2789
+ /**
2790
+ * Override the name (optional, uses file.name if not provided)
2791
+ */
2792
+ name?: string;
2793
+ /**
2794
+ * Override the size (optional, uses file.size if not provided)
2795
+ */
2796
+ size?: number;
2797
+ }
2798
+ /**
2799
+ * Options for creating a file from an ArrayBuffer
2800
+ */
2801
+ interface CreateFileFromArrayBufferOptions {
2802
+ /**
2803
+ * The ArrayBuffer containing the file data
2804
+ */
2805
+ arrayBuffer: ArrayBuffer;
2806
+ /**
2807
+ * The MIME type of the file (optional, will be detected from name if not provided)
2808
+ */
2809
+ type?: string;
2810
+ /**
2811
+ * The name of the file (required for proper content type detection)
2812
+ */
2813
+ name?: string;
2814
+ }
2815
+ /**
2816
+ * Union type for all createFile options
2817
+ */
2818
+ type CreateFileOptions = CreateFileFromUrlOptions | CreateFileFromPathOptions | CreateFileFromBufferOptions | CreateFileFromStreamOptions | CreateFileFromTextOptions | CreateFileFromWebFileOptions | CreateFileFromResponseOptions | CreateFileFromArrayBufferOptions;
2819
+ /**
2820
+ * Options for rm (remove) operation
2821
+ */
2822
+ interface RmOptions {
2823
+ /**
2824
+ * If true, removes directories and their contents recursively
2825
+ */
2826
+ recursive?: boolean;
2827
+ /**
2828
+ * If true, no error will be thrown if the path does not exist
2829
+ */
2830
+ force?: boolean;
2831
+ }
2832
+ /**
2833
+ * Options for cp (copy) operation
2834
+ */
2835
+ interface CpOptions {
2836
+ /**
2837
+ * If true, copy directories recursively
2838
+ */
2839
+ recursive?: boolean;
2840
+ /**
2841
+ * If true, overwrite existing destination
2842
+ */
2843
+ force?: boolean;
2844
+ }
2845
+ /**
2846
+ * Options for mkdir operation
2847
+ */
2848
+ interface MkdirOptions {
2849
+ /**
2850
+ * If true, creates parent directories as needed
2851
+ */
2852
+ recursive?: boolean;
2853
+ /**
2854
+ * File mode (permission and sticky bits)
2855
+ */
2856
+ mode?: number;
2857
+ }
2858
+ /**
2859
+ * Options for ls (list) operation
2860
+ */
2861
+ interface LsOptions {
2862
+ /**
2863
+ * If true, list contents of directories recursively
2864
+ */
2865
+ recursive?: boolean;
2866
+ /**
2867
+ * If true, include hidden files (starting with .)
2868
+ */
2869
+ hidden?: boolean;
2870
+ }
2871
+ /**
2872
+ * FileSystem interface providing utilities for working with files.
2873
+ */
2874
+ declare abstract class FileSystemProvider {
2875
+ /**
2876
+ * Joins multiple path segments into a single path.
2877
+ *
2878
+ * @param paths - The path segments to join
2879
+ * @returns The joined path
2880
+ */
2881
+ abstract join(...paths: string[]): string;
2882
+ /**
2883
+ * Creates a FileLike object from various sources.
2884
+ *
2885
+ * @param options - Options for creating the file
2886
+ * @returns A FileLike object
2887
+ */
2888
+ abstract createFile(options: CreateFileOptions): FileLike;
2889
+ /**
2890
+ * Removes a file or directory.
2891
+ *
2892
+ * @param path - The path to remove
2893
+ * @param options - Remove options
2894
+ */
2895
+ abstract rm(path: string, options?: RmOptions): Promise<void>;
2896
+ /**
2897
+ * Copies a file or directory.
2898
+ *
2899
+ * @param src - Source path
2900
+ * @param dest - Destination path
2901
+ * @param options - Copy options
2902
+ */
2903
+ abstract cp(src: string, dest: string, options?: CpOptions): Promise<void>;
2904
+ /**
2905
+ * Moves/renames a file or directory.
2906
+ *
2907
+ * @param src - Source path
2908
+ * @param dest - Destination path
2909
+ */
2910
+ abstract mv(src: string, dest: string): Promise<void>;
2911
+ /**
2912
+ * Creates a directory.
2913
+ *
2914
+ * @param path - The directory path to create
2915
+ * @param options - Mkdir options
2916
+ */
2917
+ abstract mkdir(path: string, options?: MkdirOptions): Promise<void>;
2918
+ /**
2919
+ * Lists files in a directory.
2920
+ *
2921
+ * @param path - The directory path to list
2922
+ * @param options - List options
2923
+ * @returns Array of filenames
2924
+ */
2925
+ abstract ls(path: string, options?: LsOptions): Promise<string[]>;
2926
+ /**
2927
+ * Checks if a file or directory exists.
2928
+ *
2929
+ * @param path - The path to check
2930
+ * @returns True if the path exists, false otherwise
2931
+ */
2932
+ abstract exists(path: string): Promise<boolean>;
2933
+ /**
2934
+ * Reads the content of a file.
2935
+ *
2936
+ * @param path - The file path to read
2937
+ * @returns The file content as a Buffer
2938
+ */
2939
+ abstract readFile(path: string): Promise<Buffer>;
2940
+ /**
2941
+ * Writes data to a file.
2942
+ *
2943
+ * @param path - The file path to write to
2944
+ * @param data - The data to write (Buffer or string)
2945
+ */
2946
+ abstract writeFile(path: string, data: Uint8Array | Buffer | string | FileLike): Promise<void>;
2947
+ /**
2948
+ * Reads the content of a file as a string.
2949
+ *
2950
+ * @param path - The file path to read
2951
+ * @returns The file content as a string
2952
+ */
2953
+ abstract readTextFile(path: string): Promise<string>;
2954
+ /**
2955
+ * Reads the content of a file as JSON.
2956
+ *
2957
+ * @param path - The file path to read
2958
+ * @returns The parsed JSON content
2959
+ */
2960
+ abstract readJsonFile<T = unknown>(path: string): Promise<T>;
2961
+ }
2962
+ //#endregion
2664
2963
  //#region ../../src/api/users/services/SessionService.d.ts
2665
2964
  declare class SessionService {
2666
2965
  protected readonly alepha: Alepha;
2667
2966
  protected readonly fsp: FileSystemProvider;
2668
2967
  protected readonly dateTimeProvider: DateTimeProvider;
2669
2968
  protected readonly cryptoProvider: CryptoProvider;
2670
- protected readonly log: alepha_logger5.Logger;
2969
+ protected readonly log: alepha_logger6.Logger;
2671
2970
  protected readonly realmProvider: RealmProvider;
2672
2971
  protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
2673
2972
  protected readonly auditService: AuditService;
2674
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
2675
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2676
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2677
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2678
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2679
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2680
- username: alepha1.TOptional<alepha1.TString>;
2681
- email: alepha1.TOptional<alepha1.TString>;
2682
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2683
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2684
- firstName: alepha1.TOptional<alepha1.TString>;
2685
- lastName: alepha1.TOptional<alepha1.TString>;
2686
- picture: alepha1.TOptional<alepha1.TString>;
2687
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2688
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2973
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
2974
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2975
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2976
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2977
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2978
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2979
+ username: alepha23.TOptional<alepha23.TString>;
2980
+ email: alepha23.TOptional<alepha23.TString>;
2981
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2982
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2983
+ firstName: alepha23.TOptional<alepha23.TString>;
2984
+ lastName: alepha23.TOptional<alepha23.TString>;
2985
+ picture: alepha23.TOptional<alepha23.TString>;
2986
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2987
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2689
2988
  }>>;
2690
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2691
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2692
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2693
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2694
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2695
- refreshToken: alepha1.TString;
2696
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2697
- expiresAt: alepha1.TString;
2698
- ip: alepha1.TOptional<alepha1.TString>;
2699
- userAgent: alepha1.TOptional<alepha1.TObject<{
2700
- os: alepha1.TString;
2701
- browser: alepha1.TString;
2702
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2989
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2990
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2991
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2992
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2993
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2994
+ refreshToken: alepha23.TString;
2995
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2996
+ expiresAt: alepha23.TString;
2997
+ ip: alepha23.TOptional<alepha23.TString>;
2998
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2999
+ os: alepha23.TString;
3000
+ browser: alepha23.TString;
3001
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2703
3002
  }>>;
2704
3003
  }>>;
2705
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2706
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2707
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2708
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2709
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2710
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2711
- password: alepha1.TOptional<alepha1.TString>;
2712
- provider: alepha1.TString;
2713
- providerUserId: alepha1.TOptional<alepha1.TString>;
2714
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
3004
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
3005
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
3006
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
3007
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
3008
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
3009
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
3010
+ password: alepha23.TOptional<alepha23.TString>;
3011
+ provider: alepha23.TString;
3012
+ providerUserId: alepha23.TOptional<alepha23.TString>;
3013
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2715
3014
  }>>;
2716
3015
  /**
2717
3016
  * Random delay to prevent timing attacks (50-200ms)
@@ -2727,36 +3026,36 @@ declare class SessionService {
2727
3026
  sessionId: string;
2728
3027
  }>;
2729
3028
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
2730
- user: PgStatic<alepha1.TObject<{
2731
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2732
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2733
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2734
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2735
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2736
- username: alepha1.TOptional<alepha1.TString>;
2737
- email: alepha1.TOptional<alepha1.TString>;
2738
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2739
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2740
- firstName: alepha1.TOptional<alepha1.TString>;
2741
- lastName: alepha1.TOptional<alepha1.TString>;
2742
- picture: alepha1.TOptional<alepha1.TString>;
2743
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2744
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2745
- }>, PgRelationMap<alepha1.TObject<{
2746
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2747
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2748
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2749
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2750
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2751
- username: alepha1.TOptional<alepha1.TString>;
2752
- email: alepha1.TOptional<alepha1.TString>;
2753
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2754
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2755
- firstName: alepha1.TOptional<alepha1.TString>;
2756
- lastName: alepha1.TOptional<alepha1.TString>;
2757
- picture: alepha1.TOptional<alepha1.TString>;
2758
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2759
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
3029
+ user: PgStatic<alepha23.TObject<{
3030
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
3031
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
3032
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
3033
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
3034
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
3035
+ username: alepha23.TOptional<alepha23.TString>;
3036
+ email: alepha23.TOptional<alepha23.TString>;
3037
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
3038
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
3039
+ firstName: alepha23.TOptional<alepha23.TString>;
3040
+ lastName: alepha23.TOptional<alepha23.TString>;
3041
+ picture: alepha23.TOptional<alepha23.TString>;
3042
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
3043
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
3044
+ }>, PgRelationMap<alepha23.TObject<{
3045
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
3046
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
3047
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
3048
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
3049
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
3050
+ username: alepha23.TOptional<alepha23.TString>;
3051
+ email: alepha23.TOptional<alepha23.TString>;
3052
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
3053
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
3054
+ firstName: alepha23.TOptional<alepha23.TString>;
3055
+ lastName: alepha23.TOptional<alepha23.TString>;
3056
+ picture: alepha23.TOptional<alepha23.TString>;
3057
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
3058
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2760
3059
  }>>>;
2761
3060
  expiresIn: number;
2762
3061
  sessionId: string;
@@ -2811,14 +3110,25 @@ declare class SessionService {
2811
3110
  //#endregion
2812
3111
  //#region ../../src/api/users/index.d.ts
2813
3112
  /**
2814
- * Provides user management API endpoints for Alepha applications.
3113
+ * | type | quality | stability |
3114
+ * |------|---------|-----------|
3115
+ * | backend | epic | stable |
3116
+ *
3117
+ * Complete user management with multi-realm support for multi-tenant applications.
2815
3118
  *
2816
- * This module includes user CRUD operations, authentication endpoints,
2817
- * password reset functionality, and user profile management capabilities.
3119
+ * **Features:**
3120
+ * - User registration, login, and profile management
3121
+ * - Password reset workflows
3122
+ * - Email verification
3123
+ * - Session management with multiple devices
3124
+ * - Identity management (social logins, SSO)
3125
+ * - Multi-realm support for tenant isolation
3126
+ * - Credential management
3127
+ * - Entities: `users`, `identities`, `sessions`
2818
3128
  *
2819
3129
  * @module alepha.api.users
2820
3130
  */
2821
- declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
3131
+ declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
2822
3132
  //#endregion
2823
3133
  export { $realm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, Realm, RealmAuthSettings, RealmConfig, RealmController, RealmOptions, RealmPrimitive, RealmProvider, RealmRepositories, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, realmConfigSchema, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
2824
3134
  //# sourceMappingURL=index.d.ts.map