alepha 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -9
  3. package/dist/api/audits/index.d.ts +378 -346
  4. package/dist/api/audits/index.d.ts.map +1 -1
  5. package/dist/api/files/index.d.ts +216 -184
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js +5 -1
  8. package/dist/api/files/index.js.map +1 -1
  9. package/dist/api/jobs/index.d.ts +528 -496
  10. package/dist/api/jobs/index.d.ts.map +1 -1
  11. package/dist/api/jobs/index.js +3 -3
  12. package/dist/api/jobs/index.js.map +1 -1
  13. package/dist/api/keys/index.d.ts +202 -202
  14. package/dist/api/keys/index.d.ts.map +1 -1
  15. package/dist/api/notifications/index.d.ts +152 -152
  16. package/dist/api/notifications/index.d.ts.map +1 -1
  17. package/dist/api/organizations/index.browser.js +48 -0
  18. package/dist/api/organizations/index.browser.js.map +1 -0
  19. package/dist/api/organizations/index.d.ts +516 -0
  20. package/dist/api/organizations/index.d.ts.map +1 -0
  21. package/dist/api/organizations/index.js +202 -0
  22. package/dist/api/organizations/index.js.map +1 -0
  23. package/dist/api/parameters/index.d.ts +391 -358
  24. package/dist/api/parameters/index.d.ts.map +1 -1
  25. package/dist/api/parameters/index.js +5 -1
  26. package/dist/api/parameters/index.js.map +1 -1
  27. package/dist/api/users/index.browser.js +7 -5
  28. package/dist/api/users/index.browser.js.map +1 -1
  29. package/dist/api/users/index.d.ts +989 -931
  30. package/dist/api/users/index.d.ts.map +1 -1
  31. package/dist/api/users/index.js +292 -146
  32. package/dist/api/users/index.js.map +1 -1
  33. package/dist/api/verifications/index.d.ts +132 -132
  34. package/dist/api/verifications/index.d.ts.map +1 -1
  35. package/dist/api/verifications/index.js +2 -2
  36. package/dist/api/verifications/index.js.map +1 -1
  37. package/dist/batch/index.d.ts +6 -6
  38. package/dist/batch/index.d.ts.map +1 -1
  39. package/dist/billing/index.d.ts +1048 -0
  40. package/dist/billing/index.d.ts.map +1 -0
  41. package/dist/billing/index.js +713 -0
  42. package/dist/billing/index.js.map +1 -0
  43. package/dist/bin/index.js +0 -2
  44. package/dist/bin/index.js.map +1 -1
  45. package/dist/bucket/index.d.ts +10 -10
  46. package/dist/bucket/index.d.ts.map +1 -1
  47. package/dist/bucket/index.js +2 -2
  48. package/dist/bucket/index.js.map +1 -1
  49. package/dist/cache/core/index.d.ts +9 -9
  50. package/dist/cache/core/index.d.ts.map +1 -1
  51. package/dist/cache/core/index.js +2 -2
  52. package/dist/cache/core/index.js.map +1 -1
  53. package/dist/cache/core/index.workerd.js +2 -2
  54. package/dist/cache/core/index.workerd.js.map +1 -1
  55. package/dist/cache/redis/index.d.ts +6 -6
  56. package/dist/cache/redis/index.d.ts.map +1 -1
  57. package/dist/cache/redis/index.js +2 -2
  58. package/dist/cache/redis/index.js.map +1 -1
  59. package/dist/cli/config/index.d.ts +12 -2
  60. package/dist/cli/config/index.d.ts.map +1 -1
  61. package/dist/cli/config/index.js +4 -0
  62. package/dist/cli/config/index.js.map +1 -1
  63. package/dist/cli/core/index.d.ts +183 -139
  64. package/dist/cli/core/index.d.ts.map +1 -1
  65. package/dist/cli/core/index.js +283 -86
  66. package/dist/cli/core/index.js.map +1 -1
  67. package/dist/cli/devtools/index.d.ts +45 -0
  68. package/dist/cli/devtools/index.d.ts.map +1 -0
  69. package/dist/cli/devtools/index.js +170 -0
  70. package/dist/cli/devtools/index.js.map +1 -0
  71. package/dist/cli/platform/index.d.ts +383 -492
  72. package/dist/cli/platform/index.d.ts.map +1 -1
  73. package/dist/cli/platform/index.js +42 -511
  74. package/dist/cli/platform/index.js.map +1 -1
  75. package/dist/cli/vendor/index.d.ts +196 -0
  76. package/dist/cli/vendor/index.d.ts.map +1 -0
  77. package/dist/cli/vendor/index.js +384 -0
  78. package/dist/cli/vendor/index.js.map +1 -0
  79. package/dist/command/index.d.ts +18 -18
  80. package/dist/command/index.d.ts.map +1 -1
  81. package/dist/command/index.js +2 -2
  82. package/dist/command/index.js.map +1 -1
  83. package/dist/core/index.browser.js +4 -4
  84. package/dist/core/index.browser.js.map +1 -1
  85. package/dist/core/index.d.ts +10 -10
  86. package/dist/core/index.d.ts.map +1 -1
  87. package/dist/core/index.js +4 -4
  88. package/dist/core/index.js.map +1 -1
  89. package/dist/core/index.native.js +4 -4
  90. package/dist/core/index.native.js.map +1 -1
  91. package/dist/core/index.workerd.js +4 -4
  92. package/dist/core/index.workerd.js.map +1 -1
  93. package/dist/crypto/index.d.ts +7 -7
  94. package/dist/crypto/index.d.ts.map +1 -1
  95. package/dist/datetime/index.d.ts +4 -4
  96. package/dist/datetime/index.d.ts.map +1 -1
  97. package/dist/email/brevo/index.d.ts +4 -4
  98. package/dist/email/brevo/index.d.ts.map +1 -1
  99. package/dist/email/core/index.d.ts +15 -11
  100. package/dist/email/core/index.d.ts.map +1 -1
  101. package/dist/email/core/index.js +12 -35
  102. package/dist/email/core/index.js.map +1 -1
  103. package/dist/email/smtp/index.d.ts +12 -12
  104. package/dist/email/smtp/index.d.ts.map +1 -1
  105. package/dist/email/smtp/index.js +7 -4
  106. package/dist/email/smtp/index.js.map +1 -1
  107. package/dist/fake/index.d.ts +4 -8
  108. package/dist/fake/index.d.ts.map +1 -1
  109. package/dist/fake/index.js +55 -889
  110. package/dist/fake/index.js.map +1 -1
  111. package/dist/lock/core/index.d.ts +13 -13
  112. package/dist/lock/core/index.d.ts.map +1 -1
  113. package/dist/lock/core/index.js +2 -2
  114. package/dist/lock/core/index.js.map +1 -1
  115. package/dist/lock/redis/index.d.ts +4 -4
  116. package/dist/lock/redis/index.d.ts.map +1 -1
  117. package/dist/logger/index.d.ts +16 -15
  118. package/dist/logger/index.d.ts.map +1 -1
  119. package/dist/logger/index.js +5 -2
  120. package/dist/logger/index.js.map +1 -1
  121. package/dist/mcp/index.d.ts +11 -11
  122. package/dist/mcp/index.d.ts.map +1 -1
  123. package/dist/mcp/index.js +2 -2
  124. package/dist/mcp/index.js.map +1 -1
  125. package/dist/orm/core/index.browser.js +11 -1
  126. package/dist/orm/core/index.browser.js.map +1 -1
  127. package/dist/orm/core/index.bun.js +53 -16
  128. package/dist/orm/core/index.bun.js.map +1 -1
  129. package/dist/orm/core/index.d.ts +95 -51
  130. package/dist/orm/core/index.d.ts.map +1 -1
  131. package/dist/orm/core/index.js +55 -14
  132. package/dist/orm/core/index.js.map +1 -1
  133. package/dist/orm/postgres/index.bun.js +17 -11
  134. package/dist/orm/postgres/index.bun.js.map +1 -1
  135. package/dist/orm/postgres/index.d.ts +21 -15
  136. package/dist/orm/postgres/index.d.ts.map +1 -1
  137. package/dist/orm/postgres/index.js +19 -13
  138. package/dist/orm/postgres/index.js.map +1 -1
  139. package/dist/queue/core/index.d.ts +14 -14
  140. package/dist/queue/core/index.d.ts.map +1 -1
  141. package/dist/queue/core/index.js +2 -2
  142. package/dist/queue/core/index.js.map +1 -1
  143. package/dist/queue/core/index.workerd.js +2 -2
  144. package/dist/queue/core/index.workerd.js.map +1 -1
  145. package/dist/queue/redis/index.d.ts +4 -4
  146. package/dist/queue/redis/index.d.ts.map +1 -1
  147. package/dist/queue/redis/index.js +2 -2
  148. package/dist/queue/redis/index.js.map +1 -1
  149. package/dist/react/auth/index.d.ts +9 -9
  150. package/dist/react/auth/index.d.ts.map +1 -1
  151. package/dist/react/core/index.d.ts +6 -6
  152. package/dist/react/core/index.d.ts.map +1 -1
  153. package/dist/react/core/index.js +5 -4
  154. package/dist/react/core/index.js.map +1 -1
  155. package/dist/react/form/index.d.ts +4 -4
  156. package/dist/react/form/index.d.ts.map +1 -1
  157. package/dist/react/head/index.d.ts +4 -4
  158. package/dist/react/head/index.d.ts.map +1 -1
  159. package/dist/react/i18n/index.d.ts +9 -9
  160. package/dist/react/i18n/index.d.ts.map +1 -1
  161. package/dist/react/intro/index.d.ts +2 -2
  162. package/dist/react/intro/index.d.ts.map +1 -1
  163. package/dist/react/intro/index.js +3 -4
  164. package/dist/react/intro/index.js.map +1 -1
  165. package/dist/react/router/index.browser.js +4 -5
  166. package/dist/react/router/index.browser.js.map +1 -1
  167. package/dist/react/router/index.d.ts +215 -215
  168. package/dist/react/router/index.d.ts.map +1 -1
  169. package/dist/react/router/index.js +6 -7
  170. package/dist/react/router/index.js.map +1 -1
  171. package/dist/react/testing/index.d.ts +2 -2
  172. package/dist/react/testing/index.d.ts.map +1 -1
  173. package/dist/react/testing/index.js +2 -4
  174. package/dist/react/testing/index.js.map +1 -1
  175. package/dist/redis/index.d.ts +19 -19
  176. package/dist/redis/index.d.ts.map +1 -1
  177. package/dist/retry/index.d.ts +4 -4
  178. package/dist/retry/index.d.ts.map +1 -1
  179. package/dist/scheduler/index.d.ts +13 -13
  180. package/dist/scheduler/index.d.ts.map +1 -1
  181. package/dist/scheduler/index.js +2 -2
  182. package/dist/scheduler/index.js.map +1 -1
  183. package/dist/scheduler/index.workerd.js +2 -2
  184. package/dist/scheduler/index.workerd.js.map +1 -1
  185. package/dist/security/index.browser.js +1 -1
  186. package/dist/security/index.browser.js.map +1 -1
  187. package/dist/security/index.d.ts +47 -47
  188. package/dist/security/index.d.ts.map +1 -1
  189. package/dist/security/index.js +9 -12
  190. package/dist/security/index.js.map +1 -1
  191. package/dist/server/auth/index.d.ts +170 -169
  192. package/dist/server/auth/index.d.ts.map +1 -1
  193. package/dist/server/auth/index.js +16 -2
  194. package/dist/server/auth/index.js.map +1 -1
  195. package/dist/server/cookies/index.d.ts +7 -7
  196. package/dist/server/cookies/index.d.ts.map +1 -1
  197. package/dist/server/core/index.d.ts +76 -76
  198. package/dist/server/core/index.d.ts.map +1 -1
  199. package/dist/server/core/index.js +23 -17
  200. package/dist/server/core/index.js.map +1 -1
  201. package/dist/server/cors/index.d.ts +13 -13
  202. package/dist/server/cors/index.d.ts.map +1 -1
  203. package/dist/server/cors/index.js +2 -2
  204. package/dist/server/cors/index.js.map +1 -1
  205. package/dist/server/etag/index.d.ts +9 -9
  206. package/dist/server/etag/index.d.ts.map +1 -1
  207. package/dist/server/health/index.d.ts +20 -20
  208. package/dist/server/health/index.d.ts.map +1 -1
  209. package/dist/server/links/index.browser.js +2 -2
  210. package/dist/server/links/index.browser.js.map +1 -1
  211. package/dist/server/links/index.d.ts +66 -66
  212. package/dist/server/links/index.d.ts.map +1 -1
  213. package/dist/server/links/index.js +4 -4
  214. package/dist/server/links/index.js.map +1 -1
  215. package/dist/server/metrics/index.d.ts +7 -7
  216. package/dist/server/metrics/index.d.ts.map +1 -1
  217. package/dist/server/proxy/index.d.ts +5 -5
  218. package/dist/server/proxy/index.d.ts.map +1 -1
  219. package/dist/server/rate-limit/index.d.ts +12 -12
  220. package/dist/server/rate-limit/index.d.ts.map +1 -1
  221. package/dist/server/rate-limit/index.js +2 -2
  222. package/dist/server/rate-limit/index.js.map +1 -1
  223. package/dist/server/static/index.d.ts +5 -5
  224. package/dist/server/static/index.d.ts.map +1 -1
  225. package/dist/server/swagger/index.d.ts +7 -7
  226. package/dist/server/swagger/index.d.ts.map +1 -1
  227. package/dist/server/swagger/index.js +2 -2
  228. package/dist/server/swagger/index.js.map +1 -1
  229. package/dist/sms/index.d.ts +11 -7
  230. package/dist/sms/index.d.ts.map +1 -1
  231. package/dist/sms/index.js +9 -15
  232. package/dist/sms/index.js.map +1 -1
  233. package/dist/system/index.d.ts +4 -4
  234. package/dist/system/index.d.ts.map +1 -1
  235. package/dist/topic/core/index.d.ts +6 -6
  236. package/dist/topic/core/index.d.ts.map +1 -1
  237. package/dist/topic/redis/index.d.ts +7 -7
  238. package/dist/topic/redis/index.d.ts.map +1 -1
  239. package/dist/topic/redis/index.js +2 -2
  240. package/dist/topic/redis/index.js.map +1 -1
  241. package/dist/websocket/index.d.ts +36 -36
  242. package/dist/websocket/index.d.ts.map +1 -1
  243. package/dist/websocket/index.js +2 -2
  244. package/dist/websocket/index.js.map +1 -1
  245. package/package.json +37 -32
  246. package/src/api/files/{controllers → __tests__}/FileController.spec.ts +189 -143
  247. package/src/api/files/{services → __tests__}/FileService.spec.ts +50 -30
  248. package/src/api/files/controllers/FileController.ts +6 -0
  249. package/src/api/jobs/{services → __tests__}/JobService.spec.ts +1 -1
  250. package/src/api/jobs/providers/JobProvider.ts +3 -3
  251. package/src/api/keys/{services → __tests__}/ApiKeyService.spec.ts +1 -1
  252. package/src/api/organizations/__tests__/OrganizationService.spec.ts +193 -0
  253. package/src/api/organizations/controllers/AdminOrganizationController.ts +103 -0
  254. package/src/api/organizations/entities/organizations.ts +20 -0
  255. package/src/api/organizations/index.browser.ts +10 -0
  256. package/src/api/organizations/index.ts +31 -0
  257. package/src/api/organizations/schemas/createOrganizationSchema.ts +10 -0
  258. package/src/api/organizations/schemas/organizationQuerySchema.ts +10 -0
  259. package/src/api/organizations/schemas/organizationResourceSchema.ts +6 -0
  260. package/src/api/organizations/schemas/updateOrganizationSchema.ts +7 -0
  261. package/src/api/organizations/services/OrganizationService.ts +75 -0
  262. package/src/api/parameters/services/ParameterProvider.ts +6 -1
  263. package/src/api/users/__tests__/$realm.spec.ts +191 -0
  264. package/src/api/users/__tests__/RealmProvider.spec.ts +53 -0
  265. package/src/api/users/__tests__/SessionService.spec.ts +778 -0
  266. package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
  267. package/src/api/users/atoms/realmAuthSettingsAtom.ts +24 -0
  268. package/src/api/users/controllers/RealmController.ts +5 -11
  269. package/src/api/users/entities/users.ts +9 -3
  270. package/src/api/users/index.ts +23 -3
  271. package/src/api/users/primitives/$realm.ts +23 -11
  272. package/src/api/users/providers/RealmProvider.ts +23 -3
  273. package/src/api/users/services/RegistrationService.ts +3 -2
  274. package/src/api/users/services/SessionService.ts +249 -8
  275. package/src/api/users/services/UserService.ts +1 -1
  276. package/src/api/verifications/{jobs → __tests__}/VerificationJobs.spec.ts +4 -2
  277. package/src/api/verifications/parameters/VerificationParameters.ts +2 -2
  278. package/src/billing/__tests__/BillingService.spec.ts +136 -0
  279. package/src/billing/__tests__/PaymentMethodService.spec.ts +78 -0
  280. package/src/billing/controllers/AdminBillingController.ts +149 -0
  281. package/src/billing/controllers/BillingController.ts +108 -0
  282. package/src/billing/entities/paymentIntents.ts +34 -0
  283. package/src/billing/entities/paymentMethods.ts +24 -0
  284. package/src/billing/entities/refunds.ts +22 -0
  285. package/src/billing/errors/BillingError.ts +5 -0
  286. package/src/billing/index.ts +76 -0
  287. package/src/billing/providers/BillingProvider.ts +79 -0
  288. package/src/billing/providers/MemoryBillingProvider.ts +139 -0
  289. package/src/billing/schemas/intentSchemas.ts +60 -0
  290. package/src/billing/schemas/paymentMethodSchemas.ts +13 -0
  291. package/src/billing/schemas/refundSchemas.ts +6 -0
  292. package/src/billing/services/BillingService.ts +325 -0
  293. package/src/billing/services/PaymentMethodService.ts +82 -0
  294. package/src/bin/index.ts +0 -2
  295. package/src/bucket/providers/LocalFileStorageProvider.ts +2 -2
  296. package/src/cache/core/{primitives → __tests__}/$cache.middleware.spec.ts +1 -1
  297. package/src/cache/core/{providers → __tests__}/MemoryCacheProvider.spec.ts +1 -1
  298. package/src/cache/core/primitives/$cache.ts +2 -2
  299. package/src/cache/redis/providers/RedisCacheProvider.ts +2 -2
  300. package/src/cli/config/defineConfig.ts +20 -0
  301. package/src/cli/core/{services → __tests__}/ProjectScaffolder.spec.ts +1 -1
  302. package/src/cli/core/{commands/gen → __tests__}/changelog.spec.ts +1 -1
  303. package/src/cli/core/{commands → __tests__}/init.spec.ts +4 -12
  304. package/src/cli/core/assets.ts +0 -1
  305. package/src/cli/core/atoms/devOptions.ts +0 -5
  306. package/src/cli/core/commands/build.ts +2 -2
  307. package/src/cli/core/commands/dev.ts +165 -30
  308. package/src/cli/core/commands/gen/changelog.ts +2 -2
  309. package/src/cli/core/commands/init.ts +2 -7
  310. package/src/cli/core/commands/verify.ts +0 -1
  311. package/src/cli/core/providers/AppEntryProvider.ts +2 -2
  312. package/src/cli/core/providers/ViteDevServerProvider.ts +53 -46
  313. package/src/cli/core/services/PackageManagerUtils.ts +8 -3
  314. package/src/cli/core/services/ProjectScaffolder.ts +20 -20
  315. package/src/cli/core/tasks/BuildClientTask.ts +8 -0
  316. package/src/cli/core/tasks/BuildServerTask.ts +17 -4
  317. package/src/cli/core/templates/alephaConfigTs.ts +0 -6
  318. package/src/cli/core/templates/webAdminDashboardTsx.ts +17 -0
  319. package/src/cli/core/templates/webAppRouterTs.ts +85 -2
  320. package/src/cli/devtools/atoms/devtoolsOptions.ts +26 -0
  321. package/src/cli/devtools/index.ts +194 -0
  322. package/src/cli/platform/{adapters → __tests__}/CloudflareAdapter.spec.ts +2 -2
  323. package/src/cli/platform/{providers → __tests__}/GitHubSecretStore.spec.ts +1 -1
  324. package/src/cli/platform/{services → __tests__}/NamingService.spec.ts +1 -1
  325. package/src/cli/platform/{providers → __tests__}/PlatformCacheProvider.spec.ts +1 -1
  326. package/src/cli/platform/{services → __tests__}/PlatformInspector.spec.ts +1 -1
  327. package/src/cli/platform/{services → __tests__}/PlatformOrchestrator.spec.ts +3 -3
  328. package/src/cli/platform/{services → __tests__}/SecretFilterService.spec.ts +1 -1
  329. package/src/cli/platform/{commands → __tests__}/SecretsCommand.spec.ts +1 -1
  330. package/src/cli/platform/{adapters → __tests__}/VercelAdapter.spec.ts +2 -2
  331. package/src/cli/platform/atoms/platformOptions.ts +2 -10
  332. package/src/cli/platform/commands/SecretsCommand.ts +2 -2
  333. package/src/cli/platform/commands/platform.ts +2 -11
  334. package/src/cli/platform/index.ts +34 -11
  335. package/src/cli/platform/services/PlatformInspector.ts +2 -2
  336. package/src/cli/platform/services/PlatformOrchestrator.ts +0 -9
  337. package/src/cli/vendor/__tests__/VendorService.spec.ts +407 -0
  338. package/src/cli/vendor/atoms/vendorOptions.ts +41 -0
  339. package/src/cli/vendor/commands/VendorCommand.ts +204 -0
  340. package/src/cli/vendor/index.ts +43 -0
  341. package/src/cli/vendor/services/VendorService.ts +338 -0
  342. package/src/command/{providers → __tests__}/CliProvider.spec.ts +1 -1
  343. package/src/command/{helpers → __tests__}/EnvUtils.spec.ts +1 -1
  344. package/src/command/providers/CliProvider.ts +2 -2
  345. package/src/core/{primitives → __tests__}/$atom.spec.ts +2 -2
  346. package/src/core/{primitives → __tests__}/$memoize.spec.ts +1 -1
  347. package/src/core/{primitives → __tests__}/$mode.spec.ts +1 -1
  348. package/src/core/{primitives → __tests__}/$pipeline.spec.ts +1 -1
  349. package/src/core/{primitives → __tests__}/$scope.spec.ts +2 -2
  350. package/src/core/{providers → __tests__}/KeylessJsonSchemaCodec.spec.ts +1 -1
  351. package/src/core/{providers → __tests__}/SchemaValidator.spec.ts +1 -1
  352. package/src/core/{helpers → __tests__}/jsonSchemaToTypeBox.spec.ts +1 -1
  353. package/src/core/index.shared.ts +1 -1
  354. package/src/core/primitives/{$use.ts → $state.ts} +4 -4
  355. package/src/crypto/{providers → __tests__}/BrowserCryptoProvider.browser.spec.ts +1 -1
  356. package/src/crypto/{providers → __tests__}/CryptoProvider.spec.ts +1 -1
  357. package/src/datetime/{primitives → __tests__}/$debounce.spec.ts +1 -1
  358. package/src/datetime/{primitives → __tests__}/$throttle.spec.ts +1 -1
  359. package/src/datetime/{primitives → __tests__}/$timeout.spec.ts +1 -1
  360. package/src/email/brevo/{providers → __tests__}/BrevoEmailProvider.spec.ts +1 -1
  361. package/src/email/core/{providers → __tests__}/LocalEmailProvider.spec.ts +39 -150
  362. package/src/email/core/providers/LocalEmailProvider.ts +13 -51
  363. package/src/email/smtp/providers/NodemailerEmailProvider.ts +2 -2
  364. package/src/lock/core/{primitives → __tests__}/$lock.middleware.spec.ts +1 -1
  365. package/src/lock/core/primitives/$lock.ts +2 -2
  366. package/src/logger/index.ts +10 -4
  367. package/src/mcp/transports/SseMcpTransport.ts +2 -2
  368. package/src/orm/__tests__/ModelBuilder-tests.ts +53 -0
  369. package/src/orm/__tests__/ModelBuilder.spec.ts +80 -0
  370. package/src/orm/__tests__/organization-tests.ts +200 -0
  371. package/src/orm/__tests__/organization.spec.ts +103 -0
  372. package/src/orm/core/{providers/drivers → __tests__}/BunSqliteProvider.bun.spec.ts +5 -2
  373. package/src/orm/core/constants/PG_SYMBOLS.ts +2 -0
  374. package/src/orm/core/index.shared.ts +1 -0
  375. package/src/orm/core/primitives/$entity.ts +31 -0
  376. package/src/orm/core/providers/DatabaseTypeProvider.ts +11 -0
  377. package/src/orm/core/providers/DrizzleKitProvider.ts +1 -1
  378. package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -2
  379. package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +3 -3
  380. package/src/orm/core/services/ModelBuilder.ts +11 -0
  381. package/src/orm/core/services/QueryManager.ts +16 -2
  382. package/src/orm/core/services/Repository.ts +70 -10
  383. package/src/orm/postgres/{providers → __tests__}/BunPostgresProvider.bun.spec.ts +1 -1
  384. package/src/orm/postgres/services/PostgresModelBuilder.ts +9 -1
  385. package/src/queue/core/providers/WorkerProvider.ts +2 -2
  386. package/src/queue/redis/providers/RedisQueueProvider.ts +2 -2
  387. package/src/react/core/{hooks → __tests__}/useAction.browser.spec.tsx +1 -1
  388. package/src/react/core/hooks/useAction.ts +7 -6
  389. package/src/react/head/{providers → __tests__}/BrowserHeadProvider.browser.spec.ts +1 -1
  390. package/src/react/head/{helpers → __tests__}/SeoExpander.spec.ts +1 -1
  391. package/src/react/i18n/{providers → __tests__}/I18nProvider.spec.ts +1 -1
  392. package/src/react/i18n/{hooks → __tests__}/useI18n.browser.spec.tsx +1 -1
  393. package/src/react/intro/components/GettingStartedDevtoolsSlide.tsx +3 -6
  394. package/src/react/router/{providers → __tests__}/ReactBrowserProvider.browser.spec.ts +1 -1
  395. package/src/react/router/providers/ReactBrowserProvider.ts +2 -2
  396. package/src/react/router/providers/ReactPageProvider.ts +2 -2
  397. package/src/react/router/providers/ReactServerProvider.ts +3 -3
  398. package/src/redis/{providers → __tests__}/BunRedisProvider.bun.spec.ts +4 -4
  399. package/src/retry/{primitives → __tests__}/$retry.middleware.spec.ts +1 -1
  400. package/src/router/{TemplatedPathParser.spec.ts → __tests__/TemplatedPathParser.spec.ts} +1 -1
  401. package/src/scheduler/primitives/$scheduler.ts +2 -2
  402. package/src/security/{primitives → __tests__}/$secure-browser.spec.ts +1 -1
  403. package/src/security/{primitives → __tests__}/$secure.spec.ts +1 -1
  404. package/src/security/primitives/$issuer.ts +1 -1
  405. package/src/security/providers/JwtProvider.ts +6 -10
  406. package/src/security/providers/SecurityProvider.ts +6 -11
  407. package/src/security/schemas/userAccountInfoSchema.ts +3 -3
  408. package/src/server/auth/providers/ServerAuthProvider.ts +24 -2
  409. package/src/server/cookies/{services → __tests__}/CookieParser.spec.ts +1 -1
  410. package/src/server/core/{primitives → __tests__}/$circuit.spec.ts +1 -1
  411. package/src/server/core/{providers → __tests__}/NodeHttpServerProvider.spec.ts +1 -1
  412. package/src/server/core/{providers → __tests__}/ServerBodyParserProvider.spec.ts +31 -1
  413. package/src/server/core/{providers → __tests__}/ServerCompressProvider.spec.ts +1 -1
  414. package/src/server/core/{providers → __tests__}/ServerHelmetProvider.spec.ts +4 -1
  415. package/src/server/core/{providers → __tests__}/ServerMultipartProvider.spec.ts +1 -1
  416. package/src/server/core/{services → __tests__}/ServerRequestParser.spec.ts +1 -1
  417. package/src/server/core/primitives/$action.ts +2 -2
  418. package/src/server/core/primitives/$sse.ts +2 -2
  419. package/src/server/core/providers/ServerBodyParserProvider.ts +21 -12
  420. package/src/server/core/providers/ServerCompressProvider.ts +2 -2
  421. package/src/server/core/providers/ServerHelmetProvider.ts +2 -2
  422. package/src/server/core/providers/ServerMultipartProvider.ts +2 -2
  423. package/src/server/core/providers/ServerRouterProvider.ts +1 -5
  424. package/src/server/cors/{primitives → __tests__}/$cors.spec.ts +1 -1
  425. package/src/server/cors/providers/ServerCorsProvider.ts +2 -2
  426. package/src/server/links/{services → __tests__}/BatchCollector.spec.ts +1 -1
  427. package/src/server/links/providers/LinkProvider.ts +2 -2
  428. package/src/server/links/providers/RemotePrimitiveProvider.ts +2 -2
  429. package/src/server/links/providers/ServerLinksProvider.ts +2 -2
  430. package/src/server/rate-limit/{primitives → __tests__}/$rateLimit.spec.ts +1 -1
  431. package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +2 -2
  432. package/src/server/swagger/providers/ServerSwaggerProvider.ts +2 -2
  433. package/src/sms/{providers → __tests__}/LocalSmsProvider.spec.ts +35 -29
  434. package/src/sms/providers/LocalSmsProvider.ts +13 -24
  435. package/src/system/{providers → __tests__}/MemoryFileSystemProvider.spec.ts +1 -1
  436. package/src/system/{providers → __tests__}/MemoryShellProvider.spec.ts +1 -1
  437. package/src/topic/redis/providers/RedisTopicProvider.ts +2 -2
  438. package/src/websocket/{services → __tests__}/RoomManager.spec.ts +1 -1
  439. package/src/websocket/providers/NodeWebSocketServerProvider.ts +2 -2
  440. package/tsconfig.base.json +1 -0
  441. package/assets/devtools-ui/200.html +0 -10
  442. package/assets/devtools-ui/200.html.br +0 -0
  443. package/assets/devtools-ui/404.html +0 -10
  444. package/assets/devtools-ui/404.html.br +0 -0
  445. package/assets/devtools-ui/CNAME +0 -1
  446. package/assets/devtools-ui/asset.CHpVij2M.css +0 -1
  447. package/assets/devtools-ui/asset.CHpVij2M.css.br +0 -0
  448. package/assets/devtools-ui/asset.DJ-i0UDz.css +0 -1
  449. package/assets/devtools-ui/asset.DJ-i0UDz.css.br +0 -0
  450. package/assets/devtools-ui/chunk.1jwpJORo.js +0 -1
  451. package/assets/devtools-ui/chunk.1jwpJORo.js.br +0 -0
  452. package/assets/devtools-ui/chunk.B0r2wfUL.js +0 -1
  453. package/assets/devtools-ui/chunk.B0r2wfUL.js.br +0 -0
  454. package/assets/devtools-ui/chunk.BScN4dVR.js +0 -84
  455. package/assets/devtools-ui/chunk.BScN4dVR.js.br +0 -0
  456. package/assets/devtools-ui/chunk.BispuoY4.js +0 -1
  457. package/assets/devtools-ui/chunk.BispuoY4.js.br +0 -0
  458. package/assets/devtools-ui/chunk.BtrPUUd7.js +0 -2
  459. package/assets/devtools-ui/chunk.BtrPUUd7.js.br +0 -0
  460. package/assets/devtools-ui/chunk.C-KMHgqf.js +0 -1
  461. package/assets/devtools-ui/chunk.C-KMHgqf.js.br +0 -0
  462. package/assets/devtools-ui/chunk.C2zQ3CF6.js +0 -7
  463. package/assets/devtools-ui/chunk.C2zQ3CF6.js.br +0 -0
  464. package/assets/devtools-ui/chunk.C619McpO.js +0 -1
  465. package/assets/devtools-ui/chunk.C619McpO.js.br +0 -0
  466. package/assets/devtools-ui/chunk.C9OsYsVl.js +0 -1
  467. package/assets/devtools-ui/chunk.C9OsYsVl.js.br +0 -3
  468. package/assets/devtools-ui/chunk.CAC_-151.js +0 -1
  469. package/assets/devtools-ui/chunk.CAC_-151.js.br +0 -0
  470. package/assets/devtools-ui/chunk.CCmesWfx.js +0 -1
  471. package/assets/devtools-ui/chunk.CCmesWfx.js.br +0 -0
  472. package/assets/devtools-ui/chunk.CFQDmrcV.js +0 -1
  473. package/assets/devtools-ui/chunk.CFQDmrcV.js.br +0 -0
  474. package/assets/devtools-ui/chunk.CgM71Zau.js +0 -1
  475. package/assets/devtools-ui/chunk.CgM71Zau.js.br +0 -0
  476. package/assets/devtools-ui/chunk.CmHq336a.js +0 -1
  477. package/assets/devtools-ui/chunk.CmHq336a.js.br +0 -0
  478. package/assets/devtools-ui/chunk.CthNMCar.js +0 -1
  479. package/assets/devtools-ui/chunk.CthNMCar.js.br +0 -0
  480. package/assets/devtools-ui/chunk.D2brVJP1.js +0 -1
  481. package/assets/devtools-ui/chunk.D2brVJP1.js.br +0 -0
  482. package/assets/devtools-ui/chunk.DgBKGkiw.js +0 -1
  483. package/assets/devtools-ui/chunk.DgBKGkiw.js.br +0 -0
  484. package/assets/devtools-ui/chunk.NNHHCQsa.js +0 -1
  485. package/assets/devtools-ui/chunk.NNHHCQsa.js.br +0 -0
  486. package/assets/devtools-ui/chunk._CDKKWMo.js +0 -1
  487. package/assets/devtools-ui/chunk._CDKKWMo.js.br +0 -0
  488. package/assets/devtools-ui/entry.B_nOjAod.js +0 -2
  489. package/assets/devtools-ui/entry.B_nOjAod.js.br +0 -0
  490. package/assets/devtools-ui/index.html +0 -10
  491. package/assets/devtools-ui/index.html.br +0 -0
  492. package/dist/devtools/index.browser.js +0 -224
  493. package/dist/devtools/index.browser.js.map +0 -1
  494. package/dist/devtools/index.d.ts +0 -499
  495. package/dist/devtools/index.d.ts.map +0 -1
  496. package/dist/devtools/index.js +0 -782
  497. package/dist/devtools/index.js.map +0 -1
  498. package/dist/mqtt/index.d.ts +0 -164
  499. package/dist/mqtt/index.d.ts.map +0 -1
  500. package/dist/mqtt/index.js +0 -214
  501. package/dist/mqtt/index.js.map +0 -1
  502. package/dist/topic/mqtt/index.d.ts +0 -87
  503. package/dist/topic/mqtt/index.d.ts.map +0 -1
  504. package/dist/topic/mqtt/index.js +0 -88
  505. package/dist/topic/mqtt/index.js.map +0 -1
  506. package/src/api/users/parameters/UserParameters.ts +0 -23
  507. package/src/api/users/services/SessionService.spec.ts +0 -303
  508. package/src/cli/platform/adapters/DockerAdapter.spec.ts +0 -378
  509. package/src/cli/platform/adapters/DockerAdapter.ts +0 -417
  510. package/src/cli/platform/services/DockerComposeGenerator.spec.ts +0 -490
  511. package/src/cli/platform/services/DockerComposeGenerator.ts +0 -353
  512. package/src/cli/platform/services/DockerSshService.spec.ts +0 -47
  513. package/src/cli/platform/services/DockerSshService.ts +0 -61
  514. package/src/devtools/__tests__/DevCollectorProvider.spec.ts +0 -7
  515. package/src/devtools/assets.ts +0 -6
  516. package/src/devtools/entities/logs.ts +0 -21
  517. package/src/devtools/index.browser.ts +0 -11
  518. package/src/devtools/index.shared.ts +0 -15
  519. package/src/devtools/index.ts +0 -39
  520. package/src/devtools/providers/DevToolsMetadataProvider.ts +0 -459
  521. package/src/devtools/providers/DevToolsProvider.ts +0 -280
  522. package/src/devtools/schemas/DevActionMetadata.ts +0 -30
  523. package/src/devtools/schemas/DevAtomMetadata.ts +0 -26
  524. package/src/devtools/schemas/DevBucketMetadata.ts +0 -11
  525. package/src/devtools/schemas/DevCacheMetadata.ts +0 -10
  526. package/src/devtools/schemas/DevEntityMetadata.ts +0 -60
  527. package/src/devtools/schemas/DevEnvMetadata.ts +0 -22
  528. package/src/devtools/schemas/DevMetadata.ts +0 -47
  529. package/src/devtools/schemas/DevModuleMetadata.ts +0 -8
  530. package/src/devtools/schemas/DevPageMetadata.ts +0 -24
  531. package/src/devtools/schemas/DevProviderMetadata.ts +0 -10
  532. package/src/devtools/schemas/DevQueueMetadata.ts +0 -10
  533. package/src/devtools/schemas/DevRealmMetadata.ts +0 -19
  534. package/src/devtools/schemas/DevRouteMetadata.ts +0 -8
  535. package/src/devtools/schemas/DevSchedulerMetadata.ts +0 -11
  536. package/src/devtools/schemas/DevTopicMetadata.ts +0 -11
  537. package/src/mqtt/index.ts +0 -32
  538. package/src/mqtt/providers/MqttClientProvider.ts +0 -63
  539. package/src/mqtt/providers/MqttJsClientProvider.spec.ts +0 -165
  540. package/src/mqtt/providers/MqttJsClientProvider.ts +0 -309
  541. package/src/topic/mqtt/index.ts +0 -30
  542. package/src/topic/mqtt/providers/MqttTopicProvider.spec.ts +0 -160
  543. package/src/topic/mqtt/providers/MqttTopicProvider.ts +0 -146
  544. /package/src/api/audits/{primitives → __tests__}/$audit.spec.ts +0 -0
  545. /package/src/api/audits/{services → __tests__}/AuditService.spec.ts +0 -0
  546. /package/src/api/files/{controllers → __tests__}/AdminFileStatsController.spec.ts +0 -0
  547. /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
  548. /package/src/api/jobs/{primitives → __tests__}/$job-middleware.spec.ts +0 -0
  549. /package/src/api/parameters/{primitives → __tests__}/$parameter.spec.ts +0 -0
  550. /package/src/api/users/{controllers → __tests__}/AdminIdentityController.spec.ts +0 -0
  551. /package/src/api/users/{controllers → __tests__}/AdminSessionController.spec.ts +0 -0
  552. /package/src/api/users/{controllers → __tests__}/AdminUserController.spec.ts +0 -0
  553. /package/src/api/users/{services → __tests__}/CredentialService.spec.ts +0 -0
  554. /package/src/api/users/{services → __tests__}/RegistrationService.spec.ts +0 -0
  555. /package/src/batch/{primitives → __tests__}/$batch.spec.ts +0 -0
  556. /package/src/batch/{providers → __tests__}/BatchProvider.spec.ts +0 -0
  557. /package/src/bucket/{primitives → __tests__}/$bucket.spec.ts +0 -0
  558. /package/src/bucket/{providers → __tests__}/FileStorageProvider.spec.ts +0 -0
  559. /package/src/bucket/{providers → __tests__}/LocalFileStorageProvider.spec.ts +0 -0
  560. /package/src/bucket/{providers → __tests__}/MemoryFileStorageProvider.spec.ts +0 -0
  561. /package/src/cache/core/{primitives → __tests__}/$cache.spec.ts +0 -0
  562. /package/src/cache/redis/{providers → __tests__}/RedisCacheProvider.spec.ts +0 -0
  563. /package/src/command/{primitives → __tests__}/$command.spec.ts +0 -0
  564. /package/src/command/{helpers → __tests__}/Asker.spec.ts +0 -0
  565. /package/src/command/{helpers → __tests__}/Runner.spec.ts +0 -0
  566. /package/src/core/{primitives → __tests__}/$context.spec.ts +0 -0
  567. /package/src/core/{primitives → __tests__}/$env.spec.ts +0 -0
  568. /package/src/core/{primitives → __tests__}/$hook.spec.ts +0 -0
  569. /package/src/core/{primitives → __tests__}/$inject.spec.ts +0 -0
  570. /package/src/core/{primitives → __tests__}/$module.spec.ts +0 -0
  571. /package/src/core/{providers → __tests__}/CodecManager.spec.ts +0 -0
  572. /package/src/core/{providers → __tests__}/EventManager.spec.ts +0 -0
  573. /package/src/core/{providers → __tests__}/StateManager.spec.ts +0 -0
  574. /package/src/core/{providers → __tests__}/TypeProvider.spec.ts +0 -0
  575. /package/src/datetime/{primitives → __tests__}/$interval.spec.ts +0 -0
  576. /package/src/datetime/{providers → __tests__}/DateTimeProvider.spec.ts +0 -0
  577. /package/src/email/core/{primitives → __tests__}/$email.spec.ts +0 -0
  578. /package/src/fake/{providers → __tests__}/FakeProvider.spec.ts +0 -0
  579. /package/src/lock/core/{providers → __tests__}/MemoryLockProvider.spec.ts +0 -0
  580. /package/src/lock/redis/{providers → __tests__}/RedisLockProvider.spec.ts +0 -0
  581. /package/src/logger/{primitives → __tests__}/$logger.spec.ts +0 -0
  582. /package/src/logger/{services → __tests__}/Logger.spec.ts +0 -0
  583. /package/src/mcp/{primitives → __tests__}/$prompt.spec.ts +0 -0
  584. /package/src/mcp/{primitives → __tests__}/$resource.spec.ts +0 -0
  585. /package/src/mcp/{primitives → __tests__}/$tool.spec.ts +0 -0
  586. /package/src/mcp/{providers → __tests__}/McpServerProvider.spec.ts +0 -0
  587. /package/src/mcp/{helpers → __tests__}/jsonrpc.spec.ts +0 -0
  588. /package/src/orm/core/{helpers → __tests__}/parseQueryString.spec.ts +0 -0
  589. /package/src/queue/core/{primitives → __tests__}/$consumer.spec.ts +0 -0
  590. /package/src/queue/core/{providers → __tests__}/MemoryQueueProvider.spec.ts +0 -0
  591. /package/src/queue/core/{providers → __tests__}/WorkerProvider.spec.ts +0 -0
  592. /package/src/queue/redis/{providers → __tests__}/RedisQueueProvider.spec.ts +0 -0
  593. /package/src/react/form/{hooks → __tests__}/useForm.browser.spec.tsx +0 -0
  594. /package/src/react/head/{hooks → __tests__}/useHead.spec.tsx +0 -0
  595. /package/src/react/i18n/{components → __tests__}/Localize.spec.tsx +0 -0
  596. /package/src/react/router/{primitives → __tests__}/$page.browser.spec.tsx +0 -0
  597. /package/src/react/router/{primitives → __tests__}/$page.middleware.spec.tsx +0 -0
  598. /package/src/react/router/{primitives → __tests__}/$page.spec.tsx +0 -0
  599. /package/src/react/router/{providers → __tests__}/ReactPreloadProvider.spec.ts +0 -0
  600. /package/src/react/router/{providers → __tests__}/ReactServerProvider.spec.tsx +0 -0
  601. /package/src/react/router/{providers → __tests__}/ReactServerTemplateProvider.spec.ts +0 -0
  602. /package/src/retry/{primitives → __tests__}/$retry.spec.ts +0 -0
  603. /package/src/retry/{providers → __tests__}/RetryProvider.spec.ts +0 -0
  604. /package/src/router/{providers → __tests__}/RouterProvider.spec.ts +0 -0
  605. /package/src/security/{primitives → __tests__}/$issuer.spec.ts +0 -0
  606. /package/src/security/{primitives → __tests__}/$permission.spec.ts +0 -0
  607. /package/src/security/{primitives → __tests__}/$role.spec.ts +0 -0
  608. /package/src/security/{primitives → __tests__}/$serviceAccount.spec.ts +0 -0
  609. /package/src/security/{providers → __tests__}/SecurityProvider.spec.ts +0 -0
  610. /package/src/server/cookies/{providers → __tests__}/ServerCookiesProvider.spec.ts +0 -0
  611. /package/src/server/core/{primitives → __tests__}/$action.spec.ts +0 -0
  612. /package/src/server/core/{primitives → __tests__}/$middleware.spec.ts +0 -0
  613. /package/src/server/core/{primitives → __tests__}/$route.spec.ts +0 -0
  614. /package/src/server/core/{primitives → __tests__}/$sse.spec.ts +0 -0
  615. /package/src/server/core/{providers → __tests__}/BunHttpServerProvider.bun.spec.ts +0 -0
  616. /package/src/server/core/{services → __tests__}/HttpClient.spec.ts +0 -0
  617. /package/src/server/core/{providers → __tests__}/ServerLoggerProvider.spec.ts +0 -0
  618. /package/src/server/core/{services → __tests__}/UserAgentParser.spec.ts +0 -0
  619. /package/src/server/cors/{providers → __tests__}/ServerCorsProvider.spec.ts +0 -0
  620. /package/src/server/etag/{providers → __tests__}/ServerEtagProvider.spec.ts +0 -0
  621. /package/src/server/health/{providers → __tests__}/ServerHealthProvider.spec.ts +0 -0
  622. /package/src/server/links/{primitives → __tests__}/$remote.spec.ts +0 -0
  623. /package/src/server/links/{services → __tests__}/BatchEndpoint.spec.ts +0 -0
  624. /package/src/server/links/{providers → __tests__}/LinkProvider.spec.ts +0 -0
  625. /package/src/server/links/{providers → __tests__}/ServerLinksProvider.spec.ts +0 -0
  626. /package/src/server/metrics/{providers → __tests__}/ServerMetricsProvider.spec.ts +0 -0
  627. /package/src/server/proxy/{primitives → __tests__}/$proxy.spec.ts +0 -0
  628. /package/src/server/rate-limit/{providers → __tests__}/ServerRateLimitProvider.spec.ts +0 -0
  629. /package/src/server/static/{primitives → __tests__}/$serve.spec.ts +0 -0
  630. /package/src/server/swagger/{primitives → __tests__}/$swagger.spec.ts +0 -0
  631. /package/src/sms/{primitives → __tests__}/$sms.spec.ts +0 -0
  632. /package/src/sms/{providers → __tests__}/MemorySmsProvider.spec.ts +0 -0
  633. /package/src/system/{services → __tests__}/FileDetector.spec.ts +0 -0
  634. /package/src/system/{providers → __tests__}/NodeFileSystemProvider.spec.ts +0 -0
  635. /package/src/topic/core/{primitives → __tests__}/$subscriber.spec.ts +0 -0
  636. /package/src/topic/core/{providers → __tests__}/MemoryTopicProvider.spec.ts +0 -0
  637. /package/src/topic/redis/{providers → __tests__}/RedisTopicProvider.spec.ts +0 -0
  638. /package/src/websocket/{primitives → __tests__}/$channel.spec.ts +0 -0
