alepha 0.15.1 → 0.15.3

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