alepha 0.14.0 → 0.14.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 (149) hide show
  1. package/README.md +3 -3
  2. package/dist/api/audits/index.d.ts +80 -1
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/audits/index.js.map +1 -1
  5. package/dist/api/files/index.d.ts +80 -1
  6. package/dist/api/files/index.d.ts.map +1 -1
  7. package/dist/api/files/index.js.map +1 -1
  8. package/dist/api/jobs/index.d.ts +236 -157
  9. package/dist/api/jobs/index.d.ts.map +1 -1
  10. package/dist/api/jobs/index.js.map +1 -1
  11. package/dist/api/notifications/index.d.ts +21 -1
  12. package/dist/api/notifications/index.d.ts.map +1 -1
  13. package/dist/api/parameters/index.d.ts +451 -4
  14. package/dist/api/parameters/index.d.ts.map +1 -1
  15. package/dist/api/parameters/index.js.map +1 -1
  16. package/dist/api/users/index.d.ts +252 -249
  17. package/dist/api/users/index.d.ts.map +1 -1
  18. package/dist/api/users/index.js +4 -0
  19. package/dist/api/users/index.js.map +1 -1
  20. package/dist/api/verifications/index.d.ts +128 -128
  21. package/dist/api/verifications/index.d.ts.map +1 -1
  22. package/dist/batch/index.js.map +1 -1
  23. package/dist/cache/core/index.js.map +1 -1
  24. package/dist/cli/index.d.ts +304 -115
  25. package/dist/cli/index.d.ts.map +1 -1
  26. package/dist/cli/index.js +650 -531
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/command/index.d.ts +210 -13
  29. package/dist/command/index.d.ts.map +1 -1
  30. package/dist/command/index.js +306 -69
  31. package/dist/command/index.js.map +1 -1
  32. package/dist/core/index.browser.js.map +1 -1
  33. package/dist/core/index.d.ts +1 -1
  34. package/dist/core/index.d.ts.map +1 -1
  35. package/dist/core/index.js +7 -6
  36. package/dist/core/index.js.map +1 -1
  37. package/dist/core/index.native.js +7 -6
  38. package/dist/core/index.native.js.map +1 -1
  39. package/dist/datetime/index.js.map +1 -1
  40. package/dist/fake/index.js.map +1 -1
  41. package/dist/file/index.d.ts.map +1 -1
  42. package/dist/file/index.js.map +1 -1
  43. package/dist/lock/redis/index.js.map +1 -1
  44. package/dist/logger/index.js.map +1 -1
  45. package/dist/mcp/index.js.map +1 -1
  46. package/dist/orm/index.browser.js +26 -5
  47. package/dist/orm/index.browser.js.map +1 -1
  48. package/dist/orm/index.d.ts +294 -215
  49. package/dist/orm/index.d.ts.map +1 -1
  50. package/dist/orm/index.js +522 -523
  51. package/dist/orm/index.js.map +1 -1
  52. package/dist/queue/redis/index.js +2 -4
  53. package/dist/queue/redis/index.js.map +1 -1
  54. package/dist/redis/index.d.ts +400 -29
  55. package/dist/redis/index.d.ts.map +1 -1
  56. package/dist/redis/index.js +412 -21
  57. package/dist/redis/index.js.map +1 -1
  58. package/dist/retry/index.js.map +1 -1
  59. package/dist/router/index.js.map +1 -1
  60. package/dist/scheduler/index.js.map +1 -1
  61. package/dist/security/index.d.ts.map +1 -1
  62. package/dist/security/index.js.map +1 -1
  63. package/dist/server/auth/index.d.ts +155 -155
  64. package/dist/server/auth/index.js.map +1 -1
  65. package/dist/server/cache/index.js.map +1 -1
  66. package/dist/server/cookies/index.browser.js.map +1 -1
  67. package/dist/server/cookies/index.js.map +1 -1
  68. package/dist/server/core/index.browser.js.map +1 -1
  69. package/dist/server/core/index.d.ts +0 -1
  70. package/dist/server/core/index.d.ts.map +1 -1
  71. package/dist/server/core/index.js.map +1 -1
  72. package/dist/server/helmet/index.d.ts +4 -1
  73. package/dist/server/helmet/index.d.ts.map +1 -1
  74. package/dist/server/helmet/index.js.map +1 -1
  75. package/dist/server/links/index.browser.js.map +1 -1
  76. package/dist/server/links/index.js.map +1 -1
  77. package/dist/server/multipart/index.d.ts.map +1 -1
  78. package/dist/server/multipart/index.js.map +1 -1
  79. package/dist/server/proxy/index.js.map +1 -1
  80. package/dist/server/rate-limit/index.js.map +1 -1
  81. package/dist/server/security/index.d.ts +9 -9
  82. package/dist/server/security/index.js.map +1 -1
  83. package/dist/server/swagger/index.js.map +1 -1
  84. package/dist/thread/index.js.map +1 -1
  85. package/dist/topic/core/index.js.map +1 -1
  86. package/dist/topic/redis/index.js +3 -3
  87. package/dist/topic/redis/index.js.map +1 -1
  88. package/dist/vite/index.js +9 -6
  89. package/dist/vite/index.js.map +1 -1
  90. package/dist/websocket/index.browser.js.map +1 -1
  91. package/dist/websocket/index.d.ts +7 -7
  92. package/dist/websocket/index.js.map +1 -1
  93. package/package.json +3 -3
  94. package/src/api/users/index.ts +4 -0
  95. package/src/cli/apps/AlephaCli.ts +36 -14
  96. package/src/cli/apps/AlephaPackageBuilderCli.ts +5 -1
  97. package/src/cli/assets/appRouterTs.ts +1 -1
  98. package/src/cli/atoms/changelogOptions.ts +45 -0
  99. package/src/cli/commands/{ViteCommands.ts → build.ts} +4 -93
  100. package/src/cli/commands/changelog.ts +244 -0
  101. package/src/cli/commands/clean.ts +14 -0
  102. package/src/cli/commands/{DrizzleCommands.ts → db.ts} +37 -124
  103. package/src/cli/commands/deploy.ts +118 -0
  104. package/src/cli/commands/dev.ts +57 -0
  105. package/src/cli/commands/format.ts +17 -0
  106. package/src/cli/commands/{CoreCommands.ts → init.ts} +2 -40
  107. package/src/cli/commands/lint.ts +17 -0
  108. package/src/cli/commands/root.ts +32 -0
  109. package/src/cli/commands/run.ts +24 -0
  110. package/src/cli/commands/test.ts +42 -0
  111. package/src/cli/commands/typecheck.ts +19 -0
  112. package/src/cli/commands/{VerifyCommands.ts → verify.ts} +1 -13
  113. package/src/cli/defineConfig.ts +24 -0
  114. package/src/cli/index.ts +17 -5
  115. package/src/cli/services/AlephaCliUtils.ts +4 -21
  116. package/src/cli/services/GitMessageParser.ts +77 -0
  117. package/src/command/helpers/EnvUtils.ts +37 -0
  118. package/src/command/index.ts +3 -1
  119. package/src/command/primitives/$command.ts +172 -6
  120. package/src/command/providers/CliProvider.ts +424 -91
  121. package/src/core/Alepha.ts +8 -5
  122. package/src/file/providers/NodeFileSystemProvider.ts +3 -1
  123. package/src/orm/index.browser.ts +1 -1
  124. package/src/orm/index.ts +18 -10
  125. package/src/orm/interfaces/PgQueryWhere.ts +1 -26
  126. package/src/orm/providers/{PostgresTypeProvider.ts → DatabaseTypeProvider.ts} +25 -3
  127. package/src/orm/providers/drivers/BunPostgresProvider.ts +225 -0
  128. package/src/orm/providers/drivers/BunSqliteProvider.ts +180 -0
  129. package/src/orm/providers/drivers/DatabaseProvider.ts +25 -0
  130. package/src/orm/providers/drivers/NodePostgresProvider.ts +0 -25
  131. package/src/orm/services/QueryManager.ts +10 -125
  132. package/src/queue/redis/providers/RedisQueueProvider.ts +2 -7
  133. package/src/redis/index.ts +65 -3
  134. package/src/redis/providers/BunRedisProvider.ts +304 -0
  135. package/src/redis/providers/BunRedisSubscriberProvider.ts +94 -0
  136. package/src/redis/providers/NodeRedisProvider.ts +280 -0
  137. package/src/redis/providers/NodeRedisSubscriberProvider.ts +94 -0
  138. package/src/redis/providers/RedisProvider.ts +134 -140
  139. package/src/redis/providers/RedisSubscriberProvider.ts +58 -49
  140. package/src/server/core/providers/BunHttpServerProvider.ts +0 -3
  141. package/src/server/core/providers/ServerBodyParserProvider.ts +3 -1
  142. package/src/server/core/providers/ServerProvider.ts +7 -4
  143. package/src/server/multipart/providers/ServerMultipartProvider.ts +3 -1
  144. package/src/server/proxy/providers/ServerProxyProvider.ts +1 -1
  145. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  146. package/src/vite/tasks/buildServer.ts +1 -0
  147. package/src/cli/commands/BiomeCommands.ts +0 -29
  148. package/src/cli/commands/ChangelogCommands.ts +0 -389
  149. package/src/orm/services/PgJsonQueryManager.ts +0 -511