@@ -1,25 +1,26 @@
1
- import * as alepha from "alepha";
1
+ import * as _$alepha from "alepha";
2
2
  import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
+ import { AuditService, CreateAudit } from "alepha/api/audits";
4
+ import * as _$alepha_bucket0 from "alepha/bucket";
3
5
  import { CryptoProvider, IssuerPrimitive, IssuerPrimitiveOptions, UserAccount } from "alepha/security";
4
- import * as alepha_server0 from "alepha/server";
5
- import * as alepha_orm0 from "alepha/orm";
6
+ import * as _$alepha_server0 from "alepha/server";
7
+ import * as _$alepha_orm0 from "alepha/orm";
6
8
  import { Page as Page$1, Repository } from "alepha/orm";
7
- import * as alepha_logger0 from "alepha/logger";
8
- import { AuditService, CreateAudit } from "alepha/api/audits";
9
- import * as alepha_server_links0 from "alepha/server/links";
10
- import * as alepha_api_notifications0 from "alepha/api/notifications";
9
+ import * as _$alepha_logger0 from "alepha/logger";
10
+ import * as _$alepha_server_links0 from "alepha/server/links";
11
+ import * as _$alepha_api_notifications0 from "alepha/api/notifications";
11
12
  import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
12
- import * as alepha_cache0 from "alepha/cache";
13
+ import * as _$alepha_cache0 from "alepha/cache";
14
+ import { CacheProvider } from "alepha/cache";
13
15
  import { DateTime, DateTimeProvider } from "alepha/datetime";