@@ -2,10 +2,10 @@ import * as alepha1 from "alepha";
2
2
  import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import * as alepha_api_notifications0 from "alepha/api/notifications";
4
4
  import { VerificationController } from "alepha/api/verifications";
5
- import * as alepha_orm204 from "alepha/orm";
5
+ import * as alepha_orm179 from "alepha/orm";
6
6
  import { Page as Page$1, Repository } from "alepha/orm";
7
- import * as alepha_server0 from "alepha/server";
8
- import * as alepha_logger1 from "alepha/logger";
7
+ import * as alepha_server14 from "alepha/server";
8
+ import * as alepha_logger0 from "alepha/logger";
9
9
  import * as alepha_bucket0 from "alepha/bucket";
10
10
  import * as alepha_cache0 from "alepha/cache";
11
11
  import { DateTime, DateTimeProvider } from "alepha/datetime";
@@ -14,6 +14,10 @@ import * as alepha_server_links0 from "alepha/server/links";
14
14
  import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
15
15
  import { FileSystemProvider } from "alepha/file";
16
16
  import { FileController } from "alepha/api/files";
17
+ import "bun";
18
+ import "bun:sqlite";
19
+ import "drizzle-orm/bun-sql";
20
+ import "drizzle-orm/bun-sqlite";
17
21
  import "drizzle-orm/d1";
18
22
  import * as drizzle_orm0 from "drizzle-orm";
19
23
  import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
@@ -22,8 +26,8 @@ import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, Pg
22
26
  import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
23
27
  import * as DrizzleKit from "drizzle-kit/api";
24
28
  import "alepha/retry";
25
- import "drizzle-orm/sqlite-core";
26
29
  import "alepha/lock";
30
+ import "drizzle-orm/sqlite-core";
27
31
  import "drizzle-orm/postgres-js";
28
32
  import "postgres";
29
33
 
@@ -55,12 +59,12 @@ declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
55
59
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
56
60
  //#endregion
57
61
  //#region ../../src/api/users/entities/identities.d.ts
58
- declare const identities: alepha_orm204.EntityPrimitive<alepha1.TObject<{
59
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
60
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
61
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
62
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
63
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
62
+ declare const identities: alepha_orm179.EntityPrimitive<alepha1.TObject<{
63
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
64
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
65
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
66
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
67
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
64
68
  password: alepha1.TOptional<alepha1.TString>;
65
69
  provider: alepha1.TString;
66
70
  providerUserId: alepha1.TOptional<alepha1.TString>;
@@ -69,13 +73,13 @@ declare const identities: alepha_orm204.EntityPrimitive<alepha1.TObject<{
69
73
  type IdentityEntity = Static<typeof identities.schema>;
70
74
  //#endregion
71
75
  //#region ../../src/api/users/entities/sessions.d.ts
72
- declare const sessions: alepha_orm204.EntityPrimitive<alepha1.TObject<{
73
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
74
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
75
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
76
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
76
+ declare const sessions: alepha_orm179.EntityPrimitive<alepha1.TObject<{
77
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
78
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
79
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
80
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
77
81
  refreshToken: alepha1.TString;
78
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
82
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
79
83
  expiresAt: alepha1.TString;
80
84
  ip: alepha1.TOptional<alepha1.TString>;
81
85
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -88,21 +92,21 @@ type SessionEntity = Static<typeof sessions.schema>;
88
92
  //#endregion
89
93
  //#region ../../src/api/users/entities/users.d.ts
90
94
  declare const DEFAULT_USER_REALM_NAME = "default";
91
- declare const users: alepha_orm204.EntityPrimitive<alepha1.TObject<{
92
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
93
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
94
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
95
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
96
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
95
+ declare const users: alepha_orm179.EntityPrimitive<alepha1.TObject<{
96
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
97
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
98
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
99
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
100
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
97
101
  username: alepha1.TOptional<alepha1.TString>;
98
102
  email: alepha1.TOptional<alepha1.TString>;
99
103
  phoneNumber: alepha1.TOptional<alepha1.TString>;
100
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
104
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
101
105
  firstName: alepha1.TOptional<alepha1.TString>;
102
106
  lastName: alepha1.TOptional<alepha1.TString>;
103
107
  picture: alepha1.TOptional<alepha1.TString>;
104
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
105
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
108
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
109
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
106
110
  }>>;
107
111
  type UserEntity = Static<typeof users.schema>;
108
112
  //#endregion
@@ -170,23 +174,23 @@ interface UserRealm {
170
174
  declare class UserRealmProvider {
171
175
  protected readonly alepha: Alepha;
172
176
  protected readonly defaultIdentities: Repository<alepha1.TObject<{
173
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
174
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
175
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
176
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
177
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
177
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
178
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
179
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
180
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
181
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
178
182
  password: alepha1.TOptional<alepha1.TString>;
179
183
  provider: alepha1.TString;
180
184
  providerUserId: alepha1.TOptional<alepha1.TString>;
181
185
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
182
186
  }>>;
183
187
  protected readonly defaultSessions: Repository<alepha1.TObject<{
184
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
185
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
186
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
187
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
188
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
189
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
190
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
191
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
188
192
  refreshToken: alepha1.TString;
189
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
193
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
190
194
  expiresAt: alepha1.TString;
191
195
  ip: alepha1.TOptional<alepha1.TString>;
192
196
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -196,20 +200,20 @@ declare class UserRealmProvider {
196
200
  }>>;
197
201
  }>>;
198
202
  protected readonly defaultUsers: Repository<alepha1.TObject<{
199
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
200
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
201
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
202
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
203
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
203
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
204
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
205
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
206
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
207
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
204
208
  username: alepha1.TOptional<alepha1.TString>;
205
209
  email: alepha1.TOptional<alepha1.TString>;
206
210
  phoneNumber: alepha1.TOptional<alepha1.TString>;
207
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
211
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
208
212
  firstName: alepha1.TOptional<alepha1.TString>;
209
213
  lastName: alepha1.TOptional<alepha1.TString>;
210
214
  picture: alepha1.TOptional<alepha1.TString>;
211
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
212
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
215
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
216
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
213
217
  }>>;
214
218
  protected realms: Map<string, UserRealm>;
215
219
  avatars: alepha_bucket0.BucketPrimitive;
@@ -236,14 +240,14 @@ type IdentityQuery = Static<typeof identityQuerySchema>;
236
240
  //#endregion
237
241
  //#region ../../src/api/users/services/IdentityService.d.ts
238
242
  declare class IdentityService {
239
- protected readonly log: alepha_logger1.Logger;
243
+ protected readonly log: alepha_logger0.Logger;
240
244
  protected readonly userRealmProvider: UserRealmProvider;
241
- identities(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
242
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
243
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
244
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
245
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
246
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
245
+ identities(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
246
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
247
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
248
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
249
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
250
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
247
251
  password: alepha1.TOptional<alepha1.TString>;
248
252
  provider: alepha1.TString;
249
253
  providerUserId: alepha1.TOptional<alepha1.TString>;
@@ -271,7 +275,7 @@ declare class IdentityController {
271
275
  /**
272
276
  * Find identities with pagination and filtering.
273
277
  */
274
- readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
278
+ readonly findIdentities: alepha_server14.ActionPrimitiveFn<{
275
279
  query: alepha1.TObject<{
276
280
  page: alepha1.TOptional<alepha1.TInteger>;
277
281
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -281,11 +285,11 @@ declare class IdentityController {
281
285
  userRealmName: alepha1.TOptional<alepha1.TString>;
282
286
  }>;
283
287
  response: alepha1.TPage<alepha1.TObject<{
284
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
285
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
286
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
287
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
288
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
288
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
289
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
290
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
291
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
292
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
289
293
  provider: alepha1.TString;
290
294
  providerUserId: alepha1.TOptional<alepha1.TString>;
291
295
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
@@ -294,7 +298,7 @@ declare class IdentityController {
294
298
  /**
295
299
  * Get an identity by ID.
296
300
  */
297
- readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
301
+ readonly getIdentity: alepha_server14.ActionPrimitiveFn<{
298
302
  params: alepha1.TObject<{
299
303
  id: alepha1.TString;
300
304
  }>;
@@ -302,11 +306,11 @@ declare class IdentityController {
302
306
  userRealmName: alepha1.TOptional<alepha1.TString>;
303
307
  }>;
304
308
  response: alepha1.TObject<{
305
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
306
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
307
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
308
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
309
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
309
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
310
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
311
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
312
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
313
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
310
314
  provider: alepha1.TString;
311
315
  providerUserId: alepha1.TOptional<alepha1.TString>;
312
316
  providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
@@ -315,7 +319,7 @@ declare class IdentityController {
315
319
  /**
316
320
  * Delete an identity.
317
321
  */
318
- readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
322
+ readonly deleteIdentity: alepha_server14.ActionPrimitiveFn<{
319
323
  params: alepha1.TObject<{
320
324
  id: alepha1.TString;
321
325
  }>;
@@ -341,15 +345,15 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
341
345
  //#endregion
342
346
  //#region ../../src/api/users/services/SessionCrudService.d.ts
343
347
  declare class SessionCrudService {
344
- protected readonly log: alepha_logger1.Logger;
348
+ protected readonly log: alepha_logger0.Logger;
345
349
  protected readonly userRealmProvider: UserRealmProvider;
346
- sessions(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
347
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
348
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
349
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
350
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
350
+ sessions(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
351
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
352
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
353
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
354
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
351
355
  refreshToken: alepha1.TString;
352
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
356
+ userId: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_REF>;
353
357
  expiresAt: alepha1.TString;
354
358
  ip: alepha1.TOptional<alepha1.TString>;
355
359
  userAgent: alepha1.TOptional<alepha1.TObject<{
@@ -380,7 +384,7 @@ declare class SessionController {
380
384
  /**
381
385
  * Find sessions with pagination and filtering.
382
386
  */
383
- readonly findSessions: alepha_server0.ActionPrimitiveFn<{
387
+ readonly findSessions: alepha_server14.ActionPrimitiveFn<{
384
388
  query: alepha1.TObject<{
385
389
  page: alepha1.TOptional<alepha1.TInteger>;
386
390
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -407,7 +411,7 @@ declare class SessionController {
407
411
  /**
408
412
  * Get a session by ID.
409
413
  */
410
- readonly getSession: alepha_server0.ActionPrimitiveFn<{
414
+ readonly getSession: alepha_server14.ActionPrimitiveFn<{
411
415
  params: alepha1.TObject<{
412
416
  id: alepha1.TString;
413
417
  }>;
@@ -433,7 +437,7 @@ declare class SessionController {
433
437
  /**
434
438
  * Delete a session.
435
439
  */
436
- readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
440
+ readonly deleteSession: alepha_server14.ActionPrimitiveFn<{
437
441
  params: alepha1.TObject<{
438
442
  id: alepha1.TString;
439
443
  }>;
@@ -1138,7 +1142,7 @@ type PgRelation<Base extends TObject> = {
1138
1142
  //#region ../../src/orm/interfaces/PgQueryWhere.d.ts
1139
1143
  type PgQueryWhere<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = (PgQueryWhereOperators<T> & PgQueryWhereConditions<T>) | (PgQueryWhereRelations<Relations> & PgQueryWhereOperators<T> & PgQueryWhereConditions<T, Relations>);
1140
1144
  type PgQueryWhereOrSQL<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = SQLWrapper | PgQueryWhere<T, Relations>;
1141
- type PgQueryWhereOperators<T extends TObject> = { [Key in keyof Static<T>]?: FilterOperators<Static<T>[Key]> | Static<T>[Key] | (Static<T>[Key] extends object ? NestedJsonbQuery<Static<T>[Key]> : never) };
1145
+ type PgQueryWhereOperators<T extends TObject> = { [Key in keyof Static<T>]?: FilterOperators<Static<T>[Key]> | Static<T>[Key] };
1142
1146
  type PgQueryWhereConditions<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = {
1143
1147
  /**
1144
1148
  * Combine a list of conditions with the `and` operator. Conditions
@@ -1209,10 +1213,6 @@ type PgQueryWhereConditions<T extends TObject, Relations extends PgRelationMap<T
1209
1213
  exists?: SQLWrapper;
1210
1214
  };
1211
1215
  type PgQueryWhereRelations<Relations extends PgRelationMap<TObject> | undefined = undefined> = Relations extends PgRelationMap<TObject> ? { [K in keyof Relations]?: PgQueryWhere<Relations[K]["join"]["schema"], Relations[K]["with"]> } : {};
1212
- /**
1213
- * Recursively allow nested queries for JSONB object/array types
1214
- */
1215
- type NestedJsonbQuery<T> = T extends object ? T extends Array<infer U> ? U extends object ? { [K in keyof U]?: FilterOperators<U[K]> | U[K] } : FilterOperators<U> | U : { [K in keyof T]?: FilterOperators<T[K]> | T[K] | (T[K] extends object ? NestedJsonbQuery<T[K]> : never) } : FilterOperators<T> | T;
1216
1216
  //#endregion
1217
1217
  //#region ../../src/orm/helpers/pgAttr.d.ts
1218
1218
  /**
@@ -1303,7 +1303,7 @@ declare abstract class ModelBuilder {
1303
1303
  //#endregion
1304
1304
  //#region ../../src/orm/providers/DrizzleKitProvider.d.ts
1305
1305
  declare class DrizzleKitProvider {
1306
- protected readonly log: alepha_logger1.Logger;
1306
+ protected readonly log: alepha_logger0.Logger;
1307
1307
  protected readonly alepha: Alepha;
1308
1308
  /**
1309
1309
  * Synchronize database with current schema definitions.
@@ -1351,7 +1351,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
1351
1351
  type SQLLike = SQLWrapper | string;
1352
1352
  declare abstract class DatabaseProvider {
1353
1353
  protected readonly alepha: Alepha;
1354
- protected readonly log: alepha_logger1.Logger;
1354
+ protected readonly log: alepha_logger0.Logger;
1355
1355
  protected abstract readonly builder: ModelBuilder;
1356
1356
  protected abstract readonly kit: DrizzleKitProvider;
1357
1357
  abstract readonly db: PgDatabase<any>;
@@ -1396,84 +1396,16 @@ declare abstract class DatabaseProvider {
1396
1396
  * MUST be implemented by each provider
1397
1397
  */
1398
1398
  protected abstract executeMigrations(migrationsFolder: string): Promise<void>;
1399
- }
1400
- //#endregion
1401
- //#region ../../src/orm/services/PgJsonQueryManager.d.ts
1402
- /**
1403
- * Manages JSONB query generation for nested object and array queries in PostgreSQL.
1404
- * This class handles complex nested queries using PostgreSQL's JSONB operators.
1405
- */
1406
- declare class PgJsonQueryManager {
1407
- /**
1408
- * Check if a query contains nested JSONB queries.
1409
- * A nested query is when the value is an object with operator keys.
1410
- */
1411
- hasNestedQuery(where: PgQueryWhere<TObject>): boolean;
1412
1399
  /**
1413
- * Build a JSONB query condition for nested object queries.
1414
- * Supports deep nesting like: { profile: { contact: { email: { eq: "test@example.com" } } } }
1415
- *
1416
- * @param column The JSONB column
1417
- * @param path The path to the nested property (e.g., ['profile', 'contact', 'email'])
1418
- * @param operator The filter operator (e.g., { eq: "test@example.com" })
1419
- * @param dialect Database dialect (postgresql or sqlite)
1420
- * @param columnSchema Optional schema of the JSON column for type inference
1421
- * @returns SQL condition
1400
+ * For testing purposes, generate a unique schema name.
1401
+ * The schema name will be generated based on the current date and time.
1402
+ * It will be in the format of `test_YYYYMMDD_HHMMSS_randomSuffix`.
1422
1403
  */
1423
- buildJsonbCondition(column: PgColumn, path: string[], operator: FilterOperators<any>, dialect: "postgresql" | "sqlite", columnSchema?: any): SQL | undefined;
1424
- /**
1425
- * Build JSONB array query conditions.
1426
- * Supports queries like: { addresses: { city: { eq: "Wonderland" } } }
1427
- * which translates to: EXISTS (SELECT 1 FROM jsonb_array_elements(addresses) elem WHERE elem->>'city' = 'Wonderland')
1428
- *
1429
- * @param dialect Database dialect (postgresql or sqlite)
1430
- * Note: SQLite array queries are not yet supported
1431
- */
1432
- buildJsonbArrayCondition(column: PgColumn, path: string[], arrayPath: string, operator: FilterOperators<any>, dialect: "postgresql" | "sqlite"): SQL | undefined;
1433
- /**
1434
- * Apply a filter operator to a JSONB value.
1435
- * @param dialect Database dialect for appropriate casting syntax
1436
- * @param fieldType Optional field type from schema for smart casting
1437
- */
1438
- private applyOperatorToJsonValue;
1439
- /**
1440
- * Parse a nested query object and extract the path and operator.
1441
- * For example: { profile: { contact: { email: { eq: "test@example.com" } } } }
1442
- * Returns: { path: ['profile', 'contact', 'email'], operator: { eq: "test@example.com" } }
1443
- */
1444
- parseNestedQuery(nestedQuery: any, currentPath?: string[]): Array<{
1445
- path: string[];
1446
- operator: FilterOperators<any>;
1447
- }>;
1448
- /**
1449
- * Determine if a property is a JSONB column based on the schema.
1450
- * A column is JSONB if it's defined as an object or array in the TypeBox schema.
1451
- */
1452
- isJsonbColumn(schema: TObject, columnName: string): boolean;
1453
- /**
1454
- * Check if an array property contains primitive types (string, number, boolean, etc.)
1455
- * rather than objects. Primitive arrays should use native Drizzle operators.
1456
- * @returns true if the array contains primitives, false if it contains objects
1457
- */
1458
- isPrimitiveArray(schema: TObject, columnName: string): boolean;
1459
- /**
1460
- * Get the type of a field by navigating through a schema path.
1461
- * Used for smart type casting in SQL queries.
1462
- *
1463
- * @param columnSchema The schema of the JSON column (e.g., t.object({ age: t.integer() }))
1464
- * @param path The path to navigate (e.g., ['contact', 'email'])
1465
- * @returns The type string (e.g., 'integer', 'number', 'string') or undefined if not found
1466
- */
1467
- private getFieldType;
1468
- /**
1469
- * Check if a nested path points to an array property.
1470
- */
1471
- isArrayProperty(schema: TObject, path: string[]): boolean;
1404
+ protected generateTestSchemaName(): string;
1472
1405
  }
1473
1406
  //#endregion
1474
1407
  //#region ../../src/orm/services/QueryManager.d.ts
1475
1408
  declare class QueryManager {
1476
- protected readonly jsonQueryManager: PgJsonQueryManager;
1477
1409
  protected readonly alepha: Alepha;
1478
1410
  /**
1479
1411
  * Convert a query object to a SQL query.
@@ -1484,10 +1416,6 @@ declare class QueryManager {
1484
1416
  joins?: PgJoin[];
1485
1417
  dialect: "postgresql" | "sqlite";
1486
1418
  }): SQL | undefined;
1487
- /**
1488
- * Build a JSONB query for nested object/array queries.
1489
- */
1490
- protected buildJsonbQuery(column: PgColumn, nestedQuery: any, schema: TObject, columnName: string, dialect: "postgresql" | "sqlite"): SQL | undefined;
1491
1419
  /**
1492
1420
  * Check if an object has any filter operator properties.
1493
1421
  */
@@ -1848,6 +1776,81 @@ interface StatementOptions {
1848
1776
  now?: DateTime | string;
1849
1777
  }
1850
1778
  //#endregion
1779
+ //#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
1780
+ declare module "alepha" {
1781
+ interface Env extends Partial<Static<typeof envSchema$1>> {}
1782
+ }
1783
+ declare const envSchema$1: alepha1.TObject<{
1784
+ /**
1785
+ * Main configuration for database connection.
1786
+ * Accept a string in the format of a Postgres connection URL.
1787
+ * Example: postgres://user:password@localhost:5432/database
1788
+ * or
1789
+ * Example: postgres://user:password@localhost:5432/database?sslmode=require
1790
+ */
1791
+ DATABASE_URL: alepha1.TOptional<alepha1.TString>;
1792
+ /**
1793
+ * In addition to the DATABASE_URL, you can specify the postgres schema name.
1794
+ */
1795
+ POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
1796
+ }>;
1797
+ /**
1798
+ * Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
1799
+ *
1800
+ * This provider uses Bun's built-in SQL class for PostgreSQL connections,
1801
+ * which provides excellent performance on the Bun runtime.
1802
+ *
1803
+ * @example
1804
+ * ```ts
1805
+ * // Set DATABASE_URL environment variable
1806
+ * // DATABASE_URL=postgres://user:password@localhost:5432/database
1807
+ *
1808
+ * // Or configure programmatically
1809
+ * alepha.with({
1810
+ * provide: DatabaseProvider,
1811
+ * use: BunPostgresProvider,
1812
+ * });
1813
+ * ```
1814
+ */
1815
+ //#endregion
1816
+ //#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
1817
+ /**
1818
+ * Configuration options for the Bun SQLite database provider.
1819
+ */
1820
+ declare const bunSqliteOptions: alepha1.Atom<alepha1.TObject<{
1821
+ path: alepha1.TOptional<alepha1.TString>;
1822
+ }>, "alepha.postgres.bun-sqlite.options">;
1823
+ type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
1824
+ declare module "alepha" {
1825
+ interface State {
1826
+ [bunSqliteOptions.key]: BunSqliteProviderOptions;
1827
+ }
1828
+ }
1829
+ /**
1830
+ * Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
1831
+ *
1832
+ * This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
1833
+ * which provides excellent performance on the Bun runtime.
1834
+ *
1835
+ * @example
1836
+ * ```ts
1837
+ * // Set DATABASE_URL environment variable
1838
+ * // DATABASE_URL=sqlite://./my-database.db
1839
+ *
1840
+ * // Or configure programmatically
1841
+ * alepha.with({
1842
+ * provide: DatabaseProvider,
1843
+ * use: BunSqliteProvider,
1844
+ * });
1845
+ *
1846
+ * // Or use options atom
1847
+ * alepha.store.mut(bunSqliteOptions, (old) => ({
1848
+ * ...old,
1849
+ * path: ":memory:",
1850
+ * }));
1851
+ * ```
1852
+ */
1853
+ //#endregion
1851
1854
  //#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
1852
1855
  declare module "alepha" {
1853
1856
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -2025,7 +2028,7 @@ interface PasswordResetIntent {
2025
2028
  expiresAt: string;
2026
2029
  }
2027
2030
  declare class CredentialService {
2028
- protected readonly log: alepha_logger1.Logger;
2031
+ protected readonly log: alepha_logger0.Logger;
2029
2032
  protected readonly cryptoProvider: CryptoProvider;
2030
2033
  protected readonly dateTimeProvider: DateTimeProvider;
2031
2034
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2166,7 +2169,7 @@ interface RegistrationIntent {
2166
2169
  expiresAt: string;
2167
2170
  }
2168
2171
  declare class RegistrationService {
2169
- protected readonly log: alepha_logger1.Logger;
2172
+ protected readonly log: alepha_logger0.Logger;
2170
2173
  protected readonly dateTimeProvider: DateTimeProvider;
2171
2174
  protected readonly cryptoProvider: CryptoProvider;
2172
2175
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2211,32 +2214,32 @@ declare class RegistrationService {
2211
2214
  //#endregion
2212
2215
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
2213
2216
  declare const createUserSchema: alepha1.TObject<{
2214
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2215
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2216
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2217
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2218
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2219
2217
  username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2218
+ email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2220
2219
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2221
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2222
2220
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2223
2221
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2224
2222
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2225
2223
  enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2226
2224
  emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2225
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2226
+ id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2227
+ version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2228
+ createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2229
+ updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2227
2230
  }>;
2228
2231
  type CreateUser = Static<typeof createUserSchema>;
2229
2232
  //#endregion
2230
2233
  //#region ../../src/api/users/schemas/updateUserSchema.d.ts
2231
2234
  declare const updateUserSchema: alepha1.TObject<{
2232
2235
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2233
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2234
2236
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2235
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2236
2237
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2237
2238
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2238
2239
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2239
2240
  enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2241
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2242
+ realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2240
2243
  }>;
2241
2244
  type UpdateUser = Static<typeof updateUserSchema>;
2242
2245
  //#endregion
@@ -2255,25 +2258,25 @@ type UserQuery = Static<typeof userQuerySchema>;
2255
2258
  //#endregion
2256
2259
  //#region ../../src/api/users/services/UserService.d.ts
2257
2260
  declare class UserService {
2258
- protected readonly log: alepha_logger1.Logger;
2261
+ protected readonly log: alepha_logger0.Logger;
2259
2262
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
2260
2263
  protected readonly userNotifications: UserNotifications;
2261
2264
  protected readonly userRealmProvider: UserRealmProvider;
2262
- users(userRealmName?: string): alepha_orm204.Repository<alepha1.TObject<{
2263
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2264
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2265
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2266
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2267
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2265
+ users(userRealmName?: string): alepha_orm179.Repository<alepha1.TObject<{
2266
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2267
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2268
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2269
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2270
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2268
2271
  username: alepha1.TOptional<alepha1.TString>;
2269
2272
  email: alepha1.TOptional<alepha1.TString>;
2270
2273
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2271
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2274
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2272
2275
  firstName: alepha1.TOptional<alepha1.TString>;
2273
2276
  lastName: alepha1.TOptional<alepha1.TString>;
2274
2277
  picture: alepha1.TOptional<alepha1.TString>;
2275
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2276
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2278
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2279
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2277
2280
  }>>;
2278
2281
  /**
2279
2282
  * Request email verification for a user.
@@ -2325,7 +2328,7 @@ declare class UserController {
2325
2328
  * Phase 1: Create a registration intent.
2326
2329
  * Validates data, creates verification sessions, and stores intent in cache.
2327
2330
  */
2328
- readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2331
+ readonly createRegistrationIntent: alepha_server14.ActionPrimitiveFn<{
2329
2332
  body: alepha1.TObject<{
2330
2333
  password: alepha1.TString;
2331
2334
  username: alepha1.TOptional<alepha1.TString>;
@@ -2349,7 +2352,7 @@ declare class UserController {
2349
2352
  /**
2350
2353
  * Find users with pagination and filtering.
2351
2354
  */
2352
- readonly findUsers: alepha_server0.ActionPrimitiveFn<{
2355
+ readonly findUsers: alepha_server14.ActionPrimitiveFn<{
2353
2356
  query: alepha1.TObject<{
2354
2357
  page: alepha1.TOptional<alepha1.TInteger>;
2355
2358
  size: alepha1.TOptional<alepha1.TInteger>;
@@ -2362,26 +2365,26 @@ declare class UserController {
2362
2365
  userRealmName: alepha1.TOptional<alepha1.TString>;
2363
2366
  }>;
2364
2367
  response: alepha1.TPage<alepha1.TObject<{
2365
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2366
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2367
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2368
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2369
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2368
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2369
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2370
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2371
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2372
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2370
2373
  username: alepha1.TOptional<alepha1.TString>;
2371
2374
  email: alepha1.TOptional<alepha1.TString>;
2372
2375
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2373
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2376
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2374
2377
  firstName: alepha1.TOptional<alepha1.TString>;
2375
2378
  lastName: alepha1.TOptional<alepha1.TString>;
2376
2379
  picture: alepha1.TOptional<alepha1.TString>;
2377
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2378
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2380
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2381
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2379
2382
  }>>;
2380
2383
  }>;
2381
2384
  /**
2382
2385
  * Get a user by ID.
2383
2386
  */
2384
- readonly getUser: alepha_server0.ActionPrimitiveFn<{
2387
+ readonly getUser: alepha_server14.ActionPrimitiveFn<{
2385
2388
  params: alepha1.TObject<{
2386
2389
  id: alepha1.TString;
2387
2390
  }>;
@@ -2389,66 +2392,66 @@ declare class UserController {
2389
2392
  userRealmName: alepha1.TOptional<alepha1.TString>;
2390
2393
  }>;
2391
2394
  response: alepha1.TObject<{
2392
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2393
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2394
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2395
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2396
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2395
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2396
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2397
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2398
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2399
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2397
2400
  username: alepha1.TOptional<alepha1.TString>;
2398
2401
  email: alepha1.TOptional<alepha1.TString>;
2399
2402
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2400
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2403
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2401
2404
  firstName: alepha1.TOptional<alepha1.TString>;
2402
2405
  lastName: alepha1.TOptional<alepha1.TString>;
2403
2406
  picture: alepha1.TOptional<alepha1.TString>;
2404
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2405
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2407
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2408
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2406
2409
  }>;
2407
2410
  }>;
2408
2411
  /**
2409
2412
  * Create a new user.
2410
2413
  */
2411
- readonly createUser: alepha_server0.ActionPrimitiveFn<{
2414
+ readonly createUser: alepha_server14.ActionPrimitiveFn<{
2412
2415
  query: alepha1.TObject<{
2413
2416
  userRealmName: alepha1.TOptional<alepha1.TString>;
2414
2417
  }>;
2415
2418
  body: alepha1.TObject<{
2416
- id: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
2417
- version: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
2418
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2419
- createdAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2420
- updatedAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2421
2419
  username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2420
+ email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2422
2421
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2423
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2424
2422
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2425
2423
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2426
2424
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2427
- enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2428
- emailVerified: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2425
+ enabled: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2426
+ emailVerified: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2427
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2428
+ id: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>>;
2429
+ version: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>>;
2430
+ createdAt: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>>;
2431
+ updatedAt: alepha1.TOptional<alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>>;
2429
2432
  }>;
2430
2433
  response: alepha1.TObject<{
2431
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2432
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2433
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2434
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2435
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2434
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2435
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2436
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2437
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2438
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2436
2439
  username: alepha1.TOptional<alepha1.TString>;
2437
2440
  email: alepha1.TOptional<alepha1.TString>;
2438
2441
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2439
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2442
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2440
2443
  firstName: alepha1.TOptional<alepha1.TString>;
2441
2444
  lastName: alepha1.TOptional<alepha1.TString>;
2442
2445
  picture: alepha1.TOptional<alepha1.TString>;
2443
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2444
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2446
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2447
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2445
2448
  }>;
2446
2449
  }>;
2447
2450
  /**
2448
2451
  * Phase 2: Complete registration using an intent.
2449
2452
  * Validates verification codes and creates the user.
2450
2453
  */
2451
- readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2454
+ readonly createUserFromIntent: alepha_server14.ActionPrimitiveFn<{
2452
2455
  body: alepha1.TObject<{
2453
2456
  intentId: alepha1.TString;
2454
2457
  emailCode: alepha1.TOptional<alepha1.TString>;
@@ -2456,26 +2459,26 @@ declare class UserController {
2456
2459
  captchaToken: alepha1.TOptional<alepha1.TString>;
2457
2460
  }>;
2458
2461
  response: alepha1.TObject<{
2459
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2460
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2461
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2462
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2463
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2462
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2463
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2464
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2465
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2466
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2464
2467
  username: alepha1.TOptional<alepha1.TString>;
2465
2468
  email: alepha1.TOptional<alepha1.TString>;
2466
2469
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2467
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2470
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2468
2471
  firstName: alepha1.TOptional<alepha1.TString>;
2469
2472
  lastName: alepha1.TOptional<alepha1.TString>;
2470
2473
  picture: alepha1.TOptional<alepha1.TString>;
2471
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2472
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2474
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2475
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2473
2476
  }>;
2474
2477
  }>;
2475
2478
  /**
2476
2479
  * Update a user.
2477
2480
  */
2478
- readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2481
+ readonly updateUser: alepha_server14.ActionPrimitiveFn<{
2479
2482
  params: alepha1.TObject<{
2480
2483
  id: alepha1.TString;
2481
2484
  }>;
@@ -2484,35 +2487,35 @@ declare class UserController {
2484
2487
  }>;
2485
2488
  body: alepha1.TObject<{
2486
2489
  email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2487
- realm: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>>;
2488
2490
  phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2489
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2490
2491
  firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2491
2492
  lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2492
2493
  picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2493
- enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2494
+ enabled: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>>;
2495
+ roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2496
+ realm: alepha1.TOptional<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>>;
2494
2497
  }>;
2495
2498
  response: alepha1.TObject<{
2496
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2497
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2498
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2499
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2500
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2499
+ id: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_PRIMARY_KEY>, typeof alepha_orm179.PG_DEFAULT>;
2500
+ version: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TInteger, typeof alepha_orm179.PG_VERSION>, typeof alepha_orm179.PG_DEFAULT>;
2501
+ createdAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_CREATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2502
+ updatedAt: alepha_orm179.PgAttr<alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_UPDATED_AT>, typeof alepha_orm179.PG_DEFAULT>;
2503
+ realm: alepha_orm179.PgAttr<alepha1.TString, typeof alepha_orm179.PG_DEFAULT>;
2501
2504
  username: alepha1.TOptional<alepha1.TString>;
2502
2505
  email: alepha1.TOptional<alepha1.TString>;
2503
2506
  phoneNumber: alepha1.TOptional<alepha1.TString>;
2504
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2507
+ roles: alepha_orm179.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm179.PG_DEFAULT>;
2505
2508
  firstName: alepha1.TOptional<alepha1.TString>;
2506
2509
  lastName: alepha1.TOptional<alepha1.TString>;
2507
2510
  picture: alepha1.TOptional<alepha1.TString>;
2508
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2509
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2511
+ enabled: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2512
+ emailVerified: alepha_orm179.PgAttr<alepha1.TBoolean, typeof alepha_orm179.PG_DEFAULT>;
2510
2513
  }>;
2511
2514
  }>;
2512
2515
  /**
2513
2516
  * Delete a user.
2514
2517
  */
2515
- readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2518
+ readonly deleteUser: alepha_server14.ActionPrimitiveFn<{
2516
2519
  params: alepha1.TObject<{
2517
2520
  id: alepha1.TString;
2518
2521
  }>;
@@ -2529,7 +2532,7 @@ declare class UserController {
2529
2532
  * Phase 1: Create a password reset intent.
2530
2533
  * Validates email, sends verification code, and stores intent in cache.
2531
2534
  */
2532
- readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2535
+ readonly createPasswordResetIntent: alepha_server14.ActionPrimitiveFn<{
2533
2536
  query: alepha1.TObject<{
2534
2537
  userRealmName: alepha1.TOptional<alepha1.TString>;
2535
2538
  }>;
@@ -2545,7 +2548,7 @@ declare class UserController {
2545
2548
  * Phase 2: Complete password reset using an intent.
2546
2549
  * Validates verification code, updates password, and invalidates sessions.
2547
2550
  */
2548
- readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2551
+ readonly completePasswordReset: alepha_server14.ActionPrimitiveFn<{
2549
2552
  body: alepha1.TObject<{
2550
2553
  intentId: alepha1.TString;
2551
2554
  code: alepha1.TString;
@@ -2560,7 +2563,7 @@ declare class UserController {
2560
2563
  /**
2561
2564
  * @deprecated Use createPasswordResetIntent instead
2562
2565
  */
2563
- requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2566
+ requestPasswordReset: alepha_server14.ActionPrimitiveFn<{
2564
2567
  query: alepha1.TObject<{
2565
2568
  userRealmName: alepha1.TOptional<alepha1.TString>;
2566
2569
  }>;
@@ -2575,7 +2578,7 @@ declare class UserController {
2575
2578
  /**
2576
2579
  * @deprecated Use completePasswordReset instead
2577
2580
  */
2578
- validateResetToken: alepha_server0.ActionPrimitiveFn<{
2581
+ validateResetToken: alepha_server14.ActionPrimitiveFn<{
2579
2582
  query: alepha1.TObject<{
2580
2583
  email: alepha1.TString;
2581
2584
  token: alepha1.TString;
@@ -2589,7 +2592,7 @@ declare class UserController {
2589
2592
  /**
2590
2593
  * @deprecated Use completePasswordReset instead
2591
2594
  */
2592
- resetPassword: alepha_server0.ActionPrimitiveFn<{
2595
+ resetPassword: alepha_server14.ActionPrimitiveFn<{
2593
2596
  query: alepha1.TObject<{
2594
2597
  userRealmName: alepha1.TOptional<alepha1.TString>;
2595
2598
  }>;
@@ -2609,7 +2612,7 @@ declare class UserController {
2609
2612
  * @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
2610
2613
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
2611
2614
  */
2612
- requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2615
+ requestEmailVerification: alepha_server14.ActionPrimitiveFn<{
2613
2616
  query: alepha1.TObject<{
2614
2617
  userRealmName: alepha1.TOptional<alepha1.TString>;
2615
2618
  method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
@@ -2627,7 +2630,7 @@ declare class UserController {
2627
2630
  * Verify email with a valid token.
2628
2631
  * Updates the user's emailVerified status.
2629
2632
  */
2630
- verifyEmail: alepha_server0.ActionPrimitiveFn<{
2633
+ verifyEmail: alepha_server14.ActionPrimitiveFn<{
2631
2634
  query: alepha1.TObject<{
2632
2635
  userRealmName: alepha1.TOptional<alepha1.TString>;
2633
2636
  }>;
@@ -2643,7 +2646,7 @@ declare class UserController {
2643
2646
  /**
2644
2647
  * Check if an email is verified.
2645
2648
  */
2646
- checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2649
+ checkEmailVerification: alepha_server14.ActionPrimitiveFn<{
2647
2650
  query: alepha1.TObject<{
2648
2651
  email: alepha1.TString;
2649
2652
  userRealmName: alepha1.TOptional<alepha1.TString>;
@@ -2667,7 +2670,7 @@ declare class UserRealmController {
2667
2670
  * Get realm configuration settings.
2668
2671
  * This endpoint is not exposed in the API documentation.
2669
2672
  */
2670
- readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2673
+ readonly getRealmConfig: alepha_server14.ActionPrimitiveFn<{
2671
2674
  query: alepha1.TObject<{
2672
2675
  userRealmName: alepha1.TOptional<alepha1.TString>;
2673
2676
  }>;
@@ -2703,7 +2706,7 @@ declare class UserRealmController {
2703
2706
  }>>;
2704
2707
  }>;
2705
2708
  }>;
2706
- readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2709
+ readonly checkUsernameAvailability: alepha_server14.ActionPrimitiveFn<{
2707
2710
  query: alepha1.TObject<{
2708
2711
  userRealmName: alepha1.TOptional<alepha1.TString>;
2709
2712
  }>;
@@ -2836,7 +2839,7 @@ declare class SessionService {
2836
2839
  protected readonly fsp: FileSystemProvider;
2837
2840
  protected readonly dateTimeProvider: DateTimeProvider;
2838
2841
  protected readonly cryptoProvider: CryptoProvider;
2839
- protected readonly log: alepha_logger1.Logger;
2842
+ protected readonly log: alepha_logger0.Logger;
2840
2843
  protected readonly userRealmProvider: UserRealmProvider;
2841
2844
  protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
2842
2845
  users(userRealmName?: string): Repository$1<alepha1.TObject<{
@@ -2931,20 +2934,20 @@ declare class SessionService {
2931
2934
  }>;
2932
2935
  deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
2933
2936
  link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
2934
- email?: string | undefined;
2935
2937
  username?: string | undefined;
2938
+ email?: string | undefined;
2936
2939
  phoneNumber?: string | undefined;
2937
2940
  firstName?: string | undefined;
2938
2941
  lastName?: string | undefined;
2939
2942
  picture?: string | undefined;
2943
+ enabled: boolean;
2944
+ emailVerified: boolean;
2945
+ roles: string[];
2940
2946
  id: string;
2941
2947
  version: number;
2942
2948
  createdAt: string;
2943
2949
  updatedAt: string;
2944
2950
  realm: string;
2945
- roles: string[];
2946
- enabled: boolean;
2947
- emailVerified: boolean;
2948
2951
  } | {
2949
2952
  sub: string;
2950
2953
  email?: string;