16
+ import * as _$alepha_api_jobs0 from "alepha/api/jobs";
14
17
  import { FileSystemProvider } from "alepha/system";
15
- import * as alepha_bucket0 from "alepha/bucket";
16
- import * as alepha_api_jobs0 from "alepha/api/jobs";
17
- import * as alepha_api_parameters0 from "alepha/api/parameters";
18
+ import { ParameterPrimitive } from "alepha/api/parameters";
18
19
  import { VerificationController } from "alepha/api/verifications";
19
- import * as typebox from "typebox";
20
- import * as drizzle_orm0 from "drizzle-orm";
20
+ import * as _$typebox from "typebox";
21
+ import * as _$drizzle_orm0 from "drizzle-orm";
21
22
  import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
22
- import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
23
+ import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
23
24
  import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, PgInsertValue, PgSelectBase, PgSequenceOptions, PgTableExtraConfigValue, PgTableWithColumns, PgTransaction, UpdateDeleteAction } from "drizzle-orm/pg-core";
24
25
  import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
25
26
  import { LibSQLDatabase } from "drizzle-orm/libsql";
@@ -39,27 +40,32 @@ import { FileController } from "alepha/api/files";
39
40
  * - `"required"`: Field is shown and required.
40
41
  */
41
42
  type FieldRequirement = "none" | "optional" | "required";
42
- declare const realmAuthSettingsAtom: alepha.Atom<alepha.TObject<{
43
- displayName: alepha.TOptional<alepha.TString>;
44
- description: alepha.TOptional<alepha.TString>;
45
- logoUrl: alepha.TOptional<alepha.TString>;
46
- registrationAllowed: alepha.TBoolean;
47
- email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
48
- username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
49
- usernameRegExp: alepha.TString;
50
- phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
51
- verifyEmailRequired: alepha.TBoolean;
52
- verifyPhoneRequired: alepha.TBoolean;
53
- firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
54
- resetPasswordAllowed: alepha.TBoolean;
55
- adminEmails: alepha.TArray<alepha.TString>;
56
- adminUsernames: alepha.TArray<alepha.TString>;
57
- passwordPolicy: alepha.TObject<{
58
- minLength: alepha.TInteger;
59
- requireUppercase: alepha.TBoolean;
60
- requireLowercase: alepha.TBoolean;
61
- requireNumbers: alepha.TBoolean;
62
- requireSpecialCharacters: alepha.TBoolean;
43
+ declare const realmAuthSettingsAtom: _$alepha.Atom<_$alepha.TObject<{
44
+ displayName: _$alepha.TOptional<_$alepha.TString>;
45
+ description: _$alepha.TOptional<_$alepha.TString>;
46
+ logoUrl: _$alepha.TOptional<_$alepha.TString>;
47
+ registrationAllowed: _$alepha.TBoolean;
48
+ email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
49
+ username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
50
+ usernameRegExp: _$alepha.TString;
51
+ phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
52
+ verifyEmailRequired: _$alepha.TBoolean;
53
+ verifyPhoneRequired: _$alepha.TBoolean;
54
+ firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
55
+ resetPasswordAllowed: _$alepha.TBoolean;
56
+ adminEmails: _$alepha.TArray<_$alepha.TString>;
57
+ adminUsernames: _$alepha.TArray<_$alepha.TString>;
58
+ passwordPolicy: _$alepha.TObject<{
59
+ minLength: _$alepha.TInteger;
60
+ requireUppercase: _$alepha.TBoolean;
61
+ requireLowercase: _$alepha.TBoolean;
62
+ requireNumbers: _$alepha.TBoolean;
63
+ requireSpecialCharacters: _$alepha.TBoolean;
64
+ }>;
65
+ loginRateLimit: _$alepha.TObject<{
66
+ ipMaxAttempts: _$alepha.TInteger;
67
+ accountMaxAttempts: _$alepha.TInteger;
68
+ windowMs: _$alepha.TInteger;
63
69
  }>;
64
70
  }>, "alepha.api.users.realmAuthSettings">;
65
71
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
@@ -144,6 +150,36 @@ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
144
150
  * Partial index condition. Only rows matching this SQL expression are indexed.
145
151
  */
146
152
  where?: SQL;
153
+ } | {
154
+ /**
155
+ * SQL expressions for expression-based indexes.
156
+ *
157
+ * Can include column references and SQL functions like `LOWER()`, `UPPER()`, etc.
158
+ * Columns and expressions can be mixed together.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * // Case-insensitive unique username per realm
163
+ * indexes: [{
164
+ * expressions: (self) => [self.realm, sql`LOWER(${self.username})`],
165
+ * unique: true,
166
+ * name: "users_realm_username_lower_idx",
167
+ * }]
168
+ * ```
169
+ */
170
+ expressions: (self: Record<Keys & string, any>) => (SQL | any)[];
171
+ /**
172
+ * Whether this should be a unique index (enforces uniqueness constraint).
173
+ */
174
+ unique?: boolean;
175
+ /**
176
+ * Custom name for the index. If not provided, generates name automatically.
177
+ */
178
+ name: string;
179
+ /**
180
+ * Partial index condition. Only rows matching this SQL expression are indexed.
181
+ */
182
+ where?: SQL;
147
183
  })[];
148
184
  /**
149
185
  * Foreign key constraints to maintain referential integrity.
@@ -254,6 +290,7 @@ declare const PG_IDENTITY: unique symbol;
254
290
  declare const PG_ENUM: unique symbol;
255
291
  declare const PG_REF: unique symbol;
256
292
  declare const PG_GENERATED: unique symbol;
293
+ declare const PG_ORGANIZATION: unique symbol;
257
294
  /**
258
295
  * @deprecated Use `PG_IDENTITY` instead.
259
296
  */
@@ -269,6 +306,7 @@ type PgSymbols = {
269
306
  [PG_REF]: PgRefOptions;
270
307
  [PG_ENUM]: PgEnumOptions;
271
308
  [PG_GENERATED]: PgGeneratedOptions;
309
+ [PG_ORGANIZATION]: {};
272
310
  /**
273
311
  * @deprecated Use `PG_IDENTITY` instead.
274
312
  */
@@ -1085,7 +1123,7 @@ declare abstract class ModelBuilder {
1085
1123
  protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
1086
1124
  }
1087
1125
  //#endregion
1088
- //#region ../../../../node_modules/@electric-sql/pglite/dist/pglite-SIPwY9Cm.d.ts
1126
+ //#region ../../../../node_modules/@electric-sql/pglite/dist/pglite-BdaQNAoW.d.ts
1089
1127
  type MessageName = 'parseComplete' | 'bindComplete' | 'closeComplete' | 'noData' | 'portalSuspended' | 'replicationStart' | 'emptyQuery' | 'copyDone' | 'copyData' | 'rowDescription' | 'parameterDescription' | 'parameterStatus' | 'backendKeyData' | 'notification' | 'readyForQuery' | 'commandComplete' | 'dataRow' | 'copyInResponse' | 'copyOutResponse' | 'authenticationOk' | 'authenticationMD5Password' | 'authenticationCleartextPassword' | 'authenticationSASL' | 'authenticationSASLContinue' | 'authenticationSASLFinal' | 'error' | 'notice';
1090
1128
  type BackendMessage = {
1091
1129
  name: MessageName;
@@ -1280,7 +1318,8 @@ interface PGliteOptions<TExtensions extends Extensions = Extensions> {
1280
1318
  extensions?: TExtensions;
1281
1319
  loadDataDir?: Blob | File;
1282
1320
  initialMemory?: number;
1283
- wasmModule?: WebAssembly.Module;
1321
+ pgliteWasmModule?: WebAssembly.Module;
1322
+ initdbWasmModule?: WebAssembly.Module;
1284
1323
  fsBundle?: Blob | File;
1285
1324
  parsers?: ParserOptions;
1286
1325
  serializers?: SerializerOptions;
@@ -5949,7 +5988,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
5949
5988
  //#endregion
5950
5989
  //#region ../../src/orm/core/providers/DrizzleKitProvider.d.ts
5951
5990
  declare class DrizzleKitProvider {
5952
- protected readonly log: alepha_logger0.Logger;
5991
+ protected readonly log: _$alepha_logger0.Logger;
5953
5992
  protected readonly dateTime: DateTimeProvider;
5954
5993
  protected readonly alepha: Alepha;
5955
5994
  /**
@@ -6052,7 +6091,7 @@ type SQLLike = SQLWrapper | string;
6052
6091
  declare abstract class DatabaseProvider {
6053
6092
  protected readonly alepha: Alepha;
6054
6093
  protected readonly dateTime: DateTimeProvider;
6055
- protected readonly log: alepha_logger0.Logger;
6094
+ protected readonly log: _$alepha_logger0.Logger;
6056
6095
  protected abstract readonly builder: ModelBuilder;
6057
6096
  protected readonly kit: DrizzleKitProvider;
6058
6097
  abstract readonly db: PgDatabase<any>;
@@ -6210,7 +6249,7 @@ declare class QueryManager {
6210
6249
  createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
6211
6250
  column: string;
6212
6251
  direction: "asc" | "desc";
6213
- }>): alepha.Page<T>;
6252
+ }>): _$alepha.Page<T>;
6214
6253
  }
6215
6254
  interface PgJoin {
6216
6255
  table: string;
@@ -6244,7 +6283,7 @@ declare class PgRelationManager {
6244
6283
  declare abstract class Repository$1<T extends TObject> {
6245
6284
  readonly entity: EntityPrimitive<T>;
6246
6285
  readonly provider: DatabaseProvider;
6247
- protected readonly log: alepha_logger0.Logger;
6286
+ protected readonly log: _$alepha_logger0.Logger;
6248
6287
  protected readonly relationManager: PgRelationManager;
6249
6288
  protected readonly queryManager: QueryManager;
6250
6289
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -6322,15 +6361,15 @@ declare abstract class Repository$1<T extends TObject> {
6322
6361
  /**
6323
6362
  * Start a SELECT query on the table.
6324
6363
  */
6325
- protected rawSelect(opts?: StatementOptions): drizzle_orm_pg_core0.PgSelectBase<string, Record<string, PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
6364
+ protected rawSelect(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgSelectBase<string, Record<string, PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
6326
6365
  [x: string]: unknown;
6327
6366
  }[], {
6328
- [x: string]: PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>;
6367
+ [x: string]: PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>;
6329
6368
  }>;
6330
6369
  /**
6331
6370
  * Start a SELECT DISTINCT query on the table.
6332
6371
  */
6333
- protected rawSelectDistinct(opts?: StatementOptions, columns?: (keyof Static<T>)[]): drizzle_orm_pg_core0.PgSelectBase<string, Record<string, any>, "partial", Record<string, "not-null">, false, never, {
6372
+ protected rawSelectDistinct(opts?: StatementOptions, columns?: (keyof Static<T>)[]): _$drizzle_orm_pg_core0.PgSelectBase<string, Record<string, any>, "partial", Record<string, "not-null">, false, never, {
6334
6373
  [x: string]: any;
6335
6374
  }[], {
6336
6375
  [x: string]: any;
@@ -6338,15 +6377,15 @@ declare abstract class Repository$1<T extends TObject> {
6338
6377
  /**
6339
6378
  * Start an INSERT query on the table.
6340
6379
  */
6341
- protected rawInsert(opts?: StatementOptions): drizzle_orm_pg_core0.PgInsertBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any, false>;
6380
+ protected rawInsert(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgInsertBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any, false>;
6342
6381
  /**
6343
6382
  * Start an UPDATE query on the table.
6344
6383
  */
6345
- protected rawUpdate(opts?: StatementOptions): drizzle_orm_pg_core0.PgUpdateBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any>;
6384
+ protected rawUpdate(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgUpdateBuilder<PgTableWithColumns<SchemaToTableConfig<T>>, any>;
6346
6385
  /**
6347
6386
  * Start a DELETE query on the table.
6348
6387
  */
6349
- protected rawDelete(opts?: StatementOptions): drizzle_orm_pg_core0.PgDeleteBase<PgTableWithColumns<SchemaToTableConfig<T>>, any, undefined, undefined, false, never>;
6388
+ protected rawDelete(opts?: StatementOptions): _$drizzle_orm_pg_core0.PgDeleteBase<PgTableWithColumns<SchemaToTableConfig<T>>, any, undefined, undefined, false, never>;
6350
6389
  /**
6351
6390
  * Create a Drizzle `select` query based on a JSON query object.
6352
6391
  *
@@ -6535,6 +6574,9 @@ declare abstract class Repository$1<T extends TObject> {
6535
6574
  force?: boolean;
6536
6575
  }): PgQueryWhereOrSQL<T>;
6537
6576
  protected deletedAt(): PgAttrField | undefined;
6577
+ protected withOrganization(where: PgQueryWhereOrSQL<T>): PgQueryWhereOrSQL<T>;
6578
+ protected stampOrganization(data: any): void;
6579
+ protected organizationField(): PgAttrField | undefined;
6538
6580
  /**
6539
6581
  * Convert something to valid Pg Insert Value.
6540
6582
  */
@@ -6575,7 +6617,7 @@ declare abstract class Repository$1<T extends TObject> {
6575
6617
  */
6576
6618
  protected getPrimaryKey(schema: TObject): {
6577
6619
  key: string;
6578
- col: PgColumn<drizzle_orm0.ColumnBaseConfig<drizzle_orm0.ColumnDataType, string>, {}, {}>;
6620
+ col: PgColumn<_$drizzle_orm0.ColumnBaseConfig<_$drizzle_orm0.ColumnDataType, string>, {}, {}>;
6579
6621
  type: TSchema;
6580
6622
  };
6581
6623
  }
@@ -6644,8 +6686,8 @@ type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
6644
6686
  * - `d1://BINDING_NAME` — Cloudflare D1
6645
6687
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
6646
6688
  */
6647
- declare const databaseEnvSchema: alepha.TObject<{
6648
- DATABASE_URL: alepha.TOptional<alepha.TString>;
6689
+ declare const databaseEnvSchema: _$alepha.TObject<{
6690
+ DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
6649
6691
  /**
6650
6692
  * Enable or disable push-based schema synchronization (drizzle-kit push).
6651
6693
  *
@@ -6653,7 +6695,7 @@ declare const databaseEnvSchema: alepha.TObject<{
6653
6695
  * Set to `false` in development to skip automatic schema sync
6654
6696
  * (e.g. when managing migrations manually).
6655
6697
  */
6656
- DATABASE_SYNC: alepha.TOptional<alepha.TBoolean>;
6698
+ DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
6657
6699
  }>;
6658
6700
  declare module "alepha" {
6659
6701
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
@@ -6679,26 +6721,26 @@ declare class UserAudits {
6679
6721
  userEmail?: string | undefined;
6680
6722
  resourceType?: string | undefined;
6681
6723
  resourceId?: string | undefined;
6682
- metadata?: typebox.StaticRecord<[], "Decode", {}, {
6683
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6684
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6685
- type: alepha.TString;
6686
- action: alepha.TString;
6687
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6688
- userId: alepha.TOptional<alepha.TString>;
6689
- userRealm: alepha.TOptional<alepha.TString>;
6690
- userEmail: alepha.TOptional<alepha.TString>;
6691
- resourceType: alepha.TOptional<alepha.TString>;
6692
- resourceId: alepha.TOptional<alepha.TString>;
6693
- description: alepha.TOptional<alepha.TString>;
6694
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
6695
- ipAddress: alepha.TOptional<alepha.TString>;
6696
- userAgent: alepha.TOptional<alepha.TString>;
6697
- sessionId: alepha.TOptional<alepha.TString>;
6698
- requestId: alepha.TOptional<alepha.TString>;
6699
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
6700
- errorMessage: alepha.TOptional<alepha.TString>;
6701
- }, string, alepha.TAny> | undefined;
6724
+ metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
6725
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6726
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6727
+ type: _$alepha.TString;
6728
+ action: _$alepha.TString;
6729
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6730
+ userId: _$alepha.TOptional<_$alepha.TString>;
6731
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
6732
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
6733
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
6734
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
6735
+ description: _$alepha.TOptional<_$alepha.TString>;
6736
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6737
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
6738
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
6739
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
6740
+ requestId: _$alepha.TOptional<_$alepha.TString>;
6741
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
6742
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
6743
+ }, string, _$alepha.TAny> | undefined;
6702
6744
  ipAddress?: string | undefined;
6703
6745
  userAgent?: string | undefined;
6704
6746
  sessionId?: string | undefined;
@@ -6721,26 +6763,26 @@ declare class UserAudits {
6721
6763
  userEmail?: string | undefined;
6722
6764
  resourceType?: string | undefined;
6723
6765
  resourceId?: string | undefined;
6724
- metadata?: typebox.StaticRecord<[], "Decode", {}, {
6725
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6726
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6727
- type: alepha.TString;
6728
- action: alepha.TString;
6729
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6730
- userId: alepha.TOptional<alepha.TString>;
6731
- userRealm: alepha.TOptional<alepha.TString>;
6732
- userEmail: alepha.TOptional<alepha.TString>;
6733
- resourceType: alepha.TOptional<alepha.TString>;
6734
- resourceId: alepha.TOptional<alepha.TString>;
6735
- description: alepha.TOptional<alepha.TString>;
6736
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
6737
- ipAddress: alepha.TOptional<alepha.TString>;
6738
- userAgent: alepha.TOptional<alepha.TString>;
6739
- sessionId: alepha.TOptional<alepha.TString>;
6740
- requestId: alepha.TOptional<alepha.TString>;
6741
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
6742
- errorMessage: alepha.TOptional<alepha.TString>;
6743
- }, string, alepha.TAny> | undefined;
6766
+ metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
6767
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6768
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6769
+ type: _$alepha.TString;
6770
+ action: _$alepha.TString;
6771
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6772
+ userId: _$alepha.TOptional<_$alepha.TString>;
6773
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
6774
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
6775
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
6776
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
6777
+ description: _$alepha.TOptional<_$alepha.TString>;
6778
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6779
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
6780
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
6781
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
6782
+ requestId: _$alepha.TOptional<_$alepha.TString>;
6783
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
6784
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
6785
+ }, string, _$alepha.TAny> | undefined;
6744
6786
  ipAddress?: string | undefined;
6745
6787
  userAgent?: string | undefined;
6746
6788
  sessionId?: string | undefined;
@@ -6763,26 +6805,26 @@ declare class UserAudits {
6763
6805
  userEmail?: string | undefined;
6764
6806
  resourceType?: string | undefined;
6765
6807
  resourceId?: string | undefined;
6766
- metadata?: typebox.StaticRecord<[], "Decode", {}, {
6767
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6768
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6769
- type: alepha.TString;
6770
- action: alepha.TString;
6771
- severity: PgAttr<alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6772
- userId: alepha.TOptional<alepha.TString>;
6773
- userRealm: alepha.TOptional<alepha.TString>;
6774
- userEmail: alepha.TOptional<alepha.TString>;
6775
- resourceType: alepha.TOptional<alepha.TString>;
6776
- resourceId: alepha.TOptional<alepha.TString>;
6777
- description: alepha.TOptional<alepha.TString>;
6778
- metadata: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
6779
- ipAddress: alepha.TOptional<alepha.TString>;
6780
- userAgent: alepha.TOptional<alepha.TString>;
6781
- sessionId: alepha.TOptional<alepha.TString>;
6782
- requestId: alepha.TOptional<alepha.TString>;
6783
- success: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
6784
- errorMessage: alepha.TOptional<alepha.TString>;
6785
- }, string, alepha.TAny> | undefined;
6808
+ metadata?: _$typebox.StaticRecord<[], "Decode", {}, {
6809
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
6810
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
6811
+ type: _$alepha.TString;
6812
+ action: _$alepha.TString;
6813
+ severity: PgAttr<_$alepha.TUnsafe<"info" | "warning" | "critical">, typeof PG_DEFAULT>;
6814
+ userId: _$alepha.TOptional<_$alepha.TString>;
6815
+ userRealm: _$alepha.TOptional<_$alepha.TString>;
6816
+ userEmail: _$alepha.TOptional<_$alepha.TString>;
6817
+ resourceType: _$alepha.TOptional<_$alepha.TString>;
6818
+ resourceId: _$alepha.TOptional<_$alepha.TString>;
6819
+ description: _$alepha.TOptional<_$alepha.TString>;
6820
+ metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6821
+ ipAddress: _$alepha.TOptional<_$alepha.TString>;
6822
+ userAgent: _$alepha.TOptional<_$alepha.TString>;
6823
+ sessionId: _$alepha.TOptional<_$alepha.TString>;
6824
+ requestId: _$alepha.TOptional<_$alepha.TString>;
6825
+ success: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
6826
+ errorMessage: _$alepha.TOptional<_$alepha.TString>;
6827
+ }, string, _$alepha.TAny> | undefined;
6786
6828
  ipAddress?: string | undefined;
6787
6829
  userAgent?: string | undefined;
6788
6830
  sessionId?: string | undefined;
@@ -6810,58 +6852,59 @@ declare class UserBuckets {
6810
6852
  /**
6811
6853
  * Bucket for user avatar storage.
6812
6854
  */
6813
- readonly avatars: alepha_bucket0.BucketPrimitive;
6855
+ readonly avatars: _$alepha_bucket0.BucketPrimitive;
6814
6856
  }
6815
6857
  //#endregion
6816
6858
  //#region ../../src/api/users/entities/identities.d.ts
6817
- declare const identities: alepha_orm0.EntityPrimitive<alepha.TObject<{
6818
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
6819
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
6820
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6821
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6822
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
6823
- password: alepha.TOptional<alepha.TString>;
6824
- provider: alepha.TString;
6825
- providerUserId: alepha.TOptional<alepha.TString>;
6826
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
6859
+ declare const identities: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6860
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6861
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6862
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6863
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6864
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6865
+ password: _$alepha.TOptional<_$alepha.TString>;
6866
+ provider: _$alepha.TString;
6867
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
6868
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6827
6869
  }>>;
6828
6870
  type IdentityEntity = Static<typeof identities.schema>;
6829
6871
  //#endregion
6830
6872
  //#region ../../src/api/users/entities/sessions.d.ts
6831
- declare const sessions: alepha_orm0.EntityPrimitive<alepha.TObject<{
6832
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
6833
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
6834
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6835
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6836
- refreshToken: alepha.TString;
6837
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
6838
- expiresAt: alepha.TString;
6839
- ip: alepha.TOptional<alepha.TString>;
6840
- userAgent: alepha.TOptional<alepha.TObject<{
6841
- os: alepha.TString;
6842
- browser: alepha.TString;
6843
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6873
+ declare const sessions: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6874
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6875
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6876
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6877
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6878
+ refreshToken: _$alepha.TString;
6879
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6880
+ expiresAt: _$alepha.TString;
6881
+ ip: _$alepha.TOptional<_$alepha.TString>;
6882
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
6883
+ os: _$alepha.TString;
6884
+ browser: _$alepha.TString;
6885
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6844
6886
  }>>;
6845
6887
  }>>;
6846
6888
  type SessionEntity = Static<typeof sessions.schema>;
6847
6889
  //#endregion
6848
6890
  //#region ../../src/api/users/entities/users.d.ts
6849
6891
  declare const DEFAULT_USER_REALM_NAME = "default";
6850
- declare const users: alepha_orm0.EntityPrimitive<alepha.TObject<{
6851
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
6852
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
6853
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6854
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6855
- realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
6856
- username: alepha.TOptional<alepha.TString>;
6857
- email: alepha.TOptional<alepha.TString>;
6858
- phoneNumber: alepha.TOptional<alepha.TString>;
6859
- roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
6860
- firstName: alepha.TOptional<alepha.TString>;
6861
- lastName: alepha.TOptional<alepha.TString>;
6862
- picture: alepha.TOptional<alepha.TString>;
6863
- enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
6864
- emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
6892
+ declare const users: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6893
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6894
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6895
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6896
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6897
+ realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
6898
+ username: _$alepha.TOptional<_$alepha.TString>;
6899
+ email: _$alepha.TOptional<_$alepha.TString>;
6900
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
6901
+ roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
6902
+ firstName: _$alepha.TOptional<_$alepha.TString>;
6903
+ lastName: _$alepha.TOptional<_$alepha.TString>;
6904
+ picture: _$alepha.TOptional<_$alepha.TString>;
6905
+ enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6906
+ emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6907
+ organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
6865
6908
  }>>;
6866
6909
  type UserEntity = Static<typeof users.schema>;
6867
6910
  //#endregion
@@ -6883,11 +6926,13 @@ type RealmPrimitive = IssuerPrimitive & WithLinkFn & WithLoginFn;
6883
6926
  declare const $realm: (options?: RealmOptions) => RealmPrimitive;
6884
6927
  interface RealmFeatures {
6885
6928
  /**
6886
- * Enable session purge functionality for cleaning up expired sessions.
6929
+ * Will enable Job module.
6930
+ *
6931
+ * - Enable session purge functionality for cleaning up expired sessions.
6887
6932
  *
6888
6933
  * @default false
6889
6934
  */
6890
- sessionPurge?: boolean;
6935
+ jobs?: boolean;
6891
6936
  /**
6892
6937
  * Enable notification system for password reset, verification emails, etc.
6893
6938
  *
@@ -6977,50 +7022,53 @@ interface Realm {
6977
7022
  repositories: RealmRepositories;
6978
7023
  settings: RealmAuthSettings;
6979
7024
  features: RealmFeatures;
7025
+ settingsParameter?: ParameterPrimitive<typeof realmAuthSettingsAtom.schema>;
7026
+ getSettings(): Promise<RealmAuthSettings>;
6980
7027
  }
6981
7028
  declare class RealmProvider {
6982
7029
  protected readonly alepha: Alepha;
6983
- protected readonly defaultIdentities: Repository<alepha.TObject<{
6984
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
6985
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
6986
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6987
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6988
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
6989
- password: alepha.TOptional<alepha.TString>;
6990
- provider: alepha.TString;
6991
- providerUserId: alepha.TOptional<alepha.TString>;
6992
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
7030
+ protected readonly defaultIdentities: Repository<_$alepha.TObject<{
7031
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7032
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7033
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7034
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7035
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7036
+ password: _$alepha.TOptional<_$alepha.TString>;
7037
+ provider: _$alepha.TString;
7038
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
7039
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6993
7040
  }>>;
6994
- protected readonly defaultSessions: Repository<alepha.TObject<{
6995
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
6996
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
6997
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6998
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
6999
- refreshToken: alepha.TString;
7000
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
7001
- expiresAt: alepha.TString;
7002
- ip: alepha.TOptional<alepha.TString>;
7003
- userAgent: alepha.TOptional<alepha.TObject<{
7004
- os: alepha.TString;
7005
- browser: alepha.TString;
7006
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7041
+ protected readonly defaultSessions: Repository<_$alepha.TObject<{
7042
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7043
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7044
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7045
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7046
+ refreshToken: _$alepha.TString;
7047
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7048
+ expiresAt: _$alepha.TString;
7049
+ ip: _$alepha.TOptional<_$alepha.TString>;
7050
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
7051
+ os: _$alepha.TString;
7052
+ browser: _$alepha.TString;
7053
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7007
7054
  }>>;
7008
7055
  }>>;
7009
- protected readonly defaultUsers: Repository<alepha.TObject<{
7010
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
7011
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
7012
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7013
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7014
- realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
7015
- username: alepha.TOptional<alepha.TString>;
7016
- email: alepha.TOptional<alepha.TString>;
7017
- phoneNumber: alepha.TOptional<alepha.TString>;
7018
- roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
7019
- firstName: alepha.TOptional<alepha.TString>;
7020
- lastName: alepha.TOptional<alepha.TString>;
7021
- picture: alepha.TOptional<alepha.TString>;
7022
- enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
7023
- emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
7056
+ protected readonly defaultUsers: Repository<_$alepha.TObject<{
7057
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7058
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7059
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7060
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7061
+ realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
7062
+ username: _$alepha.TOptional<_$alepha.TString>;
7063
+ email: _$alepha.TOptional<_$alepha.TString>;
7064
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7065
+ roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
7066
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7067
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7068
+ picture: _$alepha.TOptional<_$alepha.TString>;
7069
+ enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7070
+ emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7071
+ organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
7024
7072
  }>>;
7025
7073
  protected realms: Map<string, Realm>;
7026
7074
  register(realmName: string, realmOptions?: RealmOptions): Realm;
@@ -7034,31 +7082,31 @@ declare class RealmProvider {
7034
7082
  }
7035
7083
  //#endregion
7036
7084
  //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
7037
- declare const identityQuerySchema: alepha.TObject<{
7038
- page: alepha.TOptional<alepha.TInteger>;
7039
- size: alepha.TOptional<alepha.TInteger>;
7040
- sort: alepha.TOptional<alepha.TString>;
7041
- userId: alepha.TOptional<alepha.TString>;
7042
- provider: alepha.TOptional<alepha.TString>;
7085
+ declare const identityQuerySchema: _$alepha.TObject<{
7086
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7087
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7088
+ sort: _$alepha.TOptional<_$alepha.TString>;
7089
+ userId: _$alepha.TOptional<_$alepha.TString>;
7090
+ provider: _$alepha.TOptional<_$alepha.TString>;
7043
7091
  }>;
7044
7092
  type IdentityQuery = Static<typeof identityQuerySchema>;
7045
7093
  //#endregion
7046
7094
  //#region ../../src/api/users/services/IdentityService.d.ts
7047
7095
  declare class IdentityService {
7048
7096
  protected readonly alepha: Alepha;
7049
- protected readonly log: alepha_logger0.Logger;
7097
+ protected readonly log: _$alepha_logger0.Logger;
7050
7098
  protected readonly realmProvider: RealmProvider;
7051
7099
  protected userAudits(realmName?: string): UserAudits | undefined;
7052
- identities(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
7053
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
7054
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
7055
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7056
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7057
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
7058
- password: alepha.TOptional<alepha.TString>;
7059
- provider: alepha.TString;
7060
- providerUserId: alepha.TOptional<alepha.TString>;
7061
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
7100
+ identities(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7101
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7102
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7103
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7104
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7105
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7106
+ password: _$alepha.TOptional<_$alepha.TString>;
7107
+ provider: _$alepha.TString;
7108
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
7109
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7062
7110
  }>>;
7063
7111
  /**
7064
7112
  * Find identities with pagination and filtering.
@@ -7082,91 +7130,91 @@ declare class AdminIdentityController {
7082
7130
  /**
7083
7131
  * Find identities with pagination and filtering.
7084
7132
  */
7085
- readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
7086
- query: alepha.TObject<{
7087
- page: alepha.TOptional<alepha.TInteger>;
7088
- size: alepha.TOptional<alepha.TInteger>;
7089
- sort: alepha.TOptional<alepha.TString>;
7090
- userId: alepha.TOptional<alepha.TString>;
7091
- provider: alepha.TOptional<alepha.TString>;
7092
- userRealmName: alepha.TOptional<alepha.TString>;
7093
- }>;
7094
- response: alepha.TPage<alepha.TObject<{
7095
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7096
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7097
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7098
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7099
- userId: PgAttr<alepha.TString, typeof PG_REF>;
7100
- provider: alepha.TString;
7101
- providerUserId: alepha.TOptional<alepha.TString>;
7102
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
7133
+ readonly findIdentities: _$alepha_server0.ActionPrimitiveFn<{
7134
+ query: _$alepha.TObject<{
7135
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7136
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7137
+ sort: _$alepha.TOptional<_$alepha.TString>;
7138
+ userId: _$alepha.TOptional<_$alepha.TString>;
7139
+ provider: _$alepha.TOptional<_$alepha.TString>;
7140
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7141
+ }>;
7142
+ response: _$alepha.TPage<_$alepha.TObject<{
7143
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7144
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7145
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7146
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7147
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7148
+ provider: _$alepha.TString;
7149
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
7150
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7103
7151
  }>>;
7104
7152
  }>;
7105
7153
  /**
7106
7154
  * Get an identity by ID.
7107
7155
  */
7108
- readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
7109
- params: alepha.TObject<{
7110
- id: alepha.TString;
7156
+ readonly getIdentity: _$alepha_server0.ActionPrimitiveFn<{
7157
+ params: _$alepha.TObject<{
7158
+ id: _$alepha.TString;
7111
7159
  }>;
7112
- query: alepha.TObject<{
7113
- userRealmName: alepha.TOptional<alepha.TString>;
7160
+ query: _$alepha.TObject<{
7161
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7114
7162
  }>;
7115
- response: alepha.TObject<{
7116
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7117
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7118
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7119
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7120
- userId: PgAttr<alepha.TString, typeof PG_REF>;
7121
- provider: alepha.TString;
7122
- providerUserId: alepha.TOptional<alepha.TString>;
7123
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
7163
+ response: _$alepha.TObject<{
7164
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7165
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7166
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7167
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7168
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7169
+ provider: _$alepha.TString;
7170
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
7171
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7124
7172
  }>;
7125
7173
  }>;
7126
7174
  /**
7127
7175
  * Delete an identity.
7128
7176
  */
7129
- readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
7130
- params: alepha.TObject<{
7131
- id: alepha.TString;
7177
+ readonly deleteIdentity: _$alepha_server0.ActionPrimitiveFn<{
7178
+ params: _$alepha.TObject<{
7179
+ id: _$alepha.TString;
7132
7180
  }>;
7133
- query: alepha.TObject<{
7134
- userRealmName: alepha.TOptional<alepha.TString>;
7181
+ query: _$alepha.TObject<{
7182
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7135
7183
  }>;
7136
- response: alepha.TObject<{
7137
- ok: alepha.TBoolean;
7138
- id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
7139
- count: alepha.TOptional<alepha.TNumber>;
7184
+ response: _$alepha.TObject<{
7185
+ ok: _$alepha.TBoolean;
7186
+ id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7187
+ count: _$alepha.TOptional<_$alepha.TNumber>;
7140
7188
  }>;
7141
7189
  }>;
7142
7190
  }
7143
7191
  //#endregion
7144
7192
  //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
7145
- declare const sessionQuerySchema: alepha.TObject<{
7146
- page: alepha.TOptional<alepha.TInteger>;
7147
- size: alepha.TOptional<alepha.TInteger>;
7148
- sort: alepha.TOptional<alepha.TString>;
7149
- userId: alepha.TOptional<alepha.TString>;
7193
+ declare const sessionQuerySchema: _$alepha.TObject<{
7194
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7195
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7196
+ sort: _$alepha.TOptional<_$alepha.TString>;
7197
+ userId: _$alepha.TOptional<_$alepha.TString>;
7150
7198
  }>;
7151
7199
  type SessionQuery = Static<typeof sessionQuerySchema>;
7152
7200
  //#endregion
7153
7201
  //#region ../../src/api/users/services/SessionCrudService.d.ts
7154
7202
  declare class SessionCrudService {
7155
- protected readonly log: alepha_logger0.Logger;
7203
+ protected readonly log: _$alepha_logger0.Logger;
7156
7204
  protected readonly realmProvider: RealmProvider;
7157
- sessions(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
7158
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
7159
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
7160
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7161
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7162
- refreshToken: alepha.TString;
7163
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
7164
- expiresAt: alepha.TString;
7165
- ip: alepha.TOptional<alepha.TString>;
7166
- userAgent: alepha.TOptional<alepha.TObject<{
7167
- os: alepha.TString;
7168
- browser: alepha.TString;
7169
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7205
+ sessions(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7206
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7207
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7208
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7209
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7210
+ refreshToken: _$alepha.TString;
7211
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7212
+ expiresAt: _$alepha.TString;
7213
+ ip: _$alepha.TOptional<_$alepha.TString>;
7214
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
7215
+ os: _$alepha.TString;
7216
+ browser: _$alepha.TString;
7217
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7170
7218
  }>>;
7171
7219
  }>>;
7172
7220
  /**
@@ -7191,170 +7239,173 @@ declare class AdminSessionController {
7191
7239
  /**
7192
7240
  * Find sessions with pagination and filtering.
7193
7241
  */
7194
- readonly findSessions: alepha_server0.ActionPrimitiveFn<{
7195
- query: alepha.TObject<{
7196
- page: alepha.TOptional<alepha.TInteger>;
7197
- size: alepha.TOptional<alepha.TInteger>;
7198
- sort: alepha.TOptional<alepha.TString>;
7199
- userId: alepha.TOptional<alepha.TString>;
7200
- userRealmName: alepha.TOptional<alepha.TString>;
7201
- }>;
7202
- response: alepha.TPage<alepha.TObject<{
7203
- id: alepha.TString;
7204
- version: alepha.TNumber;
7205
- createdAt: alepha.TString;
7206
- updatedAt: alepha.TString;
7207
- refreshToken: alepha.TString;
7208
- userId: alepha.TString;
7209
- expiresAt: alepha.TString;
7210
- ip: alepha.TOptional<alepha.TString>;
7211
- userAgent: alepha.TOptional<alepha.TObject<{
7212
- os: alepha.TString;
7213
- browser: alepha.TString;
7214
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7242
+ readonly findSessions: _$alepha_server0.ActionPrimitiveFn<{
7243
+ query: _$alepha.TObject<{
7244
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7245
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7246
+ sort: _$alepha.TOptional<_$alepha.TString>;
7247
+ userId: _$alepha.TOptional<_$alepha.TString>;
7248
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7249
+ }>;
7250
+ response: _$alepha.TPage<_$alepha.TObject<{
7251
+ id: _$alepha.TString;
7252
+ version: _$alepha.TNumber;
7253
+ createdAt: _$alepha.TString;
7254
+ updatedAt: _$alepha.TString;
7255
+ refreshToken: _$alepha.TString;
7256
+ userId: _$alepha.TString;
7257
+ expiresAt: _$alepha.TString;
7258
+ ip: _$alepha.TOptional<_$alepha.TString>;
7259
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
7260
+ os: _$alepha.TString;
7261
+ browser: _$alepha.TString;
7262
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7215
7263
  }>>;
7216
7264
  }>>;
7217
7265
  }>;
7218
7266
  /**
7219
7267
  * Get a session by ID.
7220
7268
  */
7221
- readonly getSession: alepha_server0.ActionPrimitiveFn<{
7222
- params: alepha.TObject<{
7223
- id: alepha.TString;
7224
- }>;
7225
- query: alepha.TObject<{
7226
- userRealmName: alepha.TOptional<alepha.TString>;
7227
- }>;
7228
- response: alepha.TObject<{
7229
- id: alepha.TString;
7230
- version: alepha.TNumber;
7231
- createdAt: alepha.TString;
7232
- updatedAt: alepha.TString;
7233
- refreshToken: alepha.TString;
7234
- userId: alepha.TString;
7235
- expiresAt: alepha.TString;
7236
- ip: alepha.TOptional<alepha.TString>;
7237
- userAgent: alepha.TOptional<alepha.TObject<{
7238
- os: alepha.TString;
7239
- browser: alepha.TString;
7240
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7269
+ readonly getSession: _$alepha_server0.ActionPrimitiveFn<{
7270
+ params: _$alepha.TObject<{
7271
+ id: _$alepha.TString;
7272
+ }>;
7273
+ query: _$alepha.TObject<{
7274
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7275
+ }>;
7276
+ response: _$alepha.TObject<{
7277
+ id: _$alepha.TString;
7278
+ version: _$alepha.TNumber;
7279
+ createdAt: _$alepha.TString;
7280
+ updatedAt: _$alepha.TString;
7281
+ refreshToken: _$alepha.TString;
7282
+ userId: _$alepha.TString;
7283
+ expiresAt: _$alepha.TString;
7284
+ ip: _$alepha.TOptional<_$alepha.TString>;
7285
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
7286
+ os: _$alepha.TString;
7287
+ browser: _$alepha.TString;
7288
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7241
7289
  }>>;
7242
7290
  }>;
7243
7291
  }>;
7244
7292
  /**
7245
7293
  * Delete a session.
7246
7294
  */
7247
- readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
7248
- params: alepha.TObject<{
7249
- id: alepha.TString;
7295
+ readonly deleteSession: _$alepha_server0.ActionPrimitiveFn<{
7296
+ params: _$alepha.TObject<{
7297
+ id: _$alepha.TString;
7250
7298
  }>;
7251
- query: alepha.TObject<{
7252
- userRealmName: alepha.TOptional<alepha.TString>;
7299
+ query: _$alepha.TObject<{
7300
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7253
7301
  }>;
7254
- response: alepha.TObject<{
7255
- ok: alepha.TBoolean;
7256
- id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
7257
- count: alepha.TOptional<alepha.TNumber>;
7302
+ response: _$alepha.TObject<{
7303
+ ok: _$alepha.TBoolean;
7304
+ id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7305
+ count: _$alepha.TOptional<_$alepha.TNumber>;
7258
7306
  }>;
7259
7307
  }>;
7260
7308
  }
7261
7309
  //#endregion
7262
7310
  //#region ../../src/api/users/notifications/UserNotifications.d.ts
7263
7311
  declare class UserNotifications {
7264
- readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
7265
- email: alepha.TString;
7266
- code: alepha.TString;
7267
- expiresInMinutes: alepha.TNumber;
7312
+ readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7313
+ email: _$alepha.TString;
7314
+ code: _$alepha.TString;
7315
+ expiresInMinutes: _$alepha.TNumber;
7268
7316
  }>>;
7269
- readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
7270
- email: alepha.TString;
7271
- code: alepha.TString;
7272
- expiresInMinutes: alepha.TNumber;
7317
+ readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7318
+ email: _$alepha.TString;
7319
+ code: _$alepha.TString;
7320
+ expiresInMinutes: _$alepha.TNumber;
7273
7321
  }>>;
7274
- readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
7275
- phoneNumber: alepha.TString;
7276
- code: alepha.TString;
7277
- expiresInMinutes: alepha.TNumber;
7322
+ readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7323
+ phoneNumber: _$alepha.TString;
7324
+ code: _$alepha.TString;
7325
+ expiresInMinutes: _$alepha.TNumber;
7278
7326
  }>>;
7279
- readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
7280
- email: alepha.TString;
7281
- resetUrl: alepha.TString;
7282
- expiresInMinutes: alepha.TNumber;
7327
+ readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7328
+ email: _$alepha.TString;
7329
+ resetUrl: _$alepha.TString;
7330
+ expiresInMinutes: _$alepha.TNumber;
7283
7331
  }>>;
7284
- readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha.TObject<{
7285
- email: alepha.TString;
7286
- verifyUrl: alepha.TString;
7287
- expiresInMinutes: alepha.TNumber;
7332
+ readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7333
+ email: _$alepha.TString;
7334
+ verifyUrl: _$alepha.TString;
7335
+ expiresInMinutes: _$alepha.TNumber;
7288
7336
  }>>;
7289
7337
  }
7290
7338
  //#endregion
7291
7339
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
7292
- declare const createUserSchema: alepha.TObject<{
7293
- enabled: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7294
- email: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7295
- phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7296
- id: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7297
- version: alepha.TOptional<PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7298
- createdAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7299
- updatedAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7300
- username: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7301
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7302
- firstName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7303
- lastName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7304
- picture: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7305
- emailVerified: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7340
+ declare const createUserSchema: _$alepha.TObject<{
7341
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7342
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7343
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7344
+ id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7345
+ version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7346
+ createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7347
+ updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7348
+ username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7349
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7350
+ firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7351
+ lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7352
+ picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7353
+ emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7354
+ organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7306
7355
  }>;
7307
7356
  type CreateUser = Static<typeof createUserSchema>;
7308
7357
  //#endregion
7309
7358
  //#region ../../src/api/users/schemas/updateUserSchema.d.ts
7310
- declare const updateUserSchema: alepha.TObject<{
7311
- enabled: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7312
- email: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7313
- phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7314
- realm: alepha.TOptional<PgAttr<alepha.TString, typeof PG_DEFAULT>>;
7315
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7316
- firstName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7317
- lastName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7318
- picture: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7359
+ declare const updateUserSchema: _$alepha.TObject<{
7360
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7361
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7362
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7363
+ realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7364
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7365
+ firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7366
+ lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7367
+ picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7368
+ organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7319
7369
  }>;
7320
7370
  type UpdateUser = Static<typeof updateUserSchema>;
7321
7371
  //#endregion
7322
7372
  //#region ../../src/api/users/schemas/userQuerySchema.d.ts
7323
- declare const userQuerySchema: alepha.TObject<{
7324
- page: alepha.TOptional<alepha.TInteger>;
7325
- size: alepha.TOptional<alepha.TInteger>;
7326
- sort: alepha.TOptional<alepha.TString>;
7327
- email: alepha.TOptional<alepha.TString>;
7328
- enabled: alepha.TOptional<alepha.TBoolean>;
7329
- emailVerified: alepha.TOptional<alepha.TBoolean>;
7330
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7331
- query: alepha.TOptional<alepha.TString>;
7373
+ declare const userQuerySchema: _$alepha.TObject<{
7374
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7375
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7376
+ sort: _$alepha.TOptional<_$alepha.TString>;
7377
+ email: _$alepha.TOptional<_$alepha.TString>;
7378
+ enabled: _$alepha.TOptional<_$alepha.TBoolean>;
7379
+ emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
7380
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7381
+ query: _$alepha.TOptional<_$alepha.TString>;
7332
7382
  }>;
7333
7383
  type UserQuery = Static<typeof userQuerySchema>;
7334
7384
  //#endregion
7335
7385
  //#region ../../src/api/users/services/UserService.d.ts
7336
7386
  declare class UserService {
7337
7387
  protected readonly alepha: Alepha;
7338
- protected readonly log: alepha_logger0.Logger;
7339
- protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
7388
+ protected readonly log: _$alepha_logger0.Logger;
7389
+ protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
7340
7390
  protected readonly realmProvider: RealmProvider;
7341
7391
  protected userAudits(realmName?: string): UserAudits | undefined;
7342
7392
  protected userNotifications(realmName?: string): UserNotifications | undefined;
7343
- users(userRealmName?: string): alepha_orm0.Repository<alepha.TObject<{
7344
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
7345
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
7346
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7347
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
7348
- realm: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_DEFAULT>;
7349
- username: alepha.TOptional<alepha.TString>;
7350
- email: alepha.TOptional<alepha.TString>;
7351
- phoneNumber: alepha.TOptional<alepha.TString>;
7352
- roles: alepha_orm0.PgAttr<alepha.TArray<alepha.TString>, typeof alepha_orm0.PG_DEFAULT>;
7353
- firstName: alepha.TOptional<alepha.TString>;
7354
- lastName: alepha.TOptional<alepha.TString>;
7355
- picture: alepha.TOptional<alepha.TString>;
7356
- enabled: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
7357
- emailVerified: alepha_orm0.PgAttr<alepha.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
7393
+ users(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7394
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7395
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7396
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7397
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7398
+ realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
7399
+ username: _$alepha.TOptional<_$alepha.TString>;
7400
+ email: _$alepha.TOptional<_$alepha.TString>;
7401
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7402
+ roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
7403
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7404
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7405
+ picture: _$alepha.TOptional<_$alepha.TString>;
7406
+ enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7407
+ emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7408
+ organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
7358
7409
  }>>;
7359
7410
  /**
7360
7411
  * Request email verification for a user.
@@ -7403,152 +7454,158 @@ declare class AdminUserController {
7403
7454
  /**
7404
7455
  * Find users with pagination and filtering.
7405
7456
  */
7406
- readonly findUsers: alepha_server0.ActionPrimitiveFn<{
7407
- query: alepha.TObject<{
7408
- page: alepha.TOptional<alepha.TInteger>;
7409
- size: alepha.TOptional<alepha.TInteger>;
7410
- sort: alepha.TOptional<alepha.TString>;
7411
- email: alepha.TOptional<alepha.TString>;
7412
- enabled: alepha.TOptional<alepha.TBoolean>;
7413
- emailVerified: alepha.TOptional<alepha.TBoolean>;
7414
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7415
- query: alepha.TOptional<alepha.TString>;
7416
- userRealmName: alepha.TOptional<alepha.TString>;
7417
- }>;
7418
- response: alepha.TPage<alepha.TObject<{
7419
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7420
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7421
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7422
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7423
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7424
- username: alepha.TOptional<alepha.TString>;
7425
- email: alepha.TOptional<alepha.TString>;
7426
- phoneNumber: alepha.TOptional<alepha.TString>;
7427
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7428
- firstName: alepha.TOptional<alepha.TString>;
7429
- lastName: alepha.TOptional<alepha.TString>;
7430
- picture: alepha.TOptional<alepha.TString>;
7431
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7432
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7457
+ readonly findUsers: _$alepha_server0.ActionPrimitiveFn<{
7458
+ query: _$alepha.TObject<{
7459
+ page: _$alepha.TOptional<_$alepha.TInteger>;
7460
+ size: _$alepha.TOptional<_$alepha.TInteger>;
7461
+ sort: _$alepha.TOptional<_$alepha.TString>;
7462
+ email: _$alepha.TOptional<_$alepha.TString>;
7463
+ enabled: _$alepha.TOptional<_$alepha.TBoolean>;
7464
+ emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
7465
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7466
+ query: _$alepha.TOptional<_$alepha.TString>;
7467
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7468
+ }>;
7469
+ response: _$alepha.TPage<_$alepha.TObject<{
7470
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7471
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7472
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7473
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7474
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7475
+ username: _$alepha.TOptional<_$alepha.TString>;
7476
+ email: _$alepha.TOptional<_$alepha.TString>;
7477
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7478
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7479
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7480
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7481
+ picture: _$alepha.TOptional<_$alepha.TString>;
7482
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7483
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7484
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7433
7485
  }>>;
7434
7486
  }>;
7435
7487
  /**
7436
7488
  * Get a user by ID.
7437
7489
  */
7438
- readonly getUser: alepha_server0.ActionPrimitiveFn<{
7439
- params: alepha.TObject<{
7440
- id: alepha.TString;
7441
- }>;
7442
- query: alepha.TObject<{
7443
- userRealmName: alepha.TOptional<alepha.TString>;
7444
- }>;
7445
- response: alepha.TObject<{
7446
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7447
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7448
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7449
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7450
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7451
- username: alepha.TOptional<alepha.TString>;
7452
- email: alepha.TOptional<alepha.TString>;
7453
- phoneNumber: alepha.TOptional<alepha.TString>;
7454
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7455
- firstName: alepha.TOptional<alepha.TString>;
7456
- lastName: alepha.TOptional<alepha.TString>;
7457
- picture: alepha.TOptional<alepha.TString>;
7458
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7459
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7490
+ readonly getUser: _$alepha_server0.ActionPrimitiveFn<{
7491
+ params: _$alepha.TObject<{
7492
+ id: _$alepha.TString;
7493
+ }>;
7494
+ query: _$alepha.TObject<{
7495
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7496
+ }>;
7497
+ response: _$alepha.TObject<{
7498
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7499
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7500
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7501
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7502
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7503
+ username: _$alepha.TOptional<_$alepha.TString>;
7504
+ email: _$alepha.TOptional<_$alepha.TString>;
7505
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7506
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7507
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7508
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7509
+ picture: _$alepha.TOptional<_$alepha.TString>;
7510
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7511
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7512
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7460
7513
  }>;
7461
7514
  }>;
7462
7515
  /**
7463
7516
  * Create a new user.
7464
7517
  */
7465
- readonly createUser: alepha_server0.ActionPrimitiveFn<{
7466
- query: alepha.TObject<{
7467
- userRealmName: alepha.TOptional<alepha.TString>;
7468
- }>;
7469
- body: alepha.TObject<{
7470
- enabled: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7471
- email: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7472
- phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7473
- id: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7474
- version: alepha.TOptional<PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7475
- createdAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7476
- updatedAt: alepha.TOptional<PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7477
- username: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7478
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7479
- firstName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7480
- lastName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7481
- picture: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7482
- emailVerified: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7483
- }>;
7484
- response: alepha.TObject<{
7485
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7486
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7487
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7488
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7489
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7490
- username: alepha.TOptional<alepha.TString>;
7491
- email: alepha.TOptional<alepha.TString>;
7492
- phoneNumber: alepha.TOptional<alepha.TString>;
7493
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7494
- firstName: alepha.TOptional<alepha.TString>;
7495
- lastName: alepha.TOptional<alepha.TString>;
7496
- picture: alepha.TOptional<alepha.TString>;
7497
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7498
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7518
+ readonly createUser: _$alepha_server0.ActionPrimitiveFn<{
7519
+ query: _$alepha.TObject<{
7520
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7521
+ }>;
7522
+ body: _$alepha.TObject<{
7523
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7524
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7525
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7526
+ id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7527
+ version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7528
+ createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7529
+ updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7530
+ username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7531
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7532
+ firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7533
+ lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7534
+ picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7535
+ emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7536
+ organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7537
+ }>;
7538
+ response: _$alepha.TObject<{
7539
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7540
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7541
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7542
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7543
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7544
+ username: _$alepha.TOptional<_$alepha.TString>;
7545
+ email: _$alepha.TOptional<_$alepha.TString>;
7546
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7547
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7548
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7549
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7550
+ picture: _$alepha.TOptional<_$alepha.TString>;
7551
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7552
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7553
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7499
7554
  }>;
7500
7555
  }>;
7501
7556
  /**
7502
7557
  * Update a user.
7503
7558
  */
7504
- readonly updateUser: alepha_server0.ActionPrimitiveFn<{
7505
- params: alepha.TObject<{
7506
- id: alepha.TString;
7507
- }>;
7508
- query: alepha.TObject<{
7509
- userRealmName: alepha.TOptional<alepha.TString>;
7510
- }>;
7511
- body: alepha.TObject<{
7512
- enabled: alepha.TOptional<PgAttr<alepha.TBoolean, typeof PG_DEFAULT>>;
7513
- email: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7514
- phoneNumber: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7515
- realm: alepha.TOptional<PgAttr<alepha.TString, typeof PG_DEFAULT>>;
7516
- roles: alepha.TOptional<alepha.TArray<alepha.TString>>;
7517
- firstName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7518
- lastName: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7519
- picture: alepha.TOptional<alepha.TOptional<alepha.TString>>;
7520
- }>;
7521
- response: alepha.TObject<{
7522
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7523
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7524
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7525
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7526
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7527
- username: alepha.TOptional<alepha.TString>;
7528
- email: alepha.TOptional<alepha.TString>;
7529
- phoneNumber: alepha.TOptional<alepha.TString>;
7530
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7531
- firstName: alepha.TOptional<alepha.TString>;
7532
- lastName: alepha.TOptional<alepha.TString>;
7533
- picture: alepha.TOptional<alepha.TString>;
7534
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7535
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7559
+ readonly updateUser: _$alepha_server0.ActionPrimitiveFn<{
7560
+ params: _$alepha.TObject<{
7561
+ id: _$alepha.TString;
7562
+ }>;
7563
+ query: _$alepha.TObject<{
7564
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7565
+ }>;
7566
+ body: _$alepha.TObject<{
7567
+ enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7568
+ email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7569
+ phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7570
+ realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7571
+ roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7572
+ firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7573
+ lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7574
+ picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7575
+ organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7576
+ }>;
7577
+ response: _$alepha.TObject<{
7578
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7579
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7580
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7581
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7582
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7583
+ username: _$alepha.TOptional<_$alepha.TString>;
7584
+ email: _$alepha.TOptional<_$alepha.TString>;
7585
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7586
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7587
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7588
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7589
+ picture: _$alepha.TOptional<_$alepha.TString>;
7590
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7591
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7592
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7536
7593
  }>;
7537
7594
  }>;
7538
7595
  /**
7539
7596
  * Delete a user.
7540
7597
  */
7541
- readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
7542
- params: alepha.TObject<{
7543
- id: alepha.TString;
7598
+ readonly deleteUser: _$alepha_server0.ActionPrimitiveFn<{
7599
+ params: _$alepha.TObject<{
7600
+ id: _$alepha.TString;
7544
7601
  }>;
7545
- query: alepha.TObject<{
7546
- userRealmName: alepha.TOptional<alepha.TString>;
7602
+ query: _$alepha.TObject<{
7603
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7547
7604
  }>;
7548
- response: alepha.TObject<{
7549
- ok: alepha.TBoolean;
7550
- id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
7551
- count: alepha.TOptional<alepha.TNumber>;
7605
+ response: _$alepha.TObject<{
7606
+ ok: _$alepha.TBoolean;
7607
+ id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7608
+ count: _$alepha.TOptional<_$alepha.TNumber>;
7552
7609
  }>;
7553
7610
  }>;
7554
7611
  }
@@ -7567,50 +7624,55 @@ declare class RealmController {
7567
7624
  * Get realm configuration settings.
7568
7625
  * This endpoint is not exposed in the API documentation.
7569
7626
  */
7570
- readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
7571
- query: alepha.TObject<{
7572
- realmName: alepha.TOptional<alepha.TString>;
7573
- }>;
7574
- response: alepha.TObject<{
7575
- settings: alepha.TObject<{
7576
- displayName: alepha.TOptional<alepha.TString>;
7577
- description: alepha.TOptional<alepha.TString>;
7578
- logoUrl: alepha.TOptional<alepha.TString>;
7579
- registrationAllowed: alepha.TBoolean;
7580
- email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
7581
- username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
7582
- usernameRegExp: alepha.TString;
7583
- phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
7584
- verifyEmailRequired: alepha.TBoolean;
7585
- verifyPhoneRequired: alepha.TBoolean;
7586
- firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
7587
- resetPasswordAllowed: alepha.TBoolean;
7588
- adminEmails: alepha.TArray<alepha.TString>;
7589
- adminUsernames: alepha.TArray<alepha.TString>;
7590
- passwordPolicy: alepha.TObject<{
7591
- minLength: alepha.TInteger;
7592
- requireUppercase: alepha.TBoolean;
7593
- requireLowercase: alepha.TBoolean;
7594
- requireNumbers: alepha.TBoolean;
7595
- requireSpecialCharacters: alepha.TBoolean;
7627
+ readonly getRealmConfig: _$alepha_server0.ActionPrimitiveFn<{
7628
+ query: _$alepha.TObject<{
7629
+ realmName: _$alepha.TOptional<_$alepha.TString>;
7630
+ }>;
7631
+ response: _$alepha.TObject<{
7632
+ settings: _$alepha.TObject<{
7633
+ displayName: _$alepha.TOptional<_$alepha.TString>;
7634
+ description: _$alepha.TOptional<_$alepha.TString>;
7635
+ logoUrl: _$alepha.TOptional<_$alepha.TString>;
7636
+ registrationAllowed: _$alepha.TBoolean;
7637
+ email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7638
+ username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7639
+ usernameRegExp: _$alepha.TString;
7640
+ phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7641
+ verifyEmailRequired: _$alepha.TBoolean;
7642
+ verifyPhoneRequired: _$alepha.TBoolean;
7643
+ firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7644
+ resetPasswordAllowed: _$alepha.TBoolean;
7645
+ adminEmails: _$alepha.TArray<_$alepha.TString>;
7646
+ adminUsernames: _$alepha.TArray<_$alepha.TString>;
7647
+ passwordPolicy: _$alepha.TObject<{
7648
+ minLength: _$alepha.TInteger;
7649
+ requireUppercase: _$alepha.TBoolean;
7650
+ requireLowercase: _$alepha.TBoolean;
7651
+ requireNumbers: _$alepha.TBoolean;
7652
+ requireSpecialCharacters: _$alepha.TBoolean;
7653
+ }>;
7654
+ loginRateLimit: _$alepha.TObject<{
7655
+ ipMaxAttempts: _$alepha.TInteger;
7656
+ accountMaxAttempts: _$alepha.TInteger;
7657
+ windowMs: _$alepha.TInteger;
7596
7658
  }>;
7597
7659
  }>;
7598
- realmName: alepha.TString;
7599
- authenticationMethods: alepha.TArray<alepha.TObject<{
7600
- name: alepha.TString;
7601
- type: alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
7660
+ realmName: _$alepha.TString;
7661
+ authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
7662
+ name: _$alepha.TString;
7663
+ type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
7602
7664
  }>>;
7603
7665
  }>;
7604
7666
  }>;
7605
- readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
7606
- query: alepha.TObject<{
7607
- realmName: alepha.TOptional<alepha.TString>;
7667
+ readonly checkUsernameAvailability: _$alepha_server0.ActionPrimitiveFn<{
7668
+ query: _$alepha.TObject<{
7669
+ realmName: _$alepha.TOptional<_$alepha.TString>;
7608
7670
  }>;
7609
- body: alepha.TObject<{
7610
- username: alepha.TString;
7671
+ body: _$alepha.TObject<{
7672
+ username: _$alepha.TString;
7611
7673
  }>;
7612
- response: alepha.TObject<{
7613
- available: alepha.TBoolean;
7674
+ response: _$alepha.TObject<{
7675
+ available: _$alepha.TBoolean;
7614
7676
  }>;
7615
7677
  }>;
7616
7678
  }
@@ -7622,10 +7684,10 @@ declare class RealmController {
7622
7684
  * Requires the intent ID from Phase 1, the verification code,
7623
7685
  * and the new password.
7624
7686
  */
7625
- declare const completePasswordResetRequestSchema: alepha.TObject<{
7626
- intentId: alepha.TString;
7627
- code: alepha.TString;
7628
- newPassword: alepha.TString;
7687
+ declare const completePasswordResetRequestSchema: _$alepha.TObject<{
7688
+ intentId: _$alepha.TString;
7689
+ code: _$alepha.TString;
7690
+ newPassword: _$alepha.TString;
7629
7691
  }>;
7630
7692
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
7631
7693
  //#endregion
@@ -7636,9 +7698,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
7636
7698
  * Contains the intent ID needed for Phase 2 completion,
7637
7699
  * along with expiration time.
7638
7700
  */
7639
- declare const passwordResetIntentResponseSchema: alepha.TObject<{
7640
- intentId: alepha.TString;
7641
- expiresAt: alepha.TString;
7701
+ declare const passwordResetIntentResponseSchema: _$alepha.TObject<{
7702
+ intentId: _$alepha.TString;
7703
+ expiresAt: _$alepha.TString;
7642
7704
  }>;
7643
7705
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
7644
7706
  //#endregion
@@ -7655,55 +7717,56 @@ interface PasswordResetIntent {
7655
7717
  }
7656
7718
  declare class CredentialService {
7657
7719
  protected readonly alepha: Alepha;
7658
- protected readonly log: alepha_logger0.Logger;
7720
+ protected readonly log: _$alepha_logger0.Logger;
7659
7721
  protected readonly cryptoProvider: CryptoProvider;
7660
7722
  protected readonly dateTimeProvider: DateTimeProvider;
7661
- protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
7723
+ protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
7662
7724
  protected readonly realmProvider: RealmProvider;
7663
7725
  protected userAudits(realmName?: string): UserAudits | undefined;
7664
7726
  protected userNotifications(realmName?: string): UserNotifications | undefined;
7665
- protected readonly intentCache: alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
7666
- users(userRealmName?: string): Repository$1<alepha.TObject<{
7667
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7668
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7669
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7670
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7671
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7672
- username: alepha.TOptional<alepha.TString>;
7673
- email: alepha.TOptional<alepha.TString>;
7674
- phoneNumber: alepha.TOptional<alepha.TString>;
7675
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7676
- firstName: alepha.TOptional<alepha.TString>;
7677
- lastName: alepha.TOptional<alepha.TString>;
7678
- picture: alepha.TOptional<alepha.TString>;
7679
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7680
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7727
+ protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
7728
+ users(userRealmName?: string): Repository$1<_$alepha.TObject<{
7729
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7730
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7731
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7732
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7733
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7734
+ username: _$alepha.TOptional<_$alepha.TString>;
7735
+ email: _$alepha.TOptional<_$alepha.TString>;
7736
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7737
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7738
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7739
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7740
+ picture: _$alepha.TOptional<_$alepha.TString>;
7741
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7742
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7743
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7681
7744
  }>>;
7682
- sessions(userRealmName?: string): Repository$1<alepha.TObject<{
7683
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7684
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7685
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7686
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7687
- refreshToken: alepha.TString;
7688
- userId: PgAttr<alepha.TString, typeof PG_REF>;
7689
- expiresAt: alepha.TString;
7690
- ip: alepha.TOptional<alepha.TString>;
7691
- userAgent: alepha.TOptional<alepha.TObject<{
7692
- os: alepha.TString;
7693
- browser: alepha.TString;
7694
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7745
+ sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
7746
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7747
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7748
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7749
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7750
+ refreshToken: _$alepha.TString;
7751
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7752
+ expiresAt: _$alepha.TString;
7753
+ ip: _$alepha.TOptional<_$alepha.TString>;
7754
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
7755
+ os: _$alepha.TString;
7756
+ browser: _$alepha.TString;
7757
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7695
7758
  }>>;
7696
7759
  }>>;
7697
- identities(userRealmName?: string): Repository$1<alepha.TObject<{
7698
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7699
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7700
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7701
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7702
- userId: PgAttr<alepha.TString, typeof PG_REF>;
7703
- password: alepha.TOptional<alepha.TString>;
7704
- provider: alepha.TString;
7705
- providerUserId: alepha.TOptional<alepha.TString>;
7706
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
7760
+ identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
7761
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7762
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7763
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7764
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7765
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7766
+ password: _$alepha.TOptional<_$alepha.TString>;
7767
+ provider: _$alepha.TString;
7768
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
7769
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7707
7770
  }>>;
7708
7771
  /**
7709
7772
  * Phase 1: Create a password reset intent.
@@ -7740,11 +7803,11 @@ declare class CredentialService {
7740
7803
  }
7741
7804
  //#endregion
7742
7805
  //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
7743
- declare const completeRegistrationRequestSchema: alepha.TObject<{
7744
- intentId: alepha.TString;
7745
- emailCode: alepha.TOptional<alepha.TString>;
7746
- phoneCode: alepha.TOptional<alepha.TString>;
7747
- captchaToken: alepha.TOptional<alepha.TString>;
7806
+ declare const completeRegistrationRequestSchema: _$alepha.TObject<{
7807
+ intentId: _$alepha.TString;
7808
+ emailCode: _$alepha.TOptional<_$alepha.TString>;
7809
+ phoneCode: _$alepha.TOptional<_$alepha.TString>;
7810
+ captchaToken: _$alepha.TOptional<_$alepha.TString>;
7748
7811
  }>;
7749
7812
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
7750
7813
  //#endregion
@@ -7753,24 +7816,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
7753
7816
  * Schema for user registration request body.
7754
7817
  * Password is always required, other fields depend on realm settings.
7755
7818
  */
7756
- declare const registerRequestSchema: alepha.TObject<{
7757
- password: alepha.TString;
7758
- username: alepha.TOptional<alepha.TString>;
7759
- email: alepha.TOptional<alepha.TString>;
7760
- phoneNumber: alepha.TOptional<alepha.TString>;
7761
- firstName: alepha.TOptional<alepha.TString>;
7762
- lastName: alepha.TOptional<alepha.TString>;
7763
- picture: alepha.TOptional<alepha.TString>;
7819
+ declare const registerRequestSchema: _$alepha.TObject<{
7820
+ password: _$alepha.TString;
7821
+ username: _$alepha.TOptional<_$alepha.TString>;
7822
+ email: _$alepha.TOptional<_$alepha.TString>;
7823
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7824
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7825
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7826
+ picture: _$alepha.TOptional<_$alepha.TString>;
7764
7827
  }>;
7765
7828
  type RegisterRequest = Static<typeof registerRequestSchema>;
7766
7829
  //#endregion
7767
7830
  //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
7768
- declare const registrationIntentResponseSchema: alepha.TObject<{
7769
- intentId: alepha.TString;
7770
- expectCaptcha: alepha.TBoolean;
7771
- expectEmailVerification: alepha.TBoolean;
7772
- expectPhoneVerification: alepha.TBoolean;
7773
- expiresAt: alepha.TString;
7831
+ declare const registrationIntentResponseSchema: _$alepha.TObject<{
7832
+ intentId: _$alepha.TString;
7833
+ expectCaptcha: _$alepha.TBoolean;
7834
+ expectEmailVerification: _$alepha.TBoolean;
7835
+ expectPhoneVerification: _$alepha.TBoolean;
7836
+ expiresAt: _$alepha.TString;
7774
7837
  }>;
7775
7838
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
7776
7839
  //#endregion
@@ -7798,12 +7861,12 @@ interface RegistrationIntent {
7798
7861
  }
7799
7862
  declare class RegistrationService {
7800
7863
  protected readonly alepha: Alepha;
7801
- protected readonly log: alepha_logger0.Logger;
7864
+ protected readonly log: _$alepha_logger0.Logger;
7802
7865
  protected readonly dateTimeProvider: DateTimeProvider;
7803
7866
  protected readonly cryptoProvider: CryptoProvider;
7804
- protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
7867
+ protected readonly verificationController: _$alepha_server_links0.HttpVirtualClient<VerificationController>;
7805
7868
  protected readonly realmProvider: RealmProvider;
7806
- protected readonly intentCache: alepha_cache0.CacheMiddlewareFn<RegistrationIntent>;
7869
+ protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<RegistrationIntent>;
7807
7870
  protected userAudits(realmName?: string): UserAudits | undefined;
7808
7871
  protected userNotifications(realmName?: string): UserNotifications;
7809
7872
  /**
@@ -7853,131 +7916,132 @@ declare class UserController {
7853
7916
  * Phase 1: Create a registration intent.
7854
7917
  * Validates data, creates verification sessions, and stores intent in cache.
7855
7918
  */
7856
- readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
7857
- body: alepha.TObject<{
7858
- password: alepha.TString;
7859
- username: alepha.TOptional<alepha.TString>;
7860
- email: alepha.TOptional<alepha.TString>;
7861
- phoneNumber: alepha.TOptional<alepha.TString>;
7862
- firstName: alepha.TOptional<alepha.TString>;
7863
- lastName: alepha.TOptional<alepha.TString>;
7864
- picture: alepha.TOptional<alepha.TString>;
7865
- }>;
7866
- query: alepha.TObject<{
7867
- userRealmName: alepha.TOptional<alepha.TString>;
7868
- }>;
7869
- response: alepha.TObject<{
7870
- intentId: alepha.TString;
7871
- expectCaptcha: alepha.TBoolean;
7872
- expectEmailVerification: alepha.TBoolean;
7873
- expectPhoneVerification: alepha.TBoolean;
7874
- expiresAt: alepha.TString;
7919
+ readonly createRegistrationIntent: _$alepha_server0.ActionPrimitiveFn<{
7920
+ body: _$alepha.TObject<{
7921
+ password: _$alepha.TString;
7922
+ username: _$alepha.TOptional<_$alepha.TString>;
7923
+ email: _$alepha.TOptional<_$alepha.TString>;
7924
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7925
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7926
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7927
+ picture: _$alepha.TOptional<_$alepha.TString>;
7928
+ }>;
7929
+ query: _$alepha.TObject<{
7930
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7931
+ }>;
7932
+ response: _$alepha.TObject<{
7933
+ intentId: _$alepha.TString;
7934
+ expectCaptcha: _$alepha.TBoolean;
7935
+ expectEmailVerification: _$alepha.TBoolean;
7936
+ expectPhoneVerification: _$alepha.TBoolean;
7937
+ expiresAt: _$alepha.TString;
7875
7938
  }>;
7876
7939
  }>;
7877
7940
  /**
7878
7941
  * Phase 2: Complete registration using an intent.
7879
7942
  * Validates verification codes and creates the user.
7880
7943
  */
7881
- readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
7882
- body: alepha.TObject<{
7883
- intentId: alepha.TString;
7884
- emailCode: alepha.TOptional<alepha.TString>;
7885
- phoneCode: alepha.TOptional<alepha.TString>;
7886
- captchaToken: alepha.TOptional<alepha.TString>;
7887
- }>;
7888
- response: alepha.TObject<{
7889
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7890
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7891
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7892
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7893
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
7894
- username: alepha.TOptional<alepha.TString>;
7895
- email: alepha.TOptional<alepha.TString>;
7896
- phoneNumber: alepha.TOptional<alepha.TString>;
7897
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
7898
- firstName: alepha.TOptional<alepha.TString>;
7899
- lastName: alepha.TOptional<alepha.TString>;
7900
- picture: alepha.TOptional<alepha.TString>;
7901
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7902
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
7944
+ readonly createUserFromIntent: _$alepha_server0.ActionPrimitiveFn<{
7945
+ body: _$alepha.TObject<{
7946
+ intentId: _$alepha.TString;
7947
+ emailCode: _$alepha.TOptional<_$alepha.TString>;
7948
+ phoneCode: _$alepha.TOptional<_$alepha.TString>;
7949
+ captchaToken: _$alepha.TOptional<_$alepha.TString>;
7950
+ }>;
7951
+ response: _$alepha.TObject<{
7952
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7953
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7954
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7955
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7956
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7957
+ username: _$alepha.TOptional<_$alepha.TString>;
7958
+ email: _$alepha.TOptional<_$alepha.TString>;
7959
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7960
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7961
+ firstName: _$alepha.TOptional<_$alepha.TString>;
7962
+ lastName: _$alepha.TOptional<_$alepha.TString>;
7963
+ picture: _$alepha.TOptional<_$alepha.TString>;
7964
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7965
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7966
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7903
7967
  }>;
7904
7968
  }>;
7905
7969
  /**
7906
7970
  * Phase 1: Create a password reset intent.
7907
7971
  * Validates email, sends verification code, and stores intent in cache.
7908
7972
  */
7909
- readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
7910
- query: alepha.TObject<{
7911
- userRealmName: alepha.TOptional<alepha.TString>;
7973
+ readonly createPasswordResetIntent: _$alepha_server0.ActionPrimitiveFn<{
7974
+ query: _$alepha.TObject<{
7975
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7912
7976
  }>;
7913
- body: alepha.TObject<{
7914
- email: alepha.TString;
7977
+ body: _$alepha.TObject<{
7978
+ email: _$alepha.TString;
7915
7979
  }>;
7916
- response: alepha.TObject<{
7917
- intentId: alepha.TString;
7918
- expiresAt: alepha.TString;
7980
+ response: _$alepha.TObject<{
7981
+ intentId: _$alepha.TString;
7982
+ expiresAt: _$alepha.TString;
7919
7983
  }>;
7920
7984
  }>;
7921
7985
  /**
7922
7986
  * Phase 2: Complete password reset using an intent.
7923
7987
  * Validates verification code, updates password, and invalidates sessions.
7924
7988
  */
7925
- readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
7926
- body: alepha.TObject<{
7927
- intentId: alepha.TString;
7928
- code: alepha.TString;
7929
- newPassword: alepha.TString;
7989
+ readonly completePasswordReset: _$alepha_server0.ActionPrimitiveFn<{
7990
+ body: _$alepha.TObject<{
7991
+ intentId: _$alepha.TString;
7992
+ code: _$alepha.TString;
7993
+ newPassword: _$alepha.TString;
7930
7994
  }>;
7931
- response: alepha.TObject<{
7932
- ok: alepha.TBoolean;
7933
- id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
7934
- count: alepha.TOptional<alepha.TNumber>;
7995
+ response: _$alepha.TObject<{
7996
+ ok: _$alepha.TBoolean;
7997
+ id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7998
+ count: _$alepha.TOptional<_$alepha.TNumber>;
7935
7999
  }>;
7936
8000
  }>;
7937
8001
  /**
7938
8002
  * @deprecated Use createPasswordResetIntent instead
7939
8003
  */
7940
- requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
7941
- query: alepha.TObject<{
7942
- userRealmName: alepha.TOptional<alepha.TString>;
8004
+ requestPasswordReset: _$alepha_server0.ActionPrimitiveFn<{
8005
+ query: _$alepha.TObject<{
8006
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7943
8007
  }>;
7944
- body: alepha.TObject<{
7945
- email: alepha.TString;
8008
+ body: _$alepha.TObject<{
8009
+ email: _$alepha.TString;
7946
8010
  }>;
7947
- response: alepha.TObject<{
7948
- success: alepha.TBoolean;
7949
- message: alepha.TString;
8011
+ response: _$alepha.TObject<{
8012
+ success: _$alepha.TBoolean;
8013
+ message: _$alepha.TString;
7950
8014
  }>;
7951
8015
  }>;
7952
8016
  /**
7953
8017
  * @deprecated Use completePasswordReset instead
7954
8018
  */
7955
- validateResetToken: alepha_server0.ActionPrimitiveFn<{
7956
- query: alepha.TObject<{
7957
- email: alepha.TString;
7958
- token: alepha.TString;
7959
- userRealmName: alepha.TOptional<alepha.TString>;
8019
+ validateResetToken: _$alepha_server0.ActionPrimitiveFn<{
8020
+ query: _$alepha.TObject<{
8021
+ email: _$alepha.TString;
8022
+ token: _$alepha.TString;
8023
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7960
8024
  }>;
7961
- response: alepha.TObject<{
7962
- valid: alepha.TBoolean;
7963
- email: alepha.TOptional<alepha.TString>;
8025
+ response: _$alepha.TObject<{
8026
+ valid: _$alepha.TBoolean;
8027
+ email: _$alepha.TOptional<_$alepha.TString>;
7964
8028
  }>;
7965
8029
  }>;
7966
8030
  /**
7967
8031
  * @deprecated Use completePasswordReset instead
7968
8032
  */
7969
- resetPassword: alepha_server0.ActionPrimitiveFn<{
7970
- query: alepha.TObject<{
7971
- userRealmName: alepha.TOptional<alepha.TString>;
8033
+ resetPassword: _$alepha_server0.ActionPrimitiveFn<{
8034
+ query: _$alepha.TObject<{
8035
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
7972
8036
  }>;
7973
- body: alepha.TObject<{
7974
- email: alepha.TString;
7975
- token: alepha.TString;
7976
- newPassword: alepha.TString;
8037
+ body: _$alepha.TObject<{
8038
+ email: _$alepha.TString;
8039
+ token: _$alepha.TString;
8040
+ newPassword: _$alepha.TString;
7977
8041
  }>;
7978
- response: alepha.TObject<{
7979
- success: alepha.TBoolean;
7980
- message: alepha.TString;
8042
+ response: _$alepha.TObject<{
8043
+ success: _$alepha.TBoolean;
8044
+ message: _$alepha.TString;
7981
8045
  }>;
7982
8046
  }>;
7983
8047
  /**
@@ -7986,47 +8050,47 @@ declare class UserController {
7986
8050
  * @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
7987
8051
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
7988
8052
  */
7989
- requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
7990
- query: alepha.TObject<{
7991
- userRealmName: alepha.TOptional<alepha.TString>;
7992
- method: alepha.TOptional<alepha.TUnsafe<"link" | "code">>;
7993
- verifyUrl: alepha.TOptional<alepha.TString>;
8053
+ requestEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
8054
+ query: _$alepha.TObject<{
8055
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
8056
+ method: _$alepha.TOptional<_$alepha.TUnsafe<"link" | "code">>;
8057
+ verifyUrl: _$alepha.TOptional<_$alepha.TString>;
7994
8058
  }>;
7995
- body: alepha.TObject<{
7996
- email: alepha.TString;
8059
+ body: _$alepha.TObject<{
8060
+ email: _$alepha.TString;
7997
8061
  }>;
7998
- response: alepha.TObject<{
7999
- success: alepha.TBoolean;
8000
- message: alepha.TString;
8062
+ response: _$alepha.TObject<{
8063
+ success: _$alepha.TBoolean;
8064
+ message: _$alepha.TString;
8001
8065
  }>;
8002
8066
  }>;
8003
8067
  /**
8004
8068
  * Verify email with a valid token.
8005
8069
  * Updates the user's emailVerified status.
8006
8070
  */
8007
- verifyEmail: alepha_server0.ActionPrimitiveFn<{
8008
- query: alepha.TObject<{
8009
- userRealmName: alepha.TOptional<alepha.TString>;
8071
+ verifyEmail: _$alepha_server0.ActionPrimitiveFn<{
8072
+ query: _$alepha.TObject<{
8073
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
8010
8074
  }>;
8011
- body: alepha.TObject<{
8012
- email: alepha.TString;
8013
- token: alepha.TString;
8075
+ body: _$alepha.TObject<{
8076
+ email: _$alepha.TString;
8077
+ token: _$alepha.TString;
8014
8078
  }>;
8015
- response: alepha.TObject<{
8016
- success: alepha.TBoolean;
8017
- message: alepha.TString;
8079
+ response: _$alepha.TObject<{
8080
+ success: _$alepha.TBoolean;
8081
+ message: _$alepha.TString;
8018
8082
  }>;
8019
8083
  }>;
8020
8084
  /**
8021
8085
  * Check if an email is verified.
8022
8086
  */
8023
- checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
8024
- query: alepha.TObject<{
8025
- email: alepha.TString;
8026
- userRealmName: alepha.TOptional<alepha.TString>;
8087
+ checkEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
8088
+ query: _$alepha.TObject<{
8089
+ email: _$alepha.TString;
8090
+ userRealmName: _$alepha.TOptional<_$alepha.TString>;
8027
8091
  }>;
8028
- response: alepha.TObject<{
8029
- verified: alepha.TBoolean;
8092
+ response: _$alepha.TObject<{
8093
+ verified: _$alepha.TBoolean;
8030
8094
  }>;
8031
8095
  }>;
8032
8096
  }
@@ -8043,21 +8107,21 @@ declare class UserController {
8043
8107
  * It is lazy-loaded when the `sessionPurge` feature is enabled in the realm.
8044
8108
  */
8045
8109
  declare class UserJobs {
8046
- protected readonly log: alepha_logger0.Logger;
8110
+ protected readonly log: _$alepha_logger0.Logger;
8047
8111
  protected readonly dateTimeProvider: DateTimeProvider;
8048
- protected readonly sessionRepository: alepha_orm0.Repository<alepha.TObject<{
8049
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
8050
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
8051
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
8052
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
8053
- refreshToken: alepha.TString;
8054
- userId: alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_REF>;
8055
- expiresAt: alepha.TString;
8056
- ip: alepha.TOptional<alepha.TString>;
8057
- userAgent: alepha.TOptional<alepha.TObject<{
8058
- os: alepha.TString;
8059
- browser: alepha.TString;
8060
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8112
+ protected readonly sessionRepository: _$alepha_orm0.Repository<_$alepha.TObject<{
8113
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
8114
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
8115
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8116
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8117
+ refreshToken: _$alepha.TString;
8118
+ userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
8119
+ expiresAt: _$alepha.TString;
8120
+ ip: _$alepha.TOptional<_$alepha.TString>;
8121
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
8122
+ os: _$alepha.TString;
8123
+ browser: _$alepha.TString;
8124
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8061
8125
  }>>;
8062
8126
  }>>;
8063
8127
  /**
@@ -8066,158 +8130,125 @@ declare class UserJobs {
8066
8130
  * This job runs daily at 3:00 AM and removes all sessions
8067
8131
  * where the `expiresAt` timestamp has passed.
8068
8132
  */
8069
- readonly purgeExpiredSessions: alepha_api_jobs0.JobPrimitive<alepha.TSchema>;
8070
- }
8071
- //#endregion
8072
- //#region ../../src/api/users/parameters/UserParameters.d.ts
8073
- /**
8074
- * User-specific parameter service.
8075
- *
8076
- * This service wraps the core ParameterProvider to provide realm settings management.
8077
- * It is lazy-loaded when the `parameters` feature is enabled in the realm.
8078
- */
8079
- declare class UserParameters {
8080
- /**
8081
- * Realm authentication settings parameter.
8082
- *
8083
- * Controls user registration, login methods, verification requirements,
8084
- * and password policies for the realm.
8085
- */
8086
- readonly realmSettings: alepha_api_parameters0.ParameterPrimitive<typebox.TObject<{
8087
- displayName: typebox.TOptional<typebox.TString>;
8088
- description: typebox.TOptional<typebox.TString>;
8089
- logoUrl: typebox.TOptional<typebox.TString>;
8090
- registrationAllowed: typebox.TBoolean;
8091
- email: typebox.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8092
- username: typebox.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8093
- usernameRegExp: typebox.TString;
8094
- phoneNumber: typebox.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8095
- verifyEmailRequired: typebox.TBoolean;
8096
- verifyPhoneRequired: typebox.TBoolean;
8097
- firstNameLastName: typebox.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8098
- resetPasswordAllowed: typebox.TBoolean;
8099
- adminEmails: typebox.TArray<typebox.TString>;
8100
- adminUsernames: typebox.TArray<typebox.TString>;
8101
- passwordPolicy: typebox.TObject<{
8102
- minLength: typebox.TInteger;
8103
- requireUppercase: typebox.TBoolean;
8104
- requireLowercase: typebox.TBoolean;
8105
- requireNumbers: typebox.TBoolean;
8106
- requireSpecialCharacters: typebox.TBoolean;
8107
- }>;
8108
- }>>;
8133
+ readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$alepha.TSchema>;
8109
8134
  }
8110
8135
  //#endregion
8111
8136
  //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
8112
- declare const identityResourceSchema: alepha.TObject<{
8113
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8114
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8115
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8116
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8117
- userId: PgAttr<alepha.TString, typeof PG_REF>;
8118
- provider: alepha.TString;
8119
- providerUserId: alepha.TOptional<alepha.TString>;
8120
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
8137
+ declare const identityResourceSchema: _$alepha.TObject<{
8138
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8139
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8140
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8141
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8142
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8143
+ provider: _$alepha.TString;
8144
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
8145
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
8121
8146
  }>;
8122
8147
  type IdentityResource = Static<typeof identityResourceSchema>;
8123
8148
  //#endregion
8124
8149
  //#region ../../src/api/users/schemas/loginSchema.d.ts
8125
- declare const loginSchema: alepha.TObject<{
8126
- username: alepha.TString;
8127
- password: alepha.TString;
8150
+ declare const loginSchema: _$alepha.TObject<{
8151
+ username: _$alepha.TString;
8152
+ password: _$alepha.TString;
8128
8153
  }>;
8129
8154
  type LoginInput = Static<typeof loginSchema>;
8130
8155
  //#endregion
8131
8156
  //#region ../../src/api/users/schemas/realmConfigSchema.d.ts
8132
- declare const realmConfigSchema: alepha.TObject<{
8133
- settings: alepha.TObject<{
8134
- displayName: alepha.TOptional<alepha.TString>;
8135
- description: alepha.TOptional<alepha.TString>;
8136
- logoUrl: alepha.TOptional<alepha.TString>;
8137
- registrationAllowed: alepha.TBoolean;
8138
- email: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8139
- username: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8140
- usernameRegExp: alepha.TString;
8141
- phoneNumber: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8142
- verifyEmailRequired: alepha.TBoolean;
8143
- verifyPhoneRequired: alepha.TBoolean;
8144
- firstNameLastName: alepha.TUnion<[typebox.TLiteral<"none">, typebox.TLiteral<"optional">, typebox.TLiteral<"required">]>;
8145
- resetPasswordAllowed: alepha.TBoolean;
8146
- adminEmails: alepha.TArray<alepha.TString>;
8147
- adminUsernames: alepha.TArray<alepha.TString>;
8148
- passwordPolicy: alepha.TObject<{
8149
- minLength: alepha.TInteger;
8150
- requireUppercase: alepha.TBoolean;
8151
- requireLowercase: alepha.TBoolean;
8152
- requireNumbers: alepha.TBoolean;
8153
- requireSpecialCharacters: alepha.TBoolean;
8157
+ declare const realmConfigSchema: _$alepha.TObject<{
8158
+ settings: _$alepha.TObject<{
8159
+ displayName: _$alepha.TOptional<_$alepha.TString>;
8160
+ description: _$alepha.TOptional<_$alepha.TString>;
8161
+ logoUrl: _$alepha.TOptional<_$alepha.TString>;
8162
+ registrationAllowed: _$alepha.TBoolean;
8163
+ email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8164
+ username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8165
+ usernameRegExp: _$alepha.TString;
8166
+ phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8167
+ verifyEmailRequired: _$alepha.TBoolean;
8168
+ verifyPhoneRequired: _$alepha.TBoolean;
8169
+ firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8170
+ resetPasswordAllowed: _$alepha.TBoolean;
8171
+ adminEmails: _$alepha.TArray<_$alepha.TString>;
8172
+ adminUsernames: _$alepha.TArray<_$alepha.TString>;
8173
+ passwordPolicy: _$alepha.TObject<{
8174
+ minLength: _$alepha.TInteger;
8175
+ requireUppercase: _$alepha.TBoolean;
8176
+ requireLowercase: _$alepha.TBoolean;
8177
+ requireNumbers: _$alepha.TBoolean;
8178
+ requireSpecialCharacters: _$alepha.TBoolean;
8179
+ }>;
8180
+ loginRateLimit: _$alepha.TObject<{
8181
+ ipMaxAttempts: _$alepha.TInteger;
8182
+ accountMaxAttempts: _$alepha.TInteger;
8183
+ windowMs: _$alepha.TInteger;
8154
8184
  }>;
8155
8185
  }>;
8156
- realmName: alepha.TString;
8157
- authenticationMethods: alepha.TArray<alepha.TObject<{
8158
- name: alepha.TString;
8159
- type: alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
8186
+ realmName: _$alepha.TString;
8187
+ authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
8188
+ name: _$alepha.TString;
8189
+ type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
8160
8190
  }>>;
8161
8191
  }>;
8162
8192
  type RealmConfig = Static<typeof realmConfigSchema>;
8163
8193
  //#endregion
8164
8194
  //#region ../../src/api/users/schemas/registerSchema.d.ts
8165
- declare const registerSchema: alepha.TObject<{
8166
- username: alepha.TString;
8167
- email: alepha.TString;
8168
- password: alepha.TString;
8169
- confirmPassword: alepha.TString;
8170
- firstName: alepha.TOptional<alepha.TString>;
8171
- lastName: alepha.TOptional<alepha.TString>;
8195
+ declare const registerSchema: _$alepha.TObject<{
8196
+ username: _$alepha.TString;
8197
+ email: _$alepha.TString;
8198
+ password: _$alepha.TString;
8199
+ confirmPassword: _$alepha.TString;
8200
+ firstName: _$alepha.TOptional<_$alepha.TString>;
8201
+ lastName: _$alepha.TOptional<_$alepha.TString>;
8172
8202
  }>;
8173
8203
  type RegisterInput = Static<typeof registerSchema>;
8174
8204
  //#endregion
8175
8205
  //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
8176
- declare const resetPasswordRequestSchema: alepha.TObject<{
8177
- email: alepha.TString;
8206
+ declare const resetPasswordRequestSchema: _$alepha.TObject<{
8207
+ email: _$alepha.TString;
8178
8208
  }>;
8179
- declare const resetPasswordSchema: alepha.TObject<{
8180
- token: alepha.TString;
8181
- password: alepha.TString;
8182
- confirmPassword: alepha.TString;
8209
+ declare const resetPasswordSchema: _$alepha.TObject<{
8210
+ token: _$alepha.TString;
8211
+ password: _$alepha.TString;
8212
+ confirmPassword: _$alepha.TString;
8183
8213
  }>;
8184
8214
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
8185
8215
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
8186
8216
  //#endregion
8187
8217
  //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
8188
- declare const sessionResourceSchema: alepha.TObject<{
8189
- id: alepha.TString;
8190
- version: alepha.TNumber;
8191
- createdAt: alepha.TString;
8192
- updatedAt: alepha.TString;
8193
- refreshToken: alepha.TString;
8194
- userId: alepha.TString;
8195
- expiresAt: alepha.TString;
8196
- ip: alepha.TOptional<alepha.TString>;
8197
- userAgent: alepha.TOptional<alepha.TObject<{
8198
- os: alepha.TString;
8199
- browser: alepha.TString;
8200
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8218
+ declare const sessionResourceSchema: _$alepha.TObject<{
8219
+ id: _$alepha.TString;
8220
+ version: _$alepha.TNumber;
8221
+ createdAt: _$alepha.TString;
8222
+ updatedAt: _$alepha.TString;
8223
+ refreshToken: _$alepha.TString;
8224
+ userId: _$alepha.TString;
8225
+ expiresAt: _$alepha.TString;
8226
+ ip: _$alepha.TOptional<_$alepha.TString>;
8227
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
8228
+ os: _$alepha.TString;
8229
+ browser: _$alepha.TString;
8230
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8201
8231
  }>>;
8202
8232
  }>;
8203
8233
  type SessionResource = Static<typeof sessionResourceSchema>;
8204
8234
  //#endregion
8205
8235
  //#region ../../src/api/users/schemas/userResourceSchema.d.ts
8206
- declare const userResourceSchema: alepha.TObject<{
8207
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8208
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8209
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8210
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8211
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
8212
- username: alepha.TOptional<alepha.TString>;
8213
- email: alepha.TOptional<alepha.TString>;
8214
- phoneNumber: alepha.TOptional<alepha.TString>;
8215
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
8216
- firstName: alepha.TOptional<alepha.TString>;
8217
- lastName: alepha.TOptional<alepha.TString>;
8218
- picture: alepha.TOptional<alepha.TString>;
8219
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8220
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8236
+ declare const userResourceSchema: _$alepha.TObject<{
8237
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8238
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8239
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8240
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8241
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8242
+ username: _$alepha.TOptional<_$alepha.TString>;
8243
+ email: _$alepha.TOptional<_$alepha.TString>;
8244
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8245
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8246
+ firstName: _$alepha.TOptional<_$alepha.TString>;
8247
+ lastName: _$alepha.TOptional<_$alepha.TString>;
8248
+ picture: _$alepha.TOptional<_$alepha.TString>;
8249
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8250
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8251
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8221
8252
  }>;
8222
8253
  type UserResource = Static<typeof userResourceSchema>;
8223
8254
  //#endregion
@@ -8227,51 +8258,53 @@ declare class SessionService {
8227
8258
  protected readonly fsp: FileSystemProvider;
8228
8259
  protected readonly dateTimeProvider: DateTimeProvider;
8229
8260
  protected readonly cryptoProvider: CryptoProvider;
8230
- protected readonly log: alepha_logger0.Logger;
8261
+ protected readonly log: _$alepha_logger0.Logger;
8231
8262
  protected readonly realmProvider: RealmProvider;
8232
- protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
8263
+ protected readonly fileController: _$alepha_server_links0.HttpVirtualClient<FileController>;
8264
+ protected readonly cacheProvider: CacheProvider;
8233
8265
  protected userAudits(realmName?: string): UserAudits | undefined;
8234
- users(userRealmName?: string): Repository$1<alepha.TObject<{
8235
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8236
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8237
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8238
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8239
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
8240
- username: alepha.TOptional<alepha.TString>;
8241
- email: alepha.TOptional<alepha.TString>;
8242
- phoneNumber: alepha.TOptional<alepha.TString>;
8243
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
8244
- firstName: alepha.TOptional<alepha.TString>;
8245
- lastName: alepha.TOptional<alepha.TString>;
8246
- picture: alepha.TOptional<alepha.TString>;
8247
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8248
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8266
+ users(userRealmName?: string): Repository$1<_$alepha.TObject<{
8267
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8268
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8269
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8270
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8271
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8272
+ username: _$alepha.TOptional<_$alepha.TString>;
8273
+ email: _$alepha.TOptional<_$alepha.TString>;
8274
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8275
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8276
+ firstName: _$alepha.TOptional<_$alepha.TString>;
8277
+ lastName: _$alepha.TOptional<_$alepha.TString>;
8278
+ picture: _$alepha.TOptional<_$alepha.TString>;
8279
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8280
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8281
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8249
8282
  }>>;
8250
- sessions(userRealmName?: string): Repository$1<alepha.TObject<{
8251
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8252
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8253
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8254
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8255
- refreshToken: alepha.TString;
8256
- userId: PgAttr<alepha.TString, typeof PG_REF>;
8257
- expiresAt: alepha.TString;
8258
- ip: alepha.TOptional<alepha.TString>;
8259
- userAgent: alepha.TOptional<alepha.TObject<{
8260
- os: alepha.TString;
8261
- browser: alepha.TString;
8262
- device: alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8283
+ sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
8284
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8285
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8286
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8287
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8288
+ refreshToken: _$alepha.TString;
8289
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8290
+ expiresAt: _$alepha.TString;
8291
+ ip: _$alepha.TOptional<_$alepha.TString>;
8292
+ userAgent: _$alepha.TOptional<_$alepha.TObject<{
8293
+ os: _$alepha.TString;
8294
+ browser: _$alepha.TString;
8295
+ device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8263
8296
  }>>;
8264
8297
  }>>;
8265
- identities(userRealmName?: string): Repository$1<alepha.TObject<{
8266
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8267
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8268
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8269
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8270
- userId: PgAttr<alepha.TString, typeof PG_REF>;
8271
- password: alepha.TOptional<alepha.TString>;
8272
- provider: alepha.TString;
8273
- providerUserId: alepha.TOptional<alepha.TString>;
8274
- providerData: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
8298
+ identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
8299
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8300
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8301
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8302
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8303
+ userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8304
+ password: _$alepha.TOptional<_$alepha.TString>;
8305
+ provider: _$alepha.TString;
8306
+ providerUserId: _$alepha.TOptional<_$alepha.TString>;
8307
+ providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
8275
8308
  }>>;
8276
8309
  /**
8277
8310
  * Check if user should be auto-promoted to admin based on adminEmails/adminUsernames settings.
@@ -8283,11 +8316,33 @@ declare class SessionService {
8283
8316
  username?: string | null;
8284
8317
  roles: string[];
8285
8318
  }, userRealmName?: string): Promise<boolean>;
8319
+ /**
8320
+ * Generate a unique username from an OAuth profile.
8321
+ *
8322
+ * 1. Extract candidate from email prefix
8323
+ * 2. Sanitize against realm's usernameRegExp (strip invalid chars, truncate)
8324
+ * 3. Check case-insensitive uniqueness, append suffix (2, 3, ...) if taken
8325
+ * 4. Fall back to "user" + random 6-char alphanumeric if all else fails
8326
+ */
8327
+ protected generateUniqueUsername(profile: OAuth2Profile, realmSettings: any, users: any): Promise<string>;
8286
8328
  /**
8287
8329
  * Random delay to prevent timing attacks (50-200ms)
8288
8330
  * Uses cryptographically secure random number generation
8289
8331
  */
8290
8332
  protected randomDelay(): Promise<void>;
8333
+ protected static readonly LOGIN_CACHE_NAME = "login-rate-limit";
8334
+ /**
8335
+ * Check if a login key is currently locked out.
8336
+ * Read-only — does not increment the counter.
8337
+ */
8338
+ protected isLoginLocked(key: string, max: number): Promise<boolean>;
8339
+ /**
8340
+ * Record a failed login attempt. Uses getTyped + setTyped (not incr) so that
8341
+ * each write refreshes the TTL — implementing sliding-window behavior.
8342
+ *
8343
+ * Returns `true` if this failure just crossed the lockout threshold.
8344
+ */
8345
+ protected recordFailedLogin(key: string, max: number, windowMs: number): Promise<boolean>;
8291
8346
  /**
8292
8347
  * Validate user credentials and return the user if valid.
8293
8348
  */
@@ -8297,36 +8352,38 @@ declare class SessionService {
8297
8352
  sessionId: string;
8298
8353
  }>;
8299
8354
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
8300
- user: PgStatic<alepha.TObject<{
8301
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8302
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8303
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8304
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8305
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
8306
- username: alepha.TOptional<alepha.TString>;
8307
- email: alepha.TOptional<alepha.TString>;
8308
- phoneNumber: alepha.TOptional<alepha.TString>;
8309
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
8310
- firstName: alepha.TOptional<alepha.TString>;
8311
- lastName: alepha.TOptional<alepha.TString>;
8312
- picture: alepha.TOptional<alepha.TString>;
8313
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8314
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8315
- }>, PgRelationMap<alepha.TObject<{
8316
- id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8317
- version: PgAttr<PgAttr<alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8318
- createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8319
- updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8320
- realm: PgAttr<alepha.TString, typeof PG_DEFAULT>;
8321
- username: alepha.TOptional<alepha.TString>;
8322
- email: alepha.TOptional<alepha.TString>;
8323
- phoneNumber: alepha.TOptional<alepha.TString>;
8324
- roles: PgAttr<alepha.TArray<alepha.TString>, typeof PG_DEFAULT>;
8325
- firstName: alepha.TOptional<alepha.TString>;
8326
- lastName: alepha.TOptional<alepha.TString>;
8327
- picture: alepha.TOptional<alepha.TString>;
8328
- enabled: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8329
- emailVerified: PgAttr<alepha.TBoolean, typeof PG_DEFAULT>;
8355
+ user: PgStatic<_$alepha.TObject<{
8356
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8357
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8358
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8359
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8360
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8361
+ username: _$alepha.TOptional<_$alepha.TString>;
8362
+ email: _$alepha.TOptional<_$alepha.TString>;
8363
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8364
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8365
+ firstName: _$alepha.TOptional<_$alepha.TString>;
8366
+ lastName: _$alepha.TOptional<_$alepha.TString>;
8367
+ picture: _$alepha.TOptional<_$alepha.TString>;
8368
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8369
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8370
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8371
+ }>, PgRelationMap<_$alepha.TObject<{
8372
+ id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8373
+ version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8374
+ createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8375
+ updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8376
+ realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8377
+ username: _$alepha.TOptional<_$alepha.TString>;
8378
+ email: _$alepha.TOptional<_$alepha.TString>;
8379
+ phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8380
+ roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8381
+ firstName: _$alepha.TOptional<_$alepha.TString>;
8382
+ lastName: _$alepha.TOptional<_$alepha.TString>;
8383
+ picture: _$alepha.TOptional<_$alepha.TString>;
8384
+ enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8385
+ emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8386
+ organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8330
8387
  }>>>;
8331
8388
  expiresIn: number;
8332
8389
  sessionId: string;
@@ -8339,6 +8396,7 @@ declare class SessionService {
8339
8396
  firstName?: string | undefined;
8340
8397
  lastName?: string | undefined;
8341
8398
  picture?: string | undefined;
8399
+ organizationId?: string | undefined;
8342
8400
  enabled: boolean;
8343
8401
  id: string;
8344
8402
  version: number;
@@ -8395,7 +8453,7 @@ declare class SessionService {
8395
8453
  *
8396
8454
  * @module alepha.api.users
8397
8455
  */
8398
- declare const AlephaApiUsers: alepha.Service<alepha.Module>;
8456
+ declare const AlephaApiUsers: _$alepha.Service<_$alepha.Module>;
8399
8457
  //#endregion
8400
- export { $realm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, FieldRequirement, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, Realm, RealmAuthSettings, RealmConfig, RealmController, RealmFeatures, RealmOptions, RealmPrimitive, RealmProvider, RealmRepositories, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserAudits, UserBuckets, UserController, UserEntity, UserJobs, UserNotifications, UserParameters, UserQuery, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, realmConfigSchema, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
8458
+ export { $realm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, FieldRequirement, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, Realm, RealmAuthSettings, RealmConfig, RealmController, RealmFeatures, RealmOptions, RealmPrimitive, RealmProvider, RealmRepositories, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserAudits, UserBuckets, UserController, UserEntity, UserJobs, UserNotifications, UserQuery, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, realmConfigSchema, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
8401
8459
  //# sourceMappingURL=index.d.ts.map